PageSourceSearch

https://app.cubbystorage.com/assets/ScheduleCallMenuItem-X-Q7nGuh.js

js cubbystorage.com collected 2026-10-09 18:00:36 UTC 1,640 bytes, 1 lines download raw bytes

1import{Ia as e,Ko as t,Mn as n,Pa as r}from"./cubby-utils-BRyLQoeU.js";import{Zr as i}from"./mui-material-HIJrFJOH.js";import{Qn as a,sn as o}from"./cubby-components-G6-aNASc.js";import{o as s}from"./selectors-BZjGmCzO.js";import{t as c}from"./permission-B18j4koz.js";import{s as l}from"./api-Db_1hyIW.js";import{t as u}from"./useOrganisationFeatures-uzYAqJc6.js";import{t as d}from"./useFacilityOrOrganisationPermissions-CR1FsdSF.js";var f=t(),p=i(),m=t=>{let i=(0,f.c)(14),{nextScheduledCall:m,contactId:h,contactName:g,facilityId:_,defaultType:v,leaseId:y,interestId:b,withIcon:x,analyticsEvent:S}=t,C;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(C={globalId:`schedule-call-dialog`},i[0]=C):C=i[0];let w=o(l,void 0,C),T=d(_),E=u()(s.SCHEDULED_CALLS),D=e(m?.workflowRunId)?T(c.ScheduledCall.MANAGE):T(c.WorkflowScheduledCall.EDIT);if(!E||!D)return null;let O;i[1]!==S||i[2]!==h||i[3]!==g||i[4]!==v||i[5]!==b||i[6]!==y||i[7]!==m||i[8]!==w?(O=()=>{if(r(S)&&n(S,{manage_action_name:m?`Edit scheduled call`:`Schedule a call`}),r(m)){w.open({scheduledCallId:m.id,leaseId:y,interestId:b,defaultType:v,prefill:{contactId:h,contactName:g,dueAt:m.dueAt,timeZone:m.timeZone,reason:m.reason,assignedManagers:m.assignedManagers,assignedManagerGroups:m.assignedManagerGroups}});return}w.open({contactId:h,leaseId:y,interestId:b,defaultType:v})},i[1]=S,i[2]=h,i[3]=g,i[4]=v,i[5]=b,i[6]=y,i[7]=m,i[8]=w,i[9]=O):O=i[9];let k=O,A=x?m?`edit`:`schedule`:void 0,j=m?`Edit scheduled call`:`Schedule call`,M;return i[10]!==k||i[11]!==A||i[12]!==j?(M=(0,p.jsx)(a,{startIcon:A,onClick:k,children:j}),i[10]=k,i[11]=A,i[12]=j,i[13]=M):M=i[13],M};export{m as t};

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.