@aquera/data-visualizer-sdk 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{a,b}from"./chunk-TNNU4TG7.js";import"./chunk-A6TQPIGW.js";import"./chunk-JP5QY5S6.js";import"./chunk-U4S2XPPP.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-T4WJW6GR.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";export{a as DVZ_ASK_TAG,b as defineDvzAsk};
1
+ import{a,b}from"./chunk-W7OTNCH6.js";import"./chunk-A6TQPIGW.js";import"./chunk-JP5QY5S6.js";import"./chunk-U4S2XPPP.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-T4WJW6GR.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";export{a as DVZ_ASK_TAG,b as defineDvzAsk};
@@ -14,5 +14,5 @@ import{$ as rn,A as jt,Aa as Ue,B as Yt,Ba as Ge,Ca as He,D as Qt,Da as je,Ea as
14
14
  ${e}`:e,a=this.attachments().filter(N=>N.status==="ready").map(N=>({key:N.key,name:N.name,contentType:N.contentType,size:N.size}));this.attachments.set([]);let c={id:me(),role:"user",text:this.pendingDisplayOverride??ci(e),answerSummary:!!this.pendingDisplayOverride,quotedText:t,charts:[],attachments:a,isStreaming:!1,hasError:!1};this.pendingDisplayOverride=null,this.messages.update(N=>[...N,c]);let f=me();this.messages.update(N=>[...N,{id:f,role:"assistant",text:"",thinking:"Thinking",charts:[],isStreaming:!0,hasError:!1,animate:!0,tools:[{id:"thinking",callIds:["thinking"],pending:1,baseLabel:"Thinking",label:"Thinking",status:"running"}]}]),this.isStreaming.set(!0);let w=new AbortController;this.streamAbort=w,this.scrollToBottom();let M="",S="Thinking",P=[],z=!1,X=!1,K=!1,U=new Set,j=N=>{let J=N?.queryMeta,I=J?.sql??(J?.dsl?JSON.stringify(J.dsl):N?.title??"");return`${N?.componentName??""}|${I}`},ce=()=>{if(z||P.length===0)return;z=!0;let N=P.splice(0);this.updateAssistantMsg(f,J=>({charts:[...J.charts,...N]})),this.scrollToBottom()};try{let N=this.selectedScope(),J=N?N.id:null,I=N?.kind==="pipeline";await this.svc.streamChat(this.activeConversationId(),n,{onText:E=>{M+=E,!z&&P.length>=1&&this.zone.run(()=>ce())},onToolStart:(E,L)=>{M="",S=L||"Working",this.zone.run(()=>{this.updateAssistantMsg(f,G=>({thinking:S,tools:zn(G.tools??[],E,S)}))})},onToolResult:(E,L,G)=>{this.zone.run(()=>{this.updateAssistantMsg(f,H=>({tools:Nn(H.tools??[],E,L,G)}))})},onDataPart:async E=>{if(E.data_type==="adhoc_viz"&&E.data){await kn(E.data.config);let L={title:E.data.title??"Chart",componentName:E.data.componentName??"",config:E.data},G=E.data?.id,H=W=>G&&W.config?.id===G;this.zone.run(()=>{if(z){this.updateAssistantMsg(f,ae=>{let Fe=G?ae.charts.findIndex(H):-1;return{charts:Fe===-1?[...ae.charts,L]:ae.charts.map((_i,pi)=>pi===Fe?L:_i)}}),this.scrollToBottom();return}let W=G?P.findIndex(H):-1;W===-1?P.push(L):P[W]=L,P.length>=2&&ce()})}},onDashboardTitle:E=>{E&&this.zone.run(()=>this.updateAssistantMsg(f,{dashboardTitle:E}))},onChoice:E=>{E?.options?.length&&this.zone.run(()=>this.updateAssistantMsg(f,L=>({choices:[...L.choices??[],E]})))},onLayoutPatch:E=>{let L=new Map((E?.layouts??[]).map(H=>[H.id,H.layout]));if(!L.size)return;let G=H=>{let W=H?.id;return W?L.get(W):void 0};for(let H of P){let W=G(H.config);W&&(H.config=T(y({},H.config),{layout:W}))}this.zone.run(()=>this.updateAssistantMsg(f,H=>({charts:H.charts.map(W=>{let ae=G(W.config);return ae?T(y({},W),{config:T(y({},W.config),{layout:ae})}):W})})))},onError:()=>{X=!0},onFinish:(E,L)=>{K=!0,this.zone.run(()=>{ce(),this.updateAssistantMsg(f,{isStreaming:!1,thinking:void 0,text:M}),this.isStreaming.set(!1);let G=this.messages().find(W=>W.id===f);gt({finishReason:E,sawError:X,producedContent:!!(G?.text||G?.charts.length||G?.choices?.length)})&&this.showStreamError(f),L&&!this.activeConversationId()&&(this.activeConversationId.set(L),this.conversationCustomerId.set(this.customerId()),this.conversationsLoading.set(!0),this.svc.listConversations().then(W=>{this.conversations.set(W);let ae=W.find(Fe=>Fe.id===L);this.conversationConnectionId.set(ae?.connectionId??null)}).finally(()=>this.conversationsLoading.set(!1))),this.loadConversationDashboards(),this.messages().find(W=>W.id===f)?.charts.length||this.scrollToBottom()})}},J,w.signal,a,I,this.builderDashboardId())}catch(N){w.signal.aborted||N instanceof DOMException&&N.name==="AbortError"||this.zone.run(()=>this.showStreamError(f))}finally{this.zone.run(()=>{!K&&gt({sawError:X,producedContent:!1})&&this.showStreamError(f),this.updateAssistantMsg(f,{isStreaming:!1,thinking:void 0}),this.streamAbort===w&&(this.isStreaming.set(!1),this.streamAbort=null)})}}showStreamError(t){this.messages.update(e=>Ln(e,t,n=>({id:n,role:"assistant",text:"",charts:[],isStreaming:!1,hasError:!1}))),this.isStreaming.set(!1)}stopStream(){this.messages.update(t=>t.map(e=>e.isStreaming?T(y({},e),{isStreaming:!1,thinking:void 0,tools:[]}):e)),this.streamAbort?.abort(),this.isStreaming.set(!1)}openArtifact(t,e){this.artifactSourceMsgId.set(e??null),this.activeArtifactRaw.set(e?[]:t),this.bucketExtraCharts.set([]),this.forecastOverlay.set(new Map),this.loadArtifactForecastable(),this.prefetchWidgetTemplateCatalog();let n=this.mostRecentDashboardTitle(),o=t.find(a=>!this.isFilterChart(a));this.saveDashboardName.set(n||o?.title||t[0]?.title||"My Dashboard"),this.resetArtifactFilterState()}addInlineWidget(t){this.inlinePickerFor.set(null),this.addArtifactToDashboard(t)}addInlineToExisting(t,e){this.inlinePickerFor.set(null),this.addToExistingDashboard(e,t)}addInlineDefault(t){let e=this.nonAutoDashboards();if(!this.builderOpen()&&e.length===1){this.addInlineToExisting(t,e[0].id);return}this.addInlineWidget(t)}async addToLibrary(t){try{await this.globalWidget.add(this.artifactToWidget(t)),this.showToast("success","Saved to your widget library.")}catch{}}onSelectionChange(t){this.selectedWidgetIds.set(t)}pickGalleryPrompt(t){this.inputText.set(t),this.closeGallery()}onWelcomePromptPick(t){this.isStreaming()||(this.inputText.set(t.label),this.sendMessage())}onGalleryPromptPick(t){t?.key&&this.pickGalleryPrompt(t.key)}openGallery(){this.gallerySearch.set(""),this.galleryOpen.set(!0)}closeGallery(){this.galleryOpen.set(!1),this.gallerySearch.set("")}templateCatalogPrefetch=null;prefetchTemplateCatalog(){return this.templateCatalogPrefetch?this.templateCatalogPrefetch:(this.templateCatalogPrefetch=(async()=>{if(!this.templateCategories().length){this.templateCategoriesLoading.set(!0);try{this.templateCategories.set(await this.svc.listDashboardCategories())}catch{}finally{this.templateCategoriesLoading.set(!1)}}if(!this.templateAllTemplates().length){this.templateTemplatesLoading.set(!0);try{this.templateAllTemplates.set(await this.svc.listAllCategoryTemplates())}catch{}finally{this.templateTemplatesLoading.set(!1)}}})(),this.templateCatalogPrefetch)}selectTemplateCategory(t){this.templateActiveCategory.set(t)}widgetTemplateCatalogPrefetch=null;prefetchWidgetTemplateCatalog(){return this.widgetTemplateCatalogPrefetch?this.widgetTemplateCatalogPrefetch:(this.widgetTemplateCatalogPrefetch=(async()=>{if(!this.templateCategories().length){this.templateCategoriesLoading.set(!0);try{this.templateCategories.set(await this.svc.listDashboardCategories())}catch{}finally{this.templateCategoriesLoading.set(!1)}}if(!this.widgetTemplateAllTemplates().length){this.widgetTemplateTemplatesLoading.set(!0);try{let t=await this.svc.loadAllWidgetTemplatePreviews();this.widgetTemplateAllTemplates.set(t.map(n=>n.template));let e=new Map;for(let n of t)e.set(n.template.id,n.widget?{title:n.widget.title,componentName:n.widget.componentName,config:n.widget}:null);this.widgetTemplatePreviews.set(e)}catch{}finally{this.widgetTemplateTemplatesLoading.set(!1)}}})(),this.widgetTemplateCatalogPrefetch)}selectWidgetTemplate(t){let e=this.widgetTemplatePreviews().get(t);if(e){this.addKpiToBucket(e,t);return}this.pickWidgetTemplate(t)}addKpiToBucket(t,e){this.activeArtifact().some(o=>o.config?._meta?.templateId===e)||(this.pushCanvasHistory(),this.bucketExtraCharts.update(o=>[...o,t]),this.ensureArtifactPaneOpen(),this.closeWidgetDetailPanel())}artifactHasFilter=q(()=>this.activeArtifact().some(t=>this.isFilterChart(t)));onFiltersToggle(t){t?this.addFilterToBucket():this.removeFilterFromArtifact()}addFilterToBucket(){this.artifactHasFilter()||(this.pushCanvasHistory(),this.bucketExtraCharts.update(t=>[...t,this.buildEmptyFilterChart()]),this.ensureArtifactPaneOpen())}removeFilterFromArtifact(){let t=this.activeArtifact().find(n=>this.isFilterChart(n));if(!t)return;if(this.pushCanvasHistory(),this.bucketExtraCharts().includes(t)){this.bucketExtraCharts.update(n=>n.filter(o=>o!==t));return}let e=this.artifactSourceMsgId();e?this.updateAssistantMsg(e,n=>({charts:n.charts.filter(o=>o!==t)})):this.activeArtifactRaw.update(n=>n.filter(o=>o!==t))}buildEmptyFilterChart(){let t=nn();return{title:t.title,componentName:t.componentName,config:t}}onGalleryWidgetClicked(t){this.openWidgetDetailPanelForWidget(t,!0)}async pickWidgetTemplate(t){try{let e=await this.svc.previewWidgetTemplate(t);if(e.error||!e.widget)return;let n={title:e.widget.title,componentName:e.widget.componentName,config:e.widget};this.addKpiToBucket(n,t)}catch{}}async openWidgetDetailPanelForWidget(t,e=!1){if(this.widgetDetailPanelLoading())return;let n=t.config?._meta,o=n?.templateId??null,a=n?.detailPanel??null;if(!(!o&&!a)){if(a&&!a.widgets?.length){e&&o&&this.selectWidgetTemplate(o);return}this.ensureArtifactPaneOpen(),this.runViewTransition(()=>{this.widgetDetailPanelTemplateId.set(o),this.widgetDetailPanelCanAdd.set(e),this.widgetDetailPanelSourceWidgetTitle.set(t.title??null),this.widgetDetailPanelTitle.set(a?.title??null),this.widgetDetailPanelSkeletonSlots.set(Ss((a?.widgets??[]).map(c=>c.layout).filter(c=>!!c))),this.widgetDetailPanelLoading.set(!0),this.widgetDetailPanelOpen.set(!0)});try{let c=a?await this.svc.previewWidgetDetailPanelDefinition(a):await this.svc.previewWidgetTemplateDetailPanel(o);if(!c.widgets.length){this.widgetDetailPanelOpen.set(!1);return}this.widgetDetailPanelTitle.set(c.title),this.widgetDetailPanelRaw.set(c.widgets.map(f=>({title:f.title,componentName:f.componentName,config:f})))}catch{this.widgetDetailPanelOpen.set(!1)}finally{this.widgetDetailPanelLoading.set(!1)}}}addWidgetTemplateFromDetailPanel(){let t=this.widgetDetailPanelTemplateId();t&&(this.selectWidgetTemplate(t),this.closeWidgetDetailPanel())}replaceCanvasWithDetailPanel(){let t=this.widgetDetailPanelRaw();if(!t.length)return;let e=this.widgetDetailPanelSourceTemplateId(),n=this.widgetDetailPanelTitle();this.asOneCanvasStep(()=>{this.artifactSourceMsgId.set(null),this.activeArtifactRaw.set([...t]),this.bucketExtraCharts.set([]),this.selectedWidgetIds.set([]),e&&this.templateSourceId.set(e),n&&this.saveDashboardName.set(n),this.ensureArtifactPaneOpen()}),this.closeWidgetDetailPanel()}async openWidgetDetailPanelForTemplate(t){if(this.widgetDetailPanelLoading())return;this.ensureArtifactPaneOpen(),this.widgetDetailPanelKind.set("dashboard"),this.widgetDetailPanelTemplateId.set(null),this.widgetDetailPanelSourceWidgetTitle.set(null),this.widgetDetailPanelSourceTemplateId.set(t.id),this.widgetDetailPanelCanAdd.set(!1),this.widgetDetailPanelSelectedIds.set([]),this.widgetDetailPanelTitle.set(t.name),this.widgetDetailPanelSkeletonSlots.set([]),this.widgetDetailPanelLoading.set(!0),this.widgetDetailPanelOpen.set(!0);let e=[];try{if(await this.svc.previewCategoryTemplateStream(t.id,{onWidget:n=>{e.push({title:n.title,componentName:n.componentName,config:n})},onSkipped:()=>{},onDone:()=>{},onError:()=>{}}),!e.length){this.widgetDetailPanelOpen.set(!1);return}this.widgetDetailPanelRaw.set(e)}catch{this.widgetDetailPanelOpen.set(!1)}finally{this.widgetDetailPanelLoading.set(!1)}}isDetailPanelFullySelected(){let t=this.widgetDetailPanelWidgets(),e=this.widgetDetailPanelSelectedIds();return t.length>0&&t.every(n=>e.includes(n.id))}toggleSelectAllDetailPanelWidgets(){this.widgetDetailPanelSelectedIds.set(this.isDetailPanelFullySelected()?[]:this.widgetDetailPanelWidgets().map(t=>t.id))}addSelectedDetailPanelWidgetsToCanvas(){let t=new Set(this.widgetDetailPanelSelectedIds()),e=this.widgetDetailPanelRaw().filter((o,a)=>t.has(`detail-panel-${a}`));if(!e.length)return;let n=this.activeArtifact().length===0;this.asOneCanvasStep(()=>{if(this.ensureArtifactPaneOpen(),n){this.activeArtifactRaw.update(a=>[...a,...e]);let o=this.widgetDetailPanelSourceTemplateId();o&&this.templateSourceId.set(o)}else this.bucketExtraCharts.update(o=>[...o,...e])}),this.closeWidgetDetailPanel()}onKpiWidgetClicked(t){this.openWidgetDetailPanelForWidget(t)}closeWidgetDetailPanel(){this.widgetDetailPanelOpen()&&this.runViewTransition(()=>{this.widgetDetailPanelOpen.set(!1),this.widgetDetailPanelRaw.set([]),this.widgetDetailPanelTitle.set(null),this.widgetDetailPanelTemplateId.set(null),this.widgetDetailPanelCanAdd.set(!1),this.widgetDetailPanelSkeletonSlots.set([]),this.widgetDetailPanelKind.set("widget"),this.widgetDetailPanelSourceWidgetTitle.set(null),this.widgetDetailPanelSelectedIds.set([]),this.widgetDetailPanelSourceTemplateId.set(null)},"back")}closeArtifact(){this.artifactSourceMsgId.set(null),this.activeArtifactRaw.set([]),this.dslOnlyArtifact.set(!1),this.bucketExtraCharts.set([]),this.artifactForcedOpen.set(!1),this.templateSourceId.set(null),this.widgetTemplateSourceId.set(null),this.closeWidgetDetailPanel(),this.saveDialogOpen.set(!1),this.showAddPicker.set(!1),this.selectedWidgetIds.set([]),this.resetArtifactFilterState()}resetArtifactFilterState(){this.applyFiltersAbort?.abort(),this.applyFiltersAbort=null,this.applyFiltersSeq++,this.applyingFilters.set(!1),this.activeDashboardFilters.set(null),this.activeResolvedFilters.set(null),this.applySummary.set(null),this.filterExplanation.set(null),this.filterOverlay.set(new Map),this.filterSuggestCache.clear(),this.filterSuggestInflight.clear()}buildActiveFilters(t){return xn(t,e=>this.filterFieldLabel(e))}filterFieldLabel(t){for(let e of this.filterSuggestCache.values()){let n=e.find(o=>o.type==="attribute"&&o.id===t);if(n)return n.label}return t}isEmptyFilters(t){if(!t)return!0;for(let e of Object.values(t))if(e!=null&&!(typeof e=="string"&&e.trim()==="")&&!(typeof e=="object"&&Object.keys(e).length===0))return!1;return!0}onArtifactFilterChange(t){let e=this.builderDashboardId();!e||!t.widgetId||!t.controlId||this.fetchFilterSuggestionsOnce(e,t.widgetId,t.controlId)}fetchFilterSuggestionsOnce(t,e,n){let o=this.filterSuggestCache.get(e);if(o){this.artifactGridRef?.patchFilterSuggestions(e,n,o);return}this.filterSuggestInflight.has(e)||(this.filterSuggestInflight.add(e),(async()=>{try{let a=await this.svc.filterSuggest(t,"",this.artifactWidgets(),"draft"),c=this.normalizeFilterSuggestions(a);if(!c.length)return;this.filterSuggestCache.set(e,c),this.artifactGridRef?.patchFilterSuggestions(e,n,c)}catch(a){console.warn("[ask-aquera] filter suggest failed",a)}finally{this.filterSuggestInflight.delete(e)}})())}normalizeFilterSuggestions(t){let e=Array.isArray(t.suggestions)?[...t.suggestions]:[];if(!e.length){t.nextToken&&e.push({id:t.nextToken.value,label:t.nextToken.label,type:"attribute"});for(let n of t.completions??[])e.push({label:n,type:"suggestion"})}return e}async onArtifactFilterSubmit(t){let e=this.builderDashboardId();if(!e)return;if(this.isEmptyFilters(t.filters)){this.applyFiltersAbort?.abort(),this.applyFiltersAbort=null,this.applyFiltersSeq++,this.applyingFilters.set(!1),this.activeDashboardFilters.set(null),this.activeResolvedFilters.set(null),this.applySummary.set(null),this.filterExplanation.set(null),this.filterOverlay.set(new Map);return}let n=this.artifactWidgets().filter(c=>!Ve(c));if(!n.length)return;this.applyFiltersAbort?.abort();let o=new AbortController;this.applyFiltersAbort=o;let a=++this.applyFiltersSeq;this.applyingFilters.set(!0);try{let{widgets:c,resolvedFilters:f,filterExplanation:w}=await this.svc.applyFilters(n,t.filters,e,"draft",o.signal,{mode:t.mode,prompt:t.prompt});if(a!==this.applyFiltersSeq)return;this.applyFilterResultsToOverlay(c),this.activeDashboardFilters.set(t.filters),this.activeResolvedFilters.set(f),this.applySummary.set(Pn(c,this.buildActiveFilters(t.filters))),this.filterExplanation.set(w)}catch(c){if(c?.name==="AbortError"||a!==this.applyFiltersSeq)return;console.error("[ask-aquera] apply filters failed",c)}finally{a===this.applyFiltersSeq&&this.applyingFilters.set(!1)}}onDslWidgetUpdated(t){t?.id&&this.filterOverlay.update(e=>{let n=new Map(e);return n.set(t.id,{config:t.config,edited:n.get(t.id)?.edited}),n})}applyFilterResultsToOverlay(t){let e=tn(this.baseArtifactWidgets(),t,o=>Ve(o)),n=new Map;for(let[o,a]of e)n.set(o,{config:a.config,edited:a.edited});this.filterOverlay.set(n)}artifactToWidget(t){let e=t.config??{};return{title:e.title??t.title,componentName:e.componentName??t.componentName,widgetType:e.widgetType??"chart",config:e.config??e,summary:e.summary,queryMeta:e.queryMeta,dataSourceId:e.dataSourceId??void 0,drilldownBy:Array.isArray(e.drilldownBy)?e.drilldownBy:[],category:e.category??null,layout:e.layout}}loadConversationDashboards(){this.dashboardsLoading.set(!0),this.svc.listDashboards(100).then(t=>this.conversationDashboards.set(t)).catch(()=>this.conversationDashboards.set([])).finally(()=>this.dashboardsLoading.set(!1))}storyPickerOpen=x(!1);storyPickerWidget=x(null);openStoryPicker(t=this.selectedArtifactCharts()){let e=t.find(n=>!this.isFilterChart(n))??t[0];e&&(this.storyPickerWidget.set(y({id:"artifact"},this.artifactToWidget(e))),this.storyPickerOpen.set(!0))}closeStoryPicker(){this.storyPickerOpen.set(!1),this.storyPickerWidget.set(null)}onAddedToStory(){this.closeStoryPicker()}async addToExistingDashboard(t,e=this.selectedArtifactCharts()){if(!(!e.length||this.committingAction())){this.savingDashboard.set(!0),this.committingAction.set("add");try{let n=await this.publishRepo.fetchDashboard(t);this.dashboardState.replaceDashboard(n);let o=ye(e.map(a=>this.artifactToWidget(a)));this.dashboardState.addWidgets(o),this.publishRepo.saveDraft(t,this.dashboardState.snapshot).catch(()=>{}),this.builderPreseeded.set(!0),this.builderDashboardId.set(t),this.builderOpen.set(!0),this.closeArtifact()}catch{}finally{this.savingDashboard.set(!1),this.committingAction.set(null)}}}openSaveDialog(){this.saveDialogOpen.set(!0)}newDashboardName(t){let e=this.artifactSourceMsgId(),n=e?this.messages().find(a=>a.id===e)?.dashboardTitle:void 0,o=t.find(a=>!this.isFilterChart(a));return n?.trim()||o?.title?.trim()||"Untitled Dashboard"}async addArtifactToDashboard(t=this.selectedArtifactCharts()){if(!(!t.length||this.savingDashboard())){if(this.builderOpen()&&this.builderDashboardId()){let e=ye(t.map(n=>this.artifactToWidget(n)));this.dashboardState.addWidgets(e),this.closeArtifact(),this.showToast("success","Added to your dashboard.");return}this.savingDashboard.set(!0),this.committingAction.set("add");try{let e=this.newDashboardName(t);this.dashboardState.resetDashboard(),this.dashboardState.setDashboardName(e);let n=ye(t.map(a=>this.artifactToWidget(a)));this.dashboardState.addWidgets(n);let o=await this.svc.createDashboard(T(y({name:e,conversationId:this.activeConversationId()??void 0},this.dashboardSource()),{widgets:this.dashboardState.snapshot.widgets}));this.dashboardState.setDashboardId(o.id),this.builderPreseeded.set(!0),this.builderDashboardId.set(o.id),this.builderOpen.set(!0),this.closeArtifact()}catch{}finally{this.savingDashboard.set(!1),this.committingAction.set(null)}}}async publishAsNewDashboard(t=this.selectedArtifactCharts()){if(!(!t.length||this.savingDashboard())){this.savingDashboard.set(!0),this.committingAction.set("publish");try{let e=this.newDashboardName(t),n=ye(t.map(o=>{let a=me();return y({id:a},at(this.artifactToWidget(o),a))}));await this.svc.createDashboard(T(y({name:e,conversationId:this.activeConversationId()??void 0},this.dashboardSource()),{widgets:n,published:!0})),this.showToast("success",`Published "${e}" as a new dashboard`),this.closeArtifact()}catch{}finally{this.savingDashboard.set(!1),this.committingAction.set(null)}}}closeBuilder(){this.builderOpen.set(!1),this.builderDashboardId.set(null),this.builderFullscreen.set(!1),this.dashboardState.resetDashboard()}toggleBuilderFullscreen(){this.builderFullscreen.update(t=>!t)}static MIN_CHAT_WIDTH=320;static MIN_BUILDER_WIDTH=360;resizeShell=null;startChatResize(t){t.preventDefault();let e=t.target.closest(".aq-shell");if(!e)return;let n=e.getBoundingClientRect();this.resizeShell={left:n.left,width:n.width},this.isResizing.set(!0),window.addEventListener("pointermove",this.onChatResizeMove),window.addEventListener("pointerup",this.onChatResizeEnd,{once:!0})}onChatResizeMove=t=>{let e=this.resizeShell;if(!e)return;let n=Math.max(i.MIN_CHAT_WIDTH,e.width-i.MIN_BUILDER_WIDTH),o=Math.min(i.MIN_CHAT_WIDTH,n),a=Math.max(o,Math.min(t.clientX-e.left,n));this.chatPaneWidth.set(a)};onChatResizeEnd=()=>{this.resizeShell=null,this.isResizing.set(!1),window.removeEventListener("pointermove",this.onChatResizeMove),window.removeEventListener("pointerup",this.onChatResizeEnd)};startEditDashboardTitle(){this.builderDashboardId()&&(this.dashboardTitleDraft.set(this.builderRef?.dashboardName()??""),this.editingDashboardTitle.set(!0))}cancelEditDashboardTitle(){this.editingDashboardTitle.set(!1)}async commitDashboardTitle(){if(!this.editingDashboardTitle()||this.renamingDashboard())return;let t=this.dashboardTitleDraft().trim();if(!t){this.editingDashboardTitle.set(!1);return}this.renamingDashboard.set(!0);try{await this.builderRef?.renameTo(t),this.editingDashboardTitle.set(!1)}catch{}finally{this.renamingDashboard.set(!1)}}onBuilderMenuAction(t){if(t==="fullscreen"){this.toggleBuilderFullscreen();return}if(t==="promptGallery"){this.openGallery();return}this.builderRef?.onMenuAction(t)}onBuilderPublished(t){this.showToast("success",`Dashboard "${t}" published`)}async onExecutiveSummary(t){if(this.isStreaming()||(t&&await this.restoreThreadForDashboard(t),!this.activeConversationId()))return;let e=this.builderRef?.dashboardName?.(),n=this.aiExecutiveSummaryEl?.nativeElement;n&&(n.config={summary:"",buttonLabel:"Executive Summary",buttonVariant:"secondary",drawerLabel:e?`${e} Summary`:"Dashboard Summary",typingSpeed:5,closeOnEscape:!0},n.loading=!0,n.show?.()),this.isStreaming.set(!0);let o="";try{await this.svc.streamChat(this.activeConversationId(),"Give me an executive summary of this dashboard.",{onText:a=>{o+=a},onToolStart:()=>{},onToolResult:()=>{},onDataPart:()=>{},onError:()=>{},onFinish:()=>{let a=this.aiExecutiveSummaryEl?.nativeElement;a&&(a.config=T(y({},a.config??{}),{summary:o}),a.loading=!1,a.open&&a.startTyping?.())}},void 0,void 0,void 0,void 0,t)}catch{let a=this.aiExecutiveSummaryEl?.nativeElement;a&&(a.loading=!1)}finally{this.isStreaming.set(!1)}}async confirmSaveDashboard(){let t=this.saveDashboardName().trim();if(!t||this.savingDashboard())return;let e=ye(this.activeArtifact().map(n=>{let o=me();return y({id:o},at(this.artifactToWidget(n),o))}));this.savingDashboard.set(!0);try{let n=await this.svc.createDashboard(T(y({name:t,conversationId:this.activeConversationId()??void 0},this.dashboardSource()),{widgets:e,sourceTemplateId:this.templateSourceId()??void 0}));await this.svc.publishDashboard(n.id),this.showToast("success",`Dashboard "${n.name}" published`),this.closeArtifact()}catch{}finally{this.savingDashboard.set(!1)}}ngOnDestroy(){this.streamAbort?.abort(),this.onChatResizeEnd()}onComposerSubmit(t){typeof t=="string"&&this.inputText.set(t),this.sendMessage()}onComposerKeydown(t){t.key!=="Enter"||t.shiftKey||t.metaKey||t.ctrlKey||t.isComposing||(t.preventDefault(),t.stopPropagation(),this.onComposerSubmit(this.inputText()))}isDataGrid(t){let e=(t.componentName??"").toLowerCase();return e.includes("data-grid")||e.includes("datagrid")}isKpiChart(t){return(t.componentName??"").toLowerCase().includes("kpi")||t.config?.config?.chart?.type==="kpi"}inlineChartClass(t){if(this.inlineViewModeFor(t)!=="chart")return"inline-widget__chart inline-widget__chart--grid";if(!this.isKpiChart(t))return"inline-widget__chart";let e=t.config?.config?.chart?.sparkline;return`inline-widget__chart inline-widget__chart--kpi${Array.isArray(e)&&e.length>=2?" inline-widget__chart--kpi-spark":""}`}inlineFilters=new Map;inlineFilterSeq=0;inlineChartFallbackIds=new WeakMap;inlineChartFallbackIdSeq=0;inlineChartKey(t){let e=t.config?.id;if(e!=null)return String(e);let n=this.inlineChartFallbackIds.get(t);return n||(n=`chart-${++this.inlineChartFallbackIdSeq}`,this.inlineChartFallbackIds.set(t,n)),n}inlineChartRawConfig(t){return t.config?.config?.chart}inlineWidgetMenuItems(t){let e=t.charts[0];if(!e||this.isFilterChart(e))return[];let n={canChangeChartType:!0,canManageFilters:!0,canCustomizeColors:!1,canForecast:this.canForecastChart(t),hasForecast:this.canRemoveForecast(t),canSetAlert:this.canCreateAlert(e),isKpi:this.isKpiChart(e)},o=this.inlineActiveFilters(e).length,a=bn(n).map(w=>{if(w.type==="custom"){let S=w.id==="manageFilters"&&o>0?`${w.label} (${o})`:w.label;return{key:w.id,label:S,glyph:w.glyph,divider:w.divider,method:w.method,color:w.color,kind:"custom"}}let M=w.downloadPng?"exportPng":w.downloadCsv?"exportCsv":"print";return{key:M,label:w.label??M,glyph:w.glyph,divider:w.divider,kind:M}});this.isDslEditableChart(e)&&a.push({key:"editDsl",label:"Edit query",glyph:"ng-code",divider:!0,kind:"custom"});let c=this.inlineViewModeFor(e),f=this.inlineHasQueryableData(e);return c==="chart"?(a.push({key:"viewData",label:"Chart Data",glyph:"ng-table",divider:!this.isDslEditableChart(e),kind:"custom"}),f&&a.push({key:"viewRecords",label:"View Records",glyph:"ng-database",kind:"custom"})):(a.push({key:"viewChart",label:"View Chart",glyph:"ng-chart-bar",divider:!this.isDslEditableChart(e),kind:"custom"}),f&&c!=="records"&&a.push({key:"viewRecords",label:"View Records",glyph:"ng-database",kind:"custom"})),c!=="chart"?yn(a,w=>w.key==="viewChart"||w.key==="viewRecords",w=>w.key==="setAlert"||w.kind==="exportCsv"):a}onInlineWidgetMenuItem(t,e){let n=t.charts[0];if(e.kind!=="custom"){this.runInlineChartAction(t,e.kind);return}switch(e.key){case"changeChartType":n&&this.toggleInlineChartTypePicker(n);break;case"manageFilters":n&&this.toggleInlineFilterPicker(n);break;case"setAlert":n&&this.createAlertFromChart(n);break;case"forecast":this.canRemoveForecast(t)?this.removeForecastFromChart(t):this.forecastFromChart(t);break;case"editDsl":n&&this.openArtifactForInlineDsl(t,n);break;case"viewData":n&&this.setInlineViewMode(n,"data");break;case"viewChart":n&&this.setInlineViewMode(n,"chart");break;case"viewRecords":n&&this.viewInlineRecords(t,n);break}}inlineChartWidgets;async runInlineChartAction(t,e){let n=this.inlineChartWidgets?.find(o=>o.widgetId===t.id)?.chartRef?.nativeElement;try{e==="exportPng"?await n?.exportChart?.("image/png"):e==="exportCsv"?await n?.downloadCsv?.():await n?.printChart?.()}catch{}}toggleInlineChartTypePicker(t){if(this.inlineChartTypePickerFor()===t){this.closeInlineChartTypePicker();return}this.openInlineChartTypePicker(t)}toggleInlineFilterPicker(t){if(this.inlineFilterPickerFor()===t){this.closeInlineFilterBuilder();return}this.openInlineFilterBuilder(t)}inlineDataViewCache=new WeakMap;inlineDisplayConfig(t){let e=this.inlineViewModeFor(t);if(e==="data"){let o=this.inlineDataViewCache.get(t);if(o)return o;let a=T(y({},t.config?.config),{chart:this.buildInlineDataViewChart(t)});return this.inlineDataViewCache.set(t,a),a}if(e==="records"){let o=this.inlineRecordsChartFor(t);if(o)return o.config}let n=this.inlineFilterResult.get(this.inlineChartKey(t));return n?n?.config:t.config?.config}inlineViewMode=new Map;inlineRecords=new Map;inlineRecordsLoading=x(new Set);recordsFetcher=$(cn,{optional:!0});inlineViewModeFor(t){return this.inlineViewMode.get(t)??"chart"}setInlineViewMode(t,e){e==="chart"?this.inlineViewMode.delete(t):this.inlineViewMode.set(t,e)}inlineHasQueryableData(t){if(!this.recordsFetcher)return!1;let e=t.config?.config,n=!!this.chartQueryMeta(t)?.sql,o=e?.chart?.type==="grid";return n&&!o}isDslEditableChart(t){let e=this.chartQueryMeta(t);return!e?.adapterType||!["opensearch","postgres","mssql"].includes(e.adapterType)?!1:!!(e.sql||e.dsl)}openArtifactForInlineDsl(t,e){this.isDslEditableChart(e)&&(this.dslOnlyArtifact.set(!0),this.openArtifact(t.charts,t.id),setTimeout(()=>{this.artifactGridRef?.openDslEditor(`${t.id}-0`)}))}onArtifactDslEditorClosed(){this.dslOnlyArtifact()&&this.closeArtifact()}buildInlineDataViewChart(t){let e=t.config?.config?.chart??{},{columns:n,rows:o}=un(e);if(!this.isKpiChart(t))return{type:"grid",data:o,columns:n.map(M=>({id:M,header:M,accessorKey:M,enableSorting:!0}))};let c=o[0]?.[n[0]]??null,f=pn({config:t.config?.config,queryMeta:this.chartQueryMeta(t)});return{type:"grid",data:[{field:"Value",text:c,emphasize:!0},...f.map(M=>({field:M.label,text:M.text}))],columns:[{id:"field",header:"Field",accessorKey:"field",enableSorting:!1,width:"140px",cell:M=>it`<strong>${M.value}</strong>`},{id:"text",header:"Value",accessorKey:"text",enableSorting:!1,cell:M=>{let P=M.row.emphasize?"display:block;overflow-x:auto;white-space:nowrap;font-size:22px;font-weight:700;":"display:block;overflow-x:auto;white-space:nowrap;";return it`<span style=${P}>${M.value}</span>`}}]}}chartQueryMeta(t){let e=t.config??{};return e.queryMeta??e.config?.aq?.queryMeta}inlineRecordsChartFor(t){return this.inlineRecords.get(t)??null}isInlineRecordsLoading(t){return this.inlineRecordsLoading().has(t)}async viewInlineRecords(t,e){if(this.setInlineViewMode(e,"records"),!this.recordsFetcher||this.inlineRecords.has(e))return;let n=new Set(this.inlineRecordsLoading());n.add(e),this.inlineRecordsLoading.set(n);try{let o=T(y({},this.artifactToWidget(e)),{id:t.id}),a=await this.recordsFetcher.fetch(o,void 0);this.inlineRecords.set(e,a.empty?null:a.chart)}catch{this.inlineRecords.set(e,null)}finally{let o=new Set(this.inlineRecordsLoading());o.delete(e),this.inlineRecordsLoading.set(o)}}inlineChartTypeApplyingComponent=x(null);chartTypeIcon(t){return Cn(t)}inlineSensibleChartTypes(){return this.inlineChartTypeOptions().filter(t=>t.sensible)}inlineOtherChartTypes(){return this.inlineChartTypeOptions().filter(t=>!t.sensible)}async openInlineChartTypePicker(t){let e=++this.inlineChartTypePickerSeq;this.inlineChartTypePickerFor.set(t),this.inlineChartTypeError.set(null),this.inlineChartTypeOptions.set([]),this.inlineChartTypeLoading.set(!0);try{let n=t.config,o=await this.publishRepo.listChartTypes({id:n?.id??t.title,componentName:t.componentName,queryMeta:n?.queryMeta,config:n?.config});if(e!==this.inlineChartTypePickerSeq)return;this.inlineChartTypeOptions.set(o.filter(a=>a.component!==t.componentName))}catch(n){if(e!==this.inlineChartTypePickerSeq)return;this.inlineChartTypeError.set(n instanceof Error?n.message:"Could not load chart types")}finally{e===this.inlineChartTypePickerSeq&&this.inlineChartTypeLoading.set(!1)}}closeInlineChartTypePicker(){this.inlineChartTypePickerFor.set(null),this.inlineChartTypeOptions.set([]),this.inlineChartTypeError.set(null)}async selectInlineChartType(t){let e=this.inlineChartTypePickerFor();if(!(!e||this.inlineChartTypeApplying())){this.inlineChartTypeApplying.set(!0),this.inlineChartTypeApplyingComponent.set(t),this.inlineChartTypeError.set(null);try{let n=await this.svc.changeAdhocChartType(e.config,t);this.replaceInlineChart(e,n),this.closeInlineChartTypePicker()}catch(n){this.inlineChartTypeError.set(n instanceof Error?n.message:this.copy().errors.chartTypeChangeFailed)}finally{this.inlineChartTypeApplying.set(!1),this.inlineChartTypeApplyingComponent.set(null)}}}replaceInlineChart(t,e){let n=this.inlineChartKey(t);this.inlineFilters.delete(n),this.inlineFilterFieldsCache.delete(n),this.inlineFilterBaseConfig.delete(n),this.inlineFilterResult.delete(n);let o={title:e.title??t.title,componentName:e.componentName??"",config:e};this.messages.update(a=>a.map(c=>T(y({},c),{charts:c.charts.map(f=>f===t?o:f)})))}inlineFilterBuilderFieldId=x(null);inlineFilterBuilderOperator=x(null);inlineFilterBuilderValue=x("");inlineFilterBuilderValue2=x("");inlineFilterBuilderValues=x([]);inlineFilterFieldsLoading=x(!1);inlineFilterFieldsError=x(null);inlineFilterValuesLoading=x(!1);inlineFilterApplying=x(!1);inlineFilterApplyError=x(null);inlineFilterFieldsCache=new Map;inlineFilterValuesCache=new Map;inlineFilterBaseConfig=new Map;inlineFilterResult=new Map;toggleInlineFilterMultiValue(t){this.inlineFilterBuilderValues.update(e=>e.includes(t)?e.filter(n=>n!==t):[...e,t])}resetInlineFilterBuilderValues(){this.inlineFilterBuilderValue.set(""),this.inlineFilterBuilderValue2.set(""),this.inlineFilterBuilderValues.set([])}async openInlineFilterBuilder(t){this.inlineFilterPickerFor.set(t),this.inlineFilterApplyError.set(null);let e=this.inlineChartKey(t);if(!this.inlineFilterFieldsCache.has(e)){this.inlineFilterFieldsLoading.set(!0),this.inlineFilterFieldsError.set(null);try{let o=await this.svc.listAdhocFilterFields([t.config]);this.inlineFilterFieldsCache.set(e,o)}catch(o){this.inlineFilterFieldsError.set(o instanceof Error?o.message:"Could not load filter fields")}finally{this.inlineFilterFieldsLoading.set(!1)}}let n=this.inlineFilterFields(t)[0];this.inlineFilterBuilderFieldId.set(n?.name??null),this.inlineFilterBuilderOperator.set(n?Re(n.type)[0].value:null),this.resetInlineFilterBuilderValues(),n&&this.ensureInlineFilterValuesLoaded(t,n)}closeInlineFilterBuilder(){this.inlineFilterPickerFor.set(null)}inlineFilterFields(t){return this.inlineFilterFieldsCache.get(this.inlineChartKey(t))??[]}inlineFilterSelectedField(t){return this.inlineFilterFields(t).find(e=>e.name===this.inlineFilterBuilderFieldId())}async ensureInlineFilterValuesLoaded(t,e){let n=`${this.inlineChartKey(t)}::${e.name}`;if(!(!gn(e.type)||this.inlineFilterValuesCache.has(n))){this.inlineFilterValuesLoading.set(!0);try{let o=await this.svc.fetchAdhocFilterValues([t.config],e.name);this.inlineFilterValuesCache.set(n,o.values)}catch{this.inlineFilterValuesCache.set(n,[])}finally{this.inlineFilterValuesLoading.set(!1)}}}inlineFilterValuesFor(t){let e=this.inlineFilterPickerFor();return!t||!e?[]:this.inlineFilterValuesCache.get(`${this.inlineChartKey(e)}::${t}`)??[]}onInlineFilterFieldChange(t,e){this.inlineFilterBuilderFieldId.set(e);let n=this.inlineFilterFields(t).find(o=>o.name===e);this.inlineFilterBuilderOperator.set(n?Re(n.type)[0].value:null),this.resetInlineFilterBuilderValues(),n&&this.ensureInlineFilterValuesLoaded(t,n)}onInlineFilterOperatorChange(t){this.inlineFilterBuilderOperator.set(t),this.resetInlineFilterBuilderValues()}inlineFilterOperators(t){let e=this.inlineFilterSelectedField(t);return e?Re(e.type):[]}inlineFilterSelectedOperator(t){return this.inlineFilterOperators(t).find(e=>e.value===this.inlineFilterBuilderOperator())}inlineActiveFilters(t){return this.inlineFilters.get(this.inlineChartKey(t))??[]}inlineFilterChipLabel(t,e){let n=this.inlineFilterFields(t).find(o=>o.name===e.fieldId);return hn(e,n?.label??e.fieldId,n?.type??"string")}async reapplyInlineFilters(t,e,n){if(!n.length)return this.inlineFilterResult.delete(e),this.inlineFilterBaseConfig.delete(e),!0;let o=this.inlineFilterBaseConfig.get(e)??t.config;this.inlineFilterApplying.set(!0),this.inlineFilterApplyError.set(null);try{let a=n.map(mn),c=await this.svc.applyAdhocFilter(o,a);return this.inlineFilterBaseConfig.set(e,o),this.inlineFilterResult.set(e,c),!0}catch(a){return this.inlineFilterApplyError.set(a instanceof Error?a.message:"Filter could not be applied"),!1}finally{this.inlineFilterApplying.set(!1)}}async addInlineFilter(t){let e=this.inlineFilterBuilderFieldId(),n=this.inlineFilterBuilderOperator();if(!e||!n||this.inlineFilterApplying())return;let o=this.inlineFilterOperators(t).find(M=>M.value===n);if(!o)return;let a;if(o.valueKind==="none")a={id:`f${++this.inlineFilterSeq}`,fieldId:e,operator:n};else if(o.valueKind==="multi-select"){let M=this.inlineFilterBuilderValues();if(M.length===0)return;a={id:`f${++this.inlineFilterSeq}`,fieldId:e,operator:n,values:[...M]}}else{let M=this.inlineFilterBuilderValue().trim();if(!M)return;let S=o.needsSecondValue?this.inlineFilterBuilderValue2().trim():void 0;if(o.needsSecondValue&&!S)return;a={id:`f${++this.inlineFilterSeq}`,fieldId:e,operator:n,value:M,value2:S}}let c=this.inlineChartKey(t),f=[...this.inlineFilters.get(c)??[],a];await this.reapplyInlineFilters(t,c,f)&&(this.inlineFilters.set(c,f),this.resetInlineFilterBuilderValues())}async removeInlineFilter(t,e){if(this.inlineFilterApplying())return;let n=this.inlineChartKey(t),o=(this.inlineFilters.get(n)??[]).filter(c=>c.id!==e);await this.reapplyInlineFilters(t,n,o)&&(o.length?this.inlineFilters.set(n,o):this.inlineFilters.delete(n))}async clearInlineFilters(t){if(this.inlineFilterApplying())return;let e=this.inlineChartKey(t);await this.reapplyInlineFilters(t,e,[]),this.inlineFilters.delete(e)}cleanText(t){return t.replace(/^#{1,6}\s+/gm,"").replace(/\*\*(.+?)\*\*/g,"$1").replace(/\*(.+?)\*/g,"$1").replace(/^\s*[-*]\s+/gm,"\u2022 ").replace(/\n{3,}/g,`
15
15
 
16
16
  `).replace(/\[[\w\s]+\]\.\[[\w\s]+\]/g,"").replace(/\b(gold|dbo|public|silver|bronze)\.\w+/gi,"").replace(/\b(the\s+)?(gold|dbo|public|silver|bronze)\s+(schema|database)\b/gi,"the database").replace(/\b(found|analyzed|using|from|in)\s+\d+\s+tables?\b/gi,"").replace(/\b\d+\s+tables?\s+(found|available|returned|in the schema)\b/gi,"").replace(/\b(the\s+)?[\w]+\s+table\b/gi,e=>/[A-Z_]/.test(e)?"":e).replace(/\b(table|view)\s+(named|called)\s+[\w[\]."'`]+/gi,"").replace(/\(\s*\)/g,"").replace(/,\s*,/g,",").replace(/ {2,}/g," ").replace(/\n /g,`
17
- `).trim()}updateAssistantMsg(t,e){this.messages.update(n=>n.map(o=>{if(o.id!==t)return o;let a=typeof e=="function"?e(o):e;return"charts"in a&&this.forecastableMsgs.delete(t),y(y({},o),a)}))}scrollToBottom(){setTimeout(()=>this.aqChatEl?.nativeElement?.scrollToBottom?.("auto"),100)}showToast(t,e){let n=document.createElement("nile-toast");n.variant=t,n.title=e,n.duration=5e3,n.closable=!0,n.toast(),ze()}extractMessage(t,e){return Ne(t,e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["app-ask-aquera-page"]],viewQuery:function(e,n){if(e&1&&St(Ni,5)(lt,5)($i,5)(Li,5)(Wi,5)(rt,5),e&2){let o;pe(o=ue())&&(n.aqChatEl=o.first),pe(o=ue())&&(n.builderRef=o.first),pe(o=ue())&&(n.artifactGridRef=o.first),pe(o=ue())&&(n.composerRef=o.first),pe(o=ue())&&(n.aiExecutiveSummaryEl=o.first),pe(o=ue())&&(n.inlineChartWidgets=o)}},hostBindings:function(e,n){e&1&&g("dragover",function(a){return a.preventDefault()},et)("drop",function(a){return a.preventDefault()},et)("selectionchange",function(){return n.onTextSelectionChange()},Oe)("wheel",function(){return n.hideQuoteBadge()},Oe)("keydown.escape",function(){return n.hideQuoteBadge()},Oe)},features:[Ft([Ie(ge),en(de),rn(de),_n(de),sn(de),dn(de),fn(de),vn(()=>null)])],decls:38,vars:36,consts:[["composerTpl",""],["widgetDetailPanelTpl",""],["dashPickerRow",""],["aqChat",""],["inlineWidgetMenu",""],["fileInput",""],["composerEl",""],["artifactGrid",""],["aiExecutiveSummary",""],[1,"aq-shell"],["type","button",1,"reply-badge",3,"reply-badge--below","top","left"],[1,"aq-chat-pane"],[1,"wfb-header"],[1,"aq-library-pane"],["role","separator","aria-orientation","vertical","aria-label","Resize chat panel","title","Drag to resize",1,"aq-resizer",3,"is-active"],[1,"aq-artifact-pane",3,"aq-artifact-pane--dsl-only"],[1,"aq-builder-pane"],[3,"nile-request-close","nile-hide","label"],["label","Dashboard name",3,"nile-input","keydown.enter","placeholder","value"],["slot","footer",1,"wfb-save-dialog__actions"],["variant","secondary","size","small",3,"click"],["variant","primary","size","small",3,"click"],["placement","end",1,"forecast-drawer",3,"nile-request-close","nile-hide","label","open"],["slot","label",1,"forecast-drawer__label"],["name","ng-stars-02","method","stroke","size","16","color","#7a5af8",1,"forecast-drawer__mark"],["slot","footer",1,"fs-actions"],["placement","end",1,"prompt-gallery-drawer",3,"nile-request-close","nile-hide","label","open"],[3,"open","widget","dashboardId","source","sourceName","authoringMode"],[1,"ai-executive-summary"],[3,"open","widget"],["type","button",1,"reply-badge",3,"click"],["name","ng-reply","method","stroke","size","14"],[1,"wfb-header__left"],["variant","toggle-button",1,"aq-chat-pane__tabs",2,"--nile-nav-tab-padding","6px 14px"],[1,"wfb-header__right"],[1,"aq-scope-chip"],["placement","bottom-end","distance","6","stay-open-on-select","",1,"scope-dropdown",3,"nile-hide","open"],["slot","trigger","content","Add dataset or pipeline"],["type","button","aria-label","Add dataset or pipeline",1,"aq-header-action",3,"click"],["name","ng-plus","method","stroke","size","18"],["hoist","","placement","right-start","stay-open-on-select",""],["slot","trigger",1,"scope-branch"],["name","ng-database","method","stroke","size","14",1,"scope-branch__icon"],[1,"scope-branch__label"],["name","ng-chevron-right","method","stroke","size","14",1,"scope-branch__arrow"],[1,"scope-menu__loading"],["name","ng-dataflow-04","method","stroke","size","14",1,"scope-branch__icon"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"conv-dropdown",3,"nile-hide","open"],["slot","trigger","content","Conversations"],["type","button","aria-label","Conversations",1,"aq-header-action",3,"click","disabled"],["name","ng-messages-square","method","stroke","size","18"],["searchEnabled","","customSearch","",3,"nile-search-value"],[1,"list-new",3,"click"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#2970ff"],[1,"menu-empty"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"related-dropdown",3,"open"],["content","Prompt gallery"],["variant","toggle-button",1,"aq-chat-pane__tabs",2,"--nile-nav-tab-padding","6px 14px",3,"nile-tab-change"],["slot","nav","panel","chat"],["slot","nav","panel","library"],["method","stroke","size","12",1,"aq-scope-chip__icon",3,"name"],[1,"aq-scope-chip__text"],["type","button","aria-label","Clear scope",1,"aq-scope-chip__clear",3,"click"],["name","ng-x-close","method","stroke","size","12"],["variant","text","width","160","height","14"],["variant","text","width","120","height","14"],[1,"scope-menu__empty"],[3,"click"],[1,"scope-item__name"],["slot","suffix","name","ng-check","method","stroke","size","14","color","#2970ff"],["aria-hidden","true",1,"menu-skeleton-item"],[1,"list-row"],["variant","rounded","width","14","height","14","border-radius","4px"],[1,"list-row__text"],["variant","text","width","100%","height","14"],["variant","text","width","60%","height","12"],[1,"list-group"],["name","ng-message-square","method","stroke","size","14",1,"list-row__icon"],["type","text",1,"list-row__rename",3,"ngModel"],[1,"list-row__actions"],["type","button",1,"list-row__act",3,"click"],["name","ng-edit-02","method","stroke","size","14"],["type","button",1,"list-row__act","list-row__act--danger",3,"click"],["name","ng-trash-01","method","stroke","size","14"],["type","text",1,"list-row__rename",3,"ngModelChange","click","keydown.enter","keydown.escape","blur","ngModel"],[1,"list-row__title",3,"title"],[1,"list-row__meta"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"related-dropdown",3,"nile-hide","open"],["slot","trigger","content","Dashboards"],["type","button","aria-label","Dashboards",1,"aq-header-action",3,"click"],["name","ng-grid-01","method","stroke","size","18"],["variant","text","width","58","height","12"],["name","ng-bar-chart-square-02","method","stroke","size","14","color","#667085",1,"list-row__icon"],["type","button","aria-label","Prompt gallery",1,"aq-header-action",3,"click"],["name","ng-lightbulb-05","method","stroke","size","18"],[1,"aq-library-pane__head"],[1,"aq-library-pane__intro"],[1,"aq-library-pane__intro-title"],["variant","toggle-button","fullWidth","",2,"--nile-nav-tab-padding","6px 14px",3,"nile-tab-change"],["slot","nav","panel","kpis"],[1,"aq-library-pane__tab-count"],["slot","nav","panel","templates"],[1,"aq-library-pane__body"],[1,"aq-artifact-pane__picker-overlay-footer"],["type","search","clearable","",3,"nile-input","nile-change","placeholder","value"],["slot","prefix","name","ng-search","method","stroke","size","16"],[1,"aq-picker-chips"],["aria-hidden","true",1,"aq-picker-chips"],["type","button",1,"aq-picker-chip",3,"click"],[1,"aq-picker-chip__count"],["type","button",1,"aq-picker-chip",3,"aq-picker-chip--active"],["variant","rounded","width","100%","height","28","border-radius","999px",3,"width"],["variant","rounded","width","100%","height","28","border-radius","999px"],["aria-hidden","true",1,"aq-lib-skeleton"],[1,"aq-library-group"],[1,"aq-library-group__head"],["variant","text","width","88","height","11"],["variant","text","width","52","height","12"],[1,"aq-lib-cards"],[1,"aq-lib-skeleton__kpi"],["variant","text","height","15"],["variant","text","width","64","height","30"],["variant","text","width","100%","height","12"],["variant","rectangular","width","100%","height","34","border-radius","6px"],[1,"prompt-gallery-empty"],[1,"aq-library-group__label"],["type","button",1,"aq-library-group__toggle",3,"click"],[1,"aq-lib-card-wrap",3,"aq-lib-card-wrap--selected"],[1,"aq-lib-card-wrap",3,"click"],["variant","card","sparklineType","line","sparklineColor","#3b82f6",3,"label","description","value","loading","sparkline","options"],["type","button",1,"aq-lib-card__check",3,"click"],["name","ng-check","method","stroke","size","11","color","#fff"],[1,"aq-lib-cards","aq-lib-cards--dashboards"],[1,"aq-lib-skeleton__dash"],["variant","rectangular","width","100%","height","108"],[1,"aq-lib-skeleton__dash-text"],["variant","text","width","72%","height","12"],["type","button",1,"aq-lib-card","aq-lib-card--dashboard"],["type","button",1,"aq-lib-card","aq-lib-card--dashboard",3,"click"],[1,"aq-lib-card__preview"],["aria-hidden","true",1,"aq-lib-card__viz"],["aria-hidden","true",1,"aq-lib-card__viz-empty"],[1,"aq-lib-card__chip"],[1,"aq-lib-card__row"],[1,"aq-lib-card__text"],[1,"aq-lib-card__title"],[1,"aq-lib-card__desc"],["name","ng-chevron-right","method","stroke","size","14","color","#98a2b3"],[3,"config"],[2,"height","34%"],[2,"height","62%"],[2,"height","48%"],[2,"height","78%"],[2,"height","40%"],["name","ng-grid-01","size","10","method","stroke"],[1,"aq-artifact-pane__picker-overlay-footer-count"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#fff"],[1,"welcome-wrap"],[1,"aq-chat"],[1,"welcome-section"],[1,"ai-badge","ai-badge--lg"],["name","ng-stars-02","method","stroke","size","24","color","#2970ff"],[1,"welcome-title"],[1,"welcome-sub"],[1,"welcome-composer"],[3,"ngTemplateOutlet"],["aria-hidden","true",1,"welcome-prompts-skeleton"],[1,"welcome-prompts-skeleton__item"],["variant","rounded","width","18","height","18","border-radius","4px",1,"welcome-prompts-skeleton__icon"],[1,"welcome-prompts-skeleton__label"],[1,"welcome-prompts"],[1,"prompt-gallery-row"],["type","button",1,"prompt-card",3,"prompt-card--ai"],["type","button",1,"prompt-card",3,"click"],["method","stroke","size","18",1,"prompt-card__icon"],[1,"prompt-card__label"],[1,"prompt-card__badge"],["type","button",1,"prompt-gallery-link",3,"click"],["name","ng-lightbulb-05","method","stroke","size","14"],[1,"aq-chat",3,"mouseup"],["slot","footer",1,"input-area"],[1,"msg-skeleton","msg-skeleton--user"],["variant","rounded","width","260","height","44","border-radius","16px"],[1,"msg-skeleton","msg-skeleton--ai"],["variant","text","width","88%","height","18"],["variant","text","width","72%","height","18"],["variant","rectangular","width","100%","height","300","border-radius","12px"],["variant","rounded","width","190","height","44","border-radius","16px"],["variant","text","width","80%","height","18"],["variant","text","width","55%","height","18"],[1,"ai-bubble","ai-bubble--user",3,"role"],[1,"sent-quote"],[1,"answer-summary"],[1,"aq-attachments","aq-attachments--sent"],["name","ng-text-quote","method","stroke","size","12"],[1,"sent-quote__text"],[1,"answer-summary__row"],["name","ng-check","method","stroke","size","14","color","#2970ff",1,"answer-summary__check"],[1,"answer-summary__content"],[1,"answer-summary__title"],[1,"answer-summary__answer"],[1,"aq-chip","aq-chip--static"],["method","stroke","size","14",1,"aq-chip__icon"],[1,"aq-chip__name"],["max-visible","3",1,"ai-bubble__steps",3,"steps"],[1,"ai-bubble",3,"role","hideIcon"],[1,"ai-bubble__content"],[1,"choice-picker"],["type","button",1,"choice-picker__step","choice-picker__resume-chip"],[1,"inline-widget"],[1,"forecast-record"],[1,"follow-ups"],["role","alert",1,"assistant-error"],[1,"assistant-text",3,"text","speedMs"],[1,"assistant-text","assistant-text--md",3,"value"],[1,"choice-picker__step"],[1,"choice-picker__group"],[1,"choice-picker__empty"],[1,"choice-picker__group",3,"nile-change"],[1,"choice-card",3,"choice-card--chosen","choice-card--locked"],[1,"choice-card"],[1,"choice-card__label"],[1,"choice-card__num"],[1,"choice-card__text"],[1,"choice-card__badge"],[1,"choice-card__name"],[1,"choice-card__hint"],[1,"choice-card__meta"],[3,"class"],[1,"choice-picker__footer-actions"],[1,"choice-picker__chat-draft"],["type","button",1,"choice-picker__chat-link",3,"click","disabled"],["type","button",1,"choice-picker__chat-link",3,"disabled"],["type","button",1,"choice-picker__chat-link","choice-picker__chat-link--preview",3,"disabled"],["name","ng-edit-02","method","stroke","size","12"],["type","button",1,"choice-picker__chat-link","choice-picker__chat-link--preview",3,"click","disabled"],["name","ng-eye","method","stroke","size","12"],[1,"choice-picker__chat-draft-label"],[1,"choice-picker__chat-draft-row"],[1,"choice-picker__chat-draft-input",3,"nile-input","keydown.enter","value"],["type","button",1,"choice-picker__step","choice-picker__resume-chip",3,"click"],[3,"config","loading","widgetId","conversationId"],[1,"chart-live"],[1,"chart-live","chart-live--preview"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown",3,"open"],[1,"forecast-meta"],[1,"inline-widget__actions"],[1,"chart-live__dot"],["slot","trigger","type","button","aria-label","Chart actions",1,"widget-header-btn"],["name","ng-dots-vertical","method","stroke","size","16"],["role","separator",1,"widget-menu__sep"],[1,"widget-menu__item",3,"click"],[1,"widget-menu__label"],["size","15",3,"name","method","color"],["size","15",3,"name","method"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown",3,"nile-hide","open"],["slot","trigger","aria-hidden","true",1,"widget-header-anchor"],[1,"type-picker__panel"],[1,"inline-action__loading"],[1,"inline-action__hint"],[1,"inline-action__error"],["size","16"],[1,"type-picker__section"],[1,"type-picker__grid"],["type","button",1,"type-picker__tile","type-picker__tile--sensible"],["type","button",1,"type-picker__tile","type-picker__tile--sensible",3,"click"],["method","stroke","size","16",3,"name"],["type","button",1,"type-picker__tile"],["type","button",1,"type-picker__tile",3,"click"],[1,"filter-builder__panel"],[1,"filter-builder__active"],[1,"filter-builder__chip"],["type","button",1,"filter-builder__chip-remove",3,"click"],["name","ng-x-close","method","stroke","size","10"],[1,"filter-builder__form"],[1,"filter-builder__select",3,"ngModelChange","ngModel"],[3,"value"],["size","14"],["type","text",1,"filter-builder__input",3,"placeholder","ngModel"],[1,"filter-builder__multi"],[1,"filter-builder__select",3,"ngModel"],["type","text",1,"filter-builder__input",3,"ngModelChange","keydown.enter","placeholder","ngModel"],["type","date",1,"filter-builder__input",3,"ngModelChange","ngModel"],[1,"filter-builder__and"],["type","number",1,"filter-builder__input",3,"ngModelChange","keydown.enter","placeholder","ngModel"],["type","number",1,"filter-builder__input",3,"ngModelChange","placeholder","ngModel"],[1,"filter-builder__multi-item"],["type","checkbox",3,"change","checked"],["value","","disabled",""],[1,"forecast-meta__item"],[1,"forecast-meta__label"],[1,"forecast-meta__value"],["variant","secondary","size","small",3,"click","disabled"],["variant","secondary","size","small",3,"disabled"],["variant","primary","size","small",3,"click","disabled"],["slot","prefix","name","ng-library","method","stroke","size","14"],["placement","top-end","distance","6",1,"dash-picker",3,"open"],["variant","primary","size","small"],["placement","top-end","distance","6",1,"dash-picker",3,"nile-hide","open"],["slot","trigger","variant","primary","size","small","caret","",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"chart-card",3,"click"],[1,"chart-card__icon"],["name","ng-bar-chart-square-02","method","stroke","size","18","color","#2970ff"],[1,"chart-card__body"],[1,"chart-card__title"],[1,"chart-card__meta"],["slot","suffix","name","ng-chevron-right","method","stroke","size","14","color","#fff"],["name","clock-rewind","method","stroke","size","13","color","#717680",1,"forecast-record__icon"],[1,"forecast-record__text"],["type","button",1,"forecast-record__action",3,"click","disabled"],["type","button",1,"follow-up",3,"follow-up--ai","disabled"],["type","button",1,"follow-up",3,"click","disabled"],["method","stroke","size","14",1,"follow-up__icon"],[1,"follow-up__label"],[1,"follow-up__badge"],["name","ng-alert-circle","method","stroke","size","16",1,"assistant-error__icon"],[1,"assistant-error__text"],[1,"choice-panel"],[1,"choice-panel__header"],[1,"choice-panel__count"],[1,"choice-panel__nav-group"],["type","button",1,"choice-panel__nav",3,"click"],["name","ng-chevron-left","method","stroke","size","14"],["name","ng-chevron-right","method","stroke","size","14"],["type","button",1,"choice-panel__nav","choice-panel__close",3,"click"],["name","ng-x","method","stroke","size","14"],[1,"choice-panel__options",3,"nile-change"],[1,"choice-panel-option"],[1,"choice-panel__hint"],[1,"choice-panel-option",3,"click"],[1,"choice-panel-option__label"],[1,"choice-panel-option__num"],[1,"choice-panel-option__text"],[1,"choice-panel-option__badge"],[1,"choice-panel-option__name"],[1,"choice-panel-option__hint"],["type","button",1,"choice-panel__skip",3,"click"],[1,"choice-panel__review"],[1,"choice-panel__review-row"],[1,"choice-panel__footer","choice-panel__footer--review"],[1,"choice-panel__review-title"],[1,"choice-panel__review-answer"],[1,"aq-composer-wrap",3,"dragenter","dragover","dragleave","drop"],[1,"aq-drop-overlay"],[1,"reply-quote"],[1,"aq-attachments"],["type","file","multiple","","hidden","",3,"change"],[1,"aq-composer",3,"keydown","nile-change","nile-submit","nile-stop","placeholder","hideModel","hideAddContext","rows","speechLang","value","loading"],["slot","toolbar-extras",3,"click"],["variant","ghost","size","small","title","Attach a file","aria-label","Attach a file",1,"aq-attach-btn"],["name","ng-upload-cloud-02","method","stroke","size","20"],[1,"reply-quote__text"],["type","button","aria-label","Remove quote",1,"reply-quote__dismiss",3,"click"],["name","ng-x","method","stroke","size","12"],[1,"aq-chip",3,"aq-chip--error"],[1,"aq-chip"],["size","12",1,"aq-chip__spin"],["type","button",1,"aq-chip__retry"],["type","button","aria-label","Remove attachment",1,"aq-chip__remove",3,"click"],["type","button",1,"aq-chip__retry",3,"click"],["variant","ghost","size","small","title","Attach a file","aria-label","Attach a file",1,"aq-attach-btn",3,"click"],["name","ng-paperclip","method","stroke","size","16"],["role","separator","aria-orientation","vertical","aria-label","Resize chat panel","title","Drag to resize",1,"aq-resizer",3,"pointerdown"],[1,"aq-artifact-pane"],[1,"aq-artifact-pane__header"],[1,"aq-artifact-pane__body"],[1,"aq-artifact-pane__empty"],[3,"widgets","conversationId","editMode","selectable","canSetAlert","canAddToStory","canForecast","forecastable","forecastingWidgetId","showEditDslInViewMode","widgetsLoading","dashboardFilters","resolvedFilters","applySummary","filterExplanation"],[1,"aq-artifact-pane__footer"],[1,"aq-artifact-pane__titles"],[1,"aq-artifact-pane__title"],[1,"aq-artifact-pane__subtitle"],[1,"aq-artifact-pane__header-actions"],[1,"aq-filters-pill"],["name","ng-filter-lines","method","stroke","size","14",1,"aq-filters-pill__icon"],["label","Filters","textPosition","left",3,"nile-change","isChecked"],[1,"aq-undo-redo-group"],["variant","ghost","hide-border","","size","small","aria-label","Undo",3,"click"],["slot","prefix","name","ng-undo","method","stroke","size","16","color","#344054"],["circle","","variant","ghost","hide-border","","size","small","aria-label","Redo","title","Redo",3,"click"],["name","ng-redo","method","stroke","size","16"],["aria-hidden","true",1,"aq-artifact-pane__header-divider"],["circle","","variant","ghost","size","small",3,"click"],["name","ng-x","method","stroke","size","16"],["name","ng-layout-grid","method","stroke","size","28","color","#98a2b3"],[1,"aq-artifact-pane__empty-title"],[1,"aq-artifact-pane__empty-sub"],[3,"selectionChange","forecast","setAlert","filterSubmit","filterChange","dslWidgetUpdated","dslEditorClosed","widgetClick","widgets","conversationId","editMode","selectable","canSetAlert","canAddToStory","canForecast","forecastable","forecastingWidgetId","showEditDslInViewMode","widgetsLoading","dashboardFilters","resolvedFilters","applySummary","filterExplanation"],["variant","secondary","size","small"],["hoist","","placement","top-end","distance","6",1,"dash-picker",3,"open"],["slot","prefix","name","ng-trend-up-01","method","stroke","size","14","color","#7a5af8"],["slot","prefix","name","ng-book-open-text","method","stroke","size","14"],["hoist","","placement","top-end","distance","6",1,"dash-picker",3,"nile-hide","open"],[1,"wfb-header","aq-builder-pane__header"],["name","ng-arrow-left","method","stroke","size","16"],["variant","text","width","180","height","16"],[3,"content"],["type","button",1,"aq-header-action",3,"click"],["method","stroke","size","18"],[3,"action","canToggleFilter","hasFilter","canForecast","anyForecastOn","editMode","showFullscreen","fullscreen","busy","showPromptGallery"],[3,"exitBuilder","executiveSummary","galleryPrompt","published","widgetClick","dashboardId","preseeded","galleryPrompts","canAddToStory"],["autofocus","",1,"conv-title-input",3,"input","keydown.enter","keydown.escape","value"],["content","Save name"],["type","button","aria-label","Save dashboard name",1,"aq-header-action",3,"click","disabled"],["size","14",1,"aq-header-action__spinner"],["name","ng-check","method","stroke","size","18","color","#2970ff"],[1,"wfb-header__title"],["content","Rename dashboard"],["type","button","aria-label","Rename dashboard",1,"aq-header-action",3,"click"],["name","ng-edit-02","method","stroke","size","16"],[1,"fs-section"],["for","fs-horizon",1,"fs-label"],[1,"fs-label__value"],["id","fs-horizon","type","range","min","1","step","1",1,"fs-slider",3,"input","value"],[1,"fs-hint"],["id","fs-gran-label",1,"fs-label"],["role","radiogroup","aria-labelledby","fs-gran-label",1,"fs-segmented"],[1,"fs-segment",3,"fs-segment--on","fs-segment--off"],["for","fs-confidence",1,"fs-label"],["id","fs-confidence","type","range","min","0","step","1",1,"fs-slider","fs-slider--ai",3,"input","value"],[1,"fs-segment"],["type","radio","name","fs-granularity",1,"fs-segment__input",3,"change","value","checked","disabled"],[1,"fs-label"],[1,"fs-card","fs-card--ai"],[1,"fs-card__title"],[1,"fs-card__body"],[1,"fs-card"],["method","stroke","size","14"],["type","search","clearable","",1,"prompt-gallery-search",3,"nile-input","nile-change","placeholder","value"],["aria-hidden","true",1,"prompt-gallery-skeleton"],[1,"prompt-gallery-prompts",3,"items","vertical","wrap"],[1,"prompt-gallery-skeleton__item"],["variant","rounded","width","16","height","16","border-radius","4px"],[1,"prompt-gallery-skeleton__label"],[1,"prompt-gallery-prompts",3,"nile-item-click","items","vertical","wrap"],[1,"aq-detail-overlay"],[1,"aq-detail-overlay__crumbs"],[3,"nile-click"],["variant","text","width","160","height","16"],[1,"aq-detail-overlay__body"],[3,"widgets","editMode","selectable","selectedWidgetIds","canSetAlert","canAddToStory","canForecast"],[1,"aq-detail-overlay__footer"],[1,"aq-detail-skeleton-grid",3,"height"],[1,"aq-detail-skeleton"],[1,"aq-detail-skeleton-grid"],["variant","rectangular","border-radius","12px","width","100%","height","100%",1,"aq-detail-skeleton-slot",3,"left","top","width","height"],["variant","rectangular","border-radius","12px","width","100%","height","100%",1,"aq-detail-skeleton-slot"],[1,"aq-detail-skeleton__row"],["variant","rectangular","width","100%","height","96","border-radius","12px"],["variant","rectangular","width","100%","height","280","border-radius","12px"],[3,"selectionChange","widgets","editMode","selectable","selectedWidgetIds","canSetAlert","canAddToStory","canForecast"],[1,"aq-detail-overlay__select-count"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#98a2b3"],["slot","prefix","name","ng-layout-grid","method","stroke","size","14","color","#fff"],[3,"closed","saved","open","widget","dashboardId","source","sourceName","authoringMode"],[3,"closed","added","open","widget"]],template:function(e,n){if(e&1&&(l(0,"section",9),h(1,ji,3,7,"button",10),l(2,"div",11),h(3,Mo,43,12,"header",12),h(4,ra,21,10,"div",13),h(5,yl,2,1),fe(6,Tl,10,16,"ng-template",null,0,qe),d(),h(8,Fl,1,2,"div",14),h(9,Gl,7,6,"aside",15),h(10,Xl,15,18,"section",16),l(11,"nile-dialog",17),g("nile-request-close",function(){return n.saveDialogOpen.set(!1)})("nile-hide",function(){return n.saveDialogOpen.set(!1)}),l(12,"nile-input",18),g("nile-input",function(a){return n.saveDashboardName.set(a.detail.value)})("keydown.enter",function(){return n.confirmSaveDashboard()}),d(),l(13,"div",19)(14,"nile-button",20),g("click",function(){return n.saveDialogOpen.set(!1)}),_(15),d(),l(16,"nile-button",21),g("click",function(){return n.confirmSaveDashboard()}),_(17),d()()(),l(18,"nile-drawer",22),g("nile-request-close",function(){return n.closeForecastSettings()})("nile-hide",function(){return n.closeForecastSettings()}),l(19,"span",23),m(20,"nile-glyph",24),l(21,"span"),_(22),d()(),h(23,as,1,1),l(24,"div",25)(25,"nile-button",20),g("click",function(){return n.closeForecastSettings()}),_(26),d(),l(27,"nile-button",21),g("click",function(){return n.applyForecastSettings()}),_(28),d()()(),l(29,"nile-drawer",26),g("nile-request-close",function(){return n.closeGallery()})("nile-hide",function(){return n.closeGallery()}),h(30,_s,6,3),d(),fe(31,ws,1,1,"ng-template",null,1,qe),h(33,ks,1,6,"app-alert-drawer",27),h(34,Ps,2,0,"nile-executive-summary",28),d(),h(35,As,1,2,"app-story-picker-drawer",29),fe(36,Ms,7,3,"ng-template",null,2,qe)),e&2){let o,a;B("aq-shell--fullscreen",n.builderFullscreen())("aq-shell--resizing",n.isResizing()),A("data-mode",n.layoutMode()),s(),C((o=n.quoteBadge())?1:-1,o),s(),Z("flex-basis",n.chatPaneStyleWidth(),"px")("max-width",n.chatPaneStyleWidth(),"px"),s(),C(n.showHeader()?3:-1),s(),C(n.features().library&&n.chatPaneTab()==="library"?4:-1),s(),C(n.chatPaneTab()==="chat"?5:-1),s(3),C((n.layoutMode()==="split"||n.layoutMode()==="builder")&&!n.builderFullscreen()?8:-1),s(),C(n.artifactOpen()?9:-1),s(),C(n.builderOpen()?10:-1),s(),b("label",n.copy().saveDashboardDialogLabel),A("open",n.saveDialogOpen()?"":null),s(),b("placeholder",n.copy().dashboardNamePlaceholder)("value",n.saveDashboardName()),s(3),v(n.copy().cancelButton),s(),A("loading",n.savingDashboard()?"":null)("disabled",!n.saveDashboardName().trim()||n.savingDashboard()?"":null),s(),F(" ",n.copy().saveDashboardButton," "),s(),b("label",n.copy().forecastSettingsLabel)("open",n.forecastSettingsOpen()),s(4),v(n.copy().forecastSettingsLabel),s(),C((a=n.forecastDraft())?23:-1,a),s(3),v(n.copy().cancelButton),s(2),v(n.copy().applyButton),s(),b("label",n.copy().promptGalleryLabel)("open",n.galleryOpen()),s(),C(n.galleryOpen()?30:-1),s(3),C(n.features().alerts?33:-1),s(),C(n.features().executiveSummary?34:-1),s(),C(-1)}},dependencies:[It,je,Ge,He,$e,Be,Ue,Le,We,Dn,Fn,rt,wn,lt,Mn,On],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;font-family:var(--ng-font-family-body, "Inter", system-ui, sans-serif);background:var(--ng-colors-bg-active, #f9fafb);color:#101828}.wfb-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.aq-header-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;outline:0;background:transparent;color:var(--ng-colors-text-tertiary-600, #535862);cursor:pointer;border-radius:6px;flex-shrink:0}.aq-header-action[_ngcontent-%COMP%]:hover, .aq-header-action[_ngcontent-%COMP%]:focus, .aq-header-action[_ngcontent-%COMP%]:focus-visible{outline:0;background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-primary-900, #181d27)}.aq-header-action[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.wfb-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;background:#fff;flex-shrink:0;gap:12px}.wfb-header__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}.wfb-header__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.wfb-header__right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.aq-scope-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;max-width:220px;height:24px;padding:0 4px 0 8px;border-radius:999px;border:1px solid var(--ng-colors-border-secondary);background:var(--ng-colors-bg-secondary-50);color:var(--ng-colors-text-tertiary-600);font-size:12px;font-weight:500;flex-shrink:0}.aq-scope-chip__icon[_ngcontent-%COMP%]{flex-shrink:0}.aq-scope-chip__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-scope-chip__clear[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;flex-shrink:0}.aq-scope-chip__clear[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-active);color:var(--ng-colors-text-primary-900)}.scope-branch[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.scope-branch__label[_ngcontent-%COMP%]{flex:1}.scope-branch__icon[_ngcontent-%COMP%], .scope-branch__arrow[_ngcontent-%COMP%]{flex-shrink:0}.scope-menu__loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:8px 12px;max-width:max-content}.scope-menu__empty[_ngcontent-%COMP%]{padding:8px 12px;color:var(--ng-colors-text-tertiary-600);font-size:13px}.scope-item__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.conv-trigger__label[_ngcontent-%COMP%]{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.conv-title-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:none;background:transparent;padding:4px 2px 4px 6px;border-radius:6px;cursor:pointer;max-width:360px}.conv-title-btn[_ngcontent-%COMP%] .wfb-header__title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400;color:#344054}.conv-title-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f2f4f7}.conv-title-btn[_ngcontent-%COMP%]:disabled{cursor:default}.conv-title-btn__edit[_ngcontent-%COMP%]{flex-shrink:0;opacity:0;transition:opacity .12s}.conv-title-btn[_ngcontent-%COMP%]:hover:not(:disabled) .conv-title-btn__edit[_ngcontent-%COMP%]{opacity:1}.conv-title-input[_ngcontent-%COMP%]{font-family:inherit;font-size:14px;font-weight:400;color:#344054;border:1px solid #2970ff;border-radius:6px;padding:4px 8px;outline:none;min-width:220px;box-shadow:0 0 0 3px #2970ff14}.header-conn-wrap[_ngcontent-%COMP%]{position:relative}.header-conn-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:12px;font-weight:500;color:#344054;cursor:pointer;transition:border-color .15s,box-shadow .15s;white-space:nowrap;max-width:200px}.header-conn-chip[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#98a2b3;box-shadow:0 1px 3px #10182814}.header-conn-chip--open[_ngcontent-%COMP%]{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff14}.header-conn-chip[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.header-conn-chip__label[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;max-width:150px}.header-conn-chip__chevron[_ngcontent-%COMP%]{flex-shrink:0;transition:transform .15s}.header-conn-chip__chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.header-conn-chip__spinner[_ngcontent-%COMP%]{width:12px;height:12px;border:1.5px solid #e0e5ef;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;flex-shrink:0}.header-conn-dropdown[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;background:#fff;border:1px solid #eaecf0;border-radius:10px;box-shadow:0 8px 24px #1018281f;z-index:20;overflow:hidden}.header-conn-dropdown__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;color:#344054;cursor:pointer;transition:background .1s}.header-conn-dropdown__item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover{background:#f9fafb}.header-conn-dropdown__item--active[_ngcontent-%COMP%]{background:#eff4ff;color:#2970ff;font-weight:500}.header-conn-dropdown__check[_ngcontent-%COMP%]{color:#2970ff;flex-shrink:0}.header-conn-dropdown__delete[_ngcontent-%COMP%]{flex-shrink:0;opacity:0;color:#667085;transition:opacity .1s,color .1s}.header-conn-dropdown__item-title[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover .header-conn-dropdown__delete[_ngcontent-%COMP%]{opacity:1}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover .header-conn-dropdown__delete[_ngcontent-%COMP%]:hover{color:#d92d20}.header-conn-dropdown__item--new[_ngcontent-%COMP%]{color:#2970ff;font-weight:500;border-bottom:1px solid #f2f4f7;padding-bottom:10px;margin-bottom:2px}.header-new-chat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;background:transparent;border:1px solid #d0d5dd;border-radius:8px;font-size:12px;font-weight:500;color:#344054;cursor:pointer;font-family:inherit;white-space:nowrap;transition:border-color .15s,background .15s}.header-new-chat[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb;border-color:#98a2b3}.header-new-chat[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.ai-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#eff4ff;flex-shrink:0}.ai-badge--sm[_ngcontent-%COMP%]{width:22px;height:22px}.ai-badge--lg[_ngcontent-%COMP%]{width:48px;height:48px}.conv-dropdown[_ngcontent-%COMP%]{margin-left:-8px}.conv-dropdown[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]::part(base){padding-left:2px;padding-right:2px}.conv-dropdown[_ngcontent-%COMP%]::part(panel){width:380px;max-width:90vw;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper), .related-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper), .dash-picker[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper){max-height:340px;overflow-x:hidden}.related-trigger__label[_ngcontent-%COMP%]{display:inline-block;max-width:0;overflow:hidden;white-space:nowrap;opacity:0;transition:max-width .2s ease,opacity .15s ease}.related-trigger[_ngcontent-%COMP%]:hover .related-trigger__label[_ngcontent-%COMP%], .related-trigger[_ngcontent-%COMP%]:focus-visible .related-trigger__label[_ngcontent-%COMP%]{max-width:120px;opacity:1}.dash-picker[_ngcontent-%COMP%]::part(panel){width:420px;max-width:92vw;overflow:hidden}.related-dropdown[_ngcontent-%COMP%]::part(panel){width:420px;max-width:90vw;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]{display:block;width:100%}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label), .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label), .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label){display:flex;flex:1 1 auto;min-width:0;margin:0}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base), .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base), .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base){width:100%;min-width:0;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%]{position:sticky;top:0;z-index:2;background:#fff}.scope-menu__loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:8px 12px}.menu-empty[_ngcontent-%COMP%]{padding:10px 16px;font-size:12.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.menu-skeleton-item[_ngcontent-%COMP%]{pointer-events:none}.prompt-gallery-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;width:100%}.prompt-gallery-skeleton__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:16px;border:1px solid #e9eaeb;border-radius:10px;background:#fff}.prompt-gallery-skeleton__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.aq-header-action__spinner[_ngcontent-%COMP%]{display:inline-flex;color:#2970ff}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__title[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__title[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-primary, #155eef);font-weight:600}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__icon[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__icon[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-primary, #155eef);opacity:1}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__meta[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__meta[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-secondary, #2970ff)}.list-group[_ngcontent-%COMP%]{padding:10px 8px 4px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-quaternary, #a4a7ae);pointer-events:none}.list-new[_ngcontent-%COMP%]{border-bottom:1px solid var(--ng-colors-border-tertiary, #f5f5f5)}.list-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;max-width:100%;min-width:0;overflow:hidden}.list-row__icon[_ngcontent-%COMP%]{flex-shrink:0;opacity:.55;color:var(--ng-colors-text-tertiary-600, #535862)}.list-row__text[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;display:flex;flex-direction:column;gap:2px}.list-row__title[_ngcontent-%COMP%]{font-size:13px;line-height:18px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row__meta[_ngcontent-%COMP%]{font-size:12px;line-height:16px;color:var(--ng-colors-text-tertiary-600, #535862);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row__rename[_ngcontent-%COMP%]{width:100%;min-width:0;font:inherit;font-size:13px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);padding:1px 6px;border:1px solid var(--ng-colors-border-primary, #d5d7da);border-radius:6px;background:#fff;outline:none}.list-row__rename[_ngcontent-%COMP%]:focus{border-color:var(--ng-colors-text-brand-primary, #155eef)}.list-row__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;flex:0 0 auto;margin-left:auto}.list-row__act[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ng-colors-text-tertiary-600, #535862);opacity:.45;cursor:pointer;transition:opacity .12s,background-color .12s,color .12s}.list-row__act[_ngcontent-%COMP%]:hover{opacity:1;background:var(--ng-colors-bg-tertiary, #f5f5f5)}.list-row__act--danger[_ngcontent-%COMP%]:hover{color:#d92d20}.aq-chat[_ngcontent-%COMP%]{flex:1;min-height:0;display:block}.aq-chat[_ngcontent-%COMP%]::part(viewport){scrollbar-width:none;-ms-overflow-style:none}.aq-chat[_ngcontent-%COMP%]::part(scroll-button){display:none}.aq-chat[_ngcontent-%COMP%]::part(messages){padding:16px;display:flex;flex-direction:column;gap:16px}.aq-chat[_ngcontent-%COMP%]::part(empty){position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;padding:24px 16px;box-sizing:border-box}.msg-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-self:flex-start}.msg-skeleton--ai[_ngcontent-%COMP%]{width:100%;max-width:100%}.msg-skeleton--user[_ngcontent-%COMP%]{align-self:flex-end;max-width:60%}nile-skeleton-loader[_ngcontent-%COMP%]::part(skeleton){background-color:#e4e7ec;opacity:1}.welcome-wrap[_ngcontent-%COMP%]{flex:1;min-height:0;display:flex;overflow:auto}.welcome-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin:auto;width:100%;max-width:820px;padding:48px 16px}.welcome-title[_ngcontent-%COMP%]{margin:0;font-size:22px;font-weight:700;color:#181d27;letter-spacing:-.02em}.welcome-sub[_ngcontent-%COMP%]{margin:0 0 4px;font-size:14px;color:#535862;max-width:440px;line-height:1.6}.welcome-composer[_ngcontent-%COMP%]{width:100%;margin:8px auto 4px}.aq-composer[_ngcontent-%COMP%]{display:block;width:100%}.welcome-prompts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.prompt-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:12px 14px;border:1px solid #e9eaeb;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.prompt-card[_ngcontent-%COMP%]:hover{border-color:#b2ccff;box-shadow:0 1px 2px #1018280f}.prompt-card__icon[_ngcontent-%COMP%]{flex:0 0 auto}.prompt-card__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:13px;font-weight:500;line-height:1.45;color:#414651;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.prompt-card__badge[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;padding:2px 6px;border-radius:4px;background:#7a5af8;color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.prompt-card--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#fbfaff}.prompt-card--ai[_ngcontent-%COMP%]:hover{border-color:#b9a6fb}.forecast-drawer[_ngcontent-%COMP%]{--size: 420px}.forecast-drawer[_ngcontent-%COMP%]::part(header){align-items:center;padding:0 12px 0 16px;border-bottom:1px solid #eaecf0}.forecast-drawer[_ngcontent-%COMP%]::part(title){display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#101828}.forecast-drawer[_ngcontent-%COMP%]::part(body){display:flex;flex-direction:column;gap:22px;padding:20px 16px}.forecast-drawer[_ngcontent-%COMP%]::part(footer){border-top:1px solid #eaecf0;padding:12px 16px}.forecast-drawer__label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#101828}.forecast-drawer__mark[_ngcontent-%COMP%]{flex:0 0 auto}.fs-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.fs-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#414651}.fs-label__value[_ngcontent-%COMP%]{color:#5925dc}.fs-hint[_ngcontent-%COMP%]{margin:0;font-size:11px;line-height:1.5;color:#717680}.fs-slider[_ngcontent-%COMP%]{appearance:none;width:100%;height:6px;margin:2px 0;border-radius:3px;background:#eaecf0;cursor:pointer;background-image:linear-gradient(#2970ff,#2970ff);background-repeat:no-repeat;background-size:var(--fs-fill, 50%) 100%}.fs-slider--ai[_ngcontent-%COMP%]{background-image:linear-gradient(#7a5af8,#7a5af8)}.fs-slider[_ngcontent-%COMP%]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#2970ff;box-shadow:0 1px 3px #10182833}.fs-slider--ai[_ngcontent-%COMP%]::-webkit-slider-thumb{background:#7a5af8}.fs-slider[_ngcontent-%COMP%]::-moz-range-thumb{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#2970ff;box-shadow:0 1px 3px #10182833}.fs-slider--ai[_ngcontent-%COMP%]::-moz-range-thumb{background:#7a5af8}.fs-slider[_ngcontent-%COMP%]:focus-visible{outline:2px solid #84adff;outline-offset:3px}.fs-segmented[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:3px;border:1px solid #e9eaeb;border-radius:8px;background:#f9fafb}.fs-segment[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:6px 4px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;color:#535862;white-space:nowrap;transition:background .15s ease,color .15s ease}.fs-segment__input[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.fs-segment[_ngcontent-%COMP%]:hover{color:#181d27}.fs-segment--on[_ngcontent-%COMP%]{background:#2970ff;color:#fff;font-weight:600}.fs-segment--on[_ngcontent-%COMP%]:hover{color:#fff}.fs-segment--off[_ngcontent-%COMP%]{color:#a4a7ae;cursor:not-allowed}.fs-segment--off[_ngcontent-%COMP%]:hover{color:#a4a7ae}.fs-segment[_ngcontent-%COMP%]:has(.fs-segment__input:focus-visible){outline:2px solid #84adff;outline-offset:1px}.fs-card[_ngcontent-%COMP%]{padding:12px 14px;border:1px solid #e9eaeb;border-radius:10px;background:#fcfcfd}.fs-card__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:12px;font-weight:600;color:#414651}.fs-card__body[_ngcontent-%COMP%]{margin:0;font-size:11px;line-height:1.6;color:#535862}.fs-card--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#fbfaff}.fs-card--ai[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#5925dc}.fs-card--pass[_ngcontent-%COMP%]{border-color:#abefc6;background:#f6fef9}.fs-card--pass[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#067647}.fs-card--warn[_ngcontent-%COMP%]{border-color:#fedf89;background:#fffcf5}.fs-card--warn[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#b54708}.fs-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.aq-detail-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;background:#fff;animation:_ngcontent-%COMP%_aq-slide-in .16s ease}.aq-detail-overlay__crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;flex-shrink:0}.aq-detail-overlay__crumbs[_ngcontent-%COMP%] nile-breadcrumb[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.aq-detail-overlay__body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;padding:20px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-detail-overlay__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-detail-overlay__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-detail-overlay__select-count[_ngcontent-%COMP%]{margin-right:auto;font-size:13px;font-weight:500;color:#414651}.aq-detail-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.aq-detail-skeleton__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.aq-detail-skeleton-grid[_ngcontent-%COMP%]{position:relative;width:100%}.aq-detail-skeleton-slot[_ngcontent-%COMP%]{position:absolute}.aq-detail-skeleton-slot[_ngcontent-%COMP%]::part(base){height:100%}.prompt-gallery-prompts[_ngcontent-%COMP%]{width:100%}.prompt-gallery-prompts[_ngcontent-%COMP%]::part(item-label){font-weight:500}.ai-bubble__steps[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box;margin-bottom:12px;padding:12px 16px}.wfb-suggestions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}.wfb-suggestions-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-top:12px}.suggestions-spinner[_ngcontent-%COMP%]{width:16px;height:16px;border:2px solid #e0e5ef;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;flex-shrink:0}.suggestions-loading-content[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:2px}.suggestions-loading-text[_ngcontent-%COMP%]{color:#667085;font-size:13px;font-style:italic}.suggestions-loading-dots[_ngcontent-%COMP%]{display:inline-flex;gap:1px}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#667085;font-size:13px;animation:_ngcontent-%COMP%_dot-fade 1.4s ease-in-out infinite}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_dot-fade{0%,80%,to{opacity:.2}40%{opacity:1}}.welcome-prompts-skeleton[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.welcome-prompts-skeleton__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e9eaeb;border-radius:12px;background:#fff}.welcome-prompts-skeleton__icon[_ngcontent-%COMP%]{flex:0 0 auto}.welcome-prompts-skeleton__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;max-width:70%}.prompt-gallery-row[_ngcontent-%COMP%]{width:100%;margin:2px auto 0;display:flex;justify-content:flex-end;gap:16px}.prompt-gallery-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:2px 0;cursor:pointer;font:inherit;font-size:13px;font-weight:400;color:#2970ff}.prompt-gallery-link[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.prompt-gallery-link[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{text-decoration:underline}.prompt-gallery-drawer[_ngcontent-%COMP%]{--size: calc(100vw - 248px) }.prompt-gallery-drawer[_ngcontent-%COMP%]::part(header){height:var(--aq-header-h, 56px);align-items:center;padding:0 16px;border-bottom:1px solid #eaecf0}.prompt-gallery-drawer[_ngcontent-%COMP%]::part(title){font-size:16px;font-weight:600;color:#101828}.prompt-gallery-drawer[_ngcontent-%COMP%]::part(body){display:flex;flex-direction:column;gap:14px}.prompt-gallery-search[_ngcontent-%COMP%]{width:100%;flex-shrink:0}.prompt-gallery-empty[_ngcontent-%COMP%]{color:#717680;font-size:13px;padding:24px 4px}.prompt-gallery-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;align-content:start}.prompt-gallery-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #e9eaeb;border-radius:12px;padding:12px 16px;background:#fff;cursor:pointer;text-align:left;font:inherit;font-size:13px;font-weight:500;color:#414651;line-height:1.4;transition:border-color .18s,box-shadow .18s}.prompt-gallery-item[_ngcontent-%COMP%]:hover{border-color:#2970ff;box-shadow:0 6px 24px #2970ff1a}.aq-library-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.aq-library-group__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.aq-library-group__label[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#71798d}.aq-library-group__toggle[_ngcontent-%COMP%]{border:none;background:none;padding:0;font:inherit;font-size:12px;font-weight:600;color:#2563eb;cursor:pointer}.aq-library-group__toggle[_ngcontent-%COMP%]:hover{text-decoration:underline}.aq-lib-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.aq-lib-cards--dashboards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:10px}.aq-lib-card-wrap[_ngcontent-%COMP%]{position:relative;cursor:pointer;border-radius:10px;transition:box-shadow .15s}.aq-lib-card-wrap[_ngcontent-%COMP%] nile-kpi-chart[_ngcontent-%COMP%]{display:block;height:172px;box-sizing:border-box}.aq-lib-card-wrap--selected[_ngcontent-%COMP%]{box-shadow:0 0 0 3px #1d4ed826;border-radius:10px}.aq-lib-card[_ngcontent-%COMP%]{cursor:pointer;padding:13px 14px;border-radius:10px;background:#fff;border:1.5px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08;transition:border-color .15s,box-shadow .15s}.aq-lib-card[_ngcontent-%COMP%]:hover{border-color:#c7d5f5}.aq-lib-card--dashboard[_ngcontent-%COMP%]{display:block;width:100%;padding:0;overflow:hidden;text-align:left;font:inherit;color:inherit}.aq-lib-card--dashboard[_ngcontent-%COMP%] .aq-lib-card__row[_ngcontent-%COMP%]{align-items:center;padding:11px 13px 12px}.aq-lib-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.aq-lib-skeleton__kpi[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;height:172px;box-sizing:border-box;padding:16px;border-radius:10px;background:#fff;border:1px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08}.aq-lib-skeleton__kpi[_ngcontent-%COMP%] nile-skeleton-loader[_ngcontent-%COMP%]:last-child{margin-top:auto}.aq-lib-skeleton__dash[_ngcontent-%COMP%]{border-radius:10px;overflow:hidden;background:#fff;border:1px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08}.aq-lib-skeleton__dash-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:13px 14px}.aq-lib-card__preview[_ngcontent-%COMP%]{position:relative;height:108px;background:linear-gradient(180deg,#fbfcfe,#f4f7fb);border-bottom:1px solid #eef1f6}.aq-lib-card__viz[_ngcontent-%COMP%]{position:absolute;inset:6px 8px 4px;pointer-events:none}.aq-lib-card__viz-empty[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:7px;padding:18px}.aq-lib-card__viz-empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:0 0 14px;border-radius:3px 3px 0 0;background:#e3e9f2}.aq-lib-card__chip[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:5px;background:#ffffffeb;border:1px solid #e6eaf1;font-size:10.5px;font-weight:600;color:#56607a}.aq-lib-card__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.aq-lib-card__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.aq-lib-card__title[_ngcontent-%COMP%]{font-size:13px;font-weight:500;letter-spacing:-.01em;line-height:1.35;color:#101828}.aq-lib-card__title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px}.aq-lib-card__badge[_ngcontent-%COMP%]{flex-shrink:0;font-size:10.5px;font-weight:600;color:#56607a;background:#eef1f6;border-radius:5px;padding:2px 6px}.aq-lib-card__desc[_ngcontent-%COMP%]{font-size:11.5px;color:#71798d;line-height:1.45;margin-top:3px}.aq-lib-card__check[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;z-index:1;flex:0 0 18px;width:18px;height:18px;border-radius:5px;border:1.5px solid #cbd5e1;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.aq-lib-card__check[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{opacity:0}.aq-lib-card__check--on[_ngcontent-%COMP%]{border-color:#1d4ed8;background:#1d4ed8}.aq-lib-card__check--on[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{opacity:1}.ai-bubble[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;margin-inline:auto}.ai-bubble__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.ai-bubble--user[_ngcontent-%COMP%]{white-space:pre-line}.sent-quote[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-bottom:6px;padding:6px 8px;border-radius:8px;border-left:3px solid #155eef;background:#155eef0f;color:var(--ng-colors-text-tertiary-600, #535862);font-size:12px;line-height:1.4}.sent-quote[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px;color:#155eef}.answer-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.answer-summary__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.answer-summary__check[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px}.answer-summary__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.answer-summary__title[_ngcontent-%COMP%]{font-size:13.5px;font-weight:400;color:var(--ng-colors-text-primary-900, #181d27)}.answer-summary__answer[_ngcontent-%COMP%]{font-size:12.5px;font-weight:500;color:var(--ng-colors-text-tertiary-600, #535862)}.answer-summary__answer[_ngcontent-%COMP%]:before{content:"\\2014 "}.sent-quote__text[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ai-bubble[_ngcontent-%COMP%]::part(thinking){border:none;padding-left:2px;font-size:12px}.ai-bubble[_ngcontent-%COMP%]::part(base), .ai-bubble[_ngcontent-%COMP%]::part(bubble){transition:max-width .22s ease,width .22s ease}.assistant-text[_ngcontent-%COMP%]{display:block;max-width:680px}.user-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-start;gap:8px;width:100%;max-width:860px;margin-inline:auto}.user-icon[_ngcontent-%COMP%]{order:2;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f2f4f7;flex-shrink:0;margin-top:2px}.user-bubble[_ngcontent-%COMP%]{order:1;background:#2970ff;border-radius:12px 2px 12px 12px;padding:10px 14px;font-size:14px;color:#fff;max-width:70%;white-space:pre-wrap;word-break:break-word}.assistant-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;width:100%;max-width:860px;margin-inline:auto}.assistant-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eff4ff;flex-shrink:0;margin-top:2px}.assistant-body[_ngcontent-%COMP%]{flex:1;min-width:0;max-width:760px;display:flex;flex-direction:column;gap:12px}.assistant-text[_ngcontent-%COMP%]{font-size:14px;color:#344054;line-height:1.6;margin:0;white-space:pre-wrap;word-break:break-word}.assistant-text--error[_ngcontent-%COMP%]{color:#d92d20}.assistant-text--md[_ngcontent-%COMP%]{white-space:normal;display:block}.assistant-error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #fda29b;border-radius:8px;background:#fffbfa;font-size:13px;line-height:1.5;color:#b42318}.assistant-error__icon[_ngcontent-%COMP%]{flex-shrink:0;color:#d92d20;margin-top:1px}.assistant-error__text[_ngcontent-%COMP%]{word-break:break-word}.wfb-tools[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.wfb-tool[_ngcontent-%COMP%]{font-size:11px}.wfb-tool[_ngcontent-%COMP%]::part(content){display:inline-flex;align-items:center;gap:5px}.wfb-tool__spinner[_ngcontent-%COMP%]{width:10px;height:10px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;display:inline-block}.wfb-tool__detail[_ngcontent-%COMP%]{opacity:.75;font-weight:400}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.agent-trace[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:14px;margin:2px 0;padding-left:18px}.agent-trace[_ngcontent-%COMP%]:before{content:"";position:absolute;top:4px;bottom:4px;left:3px;width:2px;border-radius:1px;background:#eaecf0}.agent-trace__row[_ngcontent-%COMP%]{min-width:0}.agent-trace__text[_ngcontent-%COMP%]{margin:0;font-size:13px;line-height:1.6;color:#717680;white-space:pre-wrap;word-break:break-word}.agent-trace__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.wfb-status-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:4px 0}.wfb-status-text[_ngcontent-%COMP%]{font-size:13px;color:#667085;font-style:italic}.wfb-typing[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center;padding:6px 0}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#98a2b3;animation:_ngcontent-%COMP%_bounce 1.2s ease-in-out infinite}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_bounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}.chart-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #eaecf0;border-radius:12px;background:#fff;box-shadow:0 1px 3px #1018280f;cursor:pointer;transition:border-color .15s,box-shadow .15s;width:100%;max-width:100%}.chart-card[_ngcontent-%COMP%]:hover{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff14}.chart-card__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#eff4ff;flex-shrink:0}.chart-card__body[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.chart-card__title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-card__meta[_ngcontent-%COMP%]{font-size:12px;color:#667085}.aq-composer-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:20px;background:#fff;transition:border-color .12s ease,box-shadow .12s ease}.aq-composer-wrap[_ngcontent-%COMP%]:focus-within{border-color:#155eef;box-shadow:0 0 0 3px #155eef1f}.aq-composer-wrap--dragover[_ngcontent-%COMP%]{border-color:#155eef;border-style:dashed;box-shadow:0 0 0 3px #155eef1f}.aq-composer-wrap[_ngcontent-%COMP%] > .aq-attachments[_ngcontent-%COMP%]{padding:10px 14px 0}.reply-badge[_ngcontent-%COMP%]{position:fixed;z-index:1000;transform:translate(-50%,calc(-100% - 8px));display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:none;border-radius:999px;background:var(--ng-colors-bg-primary-solid, #181d27);color:#fff;font-size:12px;font-weight:500;line-height:1;box-shadow:var(--ng-shadow-lg, 0 8px 16px rgba(16, 24, 40, .16));cursor:pointer}.reply-badge[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-primary-solid-hover, #0c0e12)}.reply-badge--below[_ngcontent-%COMP%]{transform:translate(-50%,8px)}.reply-quote[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;margin:10px 14px 0;padding:8px 10px;border-radius:10px;border-left:3px solid #155eef;background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-tertiary-600, #535862);font-size:12px;line-height:1.4}.reply-quote[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px;color:#155eef;transform:rotate(180deg)}.reply-quote__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.reply-quote__dismiss[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:2px;border:none;background:transparent;color:inherit;cursor:pointer;border-radius:4px}.reply-quote__dismiss[_ngcontent-%COMP%]:hover{background:#0000000f}.aq-drop-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:20px;background:#eff6ffeb;color:#155eef;font-size:13px;font-weight:500;pointer-events:none}.aq-composer[_ngcontent-%COMP%]::part(base){border:0;border-radius:0;background:transparent;box-shadow:none}.aq-composer[_ngcontent-%COMP%]::part(toolbar-end){gap:6px;align-items:center}.aq-composer[loading][_ngcontent-%COMP%]::part(send-button){background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-tertiary-600, #535862)}.aq-composer[loading][_ngcontent-%COMP%]::part(send-button):hover{background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-primary-900, #181d27)}.aq-attachments[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.aq-attachments--sent[_ngcontent-%COMP%]{margin-top:6px}.aq-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 8px;border:1px solid #eaecf0;border-radius:8px;background:#f9fafb;font-size:12px;color:#344054}.aq-chip--error[_ngcontent-%COMP%]{border-color:#fda29b;background:#fffbfa;color:#b42318}.aq-chip--static[_ngcontent-%COMP%]{background:#fff}.aq-chip__icon[_ngcontent-%COMP%]{color:#667085;flex-shrink:0}.aq-chip__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-chip__spin[_ngcontent-%COMP%]{flex-shrink:0}.aq-chip__retry[_ngcontent-%COMP%]{border:none;background:none;padding:0;color:#b42318;font-size:12px;font-weight:600;cursor:pointer}.aq-chip__remove[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border:none;background:none;padding:0;cursor:pointer;color:#98a2b3;flex-shrink:0}.aq-chip__remove[_ngcontent-%COMP%]:hover{color:#475467}.wfb-breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:13px}.wfb-breadcrumb__current[_ngcontent-%COMP%]{color:#101828;font-weight:500}.wfb-preview-close[_ngcontent-%COMP%]{cursor:pointer;color:#667085}.wfb-preview-close[_ngcontent-%COMP%]:hover{color:#101828}.wfb-preview-link[_ngcontent-%COMP%]{background:none;border:none;padding:0;font-size:13px;font-weight:500;color:#2970ff;cursor:pointer;font-family:inherit}.wfb-preview-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.input-area[_ngcontent-%COMP%]{flex-shrink:0;padding:4px 16px 18px;display:flex;flex-direction:column;justify-content:center}.chat-input-pill[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;width:100%;max-width:100%;padding:14px 16px 12px;background:#fff;border:1px solid #e9eaeb;border-radius:24px;box-shadow:0 1px 2px #1018280a,0 8px 24px #1018280f;cursor:text;transition:border-color .15s,box-shadow .15s}.chat-input-pill[_ngcontent-%COMP%]:focus-within{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1f}.voice-wave[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:22px;margin:0 8px;display:block}.input-query[_ngcontent-%COMP%]{display:block;width:100%;min-width:0;border:none;outline:none;resize:none;font:inherit;font-size:15px;line-height:1.4;color:#181d27;background:transparent;padding:6px 2px;max-height:160px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.input-query[_ngcontent-%COMP%]::placeholder{color:#717680}.input-query[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.input-query--live[_ngcontent-%COMP%]{min-height:21px;cursor:default;text-align:left}.input-query__interim[_ngcontent-%COMP%]{font-style:italic;opacity:.55}.pill-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.pill-toolbar__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.pill-toolbar__right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-left:auto}.conn-chip-wrap[_ngcontent-%COMP%]{position:relative}.datasource-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;background:#eff4ff;border-radius:20px;font-size:12px;font-weight:500;color:#2970ff;cursor:pointer;-webkit-user-select:none;user-select:none;max-width:200px;border:1px solid transparent}.datasource-chip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.datasource-chip__chevron[_ngcontent-%COMP%]{transition:transform .15s;flex-shrink:0}.datasource-chip__chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.datasource-chip[_ngcontent-%COMP%]:hover:not(:disabled){background:#e0eaff}.datasource-chip[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.datasource-chip--open[_ngcontent-%COMP%]{background:#e0eaff;border-color:#b2ccff}.conn-chip-dropdown[_ngcontent-%COMP%]{position:absolute;bottom:calc(100% + 6px);left:0;min-width:200px;background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-shadow:0 4px 16px #0000001a;z-index:100;overflow:hidden}.conn-chip-dropdown__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:13px;color:#344054;cursor:pointer}.conn-chip-dropdown__item[_ngcontent-%COMP%]:hover{background:#f9fafb}.conn-chip-dropdown__item--active[_ngcontent-%COMP%]{background:#f5f8ff;color:#2970ff}.conn-chip-dropdown__name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conn-chip-dropdown__hint[_ngcontent-%COMP%]{font-size:11px;color:#98a2b3;flex-shrink:0}.conn-chip-dropdown__check[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0;color:#2970ff}.mic-icon[_ngcontent-%COMP%]{cursor:pointer;color:#667085;transition:color .15s}.mic-icon[_ngcontent-%COMP%]:hover{color:#344054}.mic-icon--recording[_ngcontent-%COMP%]{color:#d92d20;animation:_ngcontent-%COMP%_mic-pulse 1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_mic-pulse{0%,to{opacity:1}50%{opacity:.5}}.send-icon[_ngcontent-%COMP%]{cursor:pointer;color:#2970ff;transition:opacity .15s}.send-icon--disabled[_ngcontent-%COMP%]{opacity:.35;cursor:not-allowed;pointer-events:none}.wfb-save-dialog[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#10182866;z-index:20}.wfb-save-dialog__body[_ngcontent-%COMP%]{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:20px;width:360px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 24px #1018281f}.wfb-save-dialog__label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#344054}.wfb-save-dialog__input[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-family:inherit;color:#101828;outline:none;box-sizing:border-box}.wfb-save-dialog__input[_ngcontent-%COMP%]:focus{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1a}.wfb-save-dialog__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.aq-shell[_ngcontent-%COMP%]{--aq-header-h: 56px;display:flex;flex:1 1 auto;min-height:0;width:100%;overflow:hidden;container-type:inline-size}.aq-chat-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;transition:flex-basis .22s ease,max-width .22s ease;--aq-conversation-w: 900px}.aq-chat-pane__tabs[_ngcontent-%COMP%]{flex-shrink:0}.aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%]{width:100%}.aq-chat-pane__tabs[_ngcontent-%COMP%] nile-nav-tab[_ngcontent-%COMP%]::part(name), .aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%] nile-nav-tab[_ngcontent-%COMP%]::part(name){font-size:13px;line-height:14px}.aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%] .aq-library-pane__tab-count[_ngcontent-%COMP%]{display:inline-block;min-width:18px;margin-left:6px;padding:1px 6px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center;vertical-align:1px}.aq-chat-pane__tabs[_ngcontent-%COMP%]::part(nav), .aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%]::part(nav){background:#eef1f6}.aq-library-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.aq-shell[data-mode=idle][_ngcontent-%COMP%] .aq-chat[_ngcontent-%COMP%]::part(messages), .aq-shell[data-mode=conversation][_ngcontent-%COMP%] .aq-chat[_ngcontent-%COMP%]::part(messages), .aq-shell[data-mode=conversation][_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{width:100%;max-width:var(--aq-conversation-w);margin-left:auto;margin-right:auto}.aq-shell[data-mode=conversation][_ngcontent-%COMP%] .wfb-messages[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-top:auto}.aq-shell[data-mode=split][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex:0 0 auto;flex-basis:clamp(320px,41%,485px);max-width:50%;margin:0}.aq-resizer[_ngcontent-%COMP%]{align-self:stretch;position:relative;cursor:col-resize;background:transparent;z-index:6;touch-action:none}.aq-resizer[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;transform:translate(-50%);background:var(--nile-color-border, #e4e7ec)}.aq-resizer[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:36px;border-radius:3px;background:var(--nile-color-border, #cfd4dc);transition:background .15s,height .15s}.aq-resizer[_ngcontent-%COMP%]:hover:after, .aq-resizer.is-active[_ngcontent-%COMP%]:after{background:#2970ff;height:44px}.aq-shell--resizing[_ngcontent-%COMP%]{cursor:col-resize;-webkit-user-select:none;user-select:none}.aq-shell--resizing[_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%], .aq-shell--resizing[_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%], .aq-shell--resizing[_ngcontent-%COMP%] .aq-artifact-pane[_ngcontent-%COMP%]{transition:none}.aq-shell[data-mode=split][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%]{display:none}.aq-artifact-pane[_ngcontent-%COMP%]{position:relative;overflow:hidden;flex:1 1 60%;display:flex;flex-direction:column;min-width:0;background:#fff;animation:_ngcontent-%COMP%_aq-slide-in .22s ease}@keyframes _ngcontent-%COMP%_aq-slide-in{0%{transform:translate(16px);opacity:0}to{transform:translate(0);opacity:1}}.aq-artifact-pane--dsl-only[_ngcontent-%COMP%]{position:absolute;top:0;left:-9999px;width:1px;height:1px;overflow:hidden;pointer-events:none;animation:none}.aq-artifact-pane[_ngcontent-%COMP%]{view-transition-name:aq-artifact-pane}.aq-artifact-pane[_ngcontent-%COMP%]:has(nile-drawer.dsl-editor-drawer[open]){view-transition-name:none}@supports (view-transition-name: none){.aq-detail-overlay[_ngcontent-%COMP%]{animation:none}}.aq-artifact-pane__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;background:#fff;flex-shrink:0;gap:12px}.aq-artifact-pane__header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-shrink:0}.aq-artifact-pane__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-library-pane__head[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;padding:12px 20px 16px;border-bottom:1px solid #eaecf0;flex-shrink:0;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-library-pane__intro[_ngcontent-%COMP%]{margin:0;font-size:13px;line-height:20px;color:var(--ng-colors-text-tertiary-600, #535862)}.aq-library-pane__intro-title[_ngcontent-%COMP%]{font-weight:600;color:var(--ng-colors-text-secondary-700, #414651)}.aq-library-pane__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;padding:20px;display:flex;flex-direction:column;gap:16px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-library-pane__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-artifact-pane__picker-overlay-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;box-sizing:border-box;padding:10px 16px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-artifact-pane__picker-overlay-footer-count[_ngcontent-%COMP%]{margin-right:auto;font-size:13px;font-weight:500;color:#414651}.aq-artifact-pane__titles[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;display:flex;align-items:baseline;gap:8px}.aq-artifact-pane__title[_ngcontent-%COMP%]{flex-shrink:0;font-weight:600;font-size:14px;color:#101828}.aq-artifact-pane__subtitle[_ngcontent-%COMP%]{min-width:0;font-weight:400;font-size:13px;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-filters-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid #d0d5dd;border-radius:8px}.aq-filters-pill__icon[_ngcontent-%COMP%]{color:#667085;flex-shrink:0}.aq-filters-pill[_ngcontent-%COMP%] nile-slide-toggle[_ngcontent-%COMP%]{--slide-toggle-width: auto;font-size:13px;font-weight:500;color:#344054}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%]{border-color:var(--nile-color-primary-300, #84adff);background:var(--nile-color-primary-50, #eff4ff)}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%] .aq-filters-pill__icon[_ngcontent-%COMP%]{color:var(--nile-color-primary-700, #2970ff)}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%] nile-slide-toggle[_ngcontent-%COMP%]{color:var(--nile-color-primary-700, #2970ff)}.aq-undo-redo-group[_ngcontent-%COMP%]{display:flex;align-items:stretch;height:32px;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden;background:#fff}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]::part(base){height:100%!important;border:none!important;border-radius:0!important;padding:0 12px!important;font-size:13px!important;font-weight:500!important;color:#101828!important}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]:first-child::part(base){border-right:1px solid #eaecf0!important}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]:last-child::part(base){padding:0 10px!important}.aq-artifact-pane__header-divider[_ngcontent-%COMP%]{width:1px;height:20px;background:#eaecf0;flex-shrink:0}.aq-artifact-pane__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:column;gap:16px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-artifact-pane__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-artifact-pane__suggestions[_ngcontent-%COMP%]{flex-shrink:0;padding:10px 16px;border-bottom:1px solid #eaecf0;background:#fafafa}.aq-artifact-pane__suggestions-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;overflow-x:auto}.aq-suggestion-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #d5d7da;border-radius:999px;background:#fff;font-size:12px;font-weight:500;color:#414651;cursor:pointer;white-space:nowrap;transition:border-color .15s,color .15s}.aq-suggestion-chip[_ngcontent-%COMP%]:hover{border-color:#2970ff;color:#2970ff}.aq-artifact-pane__empty[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:32px 16px;text-align:center;color:#717680}.aq-artifact-pane__empty-title[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;font-weight:600;color:#414651}.aq-artifact-pane__empty-sub[_ngcontent-%COMP%]{margin:0;font-size:13px;max-width:320px}.aq-artifact-pane__kpi-picker[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.aq-picker-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;align-content:start}.aq-picker-chips[_ngcontent-%COMP%] nile-skeleton-loader[_ngcontent-%COMP%]{flex:0 0 auto}.aq-picker-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;border:1px solid #e9eaeb;border-radius:999px;padding:5px 10px;background:#fff;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:#71798d;white-space:nowrap;transition:border-color .15s,box-shadow .15s}.aq-picker-chip[_ngcontent-%COMP%]:hover{border-color:#1d4ed8;box-shadow:0 4px 14px #1d4ed81a}.aq-picker-chip--active[_ngcontent-%COMP%]{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.aq-picker-chip--active[_ngcontent-%COMP%]:hover{box-shadow:none}.aq-picker-chip--active[_ngcontent-%COMP%] .aq-picker-chip__count[_ngcontent-%COMP%]{background:#ffffff40;color:#fff}.aq-picker-chip__count[_ngcontent-%COMP%]{min-width:16px;padding:0 5px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:700;text-align:center}.inline-widget[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #e9eaeb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #1018280a,0 4px 14px #1018280f}.inline-widget__chart[_ngcontent-%COMP%]{height:380px;padding:14px 16px 6px}.inline-widget__chart--kpi[_ngcontent-%COMP%]{height:150px}.inline-widget__chart--kpi-spark[_ngcontent-%COMP%]{height:220px}.inline-widget__chart--grid[_ngcontent-%COMP%]{height:auto;max-height:520px;overflow:auto}.inline-widget__chart[_ngcontent-%COMP%] shared-nile-chart-widget[_ngcontent-%COMP%]{display:block;height:100%;width:100%}.inline-widget__chart--grid[_ngcontent-%COMP%] shared-nile-chart-widget[_ngcontent-%COMP%]{height:auto}.inline-widget__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;padding:10px 16px 14px;border-top:1px solid #f2f2f4}.chart-live[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#414651;white-space:nowrap}.chart-live__dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#17b26a}.chart-live--preview[_ngcontent-%COMP%]{padding:2px 8px;border-radius:4px;background:#fff6ed;color:#b93815}.forecast-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;padding:10px 14px;border-top:1px solid #f2f2f4;background:#fcfcfd;font-size:11px;line-height:1.5}.forecast-meta__item[_ngcontent-%COMP%]{display:inline-flex;gap:4px;white-space:nowrap}.forecast-meta__label[_ngcontent-%COMP%]{color:#717680}.forecast-meta__value[_ngcontent-%COMP%]{color:#414651;font-weight:600}.forecast-record[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #f2f2f4}.forecast-record__icon[_ngcontent-%COMP%]{flex:0 0 auto}.forecast-record__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:12px;line-height:1.5;color:#717680}.forecast-record__action[_ngcontent-%COMP%]{flex:0 0 auto;padding:4px 10px;border:1px solid transparent;border-radius:6px;background:transparent;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:#5925dc;transition:background .15s ease,border-color .15s ease}.forecast-record__action[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#d9d0fd;background:#f7f5ff}.forecast-record__action[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.follow-ups[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.follow-up[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #e9eaeb;border-radius:8px;background:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:500;color:#414651;transition:border-color .15s ease,background .15s ease}.follow-up[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#b2ccff;background:#f9fafb}.follow-up[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:default}.follow-up__icon[_ngcontent-%COMP%]{flex:0 0 auto}.follow-up__label[_ngcontent-%COMP%]{white-space:nowrap}.follow-up__badge[_ngcontent-%COMP%]{padding:2px 6px;border-radius:4px;background:#7a5af8;color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.follow-up--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#f7f5ff;color:#5925dc}.follow-up--ai[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#b9a6fb;background:#f0ecff}.widget-header-btn[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;margin:0 2px;box-sizing:border-box;border:none;border-radius:6px;background:transparent;color:#717680;cursor:pointer}.widget-header-btn[_ngcontent-%COMP%]:hover{background:#f5f5f6;color:#181d27}.widget-header-dropdown[_ngcontent-%COMP%]::part(panel){width:320px;max-width:92vw}.widget-header-dropdown[_ngcontent-%COMP%]::part(base){display:block}.widget-header-anchor[_ngcontent-%COMP%]{display:inline-block;width:0;height:0}.widget-menu__trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;margin:0 2px;box-sizing:border-box;border:none;border-radius:var(--ng-radius-md, 6px);background:transparent;color:var(--ng-colors-text-tertiary-600, #717680);cursor:pointer}.widget-menu__trigger[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.widget-menu__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.widget-menu__label[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:none;color:var(--ng-colors-text-tertiary-600, #717680)}.widget-menu__sep[_ngcontent-%COMP%]{height:var(--ng-stroke-width-1, 1px);background:var(--ng-colors-border-secondary, #e5e7eb);margin:var(--ng-spacing-md, 8px)}.type-picker__panel[_ngcontent-%COMP%], .filter-builder__panel[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px #10182824;padding:10px;box-sizing:border-box}.inline-action__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;font-size:13px;color:#535862}.inline-action__hint[_ngcontent-%COMP%]{margin:0 0 6px;font-size:12px;color:#535862}.inline-action__error[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:#d92d20}.type-picker__section[_ngcontent-%COMP%]{margin:6px 0 4px;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:#717680}.type-picker__section[_ngcontent-%COMP%]:first-child{margin-top:0}.type-picker__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.type-picker__tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;box-sizing:border-box;height:60px;border:1px solid #e9eaeb;border-radius:8px;background:#fff;color:#414651;font-size:11px;font-weight:500;cursor:pointer}.type-picker__tile[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#717680}.type-picker__tile[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#2970ff;color:#2970ff}.type-picker__tile[_ngcontent-%COMP%]:hover:not(:disabled) nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.type-picker__tile[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.type-picker__tile--sensible[_ngcontent-%COMP%]{border-color:#2970ff47;background:#2970ff0a}.type-picker__tile--sensible[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.filter-builder__active[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.filter-builder__chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#2970ff14;color:#414651;font-size:12px}.filter-builder__chip-remove[_ngcontent-%COMP%]{display:inline-flex;border:none;background:none;padding:0;cursor:pointer;color:inherit}.filter-builder__form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.filter-builder__field-label[_ngcontent-%COMP%]{padding:6px 2px;font-size:12px;font-weight:600;color:#181d27}.filter-builder__and[_ngcontent-%COMP%]{font-size:12px;color:#535862}.filter-builder__select[_ngcontent-%COMP%], .filter-builder__input[_ngcontent-%COMP%]{flex:1 1 100%;min-width:0;padding:7px 8px;box-sizing:border-box;border:1px solid #e9eaeb;border-radius:7px;background:#fff;font:inherit;font-size:12px;color:#181d27}.filter-builder__multi[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:160px;overflow-y:auto;width:100%}.filter-builder__multi-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:4px 2px;font-size:12px;color:#414651;cursor:pointer}.filter-builder__multi-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-shell[data-mode=builder][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex:0 0 auto;flex-basis:clamp(320px,41%,485px);max-width:50%;margin:0}.aq-builder-pane[_ngcontent-%COMP%]{position:relative;overflow:hidden;flex:1 1 60%;display:flex;flex-direction:column;min-width:0}.aq-builder-pane[_ngcontent-%COMP%] shared-builder-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.aq-builder-pane[_ngcontent-%COMP%] shared-dashboard-grid{display:block;min-width:calc(100cqw - 24px)}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex-basis:0;max-width:0;overflow:hidden;border-right:none}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%]{flex-basis:100%}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%] shared-dashboard-grid{min-width:100%}.choice-picker[_ngcontent-%COMP%]{margin-top:16px;width:100%}.choice-picker[_ngcontent-%COMP%] + .choice-picker[_ngcontent-%COMP%]{margin-top:22px}.choice-picker__group[_ngcontent-%COMP%]{display:block;width:100%}.choice-picker__step[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__submit-row[_ngcontent-%COMP%]{margin-top:12px;display:flex;justify-content:flex-start}.choice-card[_ngcontent-%COMP%]{display:block}.choice-card[_ngcontent-%COMP%]::part(base){width:100%;box-sizing:border-box;margin:0;padding:12px 14px;gap:0;align-items:center;border:none;border-bottom:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:8px;background:transparent;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.choice-card[_ngcontent-%COMP%]:last-of-type::part(base){border-bottom:none}.choice-card[_ngcontent-%COMP%]::part(control){display:none}.choice-card[_ngcontent-%COMP%]::part(label){flex:1 1 auto;min-width:0;margin:0}.choice-card[_ngcontent-%COMP%]:not(.choice-card--locked):hover::part(base){border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-card--chosen[_ngcontent-%COMP%]::part(base){border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff);box-shadow:inset 0 0 0 1px var(--ng-colors-border-brand, #7f56d9)}.choice-card--locked[_ngcontent-%COMP%]:not(.choice-card--chosen)::part(base){opacity:.6;cursor:default}.choice-card__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.choice-card__num[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;font-size:11.5px;font-weight:700;color:var(--ng-colors-text-tertiary-600, #667085);background:var(--ng-colors-bg-secondary, #f5f5f6);transition:color .15s ease,background-color .15s ease}.choice-card--chosen[_ngcontent-%COMP%] .choice-card__num[_ngcontent-%COMP%]{color:#fff;background:var(--ng-colors-bg-brand-solid, #7f56d9)}.choice-card__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.choice-card__name[_ngcontent-%COMP%]{font-size:13.5px;font-weight:600;color:var(--ng-colors-text-primary-900, #181d27);line-height:1.4;overflow-wrap:anywhere}.choice-card__hint[_ngcontent-%COMP%]{font-size:12.5px;font-weight:400;line-height:1.4;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-card__badge[_ngcontent-%COMP%]{display:inline-block;margin-bottom:2px;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ng-colors-fg-success-primary, #17b26a)}.choice-card__meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:1px;font-size:11.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-card__chip--green[_ngcontent-%COMP%]{color:#22c55e;font-weight:700}.choice-card__chip--yellow[_ngcontent-%COMP%]{color:#f59e0b;font-weight:700}.choice-card__chip--red[_ngcontent-%COMP%]{color:#ef4444;font-weight:700}.choice-card__chip--muted[_ngcontent-%COMP%]{color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__empty[_ngcontent-%COMP%]{margin:0;font-size:12.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-picker__chat-link[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;gap:4px;margin:6px 0 0;padding:0;border:none;border-radius:0;background:none;font-size:12.5px;color:var(--ng-colors-brand-600, #4f46e5);cursor:pointer;text-align:left}.choice-picker__chat-link[_ngcontent-%COMP%]:hover:not(:disabled){text-decoration:underline}.choice-picker__chat-link[_ngcontent-%COMP%]:disabled{color:var(--ng-colors-text-tertiary-600, #98a2b3);cursor:default}.choice-picker__chat-link--preview[_ngcontent-%COMP%]{gap:6px;padding:5px 10px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:999px;color:var(--ng-colors-text-secondary-700, #414651)}.choice-picker__chat-link--preview[_ngcontent-%COMP%]:hover:not(:disabled){text-decoration:none;border-color:var(--ng-colors-border-brand, #7f56d9);color:var(--ng-colors-brand-600, #4f46e5);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-picker__chat-link--preview[_ngcontent-%COMP%]:disabled{border-color:var(--ng-colors-border-secondary, #e9eaeb)}.choice-picker__footer-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-top:6px}.choice-picker__footer-actions[_ngcontent-%COMP%] .choice-picker__chat-link[_ngcontent-%COMP%]{margin-top:0}.choice-picker__chat-draft[_ngcontent-%COMP%]{margin-top:8px;padding:10px;border:1px dashed var(--ng-colors-border-secondary-600, #d0d5dd);border-radius:8px;background:var(--ng-colors-bg-secondary-600, #f9fafb)}.choice-picker__chat-draft-label[_ngcontent-%COMP%]{display:block;margin-bottom:6px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__chat-draft-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.choice-picker__chat-draft-input[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.choice-picker__resume-chip[_ngcontent-%COMP%]{display:inline-block;margin-top:16px;padding:6px 10px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:6px;background:var(--ng-colors-bg-secondary, #f5f5f6);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.choice-picker__resume-chip[_ngcontent-%COMP%]:hover{border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-panel[_ngcontent-%COMP%]{margin-bottom:10px;padding:14px 16px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:12px;background:var(--ng-colors-bg-primary, #fff);box-shadow:0 4px 16px #10182814}.choice-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.choice-panel__count[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-panel__nav-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px}.choice-panel__nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--ng-colors-text-tertiary-600, #667085);cursor:pointer;transition:background-color .15s ease,color .15s ease}.choice-panel__nav[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.choice-panel__nav[_ngcontent-%COMP%]:disabled{opacity:.35;cursor:default}.choice-panel__close[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-error-primary, #fef3f2);color:var(--ng-colors-text-error-primary, #d92d20)}.choice-panel__options[_ngcontent-%COMP%]{display:block;width:100%}.choice-panel-option[_ngcontent-%COMP%]{display:block}.choice-panel-option[_ngcontent-%COMP%]::part(base){width:100%;box-sizing:border-box;margin:0;padding:8px 10px;gap:0;align-items:center;border:none;border-radius:6px;background:transparent;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.choice-panel-option[_ngcontent-%COMP%]::part(control){display:none}.choice-panel-option[_ngcontent-%COMP%]::part(label){flex:1 1 auto;min-width:0;margin:0}.choice-panel-option[_ngcontent-%COMP%]:hover::part(base){background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-panel-option__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.choice-panel-option__num[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;font-size:11px;font-weight:700;color:var(--ng-colors-text-tertiary-600, #667085);background:var(--ng-colors-bg-secondary, #f5f5f6)}.choice-panel-option__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px;min-width:0}.choice-panel-option__name[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--ng-colors-text-primary-900, #181d27);line-height:1.4;overflow-wrap:anywhere}.choice-panel-option__hint[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:1.4;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-panel-option__badge[_ngcontent-%COMP%]{display:inline-block;margin-bottom:2px;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ng-colors-fg-success-primary, #17b26a)}.choice-panel__footer[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.choice-panel__footer--review[_ngcontent-%COMP%]{justify-content:space-between}.choice-panel__skip[_ngcontent-%COMP%]{flex:0 0 auto;padding:6px 10px;border:none;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--ng-colors-text-tertiary-600, #667085);background:transparent;cursor:pointer}.choice-panel__skip[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.choice-panel__hint[_ngcontent-%COMP%]{margin:10px 0 0;font-size:11px;color:var(--ng-colors-text-tertiary-600, #98a2b3);text-align:center}.choice-panel__review[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.choice-panel__review-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:6px;background:var(--ng-colors-bg-secondary, #f5f5f6)}.choice-panel__review-title[_ngcontent-%COMP%]{font-size:12.5px;font-weight:600;color:var(--ng-colors-text-tertiary-600, #535862);flex:0 0 auto}.choice-panel__review-answer[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);text-align:right;overflow-wrap:anywhere}.ai-executive-summary[_ngcontent-%COMP%]::part(trigger){display:none}']})};var Os=(i,t)=>t.id;function qs(i,t){if(i&1&&(l(0,"div",9),m(1,"div",12),l(2,"span"),_(3),d()()),i&2){let e=r();s(3),v(e.copy().loadingConnections)}}function Es(i,t){if(i&1){let e=k();l(0,"div",10)(1,"div",13),m(2,"nile-glyph",14),d(),l(3,"h3",15),_(4),d(),l(5,"p",16),_(6),d(),l(7,"button",7),g("click",function(){p(e);let o=r();return u(o.openForm())}),m(8,"nile-glyph",8),_(9),d()()}if(i&2){let e=r();s(4),v(e.copy().noConnectionsTitle),s(2),v(e.copy().noConnectionsSub),s(3),F(" ",e.copy().registerConnectionButton," ")}}function Is(i,t){i&1&&(l(0,"span",23),_(1,"Active"),d())}function Vs(i,t){i&1&&(l(0,"span",24),_(1,"Inactive"),d())}function Rs(i,t){i&1&&(l(0,"span",25),m(1,"nile-glyph",34),_(2," Schema "),d())}function zs(i,t){i&1&&m(0,"span",28)}function Ns(i,t){i&1&&m(0,"nile-glyph",29)}function $s(i,t){i&1&&m(0,"span",28)}function Ls(i,t){i&1&&m(0,"nile-glyph",31)}function Ws(i,t){if(i&1&&(l(0,"span",37),_(1),d()),i&2){let e=r(3).$implicit;s(),Q("",e.testResult.sampleTables.slice(0,4).join(", "),"",e.testResult.sampleTables.length>4?"\u2026":"")}}function Bs(i,t){if(i&1&&(m(0,"nile-glyph",36),l(1,"span"),_(2),d(),h(3,Ws,2,2,"span",37)),i&2){let e=r(2).$implicit;s(2),F("Reachable \xB7 ",e.testResult.tableCount," tables"),s(),C(e.testResult.sampleTables.length?3:-1)}}function Us(i,t){if(i&1&&(m(0,"nile-glyph",38),l(1,"span"),_(2),d()),i&2){let e=r(2).$implicit,n=r(2);s(2),F("Unreachable \xB7 ",e.testResult.error??n.copy().errors.connectionTestFailedFallback)}}function Gs(i,t){if(i&1&&(l(0,"div",35),h(1,Bs,4,2)(2,Us,3,1),d()),i&2){let e=r().$implicit;B("wfconn-test-result--ok",e.testResult.reachable)("wfconn-test-result--fail",!e.testResult.reachable),s(),C(e.testResult.reachable?1:2)}}function Hs(i,t){if(i&1){let e=k();l(0,"div",18)(1,"div",19)(2,"div",20)(3,"span",21),_(4),d(),l(5,"span",22),_(6),d(),h(7,Is,2,0,"span",23)(8,Vs,2,0,"span",24),h(9,Rs,3,0,"span",25),d(),l(10,"div",26)(11,"button",27),g("click",function(){let o=p(e).$implicit,a=r(2);return u(a.testConnection(o.id))}),h(12,zs,1,0,"span",28)(13,Ns,1,0,"nile-glyph",29),_(14),d(),l(15,"button",30),g("click",function(){let o=p(e).$implicit,a=r(2);return u(a.deleteConnection(o.id,o.name))}),h(16,$s,1,0,"span",28)(17,Ls,1,0,"nile-glyph",31),d()()(),l(18,"div",32),_(19),Dt(20,"date"),d(),h(21,Gs,3,5,"div",33),d()}if(i&2){let e=t.$implicit,n=r(2);B("wfconn-card--deleting",e.deleting),s(4),v(e.name),s(2),v(n.adapterLabel(e.adapterType)),s(),C(e.isActive?7:8),s(2),C(e.hasSchemaSnapshot?9:-1),s(2),B("wfconn-icon-btn--loading",e.testing),b("disabled",e.testing||e.deleting),s(),C(e.testing?12:13),s(2),F(" ",n.copy().testConnectionButton," "),s(),b("disabled",e.testing||e.deleting),s(),C(e.deleting?16:17),s(3),F(" Created ",Ot(20,15,e.createdAt,"mediumDate")," "),s(2),C(e.testResult?21:-1)}}function js(i,t){if(i&1&&(l(0,"div",11),D(1,Hs,22,18,"div",17,Os),d()),i&2){let e=r();s(),O(e.connections())}}function Ys(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"Server"),d(),l(3,"input",60),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("server",o))}),d()(),l(4,"div",46)(5,"label",47),_(6,"Database"),d(),l(7,"input",61),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("database",o))}),d()(),l(8,"div",62)(9,"div",46)(10,"label",47),_(11,"Username"),d(),l(12,"input",63),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("user",o))}),d()(),l(13,"div",46)(14,"label",47),_(15,"Password"),d(),l(16,"div",64)(17,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("password",o))}),d(),l(18,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(19,"nile-glyph",67),d()()()(),l(20,"div",62)(21,"div",46)(22,"label",47),_(23,"Schema"),d(),l(24,"input",68),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("schema",o))}),d()(),l(25,"div",69)(26,"label",47),_(27,"Port"),d(),l(28,"input",70),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("port",+o))}),d()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.mssql().server),s(4),b("ngModel",e.mssql().database),s(5),b("ngModel",e.mssql().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.mssql().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye"),s(5),b("ngModel",e.mssql().schema),s(4),b("ngModel",e.mssql().port)}}function Qs(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"URL"),d(),l(3,"input",71),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("url",o))}),d()(),l(4,"div",62)(5,"div",46)(6,"label",47),_(7,"Username"),d(),l(8,"input",72),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("username",o))}),d()(),l(9,"div",46)(10,"label",47),_(11,"Password"),d(),l(12,"div",64)(13,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("password",o))}),d(),l(14,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(15,"nile-glyph",67),d()()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.opensearch().url),s(5),b("ngModel",e.opensearch().username),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.opensearch().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye")}}function Ks(i,t){if(i&1){let e=k();l(0,"div",62)(1,"div",46)(2,"label",47),_(3,"Host"),d(),l(4,"input",73),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("host",o))}),d()(),l(5,"div",69)(6,"label",47),_(7,"Port"),d(),l(8,"input",74),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("port",+o))}),d()()(),l(9,"div",46)(10,"label",47),_(11,"Database"),d(),l(12,"input",61),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("database",o))}),d()(),l(13,"div",62)(14,"div",46)(15,"label",47),_(16,"Username"),d(),l(17,"input",75),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("user",o))}),d()(),l(18,"div",46)(19,"label",47),_(20,"Password"),d(),l(21,"div",64)(22,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("password",o))}),d(),l(23,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(24,"nile-glyph",67),d()()()(),l(25,"div",46)(26,"label",47),_(27,"Schema"),d(),l(28,"input",76),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("schema",o))}),d()()}if(i&2){let e=r(2);s(4),b("ngModel",e.postgres().host),s(4),b("ngModel",e.postgres().port),s(4),b("ngModel",e.postgres().database),s(5),b("ngModel",e.postgres().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.postgres().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye"),s(4),b("ngModel",e.postgres().schema)}}function Js(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"Account"),d(),l(3,"input",77),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("account",o))}),d()(),l(4,"div",62)(5,"div",46)(6,"label",47),_(7,"Database"),d(),l(8,"input",78),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("database",o))}),d()(),l(9,"div",46)(10,"label",47),_(11,"Schema"),d(),l(12,"input",79),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("schema",o))}),d()()(),l(13,"div",46)(14,"label",47),_(15,"Warehouse"),d(),l(16,"input",80),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("warehouse",o))}),d()(),l(17,"div",62)(18,"div",46)(19,"label",47),_(20,"Username"),d(),l(21,"input",81),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("user",o))}),d()(),l(22,"div",46)(23,"label",47),_(24,"Password"),d(),l(25,"div",64)(26,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("password",o))}),d(),l(27,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(28,"nile-glyph",67),d()()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.snowflake().account),s(5),b("ngModel",e.snowflake().database),s(4),b("ngModel",e.snowflake().schema),s(4),b("ngModel",e.snowflake().warehouse),s(5),b("ngModel",e.snowflake().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.snowflake().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye")}}function Xs(i,t){if(i&1&&(l(0,"div",56),m(1,"nile-glyph",38),_(2),d()),i&2){let e=r(2);s(2),F(" ",e.formError()," ")}}function Zs(i,t){if(i&1&&(m(0,"span",82),_(1)),i&2){let e=r(2);s(),F(" ",e.copy().registeringButton," ")}}function ed(i,t){if(i&1&&(m(0,"nile-glyph",83),_(1)),i&2){let e=r(2);s(),F(" ",e.copy().registerAndTestButton," ")}}function td(i,t){if(i&1){let e=k();l(0,"div",39),g("click",function(){p(e);let o=r();return u(o.closeForm())}),d(),l(1,"aside",40)(2,"div",41)(3,"span",42),_(4),d(),l(5,"button",43),g("click",function(){p(e);let o=r();return u(o.closeForm())}),m(6,"nile-glyph",44),d()(),l(7,"div",45)(8,"div",46)(9,"label",47),_(10,"Connection name"),d(),l(11,"input",48),g("ngModelChange",function(o){p(e);let a=r();return u(a.formConnectionName.set(o))}),d()(),l(12,"div",46)(13,"label",47),_(14,"Display name "),l(15,"span",49),_(16,"(optional)"),d()(),l(17,"input",48),g("ngModelChange",function(o){p(e);let a=r();return u(a.formDisplayName.set(o))}),d()(),l(18,"div",46)(19,"label",47),_(20,"Adapter type"),d(),l(21,"select",50),g("ngModelChange",function(o){p(e);let a=r();return u(a.formAdapter.set(o))}),l(22,"option",51),_(23,"MSSQL (SQL Server)"),d(),l(24,"option",52),_(25,"OpenSearch"),d(),l(26,"option",53),_(27,"PostgreSQL"),d(),l(28,"option",54),_(29,"Snowflake"),d()()(),l(30,"div",55),_(31,"Connection config"),d(),h(32,Ys,29,8),h(33,Qs,16,5),h(34,Ks,29,8),h(35,Js,29,8),h(36,Xs,3,1,"div",56),d(),l(37,"div",57)(38,"button",58),g("click",function(){p(e);let o=r();return u(o.closeForm())}),_(39),d(),l(40,"button",59),g("click",function(){p(e);let o=r();return u(o.submitRegister())}),h(41,Zs,2,1)(42,ed,2,1),d()()()}if(i&2){let e=r();s(4),v(e.copy().registerConnectionTitle),s(7),b("ngModel",e.formConnectionName())("placeholder",e.copy().connectionNamePlaceholder),s(6),b("ngModel",e.formDisplayName())("placeholder",e.copy().displayNamePlaceholder),s(4),b("ngModel",e.formAdapter()),s(11),C(e.formAdapter()==="mssql"?32:-1),s(),C(e.formAdapter()==="opensearch"?33:-1),s(),C(e.formAdapter()==="postgres"?34:-1),s(),C(e.formAdapter()==="snowflake"?35:-1),s(),C(e.formError()?36:-1),s(2),b("disabled",e.saving()),s(),v(e.copy().cancelButton),s(),b("disabled",e.saving()),s(),C(e.saving()?41:42)}}var Te=class i{svc=$(we);copy(){return R().copy}loading=x(!0);connections=x([]);showForm=x(!1);saving=x(!1);formConnectionName=x("Primary");formDisplayName=x("");formAdapter=x("mssql");mssql=x({server:"",database:"",user:"",password:"",schema:"gold",port:1433});opensearch=x({url:"",username:"",password:""});postgres=x({host:"",port:5432,database:"",user:"",password:"",schema:"public"});snowflake=x({account:"",database:"",schema:"",user:"",password:"",warehouse:""});showPassword=x(!1);formError=x("");hasConnections=q(()=>this.connections().length>0);async ngOnInit(){await this.loadConnections()}async loadConnections(){this.loading.set(!0);try{let t=await this.svc.listConnections();this.connections.set(t)}catch{}finally{this.loading.set(!1)}}openForm(){this.showForm.set(!0),this.formError.set("")}closeForm(){this.showForm.set(!1),this.formError.set("")}patchMssql(t,e){this.mssql.update(n=>T(y({},n),{[t]:e}))}patchOpensearch(t,e){this.opensearch.update(n=>T(y({},n),{[t]:e}))}patchPostgres(t,e){this.postgres.update(n=>T(y({},n),{[t]:e}))}patchSnowflake(t,e){this.snowflake.update(n=>T(y({},n),{[t]:e}))}buildConfig(){switch(this.formAdapter()){case"mssql":return y({},this.mssql());case"opensearch":return y({},this.opensearch());case"postgres":return y({},this.postgres());case"snowflake":return y({},this.snowflake())}}async submitRegister(){let t=this.formConnectionName().trim();if(!t){this.formError.set("Connection name is required");return}let e={productId:this.svc.productId,displayName:this.formDisplayName().trim()||void 0,connectionName:t,config:this.buildConfig()};this.saving.set(!0),this.formError.set("");try{let n=await this.svc.register(e),o={id:n.connection.id,name:n.connection.name,adapterType:n.connection.adapterType,isActive:!0,hasSchemaSnapshot:n.test.reachable,hasSemanticDoc:!1,createdAt:n.connection.createdAt,updatedAt:n.connection.createdAt,testResult:n.test};this.connections.update(a=>[o,...a]),this.closeForm(),this.showToast("success",n.test.reachable?`Connection "${t}" registered and tested successfully`:`Connection "${t}" registered (connectivity test failed: ${n.test.error??"unreachable"})`)}catch(n){this.formError.set(this.extractMessage(n,"Registration failed"))}finally{this.saving.set(!1)}}async testConnection(t){this.connections.update(e=>e.map(n=>n.id===t?T(y({},n),{testing:!0,testResult:void 0}):n));try{let e=await this.svc.testConnection(t);this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{testing:!1,testResult:e}):o))}catch{this.connections.update(e=>e.map(n=>n.id===t?T(y({},n),{testing:!1}):n))}}async deleteConnection(t,e){if(confirm(`Delete connection "${e}"? This cannot be undone.`)){this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{deleting:!0}):o));try{await this.svc.deleteConnection(t),this.connections.update(n=>n.filter(o=>o.id!==t)),this.showToast("success",`Connection "${e}" deleted`)}catch{this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{deleting:!1}):o))}}}adapterLabel(t){return{mssql:"MSSQL",opensearch:"OpenSearch",postgres:"PostgreSQL",snowflake:"Snowflake"}[t]??t}showToast(t,e){let n=document.createElement("nile-toast");n.variant=t,n.title=e,n.duration=5e3,n.closable=!0,n.toast(),ze()}extractMessage(t,e){return Ne(t,e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["app-ask-aquera-connections-page"]],decls:18,vars:5,consts:[[1,"wfconn-page"],[1,"wfconn-header"],[1,"wfconn-header__left"],["routerLink","/ask-aquera",1,"wfconn-back"],["name","ng-arrow-left","method","stroke","size","14","color","#344054"],[1,"wfconn-header__sep"],[1,"wfconn-header__title"],[1,"wfconn-btn","wfconn-btn--primary",3,"click"],["name","ng-plus","method","stroke","size","13","color","#fff"],[1,"wfconn-loading"],[1,"wfconn-empty"],[1,"wfconn-list"],[1,"wfconn-spinner"],[1,"wfconn-empty__icon"],["name","ng-dataflow-03","method","stroke","size","32","color","#98a2b3"],[1,"wfconn-empty__title"],[1,"wfconn-empty__sub"],[1,"wfconn-card",3,"wfconn-card--deleting"],[1,"wfconn-card"],[1,"wfconn-card__header"],[1,"wfconn-card__info"],[1,"wfconn-card__name"],[1,"wfconn-badge","wfconn-badge--adapter"],[1,"wfconn-badge","wfconn-badge--active"],[1,"wfconn-badge","wfconn-badge--inactive"],[1,"wfconn-badge","wfconn-badge--schema"],[1,"wfconn-card__actions"],["title","Test connectivity",1,"wfconn-icon-btn",3,"click","disabled"],[1,"wfconn-spinner","wfconn-spinner--sm"],["name","ng-activity","method","stroke","size","14"],["title","Delete connection",1,"wfconn-icon-btn","wfconn-icon-btn--danger",3,"click","disabled"],["name","ng-trash-01","method","stroke","size","14"],[1,"wfconn-card__meta"],[1,"wfconn-test-result",3,"wfconn-test-result--ok","wfconn-test-result--fail"],["name","ng-check","method","stroke","size","10"],[1,"wfconn-test-result"],["name","ng-check-circle","method","stroke","size","13"],[1,"wfconn-test-result__tables"],["name","ng-alert-circle","method","stroke","size","13"],[1,"wfconn-form-overlay",3,"click"],[1,"wfconn-form-panel"],[1,"wfconn-form-panel__header"],[1,"wfconn-form-panel__title"],[1,"wfconn-form-close",3,"click"],["name","ng-x","method","stroke","size","16"],[1,"wfconn-form-panel__body"],[1,"wfconn-field"],[1,"wfconn-label"],["type","text",1,"wfconn-input",3,"ngModelChange","ngModel","placeholder"],[1,"wfconn-label--opt"],[1,"wfconn-select",3,"ngModelChange","ngModel"],["value","mssql"],["value","opensearch"],["value","postgres"],["value","snowflake"],[1,"wfconn-divider"],[1,"wfconn-form-error"],[1,"wfconn-form-panel__footer"],[1,"wfconn-btn","wfconn-btn--secondary",3,"click","disabled"],[1,"wfconn-btn","wfconn-btn--primary",3,"click","disabled"],["type","text","placeholder","server.database.windows.net",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","my_database",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-field-row"],["type","text","placeholder","sa",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-input-wrap"],["placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"wfconn-input",3,"ngModelChange","type","ngModel"],["type","button",1,"wfconn-input-toggle",3,"click"],["method","stroke","size","14"],["type","text","placeholder","gold",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-field","wfconn-field--sm"],["type","number","placeholder","1433",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","https://my-cluster.us-east-1.es.amazonaws.com",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","admin",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","localhost",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","number","placeholder","5432",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","postgres",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","public",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","myorg-myaccount",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","MY_DB",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","PUBLIC",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","COMPUTE_WH",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","myuser",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-spinner","wfconn-spinner--sm","wfconn-spinner--white"],["name","ng-activity","method","stroke","size","13","color","#fff"]],template:function(e,n){e&1&&(l(0,"section",0)(1,"header",1)(2,"div",2)(3,"a",3),m(4,"nile-glyph",4),l(5,"span"),_(6),d()(),l(7,"span",5),_(8,"/"),d(),l(9,"span",6),_(10),d()(),l(11,"button",7),g("click",function(){return n.openForm()}),m(12,"nile-glyph",8),_(13),d()(),h(14,qs,4,1,"div",9)(15,Es,10,3,"div",10)(16,js,3,0,"div",11),h(17,td,43,15),d()),e&2&&(s(6),v(n.copy().connectionsBreadcrumbHome),s(4),v(n.copy().connectionsTitle),s(3),F(" ",n.copy().registerConnectionButton," "),s(),C(n.loading()?14:!n.hasConnections()&&!n.showForm()?15:16),s(3),C(n.showForm()?17:-1))},dependencies:[je,Ge,He,$e,Be,Ue,Le,We,Ht,Vt],styles:[".wfconn-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#f9fafb}.wfconn-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#fff;border-bottom:1px solid #e4e7ec;flex-shrink:0}.wfconn-header__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.wfconn-back[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;color:#344054;font-size:13px;text-decoration:none;font-weight:500}.wfconn-back[_ngcontent-%COMP%]:hover{color:#101828}.wfconn-header__sep[_ngcontent-%COMP%]{color:#d0d5dd;font-size:16px}.wfconn-header__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828}.wfconn-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:500;border:none;cursor:pointer;transition:opacity .15s}.wfconn-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.wfconn-btn--primary[_ngcontent-%COMP%]{background:#2970ff;color:#fff}.wfconn-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#1d5fd9}.wfconn-btn--secondary[_ngcontent-%COMP%]{background:#fff;color:#344054;border:1px solid #d0d5dd}.wfconn-btn--secondary[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}.wfconn-icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:500;border:1px solid #d0d5dd;background:#fff;color:#344054;cursor:pointer;transition:background .15s}.wfconn-icon-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f2f4f7}.wfconn-icon-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.wfconn-icon-btn--danger[_ngcontent-%COMP%]{color:#b42318}.wfconn-icon-btn--danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#fff1f0;border-color:#f97066}.wfconn-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:40px 24px;color:#667085;font-size:14px}.wfconn-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:12px;padding:64px 24px;text-align:center}.wfconn-empty__icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:12px;background:#f2f4f7;display:flex;align-items:center;justify-content:center}.wfconn-empty__title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#101828;margin:0}.wfconn-empty__sub[_ngcontent-%COMP%]{font-size:14px;color:#667085;margin:0;max-width:380px}.wfconn-list[_ngcontent-%COMP%]{padding:20px 24px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1}.wfconn-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:16px 18px;transition:opacity .15s}.wfconn-card--deleting[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.wfconn-card__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.wfconn-card__info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wfconn-card__name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828}.wfconn-card__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.wfconn-card__meta[_ngcontent-%COMP%]{margin-top:8px;font-size:12px;color:#98a2b3}.wfconn-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:500}.wfconn-badge--adapter[_ngcontent-%COMP%]{background:#f2f4f7;color:#344054}.wfconn-badge--active[_ngcontent-%COMP%]{background:#ecfdf3;color:#027a48}.wfconn-badge--inactive[_ngcontent-%COMP%]{background:#fff1f0;color:#b42318}.wfconn-badge--schema[_ngcontent-%COMP%]{background:#eff8ff;color:#175cd3}.wfconn-test-result[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:10px;padding:8px 10px;border-radius:6px;font-size:12px;font-weight:500}.wfconn-test-result--ok[_ngcontent-%COMP%]{background:#ecfdf3;color:#027a48}.wfconn-test-result--fail[_ngcontent-%COMP%]{background:#fff1f0;color:#b42318}.wfconn-test-result__tables[_ngcontent-%COMP%]{color:inherit;opacity:.7;font-weight:400;margin-left:4px}.wfconn-spinner[_ngcontent-%COMP%]{width:18px;height:18px;border:2px solid #e4e7ec;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_wfconn-spin .7s linear infinite}.wfconn-spinner--sm[_ngcontent-%COMP%]{width:12px;height:12px;border-width:1.5px}.wfconn-spinner--white[_ngcontent-%COMP%]{border-color:#ffffff4d;border-top-color:#fff}@keyframes _ngcontent-%COMP%_wfconn-spin{to{transform:rotate(360deg)}}.wfconn-form-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000040;z-index:200}.wfconn-form-panel[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;width:440px;max-width:95vw;background:#fff;border-left:1px solid #e4e7ec;display:flex;flex-direction:column;z-index:201;box-shadow:-4px 0 24px #00000014}.wfconn-form-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e4e7ec;flex-shrink:0}.wfconn-form-panel__title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#101828}.wfconn-form-close[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#667085;padding:4px;border-radius:4px;display:flex}.wfconn-form-close[_ngcontent-%COMP%]:hover{background:#f2f4f7;color:#344054}.wfconn-form-panel__body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.wfconn-form-panel__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e4e7ec;flex-shrink:0}.wfconn-divider[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#98a2b3;text-transform:uppercase;letter-spacing:.06em;padding:4px 0 2px;border-bottom:1px solid #f2f4f7}.wfconn-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;flex:1}.wfconn-field--sm[_ngcontent-%COMP%]{max-width:100px}.wfconn-field-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start}.wfconn-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#344054}.wfconn-label--opt[_ngcontent-%COMP%]{font-weight:400;color:#98a2b3}.wfconn-input[_ngcontent-%COMP%], .wfconn-select[_ngcontent-%COMP%]{height:36px;padding:0 10px;border:1px solid #d0d5dd;border-radius:6px;font-size:13px;color:#101828;background:#fff;width:100%;box-sizing:border-box;outline:none;transition:border-color .15s}.wfconn-input[_ngcontent-%COMP%]:focus, .wfconn-select[_ngcontent-%COMP%]:focus{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1a}.wfconn-input[_ngcontent-%COMP%]::placeholder, .wfconn-select[_ngcontent-%COMP%]::placeholder{color:#b0b7c3}.wfconn-select[_ngcontent-%COMP%]{cursor:pointer}.wfconn-input-wrap[_ngcontent-%COMP%]{position:relative;display:flex}.wfconn-input-wrap[_ngcontent-%COMP%] .wfconn-input[_ngcontent-%COMP%]{padding-right:36px}.wfconn-input-toggle[_ngcontent-%COMP%]{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#98a2b3;padding:0;display:flex}.wfconn-input-toggle[_ngcontent-%COMP%]:hover{color:#344054}.wfconn-form-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff1f0;border-radius:6px;color:#b42318;font-size:12px}"]})};function id(i,t){i&1&&m(0,"app-ask-aquera-connections-page")}function od(i,t){i&1&&m(0,"app-ask-aquera-page")}function ad(i,t){if(i&1&&h(0,id,1,0,"app-ask-aquera-connections-page")(1,od,1,0,"app-ask-aquera-page"),i&2){let e,n=r();C(((e=n.config())==null||e.initial==null?null:e.initial.view)==="connections"?0:1)}}var Ze=class i{config=Et(void 0);ready=Ee({alias:"aq-ready"});error=Ee({alias:"aq-error"});unauthorized=Ee({alias:"aq-unauthorized"});host=$(At);stopAdopting=null;stopUi=null;tokenTimer=null;configured=!1;constructor(){Pe(()=>{let t=this.config();t&&this.apply(t)}),queueMicrotask(()=>{let t=this.host.nativeElement.shadowRoot;t&&(this.stopAdopting=vt(t))})}async apply(t){let e=t.auth;if(Kt(t.api.baseUrl),Bt(t.api,e),dt({baseUrl:t.api.baseUrl,mcpUrl:t.api.mcpUrl,adminApiUrl:t.api.adminApiUrl,utilitiesUrl:t.api.utilitiesUrl,tokenizedOrigins:t.api.tokenizedOrigins,headers:t.api.headers,customerId:t.tenant.customerId??null,productId:t.tenant.productId,productName:t.tenant.productName??null,authMode:e.mode,authToken:e.mode==="token"?e.token:null,getToken:e.mode==="callback"?e.getToken:null,onUnauthorized:()=>this.unauthorized.emit(),features:t.features,ui:t.ui,copy:t.copy,routing:t.routing,initial:{dashboardId:t.initial?.dashboardId??null,conversationId:t.initial?.conversationId??null}}),this.stopUi?.(),this.stopUi=wt(this.host.nativeElement,t.ui),Jt({productId:t.tenant.productId,name:t.tenant.productName}),Qt(()=>this.unauthorized.emit()),await Ye(),e.mode==="callback"&&!this.tokenTimer&&(this.tokenTimer=setInterval(()=>{Ye()},6e4)),!this.configured){this.configured=!0;let n=R();this.ready.emit({customerId:n.customerId??"",productId:n.productId??""})}}ngOnDestroy(){this.stopAdopting?.(),this.stopUi?.(),this.tokenTimer&&clearInterval(this.tokenTimer)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["dvz-ask-root"]],inputs:{config:[1,"config"]},outputs:{ready:"aq-ready",error:"aq-error",unauthorized:"aq-unauthorized"},decls:1,vars:1,template:function(e,n){e&1&&h(0,ad,2,1),e&2&&C(n.config()?0:-1)},dependencies:[Te,Se],styles:[`:host{display:block;height:100%}
17
+ `).trim()}updateAssistantMsg(t,e){this.messages.update(n=>n.map(o=>{if(o.id!==t)return o;let a=typeof e=="function"?e(o):e;return"charts"in a&&this.forecastableMsgs.delete(t),y(y({},o),a)}))}scrollToBottom(){setTimeout(()=>this.aqChatEl?.nativeElement?.scrollToBottom?.("auto"),100)}showToast(t,e){let n=document.createElement("nile-toast");n.variant=t,n.title=e,n.duration=5e3,n.closable=!0,n.toast(),ze()}extractMessage(t,e){return Ne(t,e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["app-ask-aquera-page"]],viewQuery:function(e,n){if(e&1&&St(Ni,5)(lt,5)($i,5)(Li,5)(Wi,5)(rt,5),e&2){let o;pe(o=ue())&&(n.aqChatEl=o.first),pe(o=ue())&&(n.builderRef=o.first),pe(o=ue())&&(n.artifactGridRef=o.first),pe(o=ue())&&(n.composerRef=o.first),pe(o=ue())&&(n.aiExecutiveSummaryEl=o.first),pe(o=ue())&&(n.inlineChartWidgets=o)}},hostBindings:function(e,n){e&1&&g("dragover",function(a){return a.preventDefault()},et)("drop",function(a){return a.preventDefault()},et)("selectionchange",function(){return n.onTextSelectionChange()},Oe)("wheel",function(){return n.hideQuoteBadge()},Oe)("keydown.escape",function(){return n.hideQuoteBadge()},Oe)},features:[Ft([Ie(ge),en(de),rn(de),_n(de),sn(de),dn(de),fn(de),vn(()=>null)])],decls:38,vars:36,consts:[["composerTpl",""],["widgetDetailPanelTpl",""],["dashPickerRow",""],["aqChat",""],["inlineWidgetMenu",""],["fileInput",""],["composerEl",""],["artifactGrid",""],["aiExecutiveSummary",""],[1,"aq-shell"],["type","button",1,"reply-badge",3,"reply-badge--below","top","left"],[1,"aq-chat-pane"],[1,"wfb-header"],[1,"aq-library-pane"],["role","separator","aria-orientation","vertical","aria-label","Resize chat panel","title","Drag to resize",1,"aq-resizer",3,"is-active"],[1,"aq-artifact-pane",3,"aq-artifact-pane--dsl-only"],[1,"aq-builder-pane"],[3,"nile-request-close","nile-hide","label"],["label","Dashboard name",3,"nile-input","keydown.enter","placeholder","value"],["slot","footer",1,"wfb-save-dialog__actions"],["variant","secondary","size","small",3,"click"],["variant","primary","size","small",3,"click"],["placement","end",1,"forecast-drawer",3,"nile-request-close","nile-hide","label","open"],["slot","label",1,"forecast-drawer__label"],["name","ng-stars-02","method","stroke","size","16","color","#7a5af8",1,"forecast-drawer__mark"],["slot","footer",1,"fs-actions"],["placement","end",1,"prompt-gallery-drawer",3,"nile-request-close","nile-hide","label","open"],[3,"open","widget","dashboardId","source","sourceName","authoringMode"],[1,"ai-executive-summary"],[3,"open","widget"],["type","button",1,"reply-badge",3,"click"],["name","ng-reply","method","stroke","size","14"],[1,"wfb-header__left"],["variant","toggle-button",1,"aq-chat-pane__tabs",2,"--nile-nav-tab-padding","6px 14px"],[1,"wfb-header__right"],[1,"aq-scope-chip"],["placement","bottom-end","distance","6","stay-open-on-select","",1,"scope-dropdown",3,"nile-hide","open"],["slot","trigger","content","Add dataset or pipeline"],["type","button","aria-label","Add dataset or pipeline",1,"aq-header-action",3,"click"],["name","ng-plus","method","stroke","size","18"],["hoist","","placement","right-start","stay-open-on-select",""],["slot","trigger",1,"scope-branch"],["name","ng-database","method","stroke","size","14",1,"scope-branch__icon"],[1,"scope-branch__label"],["name","ng-chevron-right","method","stroke","size","14",1,"scope-branch__arrow"],[1,"scope-menu__loading"],["name","ng-dataflow-04","method","stroke","size","14",1,"scope-branch__icon"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"conv-dropdown",3,"nile-hide","open"],["slot","trigger","content","Conversations"],["type","button","aria-label","Conversations",1,"aq-header-action",3,"click","disabled"],["name","ng-messages-square","method","stroke","size","18"],["searchEnabled","","customSearch","",3,"nile-search-value"],[1,"list-new",3,"click"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#2970ff"],[1,"menu-empty"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"related-dropdown",3,"open"],["content","Prompt gallery"],["variant","toggle-button",1,"aq-chat-pane__tabs",2,"--nile-nav-tab-padding","6px 14px",3,"nile-tab-change"],["slot","nav","panel","chat"],["slot","nav","panel","library"],["method","stroke","size","12",1,"aq-scope-chip__icon",3,"name"],[1,"aq-scope-chip__text"],["type","button","aria-label","Clear scope",1,"aq-scope-chip__clear",3,"click"],["name","ng-x-close","method","stroke","size","12"],["variant","text","width","160","height","14"],["variant","text","width","120","height","14"],[1,"scope-menu__empty"],[3,"click"],[1,"scope-item__name"],["slot","suffix","name","ng-check","method","stroke","size","14","color","#2970ff"],["aria-hidden","true",1,"menu-skeleton-item"],[1,"list-row"],["variant","rounded","width","14","height","14","border-radius","4px"],[1,"list-row__text"],["variant","text","width","100%","height","14"],["variant","text","width","60%","height","12"],[1,"list-group"],["name","ng-message-square","method","stroke","size","14",1,"list-row__icon"],["type","text",1,"list-row__rename",3,"ngModel"],[1,"list-row__actions"],["type","button",1,"list-row__act",3,"click"],["name","ng-edit-02","method","stroke","size","14"],["type","button",1,"list-row__act","list-row__act--danger",3,"click"],["name","ng-trash-01","method","stroke","size","14"],["type","text",1,"list-row__rename",3,"ngModelChange","click","keydown.enter","keydown.escape","blur","ngModel"],[1,"list-row__title",3,"title"],[1,"list-row__meta"],["stay-open-on-select","","placement","bottom-end","distance","6",1,"related-dropdown",3,"nile-hide","open"],["slot","trigger","content","Dashboards"],["type","button","aria-label","Dashboards",1,"aq-header-action",3,"click"],["name","ng-grid-01","method","stroke","size","18"],["variant","text","width","58","height","12"],["name","ng-bar-chart-square-02","method","stroke","size","14","color","#667085",1,"list-row__icon"],["type","button","aria-label","Prompt gallery",1,"aq-header-action",3,"click"],["name","ng-lightbulb-05","method","stroke","size","18"],[1,"aq-library-pane__head"],[1,"aq-library-pane__intro"],[1,"aq-library-pane__intro-title"],["variant","toggle-button","fullWidth","",2,"--nile-nav-tab-padding","6px 14px",3,"nile-tab-change"],["slot","nav","panel","kpis"],[1,"aq-library-pane__tab-count"],["slot","nav","panel","templates"],[1,"aq-library-pane__body"],[1,"aq-artifact-pane__picker-overlay-footer"],["type","search","clearable","",3,"nile-input","nile-change","placeholder","value"],["slot","prefix","name","ng-search","method","stroke","size","16"],[1,"aq-picker-chips"],["aria-hidden","true",1,"aq-picker-chips"],["type","button",1,"aq-picker-chip",3,"click"],[1,"aq-picker-chip__count"],["type","button",1,"aq-picker-chip",3,"aq-picker-chip--active"],["variant","rounded","width","100%","height","28","border-radius","999px",3,"width"],["variant","rounded","width","100%","height","28","border-radius","999px"],["aria-hidden","true",1,"aq-lib-skeleton"],[1,"aq-library-group"],[1,"aq-library-group__head"],["variant","text","width","88","height","11"],["variant","text","width","52","height","12"],[1,"aq-lib-cards"],[1,"aq-lib-skeleton__kpi"],["variant","text","height","15"],["variant","text","width","64","height","30"],["variant","text","width","100%","height","12"],["variant","rectangular","width","100%","height","34","border-radius","6px"],[1,"prompt-gallery-empty"],[1,"aq-library-group__label"],["type","button",1,"aq-library-group__toggle",3,"click"],[1,"aq-lib-card-wrap",3,"aq-lib-card-wrap--selected"],[1,"aq-lib-card-wrap",3,"click"],["variant","card","sparklineType","line","sparklineColor","#3b82f6",3,"label","description","value","loading","sparkline","options"],["type","button",1,"aq-lib-card__check",3,"click"],["name","ng-check","method","stroke","size","11","color","#fff"],[1,"aq-lib-cards","aq-lib-cards--dashboards"],[1,"aq-lib-skeleton__dash"],["variant","rectangular","width","100%","height","108"],[1,"aq-lib-skeleton__dash-text"],["variant","text","width","72%","height","12"],["type","button",1,"aq-lib-card","aq-lib-card--dashboard"],["type","button",1,"aq-lib-card","aq-lib-card--dashboard",3,"click"],[1,"aq-lib-card__preview"],["aria-hidden","true",1,"aq-lib-card__viz"],["aria-hidden","true",1,"aq-lib-card__viz-empty"],[1,"aq-lib-card__chip"],[1,"aq-lib-card__row"],[1,"aq-lib-card__text"],[1,"aq-lib-card__title"],[1,"aq-lib-card__desc"],["name","ng-chevron-right","method","stroke","size","14","color","#98a2b3"],[3,"config"],[2,"height","34%"],[2,"height","62%"],[2,"height","48%"],[2,"height","78%"],[2,"height","40%"],["name","ng-grid-01","size","10","method","stroke"],[1,"aq-artifact-pane__picker-overlay-footer-count"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#fff"],[1,"welcome-wrap"],[1,"aq-chat"],[1,"welcome-section"],[1,"ai-badge","ai-badge--lg"],["name","ng-stars-02","method","stroke","size","24","color","#2970ff"],[1,"welcome-title"],[1,"welcome-sub"],[1,"welcome-composer"],[3,"ngTemplateOutlet"],["aria-hidden","true",1,"welcome-prompts-skeleton"],[1,"welcome-prompts-skeleton__item"],["variant","rounded","width","18","height","18","border-radius","4px",1,"welcome-prompts-skeleton__icon"],[1,"welcome-prompts-skeleton__label"],[1,"welcome-prompts"],[1,"prompt-gallery-row"],["type","button",1,"prompt-card",3,"prompt-card--ai"],["type","button",1,"prompt-card",3,"click"],["method","stroke","size","18",1,"prompt-card__icon"],[1,"prompt-card__label"],[1,"prompt-card__badge"],["type","button",1,"prompt-gallery-link",3,"click"],["name","ng-lightbulb-05","method","stroke","size","14"],[1,"aq-chat",3,"mouseup"],["slot","footer",1,"input-area"],[1,"msg-skeleton","msg-skeleton--user"],["variant","rounded","width","260","height","44","border-radius","16px"],[1,"msg-skeleton","msg-skeleton--ai"],["variant","text","width","88%","height","18"],["variant","text","width","72%","height","18"],["variant","rectangular","width","100%","height","300","border-radius","12px"],["variant","rounded","width","190","height","44","border-radius","16px"],["variant","text","width","80%","height","18"],["variant","text","width","55%","height","18"],[1,"ai-bubble","ai-bubble--user",3,"role"],[1,"sent-quote"],[1,"answer-summary"],[1,"aq-attachments","aq-attachments--sent"],["name","ng-text-quote","method","stroke","size","12"],[1,"sent-quote__text"],[1,"answer-summary__row"],["name","ng-check","method","stroke","size","14","color","#2970ff",1,"answer-summary__check"],[1,"answer-summary__content"],[1,"answer-summary__title"],[1,"answer-summary__answer"],[1,"aq-chip","aq-chip--static"],["method","stroke","size","14",1,"aq-chip__icon"],[1,"aq-chip__name"],["max-visible","3",1,"ai-bubble__steps",3,"steps"],[1,"ai-bubble",3,"role","hideIcon"],[1,"ai-bubble__content"],[1,"choice-picker"],["type","button",1,"choice-picker__step","choice-picker__resume-chip"],[1,"inline-widget"],[1,"forecast-record"],[1,"follow-ups"],["role","alert",1,"assistant-error"],[1,"assistant-text",3,"text","speedMs"],[1,"assistant-text","assistant-text--md",3,"value"],[1,"choice-picker__step"],[1,"choice-picker__group"],[1,"choice-picker__empty"],[1,"choice-picker__group",3,"nile-change"],[1,"choice-card",3,"choice-card--chosen","choice-card--locked"],[1,"choice-card"],[1,"choice-card__label"],[1,"choice-card__num"],[1,"choice-card__text"],[1,"choice-card__badge"],[1,"choice-card__name"],[1,"choice-card__hint"],[1,"choice-card__meta"],[3,"class"],[1,"choice-picker__footer-actions"],[1,"choice-picker__chat-draft"],["type","button",1,"choice-picker__chat-link",3,"click","disabled"],["type","button",1,"choice-picker__chat-link",3,"disabled"],["type","button",1,"choice-picker__chat-link","choice-picker__chat-link--preview",3,"disabled"],["name","ng-edit-02","method","stroke","size","12"],["type","button",1,"choice-picker__chat-link","choice-picker__chat-link--preview",3,"click","disabled"],["name","ng-eye","method","stroke","size","12"],[1,"choice-picker__chat-draft-label"],[1,"choice-picker__chat-draft-row"],[1,"choice-picker__chat-draft-input",3,"nile-input","keydown.enter","value"],["type","button",1,"choice-picker__step","choice-picker__resume-chip",3,"click"],[3,"config","loading","widgetId","conversationId"],[1,"chart-live"],[1,"chart-live","chart-live--preview"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown",3,"open"],[1,"forecast-meta"],[1,"inline-widget__actions"],[1,"chart-live__dot"],["slot","trigger","type","button","aria-label","Chart actions",1,"widget-header-btn"],["name","ng-dots-vertical","method","stroke","size","16"],["role","separator",1,"widget-menu__sep"],[1,"widget-menu__item",3,"click"],[1,"widget-menu__label"],["size","15",3,"name","method","color"],["size","15",3,"name","method"],["hoist","","placement","bottom-end","distance","6",1,"widget-header-dropdown",3,"nile-hide","open"],["slot","trigger","aria-hidden","true",1,"widget-header-anchor"],[1,"type-picker__panel"],[1,"inline-action__loading"],[1,"inline-action__hint"],[1,"inline-action__error"],["size","16"],[1,"type-picker__section"],[1,"type-picker__grid"],["type","button",1,"type-picker__tile","type-picker__tile--sensible"],["type","button",1,"type-picker__tile","type-picker__tile--sensible",3,"click"],["method","stroke","size","16",3,"name"],["type","button",1,"type-picker__tile"],["type","button",1,"type-picker__tile",3,"click"],[1,"filter-builder__panel"],[1,"filter-builder__active"],[1,"filter-builder__chip"],["type","button",1,"filter-builder__chip-remove",3,"click"],["name","ng-x-close","method","stroke","size","10"],[1,"filter-builder__form"],[1,"filter-builder__select",3,"ngModelChange","ngModel"],[3,"value"],["size","14"],["type","text",1,"filter-builder__input",3,"placeholder","ngModel"],[1,"filter-builder__multi"],[1,"filter-builder__select",3,"ngModel"],["type","text",1,"filter-builder__input",3,"ngModelChange","keydown.enter","placeholder","ngModel"],["type","date",1,"filter-builder__input",3,"ngModelChange","ngModel"],[1,"filter-builder__and"],["type","number",1,"filter-builder__input",3,"ngModelChange","keydown.enter","placeholder","ngModel"],["type","number",1,"filter-builder__input",3,"ngModelChange","placeholder","ngModel"],[1,"filter-builder__multi-item"],["type","checkbox",3,"change","checked"],["value","","disabled",""],[1,"forecast-meta__item"],[1,"forecast-meta__label"],[1,"forecast-meta__value"],["variant","secondary","size","small",3,"click","disabled"],["variant","secondary","size","small",3,"disabled"],["variant","primary","size","small",3,"click","disabled"],["slot","prefix","name","ng-library","method","stroke","size","14"],["placement","top-end","distance","6",1,"dash-picker",3,"open"],["variant","primary","size","small"],["placement","top-end","distance","6",1,"dash-picker",3,"nile-hide","open"],["slot","trigger","variant","primary","size","small","caret","",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"chart-card",3,"click"],[1,"chart-card__icon"],["name","ng-bar-chart-square-02","method","stroke","size","18","color","#2970ff"],[1,"chart-card__body"],[1,"chart-card__title"],[1,"chart-card__meta"],["slot","suffix","name","ng-chevron-right","method","stroke","size","14","color","#fff"],["name","clock-rewind","method","stroke","size","13","color","#717680",1,"forecast-record__icon"],[1,"forecast-record__text"],["type","button",1,"forecast-record__action",3,"click","disabled"],["type","button",1,"follow-up",3,"follow-up--ai","disabled"],["type","button",1,"follow-up",3,"click","disabled"],["method","stroke","size","14",1,"follow-up__icon"],[1,"follow-up__label"],[1,"follow-up__badge"],["name","ng-alert-circle","method","stroke","size","16",1,"assistant-error__icon"],[1,"assistant-error__text"],[1,"choice-panel"],[1,"choice-panel__header"],[1,"choice-panel__count"],[1,"choice-panel__nav-group"],["type","button",1,"choice-panel__nav",3,"click"],["name","ng-chevron-left","method","stroke","size","14"],["name","ng-chevron-right","method","stroke","size","14"],["type","button",1,"choice-panel__nav","choice-panel__close",3,"click"],["name","ng-x","method","stroke","size","14"],[1,"choice-panel__options",3,"nile-change"],[1,"choice-panel-option"],[1,"choice-panel__hint"],[1,"choice-panel-option",3,"click"],[1,"choice-panel-option__label"],[1,"choice-panel-option__num"],[1,"choice-panel-option__text"],[1,"choice-panel-option__badge"],[1,"choice-panel-option__name"],[1,"choice-panel-option__hint"],["type","button",1,"choice-panel__skip",3,"click"],[1,"choice-panel__review"],[1,"choice-panel__review-row"],[1,"choice-panel__footer","choice-panel__footer--review"],[1,"choice-panel__review-title"],[1,"choice-panel__review-answer"],[1,"aq-composer-wrap",3,"dragenter","dragover","dragleave","drop"],[1,"aq-drop-overlay"],[1,"reply-quote"],[1,"aq-attachments"],["type","file","multiple","","hidden","",3,"change"],[1,"aq-composer",3,"keydown","nile-change","nile-submit","nile-stop","placeholder","hideModel","hideAddContext","rows","speechLang","value","loading"],["slot","toolbar-extras",3,"click"],["variant","ghost","size","small","title","Attach a file","aria-label","Attach a file",1,"aq-attach-btn"],["name","ng-upload-cloud-02","method","stroke","size","20"],[1,"reply-quote__text"],["type","button","aria-label","Remove quote",1,"reply-quote__dismiss",3,"click"],["name","ng-x","method","stroke","size","12"],[1,"aq-chip",3,"aq-chip--error"],[1,"aq-chip"],["size","12",1,"aq-chip__spin"],["type","button",1,"aq-chip__retry"],["type","button","aria-label","Remove attachment",1,"aq-chip__remove",3,"click"],["type","button",1,"aq-chip__retry",3,"click"],["variant","ghost","size","small","title","Attach a file","aria-label","Attach a file",1,"aq-attach-btn",3,"click"],["name","ng-paperclip","method","stroke","size","16"],["role","separator","aria-orientation","vertical","aria-label","Resize chat panel","title","Drag to resize",1,"aq-resizer",3,"pointerdown"],[1,"aq-artifact-pane"],[1,"aq-artifact-pane__header"],[1,"aq-artifact-pane__body"],[1,"aq-artifact-pane__empty"],[3,"widgets","conversationId","editMode","selectable","canSetAlert","canAddToStory","canForecast","forecastable","forecastingWidgetId","showEditDslInViewMode","widgetsLoading","dashboardFilters","resolvedFilters","applySummary","filterExplanation"],[1,"aq-artifact-pane__footer"],[1,"aq-artifact-pane__titles"],[1,"aq-artifact-pane__title"],[1,"aq-artifact-pane__subtitle"],[1,"aq-artifact-pane__header-actions"],[1,"aq-filters-pill"],["name","ng-filter-lines","method","stroke","size","14",1,"aq-filters-pill__icon"],["label","Filters","textPosition","left",3,"nile-change","isChecked"],[1,"aq-undo-redo-group"],["variant","ghost","hide-border","","size","small","aria-label","Undo",3,"click"],["slot","prefix","name","ng-undo","method","stroke","size","16","color","#344054"],["circle","","variant","ghost","hide-border","","size","small","aria-label","Redo","title","Redo",3,"click"],["name","ng-redo","method","stroke","size","16"],["aria-hidden","true",1,"aq-artifact-pane__header-divider"],["circle","","variant","ghost","size","small",3,"click"],["name","ng-x","method","stroke","size","16"],["name","ng-layout-grid","method","stroke","size","28","color","#98a2b3"],[1,"aq-artifact-pane__empty-title"],[1,"aq-artifact-pane__empty-sub"],[3,"selectionChange","forecast","setAlert","filterSubmit","filterChange","dslWidgetUpdated","dslEditorClosed","widgetClick","widgets","conversationId","editMode","selectable","canSetAlert","canAddToStory","canForecast","forecastable","forecastingWidgetId","showEditDslInViewMode","widgetsLoading","dashboardFilters","resolvedFilters","applySummary","filterExplanation"],["variant","secondary","size","small"],["hoist","","placement","top-end","distance","6",1,"dash-picker",3,"open"],["slot","prefix","name","ng-trend-up-01","method","stroke","size","14","color","#7a5af8"],["slot","prefix","name","ng-book-open-text","method","stroke","size","14"],["hoist","","placement","top-end","distance","6",1,"dash-picker",3,"nile-hide","open"],[1,"wfb-header","aq-builder-pane__header"],["name","ng-arrow-left","method","stroke","size","16"],["variant","text","width","180","height","16"],[3,"content"],["type","button",1,"aq-header-action",3,"click"],["method","stroke","size","18"],[3,"action","canToggleFilter","hasFilter","canForecast","anyForecastOn","editMode","showFullscreen","fullscreen","busy","showPromptGallery"],[3,"exitBuilder","executiveSummary","galleryPrompt","published","widgetClick","dashboardId","preseeded","galleryPrompts","canAddToStory"],["autofocus","",1,"conv-title-input",3,"input","keydown.enter","keydown.escape","value"],["content","Save name"],["type","button","aria-label","Save dashboard name",1,"aq-header-action",3,"click","disabled"],["size","14",1,"aq-header-action__spinner"],["name","ng-check","method","stroke","size","18","color","#2970ff"],[1,"wfb-header__title"],["content","Rename dashboard"],["type","button","aria-label","Rename dashboard",1,"aq-header-action",3,"click"],["name","ng-edit-02","method","stroke","size","16"],[1,"fs-section"],["for","fs-horizon",1,"fs-label"],[1,"fs-label__value"],["id","fs-horizon","type","range","min","1","step","1",1,"fs-slider",3,"input","value"],[1,"fs-hint"],["id","fs-gran-label",1,"fs-label"],["role","radiogroup","aria-labelledby","fs-gran-label",1,"fs-segmented"],[1,"fs-segment",3,"fs-segment--on","fs-segment--off"],["for","fs-confidence",1,"fs-label"],["id","fs-confidence","type","range","min","0","step","1",1,"fs-slider","fs-slider--ai",3,"input","value"],[1,"fs-segment"],["type","radio","name","fs-granularity",1,"fs-segment__input",3,"change","value","checked","disabled"],[1,"fs-label"],[1,"fs-card","fs-card--ai"],[1,"fs-card__title"],[1,"fs-card__body"],[1,"fs-card"],["method","stroke","size","14"],["type","search","clearable","",1,"prompt-gallery-search",3,"nile-input","nile-change","placeholder","value"],["aria-hidden","true",1,"prompt-gallery-skeleton"],[1,"prompt-gallery-prompts",3,"items","vertical","wrap"],[1,"prompt-gallery-skeleton__item"],["variant","rounded","width","16","height","16","border-radius","4px"],[1,"prompt-gallery-skeleton__label"],[1,"prompt-gallery-prompts",3,"nile-item-click","items","vertical","wrap"],[1,"aq-detail-overlay"],[1,"aq-detail-overlay__crumbs"],[3,"nile-click"],["variant","text","width","160","height","16"],[1,"aq-detail-overlay__body"],[3,"widgets","editMode","selectable","selectedWidgetIds","canSetAlert","canAddToStory","canForecast"],[1,"aq-detail-overlay__footer"],[1,"aq-detail-skeleton-grid",3,"height"],[1,"aq-detail-skeleton"],[1,"aq-detail-skeleton-grid"],["variant","rectangular","border-radius","12px","width","100%","height","100%",1,"aq-detail-skeleton-slot",3,"left","top","width","height"],["variant","rectangular","border-radius","12px","width","100%","height","100%",1,"aq-detail-skeleton-slot"],[1,"aq-detail-skeleton__row"],["variant","rectangular","width","100%","height","96","border-radius","12px"],["variant","rectangular","width","100%","height","280","border-radius","12px"],[3,"selectionChange","widgets","editMode","selectable","selectedWidgetIds","canSetAlert","canAddToStory","canForecast"],[1,"aq-detail-overlay__select-count"],["slot","prefix","name","ng-plus","method","stroke","size","14","color","#98a2b3"],["slot","prefix","name","ng-layout-grid","method","stroke","size","14","color","#fff"],[3,"closed","saved","open","widget","dashboardId","source","sourceName","authoringMode"],[3,"closed","added","open","widget"]],template:function(e,n){if(e&1&&(l(0,"section",9),h(1,ji,3,7,"button",10),l(2,"div",11),h(3,Mo,43,12,"header",12),h(4,ra,21,10,"div",13),h(5,yl,2,1),fe(6,Tl,10,16,"ng-template",null,0,qe),d(),h(8,Fl,1,2,"div",14),h(9,Gl,7,6,"aside",15),h(10,Xl,15,18,"section",16),l(11,"nile-dialog",17),g("nile-request-close",function(){return n.saveDialogOpen.set(!1)})("nile-hide",function(){return n.saveDialogOpen.set(!1)}),l(12,"nile-input",18),g("nile-input",function(a){return n.saveDashboardName.set(a.detail.value)})("keydown.enter",function(){return n.confirmSaveDashboard()}),d(),l(13,"div",19)(14,"nile-button",20),g("click",function(){return n.saveDialogOpen.set(!1)}),_(15),d(),l(16,"nile-button",21),g("click",function(){return n.confirmSaveDashboard()}),_(17),d()()(),l(18,"nile-drawer",22),g("nile-request-close",function(){return n.closeForecastSettings()})("nile-hide",function(){return n.closeForecastSettings()}),l(19,"span",23),m(20,"nile-glyph",24),l(21,"span"),_(22),d()(),h(23,as,1,1),l(24,"div",25)(25,"nile-button",20),g("click",function(){return n.closeForecastSettings()}),_(26),d(),l(27,"nile-button",21),g("click",function(){return n.applyForecastSettings()}),_(28),d()()(),l(29,"nile-drawer",26),g("nile-request-close",function(){return n.closeGallery()})("nile-hide",function(){return n.closeGallery()}),h(30,_s,6,3),d(),fe(31,ws,1,1,"ng-template",null,1,qe),h(33,ks,1,6,"app-alert-drawer",27),h(34,Ps,2,0,"nile-executive-summary",28),d(),h(35,As,1,2,"app-story-picker-drawer",29),fe(36,Ms,7,3,"ng-template",null,2,qe)),e&2){let o,a;B("aq-shell--fullscreen",n.builderFullscreen())("aq-shell--resizing",n.isResizing()),A("data-mode",n.layoutMode()),s(),C((o=n.quoteBadge())?1:-1,o),s(),Z("flex-basis",n.chatPaneStyleWidth(),"px")("max-width",n.chatPaneStyleWidth(),"px"),s(),C(n.showHeader()?3:-1),s(),C(n.features().library&&n.chatPaneTab()==="library"?4:-1),s(),C(n.chatPaneTab()==="chat"?5:-1),s(3),C((n.layoutMode()==="split"||n.layoutMode()==="builder")&&!n.builderFullscreen()?8:-1),s(),C(n.artifactOpen()?9:-1),s(),C(n.builderOpen()?10:-1),s(),b("label",n.copy().saveDashboardDialogLabel),A("open",n.saveDialogOpen()?"":null),s(),b("placeholder",n.copy().dashboardNamePlaceholder)("value",n.saveDashboardName()),s(3),v(n.copy().cancelButton),s(),A("loading",n.savingDashboard()?"":null)("disabled",!n.saveDashboardName().trim()||n.savingDashboard()?"":null),s(),F(" ",n.copy().saveDashboardButton," "),s(),b("label",n.copy().forecastSettingsLabel)("open",n.forecastSettingsOpen()),s(4),v(n.copy().forecastSettingsLabel),s(),C((a=n.forecastDraft())?23:-1,a),s(3),v(n.copy().cancelButton),s(2),v(n.copy().applyButton),s(),b("label",n.copy().promptGalleryLabel)("open",n.galleryOpen()),s(),C(n.galleryOpen()?30:-1),s(3),C(n.features().alerts?33:-1),s(),C(n.features().executiveSummary?34:-1),s(),C(-1)}},dependencies:[It,je,Ge,He,$e,Be,Ue,Le,We,Dn,Fn,rt,wn,lt,Mn,On],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden;position:relative;font-family:var(--ng-font-family-body, "Inter", system-ui, sans-serif);background:var(--ng-colors-bg-active, #f9fafb);color:#101828}.wfb-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.aq-header-action[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;outline:0;background:transparent;color:var(--ng-colors-text-tertiary-600, #535862);cursor:pointer;border-radius:6px;flex-shrink:0}.aq-header-action[_ngcontent-%COMP%]:hover, .aq-header-action[_ngcontent-%COMP%]:focus, .aq-header-action[_ngcontent-%COMP%]:focus-visible{outline:0;background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-primary-900, #181d27)}.aq-header-action[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.wfb-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;background:#fff;flex-shrink:0;gap:12px}.wfb-header__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto}.wfb-header__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.wfb-header__right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.aq-scope-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;max-width:220px;height:24px;padding:0 4px 0 8px;border-radius:999px;border:1px solid var(--ng-colors-border-secondary);background:var(--ng-colors-bg-secondary-50);color:var(--ng-colors-text-tertiary-600);font-size:12px;font-weight:500;flex-shrink:0}.aq-scope-chip__icon[_ngcontent-%COMP%]{flex-shrink:0}.aq-scope-chip__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-scope-chip__clear[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer;flex-shrink:0}.aq-scope-chip__clear[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-active);color:var(--ng-colors-text-primary-900)}.scope-branch[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.scope-branch__label[_ngcontent-%COMP%]{flex:1}.scope-branch__icon[_ngcontent-%COMP%], .scope-branch__arrow[_ngcontent-%COMP%]{flex-shrink:0}.scope-menu__loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:8px 12px;max-width:max-content}.scope-menu__empty[_ngcontent-%COMP%]{padding:8px 12px;color:var(--ng-colors-text-tertiary-600);font-size:13px}.scope-item__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}.conv-trigger__label[_ngcontent-%COMP%]{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.conv-title-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:none;background:transparent;padding:4px 2px 4px 6px;border-radius:6px;cursor:pointer;max-width:360px}.conv-title-btn[_ngcontent-%COMP%] .wfb-header__title[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;font-weight:400;color:#344054}.conv-title-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f2f4f7}.conv-title-btn[_ngcontent-%COMP%]:disabled{cursor:default}.conv-title-btn__edit[_ngcontent-%COMP%]{flex-shrink:0;opacity:0;transition:opacity .12s}.conv-title-btn[_ngcontent-%COMP%]:hover:not(:disabled) .conv-title-btn__edit[_ngcontent-%COMP%]{opacity:1}.conv-title-input[_ngcontent-%COMP%]{font-family:inherit;font-size:14px;font-weight:400;color:#344054;border:1px solid #2970ff;border-radius:6px;padding:4px 8px;outline:none;min-width:220px;box-shadow:0 0 0 3px #2970ff14}.header-conn-wrap[_ngcontent-%COMP%]{position:relative}.header-conn-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;background:#fff;border:1px solid #d0d5dd;border-radius:8px;font-size:12px;font-weight:500;color:#344054;cursor:pointer;transition:border-color .15s,box-shadow .15s;white-space:nowrap;max-width:200px}.header-conn-chip[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#98a2b3;box-shadow:0 1px 3px #10182814}.header-conn-chip--open[_ngcontent-%COMP%]{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff14}.header-conn-chip[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.header-conn-chip__label[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;max-width:150px}.header-conn-chip__chevron[_ngcontent-%COMP%]{flex-shrink:0;transition:transform .15s}.header-conn-chip__chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.header-conn-chip__spinner[_ngcontent-%COMP%]{width:12px;height:12px;border:1.5px solid #e0e5ef;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;flex-shrink:0}.header-conn-dropdown[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;background:#fff;border:1px solid #eaecf0;border-radius:10px;box-shadow:0 8px 24px #1018281f;z-index:20;overflow:hidden}.header-conn-dropdown__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12px;color:#344054;cursor:pointer;transition:background .1s}.header-conn-dropdown__item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:1}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover{background:#f9fafb}.header-conn-dropdown__item--active[_ngcontent-%COMP%]{background:#eff4ff;color:#2970ff;font-weight:500}.header-conn-dropdown__check[_ngcontent-%COMP%]{color:#2970ff;flex-shrink:0}.header-conn-dropdown__delete[_ngcontent-%COMP%]{flex-shrink:0;opacity:0;color:#667085;transition:opacity .1s,color .1s}.header-conn-dropdown__item-title[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover .header-conn-dropdown__delete[_ngcontent-%COMP%]{opacity:1}.header-conn-dropdown__item[_ngcontent-%COMP%]:hover .header-conn-dropdown__delete[_ngcontent-%COMP%]:hover{color:#d92d20}.header-conn-dropdown__item--new[_ngcontent-%COMP%]{color:#2970ff;font-weight:500;border-bottom:1px solid #f2f4f7;padding-bottom:10px;margin-bottom:2px}.header-new-chat[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:5px 10px;background:transparent;border:1px solid #d0d5dd;border-radius:8px;font-size:12px;font-weight:500;color:#344054;cursor:pointer;font-family:inherit;white-space:nowrap;transition:border-color .15s,background .15s}.header-new-chat[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb;border-color:#98a2b3}.header-new-chat[_ngcontent-%COMP%]:disabled{opacity:.4;cursor:not-allowed}.ai-badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#eff4ff;flex-shrink:0}.ai-badge--sm[_ngcontent-%COMP%]{width:22px;height:22px}.ai-badge--lg[_ngcontent-%COMP%]{width:48px;height:48px}.conv-dropdown[_ngcontent-%COMP%]{margin-left:-8px}.conv-dropdown[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]::part(base){padding-left:2px;padding-right:2px}.conv-dropdown[_ngcontent-%COMP%]::part(panel){width:380px;max-width:90vw;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper), .related-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper), .dash-picker[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]::part(menu__items-wrapper){max-height:340px;overflow-x:hidden}.related-trigger__label[_ngcontent-%COMP%]{display:inline-block;max-width:0;overflow:hidden;white-space:nowrap;opacity:0;transition:max-width .2s ease,opacity .15s ease}.related-trigger[_ngcontent-%COMP%]:hover .related-trigger__label[_ngcontent-%COMP%], .related-trigger[_ngcontent-%COMP%]:focus-visible .related-trigger__label[_ngcontent-%COMP%]{max-width:120px;opacity:1}.dash-picker[_ngcontent-%COMP%]::part(panel){width:420px;max-width:92vw;overflow:hidden}.related-dropdown[_ngcontent-%COMP%]::part(panel){width:420px;max-width:90vw;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu[_ngcontent-%COMP%]{display:block;width:100%}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label), .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label), .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(label){display:flex;flex:1 1 auto;min-width:0;margin:0}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base), .related-dropdown[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base), .dash-picker[_ngcontent-%COMP%] nile-menu-item[_ngcontent-%COMP%]::part(base){width:100%;min-width:0;overflow:hidden}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%], .dash-picker[_ngcontent-%COMP%] nile-menu-item.list-new[_ngcontent-%COMP%]{position:sticky;top:0;z-index:2;background:#fff}.scope-menu__loading[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;padding:8px 12px}.menu-empty[_ngcontent-%COMP%]{padding:10px 16px;font-size:12.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.menu-skeleton-item[_ngcontent-%COMP%]{pointer-events:none}.prompt-gallery-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;width:100%}.prompt-gallery-skeleton__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:16px;border:1px solid #e9eaeb;border-radius:10px;background:#fff}.prompt-gallery-skeleton__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.aq-header-action__spinner[_ngcontent-%COMP%]{display:inline-flex;color:#2970ff}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__title[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__title[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-primary, #155eef);font-weight:600}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__icon[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__icon[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-primary, #155eef);opacity:1}.conv-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__meta[_ngcontent-%COMP%], .related-dropdown[_ngcontent-%COMP%] nile-menu-item[active][_ngcontent-%COMP%] .list-row__meta[_ngcontent-%COMP%]{color:var(--ng-colors-text-brand-secondary, #2970ff)}.list-group[_ngcontent-%COMP%]{padding:10px 8px 4px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-quaternary, #a4a7ae);pointer-events:none}.list-new[_ngcontent-%COMP%]{border-bottom:1px solid var(--ng-colors-border-tertiary, #f5f5f5)}.list-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;max-width:100%;min-width:0;overflow:hidden}.list-row__icon[_ngcontent-%COMP%]{flex-shrink:0;opacity:.55;color:var(--ng-colors-text-tertiary-600, #535862)}.list-row__text[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;max-width:100%;overflow:hidden;display:flex;flex-direction:column;gap:2px}.list-row__title[_ngcontent-%COMP%]{font-size:13px;line-height:18px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row__meta[_ngcontent-%COMP%]{font-size:12px;line-height:16px;color:var(--ng-colors-text-tertiary-600, #535862);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list-row__rename[_ngcontent-%COMP%]{width:100%;min-width:0;font:inherit;font-size:13px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);padding:1px 6px;border:1px solid var(--ng-colors-border-primary, #d5d7da);border-radius:6px;background:#fff;outline:none}.list-row__rename[_ngcontent-%COMP%]:focus{border-color:var(--ng-colors-text-brand-primary, #155eef)}.list-row__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px;flex:0 0 auto;margin-left:auto}.list-row__act[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ng-colors-text-tertiary-600, #535862);opacity:.45;cursor:pointer;transition:opacity .12s,background-color .12s,color .12s}.list-row__act[_ngcontent-%COMP%]:hover{opacity:1;background:var(--ng-colors-bg-tertiary, #f5f5f5)}.list-row__act--danger[_ngcontent-%COMP%]:hover{color:#d92d20}.aq-chat[_ngcontent-%COMP%]{flex:1;min-height:0;display:block}.aq-chat[_ngcontent-%COMP%]::part(viewport){scrollbar-width:none;-ms-overflow-style:none}.aq-chat[_ngcontent-%COMP%]::part(scroll-button){display:none}.aq-chat[_ngcontent-%COMP%]::part(messages){padding:16px;display:flex;flex-direction:column;gap:16px}.aq-chat[_ngcontent-%COMP%]::part(empty){position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;padding:24px 16px;box-sizing:border-box}.msg-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;align-self:flex-start}.msg-skeleton--ai[_ngcontent-%COMP%]{width:100%;max-width:100%}.msg-skeleton--user[_ngcontent-%COMP%]{align-self:flex-end;max-width:60%}nile-skeleton-loader[_ngcontent-%COMP%]::part(skeleton){background-color:#e4e7ec;opacity:1}.welcome-wrap[_ngcontent-%COMP%]{flex:1;min-height:0;display:flex;overflow:auto}.welcome-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin:auto;width:100%;max-width:820px;padding:48px 16px}.welcome-title[_ngcontent-%COMP%]{margin:0;font-size:22px;font-weight:700;color:#181d27;letter-spacing:-.02em}.welcome-sub[_ngcontent-%COMP%]{margin:0 0 4px;font-size:14px;color:#535862;max-width:440px;line-height:1.6}.welcome-composer[_ngcontent-%COMP%]{width:100%;margin:8px auto 4px}.aq-composer[_ngcontent-%COMP%]{display:block;width:100%}.welcome-prompts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.prompt-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:12px 14px;border:1px solid #e9eaeb;border-radius:12px;background:#fff;cursor:pointer;text-align:left;font:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.prompt-card[_ngcontent-%COMP%]:hover{border-color:#b2ccff;box-shadow:0 1px 2px #1018280f}.prompt-card__icon[_ngcontent-%COMP%]{flex:0 0 auto}.prompt-card__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:13px;font-weight:500;line-height:1.45;color:#414651;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.prompt-card__badge[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;padding:2px 6px;border-radius:4px;background:#7a5af8;color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}.prompt-card--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#fbfaff}.prompt-card--ai[_ngcontent-%COMP%]:hover{border-color:#b9a6fb}.forecast-drawer[_ngcontent-%COMP%]{--size: 420px}.forecast-drawer[_ngcontent-%COMP%]::part(header){align-items:center;padding:0 12px 0 16px;border-bottom:1px solid #eaecf0}.forecast-drawer[_ngcontent-%COMP%]::part(title){display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#101828}.forecast-drawer[_ngcontent-%COMP%]::part(body){display:flex;flex-direction:column;gap:22px;padding:20px 16px}.forecast-drawer[_ngcontent-%COMP%]::part(footer){border-top:1px solid #eaecf0;padding:12px 16px}.forecast-drawer__label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:#101828}.forecast-drawer__mark[_ngcontent-%COMP%]{flex:0 0 auto}.fs-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.fs-label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#414651}.fs-label__value[_ngcontent-%COMP%]{color:#5925dc}.fs-hint[_ngcontent-%COMP%]{margin:0;font-size:11px;line-height:1.5;color:#717680}.fs-slider[_ngcontent-%COMP%]{appearance:none;width:100%;height:6px;margin:2px 0;border-radius:3px;background:#eaecf0;cursor:pointer;background-image:linear-gradient(#2970ff,#2970ff);background-repeat:no-repeat;background-size:var(--fs-fill, 50%) 100%}.fs-slider--ai[_ngcontent-%COMP%]{background-image:linear-gradient(#7a5af8,#7a5af8)}.fs-slider[_ngcontent-%COMP%]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border:2px solid #fff;border-radius:50%;background:#2970ff;box-shadow:0 1px 3px #10182833}.fs-slider--ai[_ngcontent-%COMP%]::-webkit-slider-thumb{background:#7a5af8}.fs-slider[_ngcontent-%COMP%]::-moz-range-thumb{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:#2970ff;box-shadow:0 1px 3px #10182833}.fs-slider--ai[_ngcontent-%COMP%]::-moz-range-thumb{background:#7a5af8}.fs-slider[_ngcontent-%COMP%]:focus-visible{outline:2px solid #84adff;outline-offset:3px}.fs-segmented[_ngcontent-%COMP%]{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px;padding:3px;border:1px solid #e9eaeb;border-radius:8px;background:#f9fafb}.fs-segment[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:6px 4px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500;color:#535862;white-space:nowrap;transition:background .15s ease,color .15s ease}.fs-segment__input[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.fs-segment[_ngcontent-%COMP%]:hover{color:#181d27}.fs-segment--on[_ngcontent-%COMP%]{background:#2970ff;color:#fff;font-weight:600}.fs-segment--on[_ngcontent-%COMP%]:hover{color:#fff}.fs-segment--off[_ngcontent-%COMP%]{color:#a4a7ae;cursor:not-allowed}.fs-segment--off[_ngcontent-%COMP%]:hover{color:#a4a7ae}.fs-segment[_ngcontent-%COMP%]:has(.fs-segment__input:focus-visible){outline:2px solid #84adff;outline-offset:1px}.fs-card[_ngcontent-%COMP%]{padding:12px 14px;border:1px solid #e9eaeb;border-radius:10px;background:#fcfcfd}.fs-card__title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:12px;font-weight:600;color:#414651}.fs-card__body[_ngcontent-%COMP%]{margin:0;font-size:11px;line-height:1.6;color:#535862}.fs-card--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#fbfaff}.fs-card--ai[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#5925dc}.fs-card--pass[_ngcontent-%COMP%]{border-color:#abefc6;background:#f6fef9}.fs-card--pass[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#067647}.fs-card--warn[_ngcontent-%COMP%]{border-color:#fedf89;background:#fffcf5}.fs-card--warn[_ngcontent-%COMP%] .fs-card__title[_ngcontent-%COMP%]{color:#b54708}.fs-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.aq-detail-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:50;display:flex;flex-direction:column;background:#fff;animation:_ngcontent-%COMP%_aq-slide-in .16s ease}.aq-detail-overlay__crumbs[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;flex-shrink:0}.aq-detail-overlay__crumbs[_ngcontent-%COMP%] nile-breadcrumb[_ngcontent-%COMP%]{display:inline-flex;align-items:center}.aq-detail-overlay__body[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;padding:20px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-detail-overlay__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-detail-overlay__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-detail-overlay__select-count[_ngcontent-%COMP%]{margin-right:auto;font-size:13px;font-weight:500;color:#414651}.aq-detail-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.aq-detail-skeleton__row[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.aq-detail-skeleton-grid[_ngcontent-%COMP%]{position:relative;width:100%}.aq-detail-skeleton-slot[_ngcontent-%COMP%]{position:absolute}.aq-detail-skeleton-slot[_ngcontent-%COMP%]::part(base){height:100%}.prompt-gallery-prompts[_ngcontent-%COMP%]{width:100%}.prompt-gallery-prompts[_ngcontent-%COMP%]::part(item-label){font-weight:500}.ai-bubble__steps[_ngcontent-%COMP%]{display:block;width:100%;box-sizing:border-box;margin-bottom:12px;padding:12px 16px}.wfb-suggestions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}.wfb-suggestions-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-top:12px}.suggestions-spinner[_ngcontent-%COMP%]{width:16px;height:16px;border:2px solid #e0e5ef;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;flex-shrink:0}.suggestions-loading-content[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:2px}.suggestions-loading-text[_ngcontent-%COMP%]{color:#667085;font-size:13px;font-style:italic}.suggestions-loading-dots[_ngcontent-%COMP%]{display:inline-flex;gap:1px}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#667085;font-size:13px;animation:_ngcontent-%COMP%_dot-fade 1.4s ease-in-out infinite}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.suggestions-loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_dot-fade{0%,80%,to{opacity:.2}40%{opacity:1}}.welcome-prompts-skeleton[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}.welcome-prompts-skeleton__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e9eaeb;border-radius:12px;background:#fff}.welcome-prompts-skeleton__icon[_ngcontent-%COMP%]{flex:0 0 auto}.welcome-prompts-skeleton__label[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;max-width:70%}.prompt-gallery-row[_ngcontent-%COMP%]{width:100%;margin:2px auto 0;display:flex;justify-content:flex-end;gap:16px}.prompt-gallery-link[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;padding:2px 0;cursor:pointer;font:inherit;font-size:13px;font-weight:400;color:#2970ff}.prompt-gallery-link[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.prompt-gallery-link[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{text-decoration:underline}.prompt-gallery-drawer[_ngcontent-%COMP%]{--size: calc(100vw - 248px) }.prompt-gallery-drawer[_ngcontent-%COMP%]::part(header){height:var(--aq-header-h, 56px);align-items:center;padding:0 16px;border-bottom:1px solid #eaecf0}.prompt-gallery-drawer[_ngcontent-%COMP%]::part(title){font-size:16px;font-weight:600;color:#101828}.prompt-gallery-drawer[_ngcontent-%COMP%]::part(body){display:flex;flex-direction:column;gap:14px}.prompt-gallery-search[_ngcontent-%COMP%]{width:100%;flex-shrink:0}.prompt-gallery-empty[_ngcontent-%COMP%]{color:#717680;font-size:13px;padding:24px 4px}.prompt-gallery-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;align-content:start}.prompt-gallery-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;width:100%;border:1px solid #e9eaeb;border-radius:12px;padding:12px 16px;background:#fff;cursor:pointer;text-align:left;font:inherit;font-size:13px;font-weight:500;color:#414651;line-height:1.4;transition:border-color .18s,box-shadow .18s}.prompt-gallery-item[_ngcontent-%COMP%]:hover{border-color:#2970ff;box-shadow:0 6px 24px #2970ff1a}.aq-library-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.aq-library-group__head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.aq-library-group__label[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#71798d}.aq-library-group__toggle[_ngcontent-%COMP%]{border:none;background:none;padding:0;font:inherit;font-size:12px;font-weight:600;color:#2563eb;cursor:pointer}.aq-library-group__toggle[_ngcontent-%COMP%]:hover{text-decoration:underline}.aq-lib-cards[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.aq-lib-cards--dashboards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:10px}.aq-lib-card-wrap[_ngcontent-%COMP%]{position:relative;cursor:pointer;border-radius:10px;transition:box-shadow .15s}.aq-lib-card-wrap[_ngcontent-%COMP%] nile-kpi-chart[_ngcontent-%COMP%]{display:block;height:172px;box-sizing:border-box}.aq-lib-card-wrap--selected[_ngcontent-%COMP%]{box-shadow:0 0 0 3px #1d4ed826;border-radius:10px}.aq-lib-card[_ngcontent-%COMP%]{cursor:pointer;padding:13px 14px;border-radius:10px;background:#fff;border:1.5px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08;transition:border-color .15s,box-shadow .15s}.aq-lib-card[_ngcontent-%COMP%]:hover{border-color:#c7d5f5}.aq-lib-card--dashboard[_ngcontent-%COMP%]{display:block;width:100%;padding:0;overflow:hidden;text-align:left;font:inherit;color:inherit}.aq-lib-card--dashboard[_ngcontent-%COMP%] .aq-lib-card__row[_ngcontent-%COMP%]{align-items:center;padding:11px 13px 12px}.aq-lib-skeleton[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.aq-lib-skeleton__kpi[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;height:172px;box-sizing:border-box;padding:16px;border-radius:10px;background:#fff;border:1px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08}.aq-lib-skeleton__kpi[_ngcontent-%COMP%] nile-skeleton-loader[_ngcontent-%COMP%]:last-child{margin-top:auto}.aq-lib-skeleton__dash[_ngcontent-%COMP%]{border-radius:10px;overflow:hidden;background:#fff;border:1px solid #e6eaf1;box-shadow:0 1px 2px #0f172a08}.aq-lib-skeleton__dash-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;padding:13px 14px}.aq-lib-card__preview[_ngcontent-%COMP%]{position:relative;height:108px;background:linear-gradient(180deg,#fbfcfe,#f4f7fb);border-bottom:1px solid #eef1f6}.aq-lib-card__viz[_ngcontent-%COMP%]{position:absolute;inset:6px 8px 4px;pointer-events:none}.aq-lib-card__viz-empty[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:7px;padding:18px}.aq-lib-card__viz-empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex:0 0 14px;border-radius:3px 3px 0 0;background:#e3e9f2}.aq-lib-card__chip[_ngcontent-%COMP%]{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:5px;background:#ffffffeb;border:1px solid #e6eaf1;font-size:10.5px;font-weight:600;color:#56607a}.aq-lib-card__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.aq-lib-card__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.aq-lib-card__title[_ngcontent-%COMP%]{font-size:13px;font-weight:500;letter-spacing:-.01em;line-height:1.35;color:#101828}.aq-lib-card__title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:7px}.aq-lib-card__badge[_ngcontent-%COMP%]{flex-shrink:0;font-size:10.5px;font-weight:600;color:#56607a;background:#eef1f6;border-radius:5px;padding:2px 6px}.aq-lib-card__desc[_ngcontent-%COMP%]{font-size:11.5px;color:#71798d;line-height:1.45;margin-top:3px}.aq-lib-card__check[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;z-index:1;flex:0 0 18px;width:18px;height:18px;border-radius:5px;border:1.5px solid #cbd5e1;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.aq-lib-card__check[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{opacity:0}.aq-lib-card__check--on[_ngcontent-%COMP%]{border-color:#1d4ed8;background:#1d4ed8}.aq-lib-card__check--on[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{opacity:1}.ai-bubble[_ngcontent-%COMP%]{display:block;width:100%;max-width:100%;margin-inline:auto}.ai-bubble__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.ai-bubble--user[_ngcontent-%COMP%]{white-space:pre-line}.sent-quote[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:6px;margin-bottom:6px;padding:6px 8px;border-radius:8px;border-left:3px solid #155eef;background:#155eef0f;color:var(--ng-colors-text-tertiary-600, #535862);font-size:12px;line-height:1.4}.sent-quote[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px;color:#155eef}.answer-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.answer-summary__row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.answer-summary__check[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px}.answer-summary__content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.answer-summary__title[_ngcontent-%COMP%]{font-size:13.5px;font-weight:400;color:var(--ng-colors-text-primary-900, #181d27)}.answer-summary__answer[_ngcontent-%COMP%]{font-size:12.5px;font-weight:500;color:var(--ng-colors-text-tertiary-600, #535862)}.answer-summary__answer[_ngcontent-%COMP%]:before{content:"\\2014 "}.sent-quote__text[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ai-bubble[_ngcontent-%COMP%]::part(thinking){border:none;padding-left:2px;font-size:12px}.ai-bubble[_ngcontent-%COMP%]::part(base), .ai-bubble[_ngcontent-%COMP%]::part(bubble){transition:max-width .22s ease,width .22s ease}.assistant-text[_ngcontent-%COMP%]{display:block;max-width:680px}.user-row[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-start;gap:8px;width:100%;max-width:860px;margin-inline:auto}.user-icon[_ngcontent-%COMP%]{order:2;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f2f4f7;flex-shrink:0;margin-top:2px}.user-bubble[_ngcontent-%COMP%]{order:1;background:#2970ff;border-radius:12px 2px 12px 12px;padding:10px 14px;font-size:14px;color:#fff;max-width:70%;white-space:pre-wrap;word-break:break-word}.assistant-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;width:100%;max-width:860px;margin-inline:auto}.assistant-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eff4ff;flex-shrink:0;margin-top:2px}.assistant-body[_ngcontent-%COMP%]{flex:1;min-width:0;max-width:760px;display:flex;flex-direction:column;gap:12px}.assistant-text[_ngcontent-%COMP%]{font-size:14px;color:#344054;line-height:1.6;margin:0;white-space:pre-wrap;word-break:break-word}.assistant-text--error[_ngcontent-%COMP%]{color:#d92d20}.assistant-text--md[_ngcontent-%COMP%]{white-space:normal;display:block}.assistant-error[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #fda29b;border-radius:8px;background:#fffbfa;font-size:13px;line-height:1.5;color:#b42318}.assistant-error__icon[_ngcontent-%COMP%]{flex-shrink:0;color:#d92d20;margin-top:1px}.assistant-error__text[_ngcontent-%COMP%]{word-break:break-word}.wfb-tools[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.wfb-tool[_ngcontent-%COMP%]{font-size:11px}.wfb-tool[_ngcontent-%COMP%]::part(content){display:inline-flex;align-items:center;gap:5px}.wfb-tool__spinner[_ngcontent-%COMP%]{width:10px;height:10px;border:1.5px solid currentColor;border-top-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spin .7s linear infinite;display:inline-block}.wfb-tool__detail[_ngcontent-%COMP%]{opacity:.75;font-weight:400}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}.agent-trace[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:14px;margin:2px 0;padding-left:18px}.agent-trace[_ngcontent-%COMP%]:before{content:"";position:absolute;top:4px;bottom:4px;left:3px;width:2px;border-radius:1px;background:#eaecf0}.agent-trace__row[_ngcontent-%COMP%]{min-width:0}.agent-trace__text[_ngcontent-%COMP%]{margin:0;font-size:13px;line-height:1.6;color:#717680;white-space:pre-wrap;word-break:break-word}.agent-trace__chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.wfb-status-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:4px 0}.wfb-status-text[_ngcontent-%COMP%]{font-size:13px;color:#667085;font-style:italic}.wfb-typing[_ngcontent-%COMP%]{display:flex;gap:4px;align-items:center;padding:6px 0}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#98a2b3;animation:_ngcontent-%COMP%_bounce 1.2s ease-in-out infinite}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:.2s}.wfb-typing[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:.4s}@keyframes _ngcontent-%COMP%_bounce{0%,60%,to{transform:translateY(0);opacity:.4}30%{transform:translateY(-5px);opacity:1}}.chart-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #eaecf0;border-radius:12px;background:#fff;box-shadow:0 1px 3px #1018280f;cursor:pointer;transition:border-color .15s,box-shadow .15s;width:100%;max-width:100%}.chart-card[_ngcontent-%COMP%]:hover{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff14}.chart-card__icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:#eff4ff;flex-shrink:0}.chart-card__body[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.chart-card__title[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#101828;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-card__meta[_ngcontent-%COMP%]{font-size:12px;color:#667085}.aq-composer-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;width:100%;box-sizing:border-box;border:1px solid #d0d5dd;border-radius:20px;background:#fff;transition:border-color .12s ease,box-shadow .12s ease}.aq-composer-wrap[_ngcontent-%COMP%]:focus-within{border-color:#155eef;box-shadow:0 0 0 3px #155eef1f}.aq-composer-wrap--dragover[_ngcontent-%COMP%]{border-color:#155eef;border-style:dashed;box-shadow:0 0 0 3px #155eef1f}.aq-composer-wrap[_ngcontent-%COMP%] > .aq-attachments[_ngcontent-%COMP%]{padding:10px 14px 0}.reply-badge[_ngcontent-%COMP%]{position:fixed;z-index:1000;transform:translate(-50%,calc(-100% - 8px));display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border:none;border-radius:999px;background:var(--ng-colors-bg-primary-solid, #181d27);color:#fff;font-size:12px;font-weight:500;line-height:1;box-shadow:var(--ng-shadow-lg, 0 8px 16px rgba(16, 24, 40, .16));cursor:pointer}.reply-badge[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-primary-solid-hover, #0c0e12)}.reply-badge--below[_ngcontent-%COMP%]{transform:translate(-50%,8px)}.reply-quote[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;margin:10px 14px 0;padding:8px 10px;border-radius:10px;border-left:3px solid #155eef;background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-tertiary-600, #535862);font-size:12px;line-height:1.4}.reply-quote[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:2px;color:#155eef;transform:rotate(180deg)}.reply-quote__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.reply-quote__dismiss[_ngcontent-%COMP%]{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:2px;border:none;background:transparent;color:inherit;cursor:pointer;border-radius:4px}.reply-quote__dismiss[_ngcontent-%COMP%]:hover{background:#0000000f}.aq-drop-overlay[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:20px;background:#eff6ffeb;color:#155eef;font-size:13px;font-weight:500;pointer-events:none}.aq-composer[_ngcontent-%COMP%]::part(base){border:0;border-radius:0;background:transparent;box-shadow:none}.aq-composer[_ngcontent-%COMP%]::part(toolbar-end){gap:6px;align-items:center}.aq-composer[loading][_ngcontent-%COMP%]::part(send-button){background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-tertiary-600, #535862)}.aq-composer[loading][_ngcontent-%COMP%]::part(send-button):hover{background:var(--ng-colors-bg-active, #e9eaeb);color:var(--ng-colors-text-primary-900, #181d27)}.aq-attachments[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.aq-attachments--sent[_ngcontent-%COMP%]{margin-top:6px}.aq-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 8px;border:1px solid #eaecf0;border-radius:8px;background:#f9fafb;font-size:12px;color:#344054}.aq-chip--error[_ngcontent-%COMP%]{border-color:#fda29b;background:#fffbfa;color:#b42318}.aq-chip--static[_ngcontent-%COMP%]{background:#fff}.aq-chip__icon[_ngcontent-%COMP%]{color:#667085;flex-shrink:0}.aq-chip__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-chip__spin[_ngcontent-%COMP%]{flex-shrink:0}.aq-chip__retry[_ngcontent-%COMP%]{border:none;background:none;padding:0;color:#b42318;font-size:12px;font-weight:600;cursor:pointer}.aq-chip__remove[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;border:none;background:none;padding:0;cursor:pointer;color:#98a2b3;flex-shrink:0}.aq-chip__remove[_ngcontent-%COMP%]:hover{color:#475467}.wfb-breadcrumb[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;font-size:13px}.wfb-breadcrumb__current[_ngcontent-%COMP%]{color:#101828;font-weight:500}.wfb-preview-close[_ngcontent-%COMP%]{cursor:pointer;color:#667085}.wfb-preview-close[_ngcontent-%COMP%]:hover{color:#101828}.wfb-preview-link[_ngcontent-%COMP%]{background:none;border:none;padding:0;font-size:13px;font-weight:500;color:#2970ff;cursor:pointer;font-family:inherit}.wfb-preview-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.input-area[_ngcontent-%COMP%]{flex-shrink:0;padding:4px 16px 18px;display:flex;flex-direction:column;justify-content:center}.chat-input-pill[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;width:100%;max-width:100%;padding:14px 16px 12px;background:#fff;border:1px solid #e9eaeb;border-radius:24px;box-shadow:0 1px 2px #1018280a,0 8px 24px #1018280f;cursor:text;transition:border-color .15s,box-shadow .15s}.chat-input-pill[_ngcontent-%COMP%]:focus-within{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1f}.voice-wave[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:22px;margin:0 8px;display:block}.input-query[_ngcontent-%COMP%]{display:block;width:100%;min-width:0;border:none;outline:none;resize:none;font:inherit;font-size:15px;line-height:1.4;color:#181d27;background:transparent;padding:6px 2px;max-height:160px;overflow-y:auto;white-space:pre-wrap;word-break:break-word}.input-query[_ngcontent-%COMP%]::placeholder{color:#717680}.input-query[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.6}.input-query--live[_ngcontent-%COMP%]{min-height:21px;cursor:default;text-align:left}.input-query__interim[_ngcontent-%COMP%]{font-style:italic;opacity:.55}.pill-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:8px}.pill-toolbar__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px}.pill-toolbar__right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-left:auto}.conn-chip-wrap[_ngcontent-%COMP%]{position:relative}.datasource-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;background:#eff4ff;border-radius:20px;font-size:12px;font-weight:500;color:#2970ff;cursor:pointer;-webkit-user-select:none;user-select:none;max-width:200px;border:1px solid transparent}.datasource-chip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.datasource-chip__chevron[_ngcontent-%COMP%]{transition:transform .15s;flex-shrink:0}.datasource-chip__chevron--open[_ngcontent-%COMP%]{transform:rotate(180deg)}.datasource-chip[_ngcontent-%COMP%]:hover:not(:disabled){background:#e0eaff}.datasource-chip[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.datasource-chip--open[_ngcontent-%COMP%]{background:#e0eaff;border-color:#b2ccff}.conn-chip-dropdown[_ngcontent-%COMP%]{position:absolute;bottom:calc(100% + 6px);left:0;min-width:200px;background:#fff;border:1px solid #e4e7ec;border-radius:10px;box-shadow:0 4px 16px #0000001a;z-index:100;overflow:hidden}.conn-chip-dropdown__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:13px;color:#344054;cursor:pointer}.conn-chip-dropdown__item[_ngcontent-%COMP%]:hover{background:#f9fafb}.conn-chip-dropdown__item--active[_ngcontent-%COMP%]{background:#f5f8ff;color:#2970ff}.conn-chip-dropdown__name[_ngcontent-%COMP%]{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conn-chip-dropdown__hint[_ngcontent-%COMP%]{font-size:11px;color:#98a2b3;flex-shrink:0}.conn-chip-dropdown__check[_ngcontent-%COMP%]{margin-left:auto;flex-shrink:0;color:#2970ff}.mic-icon[_ngcontent-%COMP%]{cursor:pointer;color:#667085;transition:color .15s}.mic-icon[_ngcontent-%COMP%]:hover{color:#344054}.mic-icon--recording[_ngcontent-%COMP%]{color:#d92d20;animation:_ngcontent-%COMP%_mic-pulse 1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_mic-pulse{0%,to{opacity:1}50%{opacity:.5}}.send-icon[_ngcontent-%COMP%]{cursor:pointer;color:#2970ff;transition:opacity .15s}.send-icon--disabled[_ngcontent-%COMP%]{opacity:.35;cursor:not-allowed;pointer-events:none}.wfb-save-dialog[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#10182866;z-index:20}.wfb-save-dialog__body[_ngcontent-%COMP%]{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:20px;width:360px;display:flex;flex-direction:column;gap:12px;box-shadow:0 8px 24px #1018281f}.wfb-save-dialog__label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:#344054}.wfb-save-dialog__input[_ngcontent-%COMP%]{width:100%;padding:8px 12px;border:1px solid #d0d5dd;border-radius:8px;font-size:14px;font-family:inherit;color:#101828;outline:none;box-sizing:border-box}.wfb-save-dialog__input[_ngcontent-%COMP%]:focus{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1a}.wfb-save-dialog__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px}.aq-shell[_ngcontent-%COMP%]{--aq-header-h: 56px;display:flex;flex:1 1 auto;min-height:0;width:100%;overflow:hidden;container-type:inline-size}.aq-chat-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;transition:flex-basis .22s ease,max-width .22s ease;--aq-conversation-w: 900px}.aq-chat-pane__tabs[_ngcontent-%COMP%]{flex-shrink:0}.aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%]{width:100%}.aq-chat-pane__tabs[_ngcontent-%COMP%] nile-nav-tab[_ngcontent-%COMP%]::part(name), .aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%] nile-nav-tab[_ngcontent-%COMP%]::part(name){font-size:13px;line-height:14px}.aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%] .aq-library-pane__tab-count[_ngcontent-%COMP%]{display:inline-block;min-width:18px;margin-left:6px;padding:1px 6px;border-radius:999px;background:#1d4ed8;color:#fff;font-size:10px;font-weight:700;line-height:14px;text-align:center;vertical-align:1px}.aq-chat-pane__tabs[_ngcontent-%COMP%]::part(nav), .aq-library-pane__head[_ngcontent-%COMP%] nile-nav-tab-group[_ngcontent-%COMP%]::part(nav){background:#eef1f6}.aq-library-pane[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}.aq-shell[data-mode=idle][_ngcontent-%COMP%] .aq-chat[_ngcontent-%COMP%]::part(messages), .aq-shell[data-mode=conversation][_ngcontent-%COMP%] .aq-chat[_ngcontent-%COMP%]::part(messages), .aq-shell[data-mode=conversation][_ngcontent-%COMP%] .input-area[_ngcontent-%COMP%]{width:100%;max-width:var(--aq-conversation-w);margin-left:auto;margin-right:auto}.aq-shell[data-mode=conversation][_ngcontent-%COMP%] .wfb-messages[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-top:auto}.aq-shell[data-mode=split][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex:0 0 auto;flex-basis:clamp(320px,41%,485px);max-width:50%;margin:0}.aq-resizer[_ngcontent-%COMP%]{align-self:stretch;position:relative;cursor:col-resize;background:transparent;z-index:6;touch-action:none}.aq-resizer[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;transform:translate(-50%);background:var(--nile-color-border, #e4e7ec)}.aq-resizer[_ngcontent-%COMP%]:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:4px;height:36px;border-radius:3px;background:var(--nile-color-border, #cfd4dc);transition:background .15s,height .15s}.aq-resizer[_ngcontent-%COMP%]:hover:after, .aq-resizer.is-active[_ngcontent-%COMP%]:after{background:#2970ff;height:44px}.aq-shell--resizing[_ngcontent-%COMP%]{cursor:col-resize;-webkit-user-select:none;user-select:none}.aq-shell--resizing[_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%], .aq-shell--resizing[_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%], .aq-shell--resizing[_ngcontent-%COMP%] .aq-artifact-pane[_ngcontent-%COMP%]{transition:none}.aq-shell[data-mode=split][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%]{display:none}.aq-artifact-pane[_ngcontent-%COMP%]{position:relative;overflow:hidden;flex:1 1 60%;display:flex;flex-direction:column;min-width:0;background:#fff;animation:_ngcontent-%COMP%_aq-slide-in .22s ease}@keyframes _ngcontent-%COMP%_aq-slide-in{0%{transform:translate(16px);opacity:0}to{transform:translate(0);opacity:1}}.aq-artifact-pane--dsl-only[_ngcontent-%COMP%]{position:absolute;top:0;left:-9999px;width:1px;height:1px;overflow:hidden;pointer-events:none;animation:none}.aq-artifact-pane[_ngcontent-%COMP%]{view-transition-name:aq-artifact-pane}.aq-artifact-pane[_ngcontent-%COMP%]:has(nile-drawer.dsl-editor-drawer[open]){view-transition-name:none}@supports (view-transition-name: none){.aq-detail-overlay[_ngcontent-%COMP%]{animation:none}}.aq-artifact-pane__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:var(--aq-header-h, 56px);padding:0 20px;border-bottom:1px solid #eaecf0;background:#fff;flex-shrink:0;gap:12px}.aq-artifact-pane__header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;flex-shrink:0}.aq-artifact-pane__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-library-pane__head[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;padding:12px 20px 16px;border-bottom:1px solid #eaecf0;flex-shrink:0;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-library-pane__intro[_ngcontent-%COMP%]{margin:0;font-size:13px;line-height:20px;color:var(--ng-colors-text-tertiary-600, #535862)}.aq-library-pane__intro-title[_ngcontent-%COMP%]{font-weight:600;color:var(--ng-colors-text-secondary-700, #414651)}.aq-library-pane__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;padding:20px;display:flex;flex-direction:column;gap:16px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-library-pane__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-artifact-pane__picker-overlay-footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:12px;box-sizing:border-box;padding:10px 16px;border-top:1px solid #eaecf0;background:#fff;flex-shrink:0}.aq-artifact-pane__picker-overlay-footer-count[_ngcontent-%COMP%]{margin-right:auto;font-size:13px;font-weight:500;color:#414651}.aq-artifact-pane__titles[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;display:flex;align-items:baseline;gap:8px}.aq-artifact-pane__title[_ngcontent-%COMP%]{flex-shrink:0;font-weight:600;font-size:14px;color:#101828}.aq-artifact-pane__subtitle[_ngcontent-%COMP%]{min-width:0;font-weight:400;font-size:13px;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-filters-pill[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;height:32px;padding:0 10px;border:1px solid #d0d5dd;border-radius:8px}.aq-filters-pill__icon[_ngcontent-%COMP%]{color:#667085;flex-shrink:0}.aq-filters-pill[_ngcontent-%COMP%] nile-slide-toggle[_ngcontent-%COMP%]{--slide-toggle-width: auto;font-size:13px;font-weight:500;color:#344054}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%]{border-color:var(--nile-color-primary-300, #84adff);background:var(--nile-color-primary-50, #eff4ff)}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%] .aq-filters-pill__icon[_ngcontent-%COMP%]{color:var(--nile-color-primary-700, #2970ff)}.aq-filters-pill.aq-filters-pill--active[_ngcontent-%COMP%] nile-slide-toggle[_ngcontent-%COMP%]{color:var(--nile-color-primary-700, #2970ff)}.aq-undo-redo-group[_ngcontent-%COMP%]{display:flex;align-items:stretch;height:32px;border:1px solid #d0d5dd;border-radius:8px;overflow:hidden;background:#fff}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]::part(base){height:100%!important;border:none!important;border-radius:0!important;padding:0 12px!important;font-size:13px!important;font-weight:500!important;color:#101828!important}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]:first-child::part(base){border-right:1px solid #eaecf0!important}.aq-undo-redo-group[_ngcontent-%COMP%] nile-button[_ngcontent-%COMP%]:last-child::part(base){padding:0 10px!important}.aq-artifact-pane__header-divider[_ngcontent-%COMP%]{width:1px;height:20px;background:#eaecf0;flex-shrink:0}.aq-artifact-pane__body[_ngcontent-%COMP%]{flex:1 1 auto;overflow:auto;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:column;gap:16px;background:var(--nile-color-bg-subtle, #fbfbfd)}.aq-artifact-pane__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:0;height:0}.aq-artifact-pane__suggestions[_ngcontent-%COMP%]{flex-shrink:0;padding:10px 16px;border-bottom:1px solid #eaecf0;background:#fafafa}.aq-artifact-pane__suggestions-list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;overflow-x:auto}.aq-suggestion-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid #d5d7da;border-radius:999px;background:#fff;font-size:12px;font-weight:500;color:#414651;cursor:pointer;white-space:nowrap;transition:border-color .15s,color .15s}.aq-suggestion-chip[_ngcontent-%COMP%]:hover{border-color:#2970ff;color:#2970ff}.aq-artifact-pane__empty[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:32px 16px;text-align:center;color:#717680}.aq-artifact-pane__empty-title[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;font-weight:600;color:#414651}.aq-artifact-pane__empty-sub[_ngcontent-%COMP%]{margin:0;font-size:13px;max-width:320px}.aq-artifact-pane__kpi-picker[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px}.aq-picker-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;align-content:start}.aq-picker-chips[_ngcontent-%COMP%] nile-skeleton-loader[_ngcontent-%COMP%]{flex:0 0 auto}.aq-picker-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;border:1px solid #e9eaeb;border-radius:999px;padding:5px 10px;background:#fff;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:#71798d;white-space:nowrap;transition:border-color .15s,box-shadow .15s}.aq-picker-chip[_ngcontent-%COMP%]:hover{border-color:#1d4ed8;box-shadow:0 4px 14px #1d4ed81a}.aq-picker-chip--active[_ngcontent-%COMP%]{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.aq-picker-chip--active[_ngcontent-%COMP%]:hover{box-shadow:none}.aq-picker-chip--active[_ngcontent-%COMP%] .aq-picker-chip__count[_ngcontent-%COMP%]{background:#ffffff40;color:#fff}.aq-picker-chip__count[_ngcontent-%COMP%]{min-width:16px;padding:0 5px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10px;font-weight:700;text-align:center}.inline-widget[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #e9eaeb;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 2px #1018280a,0 4px 14px #1018280f}.inline-widget__chart[_ngcontent-%COMP%]{height:380px;padding:14px 16px 6px}.inline-widget__chart--kpi[_ngcontent-%COMP%]{height:150px}.inline-widget__chart--kpi-spark[_ngcontent-%COMP%]{height:220px}.inline-widget__chart--grid[_ngcontent-%COMP%]{height:auto;max-height:520px;overflow:auto}.inline-widget__chart[_ngcontent-%COMP%] shared-nile-chart-widget[_ngcontent-%COMP%]{display:block;height:100%;width:100%}.inline-widget__chart--grid[_ngcontent-%COMP%] shared-nile-chart-widget[_ngcontent-%COMP%]{height:auto}.inline-widget__actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;padding:10px 16px 14px;border-top:1px solid #f2f2f4}.chart-live[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#414651;white-space:nowrap}.chart-live__dot[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;background:#17b26a}.chart-live--preview[_ngcontent-%COMP%]{padding:2px 8px;border-radius:4px;background:#fff6ed;color:#b93815}.forecast-meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;padding:10px 14px;border-top:1px solid #f2f2f4;background:#fcfcfd;font-size:11px;line-height:1.5}.forecast-meta__item[_ngcontent-%COMP%]{display:inline-flex;gap:4px;white-space:nowrap}.forecast-meta__label[_ngcontent-%COMP%]{color:#717680}.forecast-meta__value[_ngcontent-%COMP%]{color:#414651;font-weight:600}.forecast-record[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid #f2f2f4}.forecast-record__icon[_ngcontent-%COMP%]{flex:0 0 auto}.forecast-record__text[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;font-size:12px;line-height:1.5;color:#717680}.forecast-record__action[_ngcontent-%COMP%]{flex:0 0 auto;padding:4px 10px;border:1px solid transparent;border-radius:6px;background:transparent;cursor:pointer;font:inherit;font-size:12px;font-weight:600;color:#5925dc;transition:background .15s ease,border-color .15s ease}.forecast-record__action[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#d9d0fd;background:#f7f5ff}.forecast-record__action[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.follow-ups[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.follow-up[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #e9eaeb;border-radius:8px;background:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:500;color:#414651;transition:border-color .15s ease,background .15s ease}.follow-up[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#b2ccff;background:#f9fafb}.follow-up[_ngcontent-%COMP%]:disabled{opacity:.55;cursor:default}.follow-up__icon[_ngcontent-%COMP%]{flex:0 0 auto}.follow-up__label[_ngcontent-%COMP%]{white-space:nowrap}.follow-up__badge[_ngcontent-%COMP%]{padding:2px 6px;border-radius:4px;background:#7a5af8;color:#fff;font-size:9px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.follow-up--ai[_ngcontent-%COMP%]{border-color:#d9d0fd;background:#f7f5ff;color:#5925dc}.follow-up--ai[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#b9a6fb;background:#f0ecff}.widget-header-btn[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;margin:0 2px;box-sizing:border-box;border:none;border-radius:6px;background:transparent;color:#717680;cursor:pointer}.widget-header-btn[_ngcontent-%COMP%]:hover{background:#f5f5f6;color:#181d27}.widget-header-dropdown[_ngcontent-%COMP%]::part(panel){width:320px;max-width:92vw}.widget-header-dropdown[_ngcontent-%COMP%]::part(base){display:block}.widget-header-anchor[_ngcontent-%COMP%]{display:inline-block;width:0;height:0}.widget-menu__trigger[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;padding:0;margin:0 2px;box-sizing:border-box;border:none;border-radius:var(--ng-radius-md, 6px);background:transparent;color:var(--ng-colors-text-tertiary-600, #717680);cursor:pointer}.widget-menu__trigger[_ngcontent-%COMP%]:hover{background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.widget-menu__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;width:100%}.widget-menu__label[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{flex:none;color:var(--ng-colors-text-tertiary-600, #717680)}.widget-menu__sep[_ngcontent-%COMP%]{height:var(--ng-stroke-width-1, 1px);background:var(--ng-colors-border-secondary, #e5e7eb);margin:var(--ng-spacing-md, 8px)}.type-picker__panel[_ngcontent-%COMP%], .filter-builder__panel[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px #10182824;padding:10px;box-sizing:border-box}.inline-action__loading[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;min-height:56px;font-size:13px;color:#535862}.inline-action__hint[_ngcontent-%COMP%]{margin:0 0 6px;font-size:12px;color:#535862}.inline-action__error[_ngcontent-%COMP%]{margin:6px 0 0;font-size:12px;color:#d92d20}.type-picker__section[_ngcontent-%COMP%]{margin:6px 0 4px;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:#717680}.type-picker__section[_ngcontent-%COMP%]:first-child{margin-top:0}.type-picker__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.type-picker__tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;box-sizing:border-box;height:60px;border:1px solid #e9eaeb;border-radius:8px;background:#fff;color:#414651;font-size:11px;font-weight:500;cursor:pointer}.type-picker__tile[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#717680}.type-picker__tile[_ngcontent-%COMP%]:hover:not(:disabled){border-color:#2970ff;color:#2970ff}.type-picker__tile[_ngcontent-%COMP%]:hover:not(:disabled) nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.type-picker__tile[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:default}.type-picker__tile--sensible[_ngcontent-%COMP%]{border-color:#2970ff47;background:#2970ff0a}.type-picker__tile--sensible[_ngcontent-%COMP%] nile-glyph[_ngcontent-%COMP%]{color:#2970ff}.filter-builder__active[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.filter-builder__chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#2970ff14;color:#414651;font-size:12px}.filter-builder__chip-remove[_ngcontent-%COMP%]{display:inline-flex;border:none;background:none;padding:0;cursor:pointer;color:inherit}.filter-builder__form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.filter-builder__field-label[_ngcontent-%COMP%]{padding:6px 2px;font-size:12px;font-weight:600;color:#181d27}.filter-builder__and[_ngcontent-%COMP%]{font-size:12px;color:#535862}.filter-builder__select[_ngcontent-%COMP%], .filter-builder__input[_ngcontent-%COMP%]{flex:1 1 100%;min-width:0;padding:7px 8px;box-sizing:border-box;border:1px solid #e9eaeb;border-radius:7px;background:#fff;font:inherit;font-size:12px;color:#181d27}.filter-builder__multi[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:160px;overflow-y:auto;width:100%}.filter-builder__multi-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:4px 2px;font-size:12px;color:#414651;cursor:pointer}.filter-builder__multi-item[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aq-shell[data-mode=builder][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex:0 0 auto;flex-basis:clamp(320px,41%,485px);max-width:50%;margin:0}.aq-builder-pane[_ngcontent-%COMP%]{position:relative;overflow:hidden;flex:1 1 60%;display:flex;flex-direction:column;min-width:0}.aq-builder-pane[_ngcontent-%COMP%] shared-builder-host[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}.aq-builder-pane[_ngcontent-%COMP%] shared-dashboard-grid{display:block;min-width:calc(100cqw - 24px)}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-chat-pane[_ngcontent-%COMP%]{flex-basis:0;max-width:0;overflow:hidden;border-right:none}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%]{flex-basis:100%}.aq-shell--fullscreen[data-mode=builder][_ngcontent-%COMP%] .aq-builder-pane[_ngcontent-%COMP%] shared-dashboard-grid{min-width:100%}.choice-picker[_ngcontent-%COMP%]{margin-top:16px;width:100%}.choice-picker[_ngcontent-%COMP%] + .choice-picker[_ngcontent-%COMP%]{margin-top:22px}.choice-picker__group[_ngcontent-%COMP%]{display:block;width:100%}.choice-picker__step[_ngcontent-%COMP%]{display:block;margin-bottom:4px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__submit-row[_ngcontent-%COMP%]{margin-top:12px;display:flex;justify-content:flex-start}.choice-card[_ngcontent-%COMP%]{display:block}.choice-card[_ngcontent-%COMP%]::part(base){width:100%;box-sizing:border-box;margin:0;padding:12px 14px;gap:0;align-items:center;border:none;border-bottom:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:8px;background:transparent;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}.choice-card[_ngcontent-%COMP%]:last-of-type::part(base){border-bottom:none}.choice-card[_ngcontent-%COMP%]::part(control){display:none}.choice-card[_ngcontent-%COMP%]::part(label){flex:1 1 auto;min-width:0;margin:0}.choice-card[_ngcontent-%COMP%]:not(.choice-card--locked):hover::part(base){border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-card--chosen[_ngcontent-%COMP%]::part(base){border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff);box-shadow:inset 0 0 0 1px var(--ng-colors-border-brand, #7f56d9)}.choice-card--locked[_ngcontent-%COMP%]:not(.choice-card--chosen)::part(base){opacity:.6;cursor:default}.choice-card__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.choice-card__num[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:6px;font-size:11.5px;font-weight:700;color:var(--ng-colors-text-tertiary-600, #667085);background:var(--ng-colors-bg-secondary, #f5f5f6);transition:color .15s ease,background-color .15s ease}.choice-card--chosen[_ngcontent-%COMP%] .choice-card__num[_ngcontent-%COMP%]{color:#fff;background:var(--ng-colors-bg-brand-solid, #7f56d9)}.choice-card__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;min-width:0}.choice-card__name[_ngcontent-%COMP%]{font-size:13.5px;font-weight:600;color:var(--ng-colors-text-primary-900, #181d27);line-height:1.4;overflow-wrap:anywhere}.choice-card__hint[_ngcontent-%COMP%]{font-size:12.5px;font-weight:400;line-height:1.4;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-card__badge[_ngcontent-%COMP%]{display:inline-block;margin-bottom:2px;font-size:10.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ng-colors-fg-success-primary, #17b26a)}.choice-card__meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:1px;font-size:11.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-card__chip--green[_ngcontent-%COMP%]{color:#22c55e;font-weight:700}.choice-card__chip--yellow[_ngcontent-%COMP%]{color:#f59e0b;font-weight:700}.choice-card__chip--red[_ngcontent-%COMP%]{color:#ef4444;font-weight:700}.choice-card__chip--muted[_ngcontent-%COMP%]{color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__empty[_ngcontent-%COMP%]{margin:0;font-size:12.5px;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-picker__chat-link[_ngcontent-%COMP%]{appearance:none;display:inline-flex;align-items:center;gap:4px;margin:6px 0 0;padding:0;border:none;border-radius:0;background:none;font-size:12.5px;color:var(--ng-colors-brand-600, #4f46e5);cursor:pointer;text-align:left}.choice-picker__chat-link[_ngcontent-%COMP%]:hover:not(:disabled){text-decoration:underline}.choice-picker__chat-link[_ngcontent-%COMP%]:disabled{color:var(--ng-colors-text-tertiary-600, #98a2b3);cursor:default}.choice-picker__chat-link--preview[_ngcontent-%COMP%]{gap:6px;padding:5px 10px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:999px;color:var(--ng-colors-text-secondary-700, #414651)}.choice-picker__chat-link--preview[_ngcontent-%COMP%]:hover:not(:disabled){text-decoration:none;border-color:var(--ng-colors-border-brand, #7f56d9);color:var(--ng-colors-brand-600, #4f46e5);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-picker__chat-link--preview[_ngcontent-%COMP%]:disabled{border-color:var(--ng-colors-border-secondary, #e9eaeb)}.choice-picker__footer-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;margin-top:6px}.choice-picker__footer-actions[_ngcontent-%COMP%] .choice-picker__chat-link[_ngcontent-%COMP%]{margin-top:0}.choice-picker__chat-draft[_ngcontent-%COMP%]{margin-top:8px;padding:10px;border:1px dashed var(--ng-colors-border-secondary-600, #d0d5dd);border-radius:8px;background:var(--ng-colors-bg-secondary-600, #f9fafb)}.choice-picker__chat-draft-label[_ngcontent-%COMP%]{display:block;margin-bottom:6px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-picker__chat-draft-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px}.choice-picker__chat-draft-input[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.choice-picker__resume-chip[_ngcontent-%COMP%]{display:inline-block;margin-top:16px;padding:6px 10px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:6px;background:var(--ng-colors-bg-secondary, #f5f5f6);cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.choice-picker__resume-chip[_ngcontent-%COMP%]:hover{border-color:var(--ng-colors-border-brand, #7f56d9);background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-panel[_ngcontent-%COMP%]{margin-bottom:10px;padding:14px 16px;border:1px solid var(--ng-colors-border-secondary, #e9eaeb);border-radius:12px;background:var(--ng-colors-bg-primary, #fff);box-shadow:0 4px 16px #10182814}.choice-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.choice-panel__count[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ng-colors-text-tertiary-600, #98a2b3)}.choice-panel__nav-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px}.choice-panel__nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:4px;width:24px;height:24px;padding:0;border:none;border-radius:6px;background:transparent;color:var(--ng-colors-text-tertiary-600, #667085);cursor:pointer;transition:background-color .15s ease,color .15s ease}.choice-panel__nav[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.choice-panel__nav[_ngcontent-%COMP%]:disabled{opacity:.35;cursor:default}.choice-panel__close[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-error-primary, #fef3f2);color:var(--ng-colors-text-error-primary, #d92d20)}.choice-panel__options[_ngcontent-%COMP%]{display:block;width:100%}.choice-panel-option[_ngcontent-%COMP%]{display:block}.choice-panel-option[_ngcontent-%COMP%]::part(base){width:100%;box-sizing:border-box;margin:0;padding:8px 10px;gap:0;align-items:center;border:none;border-radius:6px;background:transparent;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}.choice-panel-option[_ngcontent-%COMP%]::part(control){display:none}.choice-panel-option[_ngcontent-%COMP%]::part(label){flex:1 1 auto;min-width:0;margin:0}.choice-panel-option[_ngcontent-%COMP%]:hover::part(base){background:var(--ng-colors-bg-brand-primary, #f9f5ff)}.choice-panel-option__label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.choice-panel-option__num[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;font-size:11px;font-weight:700;color:var(--ng-colors-text-tertiary-600, #667085);background:var(--ng-colors-bg-secondary, #f5f5f6)}.choice-panel-option__text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1px;min-width:0}.choice-panel-option__name[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--ng-colors-text-primary-900, #181d27);line-height:1.4;overflow-wrap:anywhere}.choice-panel-option__hint[_ngcontent-%COMP%]{font-size:12px;font-weight:400;line-height:1.4;color:var(--ng-colors-text-tertiary-600, #535862)}.choice-panel-option__badge[_ngcontent-%COMP%]{display:inline-block;margin-bottom:2px;font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--ng-colors-fg-success-primary, #17b26a)}.choice-panel__footer[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-top:10px}.choice-panel__footer--review[_ngcontent-%COMP%]{justify-content:space-between}.choice-panel__skip[_ngcontent-%COMP%]{flex:0 0 auto;padding:6px 10px;border:none;border-radius:6px;font-size:12.5px;font-weight:600;color:var(--ng-colors-text-tertiary-600, #667085);background:transparent;cursor:pointer}.choice-panel__skip[_ngcontent-%COMP%]:hover:not(:disabled){background:var(--ng-colors-bg-secondary, #f5f5f6);color:var(--ng-colors-text-primary-900, #181d27)}.choice-panel__hint[_ngcontent-%COMP%]{margin:10px 0 0;font-size:11px;color:var(--ng-colors-text-tertiary-600, #98a2b3);text-align:center}.choice-panel__review[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}.choice-panel__review-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:6px 8px;border-radius:6px;background:var(--ng-colors-bg-secondary, #f5f5f6)}.choice-panel__review-title[_ngcontent-%COMP%]{font-size:12.5px;font-weight:600;color:var(--ng-colors-text-tertiary-600, #535862);flex:1 1 auto;min-width:0}.choice-panel__review-answer[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:var(--ng-colors-text-primary-900, #181d27);text-align:right;flex:0 1 auto;min-width:0;max-width:55%;overflow-wrap:break-word}.ai-executive-summary[_ngcontent-%COMP%]::part(trigger){display:none}']})};var Os=(i,t)=>t.id;function qs(i,t){if(i&1&&(l(0,"div",9),m(1,"div",12),l(2,"span"),_(3),d()()),i&2){let e=r();s(3),v(e.copy().loadingConnections)}}function Es(i,t){if(i&1){let e=k();l(0,"div",10)(1,"div",13),m(2,"nile-glyph",14),d(),l(3,"h3",15),_(4),d(),l(5,"p",16),_(6),d(),l(7,"button",7),g("click",function(){p(e);let o=r();return u(o.openForm())}),m(8,"nile-glyph",8),_(9),d()()}if(i&2){let e=r();s(4),v(e.copy().noConnectionsTitle),s(2),v(e.copy().noConnectionsSub),s(3),F(" ",e.copy().registerConnectionButton," ")}}function Is(i,t){i&1&&(l(0,"span",23),_(1,"Active"),d())}function Vs(i,t){i&1&&(l(0,"span",24),_(1,"Inactive"),d())}function Rs(i,t){i&1&&(l(0,"span",25),m(1,"nile-glyph",34),_(2," Schema "),d())}function zs(i,t){i&1&&m(0,"span",28)}function Ns(i,t){i&1&&m(0,"nile-glyph",29)}function $s(i,t){i&1&&m(0,"span",28)}function Ls(i,t){i&1&&m(0,"nile-glyph",31)}function Ws(i,t){if(i&1&&(l(0,"span",37),_(1),d()),i&2){let e=r(3).$implicit;s(),Q("",e.testResult.sampleTables.slice(0,4).join(", "),"",e.testResult.sampleTables.length>4?"\u2026":"")}}function Bs(i,t){if(i&1&&(m(0,"nile-glyph",36),l(1,"span"),_(2),d(),h(3,Ws,2,2,"span",37)),i&2){let e=r(2).$implicit;s(2),F("Reachable \xB7 ",e.testResult.tableCount," tables"),s(),C(e.testResult.sampleTables.length?3:-1)}}function Us(i,t){if(i&1&&(m(0,"nile-glyph",38),l(1,"span"),_(2),d()),i&2){let e=r(2).$implicit,n=r(2);s(2),F("Unreachable \xB7 ",e.testResult.error??n.copy().errors.connectionTestFailedFallback)}}function Gs(i,t){if(i&1&&(l(0,"div",35),h(1,Bs,4,2)(2,Us,3,1),d()),i&2){let e=r().$implicit;B("wfconn-test-result--ok",e.testResult.reachable)("wfconn-test-result--fail",!e.testResult.reachable),s(),C(e.testResult.reachable?1:2)}}function Hs(i,t){if(i&1){let e=k();l(0,"div",18)(1,"div",19)(2,"div",20)(3,"span",21),_(4),d(),l(5,"span",22),_(6),d(),h(7,Is,2,0,"span",23)(8,Vs,2,0,"span",24),h(9,Rs,3,0,"span",25),d(),l(10,"div",26)(11,"button",27),g("click",function(){let o=p(e).$implicit,a=r(2);return u(a.testConnection(o.id))}),h(12,zs,1,0,"span",28)(13,Ns,1,0,"nile-glyph",29),_(14),d(),l(15,"button",30),g("click",function(){let o=p(e).$implicit,a=r(2);return u(a.deleteConnection(o.id,o.name))}),h(16,$s,1,0,"span",28)(17,Ls,1,0,"nile-glyph",31),d()()(),l(18,"div",32),_(19),Dt(20,"date"),d(),h(21,Gs,3,5,"div",33),d()}if(i&2){let e=t.$implicit,n=r(2);B("wfconn-card--deleting",e.deleting),s(4),v(e.name),s(2),v(n.adapterLabel(e.adapterType)),s(),C(e.isActive?7:8),s(2),C(e.hasSchemaSnapshot?9:-1),s(2),B("wfconn-icon-btn--loading",e.testing),b("disabled",e.testing||e.deleting),s(),C(e.testing?12:13),s(2),F(" ",n.copy().testConnectionButton," "),s(),b("disabled",e.testing||e.deleting),s(),C(e.deleting?16:17),s(3),F(" Created ",Ot(20,15,e.createdAt,"mediumDate")," "),s(2),C(e.testResult?21:-1)}}function js(i,t){if(i&1&&(l(0,"div",11),D(1,Hs,22,18,"div",17,Os),d()),i&2){let e=r();s(),O(e.connections())}}function Ys(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"Server"),d(),l(3,"input",60),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("server",o))}),d()(),l(4,"div",46)(5,"label",47),_(6,"Database"),d(),l(7,"input",61),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("database",o))}),d()(),l(8,"div",62)(9,"div",46)(10,"label",47),_(11,"Username"),d(),l(12,"input",63),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("user",o))}),d()(),l(13,"div",46)(14,"label",47),_(15,"Password"),d(),l(16,"div",64)(17,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("password",o))}),d(),l(18,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(19,"nile-glyph",67),d()()()(),l(20,"div",62)(21,"div",46)(22,"label",47),_(23,"Schema"),d(),l(24,"input",68),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("schema",o))}),d()(),l(25,"div",69)(26,"label",47),_(27,"Port"),d(),l(28,"input",70),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchMssql("port",+o))}),d()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.mssql().server),s(4),b("ngModel",e.mssql().database),s(5),b("ngModel",e.mssql().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.mssql().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye"),s(5),b("ngModel",e.mssql().schema),s(4),b("ngModel",e.mssql().port)}}function Qs(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"URL"),d(),l(3,"input",71),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("url",o))}),d()(),l(4,"div",62)(5,"div",46)(6,"label",47),_(7,"Username"),d(),l(8,"input",72),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("username",o))}),d()(),l(9,"div",46)(10,"label",47),_(11,"Password"),d(),l(12,"div",64)(13,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchOpensearch("password",o))}),d(),l(14,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(15,"nile-glyph",67),d()()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.opensearch().url),s(5),b("ngModel",e.opensearch().username),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.opensearch().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye")}}function Ks(i,t){if(i&1){let e=k();l(0,"div",62)(1,"div",46)(2,"label",47),_(3,"Host"),d(),l(4,"input",73),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("host",o))}),d()(),l(5,"div",69)(6,"label",47),_(7,"Port"),d(),l(8,"input",74),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("port",+o))}),d()()(),l(9,"div",46)(10,"label",47),_(11,"Database"),d(),l(12,"input",61),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("database",o))}),d()(),l(13,"div",62)(14,"div",46)(15,"label",47),_(16,"Username"),d(),l(17,"input",75),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("user",o))}),d()(),l(18,"div",46)(19,"label",47),_(20,"Password"),d(),l(21,"div",64)(22,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("password",o))}),d(),l(23,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(24,"nile-glyph",67),d()()()(),l(25,"div",46)(26,"label",47),_(27,"Schema"),d(),l(28,"input",76),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchPostgres("schema",o))}),d()()}if(i&2){let e=r(2);s(4),b("ngModel",e.postgres().host),s(4),b("ngModel",e.postgres().port),s(4),b("ngModel",e.postgres().database),s(5),b("ngModel",e.postgres().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.postgres().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye"),s(4),b("ngModel",e.postgres().schema)}}function Js(i,t){if(i&1){let e=k();l(0,"div",46)(1,"label",47),_(2,"Account"),d(),l(3,"input",77),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("account",o))}),d()(),l(4,"div",62)(5,"div",46)(6,"label",47),_(7,"Database"),d(),l(8,"input",78),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("database",o))}),d()(),l(9,"div",46)(10,"label",47),_(11,"Schema"),d(),l(12,"input",79),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("schema",o))}),d()()(),l(13,"div",46)(14,"label",47),_(15,"Warehouse"),d(),l(16,"input",80),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("warehouse",o))}),d()(),l(17,"div",62)(18,"div",46)(19,"label",47),_(20,"Username"),d(),l(21,"input",81),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("user",o))}),d()(),l(22,"div",46)(23,"label",47),_(24,"Password"),d(),l(25,"div",64)(26,"input",65),g("ngModelChange",function(o){p(e);let a=r(2);return u(a.patchSnowflake("password",o))}),d(),l(27,"button",66),g("click",function(){p(e);let o=r(2);return u(o.showPassword.update(a=>!a))}),m(28,"nile-glyph",67),d()()()()}if(i&2){let e=r(2);s(3),b("ngModel",e.snowflake().account),s(5),b("ngModel",e.snowflake().database),s(4),b("ngModel",e.snowflake().schema),s(4),b("ngModel",e.snowflake().warehouse),s(5),b("ngModel",e.snowflake().user),s(5),b("type",e.showPassword()?"text":"password")("ngModel",e.snowflake().password),s(2),A("name",e.showPassword()?"ng-eye-off":"ng-eye")}}function Xs(i,t){if(i&1&&(l(0,"div",56),m(1,"nile-glyph",38),_(2),d()),i&2){let e=r(2);s(2),F(" ",e.formError()," ")}}function Zs(i,t){if(i&1&&(m(0,"span",82),_(1)),i&2){let e=r(2);s(),F(" ",e.copy().registeringButton," ")}}function ed(i,t){if(i&1&&(m(0,"nile-glyph",83),_(1)),i&2){let e=r(2);s(),F(" ",e.copy().registerAndTestButton," ")}}function td(i,t){if(i&1){let e=k();l(0,"div",39),g("click",function(){p(e);let o=r();return u(o.closeForm())}),d(),l(1,"aside",40)(2,"div",41)(3,"span",42),_(4),d(),l(5,"button",43),g("click",function(){p(e);let o=r();return u(o.closeForm())}),m(6,"nile-glyph",44),d()(),l(7,"div",45)(8,"div",46)(9,"label",47),_(10,"Connection name"),d(),l(11,"input",48),g("ngModelChange",function(o){p(e);let a=r();return u(a.formConnectionName.set(o))}),d()(),l(12,"div",46)(13,"label",47),_(14,"Display name "),l(15,"span",49),_(16,"(optional)"),d()(),l(17,"input",48),g("ngModelChange",function(o){p(e);let a=r();return u(a.formDisplayName.set(o))}),d()(),l(18,"div",46)(19,"label",47),_(20,"Adapter type"),d(),l(21,"select",50),g("ngModelChange",function(o){p(e);let a=r();return u(a.formAdapter.set(o))}),l(22,"option",51),_(23,"MSSQL (SQL Server)"),d(),l(24,"option",52),_(25,"OpenSearch"),d(),l(26,"option",53),_(27,"PostgreSQL"),d(),l(28,"option",54),_(29,"Snowflake"),d()()(),l(30,"div",55),_(31,"Connection config"),d(),h(32,Ys,29,8),h(33,Qs,16,5),h(34,Ks,29,8),h(35,Js,29,8),h(36,Xs,3,1,"div",56),d(),l(37,"div",57)(38,"button",58),g("click",function(){p(e);let o=r();return u(o.closeForm())}),_(39),d(),l(40,"button",59),g("click",function(){p(e);let o=r();return u(o.submitRegister())}),h(41,Zs,2,1)(42,ed,2,1),d()()()}if(i&2){let e=r();s(4),v(e.copy().registerConnectionTitle),s(7),b("ngModel",e.formConnectionName())("placeholder",e.copy().connectionNamePlaceholder),s(6),b("ngModel",e.formDisplayName())("placeholder",e.copy().displayNamePlaceholder),s(4),b("ngModel",e.formAdapter()),s(11),C(e.formAdapter()==="mssql"?32:-1),s(),C(e.formAdapter()==="opensearch"?33:-1),s(),C(e.formAdapter()==="postgres"?34:-1),s(),C(e.formAdapter()==="snowflake"?35:-1),s(),C(e.formError()?36:-1),s(2),b("disabled",e.saving()),s(),v(e.copy().cancelButton),s(),b("disabled",e.saving()),s(),C(e.saving()?41:42)}}var Te=class i{svc=$(we);copy(){return R().copy}loading=x(!0);connections=x([]);showForm=x(!1);saving=x(!1);formConnectionName=x("Primary");formDisplayName=x("");formAdapter=x("mssql");mssql=x({server:"",database:"",user:"",password:"",schema:"gold",port:1433});opensearch=x({url:"",username:"",password:""});postgres=x({host:"",port:5432,database:"",user:"",password:"",schema:"public"});snowflake=x({account:"",database:"",schema:"",user:"",password:"",warehouse:""});showPassword=x(!1);formError=x("");hasConnections=q(()=>this.connections().length>0);async ngOnInit(){await this.loadConnections()}async loadConnections(){this.loading.set(!0);try{let t=await this.svc.listConnections();this.connections.set(t)}catch{}finally{this.loading.set(!1)}}openForm(){this.showForm.set(!0),this.formError.set("")}closeForm(){this.showForm.set(!1),this.formError.set("")}patchMssql(t,e){this.mssql.update(n=>T(y({},n),{[t]:e}))}patchOpensearch(t,e){this.opensearch.update(n=>T(y({},n),{[t]:e}))}patchPostgres(t,e){this.postgres.update(n=>T(y({},n),{[t]:e}))}patchSnowflake(t,e){this.snowflake.update(n=>T(y({},n),{[t]:e}))}buildConfig(){switch(this.formAdapter()){case"mssql":return y({},this.mssql());case"opensearch":return y({},this.opensearch());case"postgres":return y({},this.postgres());case"snowflake":return y({},this.snowflake())}}async submitRegister(){let t=this.formConnectionName().trim();if(!t){this.formError.set("Connection name is required");return}let e={productId:this.svc.productId,displayName:this.formDisplayName().trim()||void 0,connectionName:t,config:this.buildConfig()};this.saving.set(!0),this.formError.set("");try{let n=await this.svc.register(e),o={id:n.connection.id,name:n.connection.name,adapterType:n.connection.adapterType,isActive:!0,hasSchemaSnapshot:n.test.reachable,hasSemanticDoc:!1,createdAt:n.connection.createdAt,updatedAt:n.connection.createdAt,testResult:n.test};this.connections.update(a=>[o,...a]),this.closeForm(),this.showToast("success",n.test.reachable?`Connection "${t}" registered and tested successfully`:`Connection "${t}" registered (connectivity test failed: ${n.test.error??"unreachable"})`)}catch(n){this.formError.set(this.extractMessage(n,"Registration failed"))}finally{this.saving.set(!1)}}async testConnection(t){this.connections.update(e=>e.map(n=>n.id===t?T(y({},n),{testing:!0,testResult:void 0}):n));try{let e=await this.svc.testConnection(t);this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{testing:!1,testResult:e}):o))}catch{this.connections.update(e=>e.map(n=>n.id===t?T(y({},n),{testing:!1}):n))}}async deleteConnection(t,e){if(confirm(`Delete connection "${e}"? This cannot be undone.`)){this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{deleting:!0}):o));try{await this.svc.deleteConnection(t),this.connections.update(n=>n.filter(o=>o.id!==t)),this.showToast("success",`Connection "${e}" deleted`)}catch{this.connections.update(n=>n.map(o=>o.id===t?T(y({},o),{deleting:!1}):o))}}}adapterLabel(t){return{mssql:"MSSQL",opensearch:"OpenSearch",postgres:"PostgreSQL",snowflake:"Snowflake"}[t]??t}showToast(t,e){let n=document.createElement("nile-toast");n.variant=t,n.title=e,n.duration=5e3,n.closable=!0,n.toast(),ze()}extractMessage(t,e){return Ne(t,e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["app-ask-aquera-connections-page"]],decls:18,vars:5,consts:[[1,"wfconn-page"],[1,"wfconn-header"],[1,"wfconn-header__left"],["routerLink","/ask-aquera",1,"wfconn-back"],["name","ng-arrow-left","method","stroke","size","14","color","#344054"],[1,"wfconn-header__sep"],[1,"wfconn-header__title"],[1,"wfconn-btn","wfconn-btn--primary",3,"click"],["name","ng-plus","method","stroke","size","13","color","#fff"],[1,"wfconn-loading"],[1,"wfconn-empty"],[1,"wfconn-list"],[1,"wfconn-spinner"],[1,"wfconn-empty__icon"],["name","ng-dataflow-03","method","stroke","size","32","color","#98a2b3"],[1,"wfconn-empty__title"],[1,"wfconn-empty__sub"],[1,"wfconn-card",3,"wfconn-card--deleting"],[1,"wfconn-card"],[1,"wfconn-card__header"],[1,"wfconn-card__info"],[1,"wfconn-card__name"],[1,"wfconn-badge","wfconn-badge--adapter"],[1,"wfconn-badge","wfconn-badge--active"],[1,"wfconn-badge","wfconn-badge--inactive"],[1,"wfconn-badge","wfconn-badge--schema"],[1,"wfconn-card__actions"],["title","Test connectivity",1,"wfconn-icon-btn",3,"click","disabled"],[1,"wfconn-spinner","wfconn-spinner--sm"],["name","ng-activity","method","stroke","size","14"],["title","Delete connection",1,"wfconn-icon-btn","wfconn-icon-btn--danger",3,"click","disabled"],["name","ng-trash-01","method","stroke","size","14"],[1,"wfconn-card__meta"],[1,"wfconn-test-result",3,"wfconn-test-result--ok","wfconn-test-result--fail"],["name","ng-check","method","stroke","size","10"],[1,"wfconn-test-result"],["name","ng-check-circle","method","stroke","size","13"],[1,"wfconn-test-result__tables"],["name","ng-alert-circle","method","stroke","size","13"],[1,"wfconn-form-overlay",3,"click"],[1,"wfconn-form-panel"],[1,"wfconn-form-panel__header"],[1,"wfconn-form-panel__title"],[1,"wfconn-form-close",3,"click"],["name","ng-x","method","stroke","size","16"],[1,"wfconn-form-panel__body"],[1,"wfconn-field"],[1,"wfconn-label"],["type","text",1,"wfconn-input",3,"ngModelChange","ngModel","placeholder"],[1,"wfconn-label--opt"],[1,"wfconn-select",3,"ngModelChange","ngModel"],["value","mssql"],["value","opensearch"],["value","postgres"],["value","snowflake"],[1,"wfconn-divider"],[1,"wfconn-form-error"],[1,"wfconn-form-panel__footer"],[1,"wfconn-btn","wfconn-btn--secondary",3,"click","disabled"],[1,"wfconn-btn","wfconn-btn--primary",3,"click","disabled"],["type","text","placeholder","server.database.windows.net",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","my_database",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-field-row"],["type","text","placeholder","sa",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-input-wrap"],["placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"wfconn-input",3,"ngModelChange","type","ngModel"],["type","button",1,"wfconn-input-toggle",3,"click"],["method","stroke","size","14"],["type","text","placeholder","gold",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-field","wfconn-field--sm"],["type","number","placeholder","1433",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","https://my-cluster.us-east-1.es.amazonaws.com",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","admin",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","localhost",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","number","placeholder","5432",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","postgres",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","public",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","myorg-myaccount",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","MY_DB",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","PUBLIC",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","COMPUTE_WH",1,"wfconn-input",3,"ngModelChange","ngModel"],["type","text","placeholder","myuser",1,"wfconn-input",3,"ngModelChange","ngModel"],[1,"wfconn-spinner","wfconn-spinner--sm","wfconn-spinner--white"],["name","ng-activity","method","stroke","size","13","color","#fff"]],template:function(e,n){e&1&&(l(0,"section",0)(1,"header",1)(2,"div",2)(3,"a",3),m(4,"nile-glyph",4),l(5,"span"),_(6),d()(),l(7,"span",5),_(8,"/"),d(),l(9,"span",6),_(10),d()(),l(11,"button",7),g("click",function(){return n.openForm()}),m(12,"nile-glyph",8),_(13),d()(),h(14,qs,4,1,"div",9)(15,Es,10,3,"div",10)(16,js,3,0,"div",11),h(17,td,43,15),d()),e&2&&(s(6),v(n.copy().connectionsBreadcrumbHome),s(4),v(n.copy().connectionsTitle),s(3),F(" ",n.copy().registerConnectionButton," "),s(),C(n.loading()?14:!n.hasConnections()&&!n.showForm()?15:16),s(3),C(n.showForm()?17:-1))},dependencies:[je,Ge,He,$e,Be,Ue,Le,We,Ht,Vt],styles:[".wfconn-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#f9fafb}.wfconn-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:14px 24px;background:#fff;border-bottom:1px solid #e4e7ec;flex-shrink:0}.wfconn-header__left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.wfconn-back[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;color:#344054;font-size:13px;text-decoration:none;font-weight:500}.wfconn-back[_ngcontent-%COMP%]:hover{color:#101828}.wfconn-header__sep[_ngcontent-%COMP%]{color:#d0d5dd;font-size:16px}.wfconn-header__title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828}.wfconn-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:500;border:none;cursor:pointer;transition:opacity .15s}.wfconn-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.wfconn-btn--primary[_ngcontent-%COMP%]{background:#2970ff;color:#fff}.wfconn-btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#1d5fd9}.wfconn-btn--secondary[_ngcontent-%COMP%]{background:#fff;color:#344054;border:1px solid #d0d5dd}.wfconn-btn--secondary[_ngcontent-%COMP%]:hover:not(:disabled){background:#f9fafb}.wfconn-icon-btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:6px;font-size:12px;font-weight:500;border:1px solid #d0d5dd;background:#fff;color:#344054;cursor:pointer;transition:background .15s}.wfconn-icon-btn[_ngcontent-%COMP%]:hover:not(:disabled){background:#f2f4f7}.wfconn-icon-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.wfconn-icon-btn--danger[_ngcontent-%COMP%]{color:#b42318}.wfconn-icon-btn--danger[_ngcontent-%COMP%]:hover:not(:disabled){background:#fff1f0;border-color:#f97066}.wfconn-loading[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;padding:40px 24px;color:#667085;font-size:14px}.wfconn-empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:12px;padding:64px 24px;text-align:center}.wfconn-empty__icon[_ngcontent-%COMP%]{width:56px;height:56px;border-radius:12px;background:#f2f4f7;display:flex;align-items:center;justify-content:center}.wfconn-empty__title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;color:#101828;margin:0}.wfconn-empty__sub[_ngcontent-%COMP%]{font-size:14px;color:#667085;margin:0;max-width:380px}.wfconn-list[_ngcontent-%COMP%]{padding:20px 24px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1}.wfconn-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e4e7ec;border-radius:10px;padding:16px 18px;transition:opacity .15s}.wfconn-card--deleting[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}.wfconn-card__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.wfconn-card__info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wfconn-card__name[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#101828}.wfconn-card__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;flex-shrink:0}.wfconn-card__meta[_ngcontent-%COMP%]{margin-top:8px;font-size:12px;color:#98a2b3}.wfconn-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:500}.wfconn-badge--adapter[_ngcontent-%COMP%]{background:#f2f4f7;color:#344054}.wfconn-badge--active[_ngcontent-%COMP%]{background:#ecfdf3;color:#027a48}.wfconn-badge--inactive[_ngcontent-%COMP%]{background:#fff1f0;color:#b42318}.wfconn-badge--schema[_ngcontent-%COMP%]{background:#eff8ff;color:#175cd3}.wfconn-test-result[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-top:10px;padding:8px 10px;border-radius:6px;font-size:12px;font-weight:500}.wfconn-test-result--ok[_ngcontent-%COMP%]{background:#ecfdf3;color:#027a48}.wfconn-test-result--fail[_ngcontent-%COMP%]{background:#fff1f0;color:#b42318}.wfconn-test-result__tables[_ngcontent-%COMP%]{color:inherit;opacity:.7;font-weight:400;margin-left:4px}.wfconn-spinner[_ngcontent-%COMP%]{width:18px;height:18px;border:2px solid #e4e7ec;border-top-color:#2970ff;border-radius:50%;animation:_ngcontent-%COMP%_wfconn-spin .7s linear infinite}.wfconn-spinner--sm[_ngcontent-%COMP%]{width:12px;height:12px;border-width:1.5px}.wfconn-spinner--white[_ngcontent-%COMP%]{border-color:#ffffff4d;border-top-color:#fff}@keyframes _ngcontent-%COMP%_wfconn-spin{to{transform:rotate(360deg)}}.wfconn-form-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#00000040;z-index:200}.wfconn-form-panel[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;width:440px;max-width:95vw;background:#fff;border-left:1px solid #e4e7ec;display:flex;flex-direction:column;z-index:201;box-shadow:-4px 0 24px #00000014}.wfconn-form-panel__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e4e7ec;flex-shrink:0}.wfconn-form-panel__title[_ngcontent-%COMP%]{font-size:15px;font-weight:600;color:#101828}.wfconn-form-close[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;color:#667085;padding:4px;border-radius:4px;display:flex}.wfconn-form-close[_ngcontent-%COMP%]:hover{background:#f2f4f7;color:#344054}.wfconn-form-panel__body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.wfconn-form-panel__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #e4e7ec;flex-shrink:0}.wfconn-divider[_ngcontent-%COMP%]{font-size:11px;font-weight:600;color:#98a2b3;text-transform:uppercase;letter-spacing:.06em;padding:4px 0 2px;border-bottom:1px solid #f2f4f7}.wfconn-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:5px;flex:1}.wfconn-field--sm[_ngcontent-%COMP%]{max-width:100px}.wfconn-field-row[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:flex-start}.wfconn-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#344054}.wfconn-label--opt[_ngcontent-%COMP%]{font-weight:400;color:#98a2b3}.wfconn-input[_ngcontent-%COMP%], .wfconn-select[_ngcontent-%COMP%]{height:36px;padding:0 10px;border:1px solid #d0d5dd;border-radius:6px;font-size:13px;color:#101828;background:#fff;width:100%;box-sizing:border-box;outline:none;transition:border-color .15s}.wfconn-input[_ngcontent-%COMP%]:focus, .wfconn-select[_ngcontent-%COMP%]:focus{border-color:#2970ff;box-shadow:0 0 0 3px #2970ff1a}.wfconn-input[_ngcontent-%COMP%]::placeholder, .wfconn-select[_ngcontent-%COMP%]::placeholder{color:#b0b7c3}.wfconn-select[_ngcontent-%COMP%]{cursor:pointer}.wfconn-input-wrap[_ngcontent-%COMP%]{position:relative;display:flex}.wfconn-input-wrap[_ngcontent-%COMP%] .wfconn-input[_ngcontent-%COMP%]{padding-right:36px}.wfconn-input-toggle[_ngcontent-%COMP%]{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#98a2b3;padding:0;display:flex}.wfconn-input-toggle[_ngcontent-%COMP%]:hover{color:#344054}.wfconn-form-error[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff1f0;border-radius:6px;color:#b42318;font-size:12px}"]})};function id(i,t){i&1&&m(0,"app-ask-aquera-connections-page")}function od(i,t){i&1&&m(0,"app-ask-aquera-page")}function ad(i,t){if(i&1&&h(0,id,1,0,"app-ask-aquera-connections-page")(1,od,1,0,"app-ask-aquera-page"),i&2){let e,n=r();C(((e=n.config())==null||e.initial==null?null:e.initial.view)==="connections"?0:1)}}var Ze=class i{config=Et(void 0);ready=Ee({alias:"aq-ready"});error=Ee({alias:"aq-error"});unauthorized=Ee({alias:"aq-unauthorized"});host=$(At);stopAdopting=null;stopUi=null;tokenTimer=null;configured=!1;constructor(){Pe(()=>{let t=this.config();t&&this.apply(t)}),queueMicrotask(()=>{let t=this.host.nativeElement.shadowRoot;t&&(this.stopAdopting=vt(t))})}async apply(t){let e=t.auth;if(Kt(t.api.baseUrl),Bt(t.api,e),dt({baseUrl:t.api.baseUrl,mcpUrl:t.api.mcpUrl,adminApiUrl:t.api.adminApiUrl,utilitiesUrl:t.api.utilitiesUrl,tokenizedOrigins:t.api.tokenizedOrigins,headers:t.api.headers,customerId:t.tenant.customerId??null,productId:t.tenant.productId,productName:t.tenant.productName??null,authMode:e.mode,authToken:e.mode==="token"?e.token:null,getToken:e.mode==="callback"?e.getToken:null,onUnauthorized:()=>this.unauthorized.emit(),features:t.features,ui:t.ui,copy:t.copy,routing:t.routing,initial:{dashboardId:t.initial?.dashboardId??null,conversationId:t.initial?.conversationId??null}}),this.stopUi?.(),this.stopUi=wt(this.host.nativeElement,t.ui),Jt({productId:t.tenant.productId,name:t.tenant.productName}),Qt(()=>this.unauthorized.emit()),await Ye(),e.mode==="callback"&&!this.tokenTimer&&(this.tokenTimer=setInterval(()=>{Ye()},6e4)),!this.configured){this.configured=!0;let n=R();this.ready.emit({customerId:n.customerId??"",productId:n.productId??""})}}ngOnDestroy(){this.stopAdopting?.(),this.stopUi?.(),this.tokenTimer&&clearInterval(this.tokenTimer)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=Ce({type:i,selectors:[["dvz-ask-root"]],inputs:{config:[1,"config"]},outputs:{ready:"aq-ready",error:"aq-error",unauthorized:"aq-unauthorized"},decls:1,vars:1,template:function(e,n){e&1&&h(0,ad,2,1),e&2&&C(n.config()?0:-1)},dependencies:[Te,Se],styles:[`:host{display:block;height:100%}
18
18
  `],encapsulation:3,changeDetection:0})};$t();var rd="dvz-ask";function ld(i={}){return Nt(Ze,rd,[Pt(),jt([]),Yt(),Rt(zt([Xt])),{provide:Zt,useFactory:()=>R().baseUrl},{provide:Sn,useValue:"workforce/dashboards"},Ie(ge)],i)}ld();export{rd as a,ld as b};
package/main.js CHANGED
@@ -1 +1 @@
1
- import{a as d,b as f}from"./chunk-2XS4ITEC.js";import"./chunk-XUJBDACP.js";import{a as i,b as n}from"./chunk-TNNU4TG7.js";import{a as t,b as D}from"./chunk-NMSXBPGE.js";import{u as s}from"./chunk-A6TQPIGW.js";import"./chunk-JP5QY5S6.js";import"./chunk-U4S2XPPP.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-T4WJW6GR.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";var p="0.0.17",a=p;function g(){typeof window>"u"||(window.dataViz={packageName:"@aquera/data-visualizer-sdk",version:a,getVersion:()=>a})}g();async function A(){let[{defineDvzAsk:e},{defineDvzDashboards:o},{defineDvzManageDashboards:r}]=await Promise.all([import("./chunk-HPNTIPI3.js"),import("./chunk-MMBRIJCB.js"),import("./chunk-VXVC3XC7.js")]);await Promise.all([e(),o(),r()])}export{a as DATA_VISUALIZER_SDK_VERSION,i as DVZ_ASK_TAG,t as DVZ_DASHBOARDS_TAG,d as DVZ_MANAGE_DASHBOARDS_TAG,A as defineDvzAll,n as defineDvzAsk,D as defineDvzDashboards,f as defineDvzManageDashboards,s as setDvzEnv};
1
+ import{a as d,b as f}from"./chunk-2XS4ITEC.js";import"./chunk-XUJBDACP.js";import{a as i,b as n}from"./chunk-W7OTNCH6.js";import{a as t,b as D}from"./chunk-NMSXBPGE.js";import{u as s}from"./chunk-A6TQPIGW.js";import"./chunk-JP5QY5S6.js";import"./chunk-U4S2XPPP.js";import"./chunk-FK6H3RFT.js";import"./chunk-SYVY7IJY.js";import"./chunk-DPY4ZJSO.js";import"./chunk-T3NXAI3H.js";import"./chunk-JWVGGQEQ.js";import"./chunk-T4WJW6GR.js";import"./chunk-QXVITQOV.js";import"./chunk-I4TM4AGJ.js";import"./chunk-F6YL5NFN.js";import"./chunk-ATUZQYGW.js";import"./chunk-XCT4UKLK.js";import"./chunk-4XZ7RFFX.js";import"./chunk-YHTLTPEH.js";import"./chunk-LFSX3TZJ.js";import"./chunk-BTDKTIE6.js";import"./chunk-5CTM6JVQ.js";import"./chunk-W2HKCDVZ.js";import"./chunk-MPGDQZRI.js";import"./chunk-HOS2FAXH.js";import"./chunk-INJSG5RK.js";import"./chunk-RCWO45CI.js";import"./chunk-ZW5NV4UO.js";var p="0.0.18",a=p;function g(){typeof window>"u"||(window.dataViz={packageName:"@aquera/data-visualizer-sdk",version:a,getVersion:()=>a})}g();async function A(){let[{defineDvzAsk:e},{defineDvzDashboards:o},{defineDvzManageDashboards:r}]=await Promise.all([import("./chunk-SJNARYMB.js"),import("./chunk-MMBRIJCB.js"),import("./chunk-VXVC3XC7.js")]);await Promise.all([e(),o(),r()])}export{a as DATA_VISUALIZER_SDK_VERSION,i as DVZ_ASK_TAG,t as DVZ_DASHBOARDS_TAG,d as DVZ_MANAGE_DASHBOARDS_TAG,A as defineDvzAll,n as defineDvzAsk,D as defineDvzDashboards,f as defineDvzManageDashboards,s as setDvzEnv};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquera/data-visualizer-sdk",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Every Aquera data-visualizer element — <dvz-ask>, <dvz-dashboards> and <dvz-manage-dashboards> — in one bundle that loads their shared Nile and Highcharts dependencies once. Use this when a page mounts more than one; use the individual @aquera/dvz-* packages when it mounts only one.",
5
5
  "type": "module",
6
6
  "sideEffects": [