PageSourceSearch

https://app.smartdialog.ai/assets/TwoWayServiceInfo-BOGcorAq.js

js smartdialog.ai collected 2026-10-05 12:39:09 UTC 20,701 bytes, 1 lines download raw bytes

1import{bK as fe,d as ge,q as Ke,b as Qe,a2 as Ue,p as ue,R as e,a4 as _,bP as j,bx as Re,E as x,U as C,r as pe,y as v,aD as we,am as Xe,x as Je,a6 as Ze,ad as re,dr as et,af as tt,cg as at,ds as st,b4 as rt,b5 as lt,b6 as ot,b7 as be,b8 as Q,G as $,A as nt,bY as ke,dq as it,c6 as ct,b0 as mt,T as xe,dt as le,i as dt,j as ut,k as ft,n as gt,o as pt,m as vt,b1 as Et,b2 as yt,b3 as St,cB as ht,ba as Tt,ai as L,du as wt,dv as bt,a5 as y,dw as Ct,dx as It,cS as X,dy as At,dz as Pt,dA as Dt,dc as Rt,be as Ce,c9 as Ie,M as oe,N as ne,O as W,de as ie,df as ce,dB as kt,dC as xt,dD as Ot,P as Nt,dm as $t,aA as Lt,z as Wt,aC as Bt,dE as Yt}from"./index-CpcUj6vn.js";import{T as Ft}from"./TwoWayServiceInfo-DCvRDUpi.js";import{S as Mt}from"./index-CPEdw4CR.js";import{A as Ht}from"./Add-Ch_lQzYb.js";import{A as qt}from"./AdminAction-DPSBG5Fm.js";import{N as Gt}from"./NestedIntervalDropdown-D7q-iQ0C.js";import{N as Vt,a as q,b as G}from"./index-CXES7HEQ.js";import"./ServiceTags-__zOVFbb.js";import"./ComboBox-BZcaHpwp.js";import"./NotInterestedRounded-pkMu3qIG.js";import"./DialogServiceShown-BgEjn472.js";import"./DialogServiceHidden-6aqcxnB3.js";import"./ActionList-DlfzHCUT.js";import"./lodash-1T78Azbp.js";import"./DescriptionOutlined-BItYoAWk.js";import"./ResourceAccessControl-BuAkXQTs.js";import"./AccessGroupTable-CrtG92CC.js";import"./AccessGroupForm-JWkeOl5H.js";import"./ArrowBackRounded-DjrvSj4E.js";import"./userAccess-jX4bU9Up.js";import"./LockRounded-KZJ2DSB0.js";import"./PinAsFavouriteService-TqJby03k.js";import"./DatatableCustomPagination-BGD_tESa.js";const _t=fe(a=>({root:{flexGrow:1},card:{padding:a.spacing(2)},paper:{padding:a.spacing(2),height:"100%"},infoButton:{float:"right"},listItem:{marginBottom:"5px",border:"1px solid #eee"},listItemText:{textAlign:"center"},lastTableRow:{"& .MuiTableCell-root":{border:"0"}}})),jt=()=>{const a=_t(),{serviceId:n,customerId:r}=ge(),l=Ke(),S=Qe(),{error:f,success:I}=Ue(),{foldersByServiceId:w,foldersLoading:B}=ue(i=>i.folders),[D,A]=e.useState(!1),[R,T]=e.useState(""),[h,d]=e.useState(!1),[P,O]=e.useState(null),s=e.useMemo(()=>Array.isArray(w?.[n])?w[n]:[],[w,n]),{loading:N,mutate:J}=_(i=>({method:"POST",endpoint:`/messaging/services/twoway/${n}/folders`,body:i})),{loading:z,mutate:k}=_(({id:i,name:g})=>({method:"PUT",endpoint:`/messaging/services/twoway/${n}/folders/${i}`,body:{name:g}})),Z=async()=>{if(P?.folderId!==void 0){const{error:i,errorMessages:g}=await k({id:P?.folderId,name:R});i?f(g):(I("Folder updated successfully."),T(""),O(null),A(!1),S(le()))}else{const{error:i,errorMessages:g}=await J({name:R});i?f(g):(I("Folder created successfully."),T(""),A(!1),S(le()))}},b=()=>{T(""),O(null),A(!1)},Y=({folderId:i,folderName:g})=>{O({folderId:i,folderName:g}),A(!0),T(g)},{loading:ee,mutate:te}=_(i=>({method:"DELETE",endpoint:`/messaging/services/twoway/${n}/folders/${i}`})),m=({folderId:i,folderName:g})=>{O({folderId:i,folderName:g}),d(!0)},F=async()=>{d(!1);const{error:i,errorMessages:g}=await te(P.folderId);i?f(g):(I("Folder deleted successfully"),S(le())),O(null)},K=i=>{l.push(`/${r}/services/twowaymessaging/info/${n}/events?folderid=${i??""}`)};return B||N||z||ee?e.createElement(j,null):e.createElement(Re,{className:a.card},e.createElement("div",{className:a.root},e.createElement(x,{"aria-label":"add",onClick:()=>A(!0),className:a.infoButton},e.createElement(C,{title:"Create new folder"},e.createElement(Ht,null))),e.createElement(pe.Suspense,{fallback:e.createElement(j,null)},e.createElement(v,{container:!0,spacing:2},e.createElement(v,{item:!0,xs:12,md:6},e.createElement(we,{className:a.paper},e.createElement("div",{className:a.list},e.createElement(Xe,{component:"nav","aria-label":"folders"},s.sort(Je("name")).map(i=>e.createElement(Ze,{key:i.id,button:!0,className:a.listItem},e.createElement(re,null,e.createElement(et,null)),e.createElement(tt,{className:a.listItemText,primary:i.name,onClick:()=>K(i.id)}),e.createElement(re,{onClick:()=>Y({folderId:i.id,folderName:i.name})},e.createElement(C,{title:"Rename folder"},e.createElement(at,null))),e.createElement(re,{onClick:()=>m({folderId:i.id,folderName:i.name})},e.createElement(C,{title:"Delete folder"},e.createElement(st,null))))))))),e.createElement(v,{item:!0,xs:12,md:6},e.createElement(we,{className:a.paper},e.createElement("div",{className:a.editor},D&&e.createElement(rt,null,e.createElement(lt,null,e.createElement("colgroup",null,e.createElement("col",{width:"40%"}),e.createElement("col",{width:"60%"})),e.createElement(ot,null,e.createElement(be,null,e.createElement(Q,{align:"left"},"Name"),e.createElement(Q,{align:"left"},e.createElement($,{className:a.formControl},e.createElement(nt,{onChange:i=>T(i.target.value??""),value:R??""})))),e.createElement(be,{className:a.lastTableRow},e.createElement(Q,{align:"left"}),e.createElement(Q,{align:"right"},e.createElement(v,{container:!0,direction:"row",justifyContent:"flex-end",alignItems:"center",className:a.toolbar},e.createElement(v,{item:!0,className:a.gridItem},e.createElement(x,{"aria-label":"cancel",onClick:b},e.createElement(C,{title:"Cancel"},e.createElement(ke,null))),e.createElement(qt,{resourceId:n,productType:it,actionAvailable:e.createElement(x,{"aria-label":"create folder",onClick:Z},e.createElement(C,{title:"Create folder"},e.createElement(ct,null)))})))))))))))))),e.createElement(mt,{title:"Delete folder?",open:h,onConfirm:F,onCancel:()=>d(!1)},e.createElement(xe,{variant:"body1"}
1,"Do you really want to delete the folder '",P?.folderName??"","'?")))};var V={},Ae;function zt(){if(Ae)return V;Ae=1;var a=dt(),n=ut();Object.defineProperty(V,"__esModule",{value:!0}),V.default=void 0;var r=n(ft()),l=a(gt()),S=(0,l.default)(r.createElement("path",{d:"M11.34 15.02c.39.39 1.02.39 1.41 0l6.36-6.36c.39-.39.39-1.02 0-1.41L14.16 2.3c-.38-.4-1.01-.4-1.4-.01L6.39 8.66c-.39.39-.39 1.02 0 1.41l4.95 4.95zm2.12-10.61L17 7.95l-4.95 4.95-3.54-3.54 4.95-4.95zm6.95 11l-2.12-2.12c-.18-.18-.44-.29-.7-.29h-.27l-2 2h1.91L19 17H5l1.78-2h2.05l-2-2h-.42c-.27 0-.52.11-.71.29l-2.12 2.12c-.37.38-.58.89-.58 1.42V20c0 1.1.9 2 2 2h14c1.1 0 2-.89 2-2v-3.17c0-.53-.21-1.04-.59-1.42z"}),"HowToVoteRounded");return V.default=S,V}var Kt=zt();const Qt=pt(Kt),Ut=vt(()=>({dialogContent:{paddingTop:"20px"}})),Oe=({open:a,setOpen:n,data:r,channel:l,serviceName:S})=>{const f=Ut(),I=()=>{n(!1)},B=[{name:"candidate",label:"Candidate",options:{sort:!0}},{name:"votes",label:l==="messages"?"Votes (Messages)":l==="ivr"?"Votes (IVR)":"Votes (All)",options:{sort:!0,download:!0,customBodyRender:(T,h)=>{const d=r[h?.rowIndex];if(d!==null){if(l==="all")return(d.messages??0)+(d.ivr??0);if(l==="messages")return d.messages??0;if(l==="ivr")return d.ivr??0}return"0"}}},{name:"percentage",label:"Percentage",options:{sort:!0,download:!0,customBodyRender:(T,h)=>{const d=r[h?.rowIndex];if(d!==null){if(l==="all")return`${(parseFloat(d.messagesTotalPercentage??0)+parseFloat(d.ivrTotalPercentage??0)).toFixed(2)}%`;if(l==="messages")return`${parseFloat(d.messagesTotalPercentage??0).toFixed(2)}%`;if(l==="ivr")return`${parseFloat(d.ivrTotalPercentage??0).toFixed(2)}%`}return"0.00%"}}}],D=new Date,A=`${D.getFullYear()}-${D.getMonth()+1}-${D.getDate()}`,R={elevation:0,print:!1,selectableRowsHeader:!1,selectableRows:"none",responsive:"standard",filter:!1,search:!0,download:!0,downloadOptions:{filename:`${S??"pollservice"}_${A}.csv`,separator:";",filterOptions:{useDisplayedColumnsOnly:!0,useDisplayedRowsOnly:!0}},onDownload:(T,h,d,P)=>`\uFEFF${T(d)}${h(P)}`,viewColumns:!1,fixedHeader:!0,textLabels:{body:{noMatch:"Sorry, no poll results found"}}};return e.createElement(Et,{open:a,maxWidth:"md",fullWidth:!0,"aria-labelledby":"results-table-title"},e.createElement(yt,{id:"results-table-title"},"Poll results"),e.createElement(St,{className:f.dialogContent},e.createElement(ht,{data:r,columns:B,options:R})),e.createElement(Tt,null,e.createElement(x,{"aria-label":"close",onClick:I},e.createElement(C,{title:"Close"},e.createElement(ke,null)))))};Oe.propTypes={open:L.bool.isRequired,setOpen:L.func.isRequired,data:L.array,channel:L.string.isRequired,serviceName:L.string.isRequired};const me="IVR-QS",Xt="IVR-CANDIDATE-PREFIX",Pe=365,de=31,De={showThisQuarter:!0,showThisYear:!0},u=Object.freeze({TWOWAYSTATS:"TWOWAYSTATS",POLLSTATS:"POLLSTATS",CHARGESTATS:"CHARGESTATS"}),Jt=fe(a=>({card:{width:"100%",flex:1},cardGrid:{height:"100%",display:"flex",flexDirection:"column",flexWrap:"wrap"},divider:{width:"100%",margin:"10px 0"},typeGrid:{width:"100%",flexBasis:"50px",backgroundColor:a.palette.background.gray,color:a.palette.white,"& *":{color:a.palette.white},display:"flex"},filterGrid:{width:"100%",flexBasis:"75px"},chartContainer:{width:"100%",display:"flex",flex:1,overflow:"hidden"},gridItem:{margin:a.spacing(0),padding:a.spacing(0,2)},formControl:{margin:a.spacing(),minWidth:130},button:{marginLeft:a.spacing(1)}})),U={year:y.duration(1,"year").add(1,"day"),quarter:y.duration(1,"quarter"),month:y.duration(32,"days"),week:y.duration(1,"week"),day:y.duration(1,"day"),hour:y.duration(1,"hour")},Zt=a=>{let n=[{label:"Per year",value:"year"}];return a<=U.year&&(n=[{label:"Per week",value:"week"},{label:"Per month",value:"month"},{label:"Per quarter",value:"quarter"},...n]),a<=U.month&&(n=[{label:"Per day",value:"day"},...n]),a<=U.day&&(n=[{label:"Per hour",value:"hour"},...n]),a<=U.hour&&(n=[{label:"Per minute",value:"minute"},...n]),n};function Ne({twoWayService:a,serviceKeywords:n}){const r=Jt(),[l,S]=e.useState({options:[],value:"day"}),[f,I]=e.useState("amount"),[w,B]=e.useState("all"),[D,A]=e.useState(null),[R,T]=e.useState([]),[h,d]=e.useState([]),[P,O]=wt("pollresults",bt),[s,N]=e.useState({definedInterval:"thisweek",intervalDescr:"This week",from:y().startOf("week"),to:y()}),[J,z]=e.useState(!1),{serviceId:k}=ge(),{services:Z}=ue(t=>t.twowaymessaging),b=Z?.find(t=>
1t.id===k)?.name??"2-Way Service",Y=Ct(n,R,h),[ee,te]=e.useState(!1),[m,F]=e.useState(u.TWOWAYSTATS),[K,i]=e.useState([]),{widgets:g,widgetsLoading:$e}=ue(t=>t.widget),[Le,ve]=e.useState(De);It(),e.useEffect(()=>{Array.isArray(g)&&te(!!g.find?.(t=>t.component==="TwoWayPollStatisticsBarWidget"&&t.settings?.serviceId===k))},[g]);const[M,We]=e.useState({from:s.from.utc(!0).valueOf(),to:s.to.utc(!0).valueOf(),groupBy:l.value}),Ee={method:"GET",endpoint:`/messagepersistence/statistics/revenue/${k}`},{mutate:Be,loading:Ye}=_(({interval:t,groupBy:c})=>({...Ee,params:{from:t.from.utc(!0).valueOf(),to:t.to.utc(!0).valueOf(),groupBy:c.value}})),{mutate:ye,loading:Fe}=_(t=>({method:"GET",endpoint:`/messaging/services/twoway/ivrfeed?${t}`})),Me={method:"GET",endpoint:`/messagepersistence/statistics/twoway/${k}/poll`,params:{from:M.from,to:M.to}},{payload:ae,loading:He}=X(Me,m===u.POLLSTATS);e.useEffect(()=>{let t=!0;return ae&&t&&T(ae),()=>{t=!1}},[ae]);const Se={method:"GET",endpoint:`/messagepersistence/statistics/twoway/${k}`,params:{...M}},{payload:se,loading:qe}=X(Se,m===u.TWOWAYSTATS);e.useEffect(()=>{let t=!0;return se&&t&&A(se),()=>{t=!1}},[se]),e.useEffect(()=>{let t=!0;const c=y.duration(s.to.diff(s.from.valueOf())),o=Zt(c);let p={options:o,value:l.value};return o.find(E=>E.value===l.value)||(p={options:o,value:o?.[0]?.value}),t&&(S(p),We({from:s.from.valueOf(),to:s.to.valueOf(),groupBy:p.value})),()=>{t=!1}},[s.to,s.from,l.value,s.definedInterval]);const H=e.useCallback(async()=>{let t=[];if(h.length===0){const c=a?.serviceMetadata?.find?.(p=>p.key===me)?.value??"",o=a?.serviceMetadata?.find?.(p=>p.key===Xt)?.value??"";if(c!==""){const{payload:p,error:E}=await ye(c);if(!E){const ze={compact:!0};t=At.xml2js(p,ze)?.voting?.candidates?.candidate?.map(Te=>({candidate:`${o}${Te?._attributes?.name}`,ivr:parseInt(Te?._attributes?.votes,10)})),d(t)}}}else t=h;F(u.POLLSTATS)},[h,a,ye]);e.useEffect(()=>{P&&(O(void 0,"replace"),H())},[P,H]),e.useEffect(()=>{let t=!0;return m===u.POLLSTATS&&t&&H(),()=>{t=!1}},[R,m,H]);const he=t=>{const c=t;let o=y(),p=y(),E="";c==="lastmonth"?(o=o.subtract(1,"months").startOf("month"),p=p.subtract(1,"months").endOf("month"),E="Last month"):c==="lastweek"?(o=o.subtract(1,"weeks").startOf("weeks"),p=p.subtract(1,"weeks").endOf("weeks"),E="Last week"):c==="lasthour"?(o=o.subtract(1,"hours"),E="Last hour"):c==="today"?(o=o.startOf("day"),E="Today"):c==="thisweek"?(o=o.startOf("week"),E="This week"):c==="thismonth"?(o=o.startOf("month"),E="This month"):c==="thisquarter"?(o=o.startOf("quarter"),E="This quarter"):c==="thisyear"||c==="all"?(o=o.startOf("year"),E="This year"):c==="custom"&&(o=s.from,p=s.to,E="Custom"),N({...s,definedInterval:c,intervalDescr:E,from:o,to:p})};e.useEffect(()=>{m===u.CHARGESTATS?(ve({showThisQuarter:!1,showThisYear:!1}),s.to.diff(s.from,"days")>de?he("thismonth"):(s.definedInterval==="thisquarter"||s.definedInterval==="thisyear")&&N({...s,definedInterval:"custom",intervalDescr:"Custom"})):ve(De)},[m,s]),e.useEffect(()=>{const t=async()=>{const{payload:c}=await Be({interval:s,groupBy:l});i(Array.isArray(c)?c:[])};m===u.CHARGESTATS&&t()},[m,s,l]);const Ge=(t,c,o)=>{N({...s,definedInterval:"custom",intervalDescr:o,from:t,to:c})},Ve=t=>{let c=Pe,o=s.to;m===u.CHARGESTATS&&(c=de),s.to.diff(t,"days")>c&&(o=y(t).add(c,"days")),N({...s,definedInterval:"custom",intervalDescr:"Custom",from:t,to:o})},_e=t=>{let c=Pe,o=s.from;m===u.CHARGESTATS&&(c=de),t.diff(s.from,"days")>c&&(o=y(t).subtract(c-1,"days")),N({...s,definedInterval:"custom",intervalDescr:"Custom",from:o,to:t})},je=()=>{z(!1)};return e.createElement(pe.Suspense,{fallback:e.createElement(j,null)},e.createElement(Re,{className:r.card},e.createElement("div",{className:r.cardGrid},e.createElement("div",{className:r.typeGrid},e.createElement(v,{container:!0,item:!0,xs:12,alignItems:"center"},e.createElement(v,{container:!0,item:!0,xs:6,justifyContent:"flex-start",className:r.gridItem},e.createElement(xe,{variant:"h5"},m===u.CHARGESTATS?"Estimated charges":"Inbound messages")),e.createElement(v,{container:!0,item:!0,xs:6,justifyContent:"flex-end",className:r.gridItem},e.createElement(e.Fragment,null,m===u.POLLSTATS&&e.createElement(x,{onClick:()=>z(!0)},e.createElement(C,{title:"Show poll results table"},e.createElement(Pt,null))),a?.serviceConfiguration?.pollService&&e.createElement(x,{onClick:H},e.createElement(C,{title:"Show poll results"},e.createElement(Qt,null))),a?.hasBilling&&e.createElement(x,{onClick:()=>F(u.CHARGESTATS)},e.createElement(C,{title:"Show estimated charges"},e.createElement(Dt,null))),e.createElement(x,{onClick:()=>F(u.TWOWAYSTATS)},e.createElement(C,{title:"Show bar chart"},e.createElement(Rt,null))))))),e.createElement("div",{className:r.divider},e.createElement(Ce,null)),e.createElement("div",{className:r.filterGrid},e.createElement(v,{container:!0,item:!0,xs:12,justifyContent:"center",alignItems:"center"},e.createElement(v,null,e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(Gt,{variant:"outlined",interval:s,handleIntervalChange:he,handleSetPrevMonth:Ge,settings:Le}))),e.createElement(v,{item:!0,className:r.gridItem},e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(Ie,{autoOk:!0,hideTabs:!0,ampm:!1,value:s.from,onChange:t=>Ve(t),name:"from",label:"From date",format:"D.M.YYYY HH.mm",inputVariant:"outlined"}))),e.createElement(v,{item:!0,className:r.gridItem},e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(Ie,{autoOk:!0,hideTabs:!0,ampm:!1,value:s.to,onChange:t=>_e(t),name:"to",label:"To date",format:"D.M.YYYY HH.mm",inputVariant:"outlined"}))),m!==u.POLLSTATS&&e.createElement(v,{item:!0,className:r.gridItem},e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(oe,{id:"group-by-label"},"Group by"),e.createElement(ne,{labelId:"group-by-label",id:"group-by-select",value:l.value,onChange:t=>S({...l,value:t.target.value}),label:"Group by"},l?.options?.map(t=>
1e.createElement(W,{key:t.value,value:t.value},t.label))))),m!==u.CHARGESTATS&&e.createElement(v,{item:!0,className:r.gridItem},e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(oe,{id:"visualization-label"},"Show by"),e.createElement(ne,{labelId:"visualization-label",id:"visualization-select",defaultValue:"amount",value:f,onChange:t=>I(t.target.value),label:"Show by"},e.createElement(W,{value:"amount"},"Amount"),e.createElement(W,{value:"percentage"},"Percentage")))),m===u.POLLSTATS&&(a?.serviceMetadata?.find(t=>t.key===me)?.value??"")!==""&&e.createElement(v,{item:!0,className:r.gridItem},e.createElement($,{variant:"outlined",className:r.formControl},e.createElement(oe,{id:"channel-label"},"Channel"),e.createElement(ne,{labelId:"channel-label",id:"channel-select",defaultValue:"all",value:w,onChange:t=>B(t.target.value),label:"Channel"},e.createElement(W,{value:"all"},"All"),e.createElement(W,{value:"messages"},"Messages"),e.createElement(W,{value:"ivr"},"IVR")))))),e.createElement("div",{className:r.divider},e.createElement(Ce,null)),e.createElement("div",{className:r.chartContainer},D&&m===u.TWOWAYSTATS&&e.createElement(ie,{loading:qe},e.createElement(ce,{component:"TwoWayMessageStatisticsBarWidget",settings:{title:"2-Way Inbound Messages",serviceName:b,visualization:f,requestSettings:Se,interval:s,groupBy:l.value,chips:[`Service name: ${b}`,`Unit: ${f==="percentage"?"Percentage":"Amount"}`]}},e.createElement(kt,{data:D,chips:[`Service name: ${b}`,`From: ${s.from?.format("D.M.YYYY HH:mm")}`,`To: ${s.to?.format("D.M.YYYY HH:mm")}`],groupBy:l.value,showBy:f}))),K&&m===u.CHARGESTATS&&e.createElement(ie,{loading:Ye},e.createElement(ce,{component:"TwoWayChargeStatisticsBarWidget",settings:{title:"2-Way Estimated Charges",serviceName:b,requestSettings:{...Ee,params:{from:M.from,to:M.to,groupBy:l.value}},interval:s,groupBy:l.value,chips:[`Service name: ${b}`]}},e.createElement(xt,{data:K,chips:[`Service name: ${b}`,`From: ${s.from?.format("D.M.YYYY HH:mm")}`,`To: ${s.to?.format("D.M.YYYY HH:mm")}`],groupBy:l.value}))),Y&&m===u.POLLSTATS&&e.createElement(ie,{loading:He||Fe||$e},e.createElement(ce,{component:"TwoWayPollStatisticsBarWidget",settings:{title:"Poll Statistics",serviceId:k,visualization:f,interval:s,channel:w,disabled:ee,chips:[`Unit: ${f==="percentage"?"Percentage":"Amount"}`]}},e.createElement(Ot,{data:Y,chips:[`Service name: ${b}`,`From: ${s.from?.format("D.M.YYYY HH:mm")}`,`To: ${s.to?.format("D.M.YYYY HH:mm")}`],showBy:f,channel:w,hasIvr:!!a?.serviceMetadata?.find(t=>t.key===me)}))))),e.createElement(Oe,{open:J,setOpen:je,data:Y,channel:w,serviceName:b})))}Ne.propTypes={twoWayService:L.object,serviceKeywords:L.object};const ea=fe(()=>({root:{flex:1,display:"flex",flexDirection:"column"},appBar:{backgroundColor:"#fff"}})),Ia=()=>{const a=ea(),{customerId:n,serviceId:r}=ge(),{payload:l,loading:S}=X({method:"GET",endpoint:`/messaging/services/twoway/${r}`,params:{"include-uncached-properties":!0}}),{payload:f,loading:I}=X({method:"GET",endpoint:`/messaging/services/twoway/inputsources/servicekeywords/${r}`});return S||I||!l?e.createElement(j,null):e.createElement(Nt,{className:a.root,title:"2-Way Messaging Service"},e.createElement(pe.Suspense,{fallback:e.createElement(j,null)},e.createElement($t,{position:"static",color:"default",elevation:0,className:a.appBar,variant:"outlined"},e.createElement(Vt,null,e.createElement(q,{label:"Service Info",value:`/${n}/services/twowaymessaging/info/${r}/info`}),e.createElement(q,{label:"Message Events",value:`/${n}/services/twowaymessaging/info/${r}/events`}),e.createElement(q,{label:"Messaging Errors",value:`/${n}/services/twowaymessaging/info/${r}/errors`}),l?.serviceConfiguration?.allowFolders&&e.createElement(q,{label:"Folders",value:`/${n}/services/twowaymessaging/info/${r}/folders`}),e.createElement(q,{label:"Statistics",value:`/${n}/services/twowaymessaging/info/${r}/statistics`}))),e.createElement(Lt,null,e.createElement(Wt,{exact:!0,path:"/:customerId/services/twowaymessaging/info/:serviceId"},e.createElement(Bt,{replace:!0,to:`/${n}/services/twowaymessaging/info/${r}/info`})),e.createElement(G,{path:"/:customerId/services/twowaymessaging/info/:serviceId/info"},e.createElement(Ft,{twoWayService:l??{},serviceKeywords:f??[]})),e.createElement(G,{path:"/:customerId/services/twowaymessaging/info/:serviceId/events"},e.createElement(Yt,{hasFoldersEnabled:l?.serviceConfiguration?.allowFolders??!1})),e.createElement(G,{path:"/:customerId/services/twowaymessaging/info/:serviceId/errors"},e.createElement(Mt,{serviceType:"TwoWay"})),e.createElement(G,{path:"/:customerId/services/twowaymessaging/info/:serviceId/folders"},e.createElement(jt,null)),e.createElement(G,{path:"/:customerId/services/twowaymessaging/info/:serviceId/statistics"},e.createElement(Ne,{twoWayService:l??{},serviceKeywords:f??[]})))))};export{Ia as default};

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.