PageSourceSearch

https://www.dating.com/app/19d2919aa9970ac0.js

js dating.com collected 2026-10-02 04:04:33 UTC 16,342 bytes, 5 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b2c3fc6c-b675-5c72-8662-e7f0a535807d")}catch(e){}}();
3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["455"],{67306(e,s,a){let t,r;a.d(s,{LoyaltyPage:()=>eU});var l=a(42062),n=a(75841),o=a(66691),i=a(64651),c=a(91994),d=a(67441),y=a(84891),u=a(46856),m=a(89301),p=a(52875),h=a(31085),g=["pageIsOpened"],v=a(31568),k=a(99870),_=a.n(k),x=a(81924),j=a(59079),f=a(30743),b=a(31114),w=a(86019),N=a(15782),M=a(53243),z=a(27888),I=a(87111);let A={card:"pages-loyalty-status-card__card","card-premium":"pages-loyalty-status-card__card-premium","card-vip":"pages-loyalty-status-card__card-vip","card-vip-freeze":"pages-loyalty-status-card__card-vip-freeze",header:"pages-loyalty-status-card__header",crown:"pages-loyalty-status-card__crown",status:"pages-loyalty-status-card__status",progress:"pages-loyalty-status-card__progress",hint:"pages-loyalty-status-card__hint",link:"pages-loyalty-status-card__link",warning:"pages-loyalty-status-card__warning",greeting:"pages-loyalty-status-card__greeting",frozen:"pages-loyalty-status-card__frozen",inner:"pages-loyalty-status-card__inner",note:"pages-loyalty-status-card__note"},C=(0,l.memo)(e=>{var{status:s,substatus:a,progress:t,name:r,onLoyaltyPageLinkClick:n}=e,i=(0,l.useMemo)(()=>_()(A.card,A["card-"+s],a?A[a]:""),[s,a]),c=(0,l.useMemo)(()=>t&&t.value>=t.target,[t]),d=(0,o.J2)(()=>w._.shared().language,[],"en-US"),y=(0,l.useMemo)(()=>{switch(s){case"vip":return"/users/loyalty#vip-status";case"vip-freeze":return"/users/loyalty#vip-freeze-status";case"premium":return"/users/loyalty#premium-status"}},[s]),u=(0,l.useMemo)(()=>{switch(s){case"vip":return"frozen"===a?"/users/loyalty#vip-frozen-hint-text-2":c?"/users/loyalty#congratulations":"/users/loyalty#vip-hint-text-2";case"vip-freeze":return"/users/loyalty#vip-freeze-hint-text";case"premium":return"/users/loyalty#premium-hint-text-2"}},[s,c,a]),m=(0,l.useMemo)(()=>t?{amount:Math.max(t.target-t.value,0),date:t.expiration?new Date(t.expiration).toLocaleDateString(d,{day:"numeric",month:"short",year:"numeric"}):""}:null,[t,d]),p=(0,l.useMemo)(()=>({name:r}),[r]),g=(0,l.useMemo)(()=>"premium"===s?"light":"dark",[s]),v="frozen"===a?"loyalty-crown-frozen":"loyalty-crown",k=(0,N.A)("/users/loyalty","vip-frozen-cta"),C="vip"===s&&"frozen"===a?k:void 0;return(0,h.jsxs)("div",{className:i,children:[(0,h.jsxs)("div",{className:A.header,children:[(0,h.jsxs)("div",{className:A.inner,children:[(0,h.jsx)("div",{className:A.status,children:(0,h.jsx)(x.LocalizedText,{href:y,variant:"loyalty-status",color:"inherit"})}),(0,h.jsx)("div",{className:A.greeting,children:(0,h.jsx)(x.LocalizedText,{href:"/users/loyalty#hi",variant:"h2-slim",data:p,color:"inherit"})}),"vip-freeze"===s&&(0,h.jsx)(f.i,{className:A.warning,variant:"body-2"}),"vip"===s&&(0,h.jsx)(I.v,{name:v,className:A.crown})]}),"vip"===s&&"frozen"===a&&(0,h.jsx)(x.LocalizedText,{href:"/users/loyalty#vip-frozen-hint-text",variant:"body-2",color:"inherit"})]}),(0,h.jsx)(j.w,{className:A.progress,status:s,value:t.value,target:t.target}),(0,h.jsxs)("div",{className:A.hint,children:[!!m&&(0,h.jsx)(x.LocalizedText,{href:u,variant:"body-2",data:m,color:"inherit"}),"vip-freeze"===s||"vip"===s&&"frozen"===a?(0,h.jsx)(M.n,{discountLabelAvailable:!0,blockLevel:!0,title:C,paymentReason:z.N.LoyaltyUpgrade}):(0,h.jsx)(b.K,{className:A.link,theme:g,variant:"body-2",onClick:n})]}),"vip"===s&&"frozen"===a&&(0,h.jsx)("div",{className:A.note,children:(0,h.jsx)(x.LocalizedText,{href:"/users/loyalty#vip-frozen-note",variant:"footnote-2",color:"inherit"})})]})});var E=(0,l.memo)(e=>{var s=(0,c.w)(),a=(0,v.sb)(s),t=a?a.name:"";return(0,h.jsx)(C,Object.assign({name:t},e))}),L=a(43751),T=a(79760),q=a(97314),F=a(78903),O={"vip-badge":"loyalty-crown","virtual-gifts":"loyalty-virtual-gifts","sticker-pack":"loyalty-sticker-pack","highlighted-profile":"loyalty-highlighted",tasks:"loyalty-cup","more-soon":"loyalty-present"},S={"vip-badge":"pages-loyalty-perks__perkVipBadge","virtual-gifts":"pages-loyalty-perks__perkVirtualGifts","sticker-pack":"pages-loyalty-perks__perkStickerPack",tasks:"pages-loyalty-perks__perkTasks"},U=e=>{var{status:s,perk:a,onPerkClick:t}=e,r=(0,l.useMemo)(()=>O[a],[a]),n=(0,N.A)("/users/loyalty/perks",a),o=(0,l.useMemo)(()=>_()("pages-loyalty-perks__perk",S[a]),[a]),i=(0,l.useCallback)(()=>t(a),[t,a]);return(0,h.jsxs)("button",{className:o,onClick:i,children:[(0,h.jsx)(I.v,{name:r,className:"pages-loyalty-perks__illustration"}),"vip"!==s&&(0,h.jsx)("div",{className:"pages-loyalty-perks__lock",children:(0,h.jsx)(F.Icon,{name:"locker",size:"normal"})}),(0,h.jsx)("div",{className:"pages-loyalty-perks__name",children:(0,h.jsx)(q.E,{
3content:n,variant:"footnote-2"})})]})};let J=(0,l.memo)(e=>{var{status:s,perks:a,onPerkClick:t}=e,r=(0,N.A)("/users/loyalty",s+"-perks-title");return(0,h.jsxs)("div",{className:"pages-loyalty-perks__container",children:[(0,h.jsx)("div",{className:"pages-loyalty-perks__title",children:(0,h.jsx)(q.E,{content:r,variant:"h2-slim"})}),(0,h.jsx)("div",{className:"pages-loyalty-perks__perks",children:a.map(e=>(0,h.jsx)(U,{status:s,perk:e,onPerkClick:t},e))})]})});var P=["vip-badge","virtual-gifts","sticker-pack","highlighted-profile","tasks","more-soon"],D=(0,l.memo)(e=>{var{status:s}=e,a=(0,l.useCallback)(e=>{L.Y.shared().get(T.A).actions.open("loyalty-perk-overlay",[{props:{perk:e,status:s}}])},[s]);return(0,h.jsx)(J,Object.assign({perks:P,onPerkClick:a},e))}),V=a(56240),B=["can-i-regain","do-need-reapply","how-do-qualify","how-long-last","how-to-track","what-are-benefits","what-if-not","what-is-vip"],Y={daysAmount:30,targetAmount:160},G=e=>{var{faqItem:s}=e,[a,t]=(0,l.useState)(!1),r=(0,N.A)("/users/loyalty/faq",s+"-title",Y),n=(0,N.A)("/users/loyalty/faq",s+"-description",Y),o=(0,l.useMemo)(()=>_()("pages-loyalty-faq__item",{"pages-loyalty-faq__itemOpened":a}),[a]),i=(0,l.useMemo)(()=>(0,h.jsxs)("dt",{className:"pages-loyalty-faq__itemTrigger",children:[(0,h.jsx)(q.E,{variant:"body-1",content:r}),(0,h.jsx)(F.Icon,{name:"arrow-right-thick",size:"small"})]}),[r]);return(0,h.jsx)("div",{className:o,children:(0,h.jsx)(V.j,{triggerElement:i,onVisibilityChange:t,children:(0,h.jsx)("dd",{className:"pages-loyalty-faq__description",children:(0,h.jsx)(q.E,{variant:"body-2",content:n})})})})};let H=(0,l.memo)(()=>{var e=(0,N.A)("/users/loyalty/faq","title");return(0,h.jsxs)("div",{className:"pages-loyalty-faq__container",children:[(0,h.jsx)("div",{className:"pages-loyalty-faq__title",children:(0,h.jsx)(q.E,{content:e,variant:"h2-slim"})}),(0,h.jsx)("dl",{className:"pages-loyalty-faq__faq",children:B.map(e=>(0,h.jsx)(G,{faqItem:e},e))})]})});var Q=a(15526),R=a(30131),X=a(13707),K=a(37394),Z=a(84190),$=a(40554),W=a(56177),ee=a(28138),es=a(53940),ea=a(77813),et=a(16566),er=a(15654),el=a(36580),en=a(79942),eo=a(33702),ei=a.n(eo),ec=a(82701),ed=a(93648),ey=a(85752),eu=a(97928),em=a(14321),ep=a(91340);class eh{constructor(e){this.usersInFeedAmount=12,this.userId=e;var s=eu.n.shared(this.userId).chats.pipe((0,Z.n)(e=>(0,R.H)(e).pipe((0,$.H)(e=>em.f.shared(e.attendeeId).userIsFeaturedMember.pipe((0,W.s)(1),(0,ee.T)(s=>s?e.attendeeId:null))),(0,es.p)(e=>null!==e),(0,ea.Q)(X.T),(0,et.$)()))),a=ed.BE.shared(this.userId).filters.pipe((0,Z.n)(e=>ec.Q7.shared(this.userId).items(this.usersInFeedAmount,0,(0,ey.rr)(Object.assign({},e,{featuredMembersFilterEnabled:!0}))).pipe((0,en.vV)(e=>e.map(e=>e.id)))));this.feedUserIds=s.pipe((0,Z.n)(e=>(0,K.T)(()=>e.length>=this.usersInFeedAmount,(0,n.of)(e),a.pipe((0,ee.T)(s=>(0,ep.s)([...e,...s]))))),(0,ee.T)(e=>e.slice(0,this.usersInFeedAmount)),(0,er.F)(ei()),(0,el.t)({refCount:!0,bufferSize:1}))}}eh.shared=(0,Q.G)(e=>new eh(e));var eg=["onFeaturedMemberClick"],ev=a(35738),ek=a(9778),e_=e=>{var{featuredMemberId:s,onFeaturedMemberClick:a}=e,t=(0,l.useCallback)(()=>a(s),[s,a]);return(0,h.jsxs)("div",{className:"pages-loyalty-engage__user",onClick:t,children:[(0,h.jsx)(ek.UserThumbnail,{className:"pages-loyalty-engage__thumbnail",ownerId:s,size:72}),(0,h.jsx)(ev.x,{ownerId:s})]})},ex=(t=(0,l.memo)(e=>{var{featuredMemberIds:s,status:a,progress:t,onFeaturedMemberClick:r}=e,n=t&&t.value>=t.target,o=(0,l.useMemo)(()=>{switch(a){case"vip":return n?"vip-retained-featured-members-title":"vip-featured-members-title";case"premium":return"premium-featured-members-title"}},[n,a]),i=(0,N.A)("/users/loyalty",o),c=(0,N.A)("/users/loyalty","spend-credits");return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsxs)("div",{className:"pages-loyalty-engage__header",children:[(0,h.jsx)(q.E,{content:i,variant:"h2-slim"}),!n&&(0,h.jsx)(q.E,{content:c,variant:"body-2"})]}),(0,h.jsx)("div",{className:"pages-loyalty-engage__users",children:s.map(e=>(0,h.jsx)(e_,{featuredMemberId:e,onFeaturedMemberClick:r},e))})]})}),(0,l.memo)(e=>{var s=(0,c.w)(),{onFeaturedMemberClick:a}=e,r=function(e,s){if(null==e)return{};var a={};for(var t in e)if(({}).hasOwnProperty.call(e,t)){if(s.includes(t))continue;a[t]=e[t]}return a}(e,eg),n=(0,l.useCallback)(e=>{s&&p.X.shared(s).logLoyaltyEngagedClicked(e),a(e)},[s,a]);return(0,h.jsx)(t,Object.assign({onFeaturedMemberClick:n},r))})),ej=(0,l.memo)(e=>{var s=(0,c.w)(),a=(0,o.J2)(()=>s?eh.shared(s).feedUserIds:(0,n.of)([]),[s],[]),t=(0,l.useCallback)(e=>{(0,u.Z)(e,void 0,"loyalty-engage-section")},[]);return(0,h.jsx)(ex,Object.assign({featuredMemberIds:a,onFeaturedMemberClick:t},e))}),ef=a(56607);let eb=(0,l.memo)(e=>{var{total:s,completed:a}=e,t=a===s,r=(0,l.useMemo)(()=>_()("pages-loyalty-tasks-progress-bar__fill",{"pages-loyalty-tasks-progress-bar__completed":t}),[t]),n=(0,l.useMemo)(()=>a<=1?0:a>=s?100:(a-1)/(s-1)*100,[a,s]),o=(0,l.useMemo)(()=>({width:n+"%"}),[n]);return(0,h.jsxs)("div",{className:"pages-loyalty-tasks-progress-bar__progress",children:[(0,h.jsx)("div",{className:"pages-loyalty-tasks-progress-bar__line",children:(0,h.jsx)("div",{className:r,style:o})}),Array.from({length:s}).map((e,s)=>{var t=_()("pages-loyalty-tasks-progress-bar__step",{"pages-loyalty-tasks-progress-bar__active":s<a});return(0,h.jsx)("div",{className:t,children:(0,h.jsx)(I.v,{name:"loyalty-checkmark-done",width:18,height:18})},s)})]})});var ew=a(94375),eN=a(89267),eM=[{unit:"days",interval:ew.b.day},{unit:"hours",interval:ew.b.hour},{unit:"minutes",interval:ew.b.minute}];let ez=(0,l.memo)(e=>{var{countdown:s}=e,{unit:a,value:t}=(0,l.useMemo)(()=>(e=>{for(var{unit:s,interval:a}of eM){var t=Math.floor(e/a);if(t>=1)return{unit:s,value:t}}return{unit:"now",value:0}})(s),[s]),r=(0,N.A)("/users/loyalty/tasks","time-left-"+a,{[a]:t});return(0,h.jsxs)("div",{className:"pages-loyalty-tasks-countdown__countdown",children:[(0,h.jsx)(F.Icon,{name:"loyalty-timer",size:"normal"}
3),(0,h.jsx)(q.E,{content:r,variant:"footnote-1"})]})});var eI=(0,l.memo)(e=>{var{endDate:s}=e,a=(0,l.useMemo)(()=>new Date(s),[s]),t=(0,eN.L)(a,ew.b.minute);return(0,h.jsx)(ez,{countdown:t})});let eA={task:"pages-loyalty-tasks-task-item__task",header:"pages-loyalty-tasks-task-item__header",icon:"pages-loyalty-tasks-task-item__icon",chat:"pages-loyalty-tasks-task-item__chat",mail:"pages-loyalty-tasks-task-item__mail",smile:"pages-loyalty-tasks-task-item__smile",photo:"pages-loyalty-tasks-task-item__photo",microphone:"pages-loyalty-tasks-task-item__microphone",reward:"pages-loyalty-tasks-task-item__reward",content:"pages-loyalty-tasks-task-item__content"};var eC={text:"chat",letter:"mail",smile:"smile",voice:"microphone",photo:"photo"};let eE=(0,l.memo)(e=>{var{task:s}=e,a="nonContacts"===s.interactionType,t=(0,N.A)("/users/loyalty/tasks",a?"task-title-non-contact":"task-title-contact"),r=(0,l.useMemo)(()=>eC[s.type],[s.type]),n=(0,l.useMemo)(()=>_()(eA.icon,eA[r]),[r]),o=(0,N.A)("/users/loyalty/tasks","task-type-"+s.type),i=(0,l.useMemo)(()=>({type:o,count:s.count}),[o,s.count]),c=(0,N.A)("/users/loyalty/tasks",a?"description-non-contact":"description-contact",i);return(0,h.jsxs)("div",{className:eA.task,children:[(0,h.jsxs)("div",{className:eA.header,children:[(0,h.jsx)("div",{className:n,children:(0,h.jsx)(F.Icon,{name:r,size:"normal",color:"white"})}),(0,h.jsxs)("div",{className:eA.reward,children:[(0,h.jsx)(q.E,{content:s.reward.amount,variant:"footnote-1"}),(0,h.jsx)(F.Icon,{name:"credits",size:"normal"})]})]}),(0,h.jsxs)("div",{className:eA.content,children:[(0,h.jsx)(q.E,{content:t,variant:"body-2"}),(0,h.jsx)(q.E,{content:c,variant:"footnote-2"})]})]})}),eL="pages-loyalty-tasks__header",eT=(0,l.memo)(e=>{var{tasks:s,onInfoButtonClick:a}=e,t=s.tasks,r=(0,l.useMemo)(()=>t.filter(e=>e.current<e.count),[t]),n=t.length-r.length,o=0===r.length,i=(0,N.A)("/users/loyalty/tasks","title"),c=(0,l.useMemo)(()=>({reward:s.reward.amount}),[s.reward.amount]),d=(0,N.A)("/users/loyalty/tasks",o?"challenge-completed":"challenge-reward",c),y=(0,l.useMemo)(()=>({completed:n,total:t.length}),[n,t.length]),u=(0,N.A)("/users/loyalty/tasks","completed-ratio",y);return(0,h.jsxs)("div",{className:"pages-loyalty-tasks__container",children:[(0,h.jsxs)("div",{className:eL,children:[(0,h.jsx)(q.E,{content:i,variant:"h2-slim"}),(0,h.jsx)(eI,{endDate:s.endDate})]}),(0,h.jsxs)("div",{className:"pages-loyalty-tasks__card",children:[(0,h.jsxs)("div",{className:eL,children:[(0,h.jsx)(I.v,{className:"pages-loyalty-tasks__image",name:"loyalty-cup",width:72,height:72}),(0,h.jsx)("div",{className:"pages-loyalty-tasks__description",children:(0,h.jsx)(q.E,{content:d,variant:"body-1"})}),(0,h.jsx)("div",{className:"pages-loyalty-tasks__infoButton",onClick:a,children:(0,h.jsx)(I.v,{name:"loyalty-question",width:18,height:18})})]}),(0,h.jsx)(eb,{total:t.length,completed:n}),!o&&(0,h.jsxs)("div",{className:"pages-loyalty-tasks__inner",children:[(0,h.jsx)("div",{className:"pages-loyalty-tasks__completed",children:(0,h.jsx)(q.E,{content:u,variant:"footnote-1"})}),(0,h.jsx)("div",{className:"pages-loyalty-tasks__tasks",children:r.map(e=>(0,h.jsx)(eE,{task:e},e.id))})]})]})]})});var eq=(0,l.memo)(e=>{var s=(0,c.w)(),a=(0,o.J2)(()=>s?d.U.shared(s).tasks:ef.w,[s]),t=(0,l.useCallback)(()=>{L.Y.shared().get(T.A).actions.open("loyalty-perk-overlay",[{props:{perk:"tasks",status:"vip"}}])},[]);return a?(0,h.jsx)(eT,Object.assign({tasks:a,onInfoButtonClick:t},e)):null}),eF=a(13462),eO=(r=(0,l.memo)(e=>{var{status:s,substatus:a,progress:t}=e,r=(0,l.useRef)(null),n=(0,l.useCallback)(()=>{r.current&&r.current.scrollIntoView({behavior:"smooth"})},[]),i=(0,o.J2)(()=>eF.T.shared().userLoyaltyTasksEnabled,[]);return(0,h.jsxs)("div",{className:"pages-loyalty__page",children:[(0,h.jsx)("section",{children:(0,h.jsx)(E,{status:s,substatus:a,progress:t,onLoyaltyPageLinkClick:n})}),i&&"vip"===s&&(0,h.jsx)("section",{children:(0,h.jsx)(eq,{})}),(0,h.jsx)("section",{children:(0,h.jsx)(D,{status:s})}),"vip-freeze"!==s&&(0,h.jsx)("section",{ref:r,className:"pages-loyalty__engageSection",children:(0,h.jsx)(ej,{status:s,progress:t})}),(0,h.jsx)("section",{children:(0,h.jsx)(H,{})})]})}),(0,l.memo)(e=>{var s=(0,c.w)(),{pageIsOpened:a}=e,t=function(e,s){if(null==e)return{};var a={};for(var t in e)if(({}).hasOwnProperty.call(e,t)){if(s.includes(t))continue;a[t]=e[t]}return a}(e,g);return(0,l.useEffect)(()=>{a&&s&&p.X.shared(s).logLoyaltyPageShown()},[s,a]),(0,h.jsx)(r,Object.assign({},t))})),eS=e=>!!e&&"regular"!==e,eU=(0,l.memo)(()=>{var e=(0,i.SN)(),s=(0,c.w)(),a=(0,o.J2)(()=>s?d.U.shared(s).status:(0,n.of)(null),[s]),t=(0,o.J2)(()=>s?d.U.shared(s).substatus:(0,n.of)(null),[s]),r=(0,o.J2)(()=>s?d.U.shared(s).progress:(0,n.of)(null),[s]),p=(0,o.J2)(()=>y.I.shared().visible,[]),g=(0,o.uN)(()=>(0,u.v)(),[]);(0,l.useEffect)(()=>{p&&g()},[p,g]),(0,l.useEffect)(()=>{!p||e||eS(a)||(0,m.Y)()},[p,e,a]);var v=(0,l.useMemo)(()=>null!=r?r:{target:1,value:0},[r]);return!e&&eS(a)&&(0,h.jsx)(eO,{status:a,substatus:t,progress:v,pageIsOpened:!!p})})},89267(e,s,a){a.d(s,{L:()=>l});var t=a(94375),r=a(42062);function l(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.b.second,[a,l]=(0,r.useState)(new Date);return(0,r.useEffect)(()=>{var e=setInterval(()=>{l(new Date)},s-a.getTime()%s);return()=>{clearInterval(e)}},[a,s]),Math.max(e-a,0)}}}]);
4//# sourceMappingURL=sourcemaps/19d2919aa9970ac0.js.map
5//# debugId=b2c3fc6c-b675-5c72-8662-e7f0a535807d

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.