(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[16],{"+qP9":function(e,t){e.exports=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r},e.exports.__esModule=!0,e.exports.default=e.exports},"2qu3":function(e,t,n){"use strict";var a=n("lSNA"),r=n("lwsE"),o=n("W8MJ");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,i=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){i=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(i)throw o}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}t.__esModule=!0,t.default=void 0;var u,m=(u=n("q1tI"))&&u.__esModule?u:{default:u},d=n("8L3h"),p=n("jwwS");var f=[],h=[],g=!1;function b(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}function y(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach((function(a){var r=b(e[a]);r.loading?t.loading=!0:(t.loaded[a]=r.loaded,t.error=r.error),n.push(r.promise),r.promise.then((function(e){t.loaded[a]=e})).catch((function(e){t.error=e}))}))}catch(a){t.error=a}return t.promise=Promise.all(n).then((function(e){return t.loading=!1,e})).catch((function(e){throw t.loading=!1,e})),t}function v(e,t){return m.default.createElement(function(e){return e&&e.__esModule?e.default:e}(e),t)}function N(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:v,webpack:null,modules:null},t),a=null;function r(){if(!a){var t=new C(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!g&&"function"===typeof n.webpack){var o=n.webpack();h.push((function(e){var t,n=l(o);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(-1!==e.indexOf(a))return r()}}catch(s){n.e(s)}finally{n.f()}}))}var s=function(e,t){r();var o=m.default.useContext(p.LoadableContext),s=(0,d.useSubscription)(a);return m.default.useImperativeHandle(t,(function(){return{retry:a.retry}}),[]),o&&Array.isArray(n.modules)&&n.modules.forEach((function(e){o(e)})),m.default.useMemo((function(){return s.loading||s.error?m.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:a.retry}):s.loaded?n.render(s.loaded,e):null}),[e,s])};return s.preload=function(){return r()},s.displayName="LoadableComponent",m.default.forwardRef(s)}var C=function(){function e(t,n){r(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i(i({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function w(e){return N(b,e)}function S(e,t){for(var n=[];e.length;){var a=e.pop();n.push(a(t))}return Promise.all(n).then((function(){if(e.length)return S(e,t)}))}w.Map=function(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return N(y,e)},w.preloadAll=function(){return new Promise((function(e,t){S(f).then(e,t)}))},w.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return g=!0,t()};S(h,e).then(n,n)}))},window.__NEXT_PRELOADREADY=w.preloadReady;var x=w;t.default=x},"7if7":function(e,t,n){e.exports=n("u0+9")()},CbrH:function(e,t,n){"use strict";var a=n("q1tI"),r=n("YFqc"),o=n.n(r),s=a.createElement,i=function(e){var t=e.className,n=e.link,a=e.label,r=e.target;return s("li",null,s(o.a,{href:n},s("a",{href:n,className:t,target:r},a)))};i.defaultProps={className:null,target:null},t.a=i},L7HF:function(e,t,n){"use strict";var a=n("ma3e"),r={1:{name:"NEW_ORDER",type:"processing",message:function(e){return"We have successfully received your order but have not begun to process it yet."}},2:{name:"CHARGE_ERROR",type:"error",message:function(e){return"We have encountered an issue processing the credit card associated with your order. Please contact us to resolve the issue."}},4:{name:"PAYPAL_ERROR",type:"error",message:function(e){return"We have encountered an issue processing your payment via your PayPal account. Please contact us to resolve the issue."}},7:{name:"CREDIT_OVER_PHONE",type:"error",message:function(e){return"We have successfully received your order but need a credit card payment to begin processing it. Please contact us to provide payment."}},9:{name:"CHECK_HOLDING",type:"error",message:function(e){return"We have successfully received your order but it is awaiting a check payment before we can process it. Please contact us to resolve the issue."}},10:{name:"OUT_OF_STOCK",type:"outofstock",message:function(e){return"Your order is currently on hold due to one of the products being currently out of stock. Please contact us so we can discuss options."}},11:{name:"INTERNATIONAL_HOLD",type:"error",message:function(e){return"We have successfully received your order but are awaiting further information before we can shipping to your international address. Please contact us so we can proceed with your order."}},12:{name:"LOGO_APPROVAL",type:"customlogo",message:function(e){return"Your order is currently on hold because we are waiting for you to approve your logo. Please contact us if assistance is needed."}},15:{name:"CANCELED",type:"canceled",message:function(e){return"Your order has been canceled. Please contact us if you have any questions."},Icon:a.w,color:"danger"},16:{name:"RETURNED",type:"canceled",message:function(e){return"Your order has been returned. Please contact us if you have any questions."}},36:{name:"CUSTOMER_SERVICE_SUPPORT",type:"outofstock",message:function(e){return"Your order is currently on hold due to an inventory issue or print concern. Please contact us so we can discuss options."}},40:{name:"DYNAMICS_HOLDING",type:"processing",message:function(e){return"We have successfully received your order and it is currently being processed."}},42:{name:"DYNAMICS_OOS_CHECK",type:"outofstock",message:function(e){return"There is an inventory issue with one of the products on your order. Please contact us so we can discuss options."}},48:{name:"ORDER_ASSEMBLY",type:"processing",message:function(e){return"We have successfully received your order and it is currently being processed."}},49:{name:"READY_TO_PRINT",type:"processing",message:function(e){return"We have successfully received your order and it is currently being processed."}},50:{name:"PICKING",type:"processing",message:function(e){return"The items in your order are currently being pulled together."},Icon:a.d,color:"info"},62:{name:"PRODUCTION",type:"customlogo",message:function(e){return"Your order is currently in our production department being processed."}},70:{name:"PACKING",type:"processing",message:function(e){return"Your order is currently being packed in our shipping department."},Icon:a.d,color:"info"},73:{name:"PACKED",type:"processing",message:function(e){return"Your order has been assigned a tracking number and will be shipped out soon."}},77:{name:"PROCESSED_AWAITING_PICKUP",type:"shipping",message:function(e){return"Your order has been packed and is awaiting pickup."}}};t.a=r},OPrH:function(e,t,n){var a=n("oAe9");e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},P4EU:function(e,t,n){e.exports={logoLegacy:"Footer_logoLegacy__parF0",logoNew:"Footer_logoNew__7mI5h",footer:"Footer_footer__3cK1o",legalInfo:"Footer_legalInfo__USp41",signUp:"Footer_signUp__1XOlI",has2Columns:"Footer_has2Columns__2uWNj",content:"Footer_content__1G_2l",social:"Footer_social__1cq-H",socialIcon:"Footer_socialIcon__3FI8Q",facebook:"Footer_facebook__2p3I8",x:"Footer_x__1K8Cg",youtube:"Footer_youtube__2sQc0",blog:"Footer_blog__1magm",spinAround:"Footer_spinAround__26sfS"}},Q7JI:function(e,t,n){var a={"./Brands.tsx":["a7/b",0],"./Custom.tsx":["F7Ff",0],"./Departments.tsx":["Syt2",0,19],"./Departments/Accessories.tsx":["yl+8",36],"./Departments/Apparel.tsx":["kOYH",37],"./Departments/Bags.tsx":["yy0T",38],"./Departments/Gloves.tsx":["DBCR",39],"./Departments/GolfClubs.tsx":["R/5d",40],"./Departments/Shoes.tsx":["DbJj",41],"./Departments/SportsTeams.tsx":["4lmY",43],"./Departments/Women.tsx":["k3Ek",42],"./GolfBalls.tsx":["VHPf",0],"./MobileDepartments.tsx":["qO7I",132],"./Personalized.tsx":["WBSE",0],"./Sale.tsx":["oHxt",0],"./index.tsx":["R/cA",0,19,133]};function r(e){if(!n.o(a,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],r=t[0];return Promise.all(t.slice(1).map(n.e)).then((function(){return n(r)}))}r.keys=function(){return Object.keys(a)},r.id="Q7JI",e.exports=r},QUvq:function(e,t,n){e.exports={promoAddedBar:"SitewidePromoAddedBar_promoAddedBar__2k6RI"}},S3Ht:function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},UIyr:function(e,t,n){var a={"./Brands.tsx":"a7/b","./Custom.tsx":"F7Ff","./Departments.tsx":"Syt2","./Departments/Accessories.tsx":"yl+8","./Departments/Apparel.tsx":"kOYH","./Departments/Bags.tsx":"yy0T","./Departments/Gloves.tsx":"DBCR","./Departments/GolfClubs.tsx":"R/5d","./Departments/Shoes.tsx":"DbJj","./Departments/SportsTeams.tsx":"4lmY","./Departments/Women.tsx":"k3Ek","./GolfBalls.tsx":"VHPf","./MobileDepartments.tsx":"qO7I","./Personalized.tsx":"WBSE","./Sale.tsx":"oHxt","./index.tsx":"R/cA"};function r(e){var t=o(e);if(!n.m[t]){var a=new Error("Module '"+e+"' ('"+t+"') is not available (weak dependency)");throw a.code="MODULE_NOT_FOUND",a}return n(t)}function o(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=o,r.id="UIyr",e.exports=r},Vvt1:function(e,t,n){e.exports=n("a6RD")},a6RD:function(e,t,n){"use strict";var a=n("lSNA");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.__esModule=!0,t.noSSR=l,t.default=function(e,t){var n=s.default,a={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?a.loader=function(){return e}:"function"===typeof e?a.loader=e:"object"===typeof e&&(a=o(o({},a),e));if(a=o(o({},a),t),"object"===typeof e&&!(e instanceof Promise)&&(e.render&&(a.render=function(t,n){return e.render(n,t)}),e.modules)){n=s.default.Map;var r={},i=e.modules();Object.keys(i).forEach((function(e){var t=i[e];"function"!==typeof t.then?r[e]=t:r[e]=function(){return t.then((function(e){return e.default||e}))}})),a.loader=r}a.loadableGenerated&&delete(a=o(o({},a),a.loadableGenerated)).loadableGenerated;if("boolean"===typeof a.ssr){if(!a.ssr)return delete a.ssr,l(n,a);delete a.ssr}return n(a)};i(n("q1tI"));var s=i(n("2qu3"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){return delete t.webpack,delete t.modules,e(t)}},dBLd:function(e,t,n){e.exports={fathersDay:"SitewideShippingMessage_fathersDay__1ZAlb",christmasbar:"SitewideShippingMessage_christmasbar__19CLx",christmasheader:"SitewideShippingMessage_christmasheader__1XihM",freeShippingBar:"SitewideShippingMessage_freeShippingBar__2FLb4",freeShippingBarContent:"SitewideShippingMessage_freeShippingBarContent__kct1x",customizationToolBar:"SitewideShippingMessage_customizationToolBar__FcyQ5",button:"SitewideShippingMessage_button__6TkJa",freeShippingBullets:"SitewideShippingMessage_freeShippingBullets__fBm95",subscribeAndScore:"SitewideShippingMessage_subscribeAndScore__3mZJE",spinAround:"SitewideShippingMessage_spinAround__1ycPV"}},gMjX:function(e,t,n){e.exports={bullets:"ShippingMessageModal_bullets__1TrDZ",fathersDay:"ShippingMessageModal_fathersDay__NIKVC",christmas:"ShippingMessageModal_christmas__1pGPO",subscribeAndScore:"ShippingMessageModal_subscribeAndScore__23yKz",subscribeHeader:"ShippingMessageModal_subscribeHeader__2zHg7",spinAround:"ShippingMessageModal_spinAround__3oZ3X"}},jwwS:function(e,t,n){"use strict";var a;t.__esModule=!0,t.LoadableContext=void 0;var r=((a=n("q1tI"))&&a.__esModule?a:{default:a}).default.createContext(null);t.LoadableContext=r},oAe9:function(e,t){function n(t,a){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},t5Lk:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"tA+R":function(e,t,n){"use strict";var a=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,o=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,s=/\\([\u000b\u0020-\u00ff])/g,i=/([\\"])/g,l=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function c(e){var t=String(e);if(o.test(t))return t;if(t.length>0&&!r.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(i,"\\$1")+'"'}function u(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!==typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!l.test(n))throw new TypeError("invalid type");var a=n;if(t&&"object"===typeof t)for(var r,s=Object.keys(t).sort(),i=0;i<s.length;i++){if(r=s[i],!o.test(r))throw new TypeError("invalid parameter name");a+="; "+r+"="+c(t[r])}return a},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"===typeof e?function(e){var t;"function"===typeof e.getHeader?t=e.getHeader("content-type"):"object"===typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!==typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!==typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!l.test(r))throw new TypeError("invalid media type");var o=new u(r.toLowerCase());if(-1!==n){var i,c,m;for(a.lastIndex=n;c=a.exec(t);){if(c.index!==n)throw new TypeError("invalid parameter format");n+=c[0].length,i=c[1].toLowerCase(),34===(m=c[2]).charCodeAt(0)&&-1!==(m=m.slice(1,-1)).indexOf("\\")&&(m=m.replace(s,"$1")),o.parameters[i]=m}if(n!==t.length)throw new TypeError("invalid parameter format")}return o}},"u0+9":function(e,t,n){"use strict";var a=n("t5Lk");function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},wKQx:function(e,t,n){"use strict";var a=n("ODXe"),r=n("q1tI"),o=n.n(r),s=n("JQZV"),i=n("BIRu"),l=n("O0k9"),c=n.n(l),u=n("p46w"),m=n.n(u),d=n("EjJx"),p=n("Gz3O"),f=n("IP2g"),h=n("wHSu"),g=n("YFqc"),b=n.n(g),y=n("G25K"),v=n("L7HF"),N=n("URFc"),C=n.n(N),w=r.createElement;function S(){var e=r.useState(!1),t=Object(a.a)(e,2),n=t[0],o=t[1],s=m.a.get("Usertoken")?Object(d.a)(m.a.get("Usertoken")):{loggedIn:!1},i=r.useContext(p.a),l=i.state,c=(i.dispatch,l.userAccount),u=function(e){return w("div",{className:"".concat(C.a.miniAccountItem," ").concat(e.highlight&&"has-background-".concat(e.highlight,"-light")," is-clickable")},w(b.a,{href:e.link},w("a",{href:e.link},w("div",{className:"is-flex is-align-items-center"},w("span",{className:"icon is-medium is-size-5 mr-2 ".concat(e.highlight?"has-text-".concat(e.highlight,"-dark"):"has-text-success")},e.icon),w("div",null,w("p",{className:"".concat(e.highlight&&"has-text-".concat(e.highlight,"-dark"))},w("strong",null,e.label)),w("p",{className:C.a.miniAccountDesc},e.desc))))))};return w(r.Fragment,null,w("div",{onFocus:function(){return o(!0)},onMouseOver:function(){return o(!0)},onBlur:function(){return o(!1)},onMouseLeave:function(){return o(!1)}},w("span",{className:"is-flex is-align-items-center",style:{height:"100%"}},w(b.a,{href:"/myaccount"},w("span",{role:"button",className:"is-flex is-align-items-center","aria-label":"account, button"},w("span",{className:"icon is-medium is-size-4 has-text-grey-light is-clickable ".concat(C.a.iconAccountLarge)},w(f.a,{icon:h.Y})),w("span",{className:"is-size-6-mobile is-size-7-tablet is-hidden-mobile is-clickable"},"ACCOUNT")))),n&&w(r.Fragment,null,w(y.Card,{className:C.a.preview},s.loggedIn?w(r.Fragment,null,w("div",{className:C.a.miniAccount},w(y.Card.Header,{className:C.a.miniAccountItem},w("div",{className:"is-flex is-align-items-center"},w("span",{className:"icon has-text-success is-large is-size-2 mr-2"},w(f.a,{icon:h.Z})),w("p",{className:"is-size-5 has-text-success"},"Hello"," "," ".concat(s.customerFirstName,"!")))),c.OrderHistory.Orders&&function(){if(!c.OrderHistory.Orders.length)return w(r.Fragment,null);if(new Date(c.OrderHistory.Orders[0].OrderDate).getTime()+24192e5<(new Date).getTime())return w(r.Fragment,null);var e=v.a[c.OrderHistory.Orders[0].OrderStatus];if(!e)return w(r.Fragment,null);switch(v.a[c.OrderHistory.Orders[0].OrderStatus].type){case"shipping":return w(u,{link:"/myaccount#Recent",icon:w(f.a,{icon:h.R}),label:"Order Update #".concat(c.OrderHistory.Orders[0].OrderNumber),desc:e.message(c.OrderHistory.Orders[0].OrderNumber),highlight:"success"});case"canceled":return w(u,{link:"/myaccount#Recent",icon:w(f.a,{icon:h.x}),label:"Order Update #".concat(c.OrderHistory.Orders[0].OrderNumber),desc:e.message(c.OrderHistory.Orders[0].OrderNumber),highlight:"danger"});case"processing":case"customlogo":return w(u,{link:"/myaccount#Recent",icon:w(f.a,{icon:h.ab}),label:"Order Update #".concat(c.OrderHistory.Orders[0].OrderNumber),desc:e.message(c.OrderHistory.Orders[0].OrderNumber),highlight:"link"});case"outofstock":case"error":return w(u,{link:"/myaccount#Recent",icon:w(f.a,{icon:h.v}),label:"Order Update #".concat(c.OrderHistory.Orders[0].OrderNumber),desc:e.message(c.OrderHistory.Orders[0].OrderNumber),highlight:"warning"});default:return w(r.Fragment,null)}}(),w(u,{link:"/myaccount#Orders",icon:w(f.a,{icon:h.y}),label:"Order History",desc:"View & track online orders",highlight:""}),w(u,{link:"/myaccount#Subscriptions",icon:w(f.a,{icon:h.O}),label:"Subscribe and Score",desc:"View all automatic reorders",highlight:""}),w(u,{link:"/myaccount#AcctInfo",icon:w(f.a,{icon:h.s}),label:"Account Settings",desc:"Payments, Contacts, Addresses & more",highlight:""}))):w(y.Card.Content,{className:"has-text-centered"},w("p",{className:"is-size-5 mb-3"},"Hello"," ",s.customerFirstName?" ".concat(s.customerFirstName,"!"):"Golfer!"),w("div",{className:"buttons is-centered"},w(y.Button,{className:"is-orange"},w(b.a,{href:"/account"},w("span",{className:"has-text-white"},"Login")))),w("div",{className:"is-size-7"},!s.customerFirstName&&"New Customer?"," ",w(b.a,{href:"/account"},"Sign up for an account.")))))))}var x=n("6BCS"),k=n("20a2"),O=n.n(k),_=n("yE14"),E=n("Fci4"),A=n("A7CM"),I=o.a.createElement,M=function(e){var t=e.item,n=Object(E.d)(t.ItemPriceBreak,t.totalQty);n&&n.Price.toFixed(2);var a=t.images.length&&t.images[0].URL.includes("http")?t.images[0].URL:"https://static.golfballs.com/C/100x100/".concat(t.images[0].URL);return a=Object(A.c)(t,a),I("div",{className:C.a.previewCartItem},I("div",{className:"mr-3",style:{width:100}},I(y.Image,{size:"square",src:a,alt:t.productTitle})),I("div",{className:"is-flex-grow-1 pr-3"},I("p",null,I("strong",null,t.productTitle)),I("p",null,"Qty:",t.totalQty)),I("p",{className:C.a.previewCartItemPrice},n&&"".concat(Object(_.a)(n.Price))))},D=r.createElement;function P(){var e=r.useState(!1),t=Object(a.a)(e,2),n=t[0],o=t[1],s=r.useContext(x.a).state,i=s.cartTotalQty>9?"9+":s.cartTotalQty,l=Object(k.useRouter)(),c=function(e){e.preventDefault(),"ontouchstart"in document.documentElement||o(!0)};return D("span",{onMouseEnter:function(e){return c(e)},onMouseLeave:function(){return o(!1)},onClick:function(e){return function(e){e.preventDefault(),!("ontouchstart"in document.documentElement)||n?(l.push({pathname:"/cart"}),o(!1)):o(!0)}(e)},onFocus:function(e){return c(e)},onBlur:function(){return o(!1)},role:"button",style:{cursor:"pointer"},"aria-label":"".concat(i," CART"),tabIndex:0},D("span",{className:"is-flex is-align-items-center"},D("span",{className:"".concat(C.a.iconBadge)},D("span",{className:C.a.badge},i),D("span",{className:"icon is-large is-size-4 has-text-grey-light ".concat(C.a.iconCartLarge)},D(f.a,{icon:h.S}))),D("span",{className:"is-hidden-mobile is-size-7 has-text-black"},"CART")),n&&D(y.Card,{className:C.a.preview},function(){if(0===s.itemsInCart.length)return D("p",{className:"p-5 has-text-centered"},"There are no items in your cart");var e=s.itemsInCart.map((function(e,t){return t<4?D(M,{item:e,key:"".concat(t.toString())}):null}));return s.itemsInCart.length>4&&e.push(D("p",{className:"has-text-centered py-3 is-size-7 has-text-grey"},"+".concat(s.itemsInCart.length-4," more item").concat(s.itemsInCart.length-4>1?"s":""))),D(r.Fragment,null,e)}(),s.itemsInCart.length>0&&D(y.Card.Footer,null,D(y.Card.Footer.Item,null,D(b.a,{href:"/cart"},D("a",{href:"/cart",className:"button is-orange is-small"},D("span",{className:"icon"},D(f.a,{icon:h.S})),D("span",null,"View Cart")))),D(y.Card.Footer.Item,{className:"has-text-orange"},D("span",null,D("strong",null,"Total: ".concat(Object(_.a)(s.cartTotal))))))))}var j=n("o0o1"),T=n.n(j),B=n("HaE+"),G=n("vDqi"),R=n.n(G),z=n("y6dH"),F=n("8tEE"),L=n("6o1U"),H=n("h7QV"),U=n("CbrH"),q=n("P4EU"),W=n.n(q),V=o.a.createElement;function Y(){var e=Object(r.useContext)(x.a).state,t=o.a.useContext(s.a).state,n=m.a.get("Usertoken")?Object(d.a)(m.a.get("Usertoken")):{loggedIn:!1,customerID:0},i=n.loggedIn,l=n.customerID,c=o.a.useState(""),u=Object(a.a)(c,2),p=u[0],g=u[1],v=o.a.useState(""),N=Object(a.a)(v,2),C=N[0],w=N[1],S=o.a.useState({type:null,message:null}),k=Object(a.a)(S,2),O=k[0],_=k[1],E=!O.type||"error"===O.type,A=t.adminUser,I=m.a.get("SessionID"),M=function(){var e=Object(B.a)(T.a.mark((function e(){var t,n;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"The email address provided is not valid. Please try again!",t="You are now added to our email list. Get prepared for some great offers coming your way!",n={type:"error",message:"The email address provided is not valid. Please try again!"},e.prev=3,e.next=6,R.a.put("".concat("https://master.api.icustomize.com/","user/addToMailingList"),{emailAddress:C});case 6:e.sent.data.includes("result:true")&&(n.message=t,n.type="success",Object(L.d)(C)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),n.message="Please try again later";case 13:return e.prev=13,_(n),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[3,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var n=Object(B.a)(T.a.mark((function n(){var a,r,o;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,a={cartData:JSON.stringify(e),customerID:i&&l?l:0,salesRepID:t.adminUserID?t.adminUserID:0},n.next=4,R.a.put("".concat("https://master.api.icustomize.com/","user/saveCart"),a);case 4:r=n.sent,o=r.data.d,g("cart #".concat(o.cartNumber)),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(0),g("Please try again later");case 12:case"end":return n.stop()}}),n,null,[[0,9]])})));return function(){return n.apply(this,arguments)}}();return V(o.a.Fragment,null,V(y.Section,{className:"has-background-white-ter has-text-centered py-3"},V(y.Container,null,V("div",{className:"is-flex is-justify-content-center is-align-items-center"},"Shop Now. Pay over time with"," ",V("img",{src:"https://d1tp32r8b76g0z.cloudfront.net/images/creative/logos/badge-klarna.svg",alt:"Klarna Badge",width:"70",height:"26",className:"ml-2"}),V("div",{className:"is-hidden-mobile"},V("a",{href:"/pay-with-klarna",className:"ml-5-tablet button is-text"},"Learn More"))),V("div",{className:"is-hidden-tablet"},V("a",{href:"/pay-with-klarna",className:"ml-5-tablet button is-text"},"Learn More")))),V(y.Section,{className:W.a.footer,id:"acsbFooter"},V(y.Container,null,V(y.Level,null,V(y.Level.Side,{align:"left"},V(y.Level.Item,null,V(b.a,{href:"/"},V("a",{href:"/"},V("img",{width:"226",height:"35",src:"https://d1tp32r8b76g0z.cloudfront.net/images/creative/logos/logo-GBC-2021-inverted.svg",className:W.a.logoNew,alt:"Golf Balls Dot Com, logo, world leader in golf customization, homepage"}))))),V(y.Level.Side,{align:"right"},V(y.Level.Item,null,V(y.Columns,{className:"".concat(W.a.social," is-variable is-2d is-mobile")},V(y.Columns.Column,null,V("a",{href:"http://www.facebook.com/GolfballsDotCom",target:"facebook","aria-label":"Facebook"},V(y.Icon,{size:"large",className:"".concat(W.a.socialIcon," ").concat(W.a.facebook)},V(f.a,{icon:F.a})))),V(y.Columns.Column,null,V("a",{href:"http://twitter.com/Golfballsdotcom",target:"twitter","aria-label":"X"},V(y.Icon,{size:"large",className:"".concat(W.a.socialIcon," ").concat(W.a.x)},V(z.a,{src:"https://d1tp32r8b76g0z.cloudfront.net/images/creative/logos/logo-X.svg"})))),V(y.Columns.Column,null,V("a",{href:"http://www.youtube.com/Golfballsdotcom",target:"youtube","aria-label":"Youtube"},V(y.Icon,{size:"large",className:"".concat(W.a.socialIcon," ").concat(W.a.youtube)},V(f.a,{icon:F.b})))),V(y.Columns.Column,null,V("a",{href:"https://www.golfballs.com/blog/",target:"blog","aria-label":"Blog"},V(y.Icon,{size:"large",className:"".concat(W.a.socialIcon," ").concat(W.a.blog)},V(f.a,{icon:h.k})))))))),V("div",{className:W.a.content},V(y.Columns,null,V(y.Columns.Column,{className:"is-full-tablet is-one-fifth-widescreen"},V("div",{className:"has-text-white mb-2 title is-6"},"Sign up for our Newsletter"),V("div",{className:W.a.signUp},E&&V(o.a.Fragment,null,V("label",{htmlFor:"newsletterInput"},V("span",null,"Email Address"),V("input",{placeholder:"example@domain.com",onChange:function(e){return w(e.target.value)},id:"newsletterInput"}))),V("p",{className:"help"},O.message)),E&&V(y.Button,{id:"submitEmail",onClick:M,color:"black",className:"is-inverted is-outlined is-small mt-2"},"Sign Up")),V(y.Columns.Column,null,V(y.Columns,null,V(y.Columns.Column,{className:"is-two-fifths"},V("div",{className:"has-text-white mb-2 title is-6"},"Company"),V("ul",{className:W.a.has2Columns},V(U.a,{link:"/About-Us.html",label:"About Us"}),V(U.a,{link:"/Contact-Us.html",label:"Contact Us"}),V(U.a,{link:"/Retail.html",label:"Retail Center"}),V(U.a,{link:"/Careers.html",label:"Career Opportunities"}),V(U.a,{link:"/email",label:"Manage Email Subscriptions"}),V(U.a,{link:"/Subscribe-and-Score/About.html",label:"Subscribe and Score"}),V(U.a,{link:"/Golf-Gear-Buying-Guide.html",label:"Golf Gear Buyer's Guide"}),V(U.a,{link:"/Golf-Tournament-Planning.html",label:"Golf Tournament Planning"}),V(U.a,{link:"/Accessibility-Statement.html",label:"Accessibility Statement"}),V(U.a,{link:"/Sitemap.html",label:"Sitemap"}))),V(y.Columns.Column,{size:"one-fifth"},V("div",{className:"has-text-white mb-2 title is-6"},"Brands"),V("ul",null,V(U.a,{link:"/Brand-Store/Bridgestone-Golf.html",label:"Bridgestone Golf"}),V(U.a,{link:"/Brand-Store/Callaway-Golf.html",label:"Callaway Golf"}),V(U.a,{link:"/Brand-Store/Srixon-Golf.html",label:"Srixon"}),V(U.a,{link:"/Brand-Store/Taylor-Made-Golf.html",label:"TaylorMade"}),V(U.a,{link:"/Brand-Store/Titleist-Golf.html",label:"Titleist"}))),V(y.Columns.Column,{size:"two-fifths"},V("div",{className:"has-text-white mb-2 title is-6"},"Top Pages"),V("ul",{className:W.a.has2Columns},V(U.a,{link:"https://www.golfballs.com/blog/",target:"blog",label:"Golfballs.com Blog"}),V(U.a,{link:"/Golf-Glossary.html",label:"Golf Glossary"}),V(U.a,{link:"/testimonials.html",label:"Customer Testimonials"}),V(U.a,{link:"/Golf-History.html",label:"Golf History"}),V(U.a,{link:"/Golf-Balls/Titleist-2023-Pro-V1-Golf-Balls.htm",label:"Titleist Pro V1"}),V(U.a,{link:"/Custom-Logo/Logo-Golf-Balls.html",label:"Logo Golf Balls"}),V(U.a,{link:"/Personalized-Golf/Golf-Balls/Personalized.html",label:"Personalized Golf Balls"}),V(U.a,{link:"/personalized-golf-gifts.html",label:"Personalized Golf Gifts"}),V(U.a,{link:"/Golf-Clubs/Catalog.html",label:"Golf Clubs"}),V(U.a,{link:"/Golf-Shoes",label:"Golf Shoes"}))))))),V("div",{className:"".concat(W.a.legalInfo," has-text-centered")},V("p",null,"Copyright \xa9 1995-",(new Date).getFullYear()," ","Golfballs.com, Inc. All rights reserved."),V("p",{className:"is-flex is-justify-content-center"},V(b.a,{href:"/Terms-of-Service.html"},V("a",{href:"/Terms-of-Service.html"},"Terms of Service")),V("span",{className:"mx-2"},"|"),V(b.a,{href:"/Privacy-Policy.html"},V("a",{href:"/Privacy-Policy.html"},"Privacy Policy")),V("span",{className:"mx-2"},"|"),V(b.a,{href:"/Return-Policy.html"},V("a",{href:"/Return-Policy.html"},"Return Policy"))),V("p",{className:"is-flex is-justify-content-center"},V(b.a,{href:"/California-Privacy-Notice.html"},V("a",{href:"/California-Privacy-Notice.html"},"California Privacy Notice")),V("span",{className:"mx-2"},"|"),V(b.a,{href:"/Do-Not-Share-Or-Sell-Personal-Information.html"},V("a",{href:"/Do-Not-Share-Or-Sell-Personal-Information.html"},"Do Not Share/Sell My Information"))),p?V("p",null,p):V(y.Button,{size:"small",type:"button",color:"success",className:"is-inverted is-outlined mt-4",onClick:D},"Get Cart Number"),A&&I&&V("p",{className:"py-2"},"SessionID:"," ",I))),V(H.a,null)))}var Q=n("Vvt1"),K=n.n(Q),J=n("p86Q"),X=n("RE1F"),Z=n("qvBR"),$=n("q0v4"),ee=r.createElement;function te(){var e=Object(k.useRouter)(),t=r.useState(e.query.baseQuery||""),n=Object(a.a)(t,2),o=n[0],s=n[1],l=r.useState([]),c=Object(a.a)(l,2),u=c[0],m=c[1],d=r.useState(-1),p=Object(a.a)(d,2),g=p[0],b=p[1],y=function(e){m(e),b(-1)},v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;""!==o&&""!==o.toString().replaceAll(" ","")?(y([]),Object(i.k)({action:"search",category:"New Site",label:t?t.toString():o}),t&&s(t),e.push({pathname:"/search",query:{baseQuery:t||o}})):s("")},N=function(e){switch(e.key){case"Enter":v(g>=0?u[g]:null);break;case"ArrowDown":if(u.length>0){e.preventDefault();var t=(g+1)%u.length;b(t)}break;case"Tab":g>=0&&u[g]!==o&&(e.preventDefault(),s(u[g]));break;case"ArrowUp":if(u.length>0){e.preventDefault();var n=(g<=0?u.length:g)-1;b(n)}}},w=function(){var e=Object(B.a)(T.a.mark((function e(t){var n,a,r,o,i;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!/[^A-Za-z0-9-. +/]/.test(t.target.value)){e.next=2;break}return e.abrupt("return");case 2:if(n=t.target.value,s(n),e.prev=4,!n.length){e.next=16;break}return e.next=8,R.a.get("".concat("https://master.api.icustomize.com/","user/searchAutoComplete/").concat(n));case 8:a=e.sent,r=a.data,o=[],i=r.suggestions,Object.keys(i).forEach((function(e){o=o.concat(i[e])})),y(o.filter((function(e,t){return"number"!==typeof e&&o.indexOf(e)===t})).slice(0,5)),e.next=17;break;case 16:n.includes(" ")||y([]);case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(4),console.log(e.t0);case 22:case"end":return e.stop()}}),e,null,[[4,19]])})));return function(t){return e.apply(this,arguments)}}();return ee(r.Fragment,null,ee("div",{className:C.a.searchWrapper},ee("div",{className:C.a.siteSearch},ee("input",{placeholder:"Search Golfballs.com",onBlur:function(e){e.target.placeholder="Search Golfballs.com";var t=e.relatedTarget;(!t||t&&"searchSuggestion"!==t.className)&&y([])},onFocus:function(e){e.target.placeholder=""},onKeyDown:N,onChange:w,value:o,tabIndex:0}),ee("span",{className:"icon has-text-grey-light",onClick:function(){return v()},onKeyDown:function(e){"Enter"===e.key&&v()},role:"button",tabIndex:0,style:{cursor:"pointer"},"aria-label":"Execute Site Search"},ee(f.a,{icon:h.Q,"aria-label":"Execute Site Search"}))),o&&o.length>0&&u.length>0&&ee("div",{className:C.a.autocomplete},ee("ul",null,u.map((function(e,t){return ee("li",{id:e,key:e,role:"menuitem",className:t===g?"searchSuggestion ".concat(C.a.selected):"searchSuggestion",onClick:function(){return v(e)},onKeyDown:N,tabIndex:0},o.includes(" ")?ee("span",null,e):ee(r.Fragment,null,ee("span",{className:C.a.autocompleteHighlight},o.toString().trim()),ee("span",null,e.slice(o.length))))}))))))}var ne=n("0t3i"),ae=n("gMjX"),re=n.n(ae),oe=r.createElement,se=function(e){var t=e.messaging,n=(e.isShowModal,e.setIsShowModal);return oe(y.Modal,{show:!0,onClose:function(){return n(!1)},closeOnBlur:!0,closeOnESC:!0},oe(y.Modal.Card,null,"subscribeAndScore"===t&&oe(r.Fragment,null,oe(y.Modal.Card.Head,{className:re.a.subscribeAndScore,onClose:function(){return n(!1)},showClose:!1},oe(y.Modal.Card.Title,{className:"has-text-centered has-text-weight-bold"},oe("span",{className:"icon mr-3 is-hidden-mobile"},oe(f.a,{icon:h.R})),oe("span",{className:"is-size-6-mobile is-size-5-tablet is-size-4-desktop"},"The Ultimate in Golf Subscription"))),oe(y.Modal.Card.Body,{className:"has-text-centered"},oe("p",{className:"is-size-4 m-4"},oe("strong",{className:re.a.subscribeHeader},"Subscribe & Score Benefits")),oe("ul",{className:"".concat(re.a.bullets," is-size-5")},oe("li",null,"Free Customization*"),oe("li",null,"Convenience"),oe("li",null,"Flexibility")),oe("div",{className:"is-size-7"},"*Does not apply to Titleist golf balls. Discounted customization required."),oe("div",{className:"buttons is-centered mt-4"},oe("a",{className:"button is-orange",href:"/Subscribe-and-Score/About.html"},"Learn More about Subscribe & Score"))),oe(y.Modal.Card.Foot,{className:"has-background-white-ter is-justify-content-center py-3"},oe(y.Button,{onClick:function(){return n(!1)}},"Close"))),"freeShipping"===t&&oe(r.Fragment,null,oe(y.Modal.Card.Head,{className:"has-background-danger",onClose:function(){return n(!1)},showClose:!1},oe(y.Modal.Card.Title,{className:"has-text-centered has-text-weight-bold"},oe("span",{className:"icon mr-3 is-hidden-mobile"},oe(f.a,{icon:h.R})),oe("span",{className:"is-size-6-mobile is-size-5-tablet is-size-4-desktop"},"Free Shipping on Your Entire Order!"))),oe(y.Modal.Card.Body,{className:"has-text-centered"},oe("p",{className:"is-size-4 m-4"},oe("strong",{className:"has-text-danger"},"Ends Wednesday, 10/23 at 11:59 pm CT.")),oe("ul",{className:"".concat(re.a.bullets," is-size-5")},oe("li",null,"No minimum"),oe("li",null,"No promo code necessary"),oe("li",null,"Limited time only")),oe("div",{className:"is-size-7"},"*Free shipping applies to U.S. Domestic Economy Shipping Service. No minimum order required.")),oe(y.Modal.Card.Foot,{className:"has-background-white-ter is-justify-content-center py-3"},oe(y.Button,{onClick:function(){return n(!1)}},"Close"))),"fathers"===t&&oe(r.Fragment,null,oe(y.Modal.Card.Head,{className:"".concat(re.a.fathersDay),onClose:function(){return n(!1)}},oe(y.Modal.Card.Title,{className:"has-text-centered"},oe("strong",{className:"has-text-white"},oe("span",{className:"icon mr-2 is-hidden-mobile"},oe(f.a,{icon:h.B})),oe("span",{className:"is-size-6-mobile is-size-5-tablet is-size-4-desktop"},"Guaranteed Father's Day Delivery")))),oe(y.Modal.Card.Body,{className:"has-text-centered"},oe(y.Content,null,oe("p",null,"You must choose"," ",oe("strong",null,"Overnight")," ","shipping"," ",oe("span",{className:"is-block-tablet"},"for your order to arrive by Father's Day.")),oe("p",{className:"is-size-7"},"*Certain exclusions apply."," ",oe("span",{className:"is-block-tablet"},"See Estimated Delivery Times on product pages for more details.")),oe("p",{className:"is-size-7 is-italic"},"Updated as of: ".concat((new Date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}))))),oe(y.Modal.Card.Foot,{className:"has-background-white-ter is-justify-content-center py-3"},oe(y.Button,{onClick:function(){return n(!1)}},"Close"))),"christmas"===t&&oe(r.Fragment,null,oe(y.Modal.Card.Head,{className:"".concat(re.a.christmas),onClose:function(){return n(!1)}},oe(y.Modal.Card.Title,{className:"has-text-centered"},oe("strong",{className:"has-text-white"},oe("span",{className:"icon mr-2 is-hidden-mobile"},oe(f.a,{icon:h.B})),oe("span",{className:"is-size-6-mobile is-size-5-tablet is-size-4-desktop"},"Guaranteed Christmas Delivery")))),oe(y.Modal.Card.Body,{className:"has-text-centered"},oe(y.Content,null,oe("p",null,"You must choose"," ",oe("strong",null,"Overnight")," ","shipping"," ",oe("span",{className:"is-block-tablet"},"for your Customized or Non-Customized order"," "),oe("span",{className:"is-block-tablet"},"to arrive by Christmas.")),oe("p",{className:"is-size-7"},"*Certain exclusions apply. See Estimated Delivery Times on product pages for more details."),oe("p",{className:"is-size-7 is-italic"},"Updated as of: ".concat((new Date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}))))),oe(y.Modal.Card.Foot,{className:"has-background-white-ter is-justify-content-center py-3"},oe(y.Button,{onClick:function(){return n(!1)}},"Close"))),"shippingOutages"===t&&oe(r.Fragment,null,oe(y.Modal.Card.Head,{className:"".concat(re.a.christmas),onClose:function(){return n(!1)}},oe(y.Modal.Card.Title,{className:"has-text-centered"},oe("strong",{className:"has-text-white"},oe("span",{className:"icon mr-2 is-hidden-mobile"},oe(f.a,{icon:h.T})),oe("span",{className:"mr-2 is-size-6-mobile is-size-5-tablet is-size-4-desktop"},"Winter Weather Shipping Update"),oe("span",{className:"icon mr-2 is-hidden-mobile"},oe(f.a,{icon:h.T}))))),oe(y.Modal.Card.Body,{className:"has-text-centered"},oe(y.Content,null,oe("p",null,"Due to severe winter weather, service disruptions are likely and packages may be delayed throughout the week."),oe("p",{className:"is-size-7 is-italic"},"Updated as of: ".concat((new Date).toLocaleDateString("en-US",{weekday:"long",year:"numeric",month:"long",day:"numeric"}))))),oe(y.Modal.Card.Foot,{className:"has-background-white-ter is-justify-content-center py-3"},oe(y.Button,{onClick:function(){return n(!1)}},"Close")))))};se.defaultProps={messaging:null};var ie=se,le=n("dBLd"),ce=n.n(le),ue=o.a.createElement,me=function(e){var t=e.messaging,n=Object(r.useState)(!1),a=n[0],s=n[1];return ue(o.a.Fragment,null,"subscribeAndScore"===t&&ue(y.Section,{className:"".concat(ce.a.subscribeAndScore," ").concat(ce.a.checkFixedPosition," has-background-danger has-text-white has-text-centered ")},ue(y.Container,{onClick:function(){return s(!0)},className:"is-clickable"},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("span",{className:"icon is-medium mr-2 ml-2-mobile"},ue(f.a,{className:"fa-lg",icon:h.l})),ue("span",{className:"is-size-7-mobile is-size-6-tablet"},ue("strong",{className:"mr-2 has-text-white"},"Subscribe & Score!"),"Join now for the ultimate in convenience + free customization"),ue(y.Button,{size:"small",className:"".concat(ce.a.button," is-white is-outlined is-hidden-mobile"),onClick:function(){return s(!0)}},"More Info")))),"freeShipping"===t&&ue(y.Section,{className:"".concat(ce.a.freeShippingBar," ").concat(ce.a.checkFixedPosition," has-background-danger has-text-white has-text-centered ")},ue(y.Container,{onClick:function(){return s(!0)},className:"is-clickable"},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("div",{className:"".concat(ce.a.freeShippingBarContent)},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("span",{className:"icon is-medium mr-2"},ue(f.a,{className:"fa-lg",icon:h.R})),ue("span",{className:"mr-3-tablet is-size-7-mobile is-size-6-tablet"},"Free Shipping on Your Entire Order,"," ",ue("strong",{className:"has-text-white"},"Ends Wednesday 10/23!")),ue("span",{className:"is-hidden-mobile has-text-weight-normal is-size-7 mr-4-tablet"},"No restrictions, no promo code needed."),ue(y.Button,{size:"small",className:"".concat(ce.a.button," is-white is-outlined is-hidden-mobile"),onClick:function(){return s(!0)}},"More Info")))))),"fathers"===t&&ue(y.Section,{className:"".concat(ce.a.freeShippingBar," ").concat(ce.a.fathersDay," ").concat(ce.a.checkFixedPosition," has-text-white has-text-centered ")},ue(y.Container,{onClick:function(){return s(!0)},className:"is-clickable"},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("span",{className:"icon is-medium"},ue(f.a,{className:"fa-lg",icon:h.B})),ue("span",{className:"has-text-weight-bold mr-4-tablet"},"Guaranteed Father's Day Delivery with Overnight Shipping"),ue(y.Button,{size:"small",className:"".concat(ce.a.button," is-white is-outlined is-hidden-mobile"),onClick:function(){return s(!0)}},"More Info")))),"christmas"===t&&ue(y.Section,{className:"".concat(ce.a.freeShippingBar," ").concat(ce.a.checkFixedPosition," has-background-danger has-text-white has-text-centered ")},ue(y.Container,{onClick:function(){return s(!0)},className:"is-clickable"},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("span",{className:"icon is-medium mr-3-mobile"},ue(f.a,{className:"fa-lg",icon:h.B})),ue("span",{className:"".concat(ce.a.christmasheader," has-text-weight-bold mr-4-tablet")},ue("span",{className:"is-block-mobile mb-0-mobile is-size-7-mobile"},"There's still time for "),"Guaranteed Christmas Delivery"),ue(y.Button,{size:"small",className:"".concat(ce.a.button," is-white is-outlined is-hidden-mobile"),onClick:function(){return s(!0)}},"More Info")))),"shippingOutages"===t&&ue(y.Section,{className:"".concat(ce.a.freeShippingBar," ").concat(ce.a.checkFixedPosition," has-background-danger has-text-white has-text-centered ")},ue(y.Container,{onClick:function(){return s(!0)},className:"is-clickable"},ue("div",{className:"is-flex is-justify-content-center is-align-items-center"},ue("span",{className:"icon is-medium mr-3-mobile"},ue(f.a,{className:"fa-md",icon:h.T})),ue("span",{className:"".concat(ce.a.christmasheader," has-text-weight-bold")},ue("span",{className:"is-block-mobile mb-0-mobile is-size-7-mobile"},"Winter Weather Shipping Update")),ue("span",{className:"icon is-medium mr-3-mobile mr-4-tablet"},ue(f.a,{className:"fa-md",icon:h.T})),ue(y.Button,{size:"small",className:"".concat(ce.a.button," is-white is-outlined is-hidden-mobile"),onClick:function(){return s(!0)}},"More Info")))),"ballCustomizationTool"===t&&ue(y.Section,{className:"".concat(ce.a.customizationToolBar," ").concat(ce.a.checkFixedPosition," has-text-white has-text-centered ")},ue(y.Container,null,ue("div",{className:"is-flex-tablet is-justify-content-center is-align-items-center"},ue("span",{className:"is-block-mobile mb-0-mobile mr-5-tablet"},ue("strong",null,"Stand Out from the Crowd!")),ue("span",{className:"is-inline-flex"},ue("a",{className:"mr-1",href:"/Customize-Your-Golf-Balls.html"},"Click here to start customizing your golf balls"),"\xbb")))),a&&ue(ie,{messaging:t,isShowModal:a,setIsShowModal:s}))};me.defaultProps={messaging:null};var de=me,pe=r.createElement,fe=[{name:"Golf Balls",url:"/Golf-Balls/Catalog.html",control:"GolfBalls"},{name:"Personalized",url:"/Personalized-Golf.html",control:"Personalized"},{name:"Custom Logo",url:"/Custom-Logo/Catalog.html",control:"Custom"},{name:"Departments",url:null,control:"Departments"},{name:"Brands",url:"/Brand-Store.html",control:"Brands"},{name:"Sale",url:"/Golf-Sale/Catalog.html",control:"Sale"}],he={};function ge(){var e=Object(k.useRouter)(),t=((m.a.get("Usertoken")?Object(d.a)(m.a.get("Usertoken")):{loggedIn:!1}).loggedIn,Object(r.useContext)(s.a)),n=t.state,o=n.adminUser,i=n.proposalMode,l=n.opportunityID,c=t.dispatch,u=Object(r.useContext)(J.a),p=u.state.caseID,g=u.dispatch,v=r.useState(null),N=Object(a.a)(v,2),w=N[0],x=N[1],O=r.useState(!1),_=Object(a.a)(O,2),E=_[0],A=_[1],I=r.useState(!1),M=Object(a.a)(I,2),D=M[0],j=M[1],T=r.useRef(null);r.useEffect((function(){var t=function(){x(null),A(!1)};return e.events.on("routeChangeComplete",t),function(){e.events.off("routeChangeComplete",t)}}),[]);var B=function(){window&&window.SnapABug&&window.SnapABug.startChat("Hello \ud83d\ude05")},G=function(){j(window.SnapEngage.getAgentStatus())},R=setInterval((function(){"object"===typeof window.SnapEngage&&(clearInterval(R),G(),T.current||(T.current=setInterval(G,12e4)))}),100),z=[{name:"Golf Clubs",url:"/Golf-Clubs/",control:"Departments/GolfClubs"},{name:"Apparel",url:"/Golf-Apparel/Catalog.html",control:"Departments/Apparel"},{name:"Shoes",url:"/Golf-Shoes/Catalog.html",control:"Departments/Shoes"},{name:"Bags",url:"/Golf-Bags/Catalog.html",control:"Departments/Bags"},{name:"Accessories",url:"/Golf-Accessories/Catalog.html",control:"Departments/Accessories"},{name:"Women",url:"/Specialty-Store/Womens.html",control:"Departments/Women"},{name:"Sports Teams",url:"/Sports-Teams-Logo.html",control:"Departments/SportsTeams"}],F=function(e){return pe(y.Columns.Column,{key:e.name,className:null===w?"is-hidden-tablet":"is-hidden"},pe(b.a,{href:e.url},e.name))},L=function(e){var t=he[e.control];return pe(t,null)},H=function(e){return e?pe("span",{className:"".concat(C.a.topLevelChevron," is-hidden-mobile")},pe("span",{className:"icon"},pe(f.a,{icon:h.p}))):null},U=function(e,t){e.preventDefault(),"ontouchstart"in document.documentElement||x(t)},q=function(){c(Object(X.d)()),window.location.href="https://api.golfballs.com/Golfballs/AdminNew/Default.aspx?Page=280&opportunityID=".concat(l)},W=function(){g(Object(Z.d)(null))};return pe(r.Fragment,null,pe("div",{className:"".concat(C.a.mobileNav," ").concat(E&&C.a.mobileNavOpen),id:"acsbMenu"},o&&pe($.a,null),o&&pe(ne.a,null),pe(y.Section,{className:"".concat(C.a.abovenav," ").concat((i||p&&p>0)&&o?C.a.abovenavProposalMode:""," py-1 is-size-7")},pe(y.Container,null,pe(y.Level,null,pe(y.Level.Side,{align:"left"},i&&o?pe(y.Level.Item,{id:C.a.proposalModeText},"Proposal Mode",pe(y.Button,{size:"small",className:C.a.proposalModeBtn,onClick:q},"Exit")):p&&p>0&&o?pe(y.Level.Item,{id:C.a.proposalModeText},"Linking Order to Case #",p,pe(y.Button,{className:C.a.proposalModeBtn,onClick:W},"Remove")):pe(y.Level.Item,null,pe("strong",{className:"has-text-white"},"The World Leader in Golf Customization"))),pe(y.Level.Side,{align:"right"},pe("div",{className:"is-flex"},pe("a",{href:"tel:8003722557","aria-label":"Order by Phone (800) 372-2557"},pe("span",{className:"icon"},pe(f.a,{icon:h.J})),pe("span",null,"Order by Phone (800) 372-2557")),pe(b.a,{href:"/myaccount#Subscriptions"},pe("a",{href:"/myaccount#Subscriptions","aria-label":"My Golf Ball Subscription"},pe("span",{className:"icon"},pe(f.a,{icon:h.R})),pe("span",null,"My Golf Ball Subscription"))),!!D&&pe("a",{onClick:B,"aria-label":"Live Chat",tabIndex:0},pe("span",{className:"icon"},pe(f.a,{icon:h.C})),pe("span",null,"Live Chat")),pe(b.a,{href:"/Help-Desk.html"},pe("a",{href:"/Help-Desk.html","aria-label":"Customer Support"},pe("span",{className:"icon"},pe(f.a,{icon:h.L})),pe("span",null,"Customer Support")))))))),pe(y.Section,{className:"has-background-white py-2 ".concat(C.a.mainNav," ").concat(C.a.mobileMinHeight," ").concat(w?C.a.navOpen:"")},pe("div",{className:"container",onMouseOver:function(){return w&&x(null)},onFocus:function(){return w&&x(null)}},pe(y.Columns,{className:"is-flex-desktop is-align-items-center"},pe(y.Columns.Column,{size:"one-quarter",className:C.a.logo},pe("div",{className:"is-flex-mobile is-block-tablet is-justify-content-flex-start is-align-items-center"},pe("div",{className:"mr-3 is-flex-shrink-1 is-hidden-tablet"},pe(y.Button,{"aria-label":"menu",text:!0,onClick:function(){E&&x(null),A(!E)}},pe("span",{className:"icon"},pe(f.a,{icon:E?h.W:h.j})))),pe("div",{className:"is-flex-mobile is-flex-grow-1 is-justify-content-center"},pe(b.a,{href:"/"},pe("a",null,pe(r.Fragment,null,pe("img",{width:"226",height:"35",src:"https://d1tp32r8b76g0z.cloudfront.net/images/creative/logos/logo-GBC-2021.svg",className:C.a.logoNew,alt:"Golf Balls Dot Com, logo, world leader in golf customization, homepage "}))))),pe("div",{className:"ml-3 is-flex is-hidden-tablet"},pe("a",{href:"tel:8003722557",className:C.a.mobileTelephone,"aria-label":"Order by Telephone"},pe("span",{className:"icon is-large is-size-4 has-text-grey-light"},pe(f.a,{icon:h.J}))),pe(S,null),pe(P,null)))),pe(y.Columns.Column,{className:"".concat(C.a.searchColumn," is-half")},pe(te,null)),pe(y.Columns.Column,{className:"".concat(C.a.accountCart," is-hidden-mobile")},pe(S,null),pe(P,null)))),pe("div",{className:null===w?C.a.mobileSubheader:"is-hidden"},pe(y.Heading,{renderAs:"div"},"Main Menu")),pe(y.Container,{className:C.a.topLevelLinks},pe("div",{className:w?"is-hidden-mobile ".concat(C.a.topLevelLinksColumns):C.a.topLevelLinksColumns},fe.map((function(t){return pe("div",{className:"is-hidden-mobile",key:t.url},t.url?pe("span",null,pe("a",{className:w===t.name?C.a.topLevelSelected:null,"aria-label":"".concat(t.name,", dropdown collapsed, link"),onMouseOver:function(e){return U(e,t.name)},onFocus:function(e){return U(e,t.name)},onClick:function(n){return function(t,n){t.preventDefault(),"ontouchstart"in document.documentElement&&w!==n.name?x(n.name):(e.push({pathname:n.url}),x(null))}(n,t)},onKeyDown:function(){return x(null)},role:"button",tabIndex:0},pe("span",null,t.name),H(w===t.name))):pe("div",{className:w===t.name?C.a.topLevelSelected:null,onMouseOver:function(){return x(t.name)},onFocus:function(){return x(t.name)}},pe("span",{className:"is-relative is-clickable",style:{color:"black"}},t.name,H(w===t.name))))})),fe.map((function(e){return"Departments"!==e.name?F(e):z.map((function(e){return F(e)}))}))))),pe(y.Section,{className:w?"".concat(C.a.megaMenu," ").concat(C.a.megaMenuOpen):"".concat(C.a.megaMenu," ").concat(C.a.megaMenuClosed)},pe(y.Container,null,null!==w&&pe(r.Fragment,null,pe("div",{className:C.a.mobileSubheader},pe(y.Button,{text:!0},pe("span",{className:"icon is-size-6"},pe(f.a,{icon:h.f})),pe("a",{role:"button","aria-label":"Back to Main Menu",onClick:function(){return x(null)},onKeyDown:function(){return x(null)},tabIndex:0},"Back to Main Menu")),pe(y.Heading,{renderAs:"h3"},w)),fe.filter((function(e){return e.name===w})).length>0?L(fe.filter((function(e){return e.name===w}))[0]):L(z.filter((function(e){return e.name===w}))[0])))),pe(y.Section,{className:C.a.mobileExtras},pe(y.Container,null,pe("div",{className:"block"},pe(y.Heading,{renderAs:"div",className:"is-size-5"},"Order Help"),pe("ul",null,pe("li",null,pe("a",{className:"button is-text",href:"/myaccount","aria-label":"My Account"},"My Account")),pe("li",null,pe("a",{className:"button is-text",href:"/myaccount#Recent","aria-label":"Order Status"},"Order Status")),pe("li",null,pe("a",{className:"button is-text",href:"/myaccount#Subscriptions","aria-label":"My Golf Ball Subscription"},"My Golf Ball Subscription")),pe("li",null,pe("a",{className:"button is-text",href:"/Return-Policy.html","aria-label":"Return Policy"},"Return Policy")))),pe("div",{className:"block"},pe(y.Heading,{renderAs:"div",className:"is-size-5"},"Contact Us"),pe("ul",null,pe("li",null,pe("a",{className:"button is-text",href:"tel:8003722557","aria-label":"(800) 372-2557"},pe("span",{className:"icon is-medium is-size-5"},pe(f.a,{icon:h.J})),pe("span",null,"(800) 372-2557"))),pe("li",null,pe("a",{className:"button is-text",href:"mailto:service@golfballs.com","aria-label":"service@golfballs.com"},pe("span",{className:"icon is-medium is-size-5"},pe(f.a,{icon:h.i})),pe("span",null,"service@golfballs.com"))),pe("li",null,pe("a",{onClick:B,className:"button is-text","aria-label":"Live Chat"},pe("span",{className:"icon is-medium is-size-5"},pe(f.a,{icon:h.C})),pe("span",null,"Live Chat")))))))),null!==w&&pe("div",{className:"".concat(C.a.dropBack," modal-background"),onMouseOver:function(){return x(null)},onFocus:function(){return x(null)}}),pe("div",{className:C.a.mobileCombinedHeight}),pe(de,{messaging:"subscribeAndScore"}))}fe.forEach((function(e){he[e.control]=K()((function(){return n("Q7JI")("./".concat(e.control,".tsx"))}),{loadableGenerated:{webpack:function(){return[n("UIyr").resolve("./".concat(e.control,".tsx"))]},modules:["./SubMenu/".concat(e.control,".tsx")]}})}));var be=n("Iyq3"),ye=n("4YA2"),ve=n("QUvq"),Ne=n.n(ve),Ce=o.a.createElement,we=function(){var e=o.a.useContext(x.a),t=e.state,n=e.dispatch;return o.a.useEffect((function(){return n(Object(ye.m)(t.promotion,t.itemsInCart))}),[]),o.a.useEffect((function(){m.a.get("PromoCodeToApply")&&n(Object(ye.m)(t.promotion,t.itemsInCart))}),[m.a.get("PromoCodeToApply")]),o.a.useEffect((function(){t.showPromoBanner&&O.a.asPath!==t.showPromoBanner&&"undefined"!==typeof document&&"visible"===document.visibilityState&&n(Object(ye.p)(""))})),t.showPromoBanner&&"PromotionValue"===t.promotion.type?Ce(y.Section,{className:"".concat(Ne.a.promoAddedBar," has-text-centered ")},Ce(y.Container,null,Ce("strong",{className:"is-block-mobile mr-4-tablet is-size-5-mobile"},"SUCCESS!"),"Promo code"," ",Ce("strong",null,t.promotion.promo)," ",Ce("span",{className:"is-block-mobile"},"has been applied to your cart."))):null},Se=n("HPCY"),xe=o.a.createElement;t.a=function(e){return function(t){var n=o.a.useState(!1),i=Object(a.a)(n,2),l=i[0],u=i[1],m=Object(r.useContext)(s.a).dispatch;return Object(r.useEffect)((function(){Object(be.b)(u,m)}),[t]),xe("div",{className:c.a.siteWrapper},xe(l?be.a:o.a.Fragment,null),xe(ge,null),xe(we,null),xe("div",{className:c.a.contentArea},xe(e,t)),xe(Y,null),xe(Se.a,null))}}},y6dH:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var a=n("+qP9"),r=n.n(a),o=n("S3Ht"),s=n.n(o),i=n("OPrH"),l=n.n(i);Object.create;function c(e,t,n){if(n||2===arguments.length)for(var a,r=0,o=t.length;r<o;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var u=n("tA+R"),m=new Map,d=function(e){return e.cloneNode(!0)},p=function(){return"file:"===window.location.protocol},f=function(e,t,n){var a=new XMLHttpRequest;a.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===a.readyState){var t=a.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var r=Object(u.parse)(t).type;if("image/svg+xml"!==r&&"text/plain"!==r)throw new Error("Invalid content type: ".concat(r))}if(4===a.readyState){if(404===a.status||null===a.responseXML)throw new Error(p()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===a.status||p()&&0===a.status))throw new Error("There was a problem injecting the SVG: "+a.status+" "+a.statusText);n(null,a)}}catch(o){if(a.abort(),!(o instanceof Error))throw o;n(o,a)}},a.open("GET",e),a.withCredentials=t,a.overrideMimeType&&a.overrideMimeType("text/xml"),a.send()},h={},g=function(e,t){h[e]=h[e]||[],h[e].push(t)},b=function(e,t,n){if(m.has(e)){var a=m.get(e);if(void 0===a)return void g(e,n);if(a instanceof SVGSVGElement)return void n(null,d(a))}m.set(e,void 0),g(e,n),f(e,t,(function(t,n){var a;t?m.set(e,t):(null===(a=n.responseXML)||void 0===a?void 0:a.documentElement)instanceof SVGSVGElement&&m.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(h[e])){var n=m.get(e),a=h[e][t];n instanceof SVGSVGElement&&a(null,d(n)),n instanceof Error&&a(n),t===h[e].length-1&&delete h[e]}}),0)},n=0,a=h[e].length;n<a;n++)t(n)}(e)}))},y=function(e,t,n){f(e,t,(function(e,t){var a;e?n(e):(null===(a=t.responseXML)||void 0===a?void 0:a.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},v=0,N=[],C={},w="http://www.w3.org/1999/xlink",S=function(e,t,n,a,r,o,s){var i=e.getAttribute("data-src")||e.getAttribute("src");if(i){if(-1!==N.indexOf(e))return N.splice(N.indexOf(e),1),void(e=null);N.push(e),e.setAttribute("src",""),(a?b:y)(i,r,(function(a,r){if(!r)return N.splice(N.indexOf(e),1),e=null,void s(a);var l=e.getAttribute("id");l&&r.setAttribute("id",l);var u=e.getAttribute("title");u&&r.setAttribute("title",u);var m=e.getAttribute("width");m&&r.setAttribute("width",m);var d=e.getAttribute("height");d&&r.setAttribute("height",d);var p=Array.from(new Set(c(c(c([],(r.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();r.setAttribute("class",p);var f=e.getAttribute("style");f&&r.setAttribute("style",f),r.setAttribute("data-src",i);var h=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(h,(function(e){e.name&&e.value&&r.setAttribute(e.name,e.value)})),n){var g,b,y,S,x,k={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(k).forEach((function(e){g=e,y=k[e];for(var t=function(e,t){var n;S=b[e].id,x=S+"-"+ ++v,Array.prototype.forEach.call(y,(function(e){for(var t=0,a=(n=r.querySelectorAll("["+e+'*="'+S+'"]')).length;t<a;t++){var o=n[t].getAttribute(e);o&&!o.match(new RegExp('url\\("?#'+S+'"?\\)'))||n[t].setAttribute(e,"url(#"+x+")")}}));for(var a=r.querySelectorAll("[*|href]"),o=[],s=0,i=a.length;s<i;s++){var l=a[s].getAttributeNS(w,"href");l&&l.toString()==="#"+b[e].id&&o.push(a[s])}for(var c=0,u=o.length;c<u;c++)o[c].setAttributeNS(w,"href","#"+x);b[e].id=x},n=0,a=(b=r.querySelectorAll(g+"[id]")).length;n<a;n++)t(n)}))}r.removeAttribute("xmlns:a");for(var O,_,E=r.querySelectorAll("script"),A=[],I=0,M=E.length;I<M;I++)(_=E[I].getAttribute("type"))&&"application/ecmascript"!==_&&"application/javascript"!==_&&"text/javascript"!==_||((O=E[I].innerText||E[I].textContent)&&A.push(O),r.removeChild(E[I]));if(A.length>0&&("always"===t||"once"===t&&!C[i])){for(var D=0,P=A.length;D<P;D++)new Function(A[D])(window);C[i]=!0}var j=r.querySelectorAll("style");if(Array.prototype.forEach.call(j,(function(e){e.textContent+=""})),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("xmlns:xlink",w),o(r),!e.parentNode)return N.splice(N.indexOf(e),1),e=null,void s(new Error("Parent node is null"));e.parentNode.replaceChild(r,e),N.splice(N.indexOf(e),1),e=null,s(null,r)}))}else s(new Error("Invalid data-src or src attribute"))},x=n("7if7"),k=n("q1tI"),O=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],_="http://www.w3.org/2000/svg",E="http://www.w3.org/1999/xlink",A=function(e){function t(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}l()(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,a,r=this.props,o=r.desc,s=r.evalScripts,i=r.httpRequestWithCredentials,l=r.renumerateIRIElements,c=r.src,u=r.title,m=r.useRequestCache,d=this.props.onError,p=this.props.beforeInjection,f=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(_,h)).setAttribute("xmlns",_),n.setAttribute("xmlns:xlink",E),a=document.createElementNS(_,h)):(n=document.createElement(h),a=document.createElement(h)),n.appendChild(a),a.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){d(e)})):d(e)};!function(e,t){var n=void 0===t?{}:t,a=n.afterAll,r=void 0===a?function(){}:a,o=n.afterEach,s=void 0===o?function(){}:o,i=n.beforeEach,l=void 0===i?function(){}:i,c=n.cacheRequests,u=void 0===c||c,m=n.evalScripts,d=void 0===m?"never":m,p=n.httpRequestWithCredentials,f=void 0!==p&&p,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var b=0,y=0,v=e.length;y<v;y++)S(e[y],d,g,u,f,l,(function(t,n){s(t,n),e&&"length"in e&&e.length===++b&&r(b)}));else e?S(e,d,g,u,f,l,(function(t,n){s(t,n),r(1),e=null})):r(0)}(a,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{f(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),o){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=o,e.prepend(n)}if(u){var a=e.querySelector(":scope > title");a&&e.removeChild(a);var r=document.createElement("title");r.innerHTML=u,e.prepend(r)}try{p(e)}catch(s){g(s)}},cacheRequests:m,evalScripts:s,httpRequestWithCredentials:i,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var a in t)if(e[a]!==t[a])return!0;return!1})(s()({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var a=e.wrapper,o=r()(e,O),i=a;return k.createElement(i,s()({},o,{ref:this.refCallback},"svg"===a?{xmlns:_,xmlnsXlink:E}:{}),this.state.isLoading&&n&&k.createElement(n,null),this.state.hasError&&t&&k.createElement(t,null))},t}(k.Component);A.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},A.propTypes={afterInjection:x.func,beforeInjection:x.func,desc:x.string,evalScripts:x.oneOf(["always","once","never"]),fallback:x.oneOfType([x.func,x.object,x.string]),httpRequestWithCredentials:x.bool,loading:x.oneOfType([x.func,x.object,x.string]),onError:x.func,renumerateIRIElements:x.bool,src:x.string.isRequired,title:x.string,useRequestCache:x.bool,wrapper:x.oneOf(["div","span","svg"])}}}]);