1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7784],{91634:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compare-watches/[slug]",function(){return t(40285)}])},80169:function(e,l,t){"use strict";var s=t(85893),a=t(67294),i=t(68129),n=t(71038),o=t(97468),r=t(92013),c=t(21247),d=t(3510),u=t(17871),m=t(30381),p=t.n(m);l.Z=e=>{let{sfTagId:l,dateRange:t,orientation:m="horizontal",position:x="left",className:f,childClassName:g,additionalFilters:v,onShowItemsView:w,mentionsBasicParams:h}=e,{startDateTime:k,endDateTime:y}=t,C=(0,a.useMemo)(()=>185>p()(1e3*t.endDateTime).diff(p()(1e3*t.startDateTime),"days"),[t.startDateTime,t.endDateTime]),[b,j]=(0,a.useState)([{key:"posts",type:"SoMe Posts",abstraction:"post",previousYearValue:0},{key:"blog_articles",type:"Blog Articles",abstraction:"article",previousYearValue:0},{key:"newsletters",type:"Newsletters",abstraction:"letter",previousYearValue:0},{key:"ads",type:"Ads",abstraction:"record",previousYearValue:0}]);(0,a.useEffect)(()=>{N()},[t]);let N=()=>{let e=h.map(e=>{let t={filters:[...e.filtersList,"customTags:".concat(l),...null!=v?v:[]],query:"*",workspaceId:e.workspaceId,limit:2,startDateTime:k,endDateTime:y};return(0,d.ge)(t)});Promise.all(e).then(async e=>{let l=[...b].map((l,t)=>{let s=e[t];if(s){var a;return{...l,previousYearValue:null!==(a=s.itemsCount)&&void 0!==a?a:0}}return{...l}});j(l)})},T=(e,s)=>{let a=h.find(l=>l.key===e);if(!a)return;let i={query:"customTags:".concat(l),dateRange:t,filtersList:[...a.filtersList,...null!=v?v:[]],workspaceId:a.workspaceId,abstraction:{description:{label:s}}};w(i)};return(0,s.jsx)("div",{className:"bg-paperWhite p-2 flex gap-2 rounded-sm flex-col mx-4 lg:flex-row lg:mx-0 ".concat("vertical"===m?"!flex-col":"flex-row"," ").concat(null!=f?f:""),children:b.map((e,a)=>{var d,p,f,v;return(0,s.jsxs)("div",{className:"p-4 flex flex-col flex-1 gap-2 rounded-sm ".concat("vertical"===m&&"left"===x?"items-end":"items-start"," ").concat(null!=g?g:"hover:bg-white"," cursor-").concat(e.previousYearValue?"pointer":""),onClick:()=>e.previousYearValue?T(e.key,e.abstraction):null,children:[(0,s.jsx)("div",{className:"".concat("newsletters"===e.key?"text-[#ACDE1E]":"ads"===e.key?"text-[#1BDD9C]":"blog_articles"===e.key?"text-[#C767FF]":"posts"===e.key?"text-[#47B8FF]":""," text-[48px] leading-[52.8px] uppercase"),children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("div",{children:(0,u.uf)(+e.previousYearValue)}),C?(0,s.jsx)(c.Z,{sfTagId:l,filtersList:null!==(f=null===(d=h.find(l=>e.key===l.key))||void 0===d?void 0:d.filtersList)&&void 0!==f?f:[],dateRange:t,workspaceId:null!==(v=null===(p=h.find(l=>e.key===l.key))||void 0===p?void 0:p.workspaceId)&&void 0!==v?v:0,currentMentions:e.previousYearValue,isRelative:!0}):null]})}),(0,s.jsxs)("div",{className:"flex gap-1",children:["newsletters"===e.key?(0,s.jsx)(o.Z,{fill:"#ACDE1E"}):"ads"===e.key?(0,s.jsx)(n.Z,{fill:"#1BDD9C"}):"blog_articles"===e.key?(0,s.jsx)(r.Z,{fill:"#C767FF"}):"posts"===e.key?(0,s.jsx)(i.Z,{fill:"#47B8FF"}):null,(0,s.jsx)("div",{className:"text-brownDark text-[16px] leading-4 tracking-[0.32px] items-center flex",children:"newsletters"===e.key?"Newsletters":"ads"===e.key?"Ads":"blog_articles"===e.key?"Blog Articles":"posts"===e.key?"SoMe Posts":null})]})]},a)})})}},71038:function(e,l,t){"use strict";var s=t(85893);l.Z=e=>{let{size:l=24,fill:t="#000"}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M18 11V13H22V11H18ZM16 17.61C16.96 18.32 18.21 19.26 19.2 20C19.6 19.47 20 18.93 20.4 18.4C19.41 17.66 18.16 16.72 17.2 16C16.8 16.54 16.4 17.08 16 17.61ZM20.4 5.6C20 5.07 19.6 4.53 19.2 4C18.21 4.74 16.96 5.68 16 6.4C16.4 6.93 16.8 7.47 17.2 8C18.16 7.28 19.41 6.35 20.4 5.6ZM4 9C2.9 9 2 9.9 2 11V13C2 14.1 2.9 15 4 15H5V19H7V15H8L13 18V6L8 9H4ZM9.03 10.71L11 9.53V14.47L9.03 13.29L8.55 13H4V11H8.55L9.03 10.71ZM15.5 12C15.5 10.67 14.92 9.47 14 8.65V15.34C14.92 14.53 15.5 13.33 15.5 12Z",fill:t})})}},92013:function(e,l,t){"use strict";var s=t(85893);l.Z=e=>{let{size:l=24,fill:t="#000"}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:"none",children:(0,s.jsx)("path",{d:"M21 11.01L3 11V13H21V11.01ZM3 16H15V18H3V16ZM21 6H3V8.01L21 8V6
1Z",fill:t})})}},99215:function(e,l,t){"use strict";var s=t(85893),a=t(67294),i=t(5152),n=t.n(i),o=t(21247),r=t(93032),c=t(68129),d=t(13495),u=t(79949),m=t(32460),p=t(97468),x=t(76027),f=t(26620),g=t(49108),v=t(3510),w=t(17871),h=t(42674),k=t(30381),y=t.n(k),C=t(41609),b=t.n(C),j=t(27562);let N=n()(()=>Promise.all([t.e(296),t.e(9260)]).then(t.t.bind(t,69260,23)),{loadableGenerated:{webpack:()=>[69260]},ssr:!1}),T=[{key:"all",type:"All Mentions",abstraction:"record",currentMentions:0,className:""},{key:"media",type:"Media Mentions",abstraction:"article",currentMentions:0,className:""},{key:"watch_media",type:"Watch Media Mentions",abstraction:"article",currentMentions:0,className:""},{key:"blogs_forums",type:"Blogs & Forums",abstraction:"article",currentMentions:0,className:""},{key:"posts",type:"SoMe Posts",abstraction:"post",currentMentions:0,className:""},{key:"kols",type:"Mentions by Influencers",abstraction:"record",currentMentions:0,className:""},{key:"audio",type:"Audio",abstraction:"audio",currentMentions:0,className:""},{key:"newsletters",type:"All Newsletters",abstraction:"letter",currentMentions:0,className:""}];l.Z=e=>{let{sfTagId:l,dateRange:t,orientation:i="horizontal",position:n="left",model:k,searchQuery:C,className:_,onShowItemsView:I}=e,{startDateTime:M,endDateTime:L}=t,[D,Z]=(0,a.useState)(!0),[S,R]=(0,a.useState)(T),[V,W]=(0,a.useState)(T),[A,F]=(0,a.useState)(null),P=(0,a.useMemo)(()=>93>y()(1e3*L).diff(y()(1e3*M),"days"),[M,L]),O=[{key:"media",workspaceId:g.tW.watches,filtersList:["mediaType:1"]},{key:"watch_media",workspaceId:g.tW.mediaPageData,filtersList:["mediaType:1"]},{key:"posts",workspaceId:g.tW.watches,filtersList:["mediaType:(17 19 3)"]},{key:"kols",workspaceId:g.tW.kols,filtersList:["customTags:ct_author*"]},{key:"blogs_forums",workspaceId:g.tW.watches,filtersList:["mediaType:(2 4)"]},{key:"newsletters",workspaceId:g.tW.newsletters,filtersList:["objectType:27"]},{key:"audio",workspaceId:g.tW.watches,filtersList:["source:(youtube.com tiktok.com)","subtitles:*"]},{key:"audio",workspaceId:g.tW.kols,filtersList:["source:(youtube.com tiktok.com)","subtitles:*"]}];(0,a.useEffect)(()=>{E()},[t,C]);let E=()=>{B(),Z(!0);let e=O.map(e=>{let t={filters:[...e.filtersList,"customTags:".concat(l)],query:null!=C?C:"*",workspaceId:e.workspaceId,limit:2,startDateTime:M,endDateTime:L};return(0,v.ge)(t)});Promise.all(e).then(async e=>{H();let l=[...O].map((l,t)=>{let s=e[t];return s&&!b()(s)?{key:l.key,volume:s.itemsCount?s.itemsCount:0}:{key:l.key,volume:0}}),t=JSON.parse(JSON.stringify(S));t.shift(),t=t.map(e=>{let t=l.filter(l=>l.key===e.key).reduce((e,l)=>e+(null==l?void 0:l.volume),0);return{...e,currentMentions:t}});let s={key:"all",type:"All Mentions",currentMentions:t.reduce((e,l)=>e+l.currentMentions,0)};R([s,...t]),Z(!1)}).catch(e=>Z(!1))},B=()=>{R(T),W(T)},H=async()=>{let e=y()(1e3*L).diff(y()(1e3*M),"days")+1,t="days",s=y()(1e3*M).subtract(e,t).unix(),a=y()(1e3*L).subtract(e,t).unix(),i=O.map(e=>{let t={filters:[...e.filtersList,"customTags:".concat(l)],query:null!=C?C:"*",workspaceId:e.workspaceId,limit:2,startDateTime:s,endDateTime:a};return(0,v.ge)(t)});Promise.all(i).then(async e=>{let l=[...O].map((l,t)=>{let s=e[t];return s&&!b()(s)?{key:l.key,volume:s.itemsCount?s.itemsCount:0}:{key:l.key,volume:0}}),t=JSON.parse(JSON.stringify(S));t.shift(),t=t.map(e=>{let t=l.filter(l=>l.key===e.key).reduce((e,l)=>e+(null==l?void 0:l.volume),0);return{...e,currentMentions:t}});let s={key:"all",type:"All Mentions",currentMentions:t.reduce((e,l)=>e+l.currentMentions,0)};W([s,...t])})},z=(e,s)=>{if("all"===e||"audio"===e){let a="all"===e?O:O.filter(e=>"audio"===e.key);I({query:null!=C?C:"*",dateRange:t,filtersList:["customTags:".concat(l)],workspaceId:null,multiSourcesParams:a,abstraction:{description:{label:"all"===e?"record":s}}});return}let a=O.find(l=>l.key===e);if(!a)return;let i={query:null!=C?C:"*",dateRange:t,filtersList:[...a.filtersList,"customTags:".concat(l)],workspaceId:a.workspaceId,abstraction:{description:{label:s}}};I(i)},q=e=>{if(!(null==k?void 0:k.reference))return;if("all"===e||"audio"===e){let l="all"===e?O:O.filter(e=>"audio"===e.key),s={query:C?"(".concat(C,") && ").concat(null==k?void 0:k.reference):null==k?void 0:k.reference,dateRange:t,filtersList:[],workspaceId:null,multiSourcesParams:l};I(s);return}let l=O.find(l=>l.key===e);if(!l)return;let s={query:C?"(".concat(C,") && ").concat(null==k?void 0:k.reference):null==k?void 0:k.reference,dateRange:t,filtersList:[...l.filtersList],workspaceId:l.workspaceId};I(s)};return(0,s.jsx)("div",{className:(0,h.cn)("grid grid-cols-2 gap-2 p-2 text-[20px] bg-paperWhite lg:grid-cols-4 lg:flex-row lg:text-[48px] lg:leading-[52.8px] ".concat("vertical"===i?"!flex-col gap-2":""," ").concat("vertical"===i&&"left"===n?"items-end":"items-start"),_),children:S.map((e,g)=>{var v,h,y,C,b;return(0,s.jsx)(a.Fragment,{children:(0,s.jsxs)("div",{className:"flex flex-col gap-2 rounded-sm ".concat("vertical"===i&&"left"===n?"items-end":"items-start"," cursor-").concat(e.currentMentions?"pointer":"not-allowed"," p-4 flex flex-col flex-1 gap-2 hover:bg-white bg-[#f4f4f4] h-full relative ").concat(null!==(y=e.className)&&void 0!==y?y:""),onMouseEnter:()=>F(e.key),onMouseLeave:()=>F(null),onClick:()=>e.currentMentions?z(e.key,e.abstraction):null,children:[(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)("div",{className:"text-brownDark text-[48px] leading-[52.8px] uppercase",children:(0,w.uf)(+e.currentMentions)}),P?(0,s.jsx)(o.Z,{sfTagId:l,filtersList:null!==(C=null===(v=O.find(l=>
1e.key===l.key))||void 0===v?void 0:v.filtersList)&&void 0!==C?C:[],dateRange:t,workspaceId:null!==(b=null===(h=O.find(l=>e.key===l.key))||void 0===h?void 0:h.workspaceId)&&void 0!==b?b:0,currentMentions:e.currentMentions,previousValue:V[g].currentMentions,isRelative:!0,isViewOnly:!0}):null]}),(0,s.jsxs)("div",{className:"flex gap-1 items-center",children:["media"===e.key||"watch_media"===e.key?(0,s.jsx)(d.Z,{fill:"#3A3935",size:20}):"all"===e.key?(0,s.jsx)(f.Z,{fill:"#3A3935"}):"kols"===e.key?(0,s.jsx)(m.Z,{fill:"#3A3935",size:20}):"audio"===e.key?(0,s.jsx)(x.Z,{fill:"#3A3935"}):"newsletters"===e.key?(0,s.jsx)(p.Z,{fill:"#3A3935",size:20}):"blogs_forums"===e.key?(0,s.jsx)(u.Z,{fill:"#3A3935",size:20}):"blog_articles"===e.key||"posts"===e.key?(0,s.jsx)(c.Z,{fill:"#3A3935",size:20}):"",(0,s.jsx)("div",{className:"text-[0.66em] leading-4 tracking-[0.32px] text-brownDark lg:text-[0.33em]",children:e.type})]}),D?(0,s.jsx)("div",{className:"flex min-h-[50px] h-full justify-center w-full absolute z-[1000] left-0 right-0 top-0 bg-[#f4f4f4]",children:(0,s.jsx)(N,{animationData:j,className:"w-[50px]",loop:!0})}):null,(null==k?void 0:k.reference)&&A&&A===e.key?(0,s.jsx)("div",{className:"absolute right-4 hover:bg-gold rounded-full",title:"Searching...",children:(0,s.jsx)(r.Z,{trigger:"hover",className:"p-1",pendingTimer:1500,onHover:()=>e.currentMentions?q(e.key):()=>{}})}):null]})},"external_mentions_".concat(g))})})}},40285:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSG:function(){return _},default:function(){return I}});var s=t(85893),a=t(29529),i=t(67294),n=t(85917),o=t(49108),r=t(3510),c=t(30381),d=t.n(c),u=t(31859),m=t(10254),p=t(15644),x=t(47456),f=t(3836),g=t(24266),v=t(17514),w=t(99215),h=t(80169);let k=[{key:"posts",workspaceId:o.tW.brandPageSome,filtersList:["objectType:(0 1 4 5 15)"]},{key:"blog_articles",workspaceId:o.tW.brandPageBlogs,filtersList:["mediaType:(1 2)"]},{key:"newsletters",workspaceId:o.tW.newsletters,filtersList:["objectType:27","customTags:ct_source_type_watch_brand"]},{key:"ads",workspaceId:o.tW.brandPageAds,filtersList:[]}],y=[{key:"posts",workspaceId:o.tW.some,filtersList:["objectType:(0 1 4 5 15)"]},{key:"blog_articles",workspaceId:o.tW.blogs,filtersList:["mediaType:(1 2)"]},{key:"newsletters",workspaceId:o.tW.newsletters,filtersList:["objectType:27","customTags:ct_retailer_*","customTags:ct_source_type_wholesalers"]},{key:"ads",workspaceId:o.tW.ads,filtersList:[]}];var C=e=>{var l,t,a,n,r,c,d,C,b,j;let{leftWatchModel:N,rightWatchModel:T,dateRange:_,setIsNameShown:I,setLeftWatchModel:M,setRightWatchModel:L,availableArchiveDepth:D,session:Z,handleChangeDateRange:S,handleChangeCustomDate:R}=e,[V,W]=(0,i.useState)(null),[A,F]=(0,i.useState)(!1),P=null!==(r=null==Z?void 0:null===(t=Z.customOptions)||void 0===t?void 0:null===(l=t.disableRoutesAndLinks)||void 0===l?void 0:l.filter(e=>"wmp"===e))&&void 0!==r?r:[];(0,i.useEffect)(()=>{let e=()=>{if(E.current){let e=E.current.getBoundingClientRect();I(e.top<=1)}};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),(0,i.useEffect)(()=>{V&&F(!0)},[V]);let O=e=>{W(e)},E=(0,i.useRef)(null);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10",children:[(0,s.jsx)(u.Z,{retailer:N,name:null==N?void 0:N.title,description:null==N?void 0:N.fullDescription,hrefLink:(null==P?void 0:P.includes("wmp"))?"/watches?viewMode=default":"/watches/".concat(null==N?void 0:N.id),imageLink:null==N?void 0:N.imageLink,imageOptions:{isAvatar:!0}}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]",ref:E}),(0,s.jsx)(u.Z,{retailer:T,name:null==T?void 0:T.title,description:null==T?void 0:T.fullDescription,hrefLink:(null==P?void 0:P.includes("wmp"))?"/watches?viewMode=default":"/watches/".concat(null==T?void 0:T.id),imageLink:null==T?void 0:T.imageLink,imageOptions:{isAvatar:!0}})]}),(0,s.jsx)("div",{className:"xxl:hidden mr-4 my-10 flex justify-end",children:(0,s.jsx)(v.Z,{dateRange:_,availableArchiveDepth:D,onChangeDate:R,isExtended:!0,handleChangeDateRange:S})}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-2 lg:gap-6 pb-10",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-2 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Mentions & Promos"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)(w.Z,{dateRange:_,sfTagId:null==N?void 0:N.modelCustomTag,onShowItemsView:O,className:"bg-[#fff] !grid-cols-1",orientation:"vertical"}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)(w.Z,{dateRange:_,sfTagId:null==T?void 0:T.modelCustomTag,onShowItemsView:O,className:"bg-[#fff] !grid-cols-1",orientation:"vertical",position:"right"}):null})]})]}):null}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-2 lg:gap-6 pb-10",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-2 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Brand Promo Activities"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)(h.Z,{sfTagId:null!==(d=null!==(c=N.authorCustomTag)&&void 0!==c?c:null===(a=N.brandCustomTag)||void 0===a?void 0:a.replace("_brand_","_author_"))&&void 0!==d?d:"",additionalFilters:["customTags:".concat(N.modelCustomTag)],dateRange:_,mentionsBasicParams:k,orientation:"vertical",position:"left",onShowItemsView:O}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)(h.Z,{sfTagId:null!==(b=null!==(C=T.authorCustomTag)&&void 0!==C?C:null===(n=T.brandCustomTag)||void 0===n?void 0:n.replace("_brand_","_author_"))&&void 0!==b?b:"",additionalFilters:["customTags:".concat(T.modelCustomTag)],dateRange:_,mentionsBasicParams:k,orientation:"vertical",position:"right",onShowItemsView:O}):null})]})]}):null}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-2 lg:gap-6 pb-10",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-2 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Retailers Promo Activities"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)(h.Z,{sfTagId:N.modelCustomTag,dateRange:_,mentionsBasicParams:y,orientation:"vertical",position:"left",onShowItemsView:O}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[250px] md:w-[250px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)(h.Z,{sfTagId:T.modelCustomTag,dateRange:_,mentionsBasicParams:y,orientation:"vertical",position:"right",onShowItemsView:O}):null})]})]}):null}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-6",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-6 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Sources"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10 w-full",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(x.Z,{dateRange:_,customCt:null==N?void 0:N.modelCustomTag,setWatch:M,sources:null==N?void 0:N.sources,onShowItemsView:O})}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(x.Z,{dateRange:_,customCt:null==T?void 0:T.modelCustomTag,setWatch:L,sources:null==T?void 0:T.sources,onShowItemsView:O})}):null})]})]}):null}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-6",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-6 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Countries"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10 w-full",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(f.Z,{dateRange:_,customCt:null==N?void 0:N.modelCustomTag,setWatch:M,countries:null==N?void 0:N.countries,onShowItemsView:O})}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(f.Z,{dateRange:_,customCt:null==T?void 0:T.modelCustomTag,setWatch:L,countries:null==T?void 0:T.countries,onShowItemsView:O})}):null})]})]}):null}),(0,s.jsx)("div",{className:"flex flex-col items-center gap-6 pb-10",children:(null==N?void 0:N.modelCustomTag)||(null==T?void 0:T.modelCustomTag)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mt-6 flex justify-center text-center text-[24px] uppercase leading-[31.2px] text-brownDark",children:"Influencers"}),(0,s.jsxs)("div",{className:"flex justify-center gap-2 lg:gap-10",children:[(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==N?void 0:N.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(g.Z,{dateRange:_,sfTagId:null==N?void 0:N.modelCustomTag,setFair:M,influencers:null==N?void 0:N.influencers,onShowItemsView:O,sources:["instagram.com","youtube.com","tiktok.com","facebook.com","linkedin.com"],influencersCount:null==N?void 0:N.influencersCount,workspaceId:o.tW.kols,position:"vertical"})}):null}),(0,s.jsx)("div",{className:"w-[1px] bg-[#C6C6C6]"}),(0,s.jsx)("div",{className:"w-[calc(50%-12px)] max-w-[calc(50%-12px)] md:max-w-[368px] md:w-[368px]",children:(null==T?void 0:T.modelCustomTag)?(0,s.jsx)("div",{className:"flex flex-col gap-2 border border-[#C6C6C6] rounded-sm bg-white",children:(0,s.jsx)(g.Z,{dateRange:_,sfTagId:null==T?void 0:T.modelCustomTag,setFair:L,influencers:null==T?void 0:T.influencers,onShowItemsView:O,sources:["instagram.com","youtube.com","tiktok.com","facebook.com","linkedin.com"],influencersCount:null==T?void 0:T.influencersCount,workspaceId:o.tW.kols,position:"vertical"})}):null})]})]}):null}),(0,s.jsx)(m.Z,{open:A,setOpen:e=>{F(e),W(null)},className:"lg:w-fit p-0 pb-4 overflow-hidden gap-0",children:V?(0,s.jsx)(p.Z,{...V,dateRange:null!==(j=V.dateRange)&&void 0!==j?j:_,filtersList:V.filtersList,isShowRecordsCount:!0,workspaceId:V.workspaceId,session:Z}):null})]})},b=t(26920),j=t(83886),N=t(34859);let T={generalInfo:[{key:"ct_product_line_",label:"Collection"},{key:"ct_strap_material_",label:"Strap Type"},{key:"ct_movement_",label:"Movement Function"},{key:"ct_special_edition_",label:"Special Edition"}],dialOptions:[{key:"ct_dial_color_",label:"Dial Color"}],caseOptions:[{key:"ct_case_material_",label:"Case Material"},{key:"ct_case_height_",label:"Case Height"},{key:"ct_case_diameter_",label:"Case Diameter"},{key:"ct_water_resistance",label:"Water Resistance"}]};var _=!0,I=e=>{var l,t;let{global:c,objects:u,compareWatches:m,getLeftRetailerDataFromAE:p,getRightRetailerDataFromAE:x,session:f,objectIdLeft:g,objectIdRight:v}=e,[w,h]=(0,i.useState)(!1),[k,y]=(0,i.useState)({startDateTime:d()({year:2024,month:1,day:1}).startOf("day").unix(),endDateTime:d()().endOf("day").unix(),periodType:"12 months",isCustom:!1}),[_,I]=(0,i.useState)(null!==(l=m.leftWatchModel)&&void 0!==l?l:null),[M,L]=(0,i.useState)(null!==(t=m.rightWatchModel)&&void 0!==t?t:null);(0,i.useEffect)(()=>{g&&D(g,I),v&&D(v,L)},[g,v]);let D=async(e,l)=>{let{startDateTime:t,endDateTime:s}=k,a={filters:["customTags:ct_i_novelties_*"],query:"id:".concat(e),workspaceId:o.tW.novelties,limit:1,startDateTime:t,endDateTime:s},i=await (0,r.ge)(a);if(null==i?void 0:i.data){let[e]=i.data;if(e){var n,c,d,u,m,p;let{id:t,fullText:s,priceUsd:a,price:i,currency:r,categories:x,saveTime:f,source:g,pubTime:v}=e,w=JSON.parse(s),{brand:h,name:k,reference:y,description:C}
1=w,_=null!==(n=x.find(e=>e.includes("ct_model_")))&&void 0!==n?n:"",I=null!==(c=x.filter(e=>!o.zl.some(l=>e.includes(l))).find(e=>e.includes("ct_i_novelties_")))&&void 0!==c?c:null,M=a?Number((a/100).toFixed(0)):0,L=await (0,N.a8)(x),D=null!==(d=L.find(e=>e.key.includes("ct_product_line_")))&&void 0!==d?d:null,Z={key:"launch_date",label:"Launch Date",value:I?(0,j.mk)(I,f):"N/A"},S={...T};for(let e in S){let l=S[e].map(e=>{let l=L.filter(l=>l.key.includes(e.key)),t="N/A";if(l.length>1)t=l.map(e=>{var l;let[,t]=e.value.split(":");return null!==(l=null==t?void 0:t.trim())&&void 0!==l?l:"N/A"});else if(1===l.length){var s;let[e]=l,[,a]=e.value.split(":");t=null!==(s=null==a?void 0:a.trim())&&void 0!==s?s:"N/A"}return{...e,value:t}});S[e]="generalInfo"===e?[Z,...l]:l}if(D){let e=D.value;if(e.includes(":")){let l=e.split(":");l.length>1&&l.shift(),e=l.join(":").trim()}D={...D,label:e}}let R=x.find(e=>e.includes("ct_price_range_usd_")),V={id:t,title:k&&k.includes(h)?k:"".concat(h," ").concat(null!=k?k:"N/A"),brand:h,brandCustomTag:null!==(u=x.find(e=>e.includes("ct_brand_")))&&void 0!==u?u:null,fullDescription:C,price:M,priceDate:v,priceLabel:(0,b.hx)(M),priceRange:R&&null!==(m=o.Co.find(e=>e.key===R))&&void 0!==m?m:null,originPrice:i?Number((i/100).toFixed(0)):0,originCurrency:r,imageLink:"https://application-storage.informio.biz/sf-ai/objects-logos/".concat(_,".png"),reference:null!=y?y:"",collection:D,modelCustomTag:_,authorCustomTag:null!==(p=x.find(e=>e.includes("ct_author_")))&&void 0!==p?p:null,source:g,...S};l(V);return}l(null)}},Z=(0,i.useMemo)(()=>{var e,l,t,s,a,i,n;let o=null!==(n=null!==(i=null==f?void 0:null===(t=f.customOptions)||void 0===t?void 0:null===(l=t.itemRelatedArchiveDepth)||void 0===l?void 0:null===(e=l.find(e=>"/compare-fairs/[slug]"===e.url))||void 0===e?void 0:e.maxDepth)&&void 0!==i?i:null==f?void 0:null===(a=f.customOptions)||void 0===a?void 0:null===(s=a.archiveDepth)||void 0===s?void 0:s.maxDepth)&&void 0!==n?n:null;return o},[f]),S=(0,i.useMemo)(()=>{var e,l;return null!==(l=null==f?void 0:null===(e=f.customOptions)||void 0===e?void 0:e.featuresLimitations)&&void 0!==l?l:null},[f]);m=[_,M];let R=e=>{y(e)},V=(e,l)=>{if(!e&&l){let[e,t]=l.split(" "),s={startDateTime:d()().subtract(e,t).startOf("day").unix(),endDateTime:d()().endOf("day").unix(),periodType:l,isCustom:!1};y(s)}};return(0,s.jsxs)(a.Z,{global:c,isNameShown:w,compareItems:m,session:f,selectedDateRangeForComparePage:k,handleChangeCustomDateForComparePages:R,handleChangeDateRangeForComparePages:V,children:[(0,s.jsx)(n.Z,{metadata:{metaTitle:"Compare Watches",metaDescription:"Compare Watches"}}),f?(0,s.jsx)(C,{leftWatchModel:_,rightWatchModel:M,setLeftWatchModel:I,setRightWatchModel:L,availableArchiveDepth:Z,featuresLimitations:S,dateRange:k,setIsNameShown:h,session:f,handleChangeCustomDate:R,handleChangeDateRange:V}):null]})}}},function(e){e.O(0,[3662,2194,1866,5899,3867,4601,9529,8402,1668,9229,7936,7127,9774,2888,179],function(){return e(e.s=91634)}),_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.