LeadGenCRMIntegrationMicrosoftExcelIntegrations.react",["fbt","GeoBaseGridLayout.react","GeoBaseGridLayoutItem.react","GeoBaseInlinePressable.react","GeoButton.react","GeoDivider.react","GeoFlexbox.react","GeoTextPairing.react","LeadGenCRMIntegrationMicrosoftExcelAutomaticIntegrationsSettings.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql","LeadGenCRMIntegrationMicrosoftExcelIntegrationTable.react","LeadGenCRMIntegrationMicrosoftExcelIntegrationsQuery.graphql","LeadGenCRMIntegrationMicrosoftExcelLoggerHelper","LeadGenCRMIntegrationMicrosoftExcelUtils","LeadGenDirectCRMIntegrationUtils","LeadGenLeadsRetrievalDataManager","LeadGenLeadsRetrievalUIActions","RelayHooks","geoMargin","meta-brand-arrow-left-horizontal-rectangle-outline-16","meta-brand-arrow-left-outline-16","nullthrows","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.startTransition,p=d.useCallback,_=d.useState,f="1494674238621179";function g(t){var a=o("react-compiler-runtime").c(69),i=t.authID,l=t.errorMessage,u=t.existingIntegrations,d=t.integrators,p=t.microsoftExcelWorksheetList,g=t.pageID,y=t.queryReference,C=t.refreshMicrosoftExcelQuery,b=t.selectedForm,v=t.selectedMicrosoftExcelWorksheet,S=t.thirdPartyAppID,R;a[0]===Symbol.for("react.memo_cache_sentinel")?(R=new(r("LeadGenCRMIntegrationMicrosoftExcelLoggerHelper")),a[0]=R):R=a[0];var L=R,E=_(!1),k=E[0],I=E[1],T=o("RelayHooks").useMutation(o("LeadGenDirectCRMIntegrationUtils").cancelDirectCRMIntegrationMutation),D=T[0],x=T[1],$=e!==void 0?e:e=n("LeadGenCRMIntegrationMicrosoftExcelIntegrationsQuery.graphql"),P=_(!1),N=P[0],M=P[1],w=o("RelayHooks").usePreloadedQuery($,y),A=w.page,F=w.fetch__XFBLeadGenDirectCRMIntegrationAuth,O=A==null?void 0:A.lead_gen_microsoft_excel_automatic_integration_config_by_page_id,B=O!=null,W=A==null?void 0:A.lead_gen_direct_crm_integration_config_by_page_id,q=o("RelayHooks").useQueryLoader(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql")),U=q[0],V=q[1],H;a[1]!==V||a[2]!==g||a[3]!==S?(H=function(){m(function(){V({pageID:g,thirdPartyAppID:S},{fetchPolicy:"network-only"})})},a[1]=V,a[2]=g,a[3]=S,a[4]=H):H=a[4];var G=H,z;a[5]!==W?(z=W!=null&&W.filter(h).length>0,a[5]=W,a[6]=z):z=a[6];var j=z,K;a[7]!==g?(K=function(){r("LeadGenLeadsRetrievalDataManager").fetchPageCRMIntegrationActivity(null,g,null,!0)},a[7]=g,a[8]=K):K=a[8];var Q=K,X;a[9]===Symbol.for("react.memo_cache_sentinel")?(X={className:"xw7yly9"},a[9]=X):X=a[9];var Y;a[10]!==Q||a[11]!==j?(Y=j&&c.jsx(r("GeoButton.react"),{icon:o("meta-brand-arrow-left-outline-16").metaBrandArrowLeftArrowLeftOutline16,isLabelHidden:!0,label:s._(/*BTDS*/"Go back to CRM integrations"),xstyle:r("geoMargin").end8,onClick:Q}),a[10]=Q,a[11]=j,a[12]=Y):Y=a[12];var J;a[13]===Symbol.for("react.memo_cache_sentinel")?(J=c.jsx(r("GeoTextPairing.react"),{description:null,heading:s._(/*BTDS*/"Microsoft Excel Worksheet Integrations"),size:"header2"}),a[13]=J):J=a[13];var Z;a[14]!==Y?(Z=c.jsx(r("GeoBaseGridLayoutItem.react"),{columns:1,"data-testid":void 0,children:c.jsxs(r("GeoFlexbox.react"),{alignItems:"center",children:[Y,J]})}),a[14]=Y,a[15]=Z):Z=a[15];var ee;a[16]===Symbol.for("react.memo_cache_sentinel")?(ee={className:"x10l6tqk xdg88n9"},a[16]=ee):ee=a[16];var te;a[17]!==i||a[18]!==D||a[19]!==u||a[20]!==j||a[21]!==x||a[22]!==g||a[23]!==G||a[24]!==C?(te=c.jsx(r("GeoBaseGridLayoutItem.react"),{columns:1,"data-testid":void 0,children:c.jsx("div",babelHelpers.extends({},ee,{children:j?c.jsx(r("GeoFlexbox.react"),{alignItems:"center",children:c.jsx(r("GeoButton.react"),{"data-testid":void 0,icon:o("meta-brand-arrow-left-horizontal-rectangle-outline-16").metaBrandArrowLeftHorizontalRectangleGoToOutline16,label:s._(/*BTDS*/"New Integration"),variant:"primary",xstyle:[r("geoMargin").start8,r("geoMargin").end0],onClick:function(){L.logClickNewCreateModal(g,i!=null?i:""),G(),I(!0)}})}):c.jsx(r("GeoButton.react"),{"data-testid":void 0,isDisabled:x,label:s._(/*BTDS*/"Cancel setup"),variant:"default",onClick:function(){D({variables:{lead_gen_direct_crm_integration_auth_id:r("nullthrows")(i)},onCompleted:function(){o("LeadGenLeadsRetrievalUIActions").cancelDirectIntegration(),o("LeadGenLeadsRetrievalUIActions").deleteCRMIntegration(g,f,u),C(r("nullthrows")(i))}})}})}))}),a[17]=i,a[18]=D,a[19]=u,a[20]=j,a[21]=x,a[22]=g,a[23]=G,a[24]=C,a[25]=te):te=a[25];var ne;a[26]!==te||a[27]!==Z?(ne=c.jsxs(r("GeoBaseGridLayout.react"),{columns:2,"data-testid":void 0,xstyle:r("geoMargin").start16,children:[Z,te]}),a[26]=te,a[27]=Z,a[28]=ne):ne=a[28];var re;a[29]!==j?(re=j&&c.jsx(r("GeoDivider.react"),{}),a[29]=j,a[30]=re):re=a[30];var oe;a[31]!==ne||a[32]!==re?(oe=c.jsxs("div",{children:[ne,re]}),a[31]=ne,a[32]=re,a[33]=oe):oe=a[33];var ae;a[34]!==i||a[35]!==j||a[36]!==W||a[37]!==g||a[38]!==G?(ae=j?c.jsx(r("LeadGenCRMIntegrationMicrosoftExcelIntegrationTable.react"),{integrationConfigFragment:W}):c.jsxs("div",{className:"xyqm7xq xw7yly9 x1yztbdb",children:[c.jsx(r("GeoTextPairing.react"),{description:s._(/*BTDS*/"Create new integration to easily access all the leads in a Microsoft Excel Worksheet."),heading:s._(/*BTDS*/"Link a lead ad form"),size:"header2"}),c.jsx(r("GeoBaseInlinePressable.react"),{"aria-label":"Pressable","data-testid":void 0,variant:"creation",xstyle:r("geoMargin").top12,onPress:function(){G(),I(!0),L.logClickNewCreateModal(g,i!=null?i:"")},children:s._(/*BTDS*/"New Integration")})]}),a[34]=i,a[35]=j,a[36]=W,a[37]=g,a[38]=G,a[39]=ae):ae=a[39];var ie;a[40]!==i||a[41]!==l||a[42]!==B||a[43]!==W||a[44]!==d||a[45]!==O||a[46]!==g||a[47]!==N?(ie=B&&c.jsx(r("LeadGenCRMIntegrationMicrosoftExcelAutomaticIntegrationsSettings.react"),{accessToken:null,authID:i,errorMessage:l,integrationListFragment:W,integrators:d,microsoftExcelAutomaticIntegrationSettingsFragmentKey:O,pageID:g,scope:null,showAutoIntegrationSettings:N,onHide:function(){return M(!1)}}),a[40]=i,a[41]=l,a[42]=B,a[43]=W,a[44]=d,a[45]=O,a[46]=g,a[47]=N,a[48]=ie):ie=a[48];var le;a[49]!==(F==null?void 0:F.access_token)||a[50]!==(F==null?void 0:F.scope)||a[51]!==i||a[52]!==l||a[53]!==B||a[54]!==d||a[55]!==p||a[56]!==g||a[57]!==U||a[58]!==C||a[59]!==b||a[60]!==v||a[61]!==k||a[62]!==S?(le=U!=null&&c.jsx(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react"),{accessToken:F==null?void 0:F.access_token,authID:i,errorMessage:l,hasAutomaticIntegrationEnabled:B,integrators:d,isShown:k,microsoftExcelWorksheetList:p,pageID:g,queryRef:U,refreshMicrosoftExcelQuery:C,scope:F==null?void 0:F.scope,selectedForm:b,selectedMicrosoftExcelWorksheet:v,source:o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelIntegrationEntryPoint.MBS,thirdPartyAppID:S,onHide:function(){I(!1)}}),a[49]=F==null?void 0:F.access_token,a[50]=F==null?void 0:F.scope,a[51]=i,a[52]=l,a[53]=B,a[54]=d,a[55]=p,a[56]=g,a[57]=U,a[58]=C,a[59]=b,a[60]=v,a[61]=k,a[62]=S,a[63]=le):le=a[63];var se;return a[64]!==oe||a[65]!==ae||a[66]!==ie||a[67]!==le?(se=c.jsxs("div",babelHelpers.extends({},X,{children:[oe,ae,ie,le]})),a[64]=oe,a[65]=ae,a[66]=ie,a[67]=le,a[68]=se):se=a[68],se}function h(e){return e!=null}l.default=g}),226);
-----
LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react",["fbt","GeoStep.react","GeoStepperModal.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheet.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStep.react","LeadGenCRMIntegrationMicrosoftExcelLoggerHelper","LeadGenCRMIntegrationMicrosoftExcelUtils","LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction","RelayHooks","nullthrows","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useState,p={stepperSteps:{width:"xh8yej3",$$css:!0}},_=[{id:o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK,label:"Workbook",value:"select_workbook",header:"Select a Microsoft Excel workbook",desc:"Select a Microsoft Excel workbook from OneDrive/Sharepoint or enter the workbook URL"},{id:o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET,label:"Instant form",value:"select_form_and_worksheet",header:"Select a Microsoft Excel worksheet and instant form",desc:"Select a Microsoft Excel worksheet from the workbook you selected and an instant form to connect it to"}],f=e!==void 0?e:e=n("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql");function g(e){var t=o("react-compiler-runtime").c(33),n=e.accessToken,a=e.authID,l=e.errorMessage,u=e.hasAutomaticIntegrationEnabled,c=e.integrators,g=e.isShown,y=e.microsoftExcelWorksheetList,C=e.onHide,b=e.pageID,v=e.queryRef,S=e.scope,R=e.selectedForm,L=e.selectedMicrosoftExcelWorksheet,E=m(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),k=E[0],I=E[1],T;t[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Map,t[0]=T):T=t[0];var D=m(T),x=D[0],$=D[1],P=m(!1),N=P[0],M=P[1],w=o("RelayHooks").usePreloadedQuery(f,v),A=w.page,F=A==null?void 0:A.lead_gen_direct_crm_integration_config_by_page_id,O=A==null?void 0:A.lead_gen_form_by_page_id,B;t[1]===Symbol.for("react.memo_cache_sentinel")?(B=new(r("LeadGenCRMIntegrationMicrosoftExcelLoggerHelper")),t[1]=B):B=t[1];var W=B,q;t[2]===Symbol.for("react.memo_cache_sentinel")?(q=function(t){$(function(e){var n=new Map(e);return n.set(t,"completed"),n})},t[2]=q):q=t[2];var U=q,V;t[3]===Symbol.for("react.memo_cache_sentinel")?(V=function(){I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),$(new Map),r("LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction").dispatch({},{line:"141",module:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react.js",moduleID:i.id})},t[3]=V):V=t[3];var H=V,G;t[4]===Symbol.for("react.memo_cache_sentinel")?(G=s._(/*BTDS*/"Lead delivery with Microsoft Excel"),t[4]=G):G=t[4];var z;t[5]!==k||t[6]!==x?(z=_.map(function(e){var t=e.label,n=e.value,o=e.id,a=x.get(o);return d.jsx(r("GeoStep.react"),{id:n,isDisabled:!1,label:t,status:k===o?"incomplete":a,xstyle:p.stepperSteps},n)}),t[5]=k,t[6]=x,t[7]=z):z=t[7];var j;t[8]!==a||t[9]!==k||t[10]!==C||t[11]!==b?(j=function(){C();e:switch(k){case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK:{W.logNewCreateModalClosedOnFileSelect(b,r("nullthrows")(a));break e}case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET:W.logNewCreateModalClosedOnSelectSheetAndForm(b,r("nullthrows")(a))}H()},t[8]=a,t[9]=k,t[10]=C,t[11]=b,t[12]=j):j=t[12];var K;t[13]!==n||t[14]!==a||t[15]!==l||t[16]!==O||t[17]!==u||t[18]!==F||t[19]!==c||t[20]!==N||t[21]!==y||t[22]!==b||t[23]!==S||t[24]!==R||t[25]!==L?(K=function(t){var e=t.activeStepID;switch(e){case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK:return d.jsx(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStep.react"),{accessToken:n,authID:a,errorMessage:l,hasAutomaticIntegrationEnabled:u,integrationListFragment:F,integrators:c,isAutomaticIntegrationChecked:N,microsoftExcelWorksheetList:y,pageID:b,scope:S,setIsAutomaticIntegrationChecked:M,onComplete:function(){U(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET)}});case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET:return d.jsx(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheet.react"),{currentlySelectedForm:R,currentlySelectedWorksheet:L,formFragments:O,integrationsDataFragment:F,microsoftExcelWorksheetList:y,pageID:b,onBack:function(){I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),r("LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction").dispatch({},{line:"225",module:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react.js",moduleID:i.id})},onComplete:function(){U(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET),I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET)}})}},t[13]=n,t[14]=a,t[15]=l,t[16]=O,t[17]=u,t[18]=F,t[19]=c,t[20]=N,t[21]=y,t[22]=b,t[23]=S,t[24]=R,t[25]=L,t[26]=K):K=t[26];var Q;return t[27]!==k||t[28]!==g||t[29]!==z||t[30]!==j||t[31]!==K?(Q=d.jsx(r("GeoStepperModal.react"),{activeStepID:k,isShown:g,stepperHeader:G,steps:z,width:1e3,onHide:j,onStepperChange:h,children:K}),t[27]=k,t[28]=g,t[29]=z,t[30]=j,t[31]=K,t[32]=Q):Q=t[32],Q}function h(){}l.default=g}),226);
-----
LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"pageID"},{defaultValue:null,kind:"LocalArgument",name:"thirdPartyAppID"}],t=[{kind:"Variable",name:"id",variableName:"pageID"}],n=[{kind:"Variable",name:"third_party_app_id",variableName:"thirdPartyAppID"}],r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",selections:[{alias:null,args:t,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:n,concreteType:"XFBLeadGenDirectCRMIntegrationConfig",kind:"LinkedField",name:"lead_gen_direct_crm_integration_config_by_page_id",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStepDirectCrmIntegrationConfigFragment"},{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheetDirectCrmIntegrationConfigFragment"}],storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_form_by_page_id",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheetLeadGenFormFragment"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",selections:[{alias:null,args:t,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:n,concreteType:"XFBLeadGenDirectCRMIntegrationConfig",kind:"LinkedField",name:"lead_gen_direct_crm_integration_config_by_page_id",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBLeadGenDirectCRMIntegrationConfigResources",kind:"LinkedField",name:"resources",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_data",plural:!1,selections:[r],storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_form_by_page_id",plural:!0,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},r],storageKey:null}]},params:{id:"24223158867358683",metadata:{},name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
-----
LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react",["fbt","GeoStep.react","GeoStepperModal.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheet.react","LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStep.react","LeadGenCRMIntegrationMicrosoftExcelLoggerHelper","LeadGenCRMIntegrationMicrosoftExcelUtils","LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction","RelayHooks","nullthrows","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useState,p={stepperSteps:{width:"xh8yej3",$$css:!0}},_=[{id:o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK,label:"Workbook",value:"select_workbook",header:"Select a Microsoft Excel workbook",desc:"Select a Microsoft Excel workbook from OneDrive/Sharepoint or enter the workbook URL"},{id:o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET,label:"Instant form",value:"select_form_and_worksheet",header:"Select a Microsoft Excel worksheet and instant form",desc:"Select a Microsoft Excel worksheet from the workbook you selected and an instant form to connect it to"}],f=e!==void 0?e:e=n("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql");function g(e){var t=o("react-compiler-runtime").c(33),n=e.accessToken,a=e.authID,l=e.errorMessage,u=e.hasAutomaticIntegrationEnabled,c=e.integrators,g=e.isShown,y=e.microsoftExcelWorksheetList,C=e.onHide,b=e.pageID,v=e.queryRef,S=e.scope,R=e.selectedForm,L=e.selectedMicrosoftExcelWorksheet,E=m(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),k=E[0],I=E[1],T;t[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Map,t[0]=T):T=t[0];var D=m(T),x=D[0],$=D[1],P=m(!1),N=P[0],M=P[1],w=o("RelayHooks").usePreloadedQuery(f,v),A=w.page,F=A==null?void 0:A.lead_gen_direct_crm_integration_config_by_page_id,O=A==null?void 0:A.lead_gen_form_by_page_id,B;t[1]===Symbol.for("react.memo_cache_sentinel")?(B=new(r("LeadGenCRMIntegrationMicrosoftExcelLoggerHelper")),t[1]=B):B=t[1];var W=B,q;t[2]===Symbol.for("react.memo_cache_sentinel")?(q=function(t){$(function(e){var n=new Map(e);return n.set(t,"completed"),n})},t[2]=q):q=t[2];var U=q,V;t[3]===Symbol.for("react.memo_cache_sentinel")?(V=function(){I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),$(new Map),r("LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction").dispatch({},{line:"141",module:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react.js",moduleID:i.id})},t[3]=V):V=t[3];var H=V,G;t[4]===Symbol.for("react.memo_cache_sentinel")?(G=s._(/*BTDS*/"Lead delivery with Microsoft Excel"),t[4]=G):G=t[4];var z;t[5]!==k||t[6]!==x?(z=_.map(function(e){var t=e.label,n=e.value,o=e.id,a=x.get(o);return d.jsx(r("GeoStep.react"),{id:n,isDisabled:!1,label:t,status:k===o?"incomplete":a,xstyle:p.stepperSteps},n)}),t[5]=k,t[6]=x,t[7]=z):z=t[7];var j;t[8]!==a||t[9]!==k||t[10]!==C||t[11]!==b?(j=function(){C();e:switch(k){case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK:{W.logNewCreateModalClosedOnFileSelect(b,r("nullthrows")(a));break e}case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET:W.logNewCreateModalClosedOnSelectSheetAndForm(b,r("nullthrows")(a))}H()},t[8]=a,t[9]=k,t[10]=C,t[11]=b,t[12]=j):j=t[12];var K;t[13]!==n||t[14]!==a||t[15]!==l||t[16]!==O||t[17]!==u||t[18]!==F||t[19]!==c||t[20]!==N||t[21]!==y||t[22]!==b||t[23]!==S||t[24]!==R||t[25]!==L?(K=function(t){var e=t.activeStepID;switch(e){case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK:return d.jsx(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStep.react"),{accessToken:n,authID:a,errorMessage:l,hasAutomaticIntegrationEnabled:u,integrationListFragment:F,integrators:c,isAutomaticIntegrationChecked:N,microsoftExcelWorksheetList:y,pageID:b,scope:S,setIsAutomaticIntegrationChecked:M,onComplete:function(){U(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET)}});case o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET:return d.jsx(r("LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheet.react"),{currentlySelectedForm:R,currentlySelectedWorksheet:L,formFragments:O,integrationsDataFragment:F,microsoftExcelWorksheetList:y,pageID:b,onBack:function(){I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_WORKBOOK),r("LeadGenDirectCRMIntegrationUIStoreActionsMicrosoftExcelCloseModalAction").dispatch({},{line:"225",module:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModal.react.js",moduleID:i.id})},onComplete:function(){U(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET),I(o("LeadGenCRMIntegrationMicrosoftExcelUtils").MicrosoftExcelStepsEnum.SELECT_FORM_AND_WORKSHEET)}})}},t[13]=n,t[14]=a,t[15]=l,t[16]=O,t[17]=u,t[18]=F,t[19]=c,t[20]=N,t[21]=y,t[22]=b,t[23]=S,t[24]=R,t[25]=L,t[26]=K):K=t[26];var Q;return t[27]!==k||t[28]!==g||t[29]!==z||t[30]!==j||t[31]!==K?(Q=d.jsx(r("GeoStepperModal.react"),{activeStepID:k,isShown:g,stepperHeader:G,steps:z,width:1e3,onHide:j,onStepperChange:h,children:K}),t[27]=k,t[28]=g,t[29]=z,t[30]=j,t[31]=K,t[32]=Q):Q=t[32],Q}function h(){}l.default=g}),226);
-----
LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"pageID"},{defaultValue:null,kind:"LocalArgument",name:"thirdPartyAppID"}],t=[{kind:"Variable",name:"id",variableName:"pageID"}],n=[{kind:"Variable",name:"third_party_app_id",variableName:"thirdPartyAppID"}],r={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",selections:[{alias:null,args:t,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:n,concreteType:"XFBLeadGenDirectCRMIntegrationConfig",kind:"LinkedField",name:"lead_gen_direct_crm_integration_config_by_page_id",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectWorkbookStepDirectCrmIntegrationConfigFragment"},{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheetDirectCrmIntegrationConfigFragment"}],storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_form_by_page_id",plural:!0,selections:[{args:null,kind:"FragmentSpread",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalSelectFormAndWorksheetLeadGenFormFragment"}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",selections:[{alias:null,args:t,concreteType:"Page",kind:"LinkedField",name:"page",plural:!1,selections:[{alias:null,args:n,concreteType:"XFBLeadGenDirectCRMIntegrationConfig",kind:"LinkedField",name:"lead_gen_direct_crm_integration_config_by_page_id",plural:!0,selections:[{alias:null,args:null,concreteType:"XFBLeadGenDirectCRMIntegrationConfigResources",kind:"LinkedField",name:"resources",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"key",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"value",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_data",plural:!1,selections:[r],storageKey:null},r],storageKey:null},{alias:null,args:null,concreteType:"LeadGenDeepLinkData",kind:"LinkedField",name:"lead_gen_form_by_page_id",plural:!0,selections:[r,{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],storageKey:null},r],storageKey:null}]},params:{id:"24223158867358683",metadata:{},name:"LeadGenCRMIntegrationMicrosoftExcelCreateIntegrationModalQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----