PageSourceSearch

https://omniscent.ai/_next/static/chunks/pages/[lang]/app/topic-7690b468faba1678.js

js omniscent.ai collected 2026-10-05 15:42:57 UTC 75,856 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6213],{25457:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[lang]/app/topic",function(){return s(24568)}])},24568:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return X}});var a=s(47568),i=s(51438),n=s(52951),r=s(88029),o=s(26042),l=s(69396),d=s(29815),c=s(5950),u=s(97582),h=s(85893),g=s(67294),m=s(9008),p=s.n(m),f=s(41664),v=s.n(f),y=s(14364),b=s(29473),x=s(37742),k=(s(46799),s(16923)),w=s(99219),_=s(98847),j=s(57309),N=s(33581),S=s(20419),I=s(47565),R=s(42974),T=s(80680),C=s(20905),F=s(28634),P=s(14924),M=s(83352),O=s(31790),L=s(2305),B=s(42895),A=s(43782),V=s(59113),Z=s(35608),E="influence",z=["keywords","keyword","path","order","type","keywordgroup"],K={market:"Market",marketcountry:"Market",marketyear:"Year",brand:"Brand",notes:"Note",notesgroup:"Note group",notetype:"Note type",franchise:"Franchise",perfumer:"Perfumer",gender:"Gender",dosage:"Concentration",yearc:"Year of creation",group:"Group",groupbrand:"Brand group",groupsplit:"Olfactive family",industrial:"Supplier",claim:"Claim",distribution:"Distribution",marketing_angle:"Marketing angle",ownership:"Ownership",positioning:"Positioning",mood:"Mood",color:"Colour",pillier:"Pillar",popmin:"Popularity",popmax:"Popularity",likemin:"Likes",likemax:"Likes",marketmin:"Sell-out",marketmax:"Sell-out",silmin:"Sillage",silmax:"Sillage",longmin:"Longevity",longmax:"Longevity",sentmin:"Sentiment",sentmax:"Sentiment",firmmain:"Supplier",firmsub:"Supplier",firmspe:"Supplier",image_color:"Packaging colour",image_color_firm:"Packaging colour",tags_firm:"Tag",groupsplitgroup:"Olfactive family",discarded:"Discarded",notesgroup2:"Note group"};function D(e){if(!e)return[];var t={};return Object.keys(e).forEach((function(s){if(-1===z.indexOf(s)){var a=e[s];null!==a&&void 0!==a&&""!==a&&"all"!==a&&"null"!==a&&(Array.isArray(a)&&0===a.length||(t[K[s]||s]=!0))}})),Object.keys(t)}var q=function(e){(0,r.Z)(s,e);var t=(0,c.Z)(s);function s(e){var a;return(0,i.Z)(this,s),(a=t.call(this,e)).state={loading:!0,items:[],error:null,selectedItem:null,summary:"",summaryLoading:!0,infoMounted:!1,infoVisible:!1},a.controller=null,a.fetchedFor=null,a}return(0,n.Z)(s,[{key:"openInfo",value:function(){var e=this;this.setState({infoMounted:!0}),setTimeout((function(){return e.setState({infoVisible:!0})}),20)}},{key:"closeInfo",value:function(){var e=this;this.setState({infoVisible:!1}),setTimeout((function(){return e.setState({infoMounted:!1})}),240)}},{key:"openModal",value:function(e){this.setState({selectedItem:e})}},{key:"closeModal",value:function(){this.setState({selectedItem:null})}},{key:"componentDidMount",value:function(){this.load()}},{key:"componentDidUpdate",value:function(){var e=this.keywords();null!==e&&e!==this.fetchedFor&&this.load()}},{key:"componentWillUnmount",value:function(){this.controller&&this.controller.abort()}},{key:"keywords",value:function(){var e=this.props.filter;
1return e&&void 0!==e.keywords&&null!==e.keywords?e.keywords:null}},{key:"load",value:function(){var e=this,t=this.keywords();null!==t&&(this.fetchedFor=t,this.controller&&(this.controller.abort(),this.controller=null),t?(this.controller=new AbortController,this.setState({loading:!0,error:null,selectedItem:null,summary:"",summaryLoading:!0}),b.h.get("/get_topic_tiktok_aesthetics",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")},params:{keywords:t},signal:this.controller.signal}).then((function(s){var a=(s.data.data&&s.data.data.items||[]).map((function(e,t){return(0,l.Z)((0,o.Z)({},e),{color:Z.ZE[t%Z.ZE.length],charts:(0,P.Z)({},E,(0,Z.W$)(e.charts,E,"week"))})}));e.setState({items:a,loading:!1}),a.length>0?e.loadSummary(t):e.setState({summaryLoading:!1})})).catch((function(t){(!t||"CanceledError"!==t.name&&"AbortError"!==t.name)&&(console.log(t),e.setState({loading:!1,summaryLoading:!1,error:"Could not load TikTok aesthetics for this topic."}))}))):this.setState({loading:!1,items:[],error:null,selectedItem:null}))}},{key:"loadSummary",value:function(e){var t=this;b.h.get("/get_topic_tiktok_summary",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")},params:{keywords:e},signal:this.controller?this.controller.signal:void 0}).then((function(s){t.keywords()===e&&t.setState({summary:(s.data.data||{}).summary||"",summaryLoading:!1})})).catch((function(e){(!e||"CanceledError"!==e.name&&"AbortError"!==e.name)&&t.setState({summaryLoading:!1})}))}},{key:"renderSkeleton",value:function(){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:13,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;return(0,h.jsx)("div",{className:"skeleton-block",style:{height:t,width:e,borderRadius:3,marginBottom:s}})};return(0,h.jsxs)("div",{children:[(0,h.jsxs)("div",{className:"tt-header",children:[(0,h.jsxs)("div",{className:"tt-synthesis",children:[(0,h.jsxs)("div",{className:"tt-synthesis__head",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:15,width:15,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:11,width:230,borderRadius:3}})]}),e("97%"),e("99%"),e("94%"),e("68%",13,0)]}),(0,h.jsxs)("div",{className:"tt-figures",children:[(0,h.jsxs)("div",{className:"tt-figures__head",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:11,width:66,borderRadius:3}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:11,width:84,borderRadius:3}})]}),(0,h.jsx)("div",{className:"tt-figures__list",children:[[74,26],[86,52],[110,32],[104,96]].map((function(e,t){return(0,h.jsxs)("div",{className:"tt-figures__row",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:12,width:e[0],borderRadius:3}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:15,width:e[1],borderRadius:3}})]},"sk-fig-"+t)}))})]})]}),(0,h.jsx)("div",{className:"tr-hscroll",style:{marginTop:10},children:(0,d.Z)(Array(5)).map((function(e,t){return(0,h.jsx)("div",{className:"skeleton-block",style:{height:323,minWidth:256,width:256,borderRadius:8}},"sk-card-"+t)}))}),(0,h.jsx)("div",{className:"tt-charts",children:[0,1].map((function(e){return(0,h.jsxs)("div",{className:"tt-chart-card",children:[(0,h.jsx)("div",{className:"title-content-product",children:(0,h.jsx)("div",{className:"skeleton-block",style:{height:16,width:0===e?178:148,borderRadius:4}})}),(0,h.jsx)("div",{className:"tt-chart-card__body",style:{height:420},children:(0,h.jsx)("div",{className:"skeleton-block",style:{flex:1,borderRadius:6}})}),0===e?(0,h.jsx)("div",{className:"trc-legend",style:{paddingTop:14},children:[128,96,150,112,88,134].map((function(e,t){return(0,h.jsxs)("div",{className:"trc-legend-item",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:10,width:10,borderRadius:10}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:12,width:e,borderRadius:3}})]},"sk-leg-"+t)}))}):null]},"sk-chart-"+e)}))})]})}},{key:"renderMessage",value:function(e,t){var s=this;return(0,h.jsxs)("div",{style:{marginTop:65,marginBottom:65,fontFamily:"SPLight",fontSize:15,color:"#a0a0a0",letterSpacing:"0.02em",textAlign:"center"},children:[e,t?(0,h.jsx)("div",{className:"btn-see-more-bot",style:{margin:"18px auto 0 auto"},onClick:function(){return s.load()},children:"Try again"}):null]})}},{key:"renderKeyFigures",value:function(){var e=this,t=this.state.items,s=D(this.props.filter),a=t.reduce((function(e,t){return e+(t.hashtags||[]).reduce((function(e,t){return e+(t.volume||0)}),0)}),0),i=null;t.forEach((function(e){var t=function(e){var t=parseFloat(String(e||"").replace(/[+%,\s]/g,""));return isFinite(t)?t:null}(e.trend);null!==t&&(null===i||t>i.v)&&(i={v:t,name:e.name})}));var n=t.reduce((function(e,t){return e+(t.hashtags||[]).length}),0);return(0,h.jsxs)("div",{className:"tt-figures",children:[(0,h.jsxs)("div",{className:"tt-figures__head",children:[(0,h.jsx)("span",{className:"tt-figures__label",children:"Measured"}),(0,h.jsxs)("span",{className:"tt-figures__actions",children:[s.length>0?(0,h.jsxs)("button",{className:"tt-filter-warning",onClick:function(){return e.openInfo()},title:"This tab ignores your filters (".concat(s.join(", "),"). TikTok data is not broken down by market, brand or note."),children:[(0,h.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{flexShrink:0},children:[(0,h.jsx)("path",{d:"M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),(0,h.jsx)("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),(0,h.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),"Filters not applied"]}):null,(0,h.jsxs)("button",{className:"tt-methodology-link",onClick:function(){return e.openInfo()},children:[(0,h.jsx)(M.Z,{}),"Methodology"]})]})]}),(0,h.jsxs)("dl",{className:"tt-figures__list",children:[(0,h.jsxs)("div",{className:"tt-figures__row",children:[(0,h.jsx)("dt",{className:"tt-figures__caption",children:"Aesthetics"}),(0,h.jsx)("dd",{className:"tt-figures__value",children:t.length})]}),a>0?(0,h.jsxs)("div",{className:"tt-figures__row",children:[(0,h.jsx)("dt",{className:"tt-figures__caption",children:"Views, 90d"}),(0,h.jsx)("dd",{className:"tt-figures__value",title:"".concat((0,Z.iI)(a)," views"),children:(0,Z.pI)(a)})]}):null,n>0?(0,h.jsxs)("div",{className:"tt-figures__row",children:[(0,h.jsx)("dt",{className:"tt-figures__caption",children:"Hashtags tracked"}),(0,h.jsx)("dd",{className:"tt-figures__value",children:n})]}):null,i?(0,h.jsxs)("div",{className:"tt-figures__row tt-figures__row--wide",children:[(0,h.jsx)("dt",{className:"tt-figures__caption",children:"Fastest growing"}),(0,h.jsxs)("dd",{className:"tt-figures__value tt-figures__value--riser",title:"".concat(i.name," \u2014 ").concat(i.v>0?"+":"").concat(i.v,"%, last 4 weeks vs the 4 before"),children:[(0,h.jsx)("span",{className:"tt-figures__riser-name",children:i.name}),(0,h.jsxs)("span",{className:"tt-figures__riser-pct",children:[(0,h.jsxs)("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate(-45deg)",flexShrink:0},children:[(0,h.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,h.jsx)("polyline",{points:"12 5 19 12 12 19"})]}),i.v>0?"+":"",i.v,"%"]})]})]}):null]})]})}},{key:"renderSynthesis",value:function(){var e=this.state,t=e.summary,s=e.summaryLoading,a=e.items;return(0,h.jsxs)("div",{className:"tt-header",children:[(0,h.jsxs)("div",{className:"tt-synthesis",children:[(0,h.jsxs)("div",{className:"tt-synthesis__head",children:[(0,h.jsx)("img",{src:"/ia_sparkles.svg",alt:"",style:{height:15,width:15}}),(0,h.jsxs)("span",{className:"tt-synthesis__label",children:["What these ",a.length," aesthetics have in common"]})]}),s?(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:"97%",borderRadius:3,marginBottom:8}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:"99%",borderRadius:3,marginBottom:8}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:"94%",borderRadius:3,marginBottom:8}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:"68%",borderRadius:3}})]}):t?(0,h.jsx)("p",{className:"tt-synthesis__text",children:t}):(0,h.jsx)("p",{className:"tt-synthesis__text tt-synthesis__text--muted",children:"No synthesis available for this topic."})]}),this.renderKeyFigures()]})}},{key:"render",value:function(){var e=this,t=this.state,s=t.loading,a=t.items,i=t.error,n=t.selectedItem,r=a.filter((function(e){return e.charts&&e.charts.influence&&e.charts.influence.length>0}));return(0,h.jsxs)("div",{className:"area-content-page",children:[(0,h.jsxs)("div",{className:"sub-area-content-page-full",style:{position:"relative"},children:[!s&&!i&&a.length>0?this.renderSynthesis():null,s?this.renderSkeleton():i?this.renderMessage(i,!0):0===a.length?this.renderMessage("No TikTok aesthetic matched this topic."):(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"tr-hscroll",style:{marginTop:10},children:a.map((function(t,s){return(0,h.jsx)(L.ZP,{item:t,onOpen:e.openModal.bind(e)},t.id_trend||s)}))}),(0,h.jsxs)("div",{className:"tt-charts",children:[(0,h.jsxs)("div",{className:"tt-chart-card",children:[(0,h.jsx)("div",{className:"title-content-product",children:"View count over time"}
1),(0,h.jsx)("div",{className:"tt-chart-card__body",style:{height:420},children:(0,h.jsx)("div",{className:"trc-chart-area",children:(0,h.jsx)(A.Z,{selectedItems:a,activeDataType:E})})}),r.length>0?(0,h.jsx)("div",{className:"trc-legend",style:{paddingTop:14},children:r.map((function(e,t){return(0,h.jsxs)("div",{className:"trc-legend-item",children:[(0,h.jsx)("div",{className:"trc-legend-item__dot",style:{background:e.color}}),(0,h.jsx)("span",{className:"trc-legend-item__name",children:e.name})]},e.id_trend||t)}))}):null]}),(0,h.jsxs)("div",{className:"tt-chart-card",children:[(0,h.jsx)("div",{className:"title-content-product",children:"Growth vs volume"}),(0,h.jsx)("div",{className:"tt-chart-card__body",style:{height:420},children:(0,h.jsx)("div",{className:"trc-chart-area",children:(0,h.jsx)(V.Z,{selectedItems:a,activeDataType:E,bare:!0,onSelect:this.openModal.bind(this)})})})]})]})]})]}),n?(0,h.jsx)(B.Z,{item:n,onClose:this.closeModal.bind(this),lang:this.props.lang}):null,this.state.infoMounted?(0,h.jsxs)(O.Z,{title:"How this tab is built",visible:this.state.infoVisible,onClose:function(){return e.closeInfo()},sources:[{name:"TikTok",img:"/tiktok_icon.jpg"}],warnings:(0,d.Z)(D(this.props.filter).length>0?["Your filters (".concat(D(this.props.filter).join(", "),") do not apply here. TikTok view counts are global and carry no market, brand or note attached to them, so this tab shows the same aesthetics whatever the filter bar is set to. Only your keywords are used.")]:[]).concat(["The shortlist and the synthesis are model output, not measurement. The view figures behind each aesthetic are measured; which aesthetics belong to your topic, and what they are said to share, are judgements \u2014 treat them as a starting point for exploration.","Results are cached for 24 hours per set of keywords, so two people searching the same topic on the same day see the same shortlist."]),children:[(0,h.jsxs)("p",{children:["This tab reads TikTok, not Omniscent's product catalogue. A hashtag has no market, brand or note attached to it, so the filter bar cannot narrow what appears here \u2014",(0,h.jsx)("span",{className:"info-modal-bold",children:" only your keywords are used"}),". What you are seeing is what is happening on TikTok globally."]}),(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Step 1 \u2014 ranking."})," Every TikTok aesthetic Omniscent tracks is scored on the views its hashtags gained over the ",(0,h.jsx)("span",{className:"info-modal-bold",children:"last 90 days"}),", and the top 150 are kept. This step is pure measurement: TikTok publishes a running view total per hashtag, recorded daily, and the gain is the difference between readings."]}),(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Step 2 \u2014 selection."})," Those 150 aesthetics are given to a language model along with your keywords, which returns the ones genuinely relevant to the topic \u2014",(0,h.jsx)("span",{className:"info-modal-bold",children:" at most 10, and fewer when fewer fit"}),". An unrelated topic correctly returns nothing rather than the closest available match."]}),(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Step 3 \u2014 synthesis."})," A second model call reads the selected aesthetics and writes the paragraph above, describing the cultural mood they share."]}),(0,h.jsxs)("p",{children:["The cards, the view-count curve and the growth/volume matrix below all show",(0,h.jsx)("span",{className:"info-modal-bold",children:" measured TikTok data"})," for the selected aesthetics. Open any card to see the hashtags a figure is computed from."]})]}):null]})}}]),s}(g.Component);function G(){return(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{style:{display:"flex",width:"100%",borderTop:"1px solid #EDF0F6",marginTop:20},children:[60,65,95].map((function(e,t){return(0,h.jsx)("div",{style:{padding:"12px 18px 14px 18px",margin:"0 6px"},children:(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:e,borderRadius:4}})},t)}))})}),(0,h.jsx)("div",{className:"sub-area-content-page-full",children:(0,h.jsx)("div",{className:"area-content-page",style:{marginTop:17},children:[{label:130,score:75},{label:120,score:55},{label:70,score:90}].map((function(e,t){return(0,h.jsx)("div",{style:{flex:1,marginLeft:t>0?8:0,marginRight:t<2?8:0},children:(0,h.jsxs)("div",{className:"white-area-content",style:{marginTop:0,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:20,width:e.label,borderRadius:4,marginTop:9}}),(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",marginTop:6},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:21,width:21,borderRadius:3,marginRight:8}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:40,width:e.score,borderRadius:4}})]})]}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:60,width:150,borderRadius:4}})]})},t)}))})}),(0,h.jsxs)("div",{className:"area-content-page",children:[(0,h.jsxs)("div",{className:"sub-area-content-page-half-l",children:[(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:205,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:285,borderRadius:4,marginTop:10,marginBottom:10}}),[160,140,120,150,110].map((function(e,t){return(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:18,width:18,borderRadius:18,flexShrink:0}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:e,borderRadius:4,marginLeft:10}})]},t)}))]}),(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:180,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:210,borderRadius:4,marginTop:6}}),(0,h.jsxs)("div",{style:{marginTop:15},children:[(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",border:"1px solid rgba(0, 3, 10, 0.04)",borderRadius:8,padding:"12px 15px"},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:20,width:90,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:20,flex:1,borderRadius:4,marginLeft:10}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:28,width:90,borderRadius:7,marginLeft:10,flexShrink:0}})]}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:280,borderRadius:4,marginTop:15}})]})]}),(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:150,borderRadius:4}}),(0,h.jsx)("div",{style:{display:"flex",width:"100%",marginTop:10},children:[0,1].map((function(e){return(0,h.jsxs)("div",{style:{width:"48%",marginLeft:1===e?"4%":0},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:15,width:190,borderRadius:4,marginBottom:10}}),[150,130,170,110,140].map((function(e,t){return(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:18,width:18,borderRadius:18,flexShrink:0}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:e,borderRadius:4,marginLeft:10}})]},t)}))]},e)}))}),(0,h.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:10},children:(0,h.jsx)("div",{className:"skeleton-block",style:{height:29,width:100,borderRadius:7}})})]})]}),(0,h.jsxs)("div",{className:"sub-area-content-page-half-r",children:[(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:80,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:438,borderRadius:4,marginTop:-20}}),(0,h.jsx)("div",{style:{display:"flex",justifyContent:"center",flexWrap:"wrap",marginTop:10},children:[70,85,60,90,75].map((function(e,t){return(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:e,borderRadius:4,margin:"0 8px 6px 8px"}},t)}))}),(0,h.jsx)("div",{style:{display:"flex",width:"100%",marginTop:20},children:[0,1].map((function(e){return(0,h.jsxs)("div",{style:{width:"48%",marginLeft:1===e?"4%":0},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:230,borderRadius:4,marginBottom:10}}),[150,130,170,110,140].map((function(e,t){return(0,h.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:18,width:18,borderRadius:18,flexShrink:0}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:e,borderRadius:4,marginLeft:10}})]},t)}))]},e)}))}),(0,h.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:10},children:(0,h.jsx)("div",{className:"skeleton-block",style:{height:29,width:100,borderRadius:7}})})]}),(0,h.jsx)("div",{className:"white-area-content",children:(0,h.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:150,borderRadius:4}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:250,borderRadius:4,marginTop:6}})]}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:28,width:100,borderRadius:7,flexShrink:0}})]})}),(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:19,width:180,borderRadius:4}}),(0,h.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:20},children:[0,1].map((function(e){return(0,h.jsxs)("div",{style:{width:"50%",display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:70,width:140,borderRadius:70}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:14,width:70,borderRadius:4,marginTop:16}})]},e)}))}),(0,h.jsxs)("div",{style:{display:"flex",justifyContent:"center",marginTop:30},children:[(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:130,borderRadius:4,marginRight:30}}),(0,h.jsx)("div",{className:"skeleton-block",style:{height:13,width:110,borderRadius:4}})]})]})]})]})]})}var U=s(86154),W=s(79680),J=s(84105),H="Perfumes are weighted by how many of their reviews mention this topic \u2014 but not linearly: the weighting grows on a dampened scale, so a perfume with an unusually large volume of matching reviews (e.g. a major release) can\u2019t dominate the results the way a simple review count would.",X=function(e){(0,r.Z)(s,e);var t=(0,c.Z)(s);function s(e){var a;return(0,i.Z)(this,s),(a=t.call(this,e)).state={typeAcc:null,loadingPage:!0,loading:!1,keyword:"",savedKeyword:[],savedMarket:"",product:null,savedProduct:"",data:{},tags:"nop",type:"all",page:0,pagePr:0,reviews:[],allPr:null,products:[],loadPr:!1,loadRev:!1,maxDriver:6,showType:null,market:"all",negativeTag:!1,savedFilter:{order:"market_share_desc",type:"product",brand:null,dosage:null,discarded:null,yearc:null,gender:null,perfumer:null,franchise:null,industrial:null,groupbrand:null,claim:null,distribution:null,marketing_angle:null,ownership:null,positioning:null,notes:null,group:null,notesgroup:null,keywordgroup:null,popmin:"",popmax:"",likemin:"",likemax:"",marketmin:"",marketmax:"",silmin:"",silmax:"",longmin:"",longmax:"",sentmin:"",sentmax:"",marketcountry:"all",marketyear:"all",firmmain:null,firmsub:null,firmspe:null,groupsplit:null,groupsplitgroup:null,pillier:null,image_color:null,image_color_firm:null,tags_firm:null,notetype:null},tagInSwot:[],userInfoCheck:{},topicHistory:[],docNotes:{},dataNote:null,docFam:null,dataColor:null,topicMenu:"analysis",trendsAddon:!1,tagsCategory:null,tagsV2:{},baseline:{},dataNorm:{},reviewsInfoMounted:!1,reviewsInfoVisible:!1,reviewsInfoSources:[],sentimentInfoMounted:!1,sentimentInfoVisible:!1,avgRatingInfoMounted:!1,avgRatingInfoVisible:!1,notesInfoMounted:!1,notesInfoVisible:!1,fragranticaInfoSources:[],overrepNotesInfoMounted:!1,overrepNotesInfoVisible:!1,underrepNotesInfoMounted:!1,underrepNotesInfoVisible:!1,overrepColorsInfoMounted:!1,overrepColorsInfoVisible:!1,underrepColorsInfoMounted:!1,underrepColorsInfoVisible:!1,sellOutMounted:!1,sellOutVisible:!1,productsReviewsInfoMounted:!1,productsReviewsInfoVisible:!1},a.controllerPr=null,a.controllerRev=null,a}return(0,n.Z)(s,[{key:"getReviewSources",value:function(){var e=this;b.h.get("/get_review_sources",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),marketcountry:this.state.savedMarket}}).then((function(t){e.setState({reviewsInfoSources:t.data.data})})).catch((function(e){console.log(e)}))}},{key:"getFragranticaSources",value:function(){var e=this;b.h.get("/get_review_sources",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),marketcountry:"all"}}).then((function(t){var s=(t.data.data||[]).filter((function(e){return-1!==(e.name||"").toLowerCase().indexOf("fragrantica")}));e.setState({fragranticaInfoSources:s})})).catch((function(e){console.log(e)}))}},{key:"openNotesInfo",value:function(){this.getFragranticaSources(),this.setState({notesInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({notesInfoVisible:!0})}.bind(this),20)}},{key:"closeNotesInfo",value:function(){this.setState({notesInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({notesInfoMounted:!1})}.bind(this),240)}},{key:"openOverrepNotesInfo",value:function(){this.getFragranticaSources(),this.setState({overrepNotesInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({overrepNotesInfoVisible:!0})}.bind(this),20)}},{key:"closeOverrepNotesInfo",value:function(){this.setState({overrepNotesInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({overrepNotesInfoMounted:!1})}.bind(this),240)}},{key:"openUnderrepNotesInfo",value:function(){this.getFragranticaSources(),this.setState({underrepNotesInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({underrepNotesInfoVisible:!0})}.bind(this),20)}},{key:"closeUnderrepNotesInfo",value:function(){this.setState({underrepNotesInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({underrepNotesInfoMounted:!1})}.bind(this),240)}},{key:"openOverrepColorsInfo",value:function(){this.setState({overrepColorsInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({overrepColorsInfoVisible:!0})}.bind(this),20)}},{key:"closeOverrepColorsInfo",value:function(){this.setState({overrepColorsInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({overrepColorsInfoMounted:!1})}.bind(this),240)}},{key:"openUnderrepColorsInfo",value:function(){this.setState({underrepColorsInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({underrepColorsInfoVisible:!0})}.bind(this),20)}},{key:"closeUnderrepColorsInfo",value:function(){this.setState({underrepColorsInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({underrepColorsInfoMounted:!1})}.bind(this),240)}},{key:"getSellOutSources",value:function(){var e=(this.state.savedMarket||"all").toLowerCase(),t=-1!==["all","null",""].indexOf(e),s=-1!==["br","mx","co"].indexOf(e),a=[];return!t&&s||a.push({name:"Circana",img:"/circana_logo.png"}),(t||s)&&a.push({name:"Kantar",img:"/kantar_logo.png"}),a}},{key:"openSellOutInfo",value:function(){this.setState({sellOutMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({sellOutVisible:!0})}.bind(this),20)}},{key:"closeSellOutInfo",value:function(){this.setState({sellOutVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({sellOutMounted:!1})}.bind(this),240)}},{key:"openProductsReviewsInfo",value:function(){this.getReviewSources(),this.setState({productsReviewsInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({productsReviewsInfoVisible:!0})}.bind(this),20)}},{key:"closeProductsReviewsInfo",value:function(){this.setState({productsReviewsInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({productsReviewsInfoMounted:!1})}.bind(this),240)}},{key:"openReviewsInfo"
1,value:function(){this.getReviewSources(),this.setState({reviewsInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({reviewsInfoVisible:!0})}.bind(this),20)}},{key:"closeReviewsInfo",value:function(){this.setState({reviewsInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({reviewsInfoMounted:!1})}.bind(this),240)}},{key:"openSentimentInfo",value:function(){this.getReviewSources(),this.setState({sentimentInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({sentimentInfoVisible:!0})}.bind(this),20)}},{key:"closeSentimentInfo",value:function(){this.setState({sentimentInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({sentimentInfoMounted:!1})}.bind(this),240)}},{key:"openAvgRatingInfo",value:function(){this.getReviewSources(),this.setState({avgRatingInfoMounted:!0}),setTimeout(function(){!1!==this.mountPage&&this.setState({avgRatingInfoVisible:!0})}.bind(this),20)}},{key:"closeAvgRatingInfo",value:function(){this.setState({avgRatingInfoVisible:!1}),setTimeout(function(){!1!==this.mountPage&&this.setState({avgRatingInfoMounted:!1})}.bind(this),240)}},{key:"componentDidMount",value:function(){var e=this;return(0,a.Z)((function(){var t;return(0,u.__generator)(this,(function(s){switch(s.label){case 0:return e.mountPage=!0,[4,(0,y.ih)(e.props.lang)];case 1:return t=s.sent(),e.mountPage&&(document.addEventListener("mousedown",e.handleClickOutside.bind(e)),e.setState({typeAcc:t.type,userInfoCheck:t}),(0,x.S)("visit_topics_page",{type:"overview",account:t.type}),e.getInfoUser(),e.getBaseline(),e.getAllTags(),setTimeout(function(){this.handleUrl()}.bind(e),20)),[2]}}))}))()}},{key:"handleUrl",value:function(){var e=this,t=this.onRefFiltreFunc.state.filter,s=this.props.params;Object.keys(s).forEach((function(a,i){"keyword"===a&&e.setState({savedKeyword:s[a].split("%-")}),-1!==e.onRefFiltreFunc.filterList.indexOf(a)&&-1===[null,"null",void 0,""].indexOf(s[a])&&("marketcountry"===a?e.setState({market:s[a]}):t[a]="keywordgroup"===a?"and"===s[a]?"and":null:s[a])})),this.onRefFiltreFunc.setFilter(t),setTimeout(function(){this.state.savedKeyword.length>0&&this.searchKeyword(!0)}.bind(this),20)}},{key:"getBaseline",value:function(){var e=this;b.h.get("/get_baseline_charts",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){e.setState({baseline:t.data.data})})).catch((function(e){console.log(e)}))}},{key:"getAllTags",value:function(){var e=this;b.h.get("/get_tags_list",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(t){e.setState({tagsV2:t.data.data})})).catch((function(e){console.log(e)}))}},{key:"updateRandom",value:function(){this.setState({rr:Math.random()})}},{key:"updateTagInSwot",value:function(e){this.setState({tagInSwot:e})}},{key:"handleFilter",value:function(e,t){if("showType"===e&&this.setState({showType:null===this.state.showType?t:null}),"market"===e&&this.setState({market:t,showType:null}),"tagsSwot"===e){var s=this.state.tagInSwot;null===t?s=[]:-1===s.indexOf(t)?s.push(t):s.splice(s.indexOf(t),1),this.setState({tagInSwot:s})}}},{key:"componentWillUnmount",value:function(){this.mountPage=!1,document.removeEventListener("mousedown",this.handleClickOutside.bind(this))}},{key:"handleClickOutside",value:function(e){"modal-filtre-open-multi-id"!==e.srcElement.id&&null!==this.state.showType&&this.setState({showType:null})}},{key:"getInfoUser",value:function(){var e=this;b.h.get("/get_info_user",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),topic:"y"}}).then((function(t){e.setState({productGroup:t.data.product_group,topicHistory:t.data.topic_history,trendsAddon:!0===t.data.trends_addon,loadingPage:!1})}
1)).catch((function(e){console.log(e)}))}},{key:"getKeywordGroupValue",value:function(){var e=this.onRefFiltreFunc&&this.onRefFiltreFunc.state?this.onRefFiltreFunc.state.filter:this.state.savedFilter;return e&&"and"===e.keywordgroup?"and":null}},{key:"getTopicFilterHeaders",value:function(){var e=this.onRefFiltreFunc&&this.onRefFiltreFunc.state?this.onRefFiltreFunc.state.filter:{},t=JSON.parse(JSON.stringify(e||{}));return"and"!==t.keywordgroup&&delete t.keywordgroup,t}},{key:"toggleKeywordGroup",value:function(){if(!this.state.loading){var e="and"===this.getKeywordGroupValue()?null:"and";this.onRefFiltreFunc.handleFilter("keywordgroup",e),setTimeout(function(){this.searchKeyword(!0)}.bind(this),20)}}},{key:"createProductGroup",value:function(e,t){var s=this;this.setState({creatingGroup:!0});var a={name:e};b.h.post("/create_product_group_user",a,{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(a){var i=s.state.productGroup;i.push(a.data.data),s.setState({productGroup:i,creatingGroup:!1}),(0,I.Z)("cluster_created","good",s.props.lang,1e3,!1,{name:e}),s.handleToProductGroup(t,a.data.data.id,!0)})).catch((function(e){console.log(e)}))}},{key:"handleToProductGroup",value:function(e,t){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this,i=this.state.productGroup,n=null,r="",o={product_id:e,product_group_id:t};i.forEach((function(e){e.id===t&&(n=e)})),r=-1!==n.product_ids.indexOf(e)?"product_removed_cluster":"product_added_cluster",b.h.post("/handle_product_group_user",o,{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token")}}).then((function(e){a.setState({productGroup:e.data.data}),s||(0,I.Z)(r,"good",a.props.lang,1e3)})).catch((function(e){console.log(e)}))}},{key:"searchKeyword",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this;try{this.controllerPr.abort(),this.controllerRev.abort(),this.setState({loadPr:!1,loadRev:!1})}catch(n){}var s=this.state.savedKeyword;e?this.setState({loading:!0,savedFilter:JSON.parse(JSON.stringify(this.onRefFiltreFunc.state.filter)),savedMarket:JSON.parse(JSON.stringify(this.state.market)),products:[],reviews:[]}):(-1===s.indexOf(this.state.keyword)&&this.state.keyword.length>2&&s.push(JSON.parse(JSON.stringify(this.state.keyword))),this.setState({loading:!0,savedKeyword:s,keyword:"",savedFilter:JSON.parse(JSON.stringify(this.onRefFiltreFunc.state.filter)),savedMarket:JSON.parse(JSON.stringify(this.state.market)),products:[],reviews:[]}));var a="";s.forEach((function(e,t){a=t>0?a+"%-"+e:a+e}));var i=this.getTopicFilterHeaders();b.h.get("/search_keyword_driver",{headers:(0,l.Z)((0,o.Z)({Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),keywords:a,keyword:this.state.keyword,market:this.state.market},i),{path:this.props.rout.asPath})}).then((function(e){t.mountPage&&(t.onRefFiltreFunc.handlePage(1,t.state.market,a),t.setState({data:e.data.data,dataNorm:e.data.data_norm,loading:!1,docNotes:e.data.doc_notes,docFam:e.data.data_fam,dataNote:e.data.data_note,dataColor:e.data.data_color,tagsCategory:e.data.tags_category}),setTimeout(function(){this.saveSearchKeyword(),this.searchProducts(!0)}.bind(t),20))})).catch((function(e){console.log(e)}))}},{key:"saveSearchKeyword",value:function(){var e=this.state.savedKeyword,t="";e.forEach((function(e,s){t=s>0?t+"%-"+e:t+e})),b.h.get("/save_search_keyword",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),keywords:t,keyword:this.state.keyword,market:this.state.market,path:this.props.rout.asPath}}).then((function(e){})).catch((function(e){console.log(e)}))}},{key:"searchProducts",value:function(e){var t=this,s=this.state.pagePr,a=this.state.savedKeyword,i=this.state.savedMarket,n=(this.state.savedFilter,this.state.savedKeyword),r="";n.forEach((function(e,t){r=t>0?r+"%-"+e:r+e})),e?s=0:s+=1,this.setState({loadPr:!0}),this.controllerPr=new AbortController;var l=this.getTopicFilterHeaders();b.h.get("/products_driver",{signal:this.controllerPr.signal,headers:(0,o.Z)({Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),keywords:r,keyword:a,pageP:s,market:i},l)}
1).then((function(a){if(t.mountPage){var i=a.data.data,n=t.state.products;n=e?i:n.concat(i),e?t.setState({products:n,pagePr:s,allPr:a.data.nbr_product,loadPr:!1}):t.setState({products:n,pagePr:s,loadPr:!1}),setTimeout(function(){this.searchReview(!0)}.bind(t),20)}})).catch((function(e){console.log(e),setTimeout(function(){this.searchReview(!0)}.bind(t),20)}))}},{key:"searchReview",value:function(e){var t=this,s=this.state.page,a=this.state.type,i=this.state.savedKeyword,n=this.state.savedMarket,r=(this.state.savedFilter,this.state.savedKeyword),l="";r.forEach((function(e,t){l=t>0?l+"%-"+e:l+e})),e?(s=0,a="all"):s+=1,this.setState({loadRev:!0}),this.controllerRev=new AbortController;var d=this.getTopicFilterHeaders();b.h.get("/reviews_driver",{signal:this.controllerRev.signal,headers:(0,o.Z)({Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),keywords:l,keyword:i,pageP:s,typepage:a,market:n},d)}).then((function(i){if(t.mountPage){var n=i.data.data,r=t.state.reviews;r=e?n:r.concat(n),t.setState({reviews:r,page:s,type:a,loadRev:!1})}})).catch((function(e){console.log(e)}))}},{key:"getTr",value:function(e,t,s,a){var i=e.rating,n=i.le_2?i.le_2:0,r=i.eq_5?i.eq_5:0,o=t.le_2?t.le_2:0,l=t.eq_5?t.eq_5:0,d=n?100*o/n:0,c=r?100*l/r:0,u=c>d?d:c;if("all"===a){if("le_2"===s)return parseFloat(d.toFixed(1));if("eq_5"===s)return parseFloat(c.toFixed(1))}else{if(a)return parseFloat(u.toFixed(1));if("le_2"===s)return parseFloat((d-u).toFixed(1));if("eq_5"===s)return parseFloat((c-u).toFixed(1))}return 0}},{key:"transformChart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this,i={labels:[],datasets:[]};return i.datasets=s?[{label:"negative",backgroundColor:"rgba(255,104,105,1)",borderColor:[],hoverBackgroundColor:"rgba(255,104,105,0.6)",hoverBorderColor:[],borderWidth:1,barPercentage:.5,stack:2,data:[],data_:[],yAxisID:"y-axis-01"},{label:"neutral",backgroundColor:"rgba(135,159,190,1)",borderColor:[],hoverBackgroundColor:"rgba(135,159,190,0.6)",hoverBorderColor:[],borderWidth:1,barPercentage:.5,stack:2,data:[],data_:[],yAxisID:"y-axis-01"},{label:"positive",backgroundColor:"rgba(105,222,22,1)",borderColor:[],hoverBackgroundColor:"rgba(105,222,22,0.6)",hoverBorderColor:[],borderWidth:1,barPercentage:.5,stack:2,data:[],data_:[],yAxisID:"y-axis-01"}]:[{label:t?this.state.tags+" sentiment":"Sentiment",backgroundColor:[],borderColor:[],hoverBackgroundColor:[],hoverBorderColor:[],borderWidth:[],barPercentage:.5,stack:1,data:[],data_:[],yAxisID:"y-axis-01"}],e.forEach((function(e,n){if(s)i.labels.length<20&&(t?i.labels.push(e.year):i.labels.push(e.name)),i.datasets[0].data.push(100*e.negative/e.total),i.datasets[1].data.push(100*e.neutral/e.total),i.datasets[2].data.push(100*e.positive/e.total),i.datasets[0].borderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(255,104,105,1)"),i.datasets[1].borderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(135,159,190,1)"),i.datasets[2].borderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(105,222,22,1)"),i.datasets[0].hoverBorderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(255,104,105,0.95)"),i.datasets[1].hoverBorderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(135,159,190,0.95)"),i.datasets[2].hoverBorderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":"rgba(105,222,22,0.95)");else{var r=null;t?r=e.sentiment:(-1===[null,void 0,""].indexOf(e.positive)&&(r=e.positive),-1===[null,void 0,""].indexOf(e.negative)&&(null===r&&(r=0),r-=e.negative),-1===[null,void 0,"",0].indexOf(e.total)&&null!==r&&(r/=e.total)),i.datasets[0].data.length<20&&(!1===a.state.negativeTag||a.state.negativeTag&&r<.2)&&(i.labels.length<20&&(t?i.labels.push(e.year):i.labels.push(e.name)),i.datasets[0].data.push(e.total),i.datasets[0].data_.push(r),i.datasets[0].backgroundColor.push((0,y.lj)(r)+", 1)"),t?i.datasets[0].borderColor.push((0,y.lj)(r)):i.datasets[0].borderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,1)":(0,y.lj)(r)+", 0)"),i.datasets[0].hoverBackgroun
1dColor.push((0,y.lj)(r)+", 0.6)"),t?i.datasets[0].hoverBorderColor.push((0,y.lj)(r)+", 0)"):i.datasets[0].hoverBorderColor.push(a.state.tags.toLowerCase()===e.name.toLowerCase()?"rgba(0,0,0,0.7)":(0,y.lj)(r)+", 0)"),i.datasets[0].borderWidth.push(2))}})),t?this.data_year_=i:s||(this.data_=i),i}},{key:"scaleDataAxesToUnifyZeroes",value:function(e,t){return t}},{key:"getSentiment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=null;return e.positive&&(a=e.positive),e.negative&&(null===a&&(a=0),a-=e.negative),e.total&&null!==a&&(a=a/e.total*10),t?null===a?"0%":0===a?"50%":a>0?50+10*a/2+"%":a<0?50- -10*a/2+"%":a:s?a/10:a?a.toFixed(2):"0"}},{key:"avgRating",value:function(e){var t=0;return[5,4,3,2,1].forEach((function(s){e["eq_"+s]&&(t+=e["eq_"+s]*s)})),e.total&&(t/=e.total),t}},{key:"getLenReview",value:function(e,t){var s=t&&t[this.state.savedMarket]?t[this.state.savedMarket]:0;return s&&e?100*e/s:0}},{key:"showTrad",value:function(e){var t=this.state.reviews;t[e].show_trad=!t[e].show_trad,this.setState({reviews:t})}},{key:"handleMouseIn",value:function(e,t,s,a){var i=[];t.spans_nested.forEach((function(e){e.tags&&-1!==e.tags.indexOf(s)&&i.push(e)})),i.length>0&&i.forEach((function(s){for(var i=document.getElementById("unique-review"+e+"-"+t.id_review).getElementsByTagName("span"),n=0;n<i.length;n++)if(i[n].id===s.id.toString()){var r={split_negative:"rgba(255,104,105,0.25)",split_positive:"rgba(105,222,22,0.25)",split_neutral:"rgba(135,159,190,0.25)"};"in"===a?(i[n].style.backgroundColor=r[s.type]?r[s.type]:"#fff",i[n].style.borderRadius="3px"):(i[n].style.backgroundColor="#fff",i[n].style.borderRadius="0px")}}))}},{key:"extractData",value:function(e){var t=this.state.products,s=this.state.market,a=[],i=["name","brand","img","reviews","reviews_total","sentiment_reviews","sentiment_total","liking","group","notes_top_3","dosage","year_creation","gender"],n="data:text/"+e+";charset=utf-8,";a.push(i),t.forEach((function(e){var t=[];i.forEach((function(a){if("notes_top_3"===a){var i="";e.notes.forEach((function(e){""!==i&&(i+=", "),i+=e.note})),t.push(i)}else if("liking"===a)null!==e[a]&&void 0!==e[a]&&-1!==e[a]?t.push((10*e[a]).toFixed(1)+"%"):t.push("");else if("reviews_percent"===a)null!==e.pop&&void 0!==e.pop&&-1!==e.pop?t.push((100*uu.reviews/uu.pop).toFixed(2)+"%"):t.push("");else if("reviews_total"===a)null!==e.pop&&void 0!==e.pop&&-1!==e.pop?t.push(e.pop):t.push("");else if("sillage"===a||"longevity"===a)null!==e[a]&&void 0!==e[a]&&-1!==e[a]?t.push(10*e[a]):t.push("");else if("sentiment"===a){var n="";"all"===s?null!==e.sentiment&&void 0!==e.sentiment&&-1!==e.sentiment&&(n=10*e.sentiment):null!==e.sentiment_country[s]&&void 0!==e.sentiment_country[s]&&-1!==e.sentiment_country[s]&&(n=10*e.sentiment_country[s]),t.push(n)}else if("sentiment_reviews"===a){n="";null!==e.sentiment_u&&void 0!==e.sentiment_u&&-1!==e.sentiment_u&&(n=10*e.sentiment_u),t.push(n)}else if("sentiment_total"===a){n="";null!==e.sentiment&&void 0!==e.sentiment&&-1!==e.sentiment&&(n=10*e.sentiment),t.push(n)}else null!==e[a]&&void 0!==e[a]?-1!==a.indexOf("_score")?-1===e[a]?t.push(""):t.push(e[a].toString().replace(".",",")):t.push(e[a]):t.push("")})),a.push(t)})),a.forEach((function(e){var t=e.join(";");n+=t+"\r\n"}));var r=this.state.savedKeyword,o="";r.forEach((function(e,t){o=t>0?o+"%-"+e:o+e}));var l="omniscent_driver_export_"+o+"."+e;if("xlsx"===e){var d=J.utils.book_new(),c=J.utils.aoa_to_sheet(a);J.utils.book_append_sheet(d,c,"Sheet1"),J.writeFile(d,l)}else{var u=encodeURI(n),h=document.createElement("a");h.setAttribute("href",u),h.setAttribute("download",l),document.body.appendChild(h),h.click()}this.setState({showType:null})}},{key:"getStyleRating",value:function(e,t){return{height:10,backgroundColor:{5:"#00fc5b",4:"#a6fc5d",3:"#ffe75d",2:"#ff9852",1:"#ff3d4b"}[e],margin:"0 2px",borderRadius:8,width:1===e&&t["eq_"+e]&&t.eq_0?(100*(t["eq_"+e]+t.eq_0)/t.total).toFixed(2)+"%":t["eq_"+e]?(100*t["eq_"+e]/t.total).toFixed(2)+"%":0}}},{key:"getReviewSent",value:function(e){var t=null;return e.type?("string"===typeof e.type&&(e.type=[e.type]),e.type.forEach((function(e){"global_negative"===e?t="negative":"global_positive"===e?t="positive":"global_neutral"===e&&(t="neutral")}
1)),t?(0,h.jsx)("div",{className:"noselect one-review-user-review-sentiment-"+t,children:t}):null):null}},{key:"getEvoColor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s="#e1e1e1";return e>0&&e<=5?s="#b0d1af":e>5&&e<=20?s="#6db070":e>20?s="#088f31":e<0&&e>=-5?s="#f0b8b8":e<-5&&e>=-20?s="#e67f83":e<20&&(s="#de425b"),(0,h.jsxs)("span",{style:{color:s,fontFamily:"SPSemi"},children:[e>0&&!t?"+":null,e.toFixed(1),"%"]})}},{key:"isSearchPossible",value:function(e){var t=!1,s=this.state.keyword;return s.length>2?-1!==this.state.savedKeyword.indexOf(s)&&this.state.market===this.state.savedMarket&&!1!==e||(t=!0):this.state.market===this.state.savedMarket&&!1!==e||(t=!0),t}},{key:"removeKeyword",value:function(e){var t=this.state.savedKeyword;t.splice(e,1),this.setState({savedKeyword:t}),setTimeout(function(){this.searchKeyword(!0)}.bind(this),20)}},{key:"getDataForScore",value:function(){var e=this.state.data,t=this.state.savedMarket,s=this.state.dataNorm,a={};return e&&e.stats&&e.stats.tags_split&&e.stats.tags_split.forEach((function(e){a[e.name]={normalized_sa:e.normalized_sa}})),{saved_market:t,tags_category:this.state.tagsCategory,general_tags_split:e&&e.stats?e.stats.general_tags_split:{},tags_split:e&&e.stats?e.stats.tags_split:{},sentiment:e&&e.stats&&e.stats.evo_sentiment_year&&e.stats.evo_sentiment_year[t]?e.stats.evo_sentiment_year[t]:[],general_sentiment:e&&e.stats&&e.stats.evo_sentiment_year_total&&e.stats.evo_sentiment_year_total[t]?e.stats.evo_sentiment_year_total[t]:[],general_rating:s&&s.global_rating_norm_year&&s.global_rating_norm_year[t]?s.global_rating_norm_year[t]:[],score:e&&e.stats?e.stats.normalized_sa:null,total_review:e&&e.stats?e.stats.total_review:{},rating:e&&e.stats?e.stats.normalized_rating:null,rating_split:e&&e.stats?e.stats.rating_split:null,general_info:e&&e.stats?e.stats.general_info:{},global_st_norm_tags:s&&s.global_st_norm_tags?s.global_st_norm_tags:{},st_norm:a}}},{key:"render",value:function(){var e=this,t={value:this.state.data},s=!0;this.onRefFiltreFunc&&Object.keys(this.onRefFiltreFunc.state.filter).forEach((function(t,a){e.onRefFiltreFunc.state.filter[t]!==e.state.savedFilter[t]&&(s=!1)}));var a=0,i=null,n=null,r=null,c=this.state.reviews,u=this.state.products,g=this.state.topicHistory;t.value&&(t.value.stats&&(t.value.stats.evo_sentiment_year_total&&t.value.stats.evo_sentiment_year_total,t.value.stats.evo_sentiment_year&&t.value.stats.evo_sentiment_year,t.value.stats.score&&(n=t.value.stats.score),t.value.stats.total_review&&(r=t.value.stats.total_review),t.value.stats.general_info&&t.value.stats.general_info.total_reviews&&t.value.stats.general_info.total_reviews,t.value.stats.general_info&&t.value.stats.general_info.general_review_analysis&&t.value.stats.general_info.general_review_analysis,t.value.stats.rating&&(i=t.value.stats.rating,t.value.stats.tags_rating&&t.value.stats.tags_rating.forEach((function(s,i){if(i<20){var n=e.getTr(t.value.stats,s,"le_2",!1),r=e.getTr(t.value.stats,s,"eq_5",!1);n+=e.getTr(t.value.stats,s,"le_2",!0);var o=(r+=e.getTr(t.value.stats,s,"eq_5",!0))>n?r:n;o>a&&(a=o)}})))));var m=!1;Object.keys(this.state.data).length>0&&!this.state.loading&&(m=!0);var f=["all","cn","us","fr","de","uk","br","es","ru"];f=(0,y.fK)(f);var b=this.state.savedMarket;-1===[null,"all"].indexOf(b)&&(b=b.toUpperCase()),this.onRefFiltreFunc&&this.onRefFiltreFunc.state&&this.onRefFiltreFunc.state.filterPossible&&this.onRefFiltreFunc.state.filterPossible.marketcountry&&this.onRefFiltreFunc.state.filterPossible.marketcountry.length>1&&(f=(0,y.fK)(JSON.parse(JSON.stringify(this.onRefFiltreFunc.state.filterPossible.marketcountry).toLowerCase())));var I=this.state.docNotes,P=this.state.dataNote,M=this.state.dataColor,L=this.state.keyword,B=this.state.savedKeyword,A=this.state.topicMenu,V={};this.getKeywordGroupValue();if(this.onRefFiltreFunc&&this.onRefFiltreFunc.state){var Z=this.state.savedKeyword,E="";Z.forEach((function(e,t){E=t>0?E+"%-"+e:E+e}));var z=this.getTopicFilterHeaders();V=(0,l.Z)((0,o.Z)({keywords:E,keyword:this.state.keyword,market:this.state.market},z),{path:this.props.rout.asPath})}return(0,h.jsxs)("div",{className:"container-withbg-list",style:{overflowX:"hidden"},children:[(0,h.jsx)(p(),{children:(0,h.jsx)("title",{children:"Topics"})}),(0,h.jsx)("div",{className:"title-top-list",id:"len-list-tr",children:"Topics"}),(0,h.jsx)("div",{className:"area-content-page",style:{marginTop:20,positive:"relative"},children:(0,h.jsxs)("div",{className:"sub-area-content-page-full",style:{positive:"relative",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,h.jsxs)("div",{style:{display:"flex",position:"relative"},children:[(0,h.jsx)("input",{value:L,placeholder:"Keyword...",onChange:function(t){return e.setState({keyword:t.target.value})},className:"list-filter-listing-unique-abs-input",style:{paddingLeft:16,width:250}}),L.length>0?(0,h.jsx)("img",{alt:"search",src:"/close.svg",className:"search-inc-inpu-header logo-header-desk",style:{left:225,cursor:"pointer",top:"57%",filter:"contrast(0)",height:11,zIndex:1},onClick:function(){e.setState({keyword:""})}}):null,(0,h.jsx)("div",{className:"list-filter-listing-unique-abs-input-btn transition-300",onClick:function(){return e.isSearchPossible(s)?e.searchKeyword():null},style:this.isSearchPossible(s)?{marginLeft:2}:{marginLeft:2,cursor:"default",backgroundColor:"#4a4a4a"},children:"Search"}),(0,h.jsx)("div",{style:{display:"flex",alignItems:"stretch"},children:B.map((function(t,s){return(0,h.jsxs)("div",{onClick:function(){return e.state.loading?null:e.removeKeyword(s)},className:"list-filter-listing-unique",style:{marginRight:8,backgroundColor:"rgba(65, 132, 252, 0.5)",color:"#fff",height:"auto",display:"flex",alignItems:"center"},children:[t,(0,h.jsx)("svg",{className:"list-filter-listing-unique-arrow noselect",width:"10",height:"10",viewBox:"0 0 12 12",fill:"none",style:{height:12,right:10},children:(0,h.jsx)("path",{d:"M1 1L11 11M11 1L1 11",stroke:"#fff",strokeWidth:"1.8",strokeLinecap:"round"})})]},"list_ks"+s)}))})]}),(0,h.jsx)("div",{children:(0,h.jsx)(j.Z,{id:"modal-filtre-open-multi-id",showType:this.state.showType,data:this.state.market,dataList:f,handleFilter:this.handleFilter.bind(this),type:"market",moreInfoShow:"Market: ",isDriver:!1,right:!0})})]})}),(0,h.jsx)(N.Z,{onRefFiltreFunc:function(t){return e.onRefFiltreFunc=t},updateRandom:this.updateRandom.bind(this),driver:!0,type:"product"}),this.state.loading?(0,h.jsx)(G,{}):m?null:0===g.length?(0,h.jsx)("div",{style:{marginTop:65,fontFamily:"SPLight",fontSize:15,color:"#acacac",letterSpacing:"0.02em",textAlign:"center"},children:this.state.loadingPage?"":"Start by adding a keyword"}):(0,h.jsxs)("div",{style:{},children:[(0,h.jsx)("div",{className:"explore-title",style:{marginTop:25},children:"Last topics explored"}),(0,h.jsx)("div",{style:{display:"flex"},children:g.map((function(t,s){return(0,h.jsx)(v(),{href:(0,y.DW)(e.props.lang,t.path.replace("/en/","")),children:(0,h.jsx)("a",{className:"clean-a",children:(0,h.jsxs)("div",{className:"explore-topics-unique noselect",children:[0===t.keywords.length?(0,h.jsx)("span",{style:{fontStyle:"italic"},children:"Only filter"}):t.keywords.replace(/%-/g,", "),(0,h.jsx)("img",{alt:"",src:"/arrow_dart.png",className:"explore-topics-unique-img"})]})})},"list_histo"+s)}))})]}),m&&n&&i?(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{className:"menu-product-page noselect",style:{borderRadius:0,border:0,borderBottom:"1px solid rgba(0, 3, 10, 0.10)",marginTop:20,position:"relative"},children:["analysis","products","all_comments"].concat((0,d.Z)(this.state.trendsAddon?["tiktok_aesthetics"]:[])).map((function(t,s){return(0,h.jsxs)("div",{className:"transition-300 menu-product-page-unique".concat(A===t?"-select":""),style:{padding:"12px 18px 14px 18px",margin:0},onClick:function(){e.setState({topicMenu:t}),(0,x.D)(e.props.rout.asPath,"topic_page_"+t)},children:["charts"===t?"Add. Charts":t.replace("_"," "),"tiktok_aesthetics"===t?(0,h.jsx)("span",{className:"menu-tab-badge",children:"Beta"}):null]},"menu-comments-"+t)}))})}):null,m&&n&&i&&"analysis"===A?(0,h.jsx)(R.Z,{data:this.getDataForScore(),compoType:"driver",namePf:"Topic",commentsFilter:{market:this.state.savedMarket,source:"all"},summaryFilter:V,onRefOvwScore:function(t){return e.onRefOvwScore=t},loadingComment:!1,fromDriver:!0,handleClickSwot:function(){return null},type:"topic",openSentimentInfo:this.openSentimentInfo.bind(this),openAvgRatingInfo:this.openAvgRatingInfo.bind(this),openReviewsInfo:this.openReviewsInfo.bind(this)},"--driver"):null,m&&n&&i?(0,h.jsxs)("div",{className:"area-content-page",children:["analysis"===A?(0,h.jsxs)("div",{className:"sub-area-content-page-half-l",children:[m&&P?(0,h.jsx)(_.Z,{data:P.note_percent,dataTotal:P.note_percent_total,dataRank:P.note_rank,docNotes:I,inDriver:!0,onlyFam:!0,docFam:this.state.docFam,dataRankBase:P.note_rank_baseline,baseline:this.state.baseline}):null,(0,h.jsx)(C.Z,{onRefSummaryFly:function(t){return e.onRefSummaryFly=t}
1,filter:V,loadingGraphListLoading:{},tagsV2:this.state.tagsV2,totalRev:this.getDataForScore().total_review,inDriver:!0}),m&&M?(0,h.jsx)(w.Z,{onRefColorTab:function(t){return e.onRefColorTab=t},data:M,getEvoColor:this.getEvoColor.bind(this),driver:!0,baseline:this.state.baseline,defaultGender:this.onRefFiltreFunc.state.filter.gender,openOverrepColorsInfo:this.openOverrepColorsInfo.bind(this),openUnderrepColorsInfo:this.openUnderrepColorsInfo.bind(this)}):null]}):null,"analysis"===A?(0,h.jsxs)("div",{className:"sub-area-content-page-half-r",children:[null,m&&P?(0,h.jsx)(_.Z,{onRefNotesTab:function(t){return e.onRefNotesTab=t},data:P.note_percent,dataTotal:P.note_percent_total,dataRank:P.note_rank,docNotes:I,inDriver:!0,hideFam:!0,docFam:this.state.docFam,dataRankBase:P.note_rank_baseline,baseline:this.state.baseline,defaultGender:this.onRefFiltreFunc.state.filter.gender,openNotesInfo:this.openNotesInfo.bind(this),openOverrepNotesInfo:this.openOverrepNotesInfo.bind(this),openUnderrepNotesInfo:this.openUnderrepNotesInfo.bind(this)}):null,(0,h.jsx)(F.Z,{onRefWordcloudFly:function(t){return e.onRefWordcloudFly=t},filter:V,loadingGraphListLoading:{},tagsV2:this.state.tagsV2,inDriver:!0}),m&&t.value.sill_long||t.value.sill_long_all_global?(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsx)("div",{className:"title-content-product",style:{filter:"unset",display:"flex",position:"relative"},children:"Sillage & Longevity"}),(0,h.jsxs)("div",{style:{marginTop:20},children:[(0,h.jsx)(T.Z,{data:t.value.sill_long_all_global?t.value.sill_long_all_global:t.value.sill_long?t.value.sill_long:null,all:t.value.sill_long_all,global:!!t.value.sill_long_all_global}),(0,h.jsx)(U.Z,{items:[{key:"filtered",label:"Avg. filtered products",color:W.vU},{key:"all",label:"Avg. all products",color:W.$_}],style:{marginTop:30}})]})]}):null]}):null]}):null,!this.state.loading&&u.length>0?"products"!==A?null:(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{className:"sub-area-content-page-full",children:(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsxs)("div",{className:"title-content-product",children:["Products",this.state.loading?null:this.state.userInfoCheck&&!0===this.state.userInfoCheck.export?(0,h.jsxs)("div",{onClick:function(){return e.setState({showType:"extract"})},className:"create-cluster-btn transition-300",style:{right:26,top:-8,position:"absolute"},children:[(0,h.jsx)("img",{alt:"",className:"create-cluster-img noselect",src:"/icon_extract.png"}),(0,h.jsx)("div",{className:"create-cluster-btn-txt noselect",style:{textTransform:"capitalize"},children:"Extract data"}),"extract"===this.state.showType?(0,h.jsxs)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"create-cluster-div",style:{width:225,zIndex:3},children:[(0,h.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.extractData("csv")},children:(0,h.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,h.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Export actual products as CSV"})})}),(0,h.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.extractData("xlsx")},children:(0,h.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,h.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Export actual products as XLSX"})})})]}):null]}):null]}),(0,h.jsxs)("div",{children:[(0,h.jsx)(S.Z,{products:u,lang:this.props.lang,p:t,market:this.state.market,keyword:B,productGroup:this.state.productGroup,handleToProductGroup:this.handleToProductGroup.bind(this),createProductGroup:this.createProductGroup.bind(this),openSentimentInfo:this.openSentimentInfo.bind(this),openSellOutInfo:this.openSellOutInfo.bind(this),openReviewsInfo:this.openProductsReviewsInfo.bind(this)}),(0,h.jsx)("div",{className:"div-btn-see-more-bot",children:(0,h.jsx)("div",{className:"btn-see-more-bot transition-300",onClick:function(){return e.state.loadPr?null:e.searchProducts(!1)},style:{marginTop:20},children:this.state.loadPr?"Loading products ...":u.length===this.state.allPr?"No more products to load":"Load more products"})})]})]})})}):this.state.loadPr?"products"!==A?null:(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsxs)("div",{className:"sub-area-content-page-full",style:{positive:"relative"},children:[(0,h.jsx)("div",{style:{marginTop:30,fontFamily:"SPLight",fontSize:15,color:"#a0a0a0",letterSpacing:"0.1em",textAlign:"center"},children:"Loading products ..."}),(0,h.jsx)("div",{className:"loader-list-items",children:(0,h.jsx)(k.Z,{black:!0})})]})}):m&&"products"===A?(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{className:"sub-area-content-page-full",style:{textAlign:"center",marginTop:40,fontFamily:"SPLight",fontSize:15,color:"#acacac",letterSpacing:"0.05em"},children:"No product for this topic request"})}):null,!this.state.loading&&c.length>0?"all_comments"!==A?null:(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{className:"sub-area-content-page-full",children:(0,h.jsxs)("div",{className:"white-area-content",children:[(0,h.jsxs)("div",{className:"title-content-product",children:["Reviews",r?(0,h.jsxs)("span",{style:{paddingLeft:5,fontFamily:"SP"},children:["(",r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),")"]}):null]}),(0,h.jsxs)("div",{children:[c.map((function(t,s){return(0,h.jsxs)("div",{className:"one-review-div",children:[(0,h.jsxs)("div",{className:"one-review-sentiment",style:c.length===s+1?{border:0}:{},children:[null===t.rating||0===t.rating?null:(0,h.jsxs)("div",{className:"one-review-u
1ser-review noselect",style:{padding:"0px 7px",display:"inline-block",marginBottom:6},children:[null===t.rating||0===t.rating?null:(0,h.jsx)("img",{alt:"star",className:"one-star-review",style:t.rating>0?{}:{opacity:.15},src:"/star.png"}),null===t.rating||0===t.rating?null:(0,h.jsx)("img",{alt:"star",className:"one-star-review",style:t.rating>1?{}:{opacity:.15},src:"/star.png"}),null===t.rating||0===t.rating?null:(0,h.jsx)("img",{alt:"star",className:"one-star-review",style:t.rating>2?{}:{opacity:.15},src:"/star.png"}),null===t.rating||0===t.rating?null:(0,h.jsx)("img",{alt:"star",className:"one-star-review",style:t.rating>3?{}:{opacity:.15},src:"/star.png"}),null===t.rating||0===t.rating?null:(0,h.jsx)("img",{alt:"star",className:"one-star-review",style:t.rating>4?{}:{opacity:.15},src:"/star.png"})]}),e.getReviewSent(t)]}),(0,h.jsxs)("div",{className:"one-review-content",style:c.length===s+1?{border:0}:{},children:[t.info_product?(0,h.jsx)("div",{className:"one-review-user-review noselect",style:{display:"inline-block",marginBottom:6,marginLeft:0},children:(0,h.jsx)(v(),{href:t.info_product.path?(0,y.DW)(e.props.lang,"app/product/"+t.info_product.path):null,children:(0,h.jsx)("a",{className:"clean-a",style:{cursor:"pointer"},target:"_blank",rel:"noreferrer",children:(0,h.jsxs)("div",{className:"one-review-user-review-origin",style:{paddingLeft:0},children:[t.info_product.name," \u2022 ",t.info_product.brand]})})},"review_pr_"+["id_product"]+s)}):null,(0,h.jsx)("div",{className:"one-review-user-review-content",id:"unique-review"+s+"-"+t.id_review,dangerouslySetInnerHTML:{__html:t.content_tagged?t.content_tagged:t.content_raw}}),t.content_tagged&&t.show_trad?(0,h.jsx)("div",{className:"one-review-user-review-content one-review-user-review-content-original",dangerouslySetInnerHTML:{__html:t.content_raw}}):null]}),(0,h.jsx)("div",{className:"one-review-tags",style:c.length===s+1?{border:0}:{},children:t.tags?0===t.tags.length?"":t.tags.map((function(a,i){return(0,h.jsx)("div",{className:"list-tags-right-u noselect",id:"list_tags_unique_".concat(i,"_").concat(s),onMouseEnter:function(i){t.content_tagged&&e.handleMouseIn(s,t,a,"in")},onMouseLeave:function(i){t.content_tagged&&e.handleMouseIn(s,t,a,"leave")},children:a.replace(/_/g," ")},"list_tags_unique_".concat(i,"_").concat(s))})):null}),(0,h.jsxs)("div",{className:"one-review-user",style:c.length===s+1?{border:0}:{},children:[(0,h.jsx)("div",{className:"one-review-user-review noselect",style:{},children:(0,h.jsxs)("div",{style:{color:"#2F71E8",fontSize:12,fontFamily:"SP",padding:0,marginTop:5},children:[t.img_source?(0,h.jsx)("img",{alt:"",src:t.img_source,style:{height:12,marginRight:6}}):null,y._r[t.origin]?y._r[t.origin]:(0,y.kC)(t.origin.replace(/DOT/g,"."))]})}),(0,h.jsx)("div",{className:"one-review-user-review noselect",style:{},children:(0,h.jsx)("div",{onClick:function(){return console.log(t.id_review,t.list_tags)},style:{color:"#737373",fontSize:12,fontFamily:"SP",padding:0},children:t.time_submitted?t.time_submitted:"Date unknown"})}),Object.keys(t.user_info).map((function(e,s){return null===t.user_info[e]||"id_user"===e||"name"===e||""===t.user_info[e]?null:(0,h.jsx)("div",{className:"one-review-user-info noselect",children:(0,h.jsxs)("div",{className:"one-review-user-review-key",children:["main_notes"===e?"Fav. notes":"nb_ratings"===e?"Nb. reviews":e.replace("_"," ")," :",(0,h.jsx)("span",{style:{paddingLeft:4},className:"one-review-user-review-value",children:t.user_info[e]})]})},"user_info"+s+e)})),(0,h.jsx)("div",{className:"one-review-user-review noselect",style:{marginBottom:5},children:(0,h.jsxs)("div",{style:{color:"#737373",fontSize:12,fontFamily:"SP",padding:0},children:[(0,h.jsx)("img",{alt:"",src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/all_flags_app/"+t.country_source.toUpperCase()+".png",style:{height:12,marginRight:6}}),y._r[t.country_source]]})})]}),(0,h.jsx)("div",{className:"one-review-action",style:c.length===s+1?{border:0}:{},children:t.content_language_expected&&"en"===t.content_language_expected?null:t.content_tagged?(0,h.jsxs)("div",{className:"one-review-u
1ser-review-content-showhide noselect",onClick:function(){return e.showTrad(s)},children:[!1===t.show_trad?"Show":"Hide"," original"]}):null})]},"list_reviews_u_"+s)})),(0,h.jsx)("div",{className:"div-btn-see-more-bot",children:(0,h.jsx)("div",{className:"btn-see-more-bot transition-300",onClick:function(){c.length===r?console.log("no more comments"):!e.state.loadRev&&e.searchReview(!1)},style:{cursor:c.length===r?"initial":"pointer"},children:this.state.loadRev?"Loading reviews ...":c.length===r?"No more comments to load":"Load more comments"})})]})]})})}):this.state.loadRev?"all_comments"!==A?null:(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsxs)("div",{className:"sub-area-content-page-full",style:{positive:"relative"},children:[(0,h.jsx)("div",{style:{marginTop:30,fontFamily:"SPLight",fontSize:15,color:"#a0a0a0",letterSpacing:"0.1em",textAlign:"center"},children:"Loading reviews ..."}),(0,h.jsx)("div",{className:"loader-list-items",children:(0,h.jsx)(k.Z,{black:!0})})]})}):m&&"all_comments"===A?(0,h.jsx)("div",{className:"area-content-page",children:(0,h.jsx)("div",{className:"sub-area-content-page-full",style:{textAlign:"center",marginTop:40,fontFamily:"SPLight",fontSize:15,color:"#acacac",letterSpacing:"0.05em"},children:"No comment for this topic request"})}):null,m&&n&&i&&this.state.trendsAddon&&"tiktok_aesthetics"===A?(0,h.jsx)(q,{filter:V,lang:this.props.lang}):null,this.state.reviewsInfoMounted?(0,h.jsxs)(O.Z,{title:"Reviews",visible:this.state.reviewsInfoVisible,onClose:function(){return e.closeReviewsInfo()},sources:this.state.reviewsInfoSources,warnings:["Reviews considered at risk of being incentivized (e.g. offered in exchange for free samples) or mutualized (e.g. sourced from a brand's own e-commerce site, where the collection method may be biased) are filtered out to protect data quality."],children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Reviews"})," shown here reflect the total number of consumer reviews available for the focus market, and for the selected observation year when one is set."]}),(0,h.jsx)("p",{children:"Reviews are defined as spontaneous textual descriptions written by consumers \u2014 either on retail websites (e.g. sephora.com, douglas.de) or on independent enthusiast websites (e.g. fragrantica.com, nosetime.com)."})]}):null,this.state.sentimentInfoMounted?(0,h.jsxs)(O.Z,{title:"Sentiment",visible:this.state.sentimentInfoVisible,onClose:function(){return e.closeSentimentInfo()},sources:this.state.reviewsInfoSources,children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Sentiment"})," is a score ranging from -10 (very negative) to 10 (very positive) that expresses how positive consumers are within their reviews."]}),(0,h.jsx)("p",{children:"The score for each review is computed by analyzing its textual content to produce a positivity evaluation \u2014 which is why sentiment can differ, sometimes significantly, from Average Rating, the simple 1-to-5-star average consumers attribute to perfumes."}),(0,h.jsx)("p",{children:"The score is normalized across sources to account for and eliminate source-specific bias: amateur websites such as Fragrantica or Nosetime tend to skew more critical, while traditional retail sources such as Sephora tend to see more positive reviews overall. Positivity can also vary from one market to another, even within reviews from the same retailer."})]}):null,this.state.avgRatingInfoMounted?(0,h.jsxs)(O.Z,{title:"Average Rating",visible:this.state.avgRatingInfoVisible,onClose:function(){return e.closeAvgRatingInfo()},sources:this.state.reviewsInfoSources,children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Average Rating"})," is the 1-to-5-star rating consumers attribute to perfumes. When a source uses a different native scale (e.g. 1 to 10), it is normalized to the 1-to-5 scale."]}),(0,h.jsx)("p",{children:"As with Sentiment, the score is normalized across sources to account for discrepancies between them \u2014 rating distributions can vary significantly from one source to another."})]}):null,this.state.notesInfoMounted?(0,h.jsxs)(O.Z,{title:"Notes",visible:this.state.notesInfoVisible,onClose:function(){return e.closeNotesInfo()},sources:this.state.fragranticaInfoSources,children:[(0,h.jsx)("p",{children:"This chart shows the average weight of each note across the perfumes matching this topic."}),(0,h.jsx)("p",{children:H}),(0,h.jsx)("p",{children:"Only the most prominent notes are shown, for clarity."}),(0,h.jsxs)("p",{children:["The ",(0,h.jsx)("span",{className:"info-modal-bold",children:"Baseline"})," dropdown lets you compare this set of perfumes against a reference cluster (e.g. \u201cAll male perfumes\u201d). When a baseline is selected, the percentage shown for each note is the percentage-point change versus that baseline, rather than 
1its raw weight."]})]}):null,this.state.overrepNotesInfoMounted?(0,h.jsxs)(O.Z,{title:"Most Overrepresented Notes",visible:this.state.overrepNotesInfoVisible,onClose:function(){return e.closeOverrepNotesInfo()},sources:this.state.fragranticaInfoSources,children:[(0,h.jsxs)("p",{children:["This list ranks notes by how much ",(0,h.jsx)("span",{className:"info-modal-bold",children:"more"})," prominent they are in the perfumes matching this topic compared to the selected ",(0,h.jsx)("span",{className:"info-modal-bold",children:"Baseline"})," (default: all perfumes)."]}),(0,h.jsx)("p",{children:H}),(0,h.jsx)("p",{children:"The percentage shown is the relative difference in weight versus the baseline: a note at +20% is 20% more prominent in your selection than in the baseline. Only notes with a minimum baseline weight of 0.3% are considered, to avoid inflating differences on statistically insignificant notes."})]}):null,this.state.underrepNotesInfoMounted?(0,h.jsxs)(O.Z,{title:"Most Underrepresented Notes",visible:this.state.underrepNotesInfoVisible,onClose:function(){return e.closeUnderrepNotesInfo()},sources:this.state.fragranticaInfoSources,children:[(0,h.jsxs)("p",{children:["This list ranks notes by how much ",(0,h.jsx)("span",{className:"info-modal-bold",children:"less"})," prominent they are in the perfumes matching this topic compared to the selected ",(0,h.jsx)("span",{className:"info-modal-bold",children:"Baseline"})," (default: all perfumes)."]}),(0,h.jsx)("p",{children:H}),(0,h.jsx)("p",{children:"The percentage shown is the relative difference in weight versus the baseline: a note at -20% is 20% less prominent in your selection than in the baseline. Only notes with a minimum baseline weight of 0.3% are considered, to avoid inflating differences on statistically insignificant notes."})]}):null,this.state.overrepColorsInfoMounted?(0,h.jsxs)(O.Z,{title:"Most Overrepresented Colors",visible:this.state.overrepColorsInfoVisible,onClose:function(){return e.closeOverrepColorsInfo()},sources:[{name:"Omniscent",img:"/omniscent.png"}],children:[(0,h.jsxs)("p",{children:["This list ranks packaging colors by how much ",(0,h.jsx)("span",{className:"info-modal-bold",children:"more"})," prominent they are in the perfumes matching this topic compared to the selected ",(0,h.jsx)("span",{className:"info-modal-bold",children:"Baseline"})," (default: all perfumes)."]}),(0,h.jsx)("p",{children:H}),(0,h.jsx)("p",{children:"The percentage shown is the relative difference in weight versus the baseline: a color at +20% is 20% more prominent in your selection than in the baseline."}),(0,h.jsx)("p",{children:"The color is extracted from each perfume\u2019s packshot (its primary packaging, e.g. the bottle) \u2014 not its secondary packaging (e.g. the box)."})]}):null,this.state.underrepColorsInfoMounted?(0,h.jsxs)(O.Z,{title:"Most Underrepresented Colors",visible:this.state.underrepColorsInfoVisible,onClose:function(){return e.closeUnderrepColorsInfo()},sources:[{name:"Omniscent",img:"/omniscent.png"}],children:[(0,h.jsxs)("p",{children:["This list ranks packaging colors by how much ",(0,h.jsx)("span",{className:"info-modal-bold",children:"less"})," prominent they are in the perfumes matching this topic compared to the selected ",(0,h.jsx)("span",{className:"info-modal-bold",children:"Baseline"})," (default: all perfumes)."]}),(0,h.jsx)("p",{children:H}),(0,h.jsx)("p",{children:"The percentage shown is the relative difference in weight versus the baseline: a color at -20% is 20% less prominent in your selection than in the baseline."}),(0,h.jsx)("p",{children:"The color is extracted from each perfume\u2019s packshot (its primary packaging, e.g. the bottle) \u2014 not its secondary packaging (e.g. the box)."})]}):null,this.state.sellOutMounted?(0,h.jsxs)(O.Z,{title:"Sell-out",visible:this.state.sellOutVisible,onClose:function(){return e.closeSellOutInfo()},sources:this.getSellOutSources(),warnings:["Circana and Kantar depend on retailers voluntarily reporting their sales data. Coverage is generally limited to major multi-specialty retailers and department stores \u2014 independent stores, brand.com e-commerce, and independent specialty chains (including BBW, Zara, Victoria\u2019s Secret, etc.) are typically not included.","To check which data source applies to a given market, open \u201cMarket Focus\u201d \u2014 the source is displayed next to each market."],learnMore:[{label:"To learn more about Sell-out",url:"https://www.notion.so/What-are-the-sell-out-data-associated-with-perfumes-1f16e5fc0d57808ead48e646efab5eb4?source=copy_link"}],children:[(0,h.jsxs)("p",{children:[(0,h.jsx)("span",{className:"info-modal-bold",children:"Sell-out"})," is the total price paid by consumers for a given product, based on Circana or Kantar panel data. It reflects Global sell-out by default, or the selected market when \u201cMarket focus\u201d is set to a specific one."]}),(0,h.jsx)("p",{children:"Sell-out figures integrate bundles and discounts, reflecting the price actually paid by consumers."})]}):null,this.state.productsReviewsInfoMounted?(0,h.jsxs)(O.Z,{title:"Reviews",visible:this.state.productsReviewsInfoVisible,onClose:function(){return e.closeProductsReviewsInfo()},sources:this.state.reviewsInfoSources,children:[(0,h.jsx)("p",{children:"Products here are ranked using a score that blends two signals, rather than ranking directly by either one."}),(0,h.jsx)("p",{children:"Ranking purely by the number of reviews mentioning this topic would favor perfumes with an unusually large total review volume, regardless of actual relevance. Ranking purely by the percentage of a perfume\u2019s reviews that mention it would favor perfumes with just one or a handful of matching reviews, where that percentage is a statistical fluke rather than a genuine signal."}),(0,h.jsx)("p",{children:"The blended score weighs a perfume\u2019s match rate more heavily as it accumulates more total reviews, so a perfume needs both a meaningful number of matching reviews and a genuinely elevated match rate \u2014 relative to the topic\u2019s overall prevalence \u2014 to rank highly. This is why neither the raw number of matching reviews nor their frequency alone determines a product\u2019s rank here."})]}):null]})}}]),s}(g.Component)}},function(e){e.O(0,[4885,8698,2251,2716,6799,185,7309,2270,680,9759,995,419,3581,2895,8915,9774,2888,179],(function(){return t=25457,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.