Liferay.Loader.define("analytics-reports-web@2.0.38/js/components/detail/Detail",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/icon","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../context/ChartStateContext","../../context/StoreContext","./KeywordsDetail","./ReferralDetail","./SocialDetail"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function({currentPage:t,handleDetailPeriodChange:a,onCurrentPageChange:d,onTrafficSourceNameChange:s,refProp:p,timeSpanOptions:y,trafficShareDataProvider:D,trafficSourcesDataProvider:m,trafficVolumeDataProvider:P}){const C=(0,l.useContext)(o.ChartDispatchContext),g=(0,l.useContext)(i.StoreDispatchContext);return l.default.createElement(l.default.Fragment,null,l.default.createElement("div",{className:"c-pt-3 c-px-3 d-flex",ref:p},l.default.createElement(r.default,{displayType:"unstyled",onClick:()=>{d({view:"main"}),s(""),C({type:"SET_LOADING"}),g({selectedTrafficSourceName:"",type:"SET_SELECTED_TRAFFIC_SOURCE_NAME"})},small:!0},l.default.createElement(n.default,{symbol:"angle-left-small"})),l.default.createElement("div",{className:"align-self-center flex-grow-1 mx-2"},l.default.createElement("strong",null,t.data.title))),(t.view===e.ORGANIC||t.view===e.PAID)&&t.data.countryKeywords.length>0&&l.default.createElement(c.default,{currentPage:t,trafficShareDataProvider:D,trafficVolumeDataProvider:P}),t.view===e.REFERRAL&&l.default.createElement(f.default,{currentPage:t,handleDetailPeriodChange:a,timeSpanOptions:y,trafficShareDataProvider:D,trafficSourcesDataProvider:m,trafficVolumeDataProvider:P}),t.view===e.SOCIAL&&l.default.createElement(u.default,{currentPage:t,handleDetailPeriodChange:a,timeSpanOptions:y,trafficShareDataProvider:D,trafficSourcesDataProvider:m,trafficVolumeDataProvider:P}))};var r=s(a("@frontend-taglib-clay$clayui/button")),n=s(a("@frontend-taglib-clay$clayui/icon")),l=(s(a("liferay!frontend-js-react-web$prop-types")),function(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var l=r?Object.getOwnPropertyDescriptor(e,n):null;l&&(l.get||l.set)?Object.defineProperty(a,n,l):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("liferay!frontend-js-react-web$react"))),o=a("../../context/ChartStateContext"),i=a("../../context/StoreContext"),c=s(a("./KeywordsDetail")),f=s(a("./ReferralDetail")),u=s(a("./SocialDetail"));function d(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}const e={DIRECT:"direct",ORGANIC:"organic",PAID:"paid",REFERRAL:"referral",SOCIAL:"social"}}}));
//# sourceMappingURL=Detail.js.map