PageSourceSearch

https://www.theunionsports.com/9161.c169965c52eb883b.js

js theunionsports.com collected 2026-10-04 06:37:28 UTC 32,262 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkthe_union_gk=self.webpackChunkthe_union_gk||[]).push([[9161],{52163:(y,v,s)=>{s.d(v,{Al:()=>_,K3:()=>O,Sn:()=>u,Ym:()=>d,gd:()=>p});var e=s(6971);const M=Number.MAX_SAFE_INTEGER,p=(l=[])=>{if(!Array.isArray(l)||!l.length)return[];const f=e.Rv.BADGE_CODE_TO_ICON||{},N=Object.keys(f).reduce((S,I,t)=>(S[I]=t,S),{});return[...l].map(S=>{const I=(l=>l?.badge_code||l?.sk?.split("#")?.[1]||"")(S);return{...S,badge_code:I,iconClass:S?.iconClass||f[I]||""}}).sort((S,I)=>(N[S.badge_code]??M)-(N[I.badge_code]??M))},u=l=>{if(!l||"object"!=typeof l)return l;const f=Array.isArray(l.badges)?p(l.badges):[];return{...l,sortedBadges:f}},d=l=>l&&"object"==typeof l?{...l,user:u(l?.user)}:l,_=l=>Array.isArray(l)?l.map(f=>d(f)):[],O=l=>{if(!l||"object"!=typeof l)return l;const f=Array.isArray(l.users)?[...l.users]:[];return f[0]&&(f[0]=u(f[0])),{...l,users:f}}},6971:(y,v,s)=>{s.d(v,{Rr:()=>p,Rv:()=>u,X3:()=>A});var e=s(84539),M=s(23090);const A={IMAGE_SIZE_LIMIT_MESSAGE:"Please select 1MB or lower size image.",RECEIVE_NOTIFICATIONS_FROM_FOLLOWERS:"Receive Notifications & Newsletters",ALLOW_SHARING_BASIC_INFO:"Allow Sharing Of Basic Information",NO_FOLLOWERS:"You are not following any creators.",SEE_MORE:"See More",NO_USERS_FOUND:"No users found.",NOTIFICATIONS_SETTINGS:"Notification Settings",ACCEPT_TIPS_ON_POST:"Accept Tips on Feed and Chatroom Posts",GUARANTEED_REPLY_TOGGLE:'Offer "Guaranteed Reply" on Direct Messages',GUARANTEED_REPLY:"Guaranteed Reply",GUARANTEED_REPLY_INFO:"If a user sends you a tip with the required tip amount for a Guaranteed Reply, you must reply before money will be available in your wallet.",OKAY:"Okay",YES:"Yes",NO:"No",ACTIVITY:"Activity",BROWSER:"Browser",SMS:"SMS",EMAIL:"Email",CREATORS:"CREATORS",NOTIFICATION_ENABLE_FOR_FOLLOWERS:(d,_)=>`Are you sure you want to ${d?"enable":"disable"} ${"sms"===_.toLowerCase()?"SMS":_[0]?.toUpperCase()+_.slice(1)} Notifications from`,NOTIFICATION_TYPE_HEADING:d=>d?`${"sms"===d.toLowerCase()?"SMS":d} Notifications`:"Notification Settings",SET_DIRECT_MSG:"Direct Message Minimum ",PRICE_FOR_DM:"Price Per Individual Direct Message",GURANTEED_REPLY_MSG:"Guranteed Reply Minimum ",RECEIVE_NOTIFICATION_MESSAGE:"These settings will allow you receive notification in the Activity Center, Browser Notifications (if enabled in your browser) when important creator events happen, including New Content Posts, Personalized Emails and SMS text messages to you.",NEWSLETTER:"NEWSLETTER",PRICE_FOR_DM_LABEL:"Price to Send You an Individual Direct Message"},p={guaranteed_reply:"guaranteed_reply",price_for_dm:"price_for_dm",min_tip_guaranteed_reply:"min_tip_guaranteed_reply"},u={BADGES:"Badges",EDIT_BADGE:"Edit Badge",BADGE_LABEL:"Badge Label",AUTO_ASSIGNMENT_POINTS:"Auto-Assignment Points",UN_NAMED:"Un-named",BADGES_INFO:"Badges are small icons you can assign to your fans that will display next to their name. A fan can only have one badge assigned to them at a time. This screen is to name and activate which badges you offer across your community. Assign badges to fans in Insights & Fans > FRM > Fan Management and selecting a specific fan.",HEADERS:{ICON:"Badge Icon",LABEL:"Badge Label",AUTO_ASSIGN:"Gamification Auto-Assign",STATUS:"Status"},MOBILE_HEADERS:{ICON_BADGES:"Icon Badges",STATUS:"Status",ACTION:"Action"},BADGE_LABEL_HINT:"The label will display when a user hovers over the badge.",AUTO_ASSIGN_HINT:"Fans will automatically earn these badges / groups, if they reach this amount of points in a 30 day period. Purchase points do not count.",ACTIVE:"Active",INACTIVE:"Inactive",BADGE_CODE_TO_ICON:{BADGE_LIKE:"icon-litebadge-like",BADGE_TROPHY:"icon-litebadge-trophy",BADGE_CROWN:"icon-litebadge-crown",BADGE_GAVEL:"icon-litebadge-gavel",BADGE_VERIFIED:"icon-litebadge-verified",BADGE_SIGN:"icon-litebadge-sign",BADGE_FINISH:"icon-litebadge-finish",BADGE_BULB:"icon-litebadge-bulb",BADGE_ROCKET:"icon-litebadge-rocket",BADGE_HELP:"icon-litebadge-help",BADGE_SIMPLE_HEART:"icon-litebadge-simple-heart",BADGE_HUMAN_CARE:"icon-litebadge-human-care",BADGE_DOLLAR:"icon-litebadge-dollar"},LABEL_FIELD:{type:e.sf.TEXT,name:"label",class:"",label:"",placeholder:"Unnamed",validation:{minlength:{value:2,message:"Label must be at least 2 characters."},maxlength:{value:25,message:"Label must be at most 25 characters."},pattern:{value:M.mL.ONLY_NON_WHITESPACE,message:"Label cannot contain only spaces."}}},AUTO_ASSIGN_FIELD:{type:e.sf.NUMBER,name:"auto_assign_threshold",class:"",label:"",placeholder:"0",validation:{min:{value:0,message:"Auto-assign points must be 0 or greater."},pattern:{value:/^(0|[1-9]\d*)$/,message:"Auto-assign points must be an integer."},validatorFunctions:[{errorKey:"duplicateAutoAssign",message:"Multiple badges can't have same points",validatorFn:()=>null}]}},POINTS:"Points",BUTTONS:{DISCARD:{type:"button",label:"DISCARD",name:"discard",class:"btn btn-discard"},SAVE_CHANGES:{type:"button",label:"SAVE CHANGES",name:"saveChanges",class:"btn btn-primary"}},ERROR_MESSAGES:{BADGE_LABEL_REQUIRED:"A badge label is required before it can be set to active."}}},40774:(y,v,s)=>{s.d(v,{R:()=>R});var e=s(64537),A=(s(59735),s(59302)),p=s(67030),u=s(42384),d=s(88692),_=s(84539),O=s(53594),P=s(52163),l=s(75728),f=s(20092),N=s(90404),S=s(74735),I=s(6913),t=s(36194),B=s(76553),D=s(52382);function w(m,C){1&m&&e._UZ(0,"app-loader")}function G(m,C){if(1&m&&e._UZ(0,"em",20),2&m){const a=C.$implicit;e.Q6J("ngClass",a.iconClass)("appToolTip",null==a?null:a.label)}}function F(m,C){if(1&m&&(e.ynx(0),e.YNc(1,G,1,2,"em",19),e.BQk()),2&m){const a=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",null==a||null==a.user?null:a.user.sortedBadges)}}const k=function(m,C){return{"has-image":m,collabSingleUser:C}};function Z(m,C){if(1&m){const a=e.EpF();e.TgZ(0,"label",13)(1,"div",14),e.NdJ("click",function(){const h=e.CH
1M(a).$implicit,U=e.oxw(3);return e.KtG(U.onUserClick(h.user))}),e.TgZ(2,"div",15),e._UZ(3,"img",16),e.qZA(),e.TgZ(4,"div",17),e._uU(5),e.qZA(),e._UZ(6,"app-tick-icon",18),e.YNc(7,F,2,1,"ng-container",8),e.qZA()()}if(2&m){const a=C.$implicit;e.xp6(2),e.Q6J("ngClass",e.WLB(8,k,!(null==a||null==a.user||!a.user.profile_image_url),!(null!=a&&null!=a.user&&a.user.profile_image_url))),e.xp6(1),e.Q6J("originalUrl",null==a||null==a.user?null:a.user.profile_image_url)("src",null==a||null==a.user?null:a.user.profile_image_url,e.LSH)("format","webp"),e.xp6(2),e.AsE(" ",null==a||null==a.user?null:a.user.first_name," ",null==a||null==a.user?null:a.user.last_name," "),e.xp6(1),e.Q6J("creatorData",null==a?null:a.user),e.xp6(1),e.Q6J("ngIf",null==a||null==a.user||null==a.user.badges?null:a.user.badges.length)}}const j=function(m){return{"reel-scroll":m}};function H(m,C){if(1&m&&(e.TgZ(0,"ng-scrollbar",10)(1,"div",11),e.YNc(2,Z,8,11,"label",12),e.qZA()()),2&m){const a=e.oxw(2);e.Q6J("ngClass",e.VKq(2,j,a.isBottomSheetData)),e.xp6(2),e.Q6J("ngForOf",a.likedUsers)}}const K=function(m){return{"reel-modal":m}};function W(m,C){if(1&m){const a=e.EpF();e.TgZ(0,"div",1)(1,"div",2)(2,"h4",3),e._uU(3),e.qZA(),e.TgZ(4,"div",4),e.NdJ("click",function(){e.CHM(a);const T=e.oxw();return e.KtG(T.closeModal())}),e._UZ(5,"em",5),e.qZA()(),e.TgZ(6,"div",6)(7,"form")(8,"div",7),e.YNc(9,w,1,0,"app-loader",8),e.YNc(10,H,3,4,"ng-scrollbar",9),e.qZA()()()()}if(2&m){const a=e.oxw();e.Q6J("ngClass",e.VKq(5,K,a.isBottomSheetData)),e.xp6(3),e.AsE(" ",a.likesCount," ","1"===a.likesCount?a.Fields.LIKE:a.Fields.LIKES," "),e.xp6(6),e.Q6J("ngIf",a.isLoader),e.xp6(1),e.Q6J("ngIf",!a.isLoader)}}let R=(()=>{const C=class{constructor(b,T,h,U={},L,Y,J){this.modalService=b,this.apiCallService=T,this.cs=h,this.data=U,this.document=L,this.bsModalRef=Y,this.bottomSheetRef=J,this.likedUsers=[],this.postId="",this.isLoader=!1,this.likesCount="",this.Fields=_.Iv,this.isBottomSheetData=!1,this.is_ad=!1,this.isForum=!1,this.onLikeModalNavigation=new e.vpe}ngOnInit(){this.cs.isBrowser&&(this.data?.postId?(this.postId=this.data?.postId,this.isBottomSheetData=!0):(this.postId=this.modalService.config.initialState?.postId?this.modalService.config.initialState?.postId:this.modalService.config.initialState,this.is_ad=this.modalService.config.initialState?.is_ad||!1,this.isForum=!!this.modalService.config.initialState?.isForum),this.fetchLikeUsers(this.postId))}onWindowScroll(){this.cs.isBrowser&&this.likedUserPages&&this.likedUserPages?.pk&&(window,window)}fetchLikeUsers(b){this.isLoader=!0;let T=this.isForum?A.$_.forumLikedUsers(b):A.$_.likedUsers(b);this.is_ad&&(T=`${T}?is_ad=true`),this.subscription=this.apiCallService.get(T,!1).subscribe({next:h=>{h.status?(this.isLoader=!1,this.setResponse(h)):(this.isLoader=!1,this.cs.showErrorMessage(h.message))},error:h=>{this.isLoader=!1,this.cs.showErrorMessage(h.message)}})}fetchLikeUsersPages(b,T){this.isLoader=!0,this.subscription=this.apiCallService.get(A.$_.likedUserPages(this.cs.encodeToUTF(this.postId),this.cs.encodeToUTF(b),this.cs.encodeToUTF(T)),!1).subscribe({next:h=>{h.status?(this.isLoader=!1,this.setResponse(h)):(this.isLoader=!1,this.cs.showErrorMessage(h.message))},error:h=>{this.isLoader=!1,this.cs.showErrorMessage(h.message)}})}onUserClick(b){this.cs.redirectToTopFansV2(b,!0),this.closeModal()}setResponse(b){this.likedUsers=(0,P.Al)(b.data),this.likesCount=this.likedUsers.length.toString(),this.likedUserPages=b.LastEvaluatedKey}closeModal(){this.data?.postId&&this.bottomSheetRef.dismiss(),this.bsModalRef?.hide()}ngOnDestroy(){this.subscription?.unsubscribe()}};let m=C;return C.\u0275fac=function(T){return new(T||C)(e.Y36(l.tT),e.Y36(p.F),e.Y36(u.v),e.Y36(O.OG),e.Y36(d.K0),e.Y36(l.UZ,8),e.Y36(O.oL,8))},C.\u0275cmp=e.Xpm({type:C,selectors:[["app-post-likes"]],hostBindings:function(T,h){1&T&&e.NdJ("scroll",function(L){return h.onWindowScroll(L)},!1,e.Jf7)},outputs:{onLikeModalNavigation:"onLikeModalNavigation"},decls:1,vars:1,consts:[["class","modal-content modal-theme2",3,"ngClass",4,"ngIf"],[1,"modal-content","modal-theme2",3,"ngClass"],[1,"modal-header","modal
1-tagCreator-header"],[1,"modal-title"],[3,"click"],[1,"icon-liteicon-close"],[1,"modal-body","modal-tagCreator-body","post-like-wrapper"],[1,"modal-tagSuggested","mt-0"],[4,"ngIf"],["class","scroll-event","thumbClass","white-scrollbars",3,"ngClass",4,"ngIf"],["thumbClass","white-scrollbars",1,"scroll-event",3,"ngClass"],[1,"modal-tagSuggested-list","modal-like-list"],["class","custom-checkbox",4,"ngFor","ngForOf"],[1,"custom-checkbox"],[1,"userList",3,"click"],[1,"userImage","profilehollow",3,"ngClass"],["appDisableRightClick","","appMobileOptimization","","alt","Profile","loading","lazy","decoding","async",3,"originalUrl","src","format"],[1,"userText"],["cls","sm",3,"creatorData"],["class","fan-badge-icon ms-1",3,"ngClass","appToolTip",4,"ngFor","ngForOf"],[1,"fan-badge-icon","ms-1",3,"ngClass","appToolTip"]],template:function(T,h){1&T&&e.YNc(0,W,11,7,"div",0),2&T&&e.Q6J("ngIf",h.cs.isBrowser)},dependencies:[d.mk,d.sg,d.O5,f._Y,f.JL,f.F,N.KC,S.h,I.m,t.J,B.R,D.h],styles:["@media (max-width: 992px){.modal-body[_ngcontent-%COMP%]{padding:0 10px 20px!important}}@media (min-width: 992px){.modal-body[_ngcontent-%COMP%]{padding:0 20px 20px!important}}.icon-liteicon-close[_ngcontent-%COMP%]{cursor:pointer;vertical-align:middle}.icon-liteicon-close[_ngcontent-%COMP%]:before{font-size:18px}.modal-tagSuggested[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:20px 0 0!important}@media (max-width: 992px){.modal-tagSuggested[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .userImage[_ngcontent-%COMP%]{margin:0 13px 0 0!important}}.modal-tagSuggested[_ngcontent-%COMP%]   .userText[_ngcontent-%COMP%]{padding-right:2px!important}.modal-tagSuggested-list.modal-like-list[_ngcontent-%COMP%]   .userImage[_ngcontent-%COMP%]{display:block!important}@media (min-width: 992px){.modal-tagSuggested-list.modal-like-list[_ngcontent-%COMP%]   .userImage[_ngcontent-%COMP%]{margin-right:13px!important;margin-left:10px!important}}.modal-tagSuggested-list.modal-like-list[_ngcontent-%COMP%]   .userImage[_ngcontent-%COMP%]:before{display:block!important;margin:-3px!important}.post-like-wrapper[_ngcontent-%COMP%]   .scroll-event[_ngcontent-%COMP%]{--scrollbar-size: 4px !important;--scrollbar-hover-size: 4px !important}.reel-modal[_ngcontent-%COMP%]{box-shadow:none!important}.reel-modal[_ngcontent-%COMP%]   .modal-body[_ngcontent-%COMP%]{height:489px;overflow:auto}.reel-scroll[_ngcontent-%COMP%]{height:490px!important}  .post-like-wrapper app-tick-icon{margin-bottom:3px!important}.fan-badge-icon[_ngcontent-%COMP%]:before{color:var(--theme-interactive-link)!important}"]}),m})()},12105:(y,v,s)=>{s.d(v,{g:()=>e});const e={USER_NAME:"user_name",TAG_NAME:"tag_name",TIP_PLACEHOLDER:"Ex: Here's a little tip for you...",AMOUNT_MUST_BE_MINIMUM_TIP:"Amount must be at least the minimum tip"}},16852:(y,v,s)=>{s.d(v,{k:()=>q});var e=(()=>((e||(e={})).MINIMUM_TIP_AMOUNT="Minimum $1 Tip",e))(),M=s(65737),A=s(42384),p=s(23090),u=s(59735),d=s(20092),_=s(76492),O=s(12105),P=s(33535),l=s(53594),f=s(96630),N=s(5263),S=s(14443),I=s(65889),t=s(64537),B=s(59622),D=s(88692),w=s(22798),G=s(58746),F=s(32438),k=s(38182);const Z=["currencyConversionModal"],j=["currencySymbol"],H=["amountInput"];function K(r,g){if(1&r&&(t.TgZ(0,"h4",26),t._uU(1),t.qZA()),2&r){const i=t.oxw(2);t.xp6(1),t.hij(" ","message"!==i.modalHeader?"Send Tip Amount":"Please enter the Tip Amount"," ")}}function W(r,g){if(1&r&&(t.TgZ(0,"h4",26),t._uU(1),t.qZA()),2&r){const i=t.oxw(2);t.xp6(1),t.lnq(" ",i.data.isEdit?i.MinTipConstant.EDIT:i.MinTipConstant.SET," ",i.heading,"",i.isPriceForDm?"":i.MinTipConstant.TIP_AMOUNT," ")}}const R=function(){return{standalone:!0}};function m(r,g){if(1&r){const i=t.EpF();t.TgZ(0,"label")(1,"input",27),t.NdJ("ngModelChange",function(o){t.CHM(i);const c=t.oxw(2);return t.KtG(c.modalObj.tipAmount=o)})("change",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.amountChange())}),t.qZA(),t.TgZ(2,"span",28),t._uU(3),t.ALo(4,"currency"),t.qZA()()}if(2&r){const i=g.$implicit,n=t.oxw(2);t.xp6(1),t.Q6J("value",i)("ngModel",n.modalObj.tipAmount)("ngModelOptions",t.DdM(9,R)),t.xp6(2),t.Oqu(t.gM2(4,4,i,null==n.loggedInUserData?null:n.loggedInUserData.currency_symbol,"symbol","1.0-8"))}}const C=function(r){return{disable:r}};function a(r,g){if(1&r){const i=t.EpF();t.TgZ(0,"div",29),t.NdJ("click",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.openCurrencyConversionModal())}),t._UZ(1,"em",30),t.qZA()}if(2&r){const i=t.oxw(2);t.Q6J("ngClass",t.VKq(1,C,!i.modalObj.customAmount))}}function b(r,g){if(1&r&&(t.TgZ(0,"div",31)(1,"span",32),t._uU(2),t.ALo(3,"currency"),t.qZA(),t._UZ(4,"div",33),t.qZA()),2&r){const i=t.oxw(2);t.xp6(2),t.AsE(" Minimum ",i.isPriceForDm?i.MinTipConstant.AMOUNT:i.MinTipConstant.TIP,": ",t.xi3(3,2,null==i.data?null:i.data.minimumTip,"USD")," ")}}function T(r,g){if(1&r&&(t.TgZ(0,"span",34),t._uU(1),t.qZA()),2&r){const i=t.oxw(2);t.xp6(1),t.hij(" ",null!=i.data&&i.data.minimumTip?i.minTipMsg:i.minimumTipErrorMsg," ")}}const h=function(r,g){return{triggerChar:"@",items:r,labelKey:"user_name",maxItems:30,mentionSelect:g,disableSearch:!0,allowSpace:!0}},U=function(r,g){return{triggerChar:"#",items:r,labelKey:"tag_name",maxItems:30,mentionSelect:g,disableSearch:!1,allowSpace:!0}},L=function(r,g){return[r,g]},Y=function(r){return{mentions:r}};function J(r,g){if(1&r){const i=t.EpF();t.TgZ(0,"div",35)(1,"label"),t._uU(2),t.qZA(),t.TgZ(3,"div",36)(4,"div",37)(5,"textarea",38),t.NdJ("keyup",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.checkValue())})("opened",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.dashboardService.onMentionPanelOpen())})("closed",function(){t.CHM(i);const o=t.oxw(2);return t.KtG(o.dashboardService.onMentionPanelClosed())}),t.qZA()()()()}if(2&r){t.oxw();const i=t.MAs(27),n=t.oxw();
1t.xp6(2),t.AsE(" ","message"!==n.modalHeader?"Include a Message":"Include a Direct Message"," ",n.userType===n.commonEnums.GUEST?n.commonEnums.VISIBLE_IN_COMMENTS:n.commonEnums.VISIBLE_WITH_TIP,": "),t.xp6(3),t.Q6J("mentionConfig",t.VKq(16,Y,t.WLB(13,L,t.WLB(7,h,n.users,n.onMentionUserSelect),t.WLB(10,U,n.hashTagList,n.onMentionHashtagSelect))))("mentionListTemplate",i)("rows",4)("placeholder",n.tipPlaceholder)("formControl",n.descriptionMsg)}}function V(r,g){1&r&&t._UZ(0,"app-at-tagging-user",39),2&r&&t.Q6J("mentionListTemplate",g.item)}const Q=function(r){return{"set-currency-width":r}};function $(r,g){if(1&r){const i=t.EpF();t.TgZ(0,"div",2)(1,"div",3),t.YNc(2,K,2,1,"h4",4),t.YNc(3,W,2,3,"h4",4),t.qZA(),t.TgZ(4,"div",5)(5,"form")(6,"div",6)(7,"label",7),t._uU(8),t.qZA(),t.TgZ(9,"div",8),t.YNc(10,m,5,10,"label",9),t.qZA()(),t.TgZ(11,"div",10)(12,"div",11)(13,"label"),t._uU(14,"Custom Amount"),t.qZA(),t.TgZ(15,"div",12)(16,"div",13)(17,"span",14,15),t._uU(19),t.qZA(),t.TgZ(20,"input",16,17),t.NdJ("ngModelChange",function(o){t.CHM(i);const c=t.oxw();return t.KtG(c.modalObj.customAmount=o)})("keypress",function(o){t.CHM(i);const c=t.oxw();return c.preventSpace(o),t.KtG(c.preventChar(o))})("keyup",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.enterCustomAmount())})("ngModelChange",function(o){t.CHM(i);const c=t.oxw();return t.KtG(c.checkMinMaxValidation(o))}),t.qZA(),t.YNc(22,a,2,3,"div",18),t.qZA(),t.YNc(23,b,5,5,"div",19),t.qZA(),t.YNc(24,T,2,1,"span",20),t.qZA()(),t.YNc(25,J,6,18,"div",21),t.qZA(),t.YNc(26,V,1,1,"ng-template",null,22,t.W1O),t.qZA(),t.TgZ(28,"div",23)(29,"button",24),t.NdJ("click",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.closeModal())}),t._uU(30," Cancel "),t.qZA(),t.TgZ(31,"button",25),t.NdJ("click",function(){t.CHM(i);const o=t.oxw();return t.KtG(o.data.toSetMinimumTip?o.setMinimumTip():o.sendTip())}),t._uU(32),t.qZA()()()}if(2&r){const i=t.oxw();t.xp6(2),t.Q6J("ngIf",!i.data.toSetMinimumTip),t.xp6(1),t.Q6J("ngIf",i.data.toSetMinimumTip),t.xp6(5),t.Oqu(i.isPriceForDm?i.MinTipConstant.AMOUNT:i.MinTipConstant.TIP_AMOUNT),t.xp6(2),t.Q6J("ngForOf",i.predefinedTips),t.xp6(9),t.Oqu((null==i.loggedInUserData?null:i.loggedInUserData.currency_symbol)||"$"),t.xp6(1),t.Q6J("ngModel",i.modalObj.customAmount)("ngModelOptions",t.DdM(14,R))("ngClass",t.VKq(15,Q,i.data.toSetMinimumTip)),t.xp6(2),t.Q6J("ngIf",i.data.toSetMinimumTip),t.xp6(1),t.Q6J("ngIf",null==i.data?null:i.data.minimumTip),t.xp6(1),t.Q6J("ngIf",i.priceInvalid&&null!==i.modalObj.customAmount),t.xp6(1),t.Q6J("ngIf",!i.data.toSetMinimumTip&&i.showMessageArea),t.xp6(6),t.Q6J("disabled",i.priceInvalid),t.xp6(1),t.hij(" ",i.data.toSetMinimumTip?i.data.isEdit?i.MinTipConstant.UPDATE:i.MinTipConstant.SET_TIP:i.MinTipConstant.CONTINUE," ")}}const z=function(){return[]};function X(r,g){if(1&r){const i=t.EpF();t.TgZ(0,"app-currency-conversion-modal",40,41),t.NdJ("saved",function(o){t.CHM(i);const c=t.oxw();return t.KtG(c.onCurrencyConversionSaved(o))}),t.qZA()}if(2&r){const i=t.oxw();t.Q6J("basePrice",i.currencyConversionBasePrice)("initialAdjustedPrices",(null==i.currencyConversionData?null:i.currencyConversionData.adjustedPrices)||t.DdM(2,z))}}let q=(()=>{const g=class{constructor(n,o,c,E,tt={},et){this.activeModal=n,this.cs=o,this.dashboardService=c,this.currencyPipe=E,this.postData=tt,this.bottomSheetRef=et,this.tipDialog=e,this.commonEnums=M.i4,this.data={isTipLimited:!0,toSetMinimumTip:!1,isEdit:!1,minimumTip:"1",heading:"",showMinTipArray:!1,isPriceForDm:!1},this.isPriceForDm=!1,this.showMessageArea=!0,this.MinTipConstant=P.IK,this.predefinedTips=["1","2","5","10","20"],this.modalObj={tipAmount:"5",customAmount:"",msg:""},this.descriptionMsg=new d.NI(""),this.priceInvalid=!1,this.users=[],this.userType=M.i4.LOGGED,this.priorTipCloseResult=null,this.taggingUsers=[],this.hashTagList=[],this.userName=O.g.USER_NAME,this.tagName=O.g.TAG_NAME,this.tipPlaceholder=O.g.TIP_PLACEHOLDER,this.heading="",this.messages=f.Vm,this.minTipMsg="",this.currencyConversionData=null,this.onMentionUserSelect=x=>(this.setTeggedUsers(x),`@${x.first_name} ${x.last_name} `),this.onMentionHashtagSelect=x=>`#${x?.tag_name?.replaceAll(/\s/g,"")??""} `,this.setTeggedUsers=x=>{const nt=Object.assign({user_name:x.user_name,sk:x?.sk,pk:x?.pk,first_name:x.first_name,last_name:x.last_name});this.taggingUsers=[...this.taggingUsers||[],nt]}}ngOnInit(){this.cs.isBrowser&&(this.postData?.postData&&(this.data=this.postData?.postData,this.feedType=this.postData?.feedType),this.userType===M.i4.GUEST&&(this.modalObj.tipAmount="5"),this.data.heading&&(this.heading=this.data.heading),this.data.showMinTipArray&&(this.predefinedTips=(0,N.S)(this.data.minimumTip),this.modalObj.tipAmount=this.data.minimumTip),this.data.isPriceForDm&&(this.isPriceForDm=this.data.isPriceForDm),this.data.toSetMinimumTip&&this.data.isEdit&&(this.predefinedTips.find(n=>n===this.data?.minimumTip?.toString())?this.modalObj.tipAmount=this.data.minimumTip.toString():(this.modalObj.customAmount=this.data.minimumTip.toString(),this.modalObj.tipAmount=""),this.userType===M.i4.GUEST&&(this.modalObj.tipAmount="5"),this.data.heading&&(this.heading=this.data.heading),this.data.minimumTip||(this.data.minimumTip="1"),this.user&&this.user.dmText&&this.descriptionMsg.patchValue(this.user.dmText)),this.dashboardService.onSearch(this.descriptionMsg),this.searchUser(),this.getHashTags(),this.predefinedTips=(0,S.VQ)(this.loggedInUserData,this.predefinedTips),this.applyPriorTipCloseResult())}applyPriorTipCloseResult(){const n=this.priorTipCloseResult;if(!n)return;const o=null!=n.localPrice?String(n.localPrice).trim():"";if(o){const c=this.predefinedTips.find(E=>this.tipLocalAmountMatchesPreset(o,String(E)));void 0!==c?(this.modalObj.tipAmount=String(c),this.modalObj.customAmount=""):(this.modalObj.tipAmount="",this.modalObj.customAmount=o,this.enterCustomAmount()),this.checkMinMaxValidation(Number(this.modalObj.customAmount)||Number(this.modalObj.tipAmount))}null!=n.msg&&""!==n.msg&&this.descriptionMsg.patchValue(n.msg),n.reply_tag?.length&&(this.taggingUsers=[...n.reply_tag])}tipLocalAmountMatchesPreset(n,o){const c=Number(n),E=Number(o);return""===n||""===o||Number.isNaN(c)||Number.isNaN(E)?n===o:c===E}
1getDescriptionValue(){return this.descriptionMsg.value}setMinimumTip(){this.activeModal.close({amount:this.modalObj.customAmount?this.modalObj.customAmount:this.modalObj.tipAmount,international_prices:this.currencyConversionData?.adjustedPrices||[]}),this.bottomSheetRef?.dismiss({amount:this.modalObj.customAmount?this.modalObj.customAmount:this.modalObj.tipAmount,international_prices:this.currencyConversionData?.adjustedPrices||[]})}closeModal(){this.modalHeader===u.Mx.MESSAGE?(this.activeModal.close({msg:this.getDescriptionValue()?.trim(),status:!1}),this.bottomSheetRef?.dismiss({msg:this.getDescriptionValue()?.trim(),status:!1})):(this.activeModal.close(!1),this.bottomSheetRef?.dismiss(!1))}searchUser(){this.dashboardService.atTaggingUsers.subscribe(n=>{this.users=n})}preventSpace(n){this.cs.restrictSpace(n)}preventChar(n){this.cs.restrictChar(n,!0)}amountChange(){this.modalObj.customAmount="",this.priceInvalid=!1}enterCustomAmount(){this.modalObj.customAmount.trim().length&&(this.modalObj.tipAmount="")}isValidData(){let n=!0;return(this.modalObj.customAmount&&(!p.mL.NUMBER_WITH_DOT.test(this.modalObj.customAmount)||Number(this.modalObj.customAmount)<Number(this.data.minimumTip))||this.modalObj.tipAmount&&(!p.mL.NUMBER_WITH_DOT.test(this.modalObj.tipAmount)||Number(this.modalObj.tipAmount)<Number(this.data.minimumTip)))&&(n=!1,Number(this.modalObj.customAmount)<Number(this.data.minimumTip)||Number(this.modalObj.tipAmount)<Number(this.data.minimumTip)?this.cs.showErrorMessage(O.g.AMOUNT_MUST_BE_MINIMUM_TIP):this.cs.showErrorMessage("Enter valid custom amount")),n}sendTip(){if(this.isValidData()){const n=Number(this.modalObj.customAmount)?Number(this.modalObj.customAmount).toString():this.modalObj.tipAmount,o=this.loggedInUserData?.currency_info?.exchange_rate_to_usd||u.Mx.ONE,c=Number(this.modalObj.customAmount)?(Number(this.modalObj.customAmount)/o).toString():(Number(this.modalObj.tipAmount)/o).toString(),E={msg:this.getDescriptionValue()?.trim(),amount:c,status:!0,reply_tag:this.taggingUsers,currencySymbol:this.loggedInUserData?.currency_symbol,localPrice:n,exchangeRateUSD:this.loggedInUserData?.currency_info?.exchange_rate_to_usd||u.Mx.ONE,currencyInfo:{currency_code:this.loggedInUserData?.currency_info?.currency_code,currency_symbol:this.loggedInUserData?.currency_symbol,currency_price:n,base_price:c,exchange_rate_to_usd:this.loggedInUserData?.currency_info?.exchange_rate_to_usd,currency_name:this.loggedInUserData?.currency_info?.currency_name}};this.activeModal.close(E),this.bottomSheetRef?.dismiss(E)}}checkMinMaxValidation(n){const{min:o,max:c}=(0,S.tJ)(this.loggedInUserData);this.priceInvalid=n>c||n<(Number(this.data.minimumTip)||o),this.minTipMsg=this.messages.MAX_PRICE_MONETIZE_ITEMS_ERROR.replace("$1.00",this.currencyPipe.transform(this.data.minimumTip))}get minimumTipErrorMsg(){const{min:n,max:o,symbol:c}=(0,S.tJ)(this.loggedInUserData);return`* Price must be between ${c}${n} and ${c}${o}`}checkValue(){this.taggingUsers.length&&this.taggingUsers.forEach(n=>{if(this.descriptionMsg.value?.includes(`@${n.first_name} ${n.last_name}`))return!1;{const o=this.descriptionMsg.value.replace(new RegExp(`@${n.first_name} ${n.last_name}`,"g"),"").replace(/\s{2,}/g," ").trim();this.descriptionMsg.patchValue(o);const c=this.taggingUsers?.filter(E=>E.user_name!==n.user_name);return this.taggingUsers=c||[],this.taggingUsers}})}getHashTags(){this.dashboardService.fetchHashTagList().subscribe(n=>{this.hashTagList=n.data})}openCurrencyConversionModal(){this.modalObj.customAmount&&this.currencyConversionModal?.openModal()}get currencyConversionBasePrice(){return Number(this.modalObj.customAmount)}onCurrencyConversionSaved(n){this.currencyConversionData=n;const o=n.dollarPrice?n.dollarPrice.toString():u.Mx.ZERO.toString();this.modalObj.customAmount=o}ngAfterViewInit(){this.currencySymbol&&this.amountInput&&(this.amountInput.nativeElement.style.paddingLeft=`${this.currencySymbol.nativeElement.offsetWidth+u.Mx.TWENTY_TWO}px`)}};let r=g;return g.\u0275fac=function(o){return new(o||g)(t.Y36(B.Kz),t.Y36(A.v),t.Y36(_.w),t.Y36(D.H9),t.Y36(l.OG),t.Y36(l.oL,8))},g.\u0275cmp=t.Xpm({type:g,selectors:[["app-sendtipdialog"]],viewQuery:function(o,c){if(1&o&&(t.Gf(Z,5),t.Gf(j,5),t.Gf(H,5)),2&o){let E;t.iGM(E=t.CRH())&&(c.currencyConversionModal=E.first),t.iGM(E=t.CRH())&&(c.currencySymbol=E.first),t.iGM(E=t.CRH())&&(c.amountInput=E.first)}},inputs:{data:"data",loggedInUserData:"loggedInUserData",isPriceForDm
1:"isPriceForDm",user:"user",showMessageArea:"showMessageArea",predefinedTips:"predefinedTips",modalHeader:"modalHeader",userType:"userType",priorTipCloseResult:"priorTipCloseResult"},decls:2,vars:2,consts:[["class","modal-content modal-theme2 send-tip-dialog",4,"ngIf"],[3,"basePrice","initialAdjustedPrices","saved",4,"ngIf"],[1,"modal-content","modal-theme2","send-tip-dialog"],[1,"modal-header"],["class","modal-title",4,"ngIf"],[1,"modal-body","modal-sendTipAmount"],[1,"form-group","mt-0"],[1,"mb-0"],[1,"form-group-radio"],[4,"ngFor","ngForOf"],[1,"form-group","d-flex"],[1,"custom-amount"],[1,"outer-form-box"],[1,"form-box","send-tip-currency-modal"],[1,"dollarSign"],["currencySymbol",""],["type","text","placeholder","CUSTOM AMOUNT","appDecimaNumber","",1,"form-control","custom-amount",3,"ngModel","ngModelOptions","ngClass","ngModelChange","keypress","keyup"],["amountInput",""],["class","currency-conversion-modal-trigger",3,"ngClass","click",4,"ngIf"],["class","min-tip-badge",4,"ngIf"],["class","ng_error",4,"ngIf"],["class","sendtip form-group",4,"ngIf"],["mentionListTemplate",""],[1,"modal-footer"],["type","button",1,"btn","btn-default",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"modal-title"],["type","radio","name","sendTipValue",3,"value","ngModel","ngModelOptions","ngModelChange","change"],[1,"active"],[1,"currency-conversion-modal-trigger",3,"ngClass","click"],[1,"icon-litecurrency"],[1,"min-tip-badge"],[1,"badge"],[1,"badge-bg"],[1,"ng_error"],[1,"sendtip","form-group"],[1,"newpost-description","form-control","p-0"],[1,"newspost-editor"],["id","description","aria-describedby","emailHelp","id","description","aria-describedby","emailHelp",1,"form-control",3,"mentionConfig","mentionListTemplate","rows","placeholder","formControl","keyup","opened","closed"],[3,"mentionListTemplate"],[3,"basePrice","initialAdjustedPrices","saved"],["currencyConversionModal",""]],template:function(o,c){1&o&&(t.YNc(0,$,33,17,"div",0),t.YNc(1,X,2,3,"app-currency-conversion-modal",1)),2&o&&(t.Q6J("ngIf",c.cs.isBrowser),t.xp6(1),t.Q6J("ngIf",c.cs.isBrowser))},dependencies:[D.mk,D.sg,D.O5,d._Y,d.Fj,d._,d.JJ,d.JL,d.On,d.F,d.oH,w.mh,G.D,F.f,k.H,I.T,D.H9],styles:["[_nghost-%COMP%]     textarea::placeholder{color:#999!important}.min-tip[_ngcontent-%COMP%]{display:flex;align-items:center;padding:2px 20px 2px 15px;background-color:#15cc9e3b;font-weight:500;line-height:16px;border-radius:28px;min-height:26px;color:var(--theme-interactive-link);height:max-content}.min-tip-outer[_ngcontent-%COMP%]{margin-top:41px;margin-left:20px;display:flex;align-items:flex-start}.custom-amount[_ngcontent-%COMP%]{max-width:200px;width:200px!important}.set-currency-width[_ngcontent-%COMP%]{width:220px!important;max-width:220px!important}.newpost-description[_ngcontent-%COMP%]{z-index:1;position:relative}.modal-sendTipAmount[_ngcontent-%COMP%]   .ng_error[_ngcontent-%COMP%]{display:block;width:300px;margin-top:8px}.outer-form-box[_ngcontent-%COMP%]{display:flex;gap:10px}@media (max-width: 992px){.outer-form-box[_ngcontent-%COMP%]{gap:8px}}@media (max-width: 440px){.outer-form-box[_ngcontent-%COMP%]{flex-direction:column}}.outer-form-box[_ngcontent-%COMP%]   .min-tip-badge[_ngcontent-%COMP%]{display:flex;width:-moz-fit-content;width:fit-content;align-items:center;position:relative}.outer-form-box[_ngcontent-%COMP%]   .min-tip-badge[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--theme-interactive-link);padding:16px 10px;font-size:13px}.outer-form-box[_ngcontent-%COMP%]   .min-tip-badge[_ngcontent-%COMP%]   .badge-bg[_ngcontent-%COMP%]{height:75%;width:100%;border-radius:28px;background-color:#15cc9e3b;position:absolute}@media screen and (max-width: 414px){.min-tip-outer[_ngcontent-%COMP%]{margin-top:34px}}  .send-tip-dialog .dollarSign{top:18px!important;left:18px!important}.send-tip-currency-modal[_ngcontent-%COMP%]{display:flex;position:relative}.send-tip-currency-modal[_ngcontent-%COMP%]   .currency-conversion-modal-trigger[_ngcontent-%COMP%]{background:var(--configBgColor);padding:8px 8px 4px;border-radius:50%;position:absolute;right:10px;cursor:pointer;height:33px;top:10px}.send-tip-currency-modal[_ngcontent-%COMP%]   .currency-conversion-modal-trigger[_ngcontent-%COMP%]   .icon-litecurrency[_ngcontent-%COMP%]{font-size:18px!important;position:static!important}.send-tip-currency-modal[_ngcontent-%COMP%]   .disable[_ngcontent-%COMP%]{opacity:.6;cursor:not-allowed}"]}),r})()},65434:(y,v,s)=>{s.d(v,{m:()=>A});var e=s(64537),M=s(88692);let A=(()=>{const u=class{constructor(_,O){this.el=_,this.platformId=O}ngAfterViewInit(){(0,M.NF)(this.platformId)&&(this.changeListener=_=>{const O=_.target;if(O?.closest("mat-slider")&&!("value"in _)){const P=O.valueAsNumber;Number.isFinite(P)&&Object.defineProperty(_,"value",{value:P,writable:!1,enumerable:!0})}},this.el.nativeElement.addEventListener("change",this.changeListener,!0))}ngOnDestroy(){this.changeListener&&(this.el.nativeElement.removeEventListener("change",this.changeListener,!0),this.changeListener=void 0)}};let p=u;return u.\u0275fac=function(O){return new(O||u)(e.Y36(e.SBq),e.Y36(e.Lbi))},u.\u0275dir=e.lG2({type:u,selectors:[["","appAudioSliderPatch",""]]}),p})()},43200:(y,v,s)=>{s.d(v,{z:()=>M});var e=s(64537);let M=(()=>{const p=class{constructor(){this.transform=d=>{if("string"==typeof d)return[{title:"",link:d}];if(Array.isArray(d)&&d?.length)for(const _ of d)if("string"==typeof _)return[{title:"",link:_}];return[]}}};let A=p;
1return p.\u0275fac=function(_){return new(_||p)},p.\u0275pipe=e.Yjl({name:"audioOption",type:p,pure:!0}),A})()},5263:(y,v,s)=>{s.d(v,{S:()=>e});const e=(M,A)=>{const p=[];if(A)for(const u of A){const d=Math.ceil(Number(M)*u);p.push(d.toString())}else for(let u=1;u<=5;u++){const d=Math.ceil(Number(M)*u);p.push(d.toString())}return p}}}]);

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.