1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[76,3420,78],{82887:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCoachPayerCredentials"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"credentials"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CoachPayerCredentialInput"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCoachPayerCredentials"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}},{kind:"Argument",name:{kind:"Name",value:"credentials"},value:{kind:"Variable",name:{kind:"Name",value:"credentials"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"abbreviation"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:303}};n.loc.source={body:"mutation updateCoachPayerCredentials(\n $coachId: ID!\n $credentials: [CoachPayerCredentialInput!]!\n) {\n updateCoachPayerCredentials(coachId: $coachId, credentials: $credentials) {\n id\n payerId\n stateId\n payer {\n id\n name\n }\n state {\n id\n abbreviation\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.updateCoachPayerCredentials=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"updateCoachPayerCredentials")},70974:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachPayerCredentials"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coach"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payerCredentials"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"payer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"payers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"availableStates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"abbreviation"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:289}};n.loc.source={body:"query getCoachPayerCredentials($coachId: ID!) {\n coach(id: $coachId) {\n id\n payerCredentials {\n id\n payer {\n id\n name\n }\n state {\n id\n }\n }\n }\n payers {\n id\n name\n availableStates {\n id\n abbreviation\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);
1else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.getCoachPayerCredentials=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"getCoachPayerCredentials")},61746:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachBioImage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"forceUpdate"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coachBioImageFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}},{kind:"Argument",name:{kind:"Name",value:"clientId"},value:{kind:"StringValue",value:"1",block:!1}},{kind:"Argument",name:{kind:"Name",value:"forceUpdate"},value:{kind:"Variable",name:{kind:"Name",value:"forceUpdate"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BioImage"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"processing"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:254}};n.loc.source={body:'query getCoachBioImage($coachId: ID!, $forceUpdate: Boolean) {\n coachBioImageFile(\n coachId: $coachId\n clientId: "1"\n forceUpdate: $forceUpdate\n ) {\n ... on File {\n id\n url\n }\n ... on BioImage {\n processing\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.getCoachBioImage=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"getCoachBioImage")},99418:function(e,n,i){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachCollection"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"page"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"pageSize"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"levelId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"managerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"nameFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"keywordFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFilterByWithClientProblems"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFilterByBehindSchedule"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"completedCoachOnboardingRequirementsFilter"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"notCompletedCoachOnboardingRequirementsFilter"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hasNonTestingClientWithStatuses"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"timezoneFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"acceptLiveWorkoutClientsFilter"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coachCollection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"page"},value:{kind:"Variable",name:{kind:"Name",value:"page"}}},{kind:"Argument",name:{kind:"Name",value:"pageSize"},value:{kind:"Variable",name:{kind:"Name",value:"pageSize"}}},{kind:"Argument",name:{kind:"Name",value:"levelId"},value:{kind:"Variable",name:{kind:"Name",value:"levelId"}}},{kind:"Argument",name:{kind:"Name",value:"managerId"},value:{kind:"Variable",name:{kind:"Name",value:"managerId"}}},{kind:"Argument",name:{kind:"Name",value:"shouldSortByCoachManagementPriority"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"nameFilter"},value:{kind:"Variable",name:{kind:"Name",value:"nameFilter"}}},{kind:"Argument",name:{kind:"Name",value:"keywordFilter"},value:{kind:"Variable",name:{kind:"Name",value:"keywordFilter"}}},{kind:"Argument",name:{kind:"Name",value:"shouldFilterByWithClientProblems"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFilterByWithClientProblems"}}},{kind:"Argument",name:{kind:"Name",value:"shouldFilterByBehindSchedule"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFilterByBehindSchedule"}}},{kind:"Argument",name:{kind:"Name",value:"completedCoachOnboardingRequirementsFilter"},value:{kind:"Variable",name:{kind:"Name",value:"completedCoachOnboardingRequirementsFilter"}}},{kind:"Argument",name:{kind:"Name",value:"notCompletedCoachOnboardingRequirementsFilter"},value:{kind:"Variable",name:{kind:"Name",value:"notCompletedCoachOnboardingRequirementsFilter"}}},{kind:"Argument",name:{kind:"Name",value:"hasNonTestingClientWithStatuses"},value:{kind:"Variable",name:{kind:"Name",value:"hasNonTestingClientWithStatuses"}}},{kind:"Argument",name:{kind:"Name",value:"timezoneFilter"},value:{kind:"Variable",name:{kind:"Name",value:"timezoneFilter"}}},{kind:"Argument",name:{kind:"Name",value:"acceptLiveWorkoutClientsFilter"},value:{kind:"Variable",name:{kind:"Name",value:"acceptLiveWorkoutClientsFilter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachLevelCollectionFields"},directives:[]}]}}]}}],loc:{start:0,end:1244}};a.loc.source={body:"#import 'fragments/coach.graphql'\n\nquery getCoachCollection(\n $page: Int\n $pageSize: Int\n $levelId: ID\n $managerId: ID\n $nameFilter: String\n $keywordFilter: String\n $shouldFilterByWithClientProblems: Boolean\n $shouldFilterByBehindSchedule: Boolean\n $completedCoachOnboardingRequirementsFilter: [String]\n $n
1otCompletedCoachOnboardingRequirementsFilter: [String]\n $hasNonTestingClientWithStatuses: [Int]\n $timezoneFilter: Int\n $acceptLiveWorkoutClientsFilter: Boolean\n) {\n coachCollection(\n page: $page\n pageSize: $pageSize\n levelId: $levelId\n managerId: $managerId\n shouldSortByCoachManagementPriority: true\n nameFilter: $nameFilter\n keywordFilter: $keywordFilter\n shouldFilterByWithClientProblems: $shouldFilterByWithClientProblems\n shouldFilterByBehindSchedule: $shouldFilterByBehindSchedule\n completedCoachOnboardingRequirementsFilter: $completedCoachOnboardingRequirementsFilter\n notCompletedCoachOnboardingRequirementsFilter: $notCompletedCoachOnboardingRequirementsFilter\n hasNonTestingClientWithStatuses: $hasNonTestingClientWithStatuses\n timezoneFilter: $timezoneFilter\n acceptLiveWorkoutClientsFilter: $acceptLiveWorkoutClientsFilter\n ) {\n ...coachLevelCollectionFields\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(i(14361).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)}));var s={};function l(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),s[e.name.value]=n}}),e.exports=a,e.exports.getCoachCollection=function(e,n){var i={kind:e.kind,definitions:[l(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=s[n]||new Set,t=new Set,r=new Set;for(a.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(s[e]||new Set).forEach(function(e){r.add(e)}))})}return t.forEach(function(n){var a=l(e,n);a&&i.definitions.push(a)}),i}(a,"getCoachCollection")},40248:function(e,n,i){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCoach"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"firstName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"lastName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isActive"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"onboardingManagerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"managerId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"marketplacePriorityOverride"}},type:{kind:"NamedType",name:{kind:"Name",value:"Float"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"marketplacePausedUntil"}},type:{kind:"NamedType",name:{kind:"Name",value:"Date"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"notes"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"levelId"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isAcceptingNewClients"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isOfferingLiveVideoWorkouts"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"isCloser"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"areClientProblemsSnoozed"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"freeTrialEnabled"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"targetClientCount"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hasAccessToMarketplace"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"employmentType"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stateLicenseTargetingExempt"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCoach"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"firstName"},value:{kind:"Variable",name:{kind:"Name",value:"firstName"}}},{kind:"Argument",name:{kind:"Name",value:"lastName"},value:{kind:"Variable",name:{kind:"Name",value:"lastName"}}},{kind:"Argument",name:{kind:"Name",value:"isActive"},value:{kind:"Variable",name:{kind:"Name",value:"isActive"}}},{kind:"Argument",name:{kind:"Name",value:"onboardingManagerId"},value:{kind:"Variable",name:{kind:"Name",value:"onboardingManagerId"}}},{kind:"Argument",name:{kind:"Name",value:"managerId"},value:{kind:"Variable",name:{kind:"Name",value:"managerId"}}},{kind:"Argument",name:{kind:"Name",value:"marketplacePriorityOverride"},value:{kind:"Variable",name:{kind:"Name",value:"marketplacePriorityOverride"}}},{kind:"Argument",name:{kind:"Name",value:"marketplacePausedUntil"},value:{kind:"Variable",name:{kind:"Name",value:"marketplacePausedUntil"}}},{kind:"Argument",name:{kind:"Name",value:"notes"},value:{kind:"Variable",name:{kind:"Name",value:"notes"}}},{kind:"Argument",name:{kind:"Name",value:"levelId"},value:{kind:"Variable",name:{kind:"Name",value:"levelId"}}},{kind:"Argument",name:{kind:"Name",value:"isAcceptingNewClients"},value:{kind:"Variable",name:{kind:"Name",value:"isAcceptingNewClients"}}},{kind:"Argument",name:{kind:"Name",value:"isOfferingLiveVideoWorkouts"},value:{kind:"Variable",name:{kind:"Name",value:"isOfferingLiveVideoWorkouts"}}},{kind:"Argument",name:{kind:"Name",value:"isCloser"},value:{kind:"Variable",name:{kind:"Name",value:"isCloser"}}},{kind:"Argument",name:{kind:"Name",value:"areClientProblemsSnoozed"},value:{kind:"Variable",name:{kind:"Name",value:"areClientProblemsSnoozed"}}},{kind:"Argument",name:{kind:"Name",value:"freeTrialEnabled"},value:{kind:"Variable",name:{kind:"Name",value:"freeTrialEnabled"}}},{kind:"Argument",name:{kind:"Name",value:"targetClientCount"},value:{kind:"Variable",name:{kind:"Name",value:"targetClientCount"}}},{kind:"Argument",name:{kind:"Name",value:"hasAccessToMarketplace"},value:{kind:"Variable",name:{kind:"Name",value:"hasAccessToMarketplace"}}},{kind:"Argument",name:{kind:"Name",value:"employmentType"},value:{kind:"Variable",name:{kind:"Name",value:"employmentType"}}},{kind:"Argument",name:{kind:"Name",value:"stateLicenseTargetingExempt"},value:{kind:"Variable",name:{kind:"Name",value:"stateLicenseTargetingExempt"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachManagementFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachOnboardingProgressFields"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCoachOnboardingProgress"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"onboardingRequirement"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"date"}},type:{kind:"NamedType",name:{kind:"Name",value:"Date"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCoachOnboardingProgress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}},{kind:"Argument",name:{kind:"Name",value:"onboardingRequirement"},value:{kind:"Variable",name:{kind:"Name",value:"onboardingRequirement"}}},{kind:"Argument",name:{kind:"Name",value:"date"},value:{kind:"Variable",name:{kind:"Name",value:"date"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachOnboardingProgressFields"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateClient"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hasManuallyMarkedProblem"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"clientProblemsSnoozedAt"}},type:{kind:"NamedType",name:{kind:"Name",value:"Date"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateClient"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"hasManuallyMarkedProblem"},value:{kind:"Variable",name:{kind:"Name",value:"hasManuallyMarkedProblem"}}},{kind:"Argument",name:{kind:"Name",value:"clientProblemsSnoozedAt"},value:{kind:"Variable",name:{kind:"Name",value:"clientProblemsSnoozedAt"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coachProblems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasManuallyMarkedProblem"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientProblemsSnoozedAt"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createCoachAudit"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"auditTypeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"didPass"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"feedback"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCoachAudit"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}},{kind:"Argument",name:{kind:"Name",value:"auditTypeId"},value:{kind:"Variable",name:{kind:"Name",value:"auditTypeId"}}},{kind:"Argument",name:{kind:"Name",value:"didPass"},value:{kind:"Variable",name:{kind:"Name",value:"didPass"}}},{kind:"Argument",name:{kind:"Name",value:"feedback"},value:{kind:"Variable",name:{kind:"Name",value:"feedback"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachOnboardingProgressFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"audit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachAuditFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"updateCoachAudit"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"didPass"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"feedback"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCoachAudit"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"didPass"},value:{kind:"Variable",name:{kind:"Name",value:"didPass"}}},{kind:"Argument",name:{kind:"Name",value:"feedback"},value:{kind:"Variable",name:{kind:"Name",value:"feedback"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachOnboardingProgressFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"audit"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachAuditFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"destroyCoachStripeAccount"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"destroyCoachStripeAccount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"coachId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachManagementFields"},directives:[]}]}}]}}],loc:{start:0,end:3002}};a.loc.source={body:"#import 'fragments/coach.graphql'\n#import 'fragments/coach-onboarding-progress.graphql'\n#import 'fragments/coach-audit.graphql'\n\nmutation updateCoach(\n $id: ID!\n $firstName: String\n $lastName: String\n $isActive: Boolean\n $onboardingManagerId: ID\n $managerId: ID\n $marketplacePriorityOverride: Float\n $marketplacePausedUntil: Date\n $notes: String\n $levelId: ID\n $isAcceptingNewClients: Boolean\n $isOfferingLiveVideoWorkouts: Boolean\n $isCloser: Boolean\n $areClientProblemsSnoozed: Boolean\n $freeTrialEnabled: Boolean\n $targetClientCount: Int\n $hasAccessToMarketplace: Boolean\n $employmentType: String\n $stateLicenseTargetingExempt: Boolean\n) {\n updateCoach(\n id: $id\n firstName: $firstName\n lastName: $lastName\n isActive: $isActive\n onboardingManagerId: $onboardingManagerId\n managerId: $managerId\n marketplacePriorityOverride: $marketplacePriorityOverride\n marketplacePausedUntil: $marketplacePausedUntil\n notes: $notes\n levelId: $levelId\n isAcceptingNewClients: $isAcceptingNewClients\n isOfferingLiveVideoWorkouts: $isOfferingLiveVideoWorkouts\n isCloser: $isCloser\n areClientProblemsSnoozed: $areClientProblemsSnoozed\n freeTrialEnabled: $freeTrialEnabled\n targetClientCount: $targetClientCount\n hasAccessToMarketplace: $hasAccessToMarketplace\n employmentType: $employmentType\n stateLicenseTargetingExempt: $stateLicenseTargetingExempt\n ) {\n ...coachManagementFields\n onboardingProgress {\n ...coachOnboardingProgressFields\n }\n }\n}\n\nmutation updateCoachOnboardingProgress(\n $coachId: ID!\n $onboardingRequirement: String!\n $date: Date\n) {\n updateCoachOnboardingProgress(\n coachId: $coachId\n onboardingRequirement: $onboardingRequirement\n date: $date\n ) {\n ...coachOnboardingProgressFields\n }\n}\n\nmutation updateClient(\n $id: ID!\n $hasManuallyMarkedProblem: Boolean\n $clientProblemsSnoozedAt: Date\n) {\n updateClient(\n id: $id\n hasManuallyMarkedProblem: $hasManuallyMarkedProblem\n clientProblemsSnoozedAt: $clientProblemsSnoozedAt\n ) {\n id\n coachProblems\n hasManuallyMarkedProblem\n user {\n fullName\n }\n clientProblemsSnoozedAt\n }\n}\n\nmutation createCoachAudit(\n $coachId: ID!\n $auditTypeId: ID!\n $didPass: Boolean!\n $feedback: String\n) {\n createCoachAudit(\n coachId: $coachId\n auditTypeId: $auditTypeId\n didPass: $didPass\n feedback: $feedback\n ) {\n id\n onboardingProgress {\n ...coachOnboardingProgressFields\n }\n audit {\n ...coachAuditFields\n }\n hasAccessToMarketplace\n }\n}\n\nmutation updateCoachAudit($id: ID!, $didPass: Boolean!, $feedback: String) {\n updateCoachAudit(id: $id, didPass: $didPass, feedback: $feedback) {\n id\n onboardingProgress {\n ...coachOnboardingProgressFields\n }\n audit {\n ...coachAuditFields\n }\n hasAccessToMarketplace\n }\n}\n\nmutation destroyCoachStripeAccount($coachId: ID!) {\n destroyCoachStripeAccount(coachId: $coachId) {\n ...coachManagementFields\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function s(e){return e.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)})}a.definitions=a.definitions.concat(s(i(14361).definitions)),a.definitions=a.definitions.concat(s(i(34463).definitions)),a.definitions=a.definitions.concat(s(i(7709).definitions));var l={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function o(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=l[n]||new Set,t=new Set,s=new Set;
1for(a.forEach(function(e){s.add(e)});s.size>0;){var o=s;s=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(l[e]||new Set).forEach(function(e){s.add(e)}))})}return t.forEach(function(n){var a=r(e,n);a&&i.definitions.push(a)}),i}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),l[e.name.value]=n}}),e.exports=a,e.exports.updateCoach=o(a,"updateCoach"),e.exports.updateCoachOnboardingProgress=o(a,"updateCoachOnboardingProgress"),e.exports.updateClient=o(a,"updateClient"),e.exports.createCoachAudit=o(a,"createCoachAudit"),e.exports.updateCoachAudit=o(a,"updateCoachAudit"),e.exports.destroyCoachStripeAccount=o(a,"destroyCoachStripeAccount")},21628:function(e,n,i){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachCollectionsByLevel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"coachCollectionInputs"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CoachCollectionInput"}}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coachCollectionsByLevel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachCollectionInputs"},value:{kind:"Variable",name:{kind:"Name",value:"coachCollectionInputs"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachLevelCollectionFields"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachAdmins"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coaches"},arguments:[{kind:"Argument",name:{kind:"Name",value:"isAdmin"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"isActive"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachLevels"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coachLevels"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoachAuditTypesWithLevelIds"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coachAuditTypesWithLevelIds"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelIds"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"auditType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCoach"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"coach"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachManagementFields"},directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingProgress"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachOnboardingProgressFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientRecruiterProofs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"exludeDate"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"images"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"avatar600",block:!1}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"allClients"},arguments:[{kind:"Argument",name:{kind:"Name",value:"coachId"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"statuses"}
1,value:{kind:"ListValue",values:[{kind:"IntValue",value:"1"},{kind:"IntValue",value:"2"},{kind:"IntValue",value:"50"}]}},{kind:"Argument",name:{kind:"Name",value:"shouldExcludeChurned"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coachProblems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasManuallyMarkedProblem"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"clientProblemsSnoozedAt"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1130}};a.loc.source={body:"#import 'fragments/coach.graphql'\n#import 'fragments/coach-onboarding-progress.graphql'\n\nquery getCoachCollectionsByLevel(\n $coachCollectionInputs: [CoachCollectionInput!]!\n) {\n coachCollectionsByLevel(coachCollectionInputs: $coachCollectionInputs) {\n ...coachLevelCollectionFields\n }\n}\n\nquery getCoachAdmins {\n coaches(isAdmin: true, isActive: true) {\n id\n user {\n firstName\n lastName\n }\n }\n}\n\nquery getCoachLevels {\n coachLevels {\n id\n name\n }\n}\n\nquery getCoachAuditTypesWithLevelIds {\n coachAuditTypesWithLevelIds {\n id\n levelIds\n auditType {\n id\n name\n }\n }\n}\n\nquery getCoach($id: ID!) {\n coach(id: $id) {\n ...coachManagementFields\n onboardingProgress {\n ...coachOnboardingProgressFields\n }\n clientRecruiterProofs(exludeDate: true) {\n images {\n id\n url(transformation: \"avatar600\")\n type\n createdAt\n }\n }\n }\n allClients(coachId: $id, statuses: [1, 2, 50], shouldExcludeChurned: true) {\n id\n coachProblems\n hasManuallyMarkedProblem\n user {\n fullName\n }\n clientProblemsSnoozedAt\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};function s(e){return e.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)})}a.definitions=a.definitions.concat(s(i(14361).definitions)),a.definitions=a.definitions.concat(s(i(34463).definitions));var l={};function r(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function o(e,n){var i={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=l[n]||new Set,t=new Set,s=new Set;for(a.forEach(function(e){s.add(e)});s.size>0;){var o=s;s=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(l[e]||new Set).forEach(function(e){s.add(e)}))})}return t.forEach(function(n){var a=r(e,n);a&&i.definitions.push(a)}),i}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),l[e.name.value]=n}}),e.exports=a,e.exports.getCoachCollectionsByLevel=o(a,"getCoachCollectionsByLevel"),e.exports.getCoachAdmins=o(a,"getCoachAdmins"),e.exports.getCoachLevels=o(a,"getCoachLevels"),e.exports.getCoachAuditTypesWithLevelIds=o(a,"getCoachAuditTypesWithLevelIds"),e.exports.getCoach=o(a,"getCoach")},7709:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"coachAuditFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CoachAudit"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coachId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"auditType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"didPass"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"feedback"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]}]}}],loc:{start:0,end:150}};n.loc.source={body:"fragment coachAuditFields on CoachAudit {\n id\n coachId\n auditType {\n id\n name\n }\n didPass\n feedback\n completedAt\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);
1else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.coachAuditFields=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"coachAuditFields")},34463:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"coachOnboardingProgressFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CoachOnboardingProgress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingRequirements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOptional"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDisabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isHidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"completedAt"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]}]}}],loc:{start:0,end:269}};n.loc.source={body:"fragment coachOnboardingProgressFields on CoachOnboardingProgress {\n levelId\n levelUpdatedAt\n onboardingRequirements {\n name\n label\n isEnabled\n isOptional\n isDisabled\n isHidden\n completedAt\n }\n hasAccessToMarketplace\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.coachOnboardingProgressFields=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"coachOnboardingProgressFields")},14361:function(e,n,i){var a={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"coachMatchCoachFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Coach"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"certifications"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"missionStatement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quote"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"promotionQuestionResponses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"surveyQuestionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"question"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responseValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"whyIloveBeingATrainer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"approach"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"whyTrainWithMe"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOfferingLiveVideoWorkouts"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"yearStartedTrainingPayingClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"specialties"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"profileImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"avatar600",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"humanizingImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"avatar600",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"actionImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"imageFit600",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"bodyImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"avatar600",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"introVideo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"mp4Fit1200",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"approachVideo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"mp4Fit1200",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cmsSurveyQuestionResponses"},arguments:[{kind:"Argument",name:{kind:"Name",value:"surveyId"},value:{kind:"IntValue",value:"152"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"responseValue"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"score"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"reviews"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"review"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rating"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"client"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"profileImageFile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"avatar200",block:!1}}],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"instagramHandle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInsuranceDietitian"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"coachMatchFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CoachM
1atch"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coach"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachMatchCoachFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tags"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"availability"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"timezone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"days"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dayName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"dayNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"timeSlots"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"startTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"endTime"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"coachManagementFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Coach"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"onboardingManagerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"managerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stripeUserId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isActive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketplacePriorityOverride"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketplacePausedUntil"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"notes"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"yearStartedTrainingPayingClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAcceptingNewClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOfferingLiveVideoWorkouts"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCloser"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"targetClientCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activeClientCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bio"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numClientsWithProblems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numDaysBehindSchedule"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areClientProblemsSnoozed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"freeTrialEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"employmentType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInsuranceDietitian"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"stateLicenseTargetingExempt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"schedulerConfigurations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nylasConfigurationId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"audits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachAuditFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"certificationImageFile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"certificationFile",block:!1}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"thumbnailUrl"},name:{kind:"Name",value:"url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"transformation"},value:{kind:"StringValue",value:"certificationThumbnail",block:!1}}],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"identificationImageFile"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"rdImages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimetype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"surveyQuestionId"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zipCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phoneNumber"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"utcOffset"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"cmsSurveyQuestionResponses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"surveyId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"surveyQuestionId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"surveyQuestionResponseId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"responseValue"},arguments:[],directives:[]}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"coachLevelCollectionFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CoachCollection"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageSize"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"page"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numCoachesWithClientProblems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numCoachesBehindSchedule"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"coaches"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelUpdatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAcceptingNewClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"marketplacePriorityOverride"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bio"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"totalActiveClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isActive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numClientsWithProblems"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numDaysBehindSchedule"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"areClientProblemsSnoozed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isProfileComplete"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"lastName"},arguments:[],directives:[]}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"coachMetricFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Coach"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAcceptingNewClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"freeTrialEnabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasAccessToMarketplace"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"user"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"username"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"audits"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"coachAuditFields"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"leadStats"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"numEarmarkedLeadsInPeriod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"numLeadsAssignedOfEarmarkedInPeriod"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"paidOfAssignedLeadsInPeriod"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"milestone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentLevelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextLevelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evaluatedLevelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"evaluatedNextLevelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCurrentlyInTrialLevel"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"goalCoachLevelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isOnTrackToAdvance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isInDangerOfFalling"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shouldNotifyAboutLevelUp"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shouldNotifyAboutLevelDown"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minAcquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"nextLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minAcquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"evaluatedLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minAcquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"evaluatedNextLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minAcquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"allLevels"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"order"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minAcquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"liveBasePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"freeTrialPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tables"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"levelId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextLevelUpId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shouldShowLevelRequirementsColumn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"rows"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metric"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentLevelRequirementValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isCurrentLevelRequirementMet"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"nextLevelRequirementValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isNextLevelRequirementMet"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currentValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deepDiveMetric"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"assignedEarmarkConversionMilestoneDeepDive"},name:{kind:"Name",value:"milestoneDeepDive"},arguments:[{kind:"Argument",name:{kind:"Name",value:"metric"},value:{kind:"StringValue",value:"assigned-earmark-conversion",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderboard"},arguments:[],direc
1tives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentCoachRanking"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metricValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAboveAverage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"averageMetricValueForAllCoaches"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"profileSelectionRateMilestoneDeepDive"},name:{kind:"Name",value:"milestoneDeepDive"},arguments:[{kind:"Argument",name:{kind:"Name",value:"metric"},value:{kind:"StringValue",value:"profile-selection-rate",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"leaderboard"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentCoachRanking"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metricValue"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isAboveAverage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"averageMetricValueForAllCoaches"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"paymentInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentInfoForLevel"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"basePay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bonusPay"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"adjustments"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"total"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"clients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"acquiredClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"freeTrialClients"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPayday"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"upcomingYear"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"upcomingMonth"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:5340}};a.loc.source={body:'#import \'fragments/coach-audit.graphql\'\n\nfragment coachMatchCoachFields on Coach {\n id\n certifications\n missionStatement\n quote\n promotionQuestionResponses {\n id\n surveyQuestionId\n question\n responseValue\n }\n whyIloveBeingATrainer\n approach\n whyTrainWithMe\n isOfferingLiveVideoWorkouts\n yearStartedTrainingPayingClients\n specialties {\n name\n imageUrl\n }\n user {\n id\n username\n firstName\n lastName\n }\n profileImage {\n id\n url(transformation: "avatar600")\n }\n humanizingImage {\n id\n url(transformation: "avatar600")\n }\n actionImage {\n id\n url(transformation: "imageFit600")\n }\n bodyImage {\n id\n url(transformation: "avatar600")\n }\n introVideo {\n id\n url(transformation: "mp4Fit1200")\n }\n approachVideo {\n id\n url(transformation: "mp4Fit1200")\n }\n cmsSurveyQuestionResponses(surveyId: 152) {\n responseValue\n }\n rating {\n score\n total\n }\n reviews {\n createdAt\n review\n rating\n client {\n id\n user {\n id\n firstName\n lastName\n }\n profileImageFile {\n id\n url(transformation: "avatar200")\n }\n }\n }\n instagramHandle\n isInsuranceDietitian\n}\n\nfragment coachMatchFields on CoachMatch {\n id\n coach {\n ...coachMatchCoachFields\n }\n tags {\n id\n tag\n name\n }\n availability {\n timezone\n days {\n date\n dayName\n dayNumber\n timeSlots {\n startTime\n endTime\n }\n }\n }\n}
1\n\nfragment coachManagementFields on Coach {\n id\n onboardingManagerId\n managerId\n levelId\n stripeUserId\n isActive\n marketplacePriorityOverride\n marketplacePausedUntil\n notes\n hasAccessToMarketplace\n levelId\n levelUpdatedAt\n yearStartedTrainingPayingClients\n isAcceptingNewClients\n isOfferingLiveVideoWorkouts\n isCloser\n targetClientCount\n activeClientCount\n bio\n numClientsWithProblems\n numDaysBehindSchedule\n areClientProblemsSnoozed\n freeTrialEnabled\n employmentType\n isInsuranceDietitian\n stateLicenseTargetingExempt\n schedulerConfigurations {\n id\n nylasConfigurationId\n }\n audits {\n ...coachAuditFields\n }\n certificationImageFile {\n id\n url(transformation: "certificationFile")\n thumbnailUrl: url(transformation: "certificationThumbnail")\n }\n identificationImageFile {\n id\n url\n }\n rdImages {\n id\n url\n mimetype\n surveyQuestionId\n }\n user {\n id\n firstName\n lastName\n email\n zipCode\n phoneNumber\n username\n utcOffset\n }\n cmsSurveyQuestionResponses {\n surveyId\n surveyQuestionId\n surveyQuestionResponseId\n responseValue\n }\n}\n\nfragment coachLevelCollectionFields on CoachCollection {\n pageSize\n page\n hasNextPage\n total\n numCoachesWithClientProblems\n numCoachesBehindSchedule\n levelId\n coaches {\n id\n levelId\n levelUpdatedAt\n isAcceptingNewClients\n marketplacePriorityOverride\n bio\n totalActiveClients\n isActive\n numClientsWithProblems\n numDaysBehindSchedule\n areClientProblemsSnoozed\n isProfileComplete\n createdAt\n hasAccessToMarketplace\n user {\n firstName\n lastName\n }\n }\n}\n\nfragment coachMetricFields on Coach {\n id\n levelId\n isAcceptingNewClients\n freeTrialEnabled\n hasAccessToMarketplace\n user {\n id\n username\n }\n audits {\n ...coachAuditFields\n }\n leadStats {\n numEarmarkedLeadsInPeriod\n numLeadsAssignedOfEarmarkedInPeriod\n paidOfAssignedLeadsInPeriod\n }\n milestone {\n currentLevelId\n nextLevelId\n evaluatedLevelId\n evaluatedNextLevelId\n isCurrentlyInTrialLevel\n goalCoachLevelId\n isOnTrackToAdvance\n isInDangerOfFalling\n shouldNotifyAboutLevelUp\n shouldNotifyAboutLevelDown\n currentLevel {\n id\n name\n minAcquiredClients\n basePay\n bonusPay\n }\n nextLevel {\n id\n name\n minAcquiredClients\n basePay\n bonusPay\n }\n evaluatedLevel {\n id\n name\n minAcquiredClients\n basePay\n bonusPay\n }\n evaluatedNextLevel {\n id\n name\n minAcquiredClients\n basePay\n bonusPay\n }\n allLevels {\n id\n name\n order\n minAcquiredClients\n basePay\n liveBasePay\n bonusPay\n freeTrialPay\n }\n tables {\n levelId\n nextLevelUpId\n shouldShowLevelRequirementsColumn\n rows {\n metric\n currentLevelRequirementValue\n isCurrentLevelRequirementMet\n nextLevelRequirementValue\n isNextLevelRequirementMet\n currentValue\n deepDiveMetric\n }\n }\n }\n assignedEarmarkConversionMilestoneDeepDive: milestoneDeepDive(\n metric: "assigned-earmark-conversion"\n ) {\n leaderboard {\n currentCoachRanking {\n metricValue\n isAboveAverage\n }\n averageMetricValueForAllCoaches\n }\n }\n profileSelectionRateMilestoneDeepDive: milestoneDeepDive(\n metric: "profile-selection-rate"\n ) {\n leaderboard {\n currentCoachRanking {\n metricValue\n isAboveAverage\n }\n averageMetricValueForAllCoaches\n }\n }\n paymentInfo {\n paymentInfoForLevel {\n id\n name\n value\n bonusPay\n }\n basePay\n bonusPay\n adjustments\n total\n clients\n acquiredClients\n freeTrialClients\n isPayday\n upcomingYear\n upcomingMonth\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(i(7709).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)}));var s={};function l(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function r(e,n){var i={kind:e.kind,definitions:[l(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=s[n]||new Set,t=new Set,r=new Set;
1for(a.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(s[e]||new Set).forEach(function(e){r.add(e)}))})}return t.forEach(function(n){var a=l(e,n);a&&i.definitions.push(a)}),i}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),s[e.name.value]=n}}),e.exports=a,e.exports.coachMatchCoachFields=r(a,"coachMatchCoachFields"),e.exports.coachMatchFields=r(a,"coachMatchFields"),e.exports.coachManagementFields=r(a,"coachManagementFields"),e.exports.coachLevelCollectionFields=r(a,"coachLevelCollectionFields"),e.exports.coachMetricFields=r(a,"coachMetricFields")},7433:function(e,n,i){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"meFields"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getCurrentUserWithSurvey"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"meFieldsWithSurvey"},directives:[]}]}}]}}],loc:{start:0,end:157}};a.loc.source={body:"#import 'fragments/me.graphql'\n\nquery getCurrentUser {\n me {\n ...meFields\n }\n}\n\nquery getCurrentUserWithSurvey {\n me {\n ...meFieldsWithSurvey,\n }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(i(67973).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)}));var s={};function l(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}function r(e,n){var i={kind:e.kind,definitions:[l(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=s[n]||new Set,t=new Set,r=new Set;for(a.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(s[e]||new Set).forEach(function(e){r.add(e)}))})}return t.forEach(function(n){var a=l(e,n);a&&i.definitions.push(a)}),i}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),s[e.name.value]=n}}),e.exports=a,e.exports.getCurrentUser=r(a,"getCurrentUser"),e.exports.getCurrentUserWithSurvey=r(a,"getCurrentUserWithSurvey")},55760:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"fileInputFileFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"File"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"mimetype"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"filename"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"muxPlaybackId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isMuxVideo"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"muxVideoIsReady"},arguments:[],directives:[]}]}}],loc:{start:0,end:121}};n.loc.source={body:"fragment fileInputFileFields on File {\n id\n url\n mimetype\n filename\n muxPlaybackId\n isMuxVideo\n muxVideoIsReady\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function a(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}n.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);
1else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),i[e.name.value]=n}}),e.exports=n,e.exports.fileInputFileFields=function(e,n){var t={kind:e.kind,definitions:[a(e,n)]};e.hasOwnProperty("loc")&&(t.loc=e.loc);var s=i[n]||new Set,l=new Set,r=new Set;for(s.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){l.has(e)||(l.add(e),(i[e]||new Set).forEach(function(e){r.add(e)}))})}return l.forEach(function(n){var i=a(e,n);i&&t.definitions.push(i)}),t}(n,"fileInputFileFields")},28740:function(e,n,i){var a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"createFile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"attachmentData"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"FileInput"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"eagerLoadTransformations"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createFile"},arguments:[{kind:"Argument",name:{kind:"Name",value:"attachmentData"},value:{kind:"Variable",name:{kind:"Name",value:"attachmentData"}}},{kind:"Argument",name:{kind:"Name",value:"eagerLoadTransformations"},value:{kind:"Variable",name:{kind:"Name",value:"eagerLoadTransformations"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"fileInputFileFields"},directives:[]}]}}]}}],loc:{start:0,end:270}};a.loc.source={body:"#import './fragments.graphql'\n\nmutation createFile(\n $attachmentData: FileInput!\n $eagerLoadTransformations: [String!]\n) {\n createFile(\n attachmentData: $attachmentData\n eagerLoadTransformations: $eagerLoadTransformations\n ) {\n ...fileInputFileFields\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var t={};a.definitions=a.definitions.concat(i(55760).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!t[n]&&(t[n]=!0,!0)}));var s={};function l(e,n){for(var i=0;i<e.definitions.length;i++){var a=e.definitions[i];if(a.name&&a.name.value==n)return a}}a.definitions.forEach(function(e){if(e.name){var n=new Set;(function e(n,i){if("FragmentSpread"===n.kind)i.add(n.name.value);else if("VariableDefinition"===n.kind){var a=n.type;"NamedType"===a.kind&&i.add(a.name.value)}n.selectionSet&&n.selectionSet.selections.forEach(function(n){e(n,i)}),n.variableDefinitions&&n.variableDefinitions.forEach(function(n){e(n,i)}),n.definitions&&n.definitions.forEach(function(n){e(n,i)})})(e,n),s[e.name.value]=n}}),e.exports=a,e.exports.createFile=function(e,n){var i={kind:e.kind,definitions:[l(e,n)]};e.hasOwnProperty("loc")&&(i.loc=e.loc);var a=s[n]||new Set,t=new Set,r=new Set;for(a.forEach(function(e){r.add(e)});r.size>0;){var o=r;r=new Set,o.forEach(function(e){t.has(e)||(t.add(e),(s[e]||new Set).forEach(function(e){r.add(e)}))})}return t.forEach(function(n){var a=l(e,n);a&&i.definitions.push(a)}),i}(a,"createFile")},75845:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/coaches",function(){return i(85318)}])},75404:function(e,n,i){"use strict";i.d(n,{_:function(){return a}});var a={MCTA:"1",ACTA:"2",FOA:"3",PA:"4"}},25494:function(e,n,i){"use strict";i.d(n,{Z:function(){return w}});var a=i(76341),t=i(67462),s=i(85893),l=i(75404),r=i(93128),o=i(41904),d=i(24785),c=i(14595),u=i(90246),m=i(67294),v=i(44349),k=i.n(v),h=[{value:!0,label:"Pass"},{value:!1,label:"Fail"}],f=function(e){var n=e.prompt,i=e.initialFeedback,a=e.initialDidPass,t=e.onCancel,l=e.onSubmit,v=(0,r._)((0,m.useState)(void 0===i?"":i),2),f=v[0],p=v[1],g=(0,r._)((0,m.useState)(void 0===a?null:a),2),N=g[0],_=g[1];return(0,s.jsxs)("div",{className:k().modal,children:[(0,s.jsx)("div",{className:k().prompt,children:n}),(0,s.jsx)("div",{children:(0,s.jsx)(o.Z,{options:h,value:N,onChange:_})}),(0,s.jsx)("div",{children:(0,s.jsx)(d.Z,{label:"Comments",value:f,onChange:p})}),(0,s.jsxs)("div",{className:k().buttons,children:[(0,s.jsx)("button",{className:k().cancelButton,onClick:t,children:"Cancel"}),(0,s.jsx)("button",{className:k().confirmButton,onClick:function(){return l({didPass:N,feedback:f})},disabled:null===N||10>c.Z(u.Z(f)),children:"Submit"})]})]})},p=i(98731),g=i(40546),N=i.n(g),_=i(57831),b=i(92442),y=i(57903),C=i(91642),S=i(18528),x=i(50194),F=i(71689),I=i(44603),j=i(81490),A=i(80179),T=i(26836),P=i(78449),L=i.n(P),w=function(e){var n=e.coach,i=e.coachAuditTypesWithLevelIds,r=e.shouldAllowEditing,o=void 0===r||r,d=e.onCreateAudit,u=void 0===d?function(){}:d,v=e.onUpdateAudit,k=void 0===v?function(){}:v,h=_.Z([],"audits",n),g=b.Z(function(e){var n=e.auditType.id===l._.ACTA,i=!0===e.didPass;return n&&i},h),P=(0,m.useContext)(p.Z),w=y.Z(C.Z(function(e){var i=e.levelIds;return S.Z(n.levelId,i)}),C.Z(function(e){return e.auditType.id!==l._.ACTA||!g}))(i||[]),D=C.Z(function(e){var n=e.name,i=e.completedAt;return S.Z(n,["trialAuditPassedAt","sourcingAuditPassedAt"])&&i&&N().isBefore(i,"2021-03-16")},x.Z([],["onboardingProgress","onboardingRequirements"],n)),E=function(e){var n=e.id,i=e.didPass,t=e.feedback,l=e.auditTypeName;return P.open(function(){return(0,s.jsx)(f,{prompt:l,initialDidPass:i,initialFeedback:t,onCancel:P.close,onSubmit:function(e){k((0,a._)({id:n},e)).then(function(){return P.close()})}})})};
1return(0,s.jsxs)("div",{className:L().container,children:[!!w.length&&o&&F.Z(function(e){var n=I.Z(["auditType","id"],e),i=I.Z(["auditType","name"],e);return(0,s.jsx)("div",{className:L().row,children:(0,s.jsx)("button",{className:L().button,onClick:function(){return P.open(function(){return(0,s.jsx)(f,{prompt:i,onCancel:P.close,onSubmit:function(e){u((0,t._)((0,a._)({},e),{auditTypeId:n})).then(function(){return P.close()})}})})},children:"Complete ".concat(i)})},e.id)},w),o&&(0,s.jsx)("div",{className:L().row,children:(0,s.jsx)("button",{className:L().profileAuditButton,onClick:function(){return P.open(function(){return(0,s.jsx)(f,{prompt:"Profile Audit",onCancel:P.close,onSubmit:function(e){u((0,t._)((0,a._)({},e),{auditTypeId:l._.PA})).then(function(){return P.close()})}})})},children:"Complete Profile Audit"})}),(0,s.jsx)("div",{className:L().row,children:(0,s.jsxs)("div",{className:L().auditsContainer,children:[(0,s.jsxs)("span",{className:L().auditsHeader,children:["Feedback Reports (",c.Z(h)+c.Z(D),")"]}),F.Z(function(e){var n=e.id,i=e.auditType.name,a=e.didPass,t=e.completedAt,l=e.feedback;return(0,s.jsxs)("div",{className:L().auditEntryContainer,children:[(0,s.jsxs)("div",{className:L().auditEntryHeader,children:[(0,s.jsx)("div",{className:L().auditTypeName,children:i}),o&&(0,s.jsx)("div",{className:L().edit,onClick:function(){return E({id:n,didPass:a,feedback:l,auditTypeName:i})},children:"Edit"})]}),(0,s.jsx)("br",{}),N().format(t,"M/D/YYYY h:mma")," Result:"," ",(0,s.jsx)("span",{className:a?L().resultPass:L().resultFail,children:a?"Pass":"Needs Review"}),(0,s.jsx)("br",{}),"Comments:",(0,s.jsx)("br",{}),(0,s.jsx)("pre",{children:l})]},"audit-".concat(n))},j.Z(A.Z(T.Z("completedAt")),h)),F.Z(function(e){var n=e.label,i=e.completedAt;return(0,s.jsxs)("div",{className:L().auditEntryContainer,children:[(0,s.jsx)("div",{className:L().auditEntryHeader,children:(0,s.jsxs)("div",{className:L().auditTypeName,children:["Simple ",n]})}),(0,s.jsx)("br",{}),N().format(i,"M/D/YYYY h:mma")," Result:"," ",(0,s.jsx)("span",{className:L().resultPass,children:"Pass"})]})},j.Z(A.Z(T.Z("completedAt")),D))]})})]})}},60541:function(e,n,i){"use strict";i.d(n,{Z:function(){return S}});var a=i(85893),t=i(91642),s=i(43973),l=i(31885),r=i(14595),o=i(71689),d=i(26836),c=i(73292),u=i(93967),m=i.n(u),v=i(40546),k=i.n(v),h=i(41664),f=i.n(h),p=i(93568),g=i(39737),N=i(74941),_=i.n(N),b=function(e){var n,i,t=e.client,s=e.hasProblem,l=e.onUpdateManualProblem,r=e.shouldAllowEditing,d=e.onDismissClientProblems,u=t.id,v=t.hasManuallyMarkedProblem,h=t.coachProblems,N=t.clientProblemsSnoozedAt,b=t.user.fullName,y=N&&k().isAfter(k().addDays(N,30),new Date);return s=s&&!y,(0,a.jsxs)("div",{className:_().container,children:[(0,a.jsxs)("div",{className:_().nameContainer,children:[(0,a.jsx)(f(),{href:g.ZP.clientSms({clientId:u}),className:m()(_().nameLink,(n={},(0,c._)(n,_().hasProblem,s),(0,c._)(n,_().isInGoodStanding,!s),n)),target:"_blank",children:(0,a.jsx)("div",{className:m()(_().name,(i={},(0,c._)(i,_().hasProblem,s),(0,c._)(i,_().isInGoodStanding,!s),i)),children:b})}),s&&(0,a.jsx)("button",{className:_().dismissButton,onClick:function(){return d({clientId:u})},children:"Dismiss for 30 days"}),!v&&r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{className:_().checkbox,type:"checkbox",name:"Report Problem",value:"Report Problem",onChange:function(e){var n=e.target;return l({clientId:u,hasManuallyMarkedProblem:(n.value,n.checked)})}}),(0,a.jsx)("div",{className:_().checkboxLabel,children:"Report Problem"})]})]}),v&&r&&(0,a.jsxs)("div",{className:_().checkboxRow,children:[(0,a.jsx)("input",{className:_().checkbox,type:"checkbox",name:"Manually Reported Problem",value:"Manually Reported Problem",checked:!0,onChange:function(e){var n=e.target;return l({clientId:u,hasManuallyMarkedProblem:(n.value,n.checked)})}}),(0,a.jsx)("div",{className:_().checkboxLabel,children:"Manually Reported Problem"})]}),s&&p.Z(o.Z)(function(e,n){return(0,a.jsxs)("div",{className:_().problem,children:["• ",e]},"coach-client-problem-".concat(n))},h)]})},y=i(39453),C=i.n(y),S=function(e){var n=e.coach,i=e.onSnoozeClientProblems,c=e.onUpdateManualProblem,u=e.shouldAllowEditing,m=void 0===u||u,v=e.shouldShowClientsInGoodShape,k=e.onDismissClientProblems,h=n.clients,f=n.areClientProblemsSnoozed,p=t.Z(function(e){var n=e.hasManuallyMarkedProblem,i=e.coachProblems;return n||!s.Z(i)},h),g=l.Z(function(e){var n=e.hasManuallyMarkedProblem,i=e.coachProblems;return n||!s.Z(i)},h);return(0,a.jsxs)("div",{className:C().container,children:[!f&&m&&(0,a.jsx)("div",{className:C().row,children:(0,a.jsx)("button",{className:C().button,onClick:i,children:"Snooze client problems"})}),(0,a.jsx)("div",{className:C().row,children:(0,a.jsxs)("div",{className:C().clientsContainer,children:[(0,a.jsxs)("span",{className:C().issueHeader,children:["Clients with Problems (",r.Z(p),")"]}),o.Z(function(e){return(0,a.jsx)(b,{client:e,hasProblem:!0,onUpdateManualProblem:c,shouldAllowEditing:m,onDismissClientProblems:k},"client-with-problem-".concat(d.Z("id",e)))},p)]})}),(void 0===v||v)&&(0,a.jsx)("div",{className:C().row,children:(0,a.jsxs)("div",{className:C().clientsContainer,children:[(0,a.jsxs)("span",{className:C().issueHeader,children:["Clients in Good Shape (",r.Z(g),")"]}),o.Z(function(e){return(0,a.jsx)(b,{client:e,hasProblem:!1,onUpdateManualProblem:c,shouldAllowEditing:m,onDismissClientProblems:k},"client-in-good-standing-".concat(d.Z("id",e)))},g)]})})]})}},69527:function(e,n,i){"use strict";var a=i(85893),t=i(12026),s=i(71689),l=i(31885),r=i(4230),o=i.n(r);n.Z=function(e){var n=e.coachLevels,i=e.value,r=e.isDisabled,d=e.onChange,c=void 0===d?function(){}:d;if(!(null==n?void 0:n.length))return null;var u=s.Z(function(e){return{value:e.id,label:e.name}},l.Z(function(e){var n=e.id;return 10===parseInt(n,10)||9===parseInt(n,10)},n));return(0,a.jsx)(t.Z,{inputClassName:o().select,value:i,options:u,disabled:r,onChange:function(e){return c(e.target.value)}})}},5977:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var a=i(93128),t=i(85893),s=i(67294),l=i(73935),r=function(e){var n=document.createElement("div");return n.setAttribute("id",e),document.body.appendChild(n),n};function o(e){var n=e.children,i=e.wrapperId,o=void 0===i?"portal":i,d=(0,a._)((0,s.use
1State)(),2),c=d[0],u=d[1];return((0,s.useLayoutEffect)(function(){var e=document.getElementById(o),n=!1;return e||(e=r(o),n=!0),u(e),function(){n&&e.parentNode&&e.parentNode.removeChild(e)}},[o]),c)?(0,t.jsx)(t.Fragment,{children:(0,l.createPortal)(n,c)}):null}},67208:function(e,n,i){"use strict";var a=i(73292),t=i(93128),s=i(85893),l=i(67294),r=i(57347),o=i(93967),d=i.n(o),c=i(8323),u=i(41837),m=i(87872),v=i(3327),k=i.n(v);n.Z=function(e){var n,i=e.title,o=e.children,v=e.className,h=e.headerClass,f=e.mainClass,p=e.mainContentClass,g=e.openClass,N=e.titleClass,_=e.badgeCount,b=e.badgeClass,y=e.badgeSize,C=e.enabled,S=void 0===C||C,x=e.startOpen,F=e.forceOpen,I=void 0!==F&&F,j=e.forceClose,A=void 0!==j&&j,T=e.mainPadded,P=e.mainBorder,L=e.onClick,w=e.headerRef,D=e.titleRef,E=(0,t._)((0,l.useState)(void 0===x||x),2),Z=E[0],V=E[1];return(0,l.useEffect)(function(){A&&V(!1)},[A]),(0,l.useEffect)(function(){I&&V(!0)},[I]),(0,s.jsxs)("section",{className:d()(k().container,v,(0,a._)({},g,Z)),children:[(0,s.jsxs)("header",{className:d()(k().header,h),onClick:function(){V(r.Z),L&&L()},ref:w,children:[(0,s.jsxs)("div",{className:k().headerLeft,ref:D,children:[(0,s.jsx)(u.i0,{className:d()(k().title,N),weight:"bold",children:i}),!!_&&(0,s.jsx)(c.Ct,{className:d()(k().badge,b),size:void 0===y?10:y,numberOnly:!0,children:_})]}),S&&(0,s.jsx)(m.Z,{isOpen:Z})]}),(0,s.jsx)("main",{className:d()(k().main,(n={},(0,a._)(n,k().padded,void 0===T||T),(0,a._)(n,k().mainWithBorder,void 0===P||P),(0,a._)(n,k().hidden,!S||!Z),n),f),children:(0,s.jsx)("div",{className:p,children:o})})]})}},63195:function(e,n,i){"use strict";var a=i(93128),t=i(85893),s=i(43973),l=i(67294),r=i(70539),o=i(42198),d=i.n(o),c=i(58726),u=i(41837),m=i(44662);n.Z=function(e){var n=e.prompt,i=e.onConfirm,o=e.onCancel,v=e.cancelButtonText,k=e.confirmButtonText,h=e.shouldRequireInputText,f=void 0!==h&&h,p=e.initialInputTextValue,g=e.inputTextPlaceholder,N=e.hideCancelButton,_=e.bottomLinkText,b=void 0===_?null:_,y=e.bottomLinkURL,C=void 0===y?null:y,S=e.submitting,x=(0,a._)((0,l.useState)(void 0===p?"":p),2),F=x[0],I=x[1];return(0,t.jsxs)("div",{className:d().confirmModal,children:[(0,t.jsx)(u.uT,{className:d().prompt,size:"small",children:n}),f&&(0,t.jsx)("div",{children:(0,t.jsx)(r.Z,{inputClassName:d().inputText,isV2:!0,maxLength:255,value:F,placeholder:void 0===g?"":g,onChange:function(e){return I(e)}})}),(0,t.jsxs)("div",{className:d().buttons,children:[!(void 0!==N&&N)&&(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.z,{variant:"secondary",size:"small",className:d().cancelButtonB,onClick:void 0===o?null:o,children:void 0===v?"No":v})}),(0,t.jsxs)(c.z,{size:"small",className:d().confirmButtonB,onClick:function(){return i({inputText:F})},disabled:f&&s.Z(F),children:[void 0===k?"Yes":k,(void 0===S?null:S)&&(0,t.jsx)("div",{className:d().spinner,children:(0,t.jsx)(m.Z,{})})]})]}),b&&C&&(0,t.jsx)("a",{className:d().bottomLink,href:C,children:b})]})}},87872:function(e,n,i){"use strict";var a=i(73292),t=i(85893),s=i(93967),l=i.n(s),r=i(37479),o=i(79930),d=i(92579),c=i.n(d);n.Z=function(e){var n,i=e.isOpen,s=e.onClick,d=e.wrapperClassName,u=(e.iconClassName,e.closedLeft);return(0,t.jsx)(s?"button":"i",{className:l()(c().chevron,(n={},(0,a._)(n,c().chevronClosed,!i),(0,a._)(n,c().chevronButton,!!s),(0,a._)(n,c().chevronClosedLeft,void 0!==u&&u),n),d),onClick:s,children:(0,t.jsx)(r.g8,{size:"small",color:o.NEUTRAL_GRAY_600})})}},39219:function(e,n,i){"use strict";var a=i(85893),t=i(67814),s=i(93967),l=i.n(s),r=i(64775),o=i(46369),d=i.n(o);n.Z=function(e){var n=e.key,i=e.icon,s=e.onClick,o=e.buttonClass,c=e.type,u=e.color,m=e.tooltip,v=e.tooltipPosition,k=e.disabled,h=void 0!==k&&k,f=e.tooltipWrapperClassName,p=e.overrideShowTooltip,g=e.size,N=m?(0,a.jsx)(r.Z,{icon:i,tooltip:m,color:u,tooltipPosition:v,disabled:h,tooltipWrapperClassName:f,overrideShowTooltip:p}):(0,a.jsx)(t.G,{icon:i,color:u,size:g});return(0,a.jsx)("button",{className:l()(d().button,o),onClick:s,type:c,disabled:h,children:N},n)}},90716:function(e,n,i){"use strict";var a=i(73292),t=i(85893),s=i(93967),l=i.n(s),r=i(44662),o=i(57236),d=i.n(o);n.Z=function(e){var n,i=e.padded,s=e.className,o=e.transparent,c=void 0!==o&&o;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:c?d().transparentBackgroun
1d:""}),(0,t.jsx)("div",{className:l()(d().screen,(n={},(0,a._)(n,d().padded,void 0!==i&&i),(0,a._)(n,d().transparent,c),n),s),children:(0,t.jsx)(r.Z,{})})]})}},80727:function(e,n,i){"use strict";var a=i(73292),t=i(85893),s=i(67814),l=i(93967),r=i.n(l),o=i(39219),d=i(98731),c=i(49467),u=i.n(c),m=i(77113),v=i.n(m),k=i(51436),h=i(26203),f=i(41664),p=i.n(f),g=i(67294),N=i(39737),_=i(62969),b=i(74165),y=i.n(b);n.Z=function(e){var n=e.shouldDisplayBackLink,i=e.shouldShowLightVersion,l=void 0!==i&&i,c=e.shouldLinkToDashboard,m=void 0===c||c,f=(0,g.useContext)(d.Z),b=(0,t.jsx)("div",{className:y().logoContainer,children:(0,t.jsxs)("div",{className:y().logoWrapper,children:[!l&&(0,t.jsx)("img",{className:y().logo,src:v()}),l&&(0,t.jsx)("img",{className:y().logo,src:u()})]})});return(0,t.jsxs)("div",{className:r()(y().header,(0,a._)({},y().lightHeader,l)),children:[(void 0===n||n)&&(0,t.jsx)(p(),{href:N.ZP.clientDashboard(),children:(0,t.jsx)(o.Z,{icon:k.A35,buttonClass:r()(y().backLink,(0,a._)({},y().lightBackLink,l))})}),m&&(0,t.jsx)(p(),{href:N.ZP.clientDashboard(),className:y().logoLink,children:b}),!m&&b,(0,t.jsx)("span",{className:y().infoHintContainer,children:(0,t.jsx)(s.G,{className:y().infoHint,icon:h.sqG,onClick:function(){f.open(function(){return(0,t.jsx)(_.Z,{onClose:f.close})})}})})]})}},65733:function(e,n,i){"use strict";i.d(n,{Z:function(){return d}});var a=i(32207),t=i(85893),s=i(5977),l=i(43563),r=i.n(l);function o(e){var n=e.onClick;return(0,t.jsx)("div",{className:r().modalShadow,onClick:n})}function d(e){var n=e.children,i=e.blocking,l=(0,a._)(e,["children","blocking"]);return n&&(null==l?void 0:l.open)?(0,t.jsxs)(s.Z,{wrapperId:null==l?void 0:l.id,children:[(0,t.jsx)(o,{onClick:void 0!==i&&i?function(){}:null==l?void 0:l.onClose}),(0,t.jsx)("div",{className:r().modal,children:n})]}):null}},41904:function(e,n,i){"use strict";i.d(n,{Z:function(){return y}});var a=i(93128),t=i(85893),s=i(7778),l=i(71689),r=i(67294),o=i(93967),d=i.n(o),c=i(24976),u=i(95396),m=i.n(u),v=i(90982),k=i.n(v),h=function(e){var n=e.checked,i=e.className,a=e.inputClassName;return(0,t.jsxs)("div",{className:d()(k().container,i),children:[(0,t.jsx)("input",{type:"radio",checked:n,className:k().radioInput,readOnly:!0}),(0,t.jsx)("div",{className:d()(k().radio,a),children:n&&(0,t.jsx)("img",{src:m(),alt:"Radio",className:k().radioIcon})})]})},f=i(35163),p=i.n(f),g=function(e){var n=e.children,i=e.label,a=e.subText,s=e.onClick,l=e.labelWrapperClassName,r=e.labelClassName;return(0,t.jsxs)("div",{className:p().container,onClick:s,children:[n,(0,t.jsxs)("div",{className:d()(p().labelWrapper,l),children:[(0,t.jsx)("span",{className:r,children:i}),a&&(0,t.jsx)("div",{className:p().subText,children:a})]})]})},N=function(e){var n=e.checked,i=e.label,a=e.onClick,s=e.labelWrapperClassName,l=e.labelClassName;return(0,t.jsx)(g,{label:i,onClick:a,labelWrapperClassName:s,labelClassName:l,children:(0,t.jsx)(h,{checked:n})})}
1,_=i(54352),b=i.n(_),y=function(e){var n=e.options,i=e.onChange,o=e.value,u=e.className,m=e.optionClassName,v=e.labelClassName,k=e.labelWrapperClassName,h=e.radioClassName,f=e.radioInputClassName,p=(0,a._)((0,r.useState)(s.Z(o)?"":o),2),g=p[0],_=p[1],y=(0,c.Z)(g);return(0,r.useEffect)(function(){void 0!==y&&y!==g&&i&&i(g)},[i,g,y]),(0,r.useEffect)(function(){_(s.Z(o)?"":o)},[o]),(0,t.jsx)("ol",{className:u,children:l.Z(function(e){var n=e.value,i=e.label,a=e.subText;return(0,t.jsx)("li",{className:d()(b().option,m),children:(0,t.jsx)(N,{onClick:function(){return _(n)},checked:n===g,label:i,subText:a,className:h,inputClassName:f,labelWrapperClassName:d()(b().labelWrapper,k),labelClassName:d()(b().label,v)})},n)},n)})}},12026:function(e,n,i){"use strict";var a=i(73292),t=i(93128),s=i(53353),l=i(85893),r=i(92442),o=i(17113),d=i(71689),c=i(93967),u=i.n(c),m=i(67294),v=i(24976),k=i(31334),h=i.n(k),f=i(47964),p=i.n(f);n.Z=function(e){var n,i,c,k=e.value,f=e.options,g=e.onChange,N=e.className,_=e.inputClassName,b=e.optionClassName,y=e.placeholderClassName,C=e.placeholder,S=e.label,x=e.isV2,F=void 0!==x&&x,I=e.includeBlank,j=e.crossfadePlaceholder,A=e.disabled,T=(0,m.useRef)(null),P=!k&&!r.Z(o.Z("value",k),f),L=(0,t._)((0,m.useState)(C),2),w=L[0],D=L[1],E=(0,v.Z)(w);return(0,m.useEffect)(function(){setTimeout(function(){return D(C)},100)},[C]),(0,l.jsxs)("div",{className:u()(p().container,N),children:[F&&C&&P&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:u()(p().placeholder,(n={},(0,a._)(n,p().placeholderFadeIn,w===C),(0,a._)(n,p().placeholderHidden,w!==C),n),y),children:w}),void 0!==j&&j&&E&&(0,l.jsx)("div",{className:u()(p().placeholder,(i={},(0,a._)(i,p().placeholderFadeOut,w===C),(0,a._)(i,p().placeholderVisible,w!==C),i),y),children:E})]}),(0,l.jsx)("select",{ref:T,className:u()((c={},(0,a._)(c,p().select,!0),(0,a._)(c,p().selectV2,F),c),_),disabled:void 0!==A&&A,value:k,onChange:g,"aria-label":void 0===S?"":S,children:d.Z(function(e){return(0,l.jsx)("option",{className:u()(p().option,b),value:e.value,children:e.label},e.value)},void 0!==I&&I?[{value:"",label:""}].concat((0,s._)(f)):f)}),F&&(0,l.jsx)("img",{src:h(),alt:"Down arrow",className:p().arrowIcon})]})}},44662:function(e,n,i){"use strict";var a=i(85893),t=i(67814),s=i(93967),l=i.n(s),r=i(51436),o=i(78947),d=i(51892),c=i.n(d);o.vI.add(r.LM3),n.Z=function(e){var n=e.className;return(0,a.jsx)(t.G,{className:l()(c().spinner,n),icon:"spinner",spin:!0,pulse:!0})}},64775:function(e,n,i){"use strict";var a=i(73292),t=i(85893),s=i(67814),l=i(93967),r=i.n(l),o=i(7778),d=i(53149),c=i.n(d);n.Z=function(e){var n,i=e.icon,l=e.text,d=e.tooltip,u=e.color,m=e.textClassName,v=e.wrapperClassName,k=e.tooltipWrapperClassName,h=e.iconClassName,f=e.tooltipPosition,p=e.stackIcon,g=e.stackIconColor,N=e.disabled,_=void 0!==N&&N,b=e.tooltipDisabled,y=e.overrideShowTooltip,C=(0,t.jsx)(s.G,{style:{color:u},icon:i,className:r()(c().icon,h),disabled:_});return(0,t.jsxs)("span",{className:r()(c().wrapper,v),children:[i?p?(0,t.jsxs)("span",{className:"fa-layers fa-fw",children:[(0,t.jsx)(s.G,{icon:p,color:void 0===g?"black":g}),C]}):C:(0,t.jsx)("span",{className:m,children:l}),d&&!_&&!(void 0!==b&&b)&&(0,t.jsx)("div",{className:r()(c().tooltip,c()[void 0===f?"bottomLeft":f],k,(n={},(0,a._)(n,c().showTooltip,!o.Z(y)&&y),(0,a._)(n,c().hideTooltip,!o.Z(y)&&!y),n)),children:d})]})}},63953:function(e,n,i){"use strict";i.d(n,{I:function(){return a},R:function(){return t}});var a="session-token",t="payment-token"},50717:function(e,n,i){"use strict";var a=(0,i(67294).createContext)({pusher:null,justReconnected:!1,debug:!1});n.Z=a},30470:function(e,n,i){"use strict";i.d(n,{C:function(){return A}});var a=i(30137),t=i(76341),s=i(67462),l=i(32207),r=i(97582),o=i(85893),d=i(67294),c=i(56429),u=i(53768),m=i(48702),v=i(48216),k=i(23795),h=i(99066),f=i(63144),p=i.n(f),g=i(62286),N=i(65275),_=i(63953),b=i(82964),y=i(33168),C=i(65032),S=new Set(["127.0.0.1","localhost"]),x=i(2147),F=null,I=N.Z.getPlugin("react").createErrorBoundary(d),j=new c.u({uri:function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!n||"string"!=typeof e)return e;try{var i=new URL(e);if("http:"===i.protocol&&S.has(i.hostname)&&"/api/qa-dashboard-graphql"===i.pathname)return"".concat(i.pathname).concat(i.search).concat(i.hash)}catch(e){}return e}(C.gJ.production),fetch:p()});function A(e){var n,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=d.ssr,m=function(n){var i=n.apolloClient,a=n.apolloState,s=(0,l._)(n,["apolloClient","apolloState"]),r=i||T(a);return(0,o.jsx)(I,{FallbackComponent:y.default,children:(0,o.jsx)(u.e,{client:r,children:(0,o.jsx)(e,(0,t._)({},s))})})};return(void 0===c||c||e.getInitialProps)&&(m.getInitialProps=(n=(0,a._)(function(n){var a,l,d,c;return(0,r.Jh)(this,function(r){switch(r.label){case 0:if(a=n.AppTree,l=n.apolloClient=T(void 0,n),d={},!e.getInitialProps)return[3,2];return[4,e.getInitialProps({apolloClient:l,ctx:n})];case 1:d=r.sent(),r.label=2;case 2:return[3,7];case 3:return r.trys.push([3,6,,7]),[4,Promise.all([i.e(9774),i.e(2244)]).then(i.bind(i,52244))];case 4:return[4,(0,r.sent().getDataFromTree)((0,o.jsx)(a,{pageProps:(0,s._)((0,t._)({},d),{apolloClient:l})}))];case 5:return r.sent(),[3,7];case 6:return console.error("Error while running `getDataFromTree`",r.sent()),[3,7];case 7:return c=l.cache.extract(),[2,(0,s._)((0,t._)({},d),{apolloState:c})]}})}),function(e){return n.apply(this,arguments)})),m}var T=function(e,n){return F||(F=P(e,n)),F},P=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,t=(e=(0,a._)(function(e){var n;return(0,r.Jh)(this,function(a){return n=i&&i.overrideCookies&&i.overrideCookies[_.I]||(0,g.parseCookies)(i)[_.I],e.setContext({headers:{"Cache-Control":"no-cache",authorization:n?"Bearer ".concat(n):"",local_utc_offset:(0,b.k_)()}}),[2,e]})}),function(n){return e.apply(this,arguments)}),s=new m.i(function(e,n){return n(e).map(function(n){var i=e.getContext().response.headers;if(i&&i.get("X-Version")){var a=i.get("X-Version"),t=localStorage.getItem("app_version");t&&"null"!==t?a!==t&&(console.log("New app release detected! Setting refresh..."),localStorage.setItem("app_version",null),localStorage.setItem("pending_refresh","true")):localStorage.setItem("app_version",a)}return n})}),l=new m.i(function(e,n){return new v.y(function(i){var a;return Promise.resolve(e).then(t).then(function(e){a=n(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})}).catch(i.error.bind(i)),function(){a&&a.unsubscribe()}})});return new k.f({name:"Web",version:"1.2.7",ssrMode:!1,link:m.i.from([s,l,j]),cache:new h.h({typePolicies:{Query:{fields:{workout:{keyArgs:["id"],read:function(e,n){var i=n.args;return(0,n.toReference)({__typename:"Workout",id:i.id})}},client:{keyArgs:["id"],read:function(e,n){var i=n.args;return(0,n.toReference)({__typename:"Client",id:i.id})}}}},BridgePayer:{keyFields:["name"]}},possibleTypes:x}).restore(n||{})})}},24976:function(e,n,i){"use strict";var a=i(67294);n.Z=function(e){var n=(0,a.useRef)();return(0,a.useEffect)(function(){n.current=e}),n.current}},94105:function(e,n,i){"use strict";var a=i(53353),t=i(67294),s=i(50717);n.Z=function(e,n,i,l){var r=(0,t.useContext)(s.Z),o=r.subscribe,d=r.unsubscribe,c=r.debug,u=r.justReconnected,m=(0,t.useMemo)(function(){return e?o(e):null},[o,e]),v=(0,t.useCallback)(function(){for(var t,s=arguments.length,l=Array(s),r=0;r<s;r++)l[r]=arguments[r];
1i&&i.apply(void 0,(0,a._)(l)),c&&(t=console).log.apply(t,[e,n].concat((0,a._)(l)))},[i,e,c,n]);return(0,t.useEffect)(function(){return function(){e&&d(e)}},[e,d]),(0,t.useEffect)(function(){return m&&m.bind(n,v),function(){m&&m.unbind(n,v)}},[m,n,v]),(0,t.useEffect)(function(){u&&l&&setTimeout(l,0)},[u]),r}},8436:function(e,n,i){"use strict";var a=i(93128),t=i(67294);n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.onFocus,i=e.onBlur,s=(0,a._)((0,t.useState)(!0),2),l=s[0],r=s[1];return(0,t.useEffect)(function(){r(document.hasFocus());var e=function(){"function"==typeof n&&n(),r(!0)},a=function(){"function"==typeof i&&i(),r(!1)};return window.addEventListener("focus",e),window.addEventListener("blur",a),function(){window.removeEventListener("focus",e),window.removeEventListener("blur",a)}},[]),l}},33168:function(e,n,i){"use strict";i.r(n);var a,t=i(30137),s=i(76341),l=i(67462),r=i(97582),o=i(85893),d=i(67294),c=i(12918),u=i.n(c),m=i(11163),v=i.n(m),k=i(40546),h=i(65275),f=i(62947),p=function(e){var n=e.title,i=e.statusCode;return(0,d.useEffect)(function(){var e;(e=(0,t._)(function(){var e,n;return(0,r.Jh)(this,function(i){switch(i.label){case 0:if(e=new Date(localStorage.getItem("last_error_date")||null),k.differenceInDays(new Date,e)>0&&(localStorage.removeItem("refresh_error_count"),localStorage.removeItem("last_error_date")),!((n=Number(localStorage.getItem("refresh_error_count"))||0)<3))return[3,2];return[4,(0,f._)(1e4*n)];case 1:i.sent(),n++,localStorage.setItem("refresh_error_count",String(n)),localStorage.setItem("last_error_date",String(new Date)),v().reload(),i.label=2;case 2:return[2]}})}),function(){return e.apply(this,arguments)})().catch(console.error)},[]),(0,o.jsx)(u(),{title:n,statusCode:i||500})};p.getInitialProps=(a=(0,t._)(function(e){return(0,r.Jh)(this,function(n){switch(n.label){case 0:if(!e.err)return[3,2];return[4,(0,h.C)(e.err)];case 1:n.sent(),n.label=2;case 2:return[2,(0,l._)((0,s._)({},u().getInitialProps(e)),{error:e.err})]}})}),function(e){return a.apply(this,arguments)}),n.default=p},85318:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return nX}});var a=i(85893),t=i(78947),s=i(51436),l=i(73292),r=i(76341),o=i(67462),d=i(93128),c=i(53353),u=i(6812),m=i(50319),v=i(90716),k=i(80727),h=i(72085),f=i(91296),p=i.n(f),g=i(11163),N=i.n(g),_=i(7778),b=i(43973),y=i(26836),C=i(44603),S=i(53973),x=i(52190),F=i(17113),I=i(50194),j=i(71689),A=i(13946),T=i(8744),P=i(92442),L=i(32199),w=i(67294),D=i(39737),E=i(30137),Z=i(97582),V=i(93967),B=i.n(V),M=i(69527),R=i(63195),O=i(41837),U=i(8323),q=i(98731),G=i(40546),W=i.n(G),z=i(59936),H=i(12026),$=i(73075),K=i(31885),Y=i(91097),Q=i(74656),J=i(46876),X=i(91642),ee=i(1748),en=i(33849),ei=i.n(en),ea=function(e){var n=e.coachManagers,i=e.value,t=e.onChange,s=void 0===t?function(){}:t,l=e.shouldIncludeAnyOptions,r=$.Z(K.Z(_.Z,[void 0===l||l?{value:"undefined",label:"Any"}:null,{value:"null",label:"None"}]),j.Z(function(e){var n=e.id,i=e.user,a=i.firstName,t=i.lastName;return{value:n,label:"".concat(a," ").concat(t)}},Y.Z(Q.Z(J.Z,C.Z(["user","firstName"])))(X.Z(function(e){var n=e.user,i=n.firstName,a=n.lastName;return i&&a},n||[]))));return null==i&&(i=ee.Z(i)),(0,a.jsx)(H.Z,{inputClassName:ei().select,value:i,options:r,onChange:function(e){var n=e.target.value;return s("undefined"===n?void 0:"null"===n?null:n)}})},et=i(93568),es=i(32046),el=i.n(es),er=function(e){var n=e.isDeactivated,i=e.onConfirm;return(0,a.jsxs)("div",{className:el().modal,children:[(0,a.jsxs)("h2",{className:el().modalHeader,children:["Are you sure you want to ",n?"Activate":"Deactivate"," ","this coach?"]}),(0,a.jsx)("div",{className:el().buttonContainer,children:(0,a.jsx)("button",{className:el().button,onClick:i,children:"Confirm"})})]})},eo=i(47538),ed=i.n(eo),ec=function(e){var n=e.coach,i=e.onUpdateOnboardingRequirement,t=void 0===i?function(){}:i,s=(0,w.useContext)(q.Z),o=I.Z([],["onboardingProgress","onboardingRequirements"],void 0===n?{}:n),d=!!y.Z("completedAt",P.Z(F.Z("name","deactivatedAt"),o)),c=function(){t({onboardingRequirement:"deactivatedAt",date:d?null:new Date}),s.close()};return(0,a.jsxs)("div",{className:ed().container,children:[et.Z(j.Z)(function(e,n){var i=e.name,s=e.label,r=e.isEnabled,o=e.isOptional,d=e.isDisabled,c=(e.isHidden,e.completedAt);return(0,a.jsxs)("div",{className:ed().checkboxRow,children:[(0,a.jsx)("input",{className:ed().checkbox,type:"checkbox",name:i,value:i,checked:c||!1,disabled:d||!r,onChange:function(e){var n=e.target;return t({onboardingRequirement:n.value,date:n.checked?new Date:null})}}),(0,a.jsxs)("div",{className:B()(ed().checkboxLabel,(0,l._)({},ed().enabledLabel,r&&!o)),children:["".concat(o?"Optional: ":"").concat(s),c&&(0,a.jsx)("div",{className:ed().completedAtLabel,children:"(completed ".concat(W().format(c," MM/DD/YY"),")")})]})]},"checkbox-".concat(n))},K.Z(y.Z("isHidden"),o)),(0,a.jsx)("div",{className:B()(ed().row,ed().alignColumnBottom),children:(0,a.jsx)("button",{className:ed().activationButton,onClick:function(){return s.open(function(e){return(0,a.jsx)(er,(0,r._)({},e))},{isDeactivated:d,onConfirm:c})},children:"".concat(d?"Activate":"Deactivate"," Coach")})})]})},eu=i(82964),em=i(8453),ev=i.n(em),ek=function(e){var n,i,t,s,l,c=e.coach,u=e.coachManagers,m=e.coachLevels,v=e.onChangeManagerId,k=e.onCh
1angeSuccessManagerId,f=e.onUpdateMarketplacePriorityOverride,p=void 0===f?function(){}:f,g=e.onUpdateMarketplacePausedUntil,N=void 0===g?function(){}:g,y=e.onUpdateTargetClientCount,C=void 0===y?function(){}:y,S=e.onChangeHasAccessToMarketplace,x=e.onChangeStateLicenseTargetingExempt,F=e.onUpdateOnboardingRequirement,I=e.onChangeIsAcceptingNewClients,j=e.onChangeIsOfferingLiveVideoWorkouts,A=e.onChangeLevelId,T=void 0===A?function(){}:A,P=e.onChangeEmploymentType,L=void 0===P?function(){}:P,D=e.destroyCoachStripeAccount,V=e.destroyingCoachStripeAccount,W=e.handleCoachUpdated,H=(0,d._)((0,w.useState)(null),2),$=H[0],K=H[1],Y=(0,d._)((0,w.useState)(null),2),Q=Y[0],J=Y[1],X=(0,w.useContext)(q.Z),ee=(null===(s=(0,h.Z)().data)||void 0===s?void 0:null===(t=s.me)||void 0===t?void 0:null===(i=t.user)||void 0===i?void 0:i.coach)||{},en=ee.isSuperAdmin,ei=ee.isTopLevelAdmin,et=c||{},es=et.id,el=et.marketplacePriorityOverride,er=et.targetClientCount;if((0,w.useEffect)(function(){K(el)},[es,el]),(0,w.useEffect)(function(){J(er)},[es,er]),!c)return null;var eo=c.onboardingManagerId,ed=c.managerId,em=c.marketplacePausedUntil,ek=c.isAcceptingNewClients,eh=c.isOfferingLiveVideoWorkouts,ef=c.levelId,ep=c.employmentType,eg=c.stripeUserId,eN=c.hasAccessToMarketplace,e_=c.schedulerConfigurations,eb=c.activeClientCount,ey=c.isInsuranceDietitian,eC=c.stateLicenseTargetingExempt,eS=$!==el,ex=Q!==er,eF=function(e){return function(){"pause"===e?N(G.addDays(new Date,1)):N(null)}},eI=(n=(0,E._)(function(){return(0,Z.Jh)(this,function(e){switch(e.label){case 0:if(V)return[2];if(!window.confirm("Are you sure you want to delete this coach's Stripe account and prompt them to setup a new one?"))return[3,2];return[4,D({variables:{coachId:es}})];case 1:e.sent(),W({updatedCoach:(0,o._)((0,r._)({},c),{stripeUserId:null})}),e.label=2;case 2:return[2]}})}),function(){return n.apply(this,arguments)});return(0,a.jsxs)("div",{className:ev().container,children:[(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Coach Manager:"}),(0,a.jsx)("div",{children:(0,a.jsx)(ea,{coachManagers:u,value:eo,onChange:void 0===v?function(){}:v,shouldIncludeAnyOptions:!1})})]}),(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Coach Success Manager:"}),(0,a.jsx)("div",{children:(0,a.jsx)(ea,{coachManagers:u,value:ed,onChange:void 0===k?function(){}:k,shouldIncludeAnyOptions:!1})})]}),ey?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().priorityColumn,ev().centerColumnVertically),children:"Has Access to Marketplace:"}),(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnVertically),children:(0,a.jsx)(z.default,{onChange:void 0===S?function(){}:S,checked:eN})})]}),(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().priorityColumn,ev().centerColumnVertically),children:"Un-reserve state-licensed coach:"}),(0,a.jsxs)("div",{className:B()(ev().column,ev().centerColumnVertically),children:[(0,a.jsx)(z.default,{onChange:void 0===x?function(){}:x,checked:eC}),(0,a.jsx)(O.i0,{variant:"caption",children:"Allow this coach to match clients outside states reserved in Contentful."})]})]})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Has Access to Marketplace:"}),(0,a.jsx)("div",{children:eN?"Yes":"No"})]}),(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().priorityColumn,ev().centerColumnVertically),children:"Accept Marketplace Clients:"}),(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnVertically),children:(0,a.jsx)(z.default,{onChange:void 0===I?function(){}:I,checked:ek})})]})]}),(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().priorityColumn,ev().centerColumnVertically),children:"Accept live workout clients:"}),(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnVertically),children:(0,a.jsx)(z.default,{onChange:void 0===j?function(){}:j,checked:eh})})]}),(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnVertically,ev().flexNone),children:"Marketplace Priority Override:"}),(0,a.jsxs)("div",{className:B()(ev().row,ev().flex1,ev().marketplacePriorityOverrideRow),children:[(0,a.jsx)("div",{className:ev().column,children:(0,a.jsx)("input",{className:ev().marketplacePriorityOverrideInput,disabled:!!em,type:"number",pattern:"^(?:[0-9]+|)$",value:_.Z($)?"":$,placeholder:"No override",onChange:function(e){var n=e.target.value;return K(b.Z(n)?null:Number(n))}})}),(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnHorizontally),children:(0,a.jsx)("button",{className:ev().smallButton,disabled:!eS||!!em,onClick:function(){X.open(function(){return(0,a.jsx)(R.Z,{prompt:"Are you sure you want to override this coach's level?",cancelButtonText:"Cancel",confirmButtonText:"Yes",onCancel:X.close,onConfirm:function(){p($),X.close()}})})},children:"Update"})})]})]}),(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Active Clients:"}),(0,a.jsx)("div",{children:null!=eb?eb:0})]}),(0,a.jsxs)("div",{className:B()(ev().row,ev().wrap),children:[(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnVertically,ev().flexNone),children:"Target Client Count:"}),(0,a.jsxs)("div",{className:B()(ev().row,ev().flex1,ev().marketplacePriorityOverrideRow),children:[(0,a.jsx)("div",{className:ev().column,children:(0,a.jsx)("input",{className:ev().marketplacePriorityOverrideInput,type:"number",min:1,max:120,step:1,value:_.Z(
1Q)?"":Q,placeholder:"Not set",onChange:function(e){var n=e.target.value;if(b.Z(n)){J(null);return}var i=Number(n);!isNaN(i)&&Number.isInteger(i)&&J(i)}})}),(0,a.jsx)("div",{className:B()(ev().column,ev().centerColumnHorizontally),children:(0,a.jsx)("button",{className:ev().smallButton,disabled:!ex,onClick:function(){C(Q)},children:"Update"})})]})]}),(0,a.jsx)("div",{className:ev().row,children:(0,a.jsxs)("div",{children:[(0,a.jsx)(O.i0,{tag:"label",display:"block",mb:.5,children:"Exclude Coach from Marketplace for 24 hours?"}),(0,a.jsx)(U._G,{visible:!!em,children:(0,a.jsxs)(O.i0,{color:"textSecondary",tag:"p",children:["Excluded until"," ",null===(l=(0,eu.wG)(em))||void 0===l?void 0:l.toLocaleString()]})}),(0,a.jsxs)("div",{className:ev().buttonGroup,children:[(0,a.jsx)(U.zx,{size:"small",variant:"secondary",onClick:eF("pause"),children:"Exclude Coach"}),(0,a.jsx)(U.zx,{size:"small",variant:"secondary",disabled:!em,onClick:eF("unpause"),children:"Include Coach"})]})]})}),(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Coach Level:"}),(0,a.jsx)("div",{children:(0,a.jsx)(M.Z,{coachLevels:m,value:ef,isDisabled:10===parseInt(ef,10)||9===parseInt(ef,10)||!en,onChange:function(e){X.open(function(){return(0,a.jsx)(R.Z,{prompt:"Are you sure you want to override this coach's level?",cancelButtonText:"Cancel",confirmButtonText:"Yes",onCancel:X.close,onConfirm:function(){T(e),X.close()}})})}})})]}),ei&&(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Employment Type:"}),(0,a.jsx)("div",{children:(0,a.jsxs)("select",{value:ep||"1099",onChange:function(e){return L(e.target.value)},children:[(0,a.jsx)("option",{value:"1099",children:"1099 (contractor)"}),(0,a.jsx)("option",{value:"w2",children:"W2 (employee)"})]})})]}),(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Stripe Account:"}),(0,a.jsx)("div",{children:eg?(0,a.jsx)("a",{className:ev().link,rel:"noreferrer",target:"_blank",href:"https://dashboard.stripe.com/connect/accounts/".concat(eg),children:"Connected"}):"Not Connected"})]}),!!eg&&(0,a.jsx)("div",{className:ev().rowAction,children:(0,a.jsx)(U.zx,{auto:!1,size:"small",variant:"secondary",disabled:V,onClick:eI,children:"Delete Stripe Account"})}),(0,a.jsxs)("div",{className:ev().row,children:[(0,a.jsx)("div",{className:ev().priorityColumn,children:"Kickoff Calendar:"}),(0,a.jsx)("div",{children:(null==e_?void 0:e_.length)?"Connected":"Not Connected"})]}),(0,a.jsx)("div",{className:ev().row,children:(0,a.jsx)("div",{className:ev().updateStatusHeader,children:"Update Status"})}),(0,a.jsx)("div",{className:ev().row,children:(0,a.jsx)(ec,{coach:c,onUpdateOnboardingRequirement:void 0===F?function(){}:F})})]})},eh=i(89613),ef=i(25494),ep=i(57831),eg=i(37078),eN=i(60541),e_=i(14595),eb=i(78234),ey=[{id:114,question:"Certifications"},{id:125,question:"Other certifications"},{id:112,question:"Nutrition expertise"},{id:113,question:"Special Expertise"},{id:137,question:"Why should a client train with you?"},{id:138,question:"Describe your approach to client programming"}],eC={5035:{question:"State License Certificate"},5026:{question:"State License Certificate (second license)"},5193:{question:"State License Certificate (third license)"},5027:{question:"Liability Insurance Certificate"},5297:{question:"Dietetic degree transcript or Diploma"},5295:{question:"Resume"}},eS=i(24367),ex=i.n(eS),eF=[{value:-11,label:"Samoa (GMT-11:00)"},{value:-10,label:"Hawaii (GMT-10:00)"},{value:-9,label:"Alaska (GMT-09)"},{value:-8,label:"Pacific Time (GMT-08)"},{value:-7,label:"Mountain Time (GMT-07)"},{value:-6,label:"Central Time (GMT-06)"},{value:-5,label:"Eastern Time (GMT-05)"},{value:-4,label:"Atlantic Time (GMT-04)"},{value:-3,label:"Brazil (GMT-03)"},{value:-2,label:"Mid-Atlantic (GMT-02)"},{value:-1,label:"Azores (GMT-01)"},{value:0,label:"London (GMT+00)"},{value:1,label:"Berlin (GMT+01)"},{value:2,label:"Africa/Johannesburg (GMT+02)"},{value:3,label:"Nairobi (GMT+03)"},{value:4,label:"St. Petersburg (GMT+04)"},{value:5,label:"Islamabad (GMT+05)"},{value:6,label:"Dhaka (GMT+06)"},{value:7,label:"Bangkok (GMT+07)"},{value:8,label:"Beijing (GMT+08)"},{value:9,label:"Tokyo (GMT+09)"},{value:10,label:"Sydney (GMT+10)"},{value:11,label:"New Caledonia (GMT+11)"},{value:12,label:"Auckland (GMT+12)"},{value:13,label:"Nuku'alofa (GMT+13)"}],eI=i(67648),ej=i(61746),eA=i(94105),eT=i(86068),eP=i.n(eT),eL=i(70974),ew=i(82887),eD=i(65733),eE=i(44662),eZ=i(87536),eV=function(e){var n,i=e.coachId,t=e.onClose,s=(0,eZ.cI)({defaultValues:{credentials:{}}}),l=s.register,o=s.handleSubmit,c=s.reset,v=s.watch,k=s.formState.isSubmitting,h=v("credentials"),f=(0,d._)((0,w.useState)(null),2),p=f[0],g=f[1],N=(0,u.a)(eL.getCoachPayerCredentials,{variables:{coachId:i},onCompleted:function(e){var n,i=(null==e?void 0:null===(n=e.coach)||void 0===n?void 0:n.payerCredentials)||[];i.length>0&&c({credentials:i.reduce(function(e,n){return e["".concat(n.payer.id,"-").concat(n.state.id)]=!0,e},{})})}}),_=N.data,b=N.loading,y=(0,d._)((0,m.D)(ew.updateCoachPayerCredentials,{refetchQueries:[{query:eL.getCoachPayerCredentials,variables:{coachId:i}}]}),2),C=y[0],S=y[1].loading,x=(null==_?void 0:_.payers)||[],F=function(e,n,i){var a=n.reduce(function(n,a){return n["".concat(e,"-").concat(a)]=i,n},{});c({credentials:(0,r._)({},h,a)})},I=(n=(0,E._)(function(e){var n;return(0,Z.Jh)(this,function(a){switch(a.label){case 0:g(null),n=Object.entries(e.credentials).reduce(function(e,n){var i=(0,d._)(n,2),a=i[0];if(i[1]){var t=(0,d._)(a.split("-"),2),s=t[0],l=t[1];e.push({payerId:parseInt(s),stateId:parseInt(l)}
1)}return e},[]),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,C({variables:{coachId:i,credentials:n}})];case 2:return a.sent(),t(),[3,4];case 3:return g(a.sent().message),[3,4];case 4:return[2]}})}),function(e){return n.apply(this,arguments)});return(0,a.jsx)(eD.Z,{open:!0,onClose:t,children:(0,a.jsxs)("form",{onSubmit:o(I),className:eP().formContainer,children:[(0,a.jsx)("div",{className:eP().modalContent,children:b?(0,a.jsx)(eE.Z,{}):(0,a.jsx)("div",{className:eP().scrollableContent,children:x.map(function(e){var n,i=e.availableStates.map(function(e){return e.id}),t=(n=e.id,h?Object.entries(h).reduce(function(e,i){var a=(0,d._)(i,2),t=a[0];return a[1]&&t.startsWith("".concat(n,"-"))?e+1:e},0):0),s=i.length,o=t>0&&t<s;return(0,a.jsxs)("div",{className:eP().payerSection,children:[(0,a.jsx)("div",{className:eP().payerName,children:(0,a.jsxs)("label",{className:eP().selectAllLabel,children:[(0,a.jsx)("input",{type:"checkbox",checked:t===s,ref:function(e){e&&(e.indeterminate=o)},onChange:function(n){return F(e.id,i,n.target.checked)}}),(0,a.jsxs)("span",{children:[e.name," (",t,")"]})]})}),(0,a.jsx)("div",{className:eP().stateGrid,children:e.availableStates.map(function(n){var i="credentials.".concat(e.id,"-").concat(n.id);return(0,a.jsxs)("label",{className:eP().stateCheckbox,children:[(0,a.jsx)("input",(0,r._)({type:"checkbox"},l(i))),(0,a.jsx)("span",{children:n.abbreviation})]},n.id)})})]},e.id)})})}),!b&&(0,a.jsx)("button",{type:"submit",className:eP().saveButton,disabled:k||S,children:k||S?"Saving...":"Save"}),p&&(0,a.jsx)("div",{className:eP().error,children:p})]})})},eB=".doc",eM=function(e){var n,i=(0,r._)({},e);return(null==i?void 0:null===(n=i.url)||void 0===n?void 0:n.includes(eB))&&(i.url=null==i?void 0:i.url.replace("image/","raw/").replace(/(.doc\w+).doc\w+$/i,"$1")),null==i?void 0:i.url},eR=function(e){var n,i,t=e.coach,s=e.surveyQuestionResponses,l=t.id,r=t.yearStartedTrainingPayingClients,o=t.certificationImageFile,c=t.identificationImageFile,m=t.user,v=m.email,k=m.zipCode,h=m.phoneNumber,f=m.utcOffset,p=t.cmsSurveyQuestionResponses,g=void 0===p?[]:p,N=(0,d._)((0,w.useState)(!1),2),C=N[0],S=N[1],x=eM(o),I=(0,u.a)(ej.getCoachBioImage,{variables:{coachId:l},ssr:!1}),A=null===(n=I.data)||void 0===n?void 0:n.coachBioImageFile,T=j.Z(function(e){var n=e.id;return{id:n,question:e.question,responses:j.Z(function(e){var n=e.surveyQuestionResponseId;return e.responseValue||y.Z("text",P.Z(F.Z("id",parseInt(n)),s))},X.Z(F.Z("surveyQuestionId",ee.Z(n)),g))}},ey),L=(0,a.jsx)(a.Fragment,{children:et.Z(j.Z)(function(e,n){var i=e.id,t=e.question,s=e.responses;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{children:[t,":"]}),(0,a.jsx)("br",{}),et.Z(j.Z)(function(e,n){return(0,a.jsxs)("span",{className:ex().response,children:["- ",e,(0,a.jsx)("br",{})]},"survey-question-".concat(i,"-response-").concat(n))},s),n<e_.Z(T)-1&&(0,a.jsx)("br",{})]},"survey-question-".concat(i))},T)}),D=ep.Z("","responseValue",P.Z(F.Z("surveyQuestionId",ee.Z(186)),g)),E=_.Z(D)||b.Z(D)?"":J.Z("".concat(eb.Z("http",D)?"":"https://").concat(D)),Z=A&&A.processing?"coach-bio-image-".concat(l,"-1"):null;return(0,eA.Z)(Z,"done-processing-coach-bio-image",function(){return I.refetch({coachId:l,forceUpdate:!1})}),(0,a.jsxs)("div",{className:ex().container,children:["Email: ",(0,a.jsx)("span",{className:ex().response,children:v}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Timezone:"," ",(0,a.jsx)("span",{className:ex().response,children:ep.Z("N/A (GMT".concat(f>0?"+":"").concat(f,")"),"label",P.Z(F.Z("value",f),eF))}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Calendly link:"," ",E&&(0,a.jsx)("a",{className:ex().response,href:E,target:"_blank",rel:"noopener noreferrer",children:E}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),t.isInsuranceDietitian&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{className:ex().button,onClick:function(){S(!0)},children:"View / Edit Credentials"}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{})]}),L,(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Phone number: ",(0,a.jsx)("span",{className:ex().response,children:h}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Year started training paying clients:"," ",(0,a.jsx)("span",{className:ex().response,children:r}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}
1),"ZIP code: ",(0,a.jsx)("span",{className:ex().response,children:k}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),"Bio slide:"," ",A?A.processing?(0,a.jsx)("span",{className:ex().response,children:"Processing image..."}):(0,a.jsx)("img",{alt:"Bio",className:ex().image,src:A.url}):(0,a.jsx)("span",{className:ex().response,children:I.loading?"Loading...":"None"}),A&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsx)("button",{className:ex().button,onClick:function(){(0,eI.T)("bio-image/".concat(l))},children:"Copy bio slide"}),(0,a.jsx)("br",{}),(0,a.jsx)("button",{className:ex().button,onClick:function(){I.refetch({coachId:l,forceUpdate:!0})},children:"Update bio slide"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:["Certification image:",(0,a.jsx)("br",{}),x?(0,a.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:(null==x?void 0:x.includes(eB))?(0,a.jsx)("span",{children:"Download Certification"}):(0,a.jsx)("img",{alt:"Certification",className:ex().image,src:x})}):(0,a.jsx)("span",{className:ex().response,children:"None"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:["Identification image:",(0,a.jsx)("br",{}),c?(0,a.jsx)("a",{href:c.url,target:"_blank",rel:"noopener noreferrer",children:(null===(i=c.mimetype)||void 0===i?void 0:i.startsWith("image/"))?(0,a.jsx)("img",{alt:"Identification",className:ex().image,src:c.url}):(0,a.jsx)("span",{children:"View Identification File"})}):(0,a.jsx)("span",{className:ex().response,children:"None"})]}),(0,a.jsx)("br",{}),(0,a.jsx)("div",{children:et.Z(j.Z)(function(e){var n;return(0,a.jsxs)(w.Fragment,{children:[(0,a.jsx)("br",{}),(0,a.jsxs)("div",{children:[eC[e.surveyQuestionId].question,(0,a.jsx)("br",{}),(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:(null===(n=e.mimetype)||void 0===n?void 0:n.startsWith("image/"))?(0,a.jsx)("img",{alt:eC[e.surveyQuestionId].question,className:ex().image,src:e.url}):(0,a.jsx)("span",{children:"View ".concat(eC[e.surveyQuestionId].question," File")})})]})]},"rd-image-".concat(e.id))},t.rdImages)}),C&&(0,a.jsx)(eV,{coachId:l,onClose:function(){return S(!1)}})]})},eO=i(41664),eU=i.n(eO),eq=i(88580),eG=i.n(eq),eW=function(e){var n=e.coach,i=n.id,t=n.user.username;return(0,a.jsx)("div",{className:eG().container,children:(0,a.jsxs)("div",{className:eG().row,children:[(0,a.jsx)("div",{className:eG().link,children:(0,a.jsx)(eU(),(0,o._)((0,r._)({},D.ZP.coachSignUpSurvey({coachId:i})),{target:"_blank",children:(0,a.jsx)("button",{className:eG().button,children:"Survey Link"})}))}),(0,a.jsx)("div",{className:eG().link,children:(0,a.jsx)(eU(),(0,o._)((0,r._)({},D.ZP.coachProfileReview({username:t})),{target:"_blank",children:(0,a.jsx)("button",{className:eG().button,children:"Profile Review"})}))})]})})},ez=i(90246),eH=i(21571),e$=i.n(eH),eK=function(e){var n=e.coach,i=e.onUpdateNotes,t=void 0===i?function(){}:i,s=(0,d._)((0,w.useState)(""),2),l=s[0],r=s[1],o=(n||{}).notes,c=!_.Z(l)&&!b.Z(ez.Z(l))&&l!==o;return(0,w.useEffect)(function(){r(o||"")},[n]),(0,a.jsxs)("div",{className:e$().container,children:[(0,a.jsxs)("div",{className:e$().row,children:[(0,a.jsx)("div",{className:e$().notesLabel,children:"Notes:"}),(0,a.jsx)("div",{className:e$().notesContainer,children:(0,a.jsx)("textarea",{className:e$().notes,value:l,onChange:function(e){return r(e.target.value)},rows:25})})]}),(0,a.jsx)("div",{className:e$().row,children:(0,a.jsx)("button",{className:e$().button,disabled:!c,onClick:function(){return t(l)},children:"Update notes"})})]})},eY=i(37479),eQ=i(75818),eJ=i.n(eQ);function eX(e){var n,i,t=e.coach,s=(0,d._)((0,w.useState)({}),2),o=s[0],c=s[1],u=null==t?void 0:null===(n=t.clientRecruiterProofs)||void 0===n?void 0:n.images.reduce(function(e,n){return e[n.type]||(e[n.type]=[]),e[n.type].push(n),e[n.type].sort(function(e,n){return new Date(n.createdAt)-new Date(e.createdAt)}),e},{});return(0,a.jsxs)("div",{className:eJ().proofsContainer,children:[(0,a.jsx)("h2",{className:eJ().header,children:"Client Recruiter Proofs"}),(0,a.jsxs)("div",{children:[Object.keys(u).map(function(e,n){var i=u[e];return(0,a.jsxs)("div",{className:eJ().collapseContainer,children:[(0,a.jsxs)("span",{className:eJ().collapseLabel,onClick:function(){var e=(0,r._)({},o);e[n]?e[n]=!e[n]:e[n]=!0,c(e)},children:[e.replace("_"," "),(0,a.jsx)(eY.v4,{className:B()(eJ().chevron,(0,l._)({},eJ().chevronOpen,o[n]))})]}),(0,a.jsx)(U.UO,{visible:o[n],children:(0,a.jsx)("div",{className:eJ().content,children:i.map(function(e){return(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{children:(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:e.url,alt:e.type,className:eJ().img})})}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:eJ().date,children:W().format(e.createdAt,"MM/DD/YY")})})]},e.id)})})})]},e)}),!(null==t?void 0:null===(i=t.clientRecruiterProofs)||void 0===i?void 0:i.images.length)&&(0,a.jsx)("span",{children:"No Images Uploaded"})]})]})}var e0=i(58194),e1=i.n(e0),e3=function(e){var n=e.coach,i=e.coachLevels,t=e.coachAuditTypesWithLevelIds,s=e.isLoading,l=e.onUpdateNotes,r=e.onSnoozeClientProblems,o=e.onUpdateManualProblem,c=e.onCreateAudit,u=e.onUpdateAudit,m=e.onDismissClientProblems,k=(0,d._)((0,w.useState)(null),2),h=k[0],f=k[1];if((0,w.useEffect)(function(){var e,i=(e=(0,E._)(function(e){var n,i,a;return(0,Z.Jh)(this,function(e){switch(e.label){case 0:return[4,eh.Z.getEntries({content_type:"surveyQuestionResponse",limit:500})];case 1:return i=(n=e.sent()).items,a=n.total,!eg.XK&&a>i.length&&console.warn("Some items are missing due to paging. The query returned ".concat(i.length," out of ").concat(a," items")),f(i.map(function(e){var n=e.fields;return{id:n.id,text:n.text}})),[2]}})}),function(n){return e.apply(this,arguments)});n&&!h&&i()},[n]),!n)return(0,a.jsx)("div",{className:e1().container,children:(0,a.jsx)("div",{className:e1().ftux,children:"Select a coach from the list on the left"})});if(s||_.Z(h))return(0,a.jsx)(v.Z,{});var p=n.id,g=n.levelId,N=n.user,b=N.id,y=N.firstName,C=N.lastName,S=N.username;return(0,a.jsxs)("div",{className:e1().container,children:[(0,a.jsxs)("div",{className:e1().headerRow,children:[(0,a.jsxs)("div",{className:B()(e1().row,e1().headerTopRow),children:[(0,a.jsx)("div",{className:e1().name,children:"".concat(y," ").concat(C," (").concat(S,")")}),(0,a.jsx)("div",{className:e1().status,children:"Status: ".concat(ep.Z("","name",P.Z(F.Z("id",g),i)))})]}),(0,a.jsxs)("div",{className:e1().headerBottomRow,children:[(0,a.jsx)("div",{children:"Coach ID: "}),(0,a.jsx)("span",{children:p}),(0,a.jsx)("span",{children:"|"}),(0,a.jsx)("div",{children:"User ID: "}),(0,a.jsx)("span",{children:b})]})]}),(0,a.jsx)("div",{className:e1().mainContent,children:(0,a.jsxs)("div",{className:e1().row,children:[(0,a.jsxs)("div",{className:e1().column,children:[(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(eK,{coach:n,onUpdateNotes:void 0===l?function(){}:l})}),(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(eW,{coach:n})}),(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(eR,{coach:n,surveyQuestionResponses:h})})]}),(0,a.jsxs)("div",{className:e1().column,children:[(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(ef.Z,{coach:n,coachAuditTypesWithLevelIds:t,onCreateAudit:void 0===c?function(){}:c,onUpdateAudit:void 0===u?function(){}:u})}),(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(eN.Z,{coach:n,onSnoozeClientProblems:void 0===r?function(){}:r,onUpdateManualProblem:void 0===o?function(){}:o,onDismissClientProblems:void 0===m?function(){}:m})}),(0,a.jsx)("div",{className:e1().row,children:(0,a.jsx)(eX,{coach:n})})]})]})})]})},e2=i(48169),e4=i(29746),e6=i(73359),e9=i(67208),e7=i(67814),e8=i(92929),e5=i(99470),ne=i.n(e5),nn=i(68779),ni=function(e){var n,i=e.coach,t=i.id,s=i.marketplacePriorityOverride,r=i.totalActiveClients,o=i.numClientsWithProblems,d=i.numDaysBehindSchedule,c=i.areClientProblemsSnoozed,u=i.levelUpdatedAt,m=i.isProfileComplete,v=i.hasAccessToMarketplace,k=(i.createdAt,i.user),h=k.firstName,f=k.lastName,p=e.selectedCoachId,g=e.onSelectCoach,N=void 0===g?function(){}:g;return(0,a.jsxs)("div",{className:B()(ne().container,(0,l._)({},ne().selectedItem,p===t)),onClick:function(){return N({id:t})},children:[(0,a.jsxs)("div",{className:B()(ne().name,(0,l._)({},ne().attentionItem,!!o&&!c)),children:["".concat(e8.Z(" ",[h||"No name coach with id ".concat(t),f]))," ",!!o&&!c&&(0,a.jsx)(e7.G,{icon:"exclamation",className:ne().attentionItem}),!!o&&!c&&!!d&&" "]}),!m&&!v&&(0,a.jsx)(e7.G,{icon:nn.wOQ,className:ne().profileNotCompletedItem}),(0,a.jsxs)("div",{className:B()(ne().daysInLevel,(0,l._)({},ne().behindSchedule,!!d)),children:[W().differenceInDays(new Date,u)," days"]}),(0,a.jsx)("div",{className:B()(ne().marketplacePriorityOverride,(n={},(0,l._)(n,ne().priority0,0===s),(0,l._)(n,ne().priorityLt1,s>0&&s<1),(0,l._)(n,ne().priorityLt5,s>=1&&s<5),(0,l._)(n,ne().priorityGte5,s>=5),n)),children:s}),(0,a.jsx)("div",{className:ne().totalActiveClients,children:r})]})},na=i(99418),nt=i(26003),ns=i.n(nt),nl=function(e){var n=e.coachLevel,i=(n.id,n.name),t=e.coaches,s=e.total,l=void 0===s?0:s,r=e.numCoachesWithClientProblems,o=e.numCoachesBehindSchedule,c=e.selectedCoachId,u=e.onSelectCoach,m=e.coachCollectionInput,k=e.onMoreLoaded,h=e.isFiltering,f=(0,d._)((0,e6.t)(na.getCo
1achCollection,{fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,onCompleted:function(e){k(y.Z("coachCollection",e))}}),2),p=f[0],g=f[1].loading;return(0,a.jsxs)(e9.Z,{title:"".concat(i," (").concat(l," total, ").concat(void 0===r?0:r," with problems, ").concat(void 0===o?0:o," behind schedule)"),mainPadded:!1,forceOpen:void 0!==h&&h,children:[et.Z(j.Z)(function(e,n){return(0,a.jsx)(ni,{coach:e,selectedCoachId:c,onSelectCoach:u},"coach-level-section-item-".concat(n))},t),g&&(0,a.jsx)(v.Z,{}),!g&&l>e_.Z(t)&&(0,a.jsx)("div",{className:ns().loadMore,onClick:function(){return m.page=e_.Z(t)/m.pageSize,p({variables:m})},children:"Load more..."})]})},nr=function(e){var n=e.coachLevels,i=e.coaches,t=void 0===i?[]:i,s=e.coachesByLevelCounts,l=void 0===s?{}:s,r=e.coachCollectionInputs,o=e.selectedCoachId,d=e.onSelectCoach,c=e.coachIssueFilter,u=e.onMoreLoaded;return j.Z(function(e){var n=e.id,i=X.Z(F.Z("levelId",n),t),s=P.Z(F.Z("levelId",n),r),m=s.nameFilter,v=s.keywordFilter;return(0,a.jsx)(nl,{coachLevel:e,coaches:i,total:I.Z(0,[n,"total"],l),numCoachesWithClientProblems:I.Z(0,[n,"numCoachesWithClientProblems"],l),numCoachesBehindSchedule:I.Z(0,[n,"numCoachesBehindSchedule"],l),selectedCoachId:o,onSelectCoach:d,coachCollectionInput:s,onMoreLoaded:u,isFiltering:!!m||!!v||!!c},"coach-level-collapsible-section-".concat(n))},void 0===n?[]:n)},no=i(6796),nd=i.n(no),nc=function(e){var n=e.value,i=e.onChange,t=void 0===i?function(){}:i;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Keyword"}),(0,a.jsx)("input",{className:nd().input,value:void 0===n?"":n,onChange:function(e){return t(e.target.value)},placeholder:"Enter keyword to filter..."})]})},nu=function(e){var n=e.coachManagers,i=e.label,t=e.value,s=e.onChange;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:i}),(0,a.jsx)(ea,{coachManagers:n,value:t,onChange:void 0===s?function(){}:s})]})},nm=i(3696),nv=i.n(nm),nk=function(e){var n=e.value,i=e.onChange,t=void 0===i?function(){}:i;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Coach"}),(0,a.jsx)("input",{className:nv().input,value:void 0===n?"":n,onChange:function(e){return t(e.target.value)},placeholder:"Enter name to filter..."})]})},nh=[{value:"shouldFilterByWithClientProblems",label:"With Client Problems (Red)"},{value:"shouldFilterByBehindSchedule",label:"Behind Schedule (Orange)"},{value:"shouldFilterByClpLeadAudit1",label:"1st CLP Lead Feedback"},{value:"shouldFilterByPayingClientAudit1",label:"1st Paying Client Feedback"},{value:"shouldFilterBySourcingAudit",label:"Sourcing Feedback"},{value:"shouldFilterByMarketplaceLeadAudit1",label:"1st Marketplace Lead Feedback"},{value:"shouldFilterByTrialAudit",label:"Feedback"}],nf=i(23536),np=i.n(nf),ng=function(e){var n=e.onChange,i=void 0===n?function(){}:n;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Issues"}),(0,a.jsx)(H.Z,{inputClassName:np().select,options:[{value:"",label:"All"}].concat((0,c._)(nh)),onChange:function(e){return i(e.target.value)}})]})},nN="NULL",n_=function(e){var n=e.value,i=e.onChange,t=e.className,s=e.defaultLabel,l=_.Z(n)?nN:n;return(0,a.jsxs)("select",{value:l,onChange:function(e){var n=e.target.value;i(n===nN?null:parseInt(n))},className:t,children:[(0,a.jsx)("option",{value:"NULL",children:s}),j.Z(function(e){var n=e.value,i=e.label;return(0,a.jsx)("option",{value:n,children:i},n)},eF)]})},nb=i(9649),ny=i.n(nb),nC=function(e){var n=e.value,i=e.onChange;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Timezone"}),(0,a.jsx)(n_,{className:ny().select,onChange:void 0===i?function(){}:i,value:n,defaultLabel:"Any"})]})},nS=i(1134),nx=i.n(nS),nF=function(e){var n=e.onChange,i=void 0===n?function(e){}:n;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Accepts live workout clients"}),(0,a.jsx)(H.Z,{inputClassName:nx().select,options:[{value:null,label:""},{value:!0,label:"Yes"},{value:!1,label:"No"}],onChange:function(e){return i(function(e){switch(e){case"true":return!0;case"false":return!1;default:return null}}(e.target.value))}})]})},nI=i(64810),nj=i.n(nI),nA=i(58746),nT=i.n(nA),nP=function(e){var n=e.value,i=e.onCh
1ange,t=void 0===i?function(){}:i;return(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{children:"Insurance-Covered Coaches Only"}),(0,a.jsx)(H.Z,{inputClassName:nT().select,value:null===n?null:String(n),options:[{value:null,label:""},{value:"true",label:"Yes"},{value:"false",label:"No"}],onChange:function(e){return t(function(e){switch(e){case"true":return!0;case"false":return!1;default:return null}}(e.target.value))}})]})},nL=function(e){var n=e.coachManagers,i=void 0===n?[]:n,t=e.selectedCoachManagerId,s=e.selectedCoachSuccessManagerId,l=e.onSelectCoachManagerId,r=e.onSelectCoachSuccessManagerId,o=e.coachNameFilterText,c=e.onChangeCoachNameFilterText,u=e.coachKeywordFilterText,m=e.onChangeCoachKeywordFilterText,v=e.onChangeCoachIssueFilter,k=e.coachTimezoneFilter,h=e.onChangeCoachTimezoneFilter,f=e.coachAcceptLiveWorkoutClientsFilter,p=e.onChangeCoachAcceptLiveWorkoutClientsFilter,g=e.coachInsuranceCoveredFilter,N=e.onChangeCoachInsuranceCoveredFilter,_=(0,d._)((0,w.useState)(!1),2),b=_[0],y=_[1];return(0,a.jsxs)("div",{className:nj().container,children:[(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(nu,{label:"Coach Success Manager",coachManagers:i,value:s,onChange:r})}),(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(nk,{value:o,onChange:c})}),(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(nc,{value:u,onChange:m})}),(0,a.jsx)("div",{className:B()(nj().row,nj().moreFiltersButtonContainer),children:(0,a.jsx)("button",{className:nj().button,onClick:function(){y(function(e){return!e})},children:(0,a.jsx)(eY.bZ,{size:"small",title:"More filters"})})}),(0,a.jsxs)(U.UO,{visible:b,children:[(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(nu,{label:"Coach Manager",coachManagers:i,value:t,onChange:l})}),(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(ng,{onChange:v})}),(0,a.jsx)("div",{className:nj().row,children:(0,a.jsx)(nC,{value:k,onChange:h})}),(0,a.jsx)("div",{className:nj().bottomRow,children:(0,a.jsx)(nF,{value:f,onChange:p})}),(0,a.jsx)("div",{className:nj().bottomRow,children:(0,a.jsx)(nP,{value:g,onChange:N})})]})]})},nw=i(29312),nD=i.n(nw),nE=function(e){var n=e.isLoading,i=e.coaches,t=e.coachAdmins,s=e.coachLevels,l=e.coachCollectionInputs,r=e.coachesByLevelCounts,o=e.selectedCoachId,c=e.onSelectCoach,u=e.selectedCoachManagerId,m=e.selectedCoachSuccessManagerId,k=e.coachInsuranceCoveredFilter,h=e.onSelectCoachManagerId,f=e.onSelectCoachSuccessManagerId,p=e.onMoreLoaded,g=e.onChangeCoachNameFilterText,N=void 0===g?function(){}:g,_=e.onChangeCoachKeywordFilterText,b=void 0===_?function(){}:_,C=e.onChangeCoachIssueFilter,S=void 0===C?function(){}:C,x=e.onChangeCoachTimezoneFilter,F=void 0===x?function(){}:x,I=e.onChangeCoachAcceptLiveWorkoutClientsFilter,T=void 0===I?function(){}:I,P=e.onChangeCoachInsuranceCoveredFilter,L=(0,d._)((0,w.useState)(void 0),2),D=L[0],E=L[1],Z=(0,d._)((0,w.useState)(void 0),2),V=Z[0],B=Z[1],M=(0,d._)((0,w.useState)(void 0),2),R=M[0],O=M[1],U=(0,d._)((0,w.useState)(void 0),2),q=U[0],G=U[1],W=(0,d._)((0,w.useState)(void 0),2),z=W[0],H=W[1],$=A.Z(function(e,n){return e2.Z(e,n)},0,j.Z(y.Z("total"),e4.Z(r)));return(0,a.jsxs)("div",{className:nD().container,children:[(0,a.jsxs)("div",{className:nD().totalCoachesContainer,children:["Total coaches:"," ",(0,a.jsx)("span",{className:nD().totalCoaches,children:i?$:"Loading"})]}),(0,a.jsx)(nL,{coachManagers:t,selectedCoachManagerId:u,selectedCoachSuccessManagerId:m,onSelectCoachManagerId:void 0===h?function(){}:h,onSelectCoachSuccessManagerId:void 0===f?function(){}:f,coachNameFilterText:D,onChangeCoachNameFilterText:function(e){E(e),N(e)},coachKeywordFilterText:V,onChangeCoachKeywordFilterText:function(e){B(e),b(e)},onChangeCoachIssueFilter:function(e){O(e),S(e)},coachTimezoneFilter:q,onChangeCoachTimezoneFilter:function(e){G(e),F(e)},coachAcceptLiveWorkoutClientsFilter:z,onChangeCoachAcceptLiveWorkoutClientsFilter:function(e){H(e),T(e)},coachInsuranceCoveredFilter:k,onChangeCoachInsuranceCoveredFilter:void 0===P?function(){}:P}),(0,a.jsx)("div",{className:nD().coachLevelSectionsContainer,children:void 0!==n&&n?(0,a.jsx)(v.Z,{}):(0,a.jsx)(nr,{coachLevels:s,coachesByLevelCounts:r,coaches:i,coachCollectionInputs:l,selectedCoachId:o,onSelectCoach:void 0===c?function(){}:c,onMoreLoaded:void 0===p?function(){}:p,coachIssueFilter:R})})]})},nZ=i(40248),nV=i(21628),nB=i(90144),nM=i.n(nB),nR=function(e){var n=e.coachId,i=(0,d._)((0,w.useState)(null),2),t=i[0],s=i[1],v=(0,d._)((0,w.useState)(null),2),h=v[0],f=v[1],g=(0,d._)((0,w.useState)(null),2),E=g[0],Z=g[1],V=(0,d._)((0,w.useState)(null),2),B=V[0],M=V[1],R=(0,d._)((0,w.useState)(null),2),O=R[0],U=R[1],q=(0,d._)((0,w.useState)(null),2),G=q[0],W=q[1],z=(0,d._)((0,w.useState)(void 0),2),H=z[0],$=z[1],K=(0,d._)((0,w.useState)(void 0),2),Y=K[0],Q=K[1],J=(0,d._)((0,w.useState)(n),2),X=J[0],ee=J[1],en=(0,d._)((0,w.useState)(null),2),ei=en[0],ea=en[1],et=(0,d._)((0,w.useState)(void 0),2),es=et[0],el=et[1],er=(0,d._)((0,w.useState)(void 0),2),eo=er[0],ed=er[1],ec=(0,d._)((0,w.useState)(null),2),eu=ec[0],em=ec[1],ev=(0,d._)((0,w.useState)(null),2),eh=ev[0],ef=ev[1],ep=(0,d._)((0,w.useState)([]),2),eg=ep[0],eN=ep[1],e_=(0,d._)((0,w.useState)([]),2),eb=e_[0],ey=e_[1],eC=(0,d._)((0,w.useState)(null),2),eS=eC[0],ex=eC[1],eF=(0,d._)((0,w.useState)(void 0),2),eI=eF[0],ej=eF[1],eA=(0,d._)((0,w.useState)(void 0),2),eT=eA[0],eP=eA[1],eL=(0,d._)((0,w.useState)(void 0),2),ew=eL[0],eD=eL[1],eE=(0,u.a)(nV.getCoachCollectionsByLevel,{variables:{coachCollectionInputs:t},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,skip:_.Z(t)||b.Z(t),onCompleted:function(e){f(y.Z("coachCollectionsByLevel",e))}}
1),eZ=eE.loading,eV=eE.networkStatus,eB=(0,u.a)(nV.getCoachAdmins,{fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,onCompleted:function(e){U(y.Z("coaches",e))}}),eM=eB.loading,eR=eB.networkStatus,eO=(0,u.a)(nV.getCoachLevels,{fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0}),eU=eO.loading,eq=eO.networkStatus,eG=eO.data,eW=eU||4===eq,ez=eW?null:eG.coachLevels,eH=(0,u.a)(nV.getCoachAuditTypesWithLevelIds,{fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,onCompleted:function(e){W(y.Z("coachAuditTypesWithLevelIds",e))}}),e$=eH.loading,eK=eH.networkStatus,eY=(0,u.a)(nV.getCoach,{variables:{id:X},fetchPolicy:"network-only",notifyOnNetworkStatusChange:!0,skip:_.Z(X),onCompleted:function(e){e&&ea((0,o._)((0,r._)({},y.Z("coach",e)),{clients:y.Z("allClients",e)}))}}),eQ=eY.loading,eJ=eY.networkStatus,eX=(0,d._)((0,m.D)(nZ.updateCoach,{onCompleted:function(e){ne({updatedCoach:(0,r._)({},ei,y.Z("updateCoach",e))})}}),1)[0],e0=(0,d._)((0,m.D)(nZ.updateCoachOnboardingProgress,{onCompleted:function(e){var n=y.Z("updateCoachOnboardingProgress",e),i=n.levelId,a=n.levelUpdatedAt;ne({updatedCoach:(0,o._)((0,r._)({},ei),{levelId:i,levelUpdatedAt:a||y.Z("levelUpdatedAt",ei),onboardingProgress:n,hasAccessToMarketplace:C.Z(["updateCoachOnboardingProgress","hasAccessToMarketplace"],e)})})}}),1)[0],e1=(0,d._)((0,m.D)(nZ.updateClient,{onCompleted:function(e){var n=ei.clients,i=y.Z("updateClient",e);ne({updatedCoach:(0,o._)((0,r._)({},ei),{clients:S.Z(x.Z(F.Z("id",y.Z("id",i)))(n),i,n)})})}}),1)[0],e2=(0,d._)((0,m.D)(nZ.createCoachAudit,{onCompleted:function(e){var n=C.Z(["createCoachAudit","audit"],e),i=ei.audits,a=C.Z(["createCoachAudit","onboardingProgress"],e);ne({updatedCoach:(0,o._)((0,r._)({},ei),{audits:[n].concat((0,c._)(i)),levelId:y.Z("levelId",a)||y.Z("levelId",ei),levelUpdatedAt:y.Z("levelUpdatedAt",a)||y.Z("levelUpdatedAt",ei),onboardingProgress:a})})}}),1)[0],e4=(0,d._)((0,m.D)(nZ.updateCoachAudit,{onCompleted:function(e){var n=C.Z(["updateCoachAudit","audit"],e),i=ei.audits,a=I.Z(y.Z("onboardingProgress",ei),["updateCoachAudit","onboardingProgress"],e);ne({updatedCoach:(0,o._)((0,r._)({},ei),{hasAccessToMarketplace:C.Z(["updateCoachAudit","hasAccessToMarketplace"],e),audits:S.Z(x.Z(F.Z("id",y.Z("id",n)))(i),n,i),levelId:y.Z("levelId",a)||y.Z("levelId",ei),levelUpdatedAt:y.Z("levelUpdatedAt",a)||y.Z("levelUpdatedAt",ei),onboardingProgress:a})})}}),1)[0],e6=(0,d._)((0,m.D)(nZ.destroyCoachStripeAccount),2),e9=e6[0],e7=e6[1].loading;(0,w.useEffect)(function(){_.Z(ez)||s(j.Z(function(e){return{page:0,pageSize:10,onboardingManagerId:H,managerId:Y,levelId:e.id,shouldSortByCoachManagementPriority:!0,nameFilter:es,keywordFilter:eo,shouldFilterByWithClientProblems:eu,shouldFilterByBehindSchedule:eh,completedCoachOnboardingRequirementsFilter:eg,notCompletedCoachOnboardingRequirementsFilter:eb,hasNonTestingClientWithStatuses:eS,timezoneFilter:eI,acceptLiveWorkoutClientsFilter:eT,insuranceCoveredFilter:ew}},ez))},[ez,H,Y,es,eo,eu,eh,eg,eb,eS,eI,eT,ew]),(0,w.useEffect)(function(){_.Z(h)||(Z(A.Z(function(e,n){var i=n.coaches;return e.concat(i)},[],h)),M(T.Z(j.Z(function(e){var n=e.total,i=e.numCoachesWithClientProblems,a=e.numCoachesBehindSchedule,t=e.levelId;return(0,l._)({},t,{total:n,numCoachesWithClientProblems:i,numCoachesBehindSchedule:a})},h))))},[h]);var e8=eZ||eM||eW||e$||4===eV||4===eR||4===eK||_.Z(E)||_.Z(O)||_.Z(ez),e5=eQ||eW||4===eJ,ne=function(e){var n=e.updatedCoach;ea(n),Z(S.Z(x.Z(F.Z("id",y.Z("id",n)))(E),n,E))},nn=p()(function(e){el(e)},500),ni=p()(function(e){ed(e)},500);return(0,a.jsxs)("div",{className:nM().container,children:[(0,a.jsx)(k.Z,{shouldDisplayBackLink:!1}),(0,a.jsxs)("div",{className:nM().mainContent,children:[(0,a.jsx)("div",{className:nM().leftColumn,children:(0,a.jsx)(nE,{isLoading:e8,coaches:E,coachAdmins:O,coachLevels:ez,coachCollectionInputs:t,coachesByLevelCounts:B,selectedCoachId:X,onSelectCoach:function(e){var n=e.id;ee(n),N().push(N().pathname,D.ZP.coachManagement({coachId:n}),{shallow:!0})},selectedCoachManagerId:H,selectedCoachSuccessManagerId:Y,onSelectCoachManagerId:$,onSelectCoachSuccessManagerId:Q,onMoreLoaded:function(e){var n=e.levelId,i=P.Z(F.Z("levelId",n),h);f(S.Z(x.Z(F.Z("levelId",n))(h),(0,o._)((0,r._)({},L.Z(["coaches"],e)),{coaches:(0,c._)(y.Z("coaches",i)).concat((0,c._)(y.Z("coaches",e)))}),h))},onChangeCoachNameFilterText:nn,onChangeCoachKeywordFilterText:ni,onChangeCoachIssueFilter:function(e){switch(em(!1),ef(!1),eN([]),ey([]),ex(null),e){case"shouldFilterByWithClientProblems":em(!0);break;case"shouldFilterByBehindSchedule":ef(!0);break;case"shouldFilterByClpLeadAudit1":ey(["clpLeadAudit1PassedAt"]),ex([]);break;case"shouldFilterByPayingClientAudit1":ey(["payingClientAudit1PassedAt"]),ex([1]);break;case"shouldFilterBySourcingAudit":eN(["clpLeadAudit1PassedAt"]),ey(["sourcingAuditPassedAt"]);break;case"shouldFilterByMarketplaceLeadAudit1":eN(["sourcingAuditPassedAt"]),ey(["marketplaceLeadAudit1PassedAt"]);break;case"shouldFilterByTrialAudit":eN(["marketplaceLeadAudit1PassedAt"]),ey(["trialAuditPassedAt"])}},onChangeCoachTimezoneFilter:ej,coachInsuranceCoveredFilter:ew,onChangeCoachAcceptLiveWorkoutClientsFilter:eP,onChangeCoachInsuranceCoveredFilter:eD})}),(0,a.jsx)("div",{className:nM().middleColumn,children:(0,a.jsx)(e3,{coach:ei,coachLevels:ez,coachAuditTypesWithLevelIds:G,isLoading:e5,onUpdateNotes:function(e){return eX({variables:{id:X,notes:e}})},onSnoozeClientProblems:function(){return eX({variables:{id:X,areClientProblemsSnoozed:!0}})},onUpdateManualProblem:function(e){return e1({variables:{id:e.clientId,hasManuallyMarkedProblem:e.hasManuallyMarkedProblem}})},onCreateAudit:function(e){return e2({variables:{coachId:X,feedback:e.feedback,didPass:e.didPass,auditTypeId:e.auditTypeId}})},onUpdateAudit:function(e){return e4({variables:{id:e.id,feedback:e.feedback,didPass:e.didPass}})},onDismissClientProblems:function(e){return e1({variables:{id:e.clientId,clientProblemsSnoozedAt:new Date}})}})}),(0,a.jsx)("div",{className:nM().rightColumn,children:(0,a.jsx)(ek,{coach:ei,coachM
1anagers:O,coachLevels:ez,onChangeManagerId:function(e){return eX({variables:{id:X,onboardingManagerId:e}})},onChangeSuccessManagerId:function(e){return eX({variables:{id:X,managerId:e}})},onUpdateMarketplacePriorityOverride:function(e){return eX({variables:{id:X,marketplacePriorityOverride:e}})},onUpdateMarketplacePausedUntil:function(e){return eX({variables:{id:X,marketplacePausedUntil:e}})},onUpdateTargetClientCount:function(e){return eX({variables:{id:X,targetClientCount:e}})},onChangeHasAccessToMarketplace:function(e){return eX({variables:{id:X,hasAccessToMarketplace:e}})},onChangeStateLicenseTargetingExempt:function(e){return eX({variables:{id:X,stateLicenseTargetingExempt:e}})},onUpdateOnboardingRequirement:function(e){e0({variables:{coachId:X,onboardingRequirement:e.onboardingRequirement,date:e.date}})},onChangeIsAcceptingNewClients:function(e){return eX({variables:{id:X,isAcceptingNewClients:e}})},onChangeIsOfferingLiveVideoWorkouts:function(e){return eX({variables:{id:X,isOfferingLiveVideoWorkouts:e}})},onChangeFreeTrialEnabled:function(e){return eX({variables:{id:X,freeTrialEnabled:e}})},onChangeEmploymentType:function(e){return eX({variables:{id:X,employmentType:e}})},onChangeLevelId:function(e){return eX({variables:{id:X,levelId:e}})},destroyCoachStripeAccount:e9,destroyingCoachStripeAccount:e7,handleCoachUpdated:ne})})]})]})},nO=function(e){var n=e.coachId,i=(0,d._)((0,w.useState)(!0),2),t=i[0],s=i[1],l=(0,h.Z)();return((0,w.useEffect)(function(){s(!1)},[]),!t&&l.isInitialLoad)?(0,a.jsx)(v.Z,{}):(0,a.jsx)(nR,{coachId:n})},nU=i(37977),nq=i(30470),nG=i(89007),nW=i(9008),nz=i.n(nW),nH=i(47915),n$=i(13664),nK=i(43783),nY=i(29254),nQ=i(11342);t.vI.add(s.A35,s.SZw,s.WV2);var nJ=function(e){var n=e.router.query.id;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nQ.B,{children:(0,a.jsx)(nU.Z,{children:(0,a.jsx)(nH.Z,{children:(0,a.jsxs)(n$.Z,{children:[(0,a.jsx)(nz(),{children:(0,a.jsx)("title",{children:"CM Dashboard"},"title")}),(0,a.jsx)(nO,{coachId:n})]})})})}),nY.fC]})};nJ.getInitialProps=(0,nG.Z)(function(e){var n=e.ctx,i=e.ctx.query,a=e.currentUserPayload.data.me;return a.user&&a.user.coach&&a.user.coach.isActive&&a.user.coach.isAdmin||(0,nK.Z)(D.ZP.clientDashboard(),n),{query:i}});var nX=(0,g.withRouter)((0,nq.C)(nJ))},58961:function(e,n,i){"use strict";i.d(n,{Y:function(){return l}});var a=i(85893),t=i(20726),s=i.n(t),l=function(e){var n=e.font,i=e.children;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s(),{id:"56a506ffc98e56a8",dynamic:[n.style.fontFamily],children:"html{font-family:".concat(n.style.fontFamily,"}")}),i]})}},11342:function(e,n,i){"use strict";i.d(n,{B:function(){return r}});var a=i(85893),t=i(98415),s=i.n(t),l=i(58961),r=function(e){var n=e.children;return(0,a.jsx)(l.Y,{font:s(),children:n})}},13664:function(e,n,i){"use strict";i.d(n,{Z:function(){return v}});var a=i(93128),t=i(85893),s=i(67294),l=i(11163),r=i(86606),o=new(i.n(r)())("cf6d08a6ad5d5c2be634",{cluster:"us3"}),d=i(50717),c=i(8436),u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6e4,n=(0,c.Z)(),i=(0,s.useRef)(null),t=(0,a._)((0,s.useState)(!0),2),l=t[0],r=t[1];return(0,s.useEffect)(function(){var a=function(){i.current&&clearTimeout(i.current)};return n?(a(),r(!0)):i.current=setTimeout(function(){r(!1)},e),function(){return a()}},[n,e]),l},m=i(24976),v=function(e){var n=e.children,i=(0,l.useRouter)().query,r=!!(null==i?void 0:i.debugPusher),c=u(),v=(0,a._)((0,s.useState)(!0),2),k=v[0],h=v[1],f=(0,m.Z)(k),p=k&&!1===f,g=(0,s.useRef)({}),N=(0,s.useRef)({});(0,s.useEffect)(function(){r&&(k?console.log("Pusher connected"):console.log("Pusher disconnected"))},[r,k]);var _=(0,s.useCallback)(function(e){var n=(g.current[e]||0)+1;return g.current[e]=n,1===n&&(r&&console.log("Subscribed: ",e),N.current[e]=o.subscribe(e)),N.current[e]},[r]),b=(0,s.useCallback)(function(e){var n=Math.max((g.current[e]||0)-1,0);g.current[e]=n,0===n&&(r&&console.log("Unsubscribed: ",e),o.unsubscribe(e),delete g.current[e],delete N.current[e])},[r]);(0,s.useEffect)(function(){o&&(c?k||o.connect():k&&o.disconnect())},[c,k]),(0,s.useEffect)(function(){var e=function(){return h(!0)},n=function(){return h(!1)},i=function(){return o.disconnect()};return o.connect(),o.connection.bind("connected",e),o.connection.bind("disconnected",n),window.addEventListener("beforeunload",i),function(){o.disconnect(),o.connection.unbind("connected",e),o.connection.unbind("disconnected",n),window.removeEventListener("beforeunload",i)}},[]);var y=(0,s.useMemo)(function(){return{pusher:o,justReconnected:p,subscribe:_,unsubscribe:b,debug:r}},[p,_,b,r]);return(0,t.jsx)(d.Z.Provider,{value:y,children:n})}},67648:function(e,n,i){"use strict";i.d(n,{T:function(){return l}});var a=i(66485),t=i.n(a),s=i(56320),l=function(e){t()(e),(0,s.b)(JSON.stringify({name:"copyTextToClipboard",text:e}))}},73490:function(e,n,i){"use strict";i.d(n,{S9:function(){return I},nw:function(){return x},oC:function(){return j}});var a,t,s,l=i(73292),r=i(76341),o=i(85893),d=i(71689),c=i(26836),u=i(74178),m=i(1834),v=i(43973),k=i(48638),h=i(93568),f=i(86437),p=i(93967),g=i.n(p),N=i(71970),_=i.n(N),b=i(25675),y=i.n(b),C=(a={text:function(e,n,i){var a,t=new Set(d.Z(c.Z("type"),e.marks)),s=n?u.Z(e.value):"",r=n?m.Z(e.value):e.value;return v.Z(r)?(0,o.jsx)("br",{},"br-".concat(i)):(0,o.jsxs)("span",{className:g()((a={},(0,l._)(a,_().bold,t.has("bold")),(0,l._)(a,_().underline,t.has("underline")),(0,l._)(a,_().italic,t.has("italic")),a)),children:[s&&(0,o.jsx)("strong",{className:_().firstLetter,children:s}),r]},"text-".concat(i))}},(0,l._)(a,f.BLOCKS.HEADING_1,function(e,n,i){return(0,o.jsx)("h1",{className:_().h1,children:x(e.content)},"contentful-h1-".concat(i))}),(0,l._)(a,f.BLOCKS.HEADING_2,function(e,n,i){return(0,o.jsx)("h2",{className:_().h2,children:x(e.content)},"contentful-h2-".concat(i))}),(0,l._)(a,f.BLOCKS.HEADING_3,function(e,n,i){return(0,o.jsx)("h3",{className:_().h3,children:x(e.content)},"contentful-h3-".concat(i))}),(0,l._)(a,f.BLOCKS.HEADING_4,function(e,n,i){return(0,o.jsx)("h4",{className:_().h4,children:x(e.content)},"contentful-h4-".concat(i))}),(0,l._)(a,f.BLOCKS.HEADING_5,function(e,n,i){return(0,o.jsx)("h5",{className:_().h5,children:x(e.content)},"contentful-h5-".concat(i))}),(0,l._)(a,f.BLOCKS.HEADING_6,function(e,n,i){return(0,o.jsx)("h6",{className:_().h6,children:x(e.content)},"contentful-h6-".concat(i))}),(0,l._)(a,f.BLOCKS.PARAGRAPH,function(e,n,i){return(0,o.jsx)("p",{className:_().p,children:x(e.content,n)},"contentful-paragraph-".concat(i))}),(0,l._)(a,f.BLOCKS.OL_LIST,function(e,n,i){return(0,o.jsx)("ol",{className:_().ol,children:x(e.content)},"contentful-ordered-list-".concat(i))}),(0,l._)(a,f.BLOCKS.UL_LIST,function(e,n,i){return(0,o.jsx)("ul",{className:_().ul,children:x(e.content)},"contentful-unordered-list-".concat(i))}),(0,l._)(a,f.BLOCKS.LIST_ITEM,function(e,n,i){return(0,o.jsx)("li",{className:_().li,children:x(e.content)},"contentful-list-item-".concat(i))}),(0,l._)(a,f.BLOCKS.QUOTE,function(e,n,i){return(0,o.jsx)("blockquote",{className:_().blockquote,children:x(e.content)},"contentful-blockquote-".concat(i))}),(0,l._)(a,f.INLINES.HYPERLINK,function(e,n,i){var a=e.content,t=e.data.uri;return(0,o.jsx)("a",{href:t,className:_().link,target:"_blank",rel:"noopener noreferrer",children:x(a)},"hyperlink-".concat(i))}),(0,l._)(a,f.BLOCKS.EMBEDDED_ASSET,function(e,n,i,a){var t=e.data.target.fields,s=t.t
1itle,l=t.description,d=t.file,c=d.contentType,u=d.url;if(k.Z(/video\//,c))return(0,o.jsxs)("figure",{children:[(0,o.jsx)("video",{alt:s,className:_().video,src:"https:".concat(u,"?w=1000#t=0.4"),preload:"metadata",controls:!0}),(0,o.jsx)("figcaption",{children:l||s})]},"contentful-video-".concat(i));if(k.Z(/image\/gif/,c))return(0,o.jsxs)("figure",{children:[(0,o.jsx)("div",{className:_().image,style:null==a?void 0:a.image,children:(0,o.jsx)(y(),{alt:s,src:"https:".concat(u,"?fl=progressive&w=1000"),layout:"fill",objectFit:"cover"})}),(0,o.jsx)("figcaption",{style:null==a?void 0:a.figcaption,children:l||s})]},"contentful-image-".concat(i));if(!k.Z(/image\//,c))return s;var m=k.Z(/image\/png/,c);return(0,o.jsxs)("figure",{children:[(0,o.jsx)("div",{className:_().image,style:(0,r._)({},null==a?void 0:a.image,m&&{backgroundColor:"transparent"}),children:(0,o.jsx)(y(),{alt:s,src:m?"https:".concat(u,"?fm=png&w=1000"):"https:".concat(u,"?fm=jpg&fl=progressive&w=1000"),layout:"fill",objectFit:"cover"})}),(0,o.jsx)("figcaption",{style:null==a?void 0:a.figcaption,children:l||s})]},"contentful-image-".concat(i))}),(0,l._)(a,f.BLOCKS.TABLE,function(e,n,i){return(0,o.jsx)("table",{children:(0,o.jsx)("tbody",{children:x(e.content)})},"contentful-table-".concat(i))}),(0,l._)(a,f.BLOCKS.TABLE_ROW,function(e,n,i){return(0,o.jsx)("tr",{children:x(e.content)},"contentful-table-row-".concat(i))}),(0,l._)(a,f.BLOCKS.TABLE_HEADER_CELL,function(e,n,i){return(0,o.jsx)("th",{children:x(e.content)},"contentful-table-head-".concat(i))}),(0,l._)(a,f.BLOCKS.TABLE_CELL,function(e,n,i){return(0,o.jsx)("td",{children:x(e.content)},"contentful-table-data-".concat(i))}),(0,l._)(a,"_DEFAULT",function(e){return JSON.stringify(e)}),a),S=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;return(C[e.nodeType]||C._DEFAULT)(e,n,i,a)},x=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;return h.Z(d.Z)(function(e,a){return S(e,n&&0===a,a,i)},e)},F=function(e){return e.map(function(n,i){return"string"==typeof n&&v.Z(n)&&2===e.length?(0,o.jsx)("br",{},"empty-paragraph-".concat(i)):Array.isArray(n)?F(n):n})},I={MARKS:(t={},(0,l._)(t,f.MARKS.BOLD,function(e){return(0,o.jsx)("span",{className:_().bold,children:e})}),(0,l._)(t,f.MARKS.ITALIC,function(e){return(0,o.jsx)("span",{className:_().italic,children:e})}),(0,l._)(t,f.MARKS.UNDERLINE,function(e){return(0,o.jsx)("span",{className:_().underline,children:e})}),t),BLOCKS:(s={},(0,l._)(s,f.BLOCKS.HEADING_1,function(e,n){return(0,o.jsx)("h1",{className:_().h1,children:n})}),(0,l._)(s,f.BLOCKS.HEADING_2,function(e,n){return(0,o.jsx)("h2",{className:_().h2,children:n})}),(0,l._)(s,f.BLOCKS.HEADING_3,function(e,n){return(0,o.jsx)("h3",{className:_().h3,children:n})}),(0,l._)(s,f.BLOCKS.HEADING_4,function(e,n){return(0,o.jsx)("h4",{className:_().h4,children:n})}),(0,l._)(s,f.BLOCKS.HEADING_5,function(e,n){return(0,o.jsx)("h5",{className:_().h5,children:n})}),(0,l._)(s,f.BLOCKS.HEADING_6,function(e,n){return(0,o.jsx)("h6",{className:_().h6,children:n})}),(0,l._)(s,f.BLOCKS.PARAGRAPH,function(e,n){return n=F(n),(0,o.jsx)("p",{className:_().p,children:n})}),(0,l._)(s,f.BLOCKS.OL_LIST,function(e,n){return(0,o.jsx)("ol",{className:_().ol,children:n})}),(0,l._)(s,f.BLOCKS.UL_LIST,function(e,n){return(0,o.jsx)("ul",{className:_().ul,children:n})}),(0,l._)(s,f.BLOCKS.LIST_ITEM,function(e,n){return(0,o.jsx)("li",{className:_().li,children:n})}),(0,l._)(s,f.BLOCKS.QUOTE,function(e,n){return(0,o.jsx)("blockquote",{className:_().blockquote,children:n})}),(0,l._)(s,f.BLOCKS.EMBEDDED_ASSET,function(e,n){var i=e.data.target.fields,a=i.title,t=i.file,s=t.contentType,l=t.url;if(k.Z(/video\//,s))return(0,o.jsx)("video",{alt:a,className:_().video,src:"https:".concat(l,"?w=1000#t=0.04"),preload:"metadata",controls:!0});if(!k.Z(/image\//,s))return a;var r=k.Z(/image\/png/,s);return(0,o.jsx)("div",{className:_().image,style:r?{backgroundColor:"transparent"}:void 0,children:(0,o.jsx)(y(),{alt:a,src:r?"https:".concat(l,"?fm=png&w=1000"):"https:".concat(l,"?fm=jpg&fl=progressive&w=1000"),layout:"fill",objectFit:"cover"})})}),s),INLINES:(0,l._)({},f.INLINES.HYPERLINK,function(e,n){return(0,o.jsx)("a",{href:e.data.uri,className:_().link,target:"_blank",rel:"noopener noreferrer",children:n})})},j=function(e,n){return n?e.split(" ").map(function(e){return n.includes(e)?(0,o.jsxs)("span",{className:"emphasis",children:[e," "]},e):e+" "}):e}},54384:function(e,n,i){"use strict";i.d(n,{N:function(){return k},X:function(){return v}});var a,t=i(30137),s=i(73292),l=i(76341),r=i(97582),o=i(44603),d=i(80983),c=i(28740),u=i(79930),m={cloud_name:"kickoff-personal-training",upload_preset:"xrbltc4f",show_powered_by:!1,multiple:!1,sources:["local"],styles:{palette:{windowBorder:u.
1NEUTRAL_GRAY_400,tabIcon:u.PURPLE,menuIcons:u.SHADES_BLACK,textDark:u.SHADES_BLACK,textLight:u.SHADES_WHITE,link:u.NEUTRAL_GRAY_300,action:u.GREEN,inactiveTabIcon:u.SHADES_BLACK,error:u.ERROR_600,inProgress:u.PURPLE,complete:u.SUCCESS_500,sourceBg:u.NEUTRAL_GRAY_50},fonts:(0,s._)({},"'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI',\n sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",{active:!0})}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(n,i){var a=cloudinary.openUploadWidget((0,l._)({},m,e),function(e,t){if(e&&i(e),"close"===t.event&&a.destroy(),"queues-end"===t.event){var s,l=o.Z(["info","files",0],t);l&&(!l.type&&(null===(s=l.uploadInfo)||void 0===s?void 0:s.format)&&(l.type=d.lookup(l.uploadInfo.format)),n(l))}})})},k=(a=(0,t._)(function(e){var n,i,a,t,s,l,o,d;return(0,r.Jh)(this,function(r){switch(r.label){case 0:return n=e.apolloClient,i=e.uploadWidgetOptions,t=void 0===(a=e.eagerLoadTransformations)?[]:a,[4,v(i)];case 1:return l=(s=r.sent()).name,o=s.type,d=s.uploadInfo.public_id,[4,n.mutate({mutation:c.createFile,variables:{attachmentData:{cloudinaryId:d,filename:l,mimetype:o},eagerLoadTransformations:t}})];case 2:return[2,r.sent().data.createFile]}})}),function(e){return a.apply(this,arguments)})},43783:function(e,n,i){"use strict";var a=i(11163),t=i.n(a);
1n.Z=function(e,n){n.res?n.res.writableEnded||(n.res.writeHead(303,{Location:e}),n.res.end()):t().replace(e)}},8453:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",PURPLE:"#830051",WHITE:"#fff",container:"styles_container__EoKpw",row:"styles_row__PRxpj",rowAction:"styles_rowAction__fZ4v6",flex1:"styles_flex1__gENvI",flexNone:"styles_flexNone__tdxO0",wrap:"styles_wrap__txbmM",column:"styles_column__5p20o",centerColumnHorizontally:"styles_centerColumnHorizontally__Uyzyu",centerColumnVertically:"styles_centerColumnVertically___N6bE",marketplacePriorityOverrideRow:"styles_marketplacePriorityOverrideRow__p75KD",marketplacePriorityOverrideInput:"styles_marketplacePriorityOverrideInput__OuZTk",priorityColumn:"styles_priorityColumn__5sDn5",smallButton:"styles_smallButton__SFwkE buttons_small__fCfC5 buttons_solidPurple__L_1CH",updateStatusHeader:"styles_updateStatusHeader__XHmOJ",buttonGroup:"styles_buttonGroup__NaiAx",link:"styles_link__PBULc",errorText:"styles_errorText__BYgx4"}},32046:function(e){e.exports={colors:"'styles/colors.module.css'",WHITE:"#fff",RED:"#F41E51",breakpoints:"'styles/breakpoints.module.css'",DESKTOP_MED_WIDTH:"1200px",TABLET_WIDTH:"768px",modal:"styles_modal___rfoG",dismissButton:"styles_dismissButton__T82yZ",modalHeader:"styles_modalHeader___Y2eR",buttonContainer:"styles_buttonContainer__XhLRi",button:"styles_button__4WLRR buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidRed__7GXr7"}},47538:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",PURPLE:"#830051",WHITE:"#fff",container:"styles_container___3ra3",row:"styles_row__HRaQ3",column:"styles_column__v1O1y",centerColumnHorizontally:"styles_centerColumnHorizontally__jpDIJ",centerColumnVertically:"styles_centerColumnVertically__BfLhi",alignColumnBottom:"styles_alignColumnBottom__j9MeR",priorityColumn:"styles_priorityColumn__5sGfC",activationButton:"styles_activationButton__sSNlr buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidPurple__L_1CH",checkboxRow:"styles_checkboxRow__R_cak",checkbox:"styles_checkbox__1d6g9",checkboxLabel:"styles_checkboxLabel__4RVQG",enabledLabel:"styles_enabledLabel__VK0p3",completedAtLabel:"styles_completedAtLabel__xjozd"}},44349:function(e){e.exports={modal:"styles_modal__Uv_Iz",prompt:"styles_prompt__Dpjng",buttons:"styles_buttons__MHaGm",button:"styles_button__dDDFo buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn",confirmButton:"styles_confirmButton__Xc53X styles_button__dDDFo buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn buttons_solidOrange__f9zVZ",cancelButton:"styles_cancelButton___sUe7 styles_button__dDDFo buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn buttons_solidSilver__j1ppn"}},78449:function(e){e.exports={colors:"'styles/colors.module.css'",GREEN:"#2BB573",PURPLE:"#830051",RED:"#F41E51",container:"styles_container__SH6tH",row:"styles_row__avqgF",auditsContainer:"styles_auditsContainer__qCP0L",auditEntryContainer:"styles_auditEntryContainer__mdF19",auditsHeader:"styles_auditsHeader__435n9",auditEntryHeader:"styles_auditEntryHeader__PLMET",auditTypeName:"styles_auditTypeName__gZCIb",edit:"styles_edit__KCjkq",button:"styles_button__J2i5Y buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidOrange__f9zVZ",profileAuditButton:"styles_profileAuditButton__8Y6X9 buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidGrey__lZ9t1",resultPass:"styles_resultPass__LRFlY",resultFail:"styles_resultFail__Dj0gA"}},74941:function(e){e.exports={colors:"'styles/colors.module.css'",BLACK:"#000",PURPLE:"#830051",container:"styles_container__zMrka",nameContainer:"styles_nameContainer__TBoxr",row:"styles_row__kw_Nu",name:"styles_name__KWeJ2",nameLink:"styles_nameLink__jRPk9",checkboxRow:"styles_checkboxRow__aTugu",checkbox:"styles_checkbox__FmvXH",checkboxLabel:"styles_checkboxLabel__s_o7L",hasProblem:"styles_hasProblem__Ls3_t",isInGoodStanding:"styles_isInGoodStanding__KRYY4",problem:"styles_problem__VToP3",dismissButton:"styles_dismissButton__BWOqz buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidOrange__f9zVZ"}},39453:function(e){e.exports={colors:"'styles/colors.module.css'",PURPLE:"#830051",container:"styles_container__Oad5z",row:"styles_row__I69ZH",clientsContainer:"styles_clientsContainer__cgFyR",issueHeader:"styles_issueHeader__LkqyM",button:"styles_button__8sZpD buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidPurple__L_1CH"}},75818:function(e){e.exports={colors:"'styles/colors.module.css'",NEUTRAL_GRAY_200:"#E2E8F0",PURPLE:"#830051",proofsContainer:"styles_proofsContainer__idw6D",header:"styles_header__S92ic",collapseContainer:"styles_collapseContainer__Qwn34",collapseLabel:"styles_collapseLabel__Du9Hi",chevron:"styles_chevron__Up_Ge",chevronOpen:"styles_chevronOpen__PXM3m",content:"styles_content__vw__W",img:"styles_img__nv3th",date:"styles_date__62Q3E"}},86068:function(e){e.exports={colors:"'styles/colors.module.css'",FLAT_RED:"#FF4949",formContainer:"styles_formContainer__Nus10",modalContent:"styles_modalContent__sF1Uh",scrollableContent:"styles_scrollableContent__R5AK3",payerSection:"styles_payerSection__zg7ih",payerName:"styles_payerName__f2sRH",selectAllLabel:"styles_selectAllLabel__aNxQ_",stateGrid:"styles_stateGrid__RTj0e",stateCheckbox:"styles_stateCheckbox__H4UN7",saveButton:"styles_saveButton__NvIQp",error:"styles_error__HAKuH"}},24367:function(e){e.exports={container:"styles_container__Fb16L",response:"styles_response__urbOH",image:"styles_image__Lu5V1",button:"styles_button__9ByHr buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidPurple__L_1CH"}},88580:function(e){e.exports={container:"styles_container__QXwjK",row:"styles_row__p2GPj",button:"styles_button__KUGyj buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidPurple__L_1CH",link:"styles_link__0ZY7j"}},21571:function(e){e.exports={container:"styles_container__SrQfk",row:"styles_row__CK1OK",notesLabel:"styles_notesLabel__BO3
1CP",notesContainer:"styles_notesContainer__fYDXS",notes:"styles_notes__Gc6_v",button:"styles_button__TdxKg buttons_base__eNz1x buttons_sharedBase__ruhV4 buttons_solidPurple__L_1CH"}},58194:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",PURPLE:"#830051",container:"styles_container__pUfJP",ftux:"styles_ftux__gcqYD",row:"styles_row___TBmn",headerTopRow:"styles_headerTopRow__olQap",headerBottomRow:"styles_headerBottomRow__BhxHe",column:"styles_column__5Bise",headerRow:"styles_headerRow__avhiV",mainContent:"styles_mainContent__L_GRL",name:"styles_name__93Iie",status:"styles_status__hKuE3"}},99470:function(e){e.exports={colors:"'styles/colors.module.css'",BACKGROUND_GREY:"#F8FAFC",BLUE:"#2E7EB7",GREEN:"#2BB573",LIGHT_TEXT_GREY:"#3C3C3C",ORANGE:"#FF6D42",RED:"#F41E51",container:"styles_container__BWE4_",name:"styles_name__4b9g3",selectedItem:"styles_selectedItem___Dtgu",profileNotCompletedItem:"styles_profileNotCompletedItem__4yxMG",attentionItem:"styles_attentionItem__rfPGM",behindSchedule:"styles_behindSchedule__pKzEK",daysInLevel:"styles_daysInLevel__7D8IP",marketplacePriorityOverride:"styles_marketplacePriorityOverride__NkZuX",priority0:"styles_priority0__YKk0D",priorityLt1:"styles_priorityLt1__U71f_",priorityLt5:"styles_priorityLt5__jncun",priorityGte5:"styles_priorityGte5__ssDuF",totalActiveClients:"styles_totalActiveClients__lFpRB"}},26003:function(e){e.exports={colors:"'styles/colors.module.css'",BACKGROUND_GREY:"#F8FAFC",PURPLE:"#830051",WHITE:"#fff",loadMore:"styles_loadMore__6HvYE"}},1134:function(e){e.exports={select:"styles_select__2vEbE"}},58746:function(e){e.exports={select:"styles_select__1EvpA"}},23536:function(e){e.exports={select:"styles_select__Bav__"}},6796:function(e){e.exports={input:"styles_input__cy3Rh"}},3696:function(e){e.exports={input:"styles_input__sMslC"}},9649:function(e){e.exports={select:"styles_select__B4z2P"}},64810:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",container:"styles_container__NmjUJ",row:"styles_row__TwXZ2",moreFiltersButtonContainer:"styles_moreFiltersButtonContainer__ob0HJ",bottomRow:"styles_bottomRow__9XT_H"}},29312:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_2:"#a6a6a6",GREY_3:"#d8d8db",PURPLE:"#830051",WHITE:"#fff",ORANGE:"#FF6D42",container:"styles_container__c6w61",totalCoachesContainer:"styles_totalCoachesContainer__dIB_n",totalCoaches:"styles_totalCoaches__nHALf",coachLevelSectionsContainer:"styles_coachLevelSectionsContainer__mNJuw"}},4230:function(e){e.exports={select:"styles_select__A72Mk"}},33849:function(e){e.exports={select:"styles_select__hJF4p"}},90144:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",container:"styles_container___ApbQ",leftColumn:"styles_leftColumn__dNgA3",middleColumn:"styles_middleColumn__26076",rightColumn:"styles_rightColumn__Gsdx9",mainContent:"styles_mainContent__Y9xoa"}},3327:function(e){e.exports={colors:"'styles/colors.module.css'",SHADES_WHITE:"#FFFFFF",NEUTRAL_GRAY_100:"#F1F5F9",NEUTRAL_GRAY_200:"#E2E8F0",NEUTRAL_GRAY_300:"#CBD5E1",NEUTRAL_GRAY_500:"#64748B",NEUTRAL_GRAY_900:"#0F172A",container:"styles_container__c1JP2",main:"styles_main__7zz31",padded:"styles_padded__CvZyH",row:"styles_row__7D1DJ",header:"styles_header__gY5yr",headerLeft:"styles_headerLeft__VVilm styles_row__7D1DJ",badge:"styles_badge__TCGlZ",title:"styles_title__1t0oN",mainWithBorder:"styles_mainWithBorder__RiY8W",hidden:"styles_hidden__yPwf1"}},42198:function(e){e.exports={confirmModal:"styles_confirmModal__uikVK",prompt:"styles_prompt__VsEyz",buttons:"styles_buttons__TAlM6",button:"styles_button__ZFvab buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn",confirmButton:"styles_confirmButton__YDqUf styles_button__ZFvab buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn buttons_solidGreen__cqqqW",confirmButtonB:"styles_confirmButtonB__VQZOI",cancelButton:"styles_cancelButton__aemj7 styles_button__ZFvab buttons_baseV2__6m2Ce buttons_sharedBase__ruhV4 buttons_smallV2__IPWZn buttons_solidSilver__j1ppn",cancelButtonB:"styles_cancelButtonB__2hiqD",inputText:"styles_inputText__A4Y8p",bottomLink:"styles_bottomLink__SvON_",spinner:"styles_spinner__JfUpT"}},92579:function(e){e.exports={chevron:"styles_chevron__dRUVZ",chevronClosed:"styles_chevronClosed__TtY5p",chevronClosedLeft:"styles_chevronClosedLeft__8qL0G",chevronButton:"styles_chevronButton__laAm1 buttons_unstyled__fZBqL"}},46369:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_2:"#a6a6a6",button:"styles_button__h2c8J buttons_unstyled__fZBqL"}},57236:function(e){e.exports={screen:"styles_screen__JzZT2",padded:"styles_padded__wDJYB",transparentBackgroun
1d:"styles_transparentBackground__ijoPP styles_screen__JzZT2",transparent:"styles_transparent__owvmg"}},74165:function(e){e.exports={colors:"'styles/colors.module.css'",GREY_3:"#d8d8db",PURPLE:"#830051",WHITE:"#fff",header:"styles_header__Ofy9_",lightHeader:"styles_lightHeader__RJThz",logoLink:"styles_logoLink__xjxWc",logoContainer:"styles_logoContainer__SOzie",logoWrapper:"styles_logoWrapper__SrLIk",logo:"styles_logo__sNjNw",backLink:"styles_backLink__tBiaW",lightBackLink:"styles_lightBackLink__vdIBk",infoHintContainer:"styles_infoHintContainer__jVwAf",infoHint:"styles_infoHint__otYS_"}},43563:function(e){e.exports={breakpoints:"'styles/breakpoints.module.css'",TABLET_WIDTH:"768px",modalShadow:"styles_modalShadow__tbyF_",modal:"styles_modal__q_Jv8",modalHeader:"styles_modalHeader__tT3Av",modalContent:"styles_modalContent__cBgGB",modalFooter:"styles_modalFooter__gTQeb"}},54352:function(e){e.exports={colors:"'styles/colors.module.css'",SUB_TEXT_GREY:"#7C7C7C",option:"styles_option__HCKqq",labelWrapper:"styles_labelWrapper__whcIZ",label:"styles_label__pgRse",subText:"styles_subText__nB5Jt"}},90982:function(e){e.exports={colors:"'styles/colors.module.css'",CHARCOAL:"#282828",PURPLE:"#830051",SIZE:"1.4rem",INNER_SIZE:"70%",container:"styles_container__EaPGc",radioInput:"styles_radioInput__uZM6F",radio:"styles_radio__RQIIC",radioIcon:"styles_radioIcon__rhR_j"}},35163:function(e){e.exports={colors:"'styles/colors.module.css'",SUB_TEXT_GREY:"#7C7C7C",container:"styles_container__vLO2s",labelWrapper:"styles_labelWrapper__kKzU3",subText:"styles_subText__O3etM"}},47964:function(e){e.exports={colors:"'styles/colors.module.css'",PURPLE:"#830051",PLACEHOLDER_GREY:"#B3B3B3",container:"styles_container__EbR2I",selectV2:"styles_selectV2__FFqTa",option:"styles_option__sDXss",absolute:"styles_absolute__NgVUY",placeholder:"styles_placeholder__Lkvgv styles_absolute__NgVUY",placeholderFadeIn:"styles_placeholderFadeIn__fSlXe",placeholderFadeOut:"styles_placeholderFadeOut__BszdA",placeholderVisible:"styles_placeholderVisible__3QM1k",placeholderHidden:"styles_placeholderHidden__a3Ldq",arrowIcon:"styles_arrowIcon__aLs3X styles_absolute__NgVUY",select:"styles_select__chPsP"}},51892:function(e){e.exports={colors:"'~styles/colors.module.css'",PURPLE:"#830051",spinner:"styles_spinner__wRTlm"}},53149:function(e){e.exports={colors:"'styles/colors.module.css'",WHITE:"#fff",NIGHT_BLUE:"#011c27",GREY_2:"#a6a6a6",GREY_3:"#d8d8db",wrapper:"styles_wrapper__nX9mQ",icon:"styles_icon__zGht2",tooltip:"styles_tooltip__E4tuZ",bottomLeft:"styles_bottomLeft__fZJD_",bottomCenter:"styles_bottomCenter__zOcDn",bottomRight:"styles_bottomRight__XJ15c",topRight:"styles_topRight__6__zI",topCenter:"styles_topCenter__qmFOK",topLeft:"styles_topLeft__aNJyJ",showTooltip:"styles_showTooltip__U_Ak0",hideTooltip:"styles_hideTooltip__pjwEm"}},71970:function(e){e.exports={colors:"'styles/colors.module.css'",PURPLE:"#830051",breakpoints:"'styles/breakpoints.module.css'",TABLET_WIDTH:"768px",link:"styles_link__UylUr",h:"styles_h___eSGE",h1:"styles_h1__XMOWw styles_h___eSGE",h2:"styles_h2__F56TT styles_h___eSGE",h3:"styles_h3__f8rGD styles_h___eSGE",h4:"styles_h4__qtSRA styles_h___eSGE",h5:"styles_h5__A462U styles_h___eSGE",h6:"styles_h6__nkfcm styles_h___eSGE",bold:"styles_bold__4D1Kq",underline:"styles_underline__ky_r3",italic:"styles_italic__4AJJp",p:"styles_p__6QO02",list:"styles_list__RljQj",ul:"styles_ul__J4cFv styles_list__RljQj",ol:"styles_ol__iY0g9 styles_list__RljQj",li:"styles_li__6y3OO",blockquote:"styles_blockquote__vuRsW",image:"styles_image__xy3Qu",video:"styles_video__DZbDr",firstLetter:"styles_firstLetter__P_wQv styles_bold__4D1Kq"}},95396:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNy41IiBjeT0iNy41IiByPSI3LjUiIGZpbGw9IiM5NjI2NkIiLz4KPC9zdmc+Cg=="},31334:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcgMTJMMC4wNzE3OTU2IC0xLjMwNTA3ZS0wNkwxMy45MjgyIC05LjM2OTk1ZS0wOEw3IDEyWiIgZmlsbD0iI0ZGNkQ0MiIvPgo8L3N2Zz4K"},49467:function(e){e.exports="/_next/static/images/kickoff-logo-light-876a66e15024c657796fa095f0998ba6.svg"},77113:function(e){e.exports="/_next/static/images/kickoff-logo-standard-56fb22563530e082e8cfa0a9eeefee0b.svg"},2147:function(e){"use strict";e.exports=JSON.parse('{"IFile":["File","FileWithWorkoutPreviews"],"BaseClientActivityItem":["GenericClientActivityItem","ProgressPictureClientActivityItem","SurveyResponseClientActivityItem","WorkoutClientActivityItem"],"ClientFeedItem":["ClientTaskPreferencesChangedCl
1ientFeedItem","HabitCompletedClientFeedItem","DailyTasksCompletedClientFeedItem","ClientLeadClaimedClientFeedItem"],"ClientToDo":["ClientEventToDo","MissedWorkoutToDo","UnreviewedWorkoutToDo","UnsentWorkoutToDo","WeeklyReviewToDo","NutritionReviewToDo"],"BaseClientTask":["WorkoutClientTask","LoggedMealClientTask","HabitClientTask"],"ProcessingBioImage":["File","BioImage"],"PagedResponse":[],"AggregateValueChange":["AggregateIntegerValueChange","AggregateBooleanValueChange","AggregateTextValueChange","AggregateWeeklyScheduleValueChange"]}')}},function(e){e.O(0,[9468,8523,2315,8051,4853,8407,6025,984,546,7362,7844,8909,5675,945,2279,4129,1003,7536,6606,3478,2201,2964,9405,7977,7092,2888,9774,179],function(){return e(e.s=75845)}),_N_E=e.O()}]); 2//# sourceMappingURL=coaches-42291bc33b82f063.js.map
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.