1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1269],{43439:function(e,t,i){i.d(t,{Z:function(){return p}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(14364),c=i(41664),u=i.n(c),h=i(47565),m=i(57309),p=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={showMore:!1,source:"all",showType:null},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside.bind(this))}},{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:"handleFilter",value:function(e,t){"showType"===e?this.setState({showType:null===this.state.showType?t:null}):this.setState({source:t,showType:null})}},{key:"render",value:function(){var e=this,t=this.props.data,i=!1,n=t.value,a=[];return"bought_together"===t.name?(n=t.value[this.state.source],a=Object.keys(t.value)):n.length>6&&(i=!0),(0,r.jsxs)("div",{style:{display:"flex",width:"100%",flexWrap:"wrap",marginTop:"bought_together"===t.name?25:0},children:["bought_together"===t.name?(0,r.jsx)("div",{style:{position:"absolute",top:5,right:25,display:"flex"},children:(0,r.jsx)(m.Z,{id:"modal-filtre-open-multi-id",showType:this.state.showType,data:this.state.source,dataList:a,handleFilter:this.handleFilter.bind(this),type:"source",right:!0})}):null,n.map((function(i,n){return!1===e.state.showMore&&n>5?null:!0===i.not_in_projects?(0,r.jsxs)("div",{onClick:function(){return(0,h.Z)("unavailable_on_account","error",e.props.lang,1e3,!1,{name:i.name})},className:"",style:{width:"33%",textAlign:"center",marginBottom:15,cursor:"pointer"},children:[i.img?(0,r.jsx)("img",{alt:"pf",src:i.img,className:"img-list-vertical",style:{width:70,height:70,margin:"auto",marginBottom:10,padding:"top_brands"==t.name?0:8}}):(0,r.jsx)("div",{className:"img-list-vertical",style:{width:70,height:70,margin:"auto",marginBottom:8,position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute big-letter",children:i.name.substring(0,1)})}),(0,r.jsxs)("div",{className:"text-list-vertical",style:{textAlign:"center",paddingLeft:0},children:[(0,r.jsx)("div",{className:"text-name-list-vertical",style:{fontFamily:"SPSemi"},children:i.name}),"brand"===t.special?null:(0,r.jsx)("div",{className:"text-dosage-list-vertical",style:{color:"#000"},children:i.brand})]})]},"unique_products_list_"+t.name+"_"+n):(0,r.jsx)(u(),{href:"brand"===t.special?(0,d.DW)(e.props.lang,"app/brand/"+i.path):(0,d.DW)(e.props.lang,"app/product/"+i.path),children:(0,r.jsx)("a",{className:"clean-a",style:{width:"33%"},children:(0,r.jsxs)("div",{className:"",style:{width:"100%",textAlign:"center",marginBottom:15},children:[i.img?(0,r.jsx)("img",{alt:"pf",src:i.img,className:"img-list-vertical",style:{width:70,height:70,margin:"auto",marginBottom:10,padding:"top_brands"==t.name?0:8}}):(0,r.jsx)("div",{className:"img-list-vertical",style:{width:70,height:70,margin:"auto",marginBottom:8,position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute big-letter",children:i.name.substring(0,1)})}),(0,r.jsxs)("div",{className:"text-list-vertical",style:{textAlign:"center",paddingLeft:0},children:[(0,r.jsx)("div",{className:"text-name-list-vertical",style:{fontFamily:"SPSemi"},children:i.name}),"brand"===t.special?null:(0,r.jsx)("div",{className:"text-dosage-list-vertical",style:{color:"#000"},children:i.brand})]})]})})},"unique_products_list_"+t.name+"_"+n)})),i?(0,r.jsx)("div",{className:"div-btn-see-more-bot",children:(0,r.jsx)("div",{className:"btn-see-more-bot transition-300",style:{margin:"auto",marginTop:20},onClick:function(){return e.setState({showMore:!e.state.showMore})},children:!1===this.state.showMore?"+ See all":"- Hide"})}):null,t.redirect_all?(0,r.jsx)(u(),{href:"brands"===t.name?(0,d.DW)(this.props.lang,"app/brand/"+t.redirect_all):(0,d.DW)(this.props.lang,"app/product/"+t.redirect_all),children:(0,r.jsx)("a",{className:"clean-a",style:{width:"100%"},children:(0,r.jsx)("div",{className:"div-btn-see-more-bot",children:(0,r.jsx)("div",{className:"btn-see-more-bot transition-300",style:{marginTop:20},children:"brands"===t.name?"See all brands":"See all products"})})})}):null]})}}]),i}(o.Component)},69236:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(51438),a=i(52951),s=i(14924),l=i(88029),r=i(5950),o=i(85893),d=i(67294),c=i(46799),u=i(14364),h=function(e){(0,l.Z)(i,e);var t=(0,r.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={toggle:{},ready:!1,showType:null,priceFilter:{interval:"day",range:"1"}},a}
1return(0,a.Z)(i,[{key:"componentDidMount",value:function(){var e=this.props.data,t=this.state.toggle;-1!==e.name.indexOf("pricing_by_time")?t=JSON.parse(JSON.stringify(e.utils.toggle)):e.data.forEach((function(e,i){t[i]="all"})),this.setState({toggle:t,ready:!0}),document.addEventListener("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:"componentWillUnmount",value:function(){document.removeEventListener("mousedown",this.handleClickOutside.bind(this))}},{key:"getLabelGr",value:function(e){var t={1:"JAN",2:"FEB",3:"MAR",4:"APR",5:"MAY",6:"JUN",7:"JUL",8:"AUG",9:"SEP",10:"OCT",11:"NOV",12:"DEC"},i=e.split("_");return i[0]===i[1]?t[i[0]]:t[i[0]]+"-"+t[i[1]]}},{key:"getDates",value:function(e,t){Date.prototype.addDays=function(e){var t=new Date(this.valueOf());return t.setDate(t.getDate()+e),t};for(var i=new Array,n=e;n<=t;)i.push(new Date(n).toISOString().slice(0,10)),n=n.addDays(1);return i}},{key:"getWeek",value:function(e){e=Date.parse(e);(e=new Date(e)).setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)}},{key:"transformChartPrice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this,n=[],a=this.state.priceFilter,s={0:"65, 132, 252",1:"27, 157, 50",2:"102, 0, 153",3:"146, 109, 39",4:"255, 222, 173",5:"131, 166, 151",6:"252, 220, 18",7:"119, 181, 254",8:"255, 218, 215",9:"220, 220, 180",10:"32, 178, 170",11:"189, 183, 107",12:"89, 183, 107",13:"189, 83, 107",14:"149, 83, 7",15:"149, 183, 7",16:"149, 83, 117",17:"22, 220, 120",18:"42, 202, 220",19:"142, 22, 220",20:"142, 10, 80",b:"20, 20, 20"};Object.keys(this.state.toggle).forEach((function(t){!0===i.state.toggle[t].show&&Object.keys(e.data[t]).forEach((function(e){-1===n.indexOf(e)&&n.push(e)}))})),n.sort();var l=this.getDates(new Date(n[0]),new Date(n[n.length-1]));if("1"===a.range?l.length>=30&&(l=l.slice(Math.max(l.length-30,1))):"3"===a.range?l.length>=90&&(l=l.slice(Math.max(l.length-90,1))):"6"===a.range&&l.length>=180&&(l=l.slice(Math.max(l.length-180,1))),"week"===a.interval){var r={},o=[];l.forEach((function(e){var t=e.substring(0,4)+"-"+i.getWeek(e);r[e]=t,-1===o.indexOf(t)&&o.push(t)})),l=o}var d={labels:l,datasets:[]},c=[];return null!==t&&l.forEach((function(e,i){t[e]?c.push(t[e]):c.push(c[c.length-1])})),Object.keys(this.state.toggle).forEach((function(n,o){if(!0===i.state.toggle[n].show){var u=[],h=[];if("day"===a.interval)l.forEach((function(t){u.push(void 0===e.data[n][t]?null:e.data[n][t].price),h.push(void 0===e.data[n][t]?"rgba(0,0,0,0)":e.data[n][t].available?"rgba(".concat(s[o],", 1)"):"rgb(170,0,0)")}));else if("week"===a.interval){var m={},p={},f={};Object.keys(r).forEach((function(i){void 0===m[r[i]]&&(m[r[i]]=[]),void 0===p[r[i]]&&(p[r[i]]=[]),void 0!==e.data[n][i]&&m[r[i]].push(e.data[n][i].price),t&&t[i]&&p[r[i]].push(t[i]),void 0===e.data[n][i]?f[r[i]]="rgba(0,0,0,0)":e.data[n][i].available?f[r[i]]="rgba(".concat(s[o],",1)"):f[r[i]]="rgb(170,0,0)"})),Object.keys(m).forEach((function(e){var t=0===m[e].length?null:Math.min.apply(Math,m[e]);u.push(t)})),Object.keys(p).forEach((function(e){var t=0===p[e].length?null:Math.min.apply(Math,p[e]);c.push(t)})),Object.keys(f).forEach((function(e){h.push(f[e])}))}d.datasets.push({label:n,backgroundColor:"rgba(".concat(s[o],",0)"),borderColor:"rgba(".concat(s[o],",1)"),borderWidth:2,pointBackgroun
1dColor:h,pointBorderColor:h,hoverBackgroundColor:"rgba(".concat(s[o],",0)"),hoverBorderColor:"rgba(".concat(s[o],",0.95)"),data:u})}})),null!==t&&d.datasets.push({label:"RSP",backgroundColor:"rgba(".concat(s.b,",0)"),borderColor:"rgba(".concat(s.b,",1)"),borderWidth:1,pointBackgroundColor:"rgba(0,0,0,0)",pointBorderColor:"rgba(0,0,0,0)",pointBorder:0,hoverBackgroundColor:"rgba(".concat(s.b,",0)"),hoverBorderColor:"rgba(".concat(s.b,",0.95)"),data:c}),d}},{key:"transformChart",value:function(e,t,i){var n=this,a=this.state.toggle[i],s={labels:[],datasets:[{label:"Nb. of reviews and avg. rating "===t.name?"Nb. of reviews":t.name,backgroundColor:"line"===e?"rgba(65,132,252,0)":"rgba(65,132,252,1)",borderColor:"rgba(65,132,252,1)",borderWidth:"line"===e?2:1,hoverBackgroundColor:"line"===e?"rgba(65,132,252,0)":"rgba(65,132,252,0.6)",hoverBorderColor:"rgba(65,132,252,0.95)",data:[],yAxisID:"y-axis-00"}]};return t.rating_by_time&&s.datasets.push({label:"Avg. Rating",type:"line",backgroundColor:"rgba(255,216,0,0)",borderColor:"rgba(255,216,0,1)",pointBackgroun
1dColor:"rgba(255,216,0,1)",borderWidth:2,hoverBackgroundColor:"rgba(255,216,0,0)",hoverBorderColor:"rgba(255,216,0,0.95)",data:[],yAxisID:"y-axis-01"}),t.mean_rating_by_time&&s.datasets.push({label:"Mean rating",type:"line",backgroundColor:"rgba(255,156,0,0)",borderColor:"rgba(255,156,0,1)",borderWidth:2,hoverBackgroundColor:"rgba(255,156,0,0)",hoverBorderColor:"rgba(255,156,0,0.95)",data:[],yAxisID:"y-axis-01"}),Object.keys(t.data[a]).forEach((function(e){s.datasets[0].data.push(t.data[a][e]),t.rating_by_time&&t.rating_by_time[a]&&(0===t.rating_by_time[a][e]?s.datasets[1].data.push(null):s.datasets[1].data.push(t.rating_by_time[a][e])),t.mean_rating_by_time&&t.mean_rating_by_time[a]&&(0===t.mean_rating_by_time[a][e]?s.datasets[2].data.push(null):s.datasets[2].data.push(t.mean_rating_by_time[a][e])),s.labels.push(n.getLabelGr(e.split("-")[0])+" "+e.split("-")[1])})),s}},{key:"transformCharts",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this,n=this.state.toggle[0],a={labels:[],datasets:[]};return e.forEach((function(e,i){t=e.type.replace("graph_",""),a.datasets.push({label:e.name,type:t,backgroundColor:"line"===t?"rgba(252,177,65,0)":"rgba(65,132,252,1)",borderColor:"line"===t?"rgba(252,177,65,1)":"rgba(65,132,252,1)",borderWidth:"line"===t?2:1,hoverBackgroundColor:"line"===t?"rgba(252,177,65,0)":"rgba(65,132,252,0.6)",hoverBorderColor:"line"===t?"rgba(252,177,65,0.95)":"rgba(65,132,252,0.95)",data:[],yAxisID:"y-axis-"+i})})),e.forEach((function(e,t){Object.keys(e.data[n]).forEach((function(s){a.datasets[t].data.push(e.data[n][s]),0===t&&a.labels.push(i.getLabelGr(s.split("-")[0])+s.split("-")[1])}))})),a}},{key:"handleToggleS",value:function(e){var t=this.state.toggle;t[e].show=!t[e].show,this.setState({toggle:t})}},{key:"handleToggle",value:function(e,t){var i=this.state.toggle;i[t]=e,this.setState({toggle:i,showType:null})}},{key:"orderAll",value:function(e){var t,i=e.indexOf("world");return-1===i&&(i=e.indexOf("all")),-1!==i&&0!==i&&(e=Object.assign([],e,(t={},(0,s.Z)(t,0,e[i]),(0,s.Z)(t,i,e[0]),t))),e}},{key:"showGraph",value:function(e){var t=!1;return Object.keys(e).forEach((function(i){Object.keys(e[i]).length>3&&(t=!0)})),t}},{key:"getNbrRetSelected",value:function(e){var t=0;return Object.keys(e).forEach((function(i){e[i].show&&(t+=1)})),t}},{key:"getPercent",value:function(e,t){if(null===t)return"";var i=(e-t)/t*100;return(0,o.jsxs)("span",{style:{paddingLeft:7,color:i<0?"red":i>0?"green":"black"},children:[i>0?"+":"",i.toFixed(2)+"%"]})}},{key:"getChart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this;if("png"===e){var a=t.chartInstance.toBase64Image(),s=document.createElement("a");s.href=a,s.download=this.props.name+"_"+this.props.data.name+".png",s.click()}else{var l=[],r=this.props.data,o="data:text/csv;charset=utf-8,";"price"===i?(l.push(["date","type","price","currency","available"]),Object.keys(r.data[0].data).forEach((function(e){!0===n.state.toggle[e].show&&Object.keys(r.data[0].data[e]).forEach((function(t){var i=r.data[0].data[e][t].price;null!==i&&(i=i.toString().replace(".",",")),l.push([t,e,i,r.data[0].data[e][t].currency,r.data[0].data[e][t].available])}))}))):(l.push(["date","type","nb_review","rating_by_time","mean_rating_by_time"]),Object.keys(r.data[0].data[this.state.toggle[0]]).forEach((function(e,t){var i=[e,n.state.toggle[0],r.data[0].data[n.state.toggle[0]][e]];r.data[0].rating_by_time&&i.push(r.data[0].rating_by_time[n.state.toggle[0]][e]),r.data[0].mean_rating_by_time&&i.push(r.data[0].mean_rating_by_time[n.state.toggle[0]][e]),l.push(i)}))),l.forEach((function(e){var t=e.join(";");o+=t+"\r\n"}));var d=encodeURI(o),c=document.createElement("a");c.setAttribute("href",d),c.setAttribute("download",this.props.name+"_"+this.props.data.name+".csv"),document.body.appendChild(c),c.click()}}},{key:"updatePriceFilter",value:function(e,t){var i=this.state.priceFilter;i[e]=t,this.setState({priceFilter:i})}},{key:"render",value:function(){var e=this,t=this.props.data,i={xAxes:[{display:!0,gridLines:{display:!1},ticks:{fontColor:"#9f9f9f"}}],yAxes:[{type:"linear",display:!0,position:"left",id:"y-axis-00",gridLines:{zeroLineColor:"#e2e2e2",color:"#f2f2f2"},ticks:{beginAtZero:!0,fontColor:"#9f9f9f"}},{type:"linear",display:!0,position:"right",id:"y-axis-01",gridLines:{display:!1},ticks:{beginAtZero:!0,stepSize:1,max:5,fontColor:"#9f9f9f"}}]}
1,n=null,a="sephora.fr",l={};if(-1!==t.name.indexOf("pricing_by_time")){var r=t.data[0].data;void 0!==r["sephora.fr"]&&void 0!==r["sephora.fr"][Object.keys(r["sephora.fr"])[Object.keys(r["sephora.fr"]).length-1]].priceRSP&&null!==r["sephora.fr"][Object.keys(r["sephora.fr"])[Object.keys(r["sephora.fr"]).length-1]].priceRSP&&(Object.keys(r["sephora.fr"]).forEach((function(e){l[e]=r["sephora.fr"][e].priceRSP?r["sephora.fr"][e].priceRSP:null})),n=r["sephora.fr"][Object.keys(r["sephora.fr"])[Object.keys(r["sephora.fr"]).length-1]].priceRSP)}var d={week:"Weekly",day:"Daily",1:"Last 30 days",3:"Last 90 days",6:"Last 180 days",all:"All time"};return!1===this.state.ready?null:(0,o.jsx)("div",{children:"graphs"===t.type?(0,o.jsxs)("div",{children:[(0,o.jsx)("div",{children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique transition-100",onClick:function(){e.setState({showType:null===e.state.showType?"cat":null})},children:[(0,o.jsx)("span",{id:"modal-filtre-open-multi-id",className:"noselect",children:u._r[this.state.toggle[0]]}),(0,o.jsx)("img",{alt:"arrow",id:"modal-filtre-open-multi-id",src:"/arrow.png",className:"list-filter-listing-unique-arrow noselect"}),"cat"===this.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-big",style:{height:226},children:(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-big-scroll scroll-medium-grey",style:{height:"calc(226px)",overflowY:"scroll"},children:(0,u.fK)(Object.keys(t.data[0].data)).map((function(t,i){return(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.handleToggle(t,0)},children:(0,o.jsxs)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:[(0,o.jsx)("div",{style:{height:20,width:20,borderRadius:20,position:"relative",overflow:"hidden",marginRight:6},children:(0,o.jsx)("img",{alt:"",src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/all_flags_app/"+t.toUpperCase()+".png",className:"center-absolute",style:{height:30,width:30,borderRadius:30}})}),(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:u._r[t]})]})},"list_subtype_filterPossible_"+i)}))})}):null]})}),(0,o.jsx)("div",{style:{height:350,padding:"20px 0 30px 0",position:"relative"},children:(0,o.jsx)(c.$Q,{ref:function(t){return e.barChart=t},data:this.transformCharts(t.data),options:{maintainAspectRatio:!1,scales:{xAxes:[{display:!0,gridLines:{display:!1},ticks:{fontColor:"#9f9f9f"}}],yAxes:[{type:"linear",display:!0,position:"left",id:"y-axis-0",gridLines:{display:!1},ticks:{beginAtZero:!0,max:5,fontColor:"#9f9f9f"}},{type:"linear",display:!0,position:"right",id:"y-axis-1",gridLines:{display:!1},ticks:{beginAtZero:!0,callback:function(e){if(e%1===0)return e},fontColor:"#9f9f9f"}}]}}})})]}):t.data.map((function(r,h){var m;return(0,o.jsxs)("div",{children:[-1!==t.name.indexOf("pricing_by_time")?!1===e.showGraph(t.data[0].data)?null:(0,o.jsx)("div",{style:{position:"absolute",top:5,right:180,display:"flex"},children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique transition-100",style:{},onClick:function(){e.setState({showType:null===e.state.showType?"interval":null})},children:[(0,o.jsxs)("span",{id:"modal-filtre-open-multi-id",className:"noselect",children:[d[e.state.priceFilter.range]," - ",d[e.state.priceFilter.interval]]}),(0,o.jsx)("img",{alt:"arrow",id:"modal-filtre-open-multi-id",src:"/arrow.png",className:"list-filter-listing-unique-arrow noselect"}),"interval"===e.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-small list-filter-listing-unique-abs-small-fw",style:{height:190,left:"unset",right:0},children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-small-scroll list-filter-listing-unique-abs-small-scroll-fw scroll-medium-grey",style:{height:190,overflowY:"scroll",width:190},children:[["1","3","6","all"].map((function(t,i){return(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.updatePriceFilter("range",t)},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsxs)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",style:{display:"flex",whiteSpace:"nowrap",alignItems:"center"},children:[(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:e.state.priceFilter.range===t?"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off area-checkbox-filter-on-b":"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off"}),(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",children:d[t]})]})})},"list_subtype_filterPossible_"+i)})),(0,o.jsx)("div",{style:{height:1,backgroundColor:"#ddd",margin:"4px 0 10px 0"}}),["day","week"].map((function(t,i){return(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.updatePriceFilter("interval",t)},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsxs)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",style:{display:"flex",whiteSpace:"nowrap",alignItems:"center"},children:[(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:e.state.priceFilter.interval===t?"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off area-checkbox-filter-on-b":"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off"}),(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",children:d[t]})]})})},"list_subtype_filterPossible_"+i)}))]})}):null]})}):null,-1!==t.name.indexOf("pricing_by_time")?!1===e.showGraph(t.data[0].data)?null:(0,o.jsx)("div",{style:{position:"absolute",top:5,right:26,display:"flex"},children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique transition-100",style:{},onClick:function(){e.setState({showType:null===e.state.showType?"cat":null})},children:[(0,o.jsxs)("span",{id:"modal-filtre-open-multi-id",className:"noselect",children:["RETAILERS (",e.getNbrRetSelected(e.state.toggle),")"]}),(0,o.jsx)("img",{alt:"arrow",id:"modal-filtre-open-multi-id",src:"/arrow.png",className:"list-filter-listing-unique-arrow noselect"}),"cat"===e.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-big list-filter-listing-unique-abs-small-fw",style:(m={left:"unset",right:0,height:226},(0,s.Z)(m,"left","unset"),(0,s.Z)(m,"right",0),m),children:(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-big-scroll list-filter-listing-unique-abs-small-scroll-fw scroll-medium-grey",style:{height:"calc(226px)",overflowY:"scroll"},children:(0,u.fK)(Object.keys(e.state.toggle)).map((function(t,i){return(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.handleToggleS(t)},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsxs)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",style:{display:"flex",whiteSpace:"nowrap",alignItems:"center"},children:[(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:e.state.toggle[t].show?"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off area-checkbox-filter-on-b":"transition-300 area-checkbox-filter-pos-fix area-checkbox-filter-off"}),(0,o.jsx)("div",{style:{marginRight:4,display:"flex",alignItems:"center"},children:(0,o.jsx)("img",{alt:"retailer",id:"modal-filtre-open-multi-id",style:{height:12},src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/all_flags_app/"+e.state.toggle[t].country.toUpperCase()+".png"})}),(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",children:t})]})})},"list_subtype_filterPossible_"+i)}))})}):null]})}):(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique transition-100",style:{position:"absolute",top:5,right:26},onClick:function(){e.setState({showType:null===e.state.showType?"cat":null})},children:[(0,o.jsx)("span",{id:"modal-filtre-open-multi-id",className:"noselect",children:u._r[e.state.toggle[0]]}),(0,o.jsx)("img",{alt:"arrow",id:"modal-filtre-open-multi-id",src:"/arrow.png",className:"list-filter-listing-unique-arrow noselect"}),"cat"===e.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-big",style:{height:226,left:"unset",right:0},children:(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-big-scroll scroll-medium-grey",style:{height:"calc(226px)",overflowY:"scroll"},children:(0,u.fK)(Object.keys(t.data[0].data)).map((function(t,i){return(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.handleToggle(t,0)},children:(0,o.jsxs)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:[(0,o.jsx)("div",{style:{height:20,width:20,borderRadius:20,position:"relative",overflow:"hidden",marginRight:6},children:(0,o.jsx)("img",{alt:"",src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/all_flags_app/"+t.toUpperCase()+".png",className:"center-absolute",style:{height:30,width:30,borderRadius:30}})}),(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:u._r[t]})]})},"list_subtype_filterPossible_"+i)}))})}):null]}),-1!==t.name.indexOf("pricing_by_time")?!1===e.showGraph(t.data[0].data)?null:(0,o.jsx)("div",{style:{height:350,padding:"0px 0 30px 0",position:"relative"},children:(0,o.jsxs)("div",{style:{marginTop:20,height:350},children:[-1!==t.name.indexOf("pricing_by_time")?!1===e.showGraph(t.data[0].data)?null:e.props.userInfoCheck&&!0===e.props.userInfoCheck.export?(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",style:{position:"absolute",top:-20,right:0},onClick:function(){e.setState({showType:null===e.state.showType?"download":null})},children:[(0,o.jsx)("span",{id:"modal-filtre-open-multi-id",className:"noselect",style:{cursor:"pointer"},children:". . ."}),"download"===e.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-small",style:{height:65,left:"unset",right:0,top:40},children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-small-scroll scroll-medium-grey",style:{height:65},children:[(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.getChart("png",e.lineChart)},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Save as .PNG"})})}),(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.getChart("csv",null,"price")},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Extract data as .CSV"})})})]})}):null]}):null:null,(0,o.jsx)(c.x1,{ref:function(t){return e.lineChart=t},data:e.transformChartPrice(r,l),options:{tooltips:{callbacks:{title:function(e){return e[0].xLabel},label:function(e){return e.yLabel?e.yLabel.toFixed(2)+"\u20ac":"-\u20ac"}}},scales:{xAxes:[{gridLines:{zeroLineColor:"#e2e2e2",color:"#f2f2f2"},ticks:{padding:10,fontColor:"#9f9f9f"}}],yAxes:[{gridLines:{zeroLineColor:"#e2e2e2",color:"#f2f2f2"},ticks:{fontColor:"#9f9f9f"}}]},maintainAspectRatio:!1,legend:{position:"bottom",labels:{boxWidth:15}}}})]})}):null,-1!==t.name.indexOf("pricing_by_time")?null:(0,o.jsxs)("div",{style:{height:350,padding:"0px 0 30px 0",position:"relative"},children:[e.props.userInfoCheck&&!0===e.props.userInfoCheck.export?(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",style:{position:"absolute",top:0,right:0},onClick:function(){e.setState({showType:null===e.state.showType?"download":null})},children:[(0,o.jsx)("span",{id:"modal-filtre-open-multi-id",className:"noselect",style:{cursor:"pointer"},children:". . ."}),"download"===e.state.showType?(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",onClick:function(e){e.stopPropagation()},className:"list-filter-listing-unique-abs-small",style:{height:68,left:"unset",right:0,top:40},children:(0,o.jsxs)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-listing-unique-abs-small-scroll scroll-medium-grey",style:{height:"calc(68px)"},children:[(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return"graph_line"===r.type?e.getChart("png",e.lineChart2):e.getChart("png",e.barChart2)},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Save as .PNG"})})}),(0,o.jsx)("div",{id:"modal-filtre-open-multi-id",className:"list-filter-brand-list transition-100",style:{display:"flex"},onClick:function(){return e.getChart("csv",null,"review")},children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt-container",id:"modal-filtre-open-multi-id",children:(0,o.jsx)("div",{className:"list-filter-brand-list-txt",id:"modal-filtre-open-multi-id",children:"Extract data as .CSV"})})})]})}):null]}):null,"graph_line"===r.type?(0,o.jsx)(c.x1,{ref:function(t){return e.lineChart2=t},data:e.transformChart("line",r,h),options:{maintainAspectRatio:!1,scales:{xAxes:[{gridLines:{zeroLineColor:"#e2e2e2",color:"#f2f2f2"},ticks:{fontColor:"#9f9f9f"}}],yAxes:[{gridLines:{zeroLineColor:"#e2e2e2",color:"#f2f2f2"},ticks:{fontColor:"#9f9f9f"}}]}}}):"graph_bar"===r.type?(0,o.jsx)(c.$Q,{ref:function(t){return e.barChart2=t},data:e.transformChart("bar",r,h),options:{tooltips:{callbacks:{label:function(e){return 1===e.datasetIndex?e.yLabel?e.yLabel.toFixed(2)+" /5":"- /5":e.yLabel?e.yLabel.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+" reviews":"- reviews"}}},maintainAspectRatio:!1,scales:i}}):null]}),-1!==t.name.indexOf("pricing_by_time")?(0,o.jsx)("div",{style:{display:"flex",flexWrap:"wrap",position:"relative",width:"100%",padding:"5px 20px 30px 20px"},children:Object.keys(e.state.toggle).map((function(i,s){return e.state.toggle[i].show?(0,o.jsxs)("div",{className:"list-retailer-pricing",children:[(0,o.jsx)("div",{style:{position:"relative",width:50,height:50,border:"1px solid #f5f5f5",borderRadius:4},children:(0,o.jsx)("img",{alt:"img",style:{width:50,height:50},src:t.utils.toggle[i].img})}),(0,o.jsxs)("div",{style:{paddingLeft:10},children:[(0,o.jsxs)("div",{style:{color:"#272829",fontSize:16,fontFamily:"SPSemi"},children:[t.utils.toggle[i].name,(0,o.jsx)("a",{href:t.utils.toggle[i].url,target:"_blank",rel:"noreferrer",children:(0,o.jsx)("img",{alt:"link",src:"/external-link 1.png",style:{height:14,marginTop:-3,marginLeft:5},className:"noselect"})})]}),(0,o.jsxs)("div",{style:{color:"#4E555B",fontSize:14,fontFamily:"SP"},children:[t.data[0].data[i][Object.keys(t.data[0].data[i])[Object.keys(t.data[0].data[i]).length-1]].price?parseFloat(t.data[0].data[i][Object.keys(t.data[0].data[i])[Object.keys(t.data[0].data[i]).length-1]].price).toFixed(2):t.data[0].data[i][Object.keys(t.data[0].data[i])[Object.keys(t.data[0].data[i]).length-1]].price," \u20ac",a===i?(0,o.jsxs)("span",{style:{paddingLeft:7},children:["(RSP: ",n,u.Aq[t.data[0].data[i][Object.keys(t.data[0].data[i])[Object.keys(t.data[0
1].data[i]).length-1]].currency],")"]}):e.getPercent(t.data[0].data[i][Object.keys(t.data[0].data[i])[Object.keys(t.data[0].data[i]).length-1]].price,n)]})]})]},"list_ret"+s+t.name):null}))}):(0,o.jsx)("div",{style:{textAlign:"center",fontFamily:"SPSemi",color:"#858585"},children:"Nb. of reviews and avg. rating "===r.name?null:r.name})]},"list_graph_content_"+h)}))})}}]),i}(d.Component)},12120:function(e,t,i){i.d(t,{Z:function(){return m}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(14364),c=i(41664),u=i.n(c),h=i(47565),m=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={show_allshow_list_v:!1},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props.data,i={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec","01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep"};return(0,r.jsxs)("div",{children:[t.value.map((function(n,a){return a>=4&&!1===e.state.show_allshow_list_v?null:n.not_in_projects?n.url?(0,r.jsx)("a",{href:n.url,target:"_blank",rel:"noreferrer",className:"clean-a",children:(0,r.jsxs)("div",{className:"list-vertical-area",onClick:function(){return n.url?null:(0,h.Z)("unavailable_on_account","error",e.props.lang,1e3,!1,{name:n.name})},style:a===t.value.length-1?{borderBottom:0,cursor:n.url?"unset":"pointer",position:"relative"}:{cursor:n.url?"unset":"pointer",position:"relative"},children:[n.img?n.special_img?(0,r.jsx)("div",{alt:"pf",className:"img-list-vertical",style:{height:50,borderRadius:t.is_perfumer?"50%":2,backgroundImage:"url("+n.img+")",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}}):(0,r.jsx)("img",{alt:"pf",src:n.img,className:"img-list-vertical",style:{height:50,borderRadius:t.is_perfumer?"50%":2,padding:t.is_product?4:0}}):(0,r.jsx)("div",{className:"img-list-vertical",style:{borderRadius:"50%",position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute big-letter",children:n.name.substring(0,1)})}),n.url?(0,r.jsx)("a",{href:n.url,target:"_blank",rel:"noreferrer",children:(0,r.jsx)("img",{alt:"arrow",style:{height:20,zIndex:1,position:"absolute",right:10,top:"50%",transform:"translateY(-85%)"},src:"/arrow.png"})}):null,(0,r.jsxs)("div",{className:"text-list-vertical",style:n.url?{width:"calc(100% - 45px)"}:{},children:[n.date?(0,r.jsx)("div",{className:"text-dosage-list-vertical",style:{color:"#bbb"},children:n.date}):null,(0,r.jsxs)("div",{className:"text-name-list-vertical",style:t.is_perfumer?{fontFamily:"SPSemi"}:n.url?{width:"calc(100% - 35px)",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}:{},children:[n.name,t.is_perfumer?(0,r.jsxs)("span",{style:{color:"#858585",fontFamily:"SP",paddingLeft:4},children:["(",n.count,")"]}):null]}),t.is_list_cv?(0,r.jsxs)("div",{className:"text-dosage-list-vertical",children:[n.start?i[n.start.split("-")[1]]+"."+n.start.split("-")[0]:null,n.end?" \u2013\xa0"+i[n.end.split("-")[1]]+"."+n.end.split("-")[0]:" \u2013\xa0Present"]}):t.is_perfumer?n.job?(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.job}):null:(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.dosage})]})]})},"unique_products_list_"+t.name+"_"+a):(0,r.jsxs)("div",{className:"list-vertical-area",onClick:function(){return n.url?null:(0,h.Z)("unavailable_on_account","error",e.props.lang,1e3,!1,{name:n.name})},style:a===t.value.length-1?{borderBottom:0,cursor:n.url?"unset":"pointer",position:"relative"}:{cursor:n.url?"unset":"pointer",position:"relative"},children:[n.img?n.special_img?(0,r.jsx)("div",{alt:"pf",className:"img-list-vertical",style:{height:50,borderRadius:t.is_perfumer?"50%":2,backgroundImage:"url("+n.img+")",backgroundPosition:"center",backgroundSize:"cover",backgroundRepeat:"no-repeat"}}):(0,r.jsx)("img",{alt:"pf",src:n.img,className:"img-list-vertical",style:{height:50,borderRadius:t.is_perfumer?"50%":2,padding:t.is_product?4:0}}):(0,r.jsx)("div",{className:"img-list-vertical",style:{borderRadius:"50%",position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute big-letter",children:n.name.substring(0,1)})}),n.url?(0,r.jsx)("a",{href:n.url,target:"_blank",rel:"noreferrer",children:(0,r.jsx)("img",{alt:"arrow",style:{height:20,zIndex:1,position:"absolute",right:10,top:"50%",transform:"translateY(-85%)"},src:"/arrow.png"})}):null,(0,r.jsxs)("div",{className:"text-list-vertical",style:n.url?{width:"calc(100% - 45px)"}:{},children:[n.date?(0,r.jsx)("div",{className:"text-dosage-list-vertical",style:{color:"#bbb"},children:n.date}):null,(0,r.jsxs)("div",{className:"text-name-list-vertical",style:t.is_perfumer?{fontFamily:"SPSemi"}:n.url?{width:"calc(100% - 35px)",textOverflow:"ellipsis",overflow:"hidden",
1whiteSpace:"nowrap"}:{},children:[n.name,t.is_perfumer?(0,r.jsxs)("span",{style:{color:"#858585",fontFamily:"SP",paddingLeft:4},children:["(",n.count,")"]}):null]}),t.is_list_cv?(0,r.jsxs)("div",{className:"text-dosage-list-vertical",children:[n.start?i[n.start.split("-")[1]]+"."+n.start.split("-")[0]:null,n.end?" \u2013\xa0"+i[n.end.split("-")[1]]+"."+n.end.split("-")[0]:" \u2013\xa0Present"]}):t.is_perfumer?n.job?(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.job}):null:(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.dosage})]})]},"unique_products_list_"+t.name+"_"+a):(0,r.jsx)(u(),{href:"top_compo"===t.name?(0,d.DW)(e.props.lang,"app/house/"+n.path):t.is_list_cv?n.valid?(0,d.DW)(e.props.lang,"app/"+n.type_job+"/"+n.path):(0,d.DW)(e.props.lang,"app/perfumer/"+e.props.path):t.is_perfumer?(0,d.DW)(e.props.lang,"app/perfumer/"+n.path):(0,d.DW)(e.props.lang,"app/product/"+n.path),children:(0,r.jsx)("a",{className:"clean-a",style:{cursor:t.is_list_cv?n.valid?"pointer":"initial":"pointer"},children:(0,r.jsxs)("div",{className:"list-vertical-area",style:a===t.value.length-1?{borderBottom:0}:{},children:[n.img?(0,r.jsx)("img",{alt:"pf",src:n.img,className:"img-list-vertical",style:{height:50,borderRadius:t.is_perfumer?"50%":2,padding:t.is_product?4:0}}):(0,r.jsx)("div",{className:"img-list-vertical",style:{borderRadius:"50%",position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute big-letter",children:n.name.substring(0,1)})}),(0,r.jsxs)("div",{className:"text-list-vertical",children:[(0,r.jsxs)("div",{className:"text-name-list-vertical",style:t.is_perfumer?{fontFamily:"SPSemi"}:{},children:[n.name,t.is_perfumer?(0,r.jsxs)("span",{style:{color:"#858585",fontFamily:"SP",paddingLeft:4},children:["(",n.count,")"]}):null]}),t.is_list_cv?(0,r.jsxs)("div",{className:"text-dosage-list-vertical",children:[n.start?i[n.start.split("-")[1]]+"."+n.start.split("-")[0]:null,n.end?" \u2013\xa0"+i[n.end.split("-")[1]]+"."+n.end.split("-")[0]:" \u2013\xa0Present"]}):t.is_perfumer?n.job?(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.job}):null:(0,r.jsx)("div",{className:"text-dosage-list-vertical",children:n.dosage})]})]})})},"unique_products_list_"+t.name+"_"+a)})),t.value.length>4?(0,r.jsx)("div",{className:"div-btn-see-more-bot",children:(0,r.jsx)("div",{className:"btn-see-more-bot transition-300",onClick:function(){return e.setState({show_allshow_list_v:!e.state.show_allshow_list_v})},children:!1===this.state.show_allshow_list_v?"+ See "+(t.value.length-4)+" more":"- Hide"})}):null]})}}]),i}(o.Component)},18619:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(14364),c=i(41664),u=i.n(c),h=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props.data,i={1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec","01":"Jan","02":"Feb","03":"Mar","04":"Apr","05":"May","06":"Jun","07":"Jul","08":"Aug","09":"Sep"};return(0,r.jsxs)("div",{className:"content_product_text",children:[(0,r.jsx)("div",{className:"content_product_text_name",children:t.is_relation?{acquisition:"Acquired by",merger:"Merged with",renaming:"Renamed",school:"Formation/School",sub_acquisition:"Acquisition",sub_merger:"Merger",sub_renaming:"Renamed",sub_school:"Formation/School"}[t.relation]:t.name}),(0,r.jsx)("div",{className:"content_product_text_value",style:{textTransform:"none"},children:t.value.map((function(n,a){return(0,r.jsxs)("span",{style:{paddingRight:3},children:["url"===e.props.type?(0,r.jsx)("a",{className:"clean-a",href:n.value,rel:"noreferrer",target:"_blank",style:t.bold?{fontFamily:"SPSemi"}:{},children:n.name}):(0,r.jsx)(u(),{href:(0,d.DW)(e.props.lang,"app/"+n.type+"/"+n.path),children:(0,r.jsxs)("a",{className:"clean-a",style:t.bold?{fontFamily:"SPSemi"}:{},children:[n.name,t.is_relation&&t.date?(0,r.jsxs)("span",{style:{paddingLeft:6,color:"#848E98",fontSize:14},children:["in ",t.date?i[t.date.split("-")[1]]+"."+t.date.split("-")[0]:null]}):null]})},"unique_product_list_"+Math.random()+"_"+a),"url"===e.props.type?null:a<t.value.length-1?", ":""]},"list_url_"+a+Math.random())}))})]})}}]),i}(o.Component)},22441:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={showMoreLT:!1},a}
1return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props.data;return!0===t.split?(0,r.jsxs)("div",{children:[t.value.map((function(t,i){return!1===e.state.showMoreLT&&i>7?null:(0,r.jsxs)("div",{style:{marginBottom:10},children:[(0,r.jsx)("div",{style:{color:"#5d5d5d",fontFamily:"SP",fontSize:15},children:t.title}),(0,r.jsx)("div",{style:{color:"#5d5d5d",fontFamily:"SP",fontSize:15},children:t.ean})]},"list_text_value"+i)})),t.value.length>7?(0,r.jsx)("div",{className:"div-btn-see-more-bot",children:(0,r.jsx)("div",{className:"btn-see-more-bot transition-300",style:{marginTop:20},onClick:function(){return e.setState({showMoreLT:!e.state.showMoreLT})},children:!1===this.state.showMoreLT?"+ See all "+t.value.length+" ean":"- Hide"})}):null]}):(0,r.jsx)("div",{style:{color:"#5d5d5d",fontFamily:"SP",fontSize:15},children:t.value})}}]),i}(i(67294).Component)},68273:function(e,t,i){i.d(t,{Z:function(){return g}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(38847),c=i(80680),u=i(51495),h=i(29815),m=(i(43378),i(14364),o.Component,i(83352)),p=i(31790),f={olfaction:{title:"Olfaction Consensus",body:["This is an AI-generated summary of consumer reviews specifically about how the fragrance smells \u2014 the model isolates and condenses the olfactive aspects of feedback.","It helps surface key trends, common impressions, and preferences shared by consumers, without having to read through every individual review."]},performance:{title:"Performance Consensus",body:["This is an AI-generated summary of consumer reviews about the fragrance's performance \u2014 specifically sillage (how strongly it projects) and longevity (how long it lasts).","It helps surface key trends and common impressions shared by consumers, without having to read through every individual review."]},bottle:{title:"Bottle Consensus",body:["This is an AI-generated summary of consumer feedback on the fragrance's packaging \u2014 with a focus on bottle design, functionality, and overall aesthetic appeal.","It helps surface key trends and common impressions shared by consumers, without having to read through every individual review."]},marketing:{title:"Marketing Consensus",body:["This is an AI-generated summary of consumer feedback on the fragrance's marketing \u2014 from the choice of muse or ambassador to other elements of the marketing mix, such as campaigns, branding, and messaging.","It helps surface key trends and common impressions shared by consumers, without having to read through every individual review."]}},g=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={consensusInfoMounted:!1,consensusInfoVisible:!1,consensusInfoTopic:null},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"openConsensusInfo",value:function(e){this.setState({consensusInfoMounted:!0,consensusInfoTopic:e}),setTimeout(function(){this.setState({consensusInfoVisible:!0})}.bind(this),20)}},{key:"closeConsensusInfo",value:function(){this.setState({consensusInfoVisible:!1}),setTimeout(function(){this.setState({consensusInfoMounted:!1})}.bind(this),240)}},{key:"getReviewSent",value:function(e){var t=null,i=e.note_sentiment.normalized_sa?(10*e.note_sentiment.normalized_sa).toFixed(2):null;return(t=i<0?"negative":i>0?"positive":"neutral")?(0,r.jsx)("div",{className:"noselect one-review-user-review-sentiment-"+t,style:{margin:0,marginRight:20},children:t}):null}},{key:"getSentVal",value:function(e){return e>.09?"positive":e<-.09?"negative":"neutral"}},{key:"getFlatVal",value:function(e){return e>0?"positive":e<-0?"negative":"neutral"}},{key:"r",value:function(){this.setState({r:Math.random()})}},{key:"render",value:function(){var e=this,t=this.props.data,i=null,n=null;return t.category.forEach((function(e){"overview"===e.name&&e.features.forEach((function(e){"overview_insights"===e.name&&e.data.forEach((function(e){"graph_share"===e.type&&(i=e)}))}
1)),"olfaction"===e.name&&e.features.forEach((function(e){"sil_long"===e.name&&e.data.forEach((function(e){"sillage"===e.type&&(n=e)}))}))})),(0,r.jsxs)("div",{style:{paddingBottom:50},children:[0===Object.keys(t.topic_summaries).length?null:(0,r.jsxs)("div",{className:"white-area-content area-content-page",style:{paddingTop:24,paddingBottom:24},children:[(0,r.jsxs)("div",{className:"sub-area-content-page-half-l noselect",style:{display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:24,letterSpacing:"-0.48px"},children:"Summary"}),(0,r.jsx)("div",{className:"page-pr-general-summary",children:t.topic_summaries.general})]}),t.topic_summaries&&t.topic_summaries.general?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{style:{fontSize:12,color:"rgba(0, 11, 38, 0.40)",letterSpacing:"0.12px",marginBottom:16},children:"AI-Powered analysis"}),(0,r.jsxs)("div",{className:"btn-more-overview",onClick:function(){return e.props.changeMenu("comments")},children:["More details",(0,r.jsx)("img",{alt:"",src:"/details.png",className:"btn-more-overview-img"})]})]}):null]}),i?(0,r.jsxs)("div",{className:"sub-area-content-page-half-r",children:[(0,r.jsxs)("div",{style:{fontSize:15,fontFamily:"SPSemi",marginBottom:16,position:"relative",display:"flex",alignItems:"center"},children:["Sell-out evolution",this.props.openSellOutInfo?(0,r.jsx)(m.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.props.openSellOutInfo()}}):(0,r.jsxs)("div",{className:"info-more-hover-menu",children:[(0,r.jsx)(m.Z,{}),(0,r.jsx)("div",{className:"info-more-hover-menu-show",style:{left:0,top:"100%",minWidth:300,maxWidth:300},children:"Displays aggregated sell-out data over the past few years for key markets, including the US, China, France, and Germany. This histogram offers a visual overview of sales trends and market performance across these countries."})]})]}),(0,r.jsx)("div",{style:{border:"1px solid rgba(0, 3, 10, 0.10)",borderRadius:8,padding:"16px 32px"},children:(0,r.jsx)(d.Z,{data:i,inOverview:!0,onRefGraphShare:function(t){return e.onRefGraphShare=t},r:this.r.bind(this)})})]}):null]}),(0,r.jsxs)("div",{className:"area-content-page",children:[(0,r.jsx)("div",{className:"sub-area-content-page-half-l",children:(0,r.jsx)("div",{className:"white-area-content",style:{paddingTop:24,paddingBottom:24},children:(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"overview-title-row",children:[(0,r.jsx)("div",{className:"overview-title-content",children:"Olfaction Overview"}),(0,r.jsxs)("div",{className:"btn-more-overview",onClick:function(){return e.props.changeMenu("olfaction")},children:["More details",(0,r.jsx)("img",{alt:"",src:"/details.png",className:"btn-more-overview-img"})]})]}),t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.olfaction)||t.topic_summaries.olfaction?(0,r.jsxs)("div",{className:"overview-sub-title",children:["Olfaction consensus",(0,r.jsx)(m.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openConsensusInfo("olfaction")}})]}):null,t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.olfaction)?(0,r.jsxs)("div",{className:"overview-sentiment",children:[(0,r.jsx)("img",{alt:"",src:"/ia.png",className:"overview-ia-img"}),"Sentiment is",(0,r.jsxs)("span",{className:"overview-sentiment-"+this.getSentVal(t.general_sentiment.olfaction),children:[this.getSentVal(t.general_sentiment.olfaction)," \u2022 ",(10*t.general_sentiment.olfaction).toFixed(2)]})]}):null,t.topic_summaries.olfaction?(0,r.jsx)("div",{className:"overview-sub-content",style:t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.olfaction)?{}:{marginTop:16},children:t.topic_summaries.olfaction}):null,t.topic_summaries.olfaction?(0,r.jsx)("div",{style:{fontSize:12,color:"rgba(0, 11, 38, 0.40)",letterSpacing:"0.12px",marginTop:10},children:"AI-Powered analysis"}):null,(0,r.jsx)("div",{className:"overview-sub-title",children:"Most prominent notes"}),(0,r.jsx)("div",{className:"overview-note-card-list",children:t.notes_top_3.map((function(i,n){return(0,r.jsxs)("div",{className:"overview-note-card",style:n===t.notes_top_3.length-1?{marginRight:0,width:"calc(33.33% - ".concat(16,"px)")}:{width:"calc(33.33% - ".concat(16,"px)")},children:[(0,r.jsx)("div",{className:"overview-note-card-img-div",style:{background:"linear-gradient(36deg, ".concat(i.hexa+"22"," -100%, ").
1concat(i.hexa," 50%, ").concat(i.hexa+"22"," 200%)")},children:(0,r.jsx)("img",{alt:"",src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/ConseilsStores/note_images/note_"+i.note_id+".jpg",className:"overview-note-card-img"})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"overview-note-card-title",children:i.name}),(0,r.jsx)("div",{className:"overview-note-card-desc",children:i.type}),i.note_sentiment?(0,r.jsx)("div",{className:"overview-sentiment",style:{paddingLeft:14,border:0,marginTop:2,marginBottom:8},children:e.getReviewSent(i)}):null]})]},"list-note-"+i.name)}))}),(0,r.jsxs)("div",{className:"overview-sub-title",children:["Performance consensus",(0,r.jsx)(m.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openConsensusInfo("performance")}})]}),t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.performance)?(0,r.jsxs)("div",{className:"overview-sentiment",children:[(0,r.jsx)("img",{alt:"",src:"/ia.png",className:"overview-ia-img"}),"Sentiment is",(0,r.jsxs)("span",{className:"overview-sentiment-"+this.getSentVal(t.general_sentiment.performance),children:[this.getSentVal(t.general_sentiment.performance)," \u2022 ",(10*t.general_sentiment.performance).toFixed(2)]})]}):null,t.topic_summaries.performance?(0,r.jsx)("div",{className:"overview-sub-content",style:t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.performance)?{}:{marginTop:16},children:t.topic_summaries.performance}):null,t.topic_summaries.performance?(0,r.jsx)("div",{style:{fontSize:12,color:"rgba(0, 11, 38, 0.40)",letterSpacing:"0.12px",marginTop:10},children:"AI-Powered analysis"}):null,n?(0,r.jsx)(c.Z,{data:n,inOverview:!0,all:t.sill_long_all_global,openSillageInfo:this.props.openSillageInfo,openLongevityInfo:this.props.openLongevityInfo}):null]})})}),(0,r.jsxs)("div",{className:"sub-area-content-page-half-r",children:[!1===t.is_market?null:(0,r.jsx)("div",{className:"white-area-content",style:{paddingTop:24,paddingBottom:24},children:(0,r.jsx)(u.Z,{data:t,changeMenu:this.props.changeMenu.bind(this)})}),(0,r.jsx)("div",{className:"white-area-content",style:{paddingTop:24,paddingBottom:24},children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"overview-title-row",children:(0,r.jsx)("div",{className:"overview-title-content",children:"Bottle and Branding"})}),(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,r.jsxs)("div",{style:{marginRight:12,flex:1,position:"relative"},children:[(0,r.jsxs)("div",{className:"overview-sub-title",children:["Bottle consensus",(0,r.jsx)(m.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openConsensusInfo("bottle")}})]}),(0,r.jsx)("div",{className:"overview-bottle-img-div",style:{padding:18},children:(0,r.jsx)("img",{alt:"",src:t.img,className:"overview-bottle-img"})}),t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.packaging)?(0,r.jsxs)("div",{className:"overview-sentiment",style:{marginTop:24},children:[(0,r.jsx)("img",{alt:"",src:"/ia.png",className:"overview-ia-img"}),"Sentiment is",(0,r.jsxs)("span",{className:"overview-sentiment-"+this.getSentVal(t.general_sentiment.packaging),children:[this.getSentVal(t.general_sentiment.packaging)," \u2022 ",(10*t.general_sentiment.packaging).toFixed(2)]})]}):null,t.topic_summaries.packaging?(0,r.jsx)("div",{className:"overview-sub-content",style:t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.packaging)?{}:{marginTop:16},children:t.topic_summaries.packaging}):null]}),(0,r.jsxs)("div",{style:{marginLeft:12,flex:1,position:"relative"},children:[t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.marketing)||t.topic_summaries.marketing||t.banner?(0,r.jsxs)("div",{className:"overview-sub-title",children:["Marketing consensus",(0,r.jsx)(m.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openConsensusInfo("marketing")}})]}):null,t.banner?(0,r.jsx)("div",{className:"overview-bottle-img-div",children:(0,r.jsx)("img",{alt:"",src:t.banner,className:"overview-bottle-banner"})}):null,t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.marketing)?(0,r.jsxs)("div",{className:"overview-sentiment",style:{marginTop:24},children:[(0,r.jsx)("img",{alt:"",src:"/ia.png",className:"overview-ia-img"}),"Sentiment is",(0,r.jsxs)("span",{className:"overview-sentiment-"+this.getSentVal(t.general_sentiment.marketing),children:[this.get
1SentVal(t.general_sentiment.marketing)," \u2022 ",(10*t.general_sentiment.marketing).toFixed(2)]})]}):null,t.topic_summaries.marketing?(0,r.jsx)("div",{className:"overview-sub-content",style:t.general_sentiment&&-1===[null,void 0].indexOf(t.general_sentiment.marketing)?{}:{marginTop:16},children:t.topic_summaries.marketing}):null]})]}),t.topic_summaries.packaging||t.topic_summaries.marketing?(0,r.jsx)("div",{style:{fontSize:12,color:"rgba(0, 11, 38, 0.40)",letterSpacing:"0.12px",marginTop:10},children:"AI-Powered analysis"}):null]})})]})]}),this.state.consensusInfoMounted?(0,r.jsx)(p.Z,{title:f[this.state.consensusInfoTopic].title,visible:this.state.consensusInfoVisible,onClose:function(){return e.closeConsensusInfo()},children:f[this.state.consensusInfoTopic].body.map((function(e,t){return(0,r.jsx)("p",{children:e},"consensus-p-"+t)}))}):null]})}}]),i}(o.Component)},15960:function(e,t,i){i.d(t,{Z:function(){return _}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(61120),c=i.n(d),u=i(29473),h=i(83352),m=i(31790),p=i(11458),f=["Citrus","Green","Floral","Fruity","Sweet","Spicy","Woody","Animalic"],g={Citrus:"#F2B705",Green:"#6FA84B",Floral:"#E86A9A",Fruity:"#E8563F",Sweet:"#D9932B",Spicy:"#B5462A",Woody:"#8A5A34",Animalic:"#6E5B4E"},v=44,y=2*Math.PI/f.length;function x(e,t){return[210+e*Math.cos(t),184+e*Math.sin(t)]}function b(e){return e[0].toFixed(2)+","+e[1].toFixed(2)}function j(e,t,i,n){var a=x(i,e),s=x(n,e),l=x(n,t),r=x(i,t),o=t-e>Math.PI?1:0;return"M".concat(b(a)," L").concat(b(s)," A").concat(n,",").concat(n," 0 ").concat(o," 1 ").concat(b(l)," L").concat(b(r)," A").concat(i,",").concat(i," 0 ").concat(o," 0 ").concat(b(a)," Z")}var _=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={radarInfoMounted:!1,radarInfoVisible:!1,fragranticaInfoSources:[],hover:null,tipX:0,tipY:0},a}return(0,a.Z)(i,[{key:"getFragranticaSources",value:function(){var e=this;u.h.get("/get_review_sources",{headers:{Authorization:"Bearer "+localStorage.getItem("auth_identifier_token"),marketcountry:"all"}}).then((function(t){var i=(t.data.data||[]).filter((function(e){return-1!==(e.name||"").toLowerCase().indexOf("fragrantica")}));e.setState({fragranticaInfoSources:i})})).catch((function(e){console.log(e)}))}},{key:"openRadarInfo",value:function(){this.getFragranticaSources(),this.setState({radarInfoMounted:!0}),setTimeout(function(){this.setState({radarInfoVisible:!0})}.bind(this),20)}},{key:"closeRadarInfo",value:function(){this.setState({radarInfoVisible:!1}),setTimeout(function(){this.setState({radarInfoMounted:!1})}.bind(this),240)}},{key:"getValues",value:function(){var e=this.props.data?this.props.data.value:null;if(!e)return null;var t={},i=!1;return f.forEach((function(n){var a=e[n];(a=null===a||void 0===a||isNaN(a)?0:Number(a))>0&&(i=!0),t[n]=a})),i?t:null}},{key:"handleMove",value:function(e,t){var i=this.wrapRef?this.wrapRef.getBoundingClientRect():null;i&&this.setState({hover:e,tipX:t.clientX-i.left,tipY:t.clientY-i.top})}},{key:"save",value:function(){c()(document.querySelector("#radar")).then((function(e){document.getElementById("downloader").href=e.toDataURL("image/png").replace(/^data:image\/[^;]/,"data:application/octet-stream"),document.getElementById("downloader").click()}))}},{key:"render",value:function(){var e=this,t=this.getValues(),i=this.state.hover,n=t?Math.max.apply(null,f.map((function(e){return t[e]}))):0,a=Math.max(Math.ceil(20*n)/20,.05),s=function(e){return(100*e).toFixed(1)+"%"};return(0,r.jsxs)("div",{id:"radar",children:[(0,r.jsx)("a",{href:"#",id:"downloader",download:"radar.png",style:{position:"absolute",opacity:0,height:0,width:0,zIndex:-100}}),(0,r.jsxs)("div",{className:"content_product_text_name",onClick:function(){return e.props.userInfoCheck&&!0===e.props.userInfoCheck.exportradar?e.save():null},style:{display:"flex",zIndex:2,width:"38%"},children:[this.props.data.name,(0,r.jsx)(h.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openRadarInfo()}})]}),this.state.radarInfoMounted?(0,r.jsxs)(m.Z,{title:"Olfactory profile",visible:this.state.radarInfoVisible,onClose:function(){return e.closeRadarInfo()},sources:this.state.fragranticaInfoSources,children:[(0,r.jsxs)("p",{children:["This ",(0,r.jsx)("span",{className:"info-modal-bold",children:"olfactory profile"})," describes the perfume across 8 axes (Citrus, Green, Floral, Fruity, Sweet, Spicy, Woody, Animalic). Each segment","'","s length is that axis","'"," relative intensity, scaled against the strongest axis of the perfume \u2014 hover a segment for the exact figure."]}),(0,r.jsxs)("p",{children:["It is derived from Fragrantica","'","s consumer-consensus pyramids, the same underlying data as Dom. Notes and Olfactory Family \u2014 not extracted from consumer reviews."]})]}):null,null===t?(0,r.jsx)("div",{style:{height:220,position:"relative"},children:(0,r.jsx)("div",{className:"center-absolute",style:{width:"90%",textAlign:"center",fontFamily:"SP",fontStyle:"italic",fontSize:14,color:"#777"},children:"No olfactory profile available for this perfume"})}):(0,r.jsxs)("div",{ref:function(t){return e.wrapRef=t},style:{position:"relative",marginTop:6,maxWidth:450,marginLeft:"auto",marginRight:"auto"},onMouseLeave:function(){return e.setState({hover:null})},children:[(0,r.jsxs)("svg",{viewBox:"0 0 ".concat(420," ").concat(360),style:{display:"block",width:"100%",height:"auto",overflow:"visible"},role:"img","aria-label":"Olfactory profile: "+f.map((function(e){return e+" "+s(t[e])})).join(", "),children:[[.25,.5,.75,1].map((function(e,t){return(0,r.jsx)("circle",{cx:210,cy:184,r:v+88*e,fill:"none",stroke:"rgba(0,3,10,0.09)",strokeWidth:1,strokeDasharray:"3 4"},"ring_"+t)})),f.map((function(n,s){var l=-Math.PI/2+s*y+.055,o=-Math.PI/2+(s+1)*y-.055,d=v+t[n]/a*88,c=(l+o)/2,u=x(154,c),h=Math.abs(Math.cos(c))<.25?"middle":Math.cos(c)>0?"start":"end",m=null!==i&&i!==n;return(0,r.jsxs)("g",{children:[t[n]>0?(0,r.jsx)("path",{d:j(l,o,v,d),fill:g[n],opacity:m?.32:.92,style:{transition:"opacity 0.14s ease"}}):null,(0,r.jsx)("text",{x:u[0].toFixed(1),y:(u[1]+4).toFixed(1),textAnchor:h,style:{fontFamily:"SP",fontSize:12.5,fill:m?"rgba(0,8,28,0.30)":"rgba(0,8,28,0.62)",transition:"fill 0.14s ease"},children:n}),(0,r.jsx)("path",{d:j(l,o,v,138),fill:"transparent",style:{cursor:"pointer"},onMouseMove:function(t){return e.handleMove(n,t)}})]},"axis_"+n)}))]}),null!==i?(0,r.jsx)("div",{style:{position:"absolute",left:this.state.tipX+14,top:this.state.tipY+12,zIndex:5,pointerEvents:"none"},children:(0,r.jsx)(p.Z,{title:i,rows:[{key:"w",color:g[i],label:"Intensity",value:s(t[i])}]})}):null]})]})}}]),i}(o.Component)},51495:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(14364),c=i(83352),u=i(31790),h=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={analysisInfoMounted:!1,analysisInfoVisible:!1},a}
1return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"openAnalysisInfo",value:function(){this.setState({analysisInfoMounted:!0}),setTimeout(function(){this.setState({analysisInfoVisible:!0})}.bind(this),20)}},{key:"closeAnalysisInfo",value:function(){this.setState({analysisInfoVisible:!1}),setTimeout(function(){this.setState({analysisInfoMounted:!1})}.bind(this),240)}},{key:"getFlatVal",value:function(e){return e>0?"positive":e<-0?"negative":"neutral"}},{key:"render",value:function(){var e=this,t=this.props.data,i=!1;t&&t.top_market&&t.top_market.forEach((function(e){null!==e.evo&&(i=!0)})),t.topic_summaries.sales_performance;var n=[];return t&&t.cagr&&Object.keys(t.cagr).forEach((function(e){"world"!==e&&("all"!==e&&n.push({country:e,cagr:t.cagr[e]}))})),n.sort((function(e,t){var i=e.cagr,n=t.cagr;return i<n?1:i>n?-1:0})),t.is_market?(0,r.jsxs)("div",{children:[this.props.alone?null:(0,r.jsxs)("div",{className:"overview-title-row",children:[(0,r.jsx)("div",{className:"overview-title-content",children:"Sales Performance"}),(0,r.jsxs)("div",{className:"btn-more-overview",onClick:function(){return e.props.changeMenu("insights")},children:["More details",(0,r.jsx)("img",{alt:"",src:"/details.png",className:"btn-more-overview-img"})]})]}),i?(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:this.props.alone?"title-content-product":"overview-sp-title",children:"Top performing markets (CAGR)"}),n.length>0?(0,r.jsx)("div",{children:(0,r.jsx)("div",{className:"overview-iw noselect",children:n.map((function(t,i){return i>2||null===t.evo?null:(0,r.jsxs)("div",{className:"overview-iw-u",style:{color:"#000"},children:[(0,r.jsx)("img",{alt:"",src:"https://s3.eu-west-2.amazonaws.com/sommelier.tech/all_flags_app/"+t.country.toUpperCase()+".png",className:"overview-iw-img"}),d.V2["name_pays_"+t.country.toUpperCase()],t.cagr?(0,r.jsxs)("span",{className:"overview-iw-tag-"+e.getFlatVal(t.cagr),children:[t.cagr>0?"+":null,t.cagr.toFixed(2),"%"]}):null]},"tm_"+t.country)}))})}):null]}):null,(0,r.jsxs)("div",{className:this.props.alone?"title-content-product":"overview-sub-title",style:this.props.alone?{marginTop:i?24:0}:{},children:["Analysis",(0,r.jsx)(c.Z,{style:{marginLeft:6},onClick:function(t){t.stopPropagation(),e.openAnalysisInfo()}})]}),this.state.analysisInfoMounted?(0,r.jsxs)(u.Z,{title:"Analysis",visible:this.state.analysisInfoVisible,onClose:function(){return e.closeAnalysisInfo()},children:[(0,r.jsxs)("p",{children:["This is an AI-generated analysis of the perfume","'","s sell-out performance, comparing its Compound Annual Growth Rate (CAGR) against key benchmarks \u2014 the CAGR of its brand, competing brands, and the overall market."]}),(0,r.jsx)("p",{children:"It offers quick insights into how the product is performing relative to industry trends and competitors."})]}):null,t.topic_summaries.sales_performance?(0,r.jsx)("div",{className:"overview-sub-content",children:t.topic_summaries.sales_performance}):(0,r.jsx)("div",{className:"overview-sub-content",style:{fontStyle:"italic"},children:"No analysis for the moment"}),(0,r.jsx)("div",{style:{fontSize:12,color:"rgba(0, 11, 38, 0.40)",letterSpacing:"0.12px",marginTop:16},children:"AI-Powered analysis"})]}):null}}]),i}(o.Component)},35443:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this.props.data;return(0,r.jsxs)("div",{children:[e.market_spliter?(0,r.jsx)("div",{className:"title-content-product",style:{marginTop:25},children:"Marketing"}):null,e.claims_spliter?(0,r.jsx)("div",{className:"title-content-product",style:{marginTop:25},children:"Claims"}):null,(0,r.jsxs)("div",{className:"content_product_text",children:[(0,r.jsxs)("div",{className:"content_product_text_name",style:e.firmenich||"family"===e.name?{display:"flex",alignItems:"center",width:"38%"}:{},children:[e.name,e.firmenich?(0,r.jsx)("img",{alt:"",src:"/logo_firmenich.png",style:{height:15,marginLeft:2,marginTop:-2}}):null]}),e.list_cut?(0,r.jsxs)("div",{className:"content_product_text_value",style:{color:"#B5B5B5"},children:[e.value.map((function(e,t){return t>2?null:(0,r.jsxs)("span",{style:{fontFamily:"SPSemi",color:"#000"},children:[e,", "]},"list_cut_text"+e)})),e.value.length>3?"and "+(e.value.length-3)+" others":null]}):(0,r.jsx)("div",{className:"content_product_text_value",style:e.bold?{fontFamily:"SPSemi"}:{},children:e.value})]})]})}}]),i}(i(67294).Component)},2477:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={showMore:!1},a}
1return(0,a.Z)(i,[{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"render",value:function(){var e=this,t=this.props.data,i=0;return t.value.forEach((function(e){i+=e.count})),(0,r.jsxs)("div",{children:[i?(0,r.jsxs)("div",{style:{fontFamily:"SP",fontSize:15,marginBottom:15,marginTop:-15},children:[(0,r.jsx)("span",{style:{fontFamily:"SPSemi"},children:i})," stores available"]}):null,t.value.map((function(t,i){return!1===e.state.showMore&&i>7?null:(0,r.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",marginBottom:10},children:[(0,r.jsx)("div",{style:{height:54,width:54,borderRadius:3,position:"relative",border:"1px solid #d5d5d5"},children:(0,r.jsx)("img",{alt:"icon",src:"/icon_store/"+t._id+"_icon.png",id:"img_store_"+i,onError:function(e){return document.getElementById("img_store_"+i).src="/icon_store/autres_icon.png"},className:"center-absolute",style:{height:50,borderRadius:3}})}),(0,r.jsxs)("div",{style:{paddingLeft:10,textTransform:"capitalize"},children:[(0,r.jsx)("div",{style:{fontFamily:"SPSemi",fontSize:16},children:t._id.replace(/_/g," ")}),(0,r.jsxs)("div",{style:{fontFamily:"SP",fontSize:14,color:"#4E555B"},children:[t.count," locations"]})]})]},"list_top_stores_"+i)})),t.value.length>7?(0,r.jsx)("div",{className:"div-btn-see-more-bot",children:(0,r.jsx)("div",{className:"btn-see-more-bot transition-300",style:{marginTop:10},onClick:function(){return e.setState({showMore:!e.state.showMore})},children:!1===this.state.showMore?"+ See all "+t.value.length:"- Hide"})}):null]})}}]),i}(i(67294).Component)},41489:function(e,t,i){i.d(t,{Z:function(){return h}});var n=i(51438),a=i(52951),s=i(88029),l=i(5950),r=i(85893),o=i(67294),d=i(57309),c=i(14364),u=10,h=function(e){(0,s.Z)(i,e);var t=(0,l.Z)(i);function i(e){var a;return(0,n.Z)(this,i),(a=t.call(this,e)).state={market:"all",showType:null},a}return(0,a.Z)(i,[{key:"componentDidMount",value:function(){document.addEventListener("mousedown",this.handleClickOutside.bind(this))}},{key:"componentWillUnmount",value:function(){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:"getLenReview",value:function(e,t){var i=t&&t?t:0;return i&&e?100*e/i:0}},{key:"handleFilter",value:function(e,t){"showType"===e?this.setState({showType:null===this.state.showType?t:null}):this.setState({market:t,showType:null})}},{key:"getStyleRating",value:function(e,t){return{height:u,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:"render",value:function(){var e=this,t=this.props.data,i=this.state.market,n=t.data.value.rating[i],a=t.data.value.total_reviews[i],s=t.data.value.total_reviews.all;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"title-content-product",style:{positive:"relative"},children:["Star Distribution",(0,r.jsx)("div",{style:{position:"absolute",top:14,right:24,display:"flex"},children:(0,r.jsx)(d.Z,{id:"modal-filtre-open-multi-id",showType:this.state.showType,data:this.state.market,dataList:(0,c.fK)(t.data.countries),handleFilter:this.handleFilter.bind(this),type:"market",right:!0})})]}),(0,r.jsx)("div",{style:{display:"flex",position:"relative",width:"100%",marginTop:30},children:(0,r.jsx)("div",{style:{width:"100%",borderRadius:8,height:u,marginTop:-10,position:"relative",display:"flex",overflow:"hidden"},children:[1,2,3,4,5].map((function(t){return(0,r.jsx)("div",{style:e.getStyleRating(t,n)},"star"+t)}))})}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"space-evenly",width:"100%",marginTop:8},children:[1,2,3,4,5].map((function(e){return(0,r.jsxs)("div",{style:{fontFamily:"SP",fontSize:12,color:"rgba(0,0,0,0.5)"},children:[e,"\u2605: ",n["eq_"+e]?1===e&&n.eq_0?(100*(n["eq_"+e]+n.eq_0)/n.total).toFixed(2)+"%":(100*n["eq_"+e]/n.total).toFixed(2)+"%":"-%"]},"stars"+e)}
1))}),(0,r.jsxs)("div",{style:{display:"flex",positive:"relative",width:"100%",marginTop:50},children:[(0,r.jsxs)("div",{style:{width:"100%",positive:"relative",paddingRight:20},children:[(0,r.jsxs)("div",{style:{display:"flex",positive:"relative",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsx)("div",{className:"title-content-product",style:{paddingBottom:0,marginTop:0},children:"NB. REVIEWS"}),(0,r.jsxs)("div",{style:{textAlign:"right",fontSize:20,fontFamily:"SPSemi"},children:[a?a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):"-",a&&s&&s?(0,r.jsxs)("span",{style:{paddingLeft:6,color:"#acacac",fontSize:13,fontFamily:"SP"},children:[(100*a/s).toFixed(1),"%"]}):null]})]}),(0,r.jsxs)("div",{style:{width:"100%",position:"relative",marginTop:20},children:[(0,r.jsx)("div",{style:{width:"100%",backgroundColor:"#f6f6f6",borderRadius:8,height:u}}),(0,r.jsx)("div",{style:{width:this.getLenReview(a,s)+"%",backgroundColor:"#70A3FD",borderRadius:8,height:u,marginTop:-10}})]}),(0,r.jsxs)("div",{style:{textAlign:"right",fontSize:12,fontFamily:"SP",color:"rgba(0,0,0,0.5)",marginTop:6},children:["Total ",s&&s?s.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):"-"]})]}),(0,r.jsxs)("div",{style:{width:"100%",positive:"relative",paddingLeft:20},children:[(0,r.jsxs)("div",{style:{display:"flex",positive:"relative",width:"100%",justifyContent:"space-between",alignItems:"center"},children:[(0,r.jsx)("div",{className:"title-content-product",style:{paddingBottom:0},children:"AVG. STAR RATING"}),(0,r.jsxs)("div",{style:{textAlign:"right",fontSize:20,fontFamily:"SPSemi"},children:[this.avgRating(n).toFixed(2),(0,r.jsx)("span",{style:{paddingLeft:6,fontSize:12,fontFamily:"SP",color:"rgba(0,0,0,0.5)"},children:"/5"})]})]}),(0,r.jsxs)("div",{style:{width:"100%",position:"relative",marginTop:20},children:[(0,r.jsx)("div",{style:{width:"100%",backgroundColor:"#f6f6f6",borderRadius:8,height:u}}),(0,r.jsx)("div",{style:{width:this.avgRating(n)?20*this.avgRating(n)+"%":"0%",backgroundColor:"#70A3FD",borderRadius:8,height:u,marginTop:-10}})]}),(0,r.jsx)("div",{style:{textAlign:"right",fontSize:12,fontFamily:"SP",color:"rgba(0,0,0,0.5)",marginTop:6,opacity:0},children:"/5"})]})]})]})}}]),i}(o.Component)}}]);
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.