{
  "version": 3,
  "sources": ["/cdn/shop/t/1/assets/customjs.js?t=20261006-183133"],
  "sourcesContent": ["var GolfTournament = {\n\tMax : function(){\n\t\treturn jQuery(\".icon-wrapper .add-golfer-field\").data('max');\n\t},\n\tCount : function(){\n\t\treturn jQuery(\".input-form-attribute-wrapper .form-attribute-wrapper\").length;  \n\t},\n\tAddform : function(){\n\t\tvar _row = GolfTournament.Count(); \n       jQuery(\".form-attribute-wrapper\").removeClass(\"req\");\n\t\tif( _row < GolfTournament.Max() ){\n          \tvar _a=[];\n\t\t\tjQuery.each(jQuery(\".input-form-attribute-wrapper .reqfield\") , function(i,el){\n\t\t\t\tif(jQuery.trim( jQuery(this).val() ) == ''  ){\n\t\t\t\t\t_a.push(el.id);\n                  jQuery(this).closest(\".form-attribute-wrapper\").first().addClass(\"req\");\n\t\t\t\t}\n\t\t\t});\n\t\t\tif( _a.length < 1){\n\t\t\t\tjQuery(\".input-form-attribute-wrapper\").append( GolfTournament.HTML( parseInt(_row+1) ));\n\t\t\t}       \n\t\t\t\n\t\t}\n\t},\n\tHTML : function( row ){\n\t\tvar html = ['<section class=\"form-attribute-wrapper r-'+row+'\">',\t\n\t\t\t\t'<div class=\"product-form__controls-group\">', \n\t\t\t\t'  <div class=\"selector-wrapper product-form__item  \">',  \n\t\t\t\t'      <label for=\"golfer'+row+'_name_'+row+'\">Golfer #'+row+': Name</label>',\n\t\t\t\t'       <input placeholder=\"First Name\" autocorrect=\"off\" class=\"field__input  product-form__input reqfield\" aria-required=\"true\" size=\"60\" type=\"text\" value=\"\" name=\"properties[Golfer#'+row+'_firstname]\" id=\"golfer'+row+'_fname_'+row+'\" required>',\n\t\t\t\t'   </div>',\n\t\t\t\t'    <div class=\"selector-wrapper product-form__item  \">',  \n\t\t\t\t'      <label for=\"golfer'+row+'_lname_'+row+'\" class=\"opa-0\">Golfer #'+row+': Last Name</label>',\n\t\t\t\t'       <input placeholder=\"Last Name\" autocorrect=\"off\" class=\"field__input  product-form__input reqfield\" aria-required=\"true\" size=\"60\" type=\"text\" value=\"\" name=\"properties[Golfer#'+row+'_lastname]\" id=\"golfer'+row+'_lname_'+row+'\" required>',\n\t\t\t\t'   </div>',\n\t\t\t\t'</div>',  \n\t\t\t\t'<div class=\"product-form__controls-groupx product-form__item\"> ',\n\t\t\t\t'  <div class=\"selector-wrapper js-product-form__item\">',\n\t\t\t\t'    \t<label for=\"golfer'+row+'_email_'+row+'\">Golfer #'+row+': Email</label>',\n\t\t\t\t' \t <input placeholder=\"Email\" autocorrect=\"off\" class=\"field__input  product-form__input reqfield\"  aria-required=\"true\" size=\"60\" type=\"text\" value=\"\" name=\"properties[Golfer#'+row+'_email]\" id=\"golfer'+row+'_email_'+row+'\" required>',\n\t\t\t\t'  </div>',\n\t\t\t\t'</div> ', \n\t\t\t' </section>'\t\t\n\t\t];\n\t\treturn html.join('');\n\t},\n\t\n\tInit : function(){\n\t\tif( jQuery(\".form-attribute-wrapper\").length > 0 ){\n          \tjQuery(\"form.product-form.product-form-product-template\").removeAttr('novalidate');\n\t\t\tjQuery(\".icon-wrapper .add-golfer-field\").on('click',GolfTournament.Addform );\n\t\t}\n\t}\n}\nif( typeof(jQuery ) != 'undefined' ){\n\tjQuery(document).ready(function(){   \n\t\t_j = jQuery; \n      //.ntop \n      \t_j('.template-collection').on( 'click', '.minusicon, .plusicon',function() {\n         step = 1; \t\n          __p = _j(this).closest('.ntop');\n          qty = _j(__p).find('input');\n          val = parseInt(qty.val() ) ;\n\n\n          if ( _j ( this ).is( '.plusicon' ) ) { \n                  qty.val( parseInt( val + step ) ); \n          }\n          else {\n              if ( val > 1 ) {\n                  qty.val( parseInt(val - step ) );\n              }\n          }\n          \n          \n        }); \n      \n      \n      if( _j(\".formwrapp\").length ){\n        _j.each(_j(\".formwrapp\"), function(i,el){\n          if(  _j(this).find('select.op-sizes').length ){\n          \t\t _j(this).addClass('has-size-opt');\n          }\n        });\n      }\n      \n\n\n        jQuery('.op-colours').on('click' ,function(){\n            var _val = [];\n            var j = jQuery;\n            _p = j(this).closest('.formwrapp'); \n            _prodid = j(_p).attr('id') ;\n          __pid = j(_p).data('prodid') ;\n            var p = eval(_prodid );\n\n            sel = j(_p).find(\"input[type='radio'][name='Color']:checked\").val();\n            if( typeof(sel) != 'undefined'){\n                _val.push(sel );\n            }\n\n            size = j(_p).find('select.op-sizes').val();\n            if( typeof(size ) != 'undefined'){\n                _val.push(size);\n            }\n            n = '';\n            val = j.trim( _val.join(\"\")  );\n            j(_p).find('select.product-form__variants').val(val);\n            if( typeof(p[0].id) != 'undefined' ){\n                \n                //console.log('d2p1_A: ', p[0].id );\n                j.each( p , function(i,el){\n                //console.log('i: ',el);\n                 if(el.opt == val ){\n                    n = el.id;\n                 }\n                });\t\t\n            }\n            if( j.trim(n).length > 1 ){\n                j(_p).find('select.product-form__variants').val(n);\t\n            }\n          \telse{\n              \tn=j(_p).find('select.product-form__variants').attr('defaultvalue');\n          \t\tj(_p).find('select.product-form__variants').val(n);\t\n          \t}\n            console.log(sel+ '| d2p1: ', __pid );\n          \t \n           console.log(\".prod-imgs-\"+__pid + \" | \" + \"img.color-\"+ sel);\n            if( j.trim(__pid).length > 1 ){\n            \tj(\".prod-imgs-\"+__pid).find(\"img\").hide(); \n              \n              if( j(\".prod-imgs-\"+__pid+ \" img.color-\"+ sel).length ){\n              \tj(\".prod-imgs-\"+__pid).find(\"img.color-\"+ sel).show(); \n              }\n              else{\n              \t j(\".prod-imgs-\"+__pid).find(\"img.default-img\").show();                 \n              }\n              \n            \t\n            } \n            else{\n            \tj(\".prod-imgs-\"+__pid).find(\"img\").hide(); \n             \t j(\".prod-imgs-\"+__pid).find(\"img.default-img\").show(); \n            }\n             \n          \n        });\n        jQuery('select.op-sizes').on('change' ,function(){\n            var _val = [];\n            var j = jQuery;\n            _p = j(this).closest('.formwrapp'); \n            _prodid = j(_p).attr('id') ;\n            var p = eval(_prodid );\n\n            size = j( this ).val();\n            if( typeof(size ) != 'undefined'){\n                _val.push(size);\n            }\n\n            sel = j(_p).find(\"input[type='radio'][name='Color']:checked\").val();\n            if( typeof(sel) != 'undefined'){\n                _val.push(sel );\n            }\n            _val.reverse();\n            val = j.trim( _val.join(\"\")  );\n            j(_p).find('select.product-form__variants').val(val);\n          \tn = '';\n            if( typeof(p[0].id) != 'undefined' ){\n                \n                //console.log('d2p1_A: ', p[0].id );\n                j.each( p , function(i,el){ \n                 if(el.opt == val ){\n                    n = el.id;\n                 }\n                });\t\t\n            }\n            if( j.trim(n).length > 1 ){\n                j(_p).find('select.product-form__variants').val(n);\t\n            }\n         \telse{\n              \tn=j(_p).find('select.product-form__variants').attr('defaultvalue');\n          \t\tj(_p).find('select.product-form__variants').val(n);\t\n          \t}\n            //console.log(val + '| d2p: ', p );\n        });\n      \n      /*setdefault*/\n      jQuery.each(jQuery(\".template-collection select.product-form__variants.no-js\") ,function(){\n        jQuery(this).data('defaultvalue' , jQuery(this).val() );\n      });\n          \n         /*thumbnails*/\n     _j(\".media-thumnails-wrapper .product-single__thumbnails a.product-single__thumbnail\").on('click',function(event){\n           event.preventDefault();\n           _target = _j(this).data('target-img');\n           if(_target){\n              p = _j(this).closest('li.grid__item');\n              if(p){console.log('_target:' , \".img-preview img.\"+_target );\n                  _j(p).find(\".img-preview img\").hide();\n                  _j(p).find(\".img-preview img.\"+_target).show();\n              }\n           }\n      });  \n      \n       GolfTournament.Init();\n      \n      \n      if(jQuery(\"select.opt-Sponsorship\").length ){\n          jQuery(\"select.opt-Sponsorship\").val('None');\n      }\n       \n      /*product tournament page*/\n      if(jQuery(\".cms.golf-item\").length){\n          if(jQuery('.price.price--listing.price--sold-out ').length){\n              jQuery.each(jQuery('.price.price--listing.price--sold-out'), function(i,el){\n                  jQuery(this).closest('li.golf-item').first().hide();\n              });\n          }\n      }\n      \n\t});\n}"],
  "mappings": "AAAA,IAAI,eAAiB,CACpB,IAAM,UAAU,CACf,OAAO,OAAO,iCAAiC,EAAE,KAAK,KAAK,CAC5D,EACA,MAAQ,UAAU,CACjB,OA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