PageSourceSearch

https://app.dapta.ai/chunk-7ASKCZ3P.js

js dapta.ai collected 2026-09-29 00:05:15 UTC 6,077 bytes, 1 lines download raw bytes

1import{a as V}from"./chunk-FB4OBYQE.js";import{a as O}from"./chunk-XXUVMEHX.js";import{a as k}from"./chunk-AV4I7H6P.js";import{f as b,g as D}from"./chunk-MIJHCTDG.js";import{U as I}from"./chunk-PZHDZNOO.js";import{a as M}from"./chunk-GGODJQRR.js";import"./chunk-4ZHAVEY3.js";import"./chunk-PQEV5SKX.js";import{Db as S,Fb as g,Hb as v,Kd as E,La as a,Md as P,Wa as T,Wb as o,Xb as _,Yb as x,ea as h,kb as f,la as u,ma as C,mb as w,md as A,sb as e,tb as t,ub as d,vc as c,wc as p}from"./chunk-NMIDHYRA.js";import"./chunk-ZOCHBAGS.js";function y(n,s){if(n&1){let m=S();e(0,"div",4),g("click",function(){u(m);let i=v();return C(i.navigateToMetaDirect())}),e(1,"div",5),d(2,"img",13),t(),e(3,"span",7),o(4),c(5,"translate"),t(),e(6,"span",8),o(7),c(8,"translate"),t(),e(9,"div",9)(10,"dui-button",10),g("onClick",function(i){u(m);let r=v();return i.stopPropagation(),C(r.navigateToMetaDirect())}),o(11),c(12,"translate"),d(13,"dapta-material-icon",11),t()()()}n&2&&(a(4),_(p(5,3,"META_WHATSAPP.CARD_NAME")),a(3),_(p(8,5,"META_WHATSAPP.CARD_DESCRIPTION")),a(4),x(" ",p(12,7,"view-connections")," "))}function B(n,s){if(n&1){let m=S();e(0,"div",4),g("click",function(){u(m);let i=v();return C(i.navigateToWidgets())}),e(1,"div",5),d(2,"img",14),t(),e(3,"span",7),o(4,"Dapta Widget"),t(),e(5,"span",8),o(6),c(7,"translate"),t(),e(8,"div",9)(9,"dui-button",10),g("onClick",function(i){u(m);let r=v();return i.stopPropagation(),C(r.navigateToWidgets())}),o(10),c(11,"translate"),d(12,"dapta-material-icon",11),t()()()}n&2&&(a(6),_(p(7,2,"CHANNELS.WIDGET_DESCRIPTION")),a(4),x(" ",p(11,4,"view-connections")," "))}var R=new Set(["8f5211b7-ea23-4f31-b0ab-29710a46e83b","132de6d1-30cf-4d0a-9c01-ca4e35be9ce6"]);function H(n,s){return s&&!!n&&R.has(n)}var $=(()=>{let s=class s{constructor(){this.router=h(P),this.route=h(E),this.posthogService=h(k),this.iamAuthService=h(I),this.showWidgets=!0,this.showMetaDirect=!1,this.isVoiceAgent=!1,this.isTextAgent=!1;let l=this.route.parent?.routeConfig?.path??"";this.isVoiceAgent=l==="voice-agent-channels",this.isTextAgent=l==="text-agent-channels",this.showWidgets=!this.isVoiceAgent;let i=this.iamAuthService.ngxsAuthState,r=i?.workspaceAccountId||i?.accountId;this.showMetaDirect=H(r,this.isTextAgent)}ngOnInit(){this.isVoiceAgent?this.posthogService.capture("vac_channels_page_viewed"):this.isTextAgent&&this.posthogService.capture("tac_channels_page_viewed")}navigateToWhatsApp(){this.isVoiceAgent?this.posthogService.capture("vac_whatsapp_card_clicked"):this.isTextAgent&&this.posthogService.capture("tac_whatsapp_card_clicked"),this.router.navigate(["whatsapp"],{relativeTo:this.route})}navigateToWidgets(){this.isTextAgent&&this.posthogService.capture("tac_widget_card_clicked"),this.router.navigate(["widgets"],{relativeTo:this.route})}navigateToMetaDirect(){this.posthogService.capture("tac_meta_whatsapp_card_clicked"),this.router.navigate(["whatsapp-api"],{relativeTo:this.route})}};s.\u0275fac=function(i){return new(i||s)},s.\u0275cmp=T({type:s,selectors:[["app-channels-cards"]],decls:24,vars:14,consts:[[1,"channels-page"],[1,"text--title"],[1,"channels-page__subtitle"],[1,"channels-page__cards"],[1,"integration",3,"click"],[1,"integration__icons-container"],["src","assets/layout/images/whatsapp-channel-small-icon.png","alt","WhatsApp Business",1,"integration__icon"],[1,"integration__name"],[1,"integration__description"],[1,"integration__actions"],["variant","text","buttonColor","white",1,"px-0",3,"onClick"],["iconName","arrow_forward",1,"common-icon"],[1,"integration"],["src","assets/layout/images/whatsapp-channel-small-icon.png","alt","",1,"integration__icon"],["src","assets/layout/images/widget-channel-small-icon.png","alt","Dapta Widget",1,"integration__icon"]],template:function(i,r){i&1&&(e(0,"section",0)(1,"h1",1),o(2),c(3,"translate"),t(),e(4,"p",2),o(5),c(6,"translate"),t(),e(7,"div",3)(8,"app-card-grid")(9,"div",4),g("click",function(){return r.navigateToWhatsApp()}),e(10,"div",5),d(11,"img",6),t(),e(12,"span",7),o(13,"WhatsApp Business"),t(),e(14,"span",8),o(15),c(16,"translate"),t(),e(17,"div",9)(18,"dui-button",10),g("onClick",function(N){return N.stopPropagation(),r.navigateToWhatsApp()}),o(19),c(20,"translate"),d(21,"dapta-material-icon",11),t()()(),f(22,y,14,9,"div",12),f(23,B,13,6,"div",12),t()()()),i&2&&(a(2),_(p(3,6,"CHANNELS_PAGE.TITLE")),a(3),_(p(6,8,"CHANNELS_PAGE.SUBTITLE")),a(10),x(" ",p(16,10,r.isVoiceAgent?"CHANNELS.WHATSAPP_VOICE_DESCRIPTION":"CHANNELS.WHATSAPP_DESCRIPTION")," "),a(4),x(" ",p(20,12,"view-connections")," "),a(3),w(r.showMetaDirect?22:-1),a(),w(r.showWidgets?23:-1))},dependencies:[A,D,O,M,V,b],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:auto}.channels-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:var(--page-padding);height:100%}.channels-page__subtitle[_ngcontent-%COMP%]{margin-top:8px}.channels-page__cards[_ngcontent-%COMP%]{margin-top:16px}.integration[_ngcontent-%COMP%]{position:relative;background-color:var(--space-400);border-radius:16px;padding:16px;margin-bottom:4px;max-width:623px;font-size:var(--font-size-body);font-weight:var(--font-weight-semibold);height:200px;display:flex;flex-direction:column;gap:8px;
1cursor:pointer;transition:background-color .15s ease}.integration[_ngcontent-%COMP%]:hover{background-color:var(--space-300)}.integration__actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-top:auto}.integration__name[_ngcontent-%COMP%]{font-size:var(--font-size-body);font-weight:var(--font-weight-semibold)}.integration__description[_ngcontent-%COMP%]{font-size:var(--font-size-body);font-weight:var(--font-weight-regular)}.integration__icons-container[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.integration__icon[_ngcontent-%COMP%]{width:30px;height:30px;min-width:30px;min-height:30px;max-width:30px;max-height:30px;border-radius:50%}@media(max-width:800px){.channels-page[_ngcontent-%COMP%]{padding:16px}}"],changeDetection:0});let n=s;return n})();export{$ as ChannelsCardsComponent,R as META_DIRECT_DISCOVERY_ACCOUNT_IDS,H as canDiscoverMetaDirect};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.