1(this["webpackJsonpmerchant-panel"]=this["webpackJsonpmerchant-panel"]||[]).push([[4],{1011:function(e,t,a){"use strict";var n=a(1212),i=a.n(n);t.a=function(e,t){var a=e.map((function(e){return e.value}));return i()(a,t).map((function(t){return e.find((function(e){return e.value===t}))}))}},1012:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=a(35),i=a(36),r=a(42),l=a(41),o=a(2),c=a.n(o),s=a(1213),u=a(294),d=a.n(u),p=a(64),m=a(6),f=a(949),h=function(e){Object(r.a)(a,e);var t=Object(l.a)(a);function a(){var e;Object(n.a)(this,a);for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return(e=t.call.apply(t,[this].concat(r))).state={selectedValues:[]},e.handleSelectChange=function(t){var a=e.props.onChange;if(!t)return e.setState({selectedValues:[]}),void(a&&a([]));e.setState({selectedValues:t}),a&&a(t)},e.getSelectedValues=function(){return e.state.selectedValues.map((function(e){return e.value}))},e.getSelectedOptions=function(){return e.state.selectedValues},e}return Object(i.a)(a,[{key:"componentDidMount",value:function(){var e=this.props.selectedData;e&&this.setState({selectedValues:e})}},{key:"componentDidUpdate",value:function(e){var t=this.props.selectedData,a=e.selectedData;t&&!d()(t,a)&&this.setState({selectedValues:t})}},{key:"render",value:function(){var e=this,t=this.state.selectedValues,a=this.props,n=a.options,i=a.name,r=a.placeholder,l=a.isLoading,o=a.isReadOnly,u=void 0!==o&&o,d=a.tag,h=void 0===d?"":d;return c.a.createElement(m.AnalyticsComponent,null,(function(a){var o=a.pages,d=a.tracker,m=a.merchantId,b=a.ip;return c.a.createElement(s.a,{onMenuOpen:function(){return d.track({event:"dropdown_select",type:"dropdown",tag:h,pages:o,merchantId:m,ip:b})},isMulti:!0,name:i,placeholder:r,value:t,options:n,onChange:function(t){return d.track({event:"dropdown_change",type:"dropdown",tag:(null===t||void 0===t?void 0:t.map((function(e){return"".concat(h,"_").concat(Object(p.snakeCase)(e.label))})).join(","))||"".concat(h,"_empty"),pages:o,merchantId:m,ip:b}),e.handleSelectChange(t)},isLoading:l,isDisabled:u,styles:f.a,menuPortalTarget:document.body})}))}}]),a}(o.PureComponent);h.defaultProps={isReadOnly:!1}},1211:function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return p}));var n,i,r=a(191);!function(e){e.IS="is",e.ISNOT="isnot"}(n||(n={})),function(e){e.MULTISELECT="multiselect",e.INPUT="input",e.MULTIINPUT="multiinput"}(i||(i={}));var l=r.a.map((function(e){return{value:e.code,label:e.name}})),o=[{fields:{name:"Country",checkbox:"countryCheckbox",checkboxValue:!1,radio:"countryRadio",radioValue:n.IS,field:"country",value:"",extensibleType:i.MULTISELECT,options:l,placeholder:"Select countries"}},{fields:{name:"Customer Name",checkbox:"customerNameCheckbox",checkboxValue:!1,radio:"customerNameRadio",radioValue:n.IS,field:"customerName",value:"",extensibleType:i.INPUT,disabledRadio:n.ISNOT}},{fields:{name:"Customer Email",checkbox:"customerEmailCheckbox",checkboxValue:!1,radio:"customerEmailRadio",radioValue:n.IS,field:"customerEmail",value:"",extensibleType:i.INPUT,disabledRadio:n.ISNOT}},{fields:{name:"Referrer",checkbox:"referrerCheckbox",checkboxValue:!1,radio:"referrerRadio",radioValue:n.IS,field:"referrer",value:"",extensibleType:i.INPUT}},{fields:{name:"Customer ID",checkbox:"customerIdCheckbox",checkboxValue:!1,radio:"customerIdRadio",radioValue:n.IS,field:"customerId",value:"",extensibleType:i.INPUT,disabledRadio:n.ISNOT}},{fields:{name:"Customer UUID",checkbox:"customerUuidCheckbox",checkboxValue:!1,radio:"customerUuidRadio",radioValue:n.IS,field:"customerUuid",value:"",extensibleType:i.INPUT,disabledRadio:n.ISNOT}}],c=[{fields:{name:"Transaction ID",checkbox:"transactionIdCheckbox",checkboxValue:!1,radio:"transactionIdRadio",radioValue:n.IS,field:"transactionId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset ID",checkbox:"assetIdCheckbox",checkboxValue:!1,radio:"assetIdRadio",radioValue:n.IS,field:"assetId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset Type",checkbox:"assetTypeCheckbox",checkboxValue:!1,radio:"assetTypeRadio",radioValue:n.IS,field:"assetType",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset Title",checkbox:"assetTitleCheckbox",checkboxValue:!1,radio:"assetTitleRadio",radioValue:n.IS,field:"assetTitle",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Currency",checkbox:"currencyCheckbox",checkboxValue:!1,radio:"currencyRadio",radioValue:n.IS,field:"currency",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Payment Type",checkbox:"paymentTypeCheckbox",checkboxValue:!1,radio:"paymentTypeRadio",radioValue:n.IS,field:"paymentType",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Payment Provider",checkbox:"paymentProviderCheckbox",checkboxValue:!1,radio:"paymentProviderRadio",radioValue:n.IS,field:"paymentProvider",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Referrer",checkbox:"referrerCheckbox",checkboxValue:!1,radio:"referrerRadio",radioValue:n.IS,field:"referrer",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}}],s=[{fields:{name:"Asset ID",checkbox:"assetIdCheckbox",checkboxValue:!1,radio:"assetIdRadio",radioValue:n.IS,field:"assetId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset Title",checkbox:"assetTitleCheckbox",checkboxValue:!1,radio:"assetTitleRadio",radioValue:n.IS,field:"assetTitle",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Countries",checkbox:"countriesCheckbox",checkboxValue:!1,radio:"countriesRadio",radioValue:n.IS,field:"countries",value:"",extensibleType:i.MULTISELECT,options:l,placeholder:"Select countries"}},{fields:{name:"Referrer",checkbox:"referrerCheckbox",checkboxValue:!1,radio:"referrerRadio",radioValue:n.IS,field:"referrer",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Payment Provider",checkbox:"paymentProviderCheckbox",checkboxValue:!1,radio:"paymentProviderRadio",radioValue:n.IS,field:"paymentProvider",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Status",checkbox:"statusCheckbox",checkboxValue:!1,radio:"statusRadio",radioValue:n.IS,field:"status",value:"",extensibleType:i.MULTISELECT,options:[{value:"recurrent",label:"recurrent"},{value:"past_due",label:"past due"},{value:"unpaid",label:"unpaid"},{value:"canceled",label:"canceled"},{value:"free-trial",label:"free trial"},{value:"ended",label:"ended"},{value:"incomplete",label:"incomplete"},{value:"incomplete_expired",label:"incomplete expired"},{value:"paused",label:"paused"}]}},{fields:{name:"Client ID",checkbox:"clientIdCheckbox",checkboxValue:!1,radio:"clientIdRadio",radioValue:n.IS,field:"clientId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}}],u=[{fields:{name:"Customer ID",checkbox:"customerIdCheckbox",checkboxValue:!1,radio:"customerIdRadio",radioValue:n.IS,field:"customerId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Customer Email",checkbox:"customerEmailCheckbox",checkboxValue:!1,radio:"customerEmailRadio",radioValue:n.IS,field:"customerEmail",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset ID",checkbox:"assetIdCheckbox",checkboxValue:!1,radio:"assetIdRadio",radioValue:n.IS,field:"assetId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Asset Title",checkbox:"assetTitleCheckbox",checkboxValue:!1,radio:"assetTitleRadio",radioValue:n.IS,field:"assetTitle",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}},{fields:{name:"Item Access ID",checkbox:"itemAccessIdCheckbox",checkboxValue:!1,radio:"itemAccessIdRadio",radioValue:n.IS,field:"itemAccessId",value:[],extensibleType:i.MULTIINPUT,placeholder:"Add multiple values"}}],d={audience:["country","customer_name","customer_email","referrer","customer_id","customer_uuid"],transactions:["transaction_id","asset_id","asset_type","asset_title","currency","payment_type","payment_provider","referrer"],subscriptions:["asset_id","asset_title","countries","referrer","payment_provider","status","client_id"],access:["customer_id","customer_email","asset_id","asset_title","item_access_id"]},p={audience:o,transactions:c,subscriptions:s,access:u}},860:function(e,t,a){"use strict";a.d(t,"d",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return l})),a.d(t,"a",(function(){return I}));var n,i,r,l,o=a(23),c=a(2),s=a.n(c),u=a(19),d=a(294),p=a.n(d),m=a(14),f=a(11),h=a(887),b=a(882),v=a(888);!function(e){e[e.Preview=0]="Preview",e[e.Templates=1]="Templates",e[e.PriceOptions=2]="PriceOptions",e[e.Content=3]="Content",e[e.ContentType=4]="ContentType",e[e.Restrictions=5]="Restrictions",e[e.Metadata=6]="Metadata",e[e.EventBriteEvent=7]="EventBriteEvent",e[e.GiftDetails=8]="GiftDetails",e[e.Donations=9]="Donations",e[e.LiveLike=10]="LiveLike"}(n||(n={})),function(e){e[e.Preview=0]="Preview",e[e.PriceOptions=1]="PriceOptions",e[e.ManageAssets=2]="ManageAssets",e[e.Metadata=3]="Metadata"}(i||(i={})),function(e){e[e.Details=0]="Details"}(r||(r={})),function(e){e[e.Preview=0]="Preview",e[e.Templates=1]="Templates",e[e.CodeOptions=2]="CodeOptions",e[e.Content=3]="Content",e[e.Restrictions=4]="Restrictions",e[e.Metadata=5]="Metadata",e[e.EventBriteEvent=6]="EventBriteEvent"}(l||(l={}));
1var I=function(e){var t=e.submitForm,a=e.index,n=e.closePanel,i=Object(m.d)(),r=Object(m.e)((function(e){return e.items.itemDetails.selectedSectionIndex})),l=Object(m.e)((function(e){return e.items.itemDetails.shouldClosePanel}));return Object(c.useEffect)((function(){r===a&&(t(),i(Object(f.Bc)(-1)))}),[r]),Object(c.useEffect)((function(){l&&(n(),i(Object(f.Cc)(!1)),i(Object(f.Dc)(!0)))}),[l]),null};t.f=function(e){var t=e.initialValues,a=e.index,n=e.closePanel,i=e.disableFormikEffect,r=Object(u.i)(),l=r.values,d=r.submitForm,y=Object(m.d)(),T=Object(b.a)("isSaveButtonDisabled",!1),g=Object(o.a)(T,2)[1],x=Object(m.e)((function(e){return e.items.itemDetails.shouldCloseSection})),S=Object(c.useCallback)((function(){p()(l,t)&&!x?y(Object(f.Dc)(!0)):!p()(l,t)&&x&&y(Object(f.Dc)(!1))}),[l,d,x]);Object(c.useEffect)(S,[S]),Object(h.a)((function(){return S}));return s.a.createElement(s.a.Fragment,null,!i&&s.a.createElement(v.a,{onStatusChange:function(e){var t=e.isSubmitting,a=e.dirty;g(t||!a)}}),s.a.createElement(I,{index:a,closePanel:n,submitForm:d}))}},882:function(e,t,a){"use strict";var n=a(23),i=a(2),r=a(193);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"editAsset",l=Object(r.b)(e,t,a),o=Object(n.a)(l,2),c=o[0],s=o[1],u=Object(i.useCallback)((function(e){return s((function(){return e}))}),[]),d=Object(i.useCallback)((function(){return s((function(e){return!e}))}),[]),p=Object(i.useCallback)((function(){return s((function(){return!0}))}),[]),m=Object(i.useCallback)((function(){return s((function(){return!1}))}),[]);return Object(i.useMemo)((function(){return[c,u,{setTrue:p,setFalse:m,toggle:d}]}),[m,p,d,c,u])}},887:function(e,t,a){"use strict";var n=a(2);t.a=function(e){var t=Object(n.useRef)(e);Object(n.useEffect)((function(){var e;return null===(e=t.current)||void 0===e?void 0:e.call(t)}),[])}},888:function(e,t,a){"use strict";a.d(t,"a",(function(){return d}));var n=a(30),i=a(2),r=a.n(i),l=a(19),o=a(358),c=a.n(o),s=a(860),u=a(887),d=function(e){var t=e.onChange,a=e.onStatusChange,n=e.validateOnMount,r=Object(l.i)(),o=r.values,c=r.isSubmitting,s=r.dirty,d=r.errors,p=r.validateForm,m=Object(i.useRef)(!0);return Object(u.a)((function(){n&&p()})),Object(i.useEffect)((function(){m.current?m.current=!1:t&&t(o)}),[o]),Object(i.useEffect)((function(){a&&a(r)}),[c,s,d]),null},p=function(e){var t=e.initialValues,a=e.onSubmit,i=e.closePanel,o=void 0===i?function(){return null}:i,u=e.formId,p=void 0===u?"asset-content":u,m=e.onChange,f=e.onStatusChange,h=e.children,b=Object(n.a)(e,["initialValues","onSubmit","closePanel","formId","onChange","onStatusChange","children"]);return r.a.createElement(l.f,Object.assign({initialValues:t,onSubmit:a},b),(function(){return r.a.createElement(l.e,{id:p},r.a.createElement(d,{onChange:null!==m&&void 0!==m?m:c.a,onStatusChange:null!==f&&void 0!==f?f:c.a,validateOnMount:b.validateOnMount}),r.a.createElement(s.f,{initialValues:t,index:s.d.Content,closePanel:o,disableFormikEffect:!0}),h)}))};t.b=p},948:function(e,t,a){"use strict";a.d(t,"a",(function(){return M}));var n=a(1),i=a(35),r=a(36),l=a(42),o=a(41),c=a(2),s=a.n(c),u=a(32),d=a.n(u),p=a(175),m=a.n(p),f=a(126),h=a.n(f),b=a(242),v=a.n(b),I=a(294),y=a.n(I),T=a(8),g=a(6),x=a(1011),S=a(37),C=a(888),k=a(1211),O=a(46),V=a(362),A=a(92),E=a(1012),j=a(127),D=g.Grid.Container,P=g.Grid.Cell,U=Object(T.default)(g.Typography).withConfig({displayName:"ReportModal__ReportDescription",componentId:"sc-1jzogu9-0"})(["font-size:0.9rem;font-style:italic;color:",";"],g.Colors.fontGray),R=Object(T.default)(P).withConfig({displayName:"ReportModal__FilterSection",componentId:"sc-1jzogu9-1"})(["padding:1.2rem 0.7rem;box-shadow:"," -1px -1px 11px 2px;border:1px solid ",";"],g.Colors.lightGray,g.Colors.lightGray),L=[{title:"Audience",tag:"audience"},{title:"Logins",tag:"logins"}],M=function(e){Object(l.a)(a,e);var t=Object(o.a)(a);function a(){var e;Object(i.a)(this,a);for(var r=arguments.length,l=new Array(r),o=0;o<r;o++)l[o]=arguments[o];return(e=t.call.apply(t,[this].concat(l))).initialState={startDate:d()().subtract(1,"month"),endDate:d()(),focusedInput:null,statusValue:"active",typeValue:"all",reportStateType:"audience",unique:"all",activeAudience:!0,activeLogins:!1,app:"default",selectedTabIndex:0,displayApplyFiltersSection:!1,selectedData:[],hideMessageAfterApply:!1,merchantId:"",showFilter:!1},e.multiselect=s.a.createRef(),e.state=e.initialState,e.initialValues=function(e){var t={};
1return(k.b[e]||[]).forEach((function(e){var a=e.fields;t[a.field]=a})),t},e.getReportInformationObject=function(){return localStorage.getItem("reportInformation")},e.handleFilterStatus=function(t){e.setState({statusValue:t,typeValue:"all"})},e.handleFilterType=function(t){e.setState({typeValue:t})},e.handleDateChange=function(t){var a=e.props.onDateChange;e.setState(Object(n.a)({},t)),a(t)},e.handleFocusChange=function(t){e.setState({focusedInput:t})},e.handleAppChange=function(t){e.setState({app:t})},e.resetState=function(t){var a=e.props.onDateChange,i=e.initialState,r=i.startDate,l=i.endDate,o=e.initialState;if("hideOptionsButton"===t){var c=e.getReportInformationObject(),s=JSON.parse(c),u=s.reportType,d=s.selectedTabIndex;u===V.a.AccountLogins&&(o=Object(n.a)(Object(n.a)({},o),{},{reportStateType:"account-logins",selectedTabIndex:d}))}e.setState(o),a({startDate:r,endDate:l})},e.toggleFilter=function(){var t=e.state.showFilter;e.setState({showFilter:!t})},e.handleGenerateReport=function(t,a){var i=e.props,r=i.hasFilters,l=i.generateReportInformation,o=i.type,c=i.reportType,s=i.reportStartDate,u=i.reportEndDate,d=e.state,p=d.reportStateType,m=d.app,f=d.statusValue,h=d.typeValue,b=d.unique,I=d.selectedTabIndex,T=d.merchantId,g=e.multiselect.current,x=Object(O.d)(k.a[o],a);if(g){var S={reportType:o===V.a.Audience?p:c,startDate:s,endDate:u,reportFields:g.getSelectedValues(),oauthApp:"default"!==m?m:"",unique:"unique"===b,status:"all",type:"all",filterParams:x};(r||p!==V.a.AccountLogins)&&(S.status=f,S.type=h),T&&(S.merchantID=Number(T)),l(S);var C=V.g;S.reportType===V.a.AccountLogins&&(C=Object(n.a)(Object(n.a)({},C),{},{status:"all"}));var A=v()(S,["reportType"]);y()(A,C)||localStorage.setItem("reportInformation",JSON.stringify(Object(n.a)(Object(n.a)({},S),{},{selectedTabIndex:I})))}t(),e.resetState()},e.handleAudience=function(t){var a=e.props.loadReportFields;e.setState({activeAudience:V.e[t]===V.a.Audience,activeLogins:V.e[t]===V.a.AccountLogins,reportStateType:V.e[t],selectedTabIndex:t}),a&&a(V.e[t]),V.e[t]===V.a.AccountLogins&&e.setState({unique:"all"})},e.handleUniqueStatus=function(t){e.setState({unique:t})},e.renderAudienceTabs=function(){var t=e.state,a=t.selectedTabIndex,n=t.activeAudience?"The Audience report includes customer data, such as their personal information, when they created their account etc.":"The Logins report includes the login activity data for your customers, enabling you to see who logged into their account and when.";return s.a.createElement(s.a.Fragment,null,s.a.createElement(P,{width:4},s.a.createElement(g.TabNavigation,{tabs:L,selectedTabIndex:a,onTabClick:e.handleAudience})),s.a.createElement(P,{width:4},s.a.createElement(g.Typography,{variant:"p"},n)))},e.renderFilters=function(){var t=e.state,a=t.statusValue,n=t.typeValue;return s.a.createElement(s.a.Fragment,null,s.a.createElement(P,{width:1},s.a.createElement(j.a,{tag:"dropdown_status_generate_report",fullWidth:!0,fullHeight:!0,modifiers:["fontSizeLarge"],options:V.b,value:a,onChange:e.handleFilterStatus})),s.a.createElement(P,{width:1,left:2},s.a.createElement(j.a,{fullWidth:!0,fullHeight:!0,modifiers:["fontSizeLarge"],options:"active"===a?V.d:V.f,value:n,onChange:e.handleFilterType,disabled:"all"===a})))},e.renderUniqueFilter=function(){var t=e.state,a=t.reportStateType,n=t.unique;return s.a.createElement(P,{width:1,left:a===V.a.AccountLogins?0:2},s.a.createElement(j.a,{tag:"dropdown_logins_activity",fullWidth:!0,fullHeight:!0,modifiers:["fontSizeLarge"],options:V.c,value:n,onChange:e.handleUniqueStatus}))},e.renderApplicationFilter=function(){var t=e.props.userApplications,a=e.state.app,n=h()(t,(function(e){return{value:e.id,displayName:e.name}}));return s.a.createElement(P,{width:1,left:2,middle:!0},s.a.createElement(j.a,{tag:"dropdown_status_generate_reports",fullWidth:!0,fullHeight:!0,modifiers:["fontSizeLarge"],options:n,value:a,onChange:e.handleAppChange,defaultOption:{displayName:"select OAuth app"},placeholder:"select OAuth app"}))},e.handleApplyFilters=function(){var t=e.props,a=t.reportFields.fields,n=t.onDateChange,i=e.getReportInformationObject(),r=JSON.parse(i),l=r.startDate,o=r.endD
1ate,c=r.focusedInput,s=r.status,u=r.type,p=r.reportType,m=r.unique,f=r.activeAudience,h=r.activeLogins,b=r.oauthApp,v=r.selectedTabIndex,I=r.reportFields,y=Object(x.a)(a,I);e.setState({startDate:d()(l),endDate:d()(o),focusedInput:c,statusValue:s,typeValue:u,reportStateType:p,unique:m?"unique":"all",activeAudience:f,activeLogins:h,app:"default"!==b?b:"",selectedTabIndex:v,selectedData:y,hideMessageAfterApply:!0}),n({startDate:d()(l),endDate:d()(o)})},e.hideOptionsButton=function(){e.resetState("hideOptionsButton"),localStorage.removeItem("reportInformation")},e.handleMerchantIdInputChange=function(t){t.currentTarget&&e.setState({merchantId:t.currentTarget.value})},e}return Object(r.a)(a,[{key:"componentDidUpdate",value:function(){var e=this.getReportInformationObject(),t=this.props,a=t.isModalOpened,n=t.reportType,i=this.state,r=i.hideMessageAfterApply,l=i.selectedTabIndex;if(!r&&a&&e){var o=JSON.parse(e).selectedTabIndex;this.setState({displayApplyFiltersSection:!0}),n===V.a.Audience&&l!==o&&this.setState({displayApplyFiltersSection:!1})}else this.setState({displayApplyFiltersSection:!1})}},{key:"render",value:function(){var e=this,t=this.props,a=t.type,n=t.hasFilters,i=t.userApplications,r=t.reportFields,l=r.fields,o=r.isFetching,c=t.isAdmin,u=this.state,d=u.startDate,p=u.endDate,f=u.reportStateType,h=u.focusedInput,b=u.selectedData,v=u.displayApplyFiltersSection,I=u.merchantId,y=u.selectedTabIndex;u.showFilter;return s.a.createElement(A.b,{tag:"generate_report_modal",title:"Generate report",modalName:S.a.Report,isOverflowVisible:!0,onClose:this.resetState,render:function(t){var r=t.closeModal;return s.a.createElement(g.AnalyticsPage,{tag:L[y].tag,type:"tab"},s.a.createElement(C.b,{formId:"generate-report",initialValues:e.initialValues(a),onSubmit:function(t){return e.handleGenerateReport(r,t)}},s.a.createElement(D,{columns:4,alignContent:"space-around",rowGap:"1rem"},a===V.a.Audience&&e.renderAudienceTabs(),v&&s.a.createElement(R,{middle:!0,width:4},s.a.createElement(D,{columns:7},s.a.createElement(P,{middle:!0,width:2},s.a.createElement(g.Typography,{variant:"p"},"Load previous selection?")),s.a.createElement(P,{middle:!0,width:1},s.a.createElement(g.Button,{"data-testid":"yes-button",onClick:e.handleApplyFilters,size:"sm"},"yes")),s.a.createElement(P,{middle:!0,width:1},s.a.createElement(g.Button,{"data-testid":"no-button",buttonModifiers:["buttonLink"],onClick:e.hideOptionsButton,size:"sm"},"no")))),s.a.createElement(P,{width:2,middle:!0},s.a.createElement(g.DatePicker,{startDate:d,endDate:p,onDateChange:e.handleDateChange,onFocusChange:e.handleFocusChange,focusedInput:h})),s.a.createElement(P,{width:2,left:3},s.a.createElement(D,{columns:2},n&&e.renderFilters(),f===V.a.AccountLogins&&e.renderUniqueFilter(),a!==V.a.AccountLogins&&m()(i).length>1&&e.renderApplicationFilter())),c&&s.a.createElement(P,{width:2},s.a.createElement(U,{variant:"p"},"*If no value is entered the report will include results for all merchants."),s.a.createElement(g.Input,{id:"merchantId",name:"merchantId",type:"number",placeholder:"Merchant ID",value:I,onChange:e.handleMerchantIdInputChange}))),s.a.createElement(D,null,s.a.createElement(P,{width:12,top:2},s.a.createElement(U,{variant:"p"},"*If no column is selected the report will include all available report fields."),s.a.createElement(E.a,{tag:"dropdown_select_report_columns",ref:e.multiselect,options:l,isLoading:o,name:"reportFields",placeholder:"Select report columns",selectedData:b}))),s.a.createElement(D,{columns:3,alignContent:"center",justifyContent:"center"},s.a.createElement(P,{middle:!0,left:3,top:2},s.a.createElement(g.Button,{tag:"button_generate",fullWidth:!0,buttonModifiers:["buttonPrimary"],type:"submit"},"Generate")))))}})}}]),a}(c.PureComponent);M.defaultProps={userApplications:[]}},949:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(1),i=a(6),r=a(45),l={control:function(e,t){return Object(n.a)(Object(n.a)({},e),{},{borderColor:t.isFocused?i.Colors.skyBlue:i.Colors.gray,boxShadow:"none","&:hover":{borderColor:i.Colors.skyBlue,boxShadow:"none"}})},menuPortal:function(e){return Object(n.a)(Object(n.a)({},e),{},{zIndex:9999})},multiValue:function(e){return Object(n.a)(Object(n.a)({},e),{},{borderRadius:"3px",background:Object(r.c)(.8,i.Colors.lightSkyBlue),border:"1px solid ".concat(i.Colors.skyBlue)})},multiValueLabel:function(e){return Object(n.a)(Object(n.a)({},e),{},{color:i.Colors.skyBlue})},multiValueRemove:function(e){return Object(n.a)(Object(n.a)({},e),{},{color:i.Colors.skyBlue,"&:hover":{background:"none"}})}}}}]); 2//# sourceMappingURL=4.95e848ca.chunk.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.