1"use strict";(globalThis.webpackChunkgolftec_clubhouse_web||=[]).push([[4138,25137],{74599(e,t,n){var l,r=n(65043);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},i.apply(null,arguments)}function a(e,t){let{title:n,titleId:a,...o}=e;return r.createElement("svg",i({viewBox:"0 0 24 24",focusable:"false",className:"chakra-icon css-onkibi","aria-hidden":"true",ref:t,"aria-labelledby":a},o),n?r.createElement("title",{id:a},n):null,l||(l=r.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})))}const o=r.forwardRef(a);n.p;n.d(t,["h",0,o])},22725(e,t,n){var l,r=n(65043);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},i.apply(null,arguments)}function a(e,t){let{title:n,titleId:a,...o}=e;return r.createElement("svg",i({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":a},o),n?r.createElement("title",{id:a},n):null,l||(l=r.createElement("path",{d:"M15.3593 15.8595C15.0869 16.0332 14.4927 16.1077 14.1213 15.7106C13.2299 14.8419 12.3385 13.9484 11.4471 13.0549C11.15 12.7819 10.8776 12.4841 10.6053 12.1862C10.5062 12.0621 10.4319 12.0621 10.2834 12.1614C9.24344 12.8563 8.10445 13.2286 6.86642 13.2783C5.35602 13.3279 3.94466 12.9308 2.73139 12.0125C0.60198 10.3992 -0.289402 8.23997 0.0820075 5.60914C0.453417 2.90384 2.53331 0.719755 5.15793 0.148913C5.38078 0.0992745 6.14836 0 6.42072 0C6.71785 0 7.73304 0.0992768 7.93112 0.124096C10.5557 0.645299 12.6852 2.80457 13.1309 5.46022C13.428 7.19757 13.1061 8.83564 12.1404 10.3C12.0414 10.4489 12.0661 10.5233 12.1899 10.6474C13.0318 11.4913 13.8737 12.3103 14.7155 13.179C15.1612 13.6506 15.5079 14.0477 15.7555 14.3455C15.9536 14.5937 16.
11516 15.0404 15.8298 15.4375C15.706 15.5368 15.5574 15.7602 15.3593 15.8595ZM2.18666 6.67636C2.21142 9.13346 4.19227 11.119 6.64357 11.0942C9.07011 11.0694 11.0262 9.08383 11.0014 6.62673C10.9767 4.19444 8.99583 2.20891 6.59405 2.23373C4.14275 2.23373 2.18666 4.21926 2.18666 6.67636Z",fill:"#8A8A8D"})))}const o=r.forwardRef(a);n.p;n.d(t,["h",0,o])},25137(e,t,n){n.r(t),n.d(t,{default:()=>S});var l,r,i=n(22560),a=n(88470),o=n(63452),s=n(17921),c=n(53974),d=n(76654),u=n(54918),p=n(30834),h=n(85522),f=n(41918),C=n(26431),x=n(37495),m=n(65043),b=n(97),g=n(44116),w=n(74599),v=n(22725);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},j.apply(null,arguments)}function y(e,t){let{title:n,titleId:i,...a}=e;return m.createElement("svg",j({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},a),n?m.createElement("title",{id:i},n):null,l||(l=m.createElement("g",{clipPath:"url(#clip0_6093_12738)"},m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.00001 2C3.55229 2 4.00001 2.44772 4.00001 3V7H8.00001C8.55229 7 9.00001 7.44772 9.00001 8C9.00001 8.55228 8.55229 9 8.00001 9H3.00001C2.44772 9 2.00001 8.55228 2.00001 8V3C2.00001 2.44772 2.44772 2 3.00001 2Z",fill:"#8A8A8D"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3696 2.03173C13.6075 1.89137 15.8276 2.50718 17.6733 3.78025C19.5191 5.05332 20.8835 6.90979 21.5473 9.0515C22.2112 11.1932 22.1359 13.4959 21.3338 15.5897C20.5316 17.6835 19.049 19.447 17.1241 20.5969C15.1991 21.7469 12.9436 22.2165 10.7197 21.9304C8.4958 21.6443 6.43257 20.6191 4.86137 19.0194C3.29016 17.4198 2.30217 15.3385 2.05605 13.1098C1.99543 12.5608 2.3913 12.0667 2.94024 12.006C3.48919 11.9454 3.98335 12.3413 4.04397 12.8902C4.24086 14.6732 5.03126 16.3382 6.28822 17.618C7.54518 18.8977 9.19576 19.7179 10.9749 19.9467C12.754 20.1756 14.5584 19.7999 16.0984 18.88C17.6383 17.96 18.8244 16.5493 19.4661 14.8742C20.1079 13.1991 20.1681 11.357 19.637 9.64363C19.1059 7.93026 18.0144 6.44508 16.5378 5.42662C15.0612 4.40816 13.2851 3.91552 11.4948 4.02781C9.70516 4.14006 8.00511 4.85033 6.66753 6.0446L6.66619 6.04579L3.66897 8.74329C3.25846 9.11275 2.62617 9.07948 2.25671 8.66897C1.88726 8.25846 1.92053 7.62617 2.33104 7.25671L5.33382 4.5542C7.00606 3.06047 9.1318 2.17209 11.3696 2.03173Z",fill:"#8A8A8D"}),m.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12.5523 6 13 6.44772 13 7V11.382L16.4472 13.1056C16.9412 13.3526 17.1414 13.9532 16.8944 14.4472C16.6474 14.9412 16.0468 15.1414 15.5528 14.8944L11.5528 12.8944C11.214 12.725 11 12.3788 11 12V7C11 6.44772 11.4477 6 12 6Z",fill:"#8A8A8D"}))),r||(r=m.createElement("defs",null,m.createElement("clipPath",{id:"clip0_6093_12738"},m.createElement("rect",{width:24,height:24,fill:"white"})))))}const E=m.forwardRef(y);n.p;var A=n(53536),k=n.n(A),L=n(73216),R=n(82304),M=n(70579);const S=()=>{const e=(0,b.A)(),[t,n]=(0,m.useState)(""),[l,r]=(0,m.useState)(!1),j=(0,g.j)(),y=(0,L.Zp)(),A=(0,g.N)(R.WW),S=(0,m.useRef)(null),O=(0,m.useCallback)(e=>{n(e),r(!0)},[]),_=(0,m.useCallback)(()=>{t&&(n(""),y(`/video-library/search-video?keyword=${t}`),A.includes(t)||j((0,R.d9)([...A,t])))},[t,A]),z=(0,m.useCallback)(()=>{j((0,R.d9)(A.filter(e=>e===t)))},[t,A]),B=(0,m.useCallback)(e=>{"Enter"===e.key&&_()},[_]);(0,m.useEffect)(()=>(window.addEventListener("keydown",B),()=>{window.removeEventListener("keydown",B)}));const Z=(0,m.useMemo)(()=>{let e=[];return A.length>0&&t&&(e=k().uniq(A.filter(e=>e.toLowerCase().match(t.toLowerCase())))),e},[t,A]),D=(0,m.useCallback)(e=>{n(e),r(!1),S.current&&S.current.focus()},[]);return(0,M.jsxs)(i.A,{placement:"bottom",isOpen:!!(l&&Z.length>0),onClose:()=>r(!1),initialFocusRef:S,children:[(0,M.jsx)(a.W,{children:(0,M.jsxs)(o.M,{sx:{path:{fill:"#C0C0C0"},sgv:{marginTop:"3px"}},cursor:"pointer",children:[(0,M.jsx)(s.p,{ref:S,value:t,placeholder:e.formatMessage({id:"SearchByKeywords"}),_focus:{outline:"none"},_hover:{outline:"none",borderColor:"transparent"},border:"unset",h:{mobile:"36px",sm:"44px"},style:{boxShadow:"0px 0px 15px rgba(0, 0, 0, 0.1)",borderRadius:"8px",letterSpacing:"0.01em",color:"#8A8A8D",outline:"none",background:"#fff"},fontSize:{mobile:13,sm:15},lineHeight:{mobile:"18px",sm:"22px"},w:{mobile:"100%"},paddingLeft:"44px !important",rounded:"100px !important",width:"100%",minW:{mobile:"100%",md:"300px",xl:"400px"},onChange:e=>O(e.target.value)}
1),(0,M.jsx)(c.W,{left:"4px",children:(0,M.jsx)(v.h,{}),h:{mobile:"36px",sm:"44px"},sx:{svg:{width:{mobile:"16px",sm:"20px"},height:{mobile:"16px",sm:"20px"}},path:{fill:"#54565B"}}})]})}),(0,M.jsx)(d.h,{rounded:20,padding:{mobile:"16px",sm:"24px 16px"},_focus:{outline:"none"},border:"none",width:{mobile:"calc(100vw - 32px)"},maxW:{mobile:"100%",md:"300px",xl:"400px"},sx:{"::-webkit-scrollbar":{display:"none"}},mt:"4px !important",children:(0,M.jsx)(u.e,{p:{mobile:"0px"},_focus:{outline:"none"},width:"100%",children:(0,M.jsxs)(p.T,{spacing:"8px",alignItems:"flex-start",children:[(0,M.jsx)(h.az,{fontSize:16,lineHeight:"24px",color:"#8A8A8D",children:e.formatMessage({id:"RecentSearchs"})}),Z.map((e,t)=>(0,M.jsxs)(f.s,{justifyContent:"space-between",fontSize:15,lineHeight:"22px",color:"#54565B",width:"100%",alignItems:"center",children:[(0,M.jsxs)(C.z,{spacing:"6px",cursor:"pointer",onClick:()=>D(e),children:[(0,M.jsx)(E,{}),(0,M.jsx)(h.az,{children:e})]}),(0,M.jsx)(x.o,{cursor:"pointer",onClick:z,sx:{path:{fill:"#494B51"}},boxSize:"12px",children:(0,M.jsx)(w.h,{})})]},t))]})})})]})}},74554(e,t,n){n.d(t,{Px:()=>r,SV:()=>i});var l=n(65043);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{!function(e,t){if(null!=e)if("function"!==typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(t,e)})}}function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.useMemo)(()=>r(...t),t)}}}]); 2//# sourceMappingURL=4138.496f3e40.chunk.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.