vendor: 4,131 bytes, lines 1-11
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8555],{93162:function(e,t,a){var i,s;void 0!==(s="function"==typeof(i=function(){"use strict";function t(e,t,a){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){l(i.response,t,a)},i.onerror=function(){console.error("could not download file")},i.send()}function i(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function s(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(a){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof a.g&&a.g.global===a.g?a.g:void 0,n=r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype&&!n?function(e,a,n){var l=r.URL||r.webkitURL,o=document.createElement("a");a=a||e.name||"download",o.download=a,o.rel="noopener","string"==typeof e?(o.href=e,o.origin===location.origin?s(o):i(o.href)?t(e,a,n):s(o,o.target="_blank")):(o.href=l.createObjectURL(e),setTimeout(function(){l.revokeObjectURL(o.href)},4e4),setTimeout(function(){s(o)},0))}:"msSaveOrOpenBlob"in navigator?function(e,a,r){if(a=a||e.name||"download","string"!=typeof e){var n;navigator.msSaveOrOpenBlob((void 0===(n=r)?n={autoBom:!1}:"object"!=typeof n&&(console.warn("Deprecated: Expected third argument to be a object"),n={autoBom:!n}),n.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e),a)}else if(i(e))t(e,a,r);else{var l=document.createElement("a");l.href=e,l.target="_blank",setTimeout(function(){s(l)})}}:function(e,a,i,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),"string"==typeof e)return t(e,a,i);var l="application/octet-stream"===e.type,o=/constructor/i.test(r.HTMLElement)||r.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||l&&o||n)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=e:location=e,s=null},c.readAsDataURL(e)}else{var d=r.URL||r.webkitURL,h=d.createObjectURL(e);s?s.location=h:location.href=h,s=null,setTimeout(function(){d.revokeObjectURL(h)},4e4)}});r.saveAs=l.saveAs=l,e.exports=l})?i.apply(t,[]):i)&&(e.exports=s)},50396:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var i=a(91373);/** 2 * @license lucide-react v0.427.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let s=(0,i.Z)("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]])},7976:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});var i=a(91373);/** 7 * @license lucide-react v0.427.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let s=(0,i.Z)("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]])},33530:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/retailers_new",function(){return a(43505)}])},40201:function(e,t){"use strict";t.Z={src:"/_next/static/media/close.fe5de568.svg",height:14,width:14,blurWidth:0,blurHeight:0}},14643:function(e,t){"use strict";t.Z={src:"/_next/static/media/website.2ec9375f.svg",height:24,width:24,blurWidth:0,blurHeight:0}},41341:function(e,t){"use strict";t.Z={src:"/_next/static/media/facebook.d0d86bfe.svg",height:57,width:56,blurWidth:0,blurHeight:0}},19537:function(e,t){"use strict";t.Z={src:"/_next/static/media/instagram.edf4f268.svg",height:57,width:56,blurWidth:0,blurHeight:0}},87131:function(e,t,a){"use strict";var i=a(85893),s=a(67294),r=a(44343),n=a(8673),l=a(95643),o=a(83958),u=a(98349),
11c=a(16707),d=a(40201),h=a(54388),p=a(25675),m=a.n(p),f=a(55678),g=a(89578),x=a(90162);t.Z=function(e){let{queryFilters:t,paginationOptions:a,isShowAsideFilter:p,abstractionDataOptions:v,setIsShowAsideFilter:w,label:b,className:y,abstraction:k,isFeature:$,featuresAvailability:j,onChangeSortingMode:A}=e,S=(0,r.useRouter)(),[R,_]=(0,s.useState)(!1),[E,N]=(0,s.useState)([]),[M,O]=(0,s.useState)(null),[C,P]=(0,s.useState)(!1),T={default:[{key:"media_insights",attribute:"viewMode",label:"Media Insights"},{key:"retailers_insights",attribute:"viewMode",label:"Retailer Insights"}],grouped:[{key:"models_new",attribute:"viewOptions",label:"Watch Models"},{key:"retailers_new_presence",attribute:"viewOptions",label:"Retailers: NEW"},{key:"retailers_pre_owned_presence",attribute:"viewOptions",label:"Retailers: PRE-OWNED"},{key:"retail_activities",attribute:"viewOptions",label:"Retail Activities"},{key:"external_mentions",attribute:"viewOptions",label:"External Mentions"}]},L=[{key:"default",attribute:"viewMode",label:"Group by: Models"},{key:"grouped",attribute:"viewMode",label:"Group by: Brands"}],F=(0,s.useMemo)(()=>{var e;return[{key:"view_modes",label:"View Modes",attribute:"viewMode",childItems:L,isMultiselect:!1},{key:"advanced_options",label:"View Options",attribute:"viewOptions",childItems:T[null!==(e=null==t?void 0:t.viewMode)&&void 0!==e?e:""],isMultiselect:!0}]},[null==t?void 0:t.viewMode]),I=(0,s.useMemo)(()=>{let e=[];
11if(null==t?void 0:t.viewMode){var a;let i=null!==(a=L.find(e=>e.key===t.viewMode))&&void 0!==a?a:L[0];e.push(i)}return(null==t?void 0:t.viewOptions)&&t.viewOptions.split(",").forEach(t=>{var a;let i=null!==(a=T.grouped.find(e=>e.key===t))&&void 0!==a?a:null;i&&e.push(i)}),e},[null==t?void 0:t.viewMode,null==t?void 0:t.viewOptions]);(0,s.useEffect)(()=>{let e=x.Y[$?"".concat(k,"_new"):k];N(e),O(e[0])},[k]);let Z=e=>{_(e)};return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"hidden w-full items-start justify-start gap-6 md:mb-[30px] min-h-[50px] lg:flex ".concat(null!=y?y:""),onMouseEnter:()=>Z(!0),onMouseLeave:()=>Z(!1),children:[(0,i.jsxs)(n.zx,{onClick:()=>w(e=>!e),children:[p?"Hide Filters":"Show Filters","\xa0",p?(0,i.jsx)(m(),{alt:"close",src:d.Z}):(0,i.jsx)(m(),{alt:"list filter",src:h.Z})]}),(0,i.jsx)(l.Z,{paginationOptions:a,single:b}),(0,i.jsx)(o.Z,{queryFilters:t,isHover:R}),"watches"!==k||"watches"===k&&(null==t?void 0:t.viewMode)!=="grouped"?(0,i.jsx)(u.Z,{sortingModes:E,selectedSortingMode:M,isHover:R,className:"ml-auto",onChangeSortingMode:e=>{O(e),A(e)}}):null,"watches"===k?(0,i.jsx)(u.Z,{sortingModes:F,selectedSortingMode:I,selectorPrefix:"",iconType:"cogs",className:(null==t?void 0:t.viewMode)==="grouped"?"ml-auto":"",togglerClassName:"py-[12px] px-0 pl-4 pr-4 rounded-sm border border-black",menuClassName:"right-0 min-w-[290px]",isHover:R,isMultiselect:!0,isHideSelection:!0,isGrouped:!0,onChangeSortingMode:e=>{var t;let a=null!==(t=null==S?void 0:S.query)&&void 0!==t?t:{};if((null==e?void 0:e.length)>0){let t=e.find(e=>e.attribute&&"viewMode"===e.attribute),i=e.find(e=>e.attribute&&"viewOptions"===e.attribute);i&&t&&a.viewMode===t.key?a.viewOptions=e.filter(e=>!e.attribute||"viewOptions"===e.attribute).map(e=>e.key).join(","):delete a.viewOptions,t?a.viewMode=t.key:delete a.viewMode}else delete a.viewMode,delete a.viewOptions;null==S||S.push({pathname:null==S?void 0:S.pathname,query:a})}}):null,"influencers"===k&&(null==j?void 0:j.export_to_xlsx)?(0,i.jsx)(c.Z,{isMenuShown:C,setIsMenuShown:P,createReport:()=>{},createDashboard:()=>{},handleCompare:()=>{},isHitCompare:!1,item:null,isHover:R,createAlerts:()=>{},togglerClassName:"w-[50px] h-[40px]",options:["export_to_xlsx"],handleSelectOption:e=>{if(P(!1),"export_to_xlsx"===e&&v){let t={params:{...v},type:e};(0,g.Q)(t,f.Am)}}}):null]})})}},17737:function(e,t,a){"use strict";var i=a(85893);t.Z=e=>{let{isValidEmail:t,emailToSend:a,handleEmail:s,runFlow:r,setLoading:n,relatedTo:l}=e;return(0,i.jsx)("div",{className:"flex",children:(0,i.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,i.jsx)("div",{className:"text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Create dashboard"}),(0,i.jsxs)("div",{className:"text-center text-[16px] leading-[22.4px] text-brownDark",children:["Specify e-mail of your Watch360 account to create an analytical dashboard related to"," ","string"==typeof l?(0,i.jsx)("strong",{children:l}):l]}),(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)("label",{htmlFor:"email",className:"mb-3 text-[12px] leading-[12px] text-[#979797]",children:"Email"}),(0,i.jsx)("input",{placeholder:"[email protected]",id:"email",className:"mb-[6px] w-full rounded-sm border bg-white px-3 py-2 focus:outline-gold ".concat(t?null:"focus:outline-[#FF5A73]"),value:a,onChange:s}),t||""===a?null:(0,i.jsx)("p",{className:"text-[12px] text-[#FF5A73]",children:"Please enter a valid e-mail"})]}),(0,i.jsx)("button",{onClick:()=>r(),className:"flex cursor-pointer items-center justify-center rounded-sm bg-brownDark px-4 py-3 text-[16px] uppercase leading-4 text-white hover:bg-gold disabled:cursor-not-allowed",disabled:!t,children:"Create Dashboard"}),(0,i.jsxs)("div",{className:"text-center text-[12px] leading-[14px] text-[#979797]",children:["If you do not have Watch360 account yet, please"," ",(0,i.jsx)("span",{className:"text-gold hover:cursor-pointer hover:text-brownDark",onClick:()=>n("SIGN_UP"),children:"register"})," "]})]})})}},90482:function(e,t,a){"use strict";a.d(t,{Z:function(){return j}});var i=a(85893),s=a(67294),r=a(87066),n=a(31955),l=a(27856),o=a.n(l),u=a(25675),c=a.n(u),d=a(17871);let h=(e,t)=>{let a="";switch(t){case"influencer":a="".concat(e.influencerFirstName," Influencer");break;case"watch_model":a="".concat(e.brand,": ").concat(e.name);break;case"retailer":a="".concat(e.brand,": ").concat(e.name," Retailer")}return a},p=(e,t,a)=>{let i=h(e,t),s={crawlUrl:"",crawlEntities:"",emailToSend:a,queueId:"",dashboardName:i,workspaceId:87178,accountManagerEmail:"[email protected]",archiveDepth:"8784",flowParams:{domain:"app.watches.market360.ai",flowTitle:i,crawlUrl:"",flowUrl:"",dashboardType:"watchModel",isUseRealtime:!0,dashboardUniqKey:e.reference?(0,d._$)(e.reference):e.sfTagId,advancedParams:{Json:{documentAgeLimit:"366:00:00:00"}}}};return"watch_model"===t?(s.flowParams.topicQuery=(0,d.sz)(e,t),s.flowParams.advancedParams={...s.flowParams.advancedParams,additionalMigrationSources:[{sourceWorkspaceId:200940}]}):"influencer"===t&&(s.crawlEntities=e.socialProfiles.map(e=>e.profileURL).join(";"),s.flowParams.dashboardType="kols_watches_brands",s.flowParams.crawlEntitiesType="profile",s.flowParams.disableCrawling=!0,s.flowParams.disableDataEnrichment=!0,s.flowParams.dashboardInjections={globalReplacement:[{key:"main_category",value:e.sfTagId}]},s.flowParams.advancedParams={...s.flowParams.advancedParams,mainMigrationSources:[{sourceWorkspaceId:229180}]}),s};var m={src:"/_next/static/media/popup-watch.67bd69bd.png",height:164,width:502,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAMAAACZFr56AAAAFVBMVEXEwL2zmoHFwb3KwMDGwLrAtq/FwsRtD0ksAAAAB3RSTlM/AVoRZSQuOTfudAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAB1JREFUeJwVwYcNAAAMwyBn/f9yVSC0JsJmowE9fALOAC5uNmx9AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:3}
11,f=a(58675),g=a(27562),x=a(17737),v=a(63379),w=a(5152),b=a.n(w),y=a(93043),k=a(55678);let $=b()(()=>Promise.all([a.e(296),a.e(9260)]).then(a.t.bind(a,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1});var j=e=>{let{setIsPopupShow:t,entityParams:a,entityName:l,entity:u,loadingState:w}=e,[b,j]=(0,s.useState)(null),[A,S]=(0,s.useState)(""),[R,_]=(0,s.useState)(w||"PROCESS"),[E,N]=(0,s.useState)(null),M=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,18})+$/gi,[O,C]=(0,s.useState)(!1),P=e=>M.test(e);(0,s.useEffect)(()=>{T()},[]),(0,s.useEffect)(()=>{b&&F()},[b]);let T=()=>{let e=n.Z.get("ubasic");j(e?JSON.parse(e):null)},L=e=>{S(e.target.value),C(P(e.target.value))},F=async()=>{var e,t,i,s,n,l;if("retailer"===u)return;if(!b||!b.email||""===b.email.trim()){k.Am.error("Error: Incorrect User Email"),_("ERROR");return}_("PROCESS");let o="".concat(y.Z.flowapi.host,"/api/v1/flows/execution/dashboards-generator"),c=p(a,u,null!==(e=null==b?void 0:b.email)&&void 0!==e?e:""),h=null;try{h=await r.Z.post(o,c)}catch(a){_("ERROR");let e=a.response.data;e.message=(null!==(t=e.message)&&void 0!==t?t:"").replace("Watches & Learnings","WatchInsight"),e.message=e.message.replace("<register>",'<a href="/registration" class="text-gold hover:cursor-pointer hover:text-brownDark">register</a>'),e.message=e.message.replace("<contact>",'<a href="/contact" class="text-gold hover:cursor-pointer hover:text-brownDark">contact</a>'),N(e);return}if(null==h?void 0:h.data){let e=null!==(l=null===(i=h.data)||void 0===i?void 0:i.data)&&void 0!==l?l:null;if(N(e),(null==e?void 0:e.isExist)||await (0,d.gw)(3e3),null===(n=h.data)||void 0===n?void 0:null===(s=n.data)||void 0===s?void 0:s.dashboardLink){_("RESULT");return}}_("ERROR"),N({message:"Dashboard Generation Failed.",status:400})};return(0,i.jsx)("div",{className:"fixed bottom-0 left-0 right-0 top-0 z-[1000] flex items-center justify-center bg-[#3A3935CC] backdrop-blur",onClick:()=>t(!1),children:(0,i.jsxs)("div",{className:"relative bg-white ".concat("REGISTRATION"===R?"px-[35px] py-[35px]":"px-[118px] py-14"," h-max w-max rounded-sm ").concat("START"===R?"max-w-[700px]":""," ").concat("REGISTRATION"===R?"max-w-[700px]":""," ").concat("SIGN_UP"===R?"max-w-[675px] !px-0 !py-0":""," ").concat("PROCESS"===R?"px-[50px] py-[50px]":""," "),onClick:e=>e.stopPropagation(),children:["START"===R&&(null==b?void 0:b.email)?(0,i.jsx)(x.Z,{relatedTo:h(a,u),isValidEmail:!0,emailToSend:b.email,handleEmail:L,runFlow:F,setLoading:_}):null,"SIGN_UP"===R&&(null==b?void 0:b.email)?(0,i.jsx)(v.Z,{watchTile:a,isValidEmail:O,emailToSend:b.email,handleEmail:L,runFlow:F,setLoading:_}):null,"PROCESS"===R?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,i.jsx)("div",{className:"text-center text-[24px] uppercase leading-[31.2px]",children:"Dashboard Creation in Progress"}),(0,i.jsx)("div",{className:"mb-[120px] text-center text-[16px] leading-[22.4px]",children:(0,i.jsx)("div",{className:"w-[60px] h-[60px] z-10 flex mx-auto",children:(0,i.jsx)($,{animationData:g,loop:!0})})})]}),(0,i.jsx)("div",{className:"absolute bottom-0 left-0 h-[160px] w-[500px]",children:(0,i.jsx)(c(),{src:m,fill:!0,alt:"watches and learnings"})})]}):null,"RESULT"===R?(0,i.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,i.jsx)(c(),{src:f.Z,width:50,height:50,alt:"watches and learnings"}),(0,i.jsxs)("div",{className:"text-center text-[16px] max-w-[350px] leading-[22.4px] text-brownDark",children:[l&&E.isExist?'Dashboard for the requested "'.concat(l,'" already\n exists. '):"","Click the button below to access your dashboard."]}),(0,i.jsx)("a",{href:null==E?void 0:E.dashboardLink,className:"flex w-full cursor-pointer justify-center bg-brownDark px-5 py-4 text-[16px] uppercase leading-[16px] text-white hover:bg-gold",rel:"noopener noreferrer",target:"_blank",children:"Go to Dashboard"})]}):null,"ERROR"===R?(0,i.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[(0,i.jsx)(c(),{src:f.Z,width:50,height:50,alt:"watches and learnings"}),(0,i.jsx)("div",{className:"text-center text-[16px] max-w-[350px] leading-[22.4px] text-brownDark",dangerouslySetInnerHTML:{__html:o().sanitize(E.message)}})]}):null]})})}},50321:function(e,t,a){"use strict";var i=a(85893),s=a(25675),r=a.n(s),n=a(67294);t.Z=e=>{let t,{influencerAvatar:a,influencerFirstName:s,size:l=72,fontSize:o=22,className:u}
11=e,[c,d]=(0,n.useState)("https://application-storage.informio.biz/sf-ai/objects-logos/".concat(a,".png")),[h,p]=(0,n.useState)(!0),m=()=>{p(!1)};return(0,i.jsx)("div",{className:"influencer-item-logo relative flex flex-col lg:flex-row ".concat(u),style:{width:l,height:l},children:h?(0,i.jsx)(r(),{src:c,alt:"watch360.ai ".concat(s),title:s,fill:!0,className:"object-contain",onError:()=>{c.endsWith(".png")?d(c.replace(".png",".svg")):m()},sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"}):(0,i.jsx)("div",{className:"flex w-full items-center justify-center rounded-full bg-paperWhite text-[".concat(o,"px] uppercase"),children:1===(t=s.includes(" ")?s.trim().split(" "):s.trim()).length?t[0].charAt(0)+t[0].charAt(1):t[0].charAt(0)+t[1].charAt(0)})})}},43505:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSG:function(){return S}});var i=a(85893),s=a(67294),r=a(29529),n=a(5152),l=a.n(n),o=a(44343),u=a(85917),c=a(92856),d=a(11898),h=a(14805),p=a(66131),m=a(42674),f=a(87131),g=a(52710),x=a(61785),v=a(3510),w=a(41609),b=a.n(w),y=a(49108),k=a(83886),$=a(90162),j=a(75846);l()(()=>Promise.all([a.e(296),a.e(9260)]).then(a.t.bind(a,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1});let A=[{attribute:"retailer",label:"Name",searchable:!0,field:"customTags",itemPrefix:"ct_author_",disabled:!1},{attribute:"country",label:"Сountry",searchable:!0,field:"location",filterMask:[{matchType:"full",matchOperation:"exclude",matchMask:["g_undefined"]}],disabled:!1},{attribute:"source",label:"Source",searchable:!0,field:"source",disabled:!1}];var S=!0;t.default=e=>{var t,a,n,l,w,S,R,_,E,N,M,O,C,P;let{global:T,setCompareData:L,compareData:F,session:I}=e,Z=null!==(O=null==I?void 0:null===(l=I.customOptions)||void 0===l?void 0:null===(n=l.companyInfo)||void 0===n?void 0:null===(a=n.itemsGroups)||void 0===a?void 0:null===(t=a.find(e=>"locked_countries"===e.groupType))||void 0===t?void 0:t.groupItems)&&void 0!==O?O:[],U=null!==(C=null==I?void 0:null===(_=I.customOptions)||void 0===_?void 0:null===(R=_.companyInfo)||void 0===R?void 0:null===(S=R.itemsGroups)||void 0===S?void 0:null===(w=S.find(e=>"locked_authors"===e.groupType))||void 0===w?void 0:w.groupItems)&&void 0!==C?C:[],H=Z.length?["location:(".concat(Z.join(" "),")")]:[],D=U.length?["customTags:(".concat(U.join(" "),")")]:[],W=[...H,...D],q=(0,s.useMemo)(()=>{var e,t;let a=null!==(t=null==I?void 0:null===(e=I.customOptions)||void 0===e?void 0:e.featuresLimitations)&&void 0!==t?t:null;return(0,j.r)(a)}
11,[I]),z=(0,o.useRouter)(),[G,B]=(0,s.useState)(!0),[J,V]=(0,s.useState)({nbHits:0,nbPages:0,page:0}),[X,Q]=(0,s.useState)(y.zO),[Y,K]=(0,s.useState)(null),[ee,et]=(0,s.useState)(!1),[ea,ei]=(0,s.useState)({}),[es,er]=(0,s.useState)([]),[en,el]=(0,s.useState)($.Y.retailers_new[0]),[eo,eu]=(0,x.x)(),[ec,ed]=(0,s.useState)(!0);(0,s.useEffect)(()=>{if(null==z?void 0:z.isReady){let e=(0,d.Bi)(z.query,A),t=JSON.parse(JSON.stringify(z.query));t.page&&ep(t.page-1),delete t.page,ei(t),er(e),et(!0)}},[z]),(0,s.useEffect)(()=>{I&&ee&&eh()},[ee,ea,I,null==z?void 0:z.query.page]);let eh=async e=>{let{startDateTime:t,endDateTime:a}=X,i=(null==z?void 0:z.query.page)?Number(z.query.page)-1:0;Y||B(!0);let s={filters:["customTags:ct_author_*",...W,...es],query:"*",workspaceId:y.tW.retailersMetadata,limit:20,skip:i?20*i:0,startDateTime:t,endDateTime:a,sortField:(null!=e?e:en).attribute,ascSort:(null!=e?e:en).isAsc},r=await (0,v.ge)(s);if(r&&!b()(r)){let e=r.itemsCount/20,t=(0,k.Q7)(e);V({nbHits:r.itemsCount,nbPages:t?Number(Math.floor(e))+1:Number(e),page:i});let a=r.data.map(e=>{var t;let{id:a,authorName:i,authorProfileUrl:s,categories:r,fullText:n}=e;if(!(0,k.Pb)(n))return null;let{retailerTypeByLocation:l,retailerTypeByProduct:o,country:u,city:c,retailerDescription:d,retailerBlogURL:h,socialProfiles:p,retailerStores:m,retailerCountriesCities:f}=JSON.parse(n),g={id:a,retailerName:i,sfTagId:null!==(t=r.find(e=>e.includes("ct_author_")))&&void 0!==t?t:null,retailerTypeByLocation:l,retailerTypeByProduct:o,country:u,city:c,retailerDescription:d,retailerURL:s,retailerBlogURL:h,socialProfiles:p,retailerStores:m,retailerCountriesCities:f};return g}).filter(e=>e);K(a),B(!1)}else B(!1)},ep=e=>{V(t=>({...t,page:e}))},em=e=>{var t;el(e);let a=null!==(t=null==z?void 0:z.query)&&void 0!==t?t:{};if(a.page){delete a.page,null==z||z.push({pathname:null==z?void 0:z.pathname,query:a});return}eh(e)};return(0,i.jsx)(r.Z,{global:T,session:I,children:I?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{metadata:{metaTitle:"Media",metaDescription:"Media"}}),(0,i.jsxs)("div",{className:"workflows workflows relative mx-auto flex max-w-[1440px] flex-col items-center justify-center px-[20px] md:px-[60px] lg:my-[40px] lg:px-[80px] gap-[20px]",children:[(0,i.jsx)("div",{className:"flex justify-start w-full h-[62px] items-end",children:(0,i.jsx)("div",{className:"uppercase text-[52px] leading-[57.6px] text-[#3A3935]",children:"Retailers"})}),(0,i.jsx)(f.Z,{queryFilters:ea,paginationOptions:J,isShowAsideFilter:ec,setIsShowAsideFilter:ed,label:"Retailer",abstraction:"retailers",className:"!mb-0",isFeature:!0,featuresAvailability:q,onChangeSortingMode:em}),(0,i.jsxs)("div",{className:(0,m.cn)("flex relative w-full flex-col",ec&&"lg:pl-[308px]"),children:[(0,i.jsx)("div",{className:(0,m.cn)("filter-container-outer hidden w-[268px] lg:block",ec&&"min-w-[268px]",!ec&&"!mr-0 overflow-hidden lg:w-0 lg:p-0"),children:(0,i.jsx)("div",{className:"filter-container-inner",children:(0,i.jsx)("div",{className:"overflow-y-auto h-full pr-4",children:(0,i.jsx)(c.Z,{dateRange:X,filtersSections:A,itemAdvancedFilters:W,workspaceId:y.tW.retailersMetadata,defaultSectionIndex:0,sectionsToSkip:null!==(P=null==I?void 0:null===(M=I.whiteLabelInfo)||void 0===M?void 0:null===(N=M.advancedParams)||void 0===N?void 0:null===(E=N.filtersSections)||void 0===E?void 0:E.sectionsToSkip)&&void 0!==P?P:null})})})}),(0,i.jsxs)("div",{className:"",children:[(0,i.jsx)(g.Z,{setOpen:eu,label:"Retailer",queryFilters:ea,paginationOptions:J,abstraction:"retailers",isFeature:!0,onChangeSortingMode:em}),(0,i.jsxs)("div",{className:"mx-auto",children:[(0,i.jsx)(p.Z,{items:Y,setCompareData:L,compareData:F,isShowAsideFilter:ec,featuresAvailability:q,session:I}),(0,i.jsx)(h.t,{paginationOptions:J,itemsPerPage:20})]})]})]})]})]}):null})}},60285:function(e,t,a){"use strict";a.d(t,{XU:function(){return u},ae:function(){return o},IF:function(){return l},Ap:function(){return c},YQ:function(){return d}});var i=a(19537),s=a(41341),r={src:"/_next/static/media/x.2d934803.svg",height:57,width:56,blurWidth:0,blurHeight:0},n=a(14643);let l={instagram:"Instagram",x:"Twitter (X)",twitter:"Twitter (X)",youtube:"Youtube",facebook:"Facebook",tiktok:"Tiktok",linkedin:"Linkedin",pinterest:"Pinterest",xiaohongshu:"Xiaohongshu"},o={instagram:i.Z,x:r,twitter:r,youtube:{src:"/_next/static/media/youtube.c92fba29.
11svg",height:57,width:56,blurWidth:0,blurHeight:0},facebook:s.Z,tiktok:{src:"/_next/static/media/tiktok.05161726.svg",height:57,width:56,blurWidth:0,blurHeight:0},linkedin:{src:"/_next/static/media/linkedin.248822df.svg",height:57,width:56,blurWidth:0,blurHeight:0},website:n.Z,blog:{src:"/_next/static/media/blog.9663a24b.svg",height:24,width:24,blurWidth:0,blurHeight:0},pinterest:{src:"/_next/static/media/pinterest.3b050eb2.svg",height:57,width:56,blurWidth:0,blurHeight:0},telegram:{src:"/_next/static/media/telegram.549af3bc.svg",height:32,width:32,blurWidth:0,blurHeight:0},threads:{src:"/_next/static/media/threads.2d3c5a43.svg",height:1e3,width:878,blurWidth:0,blurHeight:0},xiaohongshu:{src:"/_next/static/media/xiaohongshu.fe12d6e1.svg",height:24,width:24,blurWidth:0,blurHeight:0}},u={threads:"p-[6px] w-[32px] h-[32px]",xiaohongshu:"p-[6px] w-[32px] h-[32px]"},c=e=>{let t=e.toLowerCase();return t.includes("instagram")?"instagram":t.includes("linkedin")?"linkedin":t.includes("facebook")?"facebook":t.includes("tiktok")?"tiktok":t.includes("youtube")?"youtube":t.includes("twitter")||t.includes("x.com")?"x":t.includes("pinterest")?"pinterest":t.includes("telegram")||"t.me"===t?"telegram":t.includes("threads")?"threads":t.includes("xiaohongshu")?"xiaohongshu":t.includes("blog")?"blog":(t.includes("http"),"website")},d=e=>e.map(e=>({profileURL:e.mediaLink,source:c(e.mediaCt)}))},23450:function(e){e.exports=function(){var e=[],t=[],a={},i={},s={};function r(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function n(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function l(e,t,i){if(!e.length||a.hasOwnProperty(e))return t;for(var s=i.length;s--;){var r=i[s];if(r[0].test(t))return function(e,t){return e.replace(t[0],function(a,i){var s,r,l=(s=t[1],r=arguments,s.replace(/\$(\d{1,2})/g,function(e,t){return r[t]||""}));return""===a?n(e[i-1],l):n(a,l)})}(t,r)}return t}function o(e,t,a){return function(i){var s=i.toLowerCase();return t.hasOwnProperty(s)?n(i,s):e.hasOwnProperty(s)?n(i,e[s]):l(s,i,a)}}function u(e,t,a,i){return function(i){var s=i.toLowerCase();return!!t.hasOwnProperty(s)||!e.hasOwnProperty(s)&&l(s,s,a)===s}}function c(e,t,a){var i=1===t?c.singular(e):c.plural(e);return(a?t+" ":"")+i}return c.plural=o(s,i,e),c.isPlural=u(s,i,e),c.singular=o(i,s,t),c.isSingular=u(i,s,t),c.addPluralRule=function(t,a){e.push([r(t),a])},c.addSingularRule=function(e,a){t.push([r(e),a])},c.addUncountableRule=function(e){if("string"==typeof e){a[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),s[e=e.toLowerCase()]=t,i[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEac
11h(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}()}},function(e){e.O(0,[2194,1866,5899,3867,9529,8402,8349,1367,2856,3785,6131,9774,2888,179],function(){return e(e.s=33530)}),_N_E=e.O()}]);
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.