PageSourceSearch

https://www.weighbook.com/5139.97d65dab8df41a8a.js

js weighbook.com collected 2026-10-01 15:50:00 UTC 14,356 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkbass_kingdom=self.webpackChunkbass_kingdom||[]).push([[5139],{3793:(h,g,r)=>{r.d(g,{H:()=>D});var l=r(15861),t=r(65879),_=r(96814),c=r(10708),v=r(17358),u=r(73839);function f(o,e){if(1&o&&t._UZ(0,"div",12),2&o){const n=t.oxw(2).$implicit,i=t.oxw(2);t.Udp("background-image",i.sponsorBg(n))}}function b(o,e){if(1&o&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).$implicit;t.xp6(1),t.Oqu(n.price)}}function C(o,e){if(1&o&&(t.TgZ(0,"a",7),t.YNc(1,f,1,2,"div",8),t.TgZ(2,"div",9)(3,"div",10),t._uU(4),t.qZA(),t.YNc(5,b,2,1,"div",11),t.qZA()()),2&o){const n=t.oxw().$implicit;t.Q6J("href",n.clickUrl,t.LSH),t.xp6(1),t.Q6J("ngIf",n.imagePath||n.imageBase64),t.xp6(3),t.Oqu(n.name),t.xp6(1),t.Q6J("ngIf",n.price)}}function O(o,e){if(1&o&&t._UZ(0,"div",12),2&o){const n=t.oxw(2).$implicit,i=t.oxw(2);t.Udp("background-image",i.sponsorBg(n))}}function T(o,e){if(1&o&&(t.TgZ(0,"div",13),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).$implicit;t.xp6(1),t.Oqu(n.tagLine)}}function S(o,e){if(1&o&&(t.TgZ(0,"div",14),t.YNc(1,O,1,2,"div",8),t.TgZ(2,"div",9)(3,"div",10),t._uU(4),t.qZA(),t.YNc(5,T,2,1,"div",11),t.qZA()()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",n.imagePath||n.imageBase64),t.xp6(3),t.Oqu(n.name),t.xp6(1),t.Q6J("ngIf",n.tagLine)}}function P(o,e){if(1&o&&(t.ynx(0),t.YNc(1,C,6,4,"a",5),t.YNc(2,S,6,3,"div",6),t.BQk()),2&o){const n=e.$implicit;t.xp6(1),t.Q6J("ngIf",n.productId),t.xp6(1),t.Q6J("ngIf",!n.productId)}}const w=function(o){return[o]};function I(o,e){if(1&o&&(t.TgZ(0,"div",2)(1,"span",3),t._uU(2),t.qZA(),t.YNc(3,P,3,2,"ng-container",4),t.qZA()),2&o){const n=t.oxw();t.xp6(2),t.Oqu(n.productMode?"FEATURED PRODUCTS":"SPONSORS"),t.xp6(1),t.Q6J("ngForOf",t.VKq(3,w,n.stripCurrent))("ngForTrackBy",n.trackBySponsor)}}function M(o,e){if(1&o&&t._UZ(0,"div",25),2&o){const n=t.oxw().$implicit,i=t.oxw(3);t.Udp("background-image",i.sponsorBg(n))}}function k(o,e){if(1&o&&(t.TgZ(0,"div",26),t._uU(1),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.Oqu(n.name)}}function y(o,e){if(1&o&&(t.TgZ(0,"div",20)(1,"span",21)(2,"span",22),t._uU(3,"star"),t.qZA(),t._uU(4," Title Sponsor "),t.qZA(),t.YNc(5,M,1,2,"div",23),t.YNc(6,k,2,1,"div",24),t.qZA()),2&o){const n=e.$implicit;t.xp6(5),t.Q6J("ngIf",n.imagePath||n.imageBase64),t.xp6(1),t.Q6J("ngIf",n.name)}}function Z(o,e){if(1&o&&(t.TgZ(0,"div",18),t.YNc(1,y,7,2,"div",19),t.qZA()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",n.titleSponsors)("ngForTrackBy",n.trackBySponsor)}}function R(o,e){if(1&o&&(t.TgZ(0,"div",30),t._uU(1),t.qZA()),2&o){const n=t.oxw(3);t.xp6(1),t.Oqu(n.displayHeading)}}function B(o,e){if(1&o&&t._UZ(0,"div",25),2&o){const n=t.oxw(2).$implicit,i=t.oxw(3);t.Udp("background-image",i.sponsorBg(n))}}function U(o,e){if(1&o&&(t.TgZ(0,"div",26),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).$implicit;t.xp6(1),t.Oqu(n.name)}}function A(o,e){if(1&o&&(t.TgZ(0,"div",35),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).$implicit;t.xp6(1),t.Oqu(n.price)}}function E(o,e){if(1&o&&(t.TgZ(0,"a",33),t.YNc(1,B,1,2,"div",23),t.YNc(2,U,2,1,"div",24),t.YNc(3,A,2,1,"div",34),t.qZA()),2&o){const n=t.oxw().$implicit;t.Q6J("href",n.clickUrl,t.LSH),t.xp6(1),t.Q6J("ngIf",n.imagePath),t.xp6(1),t.Q6J("ngIf",n.name),t.xp6(1),t.Q6J("ngIf",n.price)}}function N(o,e){if(1&o&&t._UZ(0,"div",25),2&o){const n=t.oxw(2).$implicit,i=t.oxw(3);t.Udp("background-image",i.sponsorBg(n))}}function Q(o,e){if(1&o&&(t.TgZ(0,"div",26),t._uU(1),t.qZA()),2&o){const n=t.oxw(2).$implicit;t.xp6(1),t.Oqu(n.name)}}function Y(o,e){if(1&o&&(t.TgZ(0,"div",36),t.YNc(1,N,1,2,"div",23),t.YNc(2,Q,2,1,"div",24),t.qZA()),2&o){const n=t.oxw().$implicit;t.xp6(1),t.Q6J("ngIf",n.imagePath||n.imageBase64),t.xp6(1),t.Q6J("ngIf",n.name)}}function J(o,e){if(1&o&&(t.ynx(0),t.YNc(1,E,4,4,"a",31),t.YNc(2,Y,3,2,"div",32),t.BQk()),2&o){const n=e.$implicit;t.xp6(1),t.Q6J("ngIf",n.productId),t.xp6(1),t.Q6J("ngIf",!n.productId)}}function F(o,e){if(1&o&&(t.TgZ(0,"div",27),t.YNc(1,R,2,1,"div",28),t.TgZ(2,"div",29),t.YNc(3,J,3,2,"ng-container",4),t.qZA()()),2&o){const n=t.oxw(2);t.xp6(1),t.Q6J("ngIf",n.displayHeading),t.xp6(2),t.Q6J("ngForOf",n.rotated)("ngForTrackBy",n.trackBySponsor)}}function q(o,e){if(1&o&&(t.TgZ(0,"aside",15),t.YNc(1,Z,2,2,"div",16),t.YNc(2,F,4,3,"div",17),t.qZA()),2&o){const n=t.oxw();
1t.xp6(1),t.Q6J("ngIf",n.titleSponsors.length),t.xp6(1),t.Q6J("ngIf",n.sponsors.length)}}let D=(()=>{class o{get isCompact(){return""===this.compact||!0===this.compact||"true"===this.compact}get stripCurrent(){return this.rotated[0]||null}constructor(n,i,s){this._sponsorSettingService=n,this._brandService=i,this.heading="Sponsors",this.compact=!1,this.titleSponsors=[],this.sponsors=[],this.rotated=[],this.sponsorOffset=0,this.productMode=!1,this.sponsorTimer=null,this.loadedKey="",this.isBrowser=(0,_.NF)(s)}ngOnChanges(){const n=(this.seasonId||"")+"|"+(this.tourId||"");"|"!==n&&n!==this.loadedKey&&(this.loadedKey=n,this.loadSponsors())}ngOnDestroy(){this.stopSponsorTimer()}get hasSponsors(){return this.titleSponsors.length>0||this.sponsors.length>0}get displayHeading(){return this.productMode&&this.heading?"Featured Products":this.heading}get source(){return this.interactionSource||(this.tourId?"tour:"+this.tourId:"brand-page")}loadSponsors(){var n=this;return(0,l.Z)(function*(){if(!(yield n.loadFeaturedProducts()))try{const i=n.seasonId?yield(0,c.lastValueFrom)(n._sponsorSettingService.getSponsorSettingBySeasonId(n.seasonId)):yield(0,c.lastValueFrom)(n._sponsorSettingService.getTourSponsorSettingByTour(n.tourId));yield n._sponsorSettingService.backfillSponsorImages(i);const s=i&&i.sponsorList?i.sponsorList:[],a=[],m=[];for(const d of s){if(!d||!d.sponsor)continue;const p=d.sponsor,x={id:(p._id||p.name||"")+"",name:p.name||"",tagLine:p.tagLine||"",imagePath:p.mainImagePath||"",imageBase64:p.mainImageBase64String||"",displayTime:d.displayTime||10,isTitleSponsor:!!p.titleSponsor};(x.isTitleSponsor&&!n.isCompact?a:m).push(x)}m.sort((d,p)=>Number(p.isTitleSponsor)-Number(d.isTitleSponsor)),n.titleSponsors=a,n.sponsors=m,n.sponsorOffset=0,n.rotated=n.computeRotated(),n.scheduleSponsorTick()}catch{}})()}loadFeaturedProducts(){var n=this;return(0,l.Z)(function*(){if(n.productMode=!1,!n.tourId&&!n.seasonId)return!1;try{const s=(yield(0,c.lastValueFrom)(n._brandService.getFeaturedProductsForContext({tourId:n.tourId,seasonId:n.seasonId})))?.products||[];return!!s.length&&(n.productMode=!0,n.titleSponsors=[],n.sponsors=s.map(a=>({id:String(a._id),name:a.name||"",tagLine:"",imagePath:a.imageUrl||"",imageBase64:"",displayTime:10,isTitleSponsor:!1,productId:String(a._id),price:a.price||"",clickUrl:n._brandService.productClickUrl(a._id,n.source)})),n.sponsorOffset=0,n.rotated=n.computeRotated(),n.scheduleSponsorTick(),n.isBrowser&&n._brandService.recordImpressions(s.map(a=>a._id),n.source),!0)}catch{return!1}})()}computeRotated(){const n=this.sponsors.length;return n?Array.from({length:n},(i,s)=>this.sponsors[(this.sponsorOffset+s)%n]):[]}scheduleSponsorTick(){this.stopSponsorTimer();const n=this.sponsors.length;if(n<=1)return;const i=this.sponsors[this.sponsorOffset%n],s=1e3*Math.max(3,i&&i.displayTime||10);this.sponsorTimer=setTimeout(()=>{this.sponsorOffset=(this.sponsorOffset+1)%n,this.rotated=this.computeRotated(),this.scheduleSponsorTick()},s)}stopSponsorTimer(){this.sponsorTimer&&(clearTimeout(this.sponsorTimer),this.sponsorTimer=null)}sponsorBg(n){const i=[];return n.imagePath&&i.push(`url(${n.imagePath})`),n.imageBase64&&i.push(`url(${n.imageBase64})`),i.join(", ")}trackBySponsor(n,i){return i.id||i.name+i.imagePath}static{this.\u0275fac=function(i){return new(i||o)(t.Y36(v.l),t.Y36(u.c),t.Y36(t.Lbi))}}static{this.\u0275cmp=t.Xpm({type:o,selectors:[["sponsor-rail"]],inputs:{seasonId:"seasonId",tourId:"tourId",heading:"heading",interactionSource:"interactionSource",compact:"compact"},features:[t.TTD],decls:2,vars:2,consts:[["class","sr-strip",4,"ngIf"],["class","sr-rail",4,"ngIf"],[1,"sr-strip"],[1,"sr-strip-label"],[4,"ngFor","ngForOf","ngForTrackBy"],["class","sr-strip-card","target","_blank","rel","noopener",3,"href",4,"ngIf"],["class","sr-strip-card",4,"ngIf"],["target","_blank","rel","noopener",1,"sr-strip-card",3,"href"],["class","sr-strip-logo",3,"background-image",4,"ngIf"],[1,"sr-strip-text"],[1,"sr-strip-name"],["class","sr-strip-tag",4,"ngIf"],[1,"sr-strip-logo"],[1,"sr-strip-tag"],[1,"sr-strip-card"],[1,"sr-rail"],["class","sr-pinned",4,"ngIf"],["class","sr-sponsors",4,"ngIf"],[1,"sr-pinned"],["class","sr-card title",4,"ngFor","ngForOf","ngForTrackBy"],[1,"sr-card","title"],[1,"sr-badge"],[1,"material-symbols-outlined"],["class","sr-logo",3,"background-image",4,"ngIf"],["class","sr-name",4,"ngIf"],[1,"sr-logo"],[1,"sr-name"],[1,"sr-sponsors"],["class","sr-head",4,"ngIf"],[1,"sr-track"],[1,"sr-head"],["class","sr-card sr-card--product","target","_blank","rel","noopener",3,"href",4,"ngIf"],["class","sr-card",4,"ngIf"],["target","_blank","rel","noopener",1,"sr-card","sr-card--product",3,"href"],["class","sr-price",4,"ngIf"],[1,"sr-price"],[1,"sr-card"]],template:function(i,s){1&i&&(t.YNc(0,I,4,5,"div",0),t.YNc(1,q,3,2,"aside",1)),2&i&&(t.Q6J("ngIf",s.isCompact&&s.stripCurrent),t.xp6(1),t.Q6J("ngIf",!s.isCompact&&(s.titleSponsors.length||s.sponsors.length)))},dependencies:[_.sg,_.O5],styles:['[_nghost-%COMP%]{display:block;flex-shrink:0}.sr-rail[_ngcontent-%COMP%]{width:300px;display:flex;flex-direction:column;gap:14px;position:sticky;top:16px}.sr-pinned[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;flex-shrink:0}.sr-sponsors[_ngcontent-%COMP%]{background:var(--pb-surface, #ffffff);border:1px solid var(--pb-surface-border, #e5e7eb);border-radius:14px;padding:14px;display:flex;flex-direction:column;overflow:hidden}.sr-head[_ngcontent-%COMP%]{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--pb-muted, #6b7280);margin-bottom:12px;flex-shrink:0}.sr-track[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.sr-card[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border-radius:12px;background:var(--pb-bar, #ffffff);border:1px solid var(--pb-row-border, #e7ebf0);flex-shrink:0}.sr-card.title[_ngcontent-%COMP%]{border-color:#fcd34d;padding-top:0;background:linear-gradient(180deg,rgba(251,191,36,.07),rgba(251,191,36,0) 55%),var(--pb-bar, #ffffff)}.sr-card.title[_ngcontent-%COMP%]   .sr-logo[_ngcontent-%COMP%]{height:120px}
1.sr-card.title[_ngcontent-%COMP%]   .sr-name[_ngcontent-%COMP%]{font-size:14px}.sr-badge[_ngcontent-%COMP%]{align-self:stretch;margin:0 -14px 6px;padding:7px 10px;border-radius:11px 11px 0 0;background:rgba(251,191,36,.12);border-bottom:1px solid rgba(245,158,11,.35);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#b45309;display:flex;align-items:center;justify-content:center;gap:4px}.sr-badge[_ngcontent-%COMP%]   .material-symbols-outlined[_ngcontent-%COMP%]{font-size:14px;color:#f59e0b;font-variation-settings:"FILL" 1}.sr-card--product[_ngcontent-%COMP%]{text-decoration:none;cursor:pointer;transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease}.sr-card--product[_ngcontent-%COMP%]:hover{border-color:var(--pb-accent, #2f80c8);transform:translateY(-2px);box-shadow:0 8px 20px #060a121a}.sr-price[_ngcontent-%COMP%]{font-size:12px;font-weight:700;color:var(--pb-accent, #2f80c8)}.sr-logo[_ngcontent-%COMP%]{width:100%;height:100px;background-position:center;background-repeat:no-repeat;background-size:contain}
1.sr-name[_ngcontent-%COMP%]{font-size:13px;font-weight:700;line-height:1.35;color:var(--pb-text, #0f172a);text-align:center;max-width:100%;overflow-wrap:break-word}@media (max-width: 900px){.sr-rail[_ngcontent-%COMP%]{width:100%;position:static;gap:8px}.sr-pinned[_ngcontent-%COMP%]{flex-direction:row;gap:8px}.sr-sponsors[_ngcontent-%COMP%]{padding:8px 10px}.sr-head[_ngcontent-%COMP%]{margin-bottom:6px}.sr-track[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:nowrap;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.sr-track[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.sr-card[_ngcontent-%COMP%]{flex-direction:row;align-items:center;width:auto;min-width:170px;max-width:260px;height:92px;padding:8px 14px;gap:12px}.sr-card.title[_ngcontent-%COMP%]{padding-top:8px}.sr-card.title[_ngcontent-%COMP%]   .sr-logo[_ngcontent-%COMP%]{width:110px;height:72px}.sr-card.title[_ngcontent-%COMP%]   .sr-name[_ngcontent-%COMP%]{font-size:12px}.sr-badge[_ngcontent-%COMP%]{position:absolute;top:-9px;left:10px;margin:0;align-self:auto;padding:1px 8px;border-radius:8px;border:1px solid rgba(245,158,11,.35);background:#fef3c7;font-size:12px}.sr-logo[_ngcontent-%COMP%]{width:96px;height:72px;flex-shrink:0}
1.sr-name[_ngcontent-%COMP%]{font-size:12px;font-weight:700;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}}.sr-strip[_ngcontent-%COMP%]{position:relative;height:62px;background:var(--sr-strip-bg, #fff);border:1px solid var(--sr-strip-border, #e3e8ee);border-radius:12px;overflow:hidden;box-sizing:border-box}.sr-strip-label[_ngcontent-%COMP%]{position:absolute;top:6px;left:12px;font-size:8px;font-weight:800;letter-spacing:.8px;color:var(--sr-strip-muted, #aab4be);z-index:1}.sr-strip-card[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;gap:12px;padding:10px 14px 0;text-decoration:none;animation:_ngcontent-%COMP%_sr-strip-fade .5s ease both}@keyframes _ngcontent-%COMP%_sr-strip-fade{0%{opacity:0}to{opacity:1}}.sr-strip-logo[_ngcontent-%COMP%]{width:36px;height:36px;border-radius:8px;flex-shrink:0;background-color:var(--sr-strip-logo-bg, #f5f6f8);background-size:contain;background-position:center;background-repeat:no-repeat}.sr-strip-text[_ngcontent-%COMP%]{flex:1;min-width:0}.sr-strip-name[_ngcontent-%COMP%]{font-size:13px;font-weight:700;color:var(--sr-strip-fg, #1a2b3c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sr-strip-tag[_ngcontent-%COMP%]{font-size:10px;color:var(--sr-strip-muted, #94a3b8);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}']})}}return o})()},33097:(h,g,r)=>{r.d(g,{E:()=>_});var l=r(96814),t=r(65879);let _=(()=>{class c{static{this.\u0275fac=function(f){return new(f||c)}}static{this.\u0275mod=t.oAB({type:c})}static{this.\u0275inj=t.cJS({imports:[l.ez]})}}return c})()}}]);

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.