PageSourceSearch

https://www.livetourney.com/_next/static/chunks/7674.4218f1d60ce7be1e.js

js livetourney.com collected 2026-10-04 01:59:37 UTC 8,109 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7674],{67674:function(e,s,r){r.r(s),r.d(s,{default:function(){return f}});var t=r(69779),i=r(85893),n=r(5434),a=r(7373),l=r(74373),c=r(16441);function d(e){var s=e.toLowerCase();return s.includes("blue")?"#3B82F6":s.includes("black")?"#1F2937":s.includes("gold")||s.includes("yellow")?"#EAB308":s.includes("red")||s.includes("maroon")?"#EF4444":s.includes("white")?"#D1D5DB":s.includes("green")?"#16B271":s.includes("silver")||s.includes("platinum")?"#9CA3AF":s.includes("combo")||s.includes("composite")?"#8B5CF6":"#6B7280"}function m(e){var s=e.trim().split(/\s+/),r=s[0],t=s[s.length-1];return r?1===s.length?r.charAt(0).toUpperCase():(r.charAt(0)+(null!==t&&void 0!==t?t:r).charAt(0)).toUpperCase():"?"}function o(e,s,r){if(null!=e){var t=r.find((function(s){return String(s.teeSetId)===String(e)}));if(t)return{teeName:t.teeSetName,courseName:t.courseName,colorHex:d(t.teeSetName)}}if(s){var i=s.indexOf(" - ");if(i>0){var n=s.substring(0,i).trim(),a=s.substring(i+3).trim().replace(/\s*\(.*\)\s*$/,"").trim();return{teeName:a,courseName:n,colorHex:d(a)}}}return null}function u(e){return e>=0?"".concat(e):"+".concat(-1*e)}function x(e){var s=e.info;return(0,i.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,i.jsx)("span",{className:"w-2 h-2 rounded-full flex-shrink-0 border border-black/10",style:{backgroundColor:s.colorHex}}),(0,i.jsxs)("span",{children:[s.teeName," \xb7 ",s.courseName]})]})}function f(e){var s=e.scorecards,r=e.teams,d=void 0===r?null:r,f=e.isGrossOnly,h=void 0!==f&&f,p=e.showFirstAndLastNames,v=void 0!==p&&p,N=e.format,g=void 0===N?null:N,j=e.defaultCourse,b=(0,l.T)().courses;if(null===s||void 0===s)return(0,i.jsx)(a.Z,{});var y=(0,t.Z)(s).sort((function(e,s){var r=new Date("1/1/2020 ".concat(e.startingTime)),t=new Date("1/1/2020 ".concat(s.startingTime)),i=r.getTime(),n=t.getTime();if(!(!Number.isNaN(i)&&!Number.isNaN(n))||i===n){if(e.startingHole===s.startingHole){if(e.isCGroup&&!s.isCGroup)return 1;if(!e.isCGroup&&s.isCGroup)return-1;if(e.isBGroup&&!s.isBGroup)return 1;if(!e.isBGroup&&s.isBGroup)return-1}return e.startingHole-s.startingHole}return i-n})).filter((function(e){var s;if(0===(null!==(s=e.teams.length)&&void 0!==s?s:0))return!1;var r=!1;return e.teams.forEach((function(e){var s=null===d||void 0===d?void 0:d.find((function(s){return s.teamName===e.name})),t=e.scores.filter((function(e){return null!==e.grossScore}));((0,c.getIsTeamActive)(s)||0!==t.length)&&(r=!0)})),r})),w=new Set(y.map((function(e){return e.startingHole}))).size>1;return(0,i.jsxs)("div",{className:"px-4 pb-8",children:[(0,i.jsx)("div",{className:"flex justify-center mb-6",children:(0,i.jsxs)("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-primary/5 rounded-full",children:[(0,i.jsx)(n.QvT,{className:"w-4 h-4 text-primary"}),(0,i.jsx)("span",{className:"text-xs font-semibold text-primary uppercase tracking-wider",children:"Pairings"})]})}),(0,i.jsx)("div",{className:"max-w-4xl mx-auto grid grid-cols-1 lg:grid-cols-2 gap-3",children:y.map((function(e,s){var r,t,a=(0,c.getHoleNumberFromCard)(b,e.teams[0],e.startingHole,j),l=e.isBGroup?"B":e.isCGroup?"C":null,f=null!=g&&(0,c.isGameFormatSplit)(g),p=e.teams.sort((function(e,s){return(null!==(r=e.teamNumber)&&void 0!==r?r:0)-(null!==(t=s.teamNumber)&&void 0!==t?t:0)})).filter((function(e){var s=null===d||void 0===d?void 0:d.find((function(s){return s.teamName===e.name})),r=e.scores.filter((function(e){return null!==e.grossScore}));return!(!(0,c.getIsTeamActive)(s)&&0===r.length||e.name.includes("scramble"))})),N=w?(0,i.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 border-b border-gray-100",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)("div",{className:"w-8 h-8 rounded-lg bg-primary text-white flex items-center justify-center text-sm font-bold",children:a}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"text-sm font-semibold text-gray-900",children:["Hole ",a]}),l&&(0,i.jsx)("span",{className:"ml-1.5 inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-bold bg-amber-100 text-amber-700",children:l})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-500",children:[(0,i.jsx)(n.dKE,{className:"w-4 h-4"}),(0,i.jsx)("span",{className:"font-medium",children:e.startingTime||"No time"})]})]}):(0,i.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 bg-gray-50 border-b border-gray-100",children:[(0,i.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,i.jsx)("div",{className:"w-8 h-8 rounded-lg bg-primary text-white flex items-center justify-center",children:(0,i.jsx)(n.dKE,{className:"w-4 h-4"})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"text-sm font-semibold text-gray-900",children:e.startingTime||"No time"}),l&&(0,i.jsx)("span",{className:"ml-1.5 inline-flex items-center px-1.5 py-0.5 rounded text-[10px] font-bold bg-amber-100 text-amber-700",children:l})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-500",children:[(0,i.jsx)(n.KGF,{className:"w-3.5 h-3.5"}),(0,i.jsxs)("span",{className:"font-medium",children:["Hole ",a]})]})]});if(f){var y=[];
1return e.teams.forEach((function(e){var s,r;y.includes(null!==(s=e.teamNumber)&&void 0!==s?s:-1)||y.push(null!==(r=e.teamNumber)&&void 0!==r?r:-1)})),(0,i.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden",children:[N,(0,i.jsx)("div",{className:"divide-y divide-gray-100",children:y.map((function(e,s){var r=null===d||void 0===d?void 0:d.find((function(s){return s.teamNumber===e}));return(0,i.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3",children:[(0,i.jsx)("div",{className:"w-9 h-9 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:(0,i.jsx)(n.KGF,{className:"w-4 h-4 text-primary"})}),(0,i.jsx)("div",{className:"flex-1 min-w-0",children:(0,i.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:null===r||void 0===r?void 0:r.teamName})})]},s)}))})]},s)}return(0,i.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden",children:[N,(0,i.jsx)("div",{className:"divide-y divide-gray-100",children:p.map((function(e,s){var r=o(e.teeSetId,e.teeName,b);if(e.players&&e.players.length>1)return(0,i.jsx)("div",{children:e.players.map((function(s,t){var n,a="".concat(s.firstName," ").concat(s.lastName),l=m(a),c=null!==(n=o(s.teeSetId,s.teeName,b))&&void 0!==n?n:r,d=null!=c;return(0,i.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5 ".concat(t>0?"border-t border-gray-50":""),children:[(0,i.jsx)("div",{className:"w-9 h-9 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:(0,i.jsx)("span",{className:"text-xs font-semibold text-primary",children:l})}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsx)("div",{className:"text-sm font-medium text-gray-900 truncate",children:a}),d&&(0,i.jsx)("div",{className:"mt-0.5",children:(0,i.jsx)(x,{info:c})})]}),0===t&&!h&&(0,i.jsxs)("span",{className:"text-xs text-gray-400 flex-shrink-0",children:["(",u(e.handicap),")"]})]},t)}))},s);var t=v&&!e.hasCustomTeamName?(0,c.getTeamFirstAndLastNames)(e):e.name,n=m(t),a=null!=r;return(0,i.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3",children:[(0,i.jsx)("div",{className:"w-9 h-9 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0",children:(0,i.jsx)("span",{className:"text-xs font-semibold text-primary",children:n})}),(0,i.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,i.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,i.jsx)("span",{className:"text-sm font-medium text-gray-900 truncate",children:t}),!h&&(0,i.jsxs)("span",{className:"text-xs text-gray-400 flex-shrink-0",children:["(",u(e.handicap),")"]})]}),a&&(0,i.jsx)("div",{className:"mt-0.5",children:(0,i.jsx)(x,{info:r})})]})]},s)}))})]},s)}))})]})}}}]);
2//# sourceMappingURL=7674.4218f1d60ce7be1e.js.map

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.