1/*! For license information please see 21.e3b19732.chunk.js.LICENSE.txt */ 2(this.webpackJsonpoptimx_sports_client_website=this.webpackJsonpoptimx_sports_client_website||[]).push([[21],{310:function(t,e,n){"use strict";var r=n(0),i=n(130),o=n(3),c=n(20),a=n(95),s=n(1),l=function(t){var e=t.title,n=t.pageTitle,l=t.description,p=t.keywords,u=Object(r.useContext)(c.b).globalState;return Object(s.jsxs)(i.a,{children:[Object(o.f)(e)?Object(s.jsx)("title",{children:e}):null,Object(o.f)(l)?Object(s.jsx)("meta",{name:"description",content:l}):null,Object(o.f)(p)?Object(s.jsx)("meta",{name:"keywords",content:p}):null,Object(o.f)(n)&&Object(o.d)(u)&&Object(o.d)(u.accountObject)&&Object(o.f)(u.accountObject.url)?Object(s.jsx)("script",{type:"application/ld+json",children:'\n {\n "@context": "https://schema.org",\n "@type": "BreadcrumbList",\n "itemListElement": [{\n "@type": "ListItem",\n "position": 1,\n "name": "Home",\n "item": "'.concat(u.accountObject.url,'/"\n },{\n "@type": "ListItem",\n "position": 2,\n "name": "').concat(n,'"\n }]\n }\n ')}):null,Object(o.d)(u)&&Object(o.d)(u.accountObject)&&Object(o.f)(u.accountObject.url)?Object(s.jsx)("link",{rel:"canonical",href:"".concat(u.accountObject.url).concat(window.location.pathname)}):null,Object(o.f)(e)?Object(s.jsx)("meta",{name:"twitter:title",content:e}):null,Object(o.f)(l)?Object(s.jsx)("meta",{name:"twitter:description",content:l}):null,Object(o.d)(u)&&Object(o.d)(u.socials)&&Object(o.f)(u.socials.twitterURL)?Object(s.jsx)("meta",{name:"twitter:site",content:"@".concat(Object(a.p)(u.socials.twitterURL))}):null,Object(o.f)(e)?Object(s.jsx)("meta",{property:"og:title",content:e}):null,Object(o.f)(l)?Object(s.jsx)("meta",{property:"og:description",content:l}):null]})};l.defaultProps={pageTitle:""},e.a=Object(r.memo)(l)},311:function(t,e,n){"use strict";var r=n(0),i=n(324),o=n(323),c=n(332),a=n(20),s=(n(312),n(1)),l=function(t){var e=t.links,n=t.lastCrumb,l=t.marginLeft,p=t.marginTop,u=t.fontColor,d=Object(r.useContext)(a.b).globalState;return Object(s.jsxs)(i.a,{className:"alegreya-font-family font-weight-700 breadcrumbs1-container text-uppercase font-size-s",style:{marginLeft:l,marginTop:p,color:"normal"===u?d.websiteStyles.colors.primaryColor:u},separator:"\u203a","aria-label":"breadcrumb",children:[e.map((function(t){return Object(s.jsx)(o.a,{color:"inherit",href:t.link,children:t.title},t.link)})),Object(s.jsx)(c.a,{className:"alegreya-font-family font-weight-700 font-size-s",children:n})]})};l.defaultProps={marginLeft:"100px",marginTop:"280px",fontColor:"normal"},e.a=Object(r.memo)(l)},312:function(t,e,n){},315:function(t,e,n){"use strict";n.d(e,"q",(function(){return r})),n.d(e,"l",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return a})),n.d(e,"j",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return h})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return f})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return j})),n.d(e,"o",(function(){return g})),n.d(e,"p",(function(){return y}));var r="Please wait for the images to load before opening each image",i="Player not found",o="Coach not found",c="This article is not available anymore",a="This article is not available at the moment",s="This gallery is not available anymore",l="This gallery is not available at the moment",p="This event is not available anymore",u="This event is not available at the moment",d="This web page is not available anymore",h="This web page is not available at the moment",b="This form is not available anymore",f="This form is not available at the moment",m="This product is not available anymore",j="This product is not available at the moment",g="This product is out of stock",y="Please access this website again using your portal"},316:function(t,e,n){"use strict";var r=n(0),i=(n(318),n(1)),o=function(t){var e=t.text;return Object(i.jsx)("div",{className:"placeholder-component1 alegreya-font-family p-t-20px p-b-20px font-size-3xl font-weight-800 text-uppercase text-center-align",children:Object(i.jsx)("p",{children:e})})};e.a=Object(r.memo)(o)},318:function(t,e,n){},323:function(t,e,n){"use strict";var r=n(5),i=n(8),o=n(0),c=n(12),a=n(25),s=n(17),l=n(101),p=n(26),u=n(332),d=o.forwardRef((function(t,e){var n=t.classes,s=t.className,d=t.color,h=void 0===d?"primary":d,b=t.component,f=void 0===b?"a":b,m=t.onBlur,j=t.onF
2ocus,g=t.TypographyClasses,y=t.underline,O=void 0===y?"hover":y,v=t.variant,x=void 0===v?"inherit":v,w=Object(i.a)(t,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),S=Object(l.a)(),N=S.isFocusVisible,L=S.onBlurVisible,I=S.ref,P=o.useState(!1),k=P[0],E=P[1],T=Object(p.a)(e,I);return o.createElement(u.a,Object(r.a)({className:Object(c.a)(n.root,n["underline".concat(Object(a.a)(O))],s,k&&n.focusVisible,"button"===f&&n.button),classes:g,color:h,component:f,onBlur:function(t){k&&(L(),E(!1)),m&&m(t)},onFocus:function(t){N(t)&&E(!0),j&&j(t)},ref:T,variant:x},w))}));e.a=Object(s.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(d)},324:function(t,e,n){"use strict";var r=n(5),i=n(29),o=n(8),c=n(0),a=(n(102),n(12)),s=n(17),l=n(332),p=n(42),u=n(79),d=Object(u.a)(c.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),h=n(129);var b=Object(s.a)((function(t){return{root:{display:"flex",marginLeft:t.spacing(.5),marginRight:t.spacing(.5),backgroundColor:t.palette.grey[100],color:t.palette.grey[700],borderRadius:2,cursor:"pointer","&:hover, &:focus":{backgroundColor:t.palette.grey[200]},"&:active":{boxShadow:t.shadows[0],backgroundColor:Object(p.b)(t.palette.grey[200],.12)}},icon:{width:24,height:16}}}),{name:"PrivateBreadcrumbCollapsed"})((function(t){var e=t.classes,n=Object(o.a)(t,["classes"]);return c.createElement(h.a,Object(r.a)({component:"li",className:e.root,focusRipple:!0},n),c.createElement(d,{className:e.icon}))}));var f=c.forwardRef((function(t,e){var n=t.children,s=t.classes,p=t.className,u=t.component,d=void 0===u?"nav":u,h=t.expandText,f=void 0===h?"Show path":h,m=t.itemsAfterCollapse,j=void 0===m?1:m,g=t.itemsBeforeCollapse,y=void 0===g?1:g,O=t.maxItems,v=void 0===O?8:O,x=t.separator,w=void 0===x?"/":x,S=Object(o.a)(t,["children","classes","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"]),N=c.useState(!1),L=N[0],I=N[1],P=c.Children.toArray(n).filter((function(t){return c.isValidElement(t)})).map((function(t,e){return c.createElement("li",{className:s.li,key:"child-".concat(e)},t)}));return c.createElement(l.a,Object(r.a)({ref:e,component:d,color:"textSecondary",className:Object(a.a)(s.root,p)},S),c.createElement("ol",{className:s.ol},function(t,e,n){return t.reduce((function(r,i,o){return o<t.length-1?r=r.concat(i,c.createElement("li",{"aria-hidden":!0,key:"separator-".concat(o),className:e},n)):r.push(i),r}),[])}(L||v&&P.length<=v?P:function(t){return y+j>=t.length?t:[].concat(Object(i.a)(t.slice(0,y)),[c.createElement(b,{"aria-label":f,key:"ellipsis",onClick:function(t){I(!0);var e=t.currentTarget.parentNode.querySelector("a[href],button,[tabindex]");e&&e.focus()}})],Object(i.a)(t.slice(t.length-j,t.length)))}(P),s.separator,w)))}));e.a=Object(s.a)({root:{},ol:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"},li:{},separator:{display:"flex",userSelect:"none",marginLeft:8,marginRight:8}},{name:"MuiBreadcrumbs"})(f)},332:function(t,e,n){"use strict";var r=n(5),i=n(8),o=n(0),c=n(12),a=n(17),s=n(25),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},p=o.forwardRef((function(t,e){var n=t.align,a=void 0===n?"inherit":n,p=t.classes,u=t.className,d=t.color,h=void 0===d?"initial":d,b=t.component,f=t.display,m=void 0===f?"initial":f,j=t.gutterBottom,g=void 0!==j&&j,y=t.noWrap,O=void 0!==y&&y,v=t.paragraph,x=void 0!==v&&v,w=t.variant,S=void 0===w?"body1":w,N=t.variantMapping,L=void 0===N?l:N,I=Object(i.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=b||(x?"p":L[S]||l[S])||"span";return o.createElement(P,Object(r.a)({className:Object(c.a)(p.root,u,"inherit"!==S&&p[S],"initial"!==h&&p["color".concat(Object(s.a)(h))],O&&p.noWrap,g&&p.gutterBottom,x&&p.paragraph,"inherit"!==a&&p["align".concat(Object(s.a)(a))],"initial"!==m&&p["display".concat(Object(s.a)(m))]),ref:e},I))}));e.a=Object(a.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(p)},353:function(t,e,n){"use strict";var r=n(0),i=n(307),o=n(299),c=n(300),a=n(120),s=n.n(a),l=n(361),p=n.n(l),u=n(362),d=n.n(u),h=n(314),b=n(20),f=n(3),m=n(22),j=(n(360),n(1)),g=function(t){var e=t.showShipping,n=t.showReturn,a=t.shippingPolicy,l=t.returnPolicy,u=Object(r.useContext)(b.b).globalState,g=function(){return Object(f.d)(a)&&"-1"!==a?a:Object(f.f)(u.policies.shipping)?u.policies.shipping:""},y=function(){return Object(f.d)(l)&&"-1"!==l?l:Object(f.f)(u.policies.return)?u.policies.return:""};return Object(j.jsxs)("div",{className:"shipping-return-policy-component",children:[e&&Object(f.f)(g())?Object(j.jsxs)(i.a,{className:"shipping-return-policy-accordian",children:[Object(j.jsx)(o.a,{exp
2andIcon:Object(j.jsx)(s.a,{}),"aria-controls":"shipping-policy-content",id:"shipping-policy-header",children:Object(j.jsxs)("div",{className:"shipping-return-policy-accordian-summary",children:[Object(j.jsx)(p.a,{style:{marginRight:"10px"}}),Object(j.jsx)("p",{className:"roboto-font-family text-uppercase font-size-l",children:"Shipping Policy"})]})}),Object(j.jsx)(c.a,{children:Object(j.jsx)("p",{className:"alegreya-font-family font-weight-200 text-left-align",children:Object(h.a)(Object(m.c)(g()))})})]}):null,n&&Object(f.f)(y())?Object(j.jsxs)(i.a,{className:"shipping-return-policy-accordian",children:[Object(j.jsx)(o.a,{expandIcon:Object(j.jsx)(s.a,{}),"aria-controls":"return-policy-content",id:"return-policy-header",children:Object(j.jsxs)("div",{className:"shipping-return-policy-accordian-summary",children:[Object(j.jsx)(d.a,{style:{marginRight:"10px"}}),Object(j.jsx)("p",{className:"roboto-font-family text-uppercase font-size-l",children:"Return Policy"})]})}),Object(j.jsx)(c.a,{children:Object(j.jsx)("p",{className:"alegreya-font-family font-weight-200 text-left-align",children:Object(h.a)(Object(m.c)(y()))})})]}):null]})};g.defaultProps={showShipping:!0,showReturn:!0,shippingPolicy:"",returnPolicy:""},e.a=Object(r.memo)(g)},354:function(t,e,n){"use strict";var r=n(0),i=(n(363),n(1)),o=function(t){var e=t.info;return Object(i.jsx)("p",{className:"info-component-container alegreya-font-family font-spacing-wider text-left-align m-l-20px m-r-20px",children:e})};e.a=Object(r.memo)(o)},360:function(t,e,n){},361:function(t,e,n){"use strict";var r=n(54),i=n(55);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(0)),c=(0,r(n(56)).default)(o.createElement("path",{d:"M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zm-.5 1.5l1.96 2.5H17V9.5h2.5zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm2.22-3c-.55-.61-1.33-1-2.22-1s-1.67.39-2.22 1H3V6h12v9H8.22zM18 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"}),"LocalShippingOutlined");e.default=c},362:function(t,e,n){"use strict";var r=n(54),i=n(55);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(0)),c=(0,r(n(56)).default)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM6.5 9L10 5.5 13.5 9H11v4H9V9zm11 6L14 18.5 10.5 15H13v-4h2v4z"}),"SwapVerticalCircleOutlined");e.default=c},363:function(t,e,n){},647:function(t,e,n){},648:function(t,e,n){},649:function(t,e,n){},650:function(t,e,n){},651:function(t,e,n){},652:function(t,e,n){},681:function(t,e,n){"use strict";n.r(e);var r=n(10),i=n(23),o=n(4),c=n(0),a=n.n(c),s=n(39),l=n(36),p=n(3),u=n(20),d=n(97),h=n(53),b=n(311),f=n(9),m=n(314),j=(n(647),n(41)),g=(n(648),n(28)),y=n(1),O=function(t){var e=t.ribbons;return Object(y.jsx)("div",{className:"ribbons-component-tags-container",children:e.map((function(t){return Object(y.jsx)("p",{className:"ribbons-component-tag",children:g.a[t]},Object(j.c)())}))})},v=Object(c.memo)(O),x=n(46),w=n(104),S=n(84),N=n(353),L=n(22),I=(n(649),function(t){var e=t.title;return Object(y.jsx)("div",{className:"title5 full-width",children:Object(y.jsx)("h1",{className:"condensed-font-family text-uppercase m-t-0 m-b-0 font-weight-800 text-left-align",children:e})})}),P=Object(c.memo)(I),k=(n(650),function(t){var e=t.option,n=t.selectedOptions,r=t.onChange,i=Object(c.useContext)(u.b).globalState,a=function(t){return t.inStock?Object(p.d)(n[e.id])&&n[e.id].valueId===t.id?"option-variant-selected":"option-variant-unselected":"option-variant-disabled"},s=function(t){return t.inStock&&Object(p.d)(n[e.id])&&n[e.id].valueId===t.id?Object(o.a)(Object(o.a)({},Object(L.g)(i)),{},{borderColor:i.websiteStyles.colors.primaryColor}):{}};return Object(y.jsxs)("div",{className:"option-container",children:[Object(y.jsx)("p",{className:"option-label text-left-align",children:e.title}),Object(y.jsx)("div",{className:"option-variants",children:e.variants.map((function(t){return Object(y.jsx)("div",{type:"button",className:a(t),style:s(t),onClick:function(){t.inStock&&r(e.id,e.title,t.title,t.id)},children:t.title},t.id)}))})]},e.id)}),E=Object(c.memo)(k),T=(n(651),n(258)),C=function(t){var e=t.input,n=t.selectedOptions,r=(t.savePressed,t.onChange);return Object(y.jsxs)("div",{className:"input-container",children:[Object(y.jsx)("p",{className:"input-label text-left-align",children:e.title}),Object(y.jsx)(T.a,{className:"input-input",type:"text",value:Object(p.d)(n[e.id])?n[e.id].value:"",required:!0,margin:"dense",variant:"outlined",onChange:function(t){r(e.id,e.title,t.target.value,Object(j.c)())}})]},e.id)},_=Object(c.memo)(C),F=n(316),q=n(315),H=n(95),V=n(145),R=n(354);function z(){z=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,c=Object.create(o.prototype),a=new k(r||[]);return i(c,"_invoke",{value:N(t,n,a)}),c}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",h="executing",b="completed",f={};function m(){}function j(){}function g(){}var y={};l(y,c,(function(){return this}));var O=Object.getPrototypeOf,v=O&&O(O(E([])));v&&v!==n&&r.call(v,c)&&(y=v);var x=g.prototype=m.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,c,a){var s=u(t[i],t,o);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,a)}))}a(s.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function N(e,n,r){var i=d;return function(o,c){if(i===h)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw c;return{value:t,done:!0}}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var s=L(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var l=u(e,n,r);if("normal"===l.type){if(i=r.done?b:"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=b,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 5,238 bytes, line 2
2(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var c=o.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return j.prototype=g,i(x,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:j,configurable:!0}),j.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var c=new S(p(t,n,r,i),o);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(x),l(x,s,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),l=r.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}var A={quantity:1,options:{},selectedImageIndex:0,savePressed:!1,checkoutLoadingSpinner:!1};function G(t,e){switch(e.type){case"reset":return Object(o.a)(Object(o.a)({},t),{},{quantity:1});case"incrementQuantity":return Object(o.a)(Object(o.a)({},t),{},{quantity:t.quantity+1});case"decrementQuantity":return t.quantity>1?Object(o.a)(Object(o.a)({},t),{},{quantity:t.quantity-1}):Object(o.a)(Object(o.a)({},t),{},{quantity:1});case"setOption":return Object(o.a)(Object(o.a)({},t),{},{options:Object(o.a)(Object(o.a)({},t.options),{},Object(f.a)({},e.optionId,{id:e.optionId,title:e.optionTitle,value:e.optionValue,valueId:e.optionValueId}))});case"setSelectedImageIndex":return Object(o.a)(Object(o.a)({},t),{},{selectedImageIndex:e.selectedImageIndex});case"setSavePressed":return Object(o.a)(Object(o.a)({},t),{},{savePressed:e.savePressed});case"setLoadingSpinner":return Object(o.a)(Object(o.a)({},t),{},{checkoutLoadingSpinner:e.loadingSpinner});default:return A}}
2var B=function(t){var e,n=t.id,o=t.title,l=t.price,d=t.description,b=t.ribbons,O=t.images,I=t.options,k=t.inputs,T=t.shippable,C=t.shippingThroughOptimX,B=t.shippingPrice,W=t.shippingWeight,M=t.shippingPolicy,Q=t.returnPolicy,X=t.stripePriceId,D=t.productsTotal,U=t.productsSold,Y=t.productsHold,J=t.inStock,$=t.deleted,K=t.published,Z=t.archived,tt=t.loadingSpinner,et=Object(c.useReducer)(G,A),nt=Object(i.a)(et,2),rt=nt[0],it=nt[1],ot=Object(c.useContext)(u.b),ct=ot.globalState,at=ot.setGlobalState,st=Object(s.b)().enqueueSnackbar;Object(c.useEffect)((function(){I.forEach((function(t){if(t.variants.length>0){var e=-1;t.variants.every((function(t,n){return!t.inStock||(e=n,!1)})),it(-1!==e?{type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:t.variants[e].title,optionValueId:t.variants[e].id}:{type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:"",optionValueId:""})}else it({type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:"",optionValueId:""})}))}),[I]);var lt=function(){return l*rt.quantity},pt=function(){return(!Object(p.f)(C)||"none"!==C&&"internal"!==C)&&Object(p.d)(B)?B*rt.quantity:0},ut=function(){return D-U-Y};return Object(y.jsx)("div",{className:"product-component1-container-container x-center",children:Object(y.jsxs)("div",{className:"product-component1-container p-t-50px p-b-50px p-l-50px p-r-50px",children:[Object(y.jsx)(P,{title:o}),tt?Object(y.jsx)(h.a,{color:ct.websiteStyles.colors.primaryColor}):Object(y.jsx)(y.Fragment,{children:$||Z||!J||ut()<=0?$||Z?Object(y.jsx)(F.a,{text:q.m}):!J||ut()<=0?Object(y.jsx)(F.a,{text:q.o}):K?null:Object(y.jsx)(F.a,{text:q.n}):Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(v,{ribbons:b}),Object(y.jsxs)("div",{className:"product-component1-content m-t-50px",children:[Object(y.jsxs)("div",{className:"product-component1-images",children:[Object(y.jsx)("img",{className:"product-component1-display-image",src:Object(p.f)(O[rt.selectedImageIndex])?O[rt.selectedImageIndex]:Object(L.k)(ct,O),alt:"product",style:{objectFit:Object(L.l)(ct,O)}}),Object(y.jsx)("div",{className:"product-component1-images-array",children:O.map((function(t,e){return Object(y.jsx)(a.a.Fragment,{children:Object(p.f)(t)?Object(y.jsx)("img",{src:t,className:"product-component1-image",alt:"product",onClick:function(){it({type:"setSelectedImageIndex",selectedImageIndex:e})}},Object(j.c)()):null},Object(j.c)())}))})]}),Object(y.jsx)("div",{className:"product-component1-info-desc-container",children:Object(p.f)(d)?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("p",{className:"product-component1-info-desc-label m-t-0",children:"Description"}),Object(y.jsx)("p",{className:"product-component1-info-desc m-t-0 m-b-0",children:Object(m.a)(Object(L.c)(d))})]}):null}),Object(y.jsxs)("div",{className:"product-component1-widget-container p-t-10px",children:[function(){var t=ut();return t<10&&t>1?Object(y.jsx)(R.a,{info:"".concat(t," Available")}):1===t?Object(y.jsx)(R.a,{info:"1 Available"}):t<1?Object(y.jsx)(R.a,{info:"Unavailable"}):null}(),I.map((function(t){return Object(y.jsx)(a.a.Fragment,{children:Object(y.jsx)(E,{option:t,selectedOptions:rt.options,onChange:function(t,e,n,r){it({type:"setOption",optionId:t,optionTitle:e,optionValue:n,optionValueId:r})}})},t.id)})),k.map((function(t){return Object(y.jsx)(a.a.Fragment,{children:Object(y.jsx)(_,{input
2:t,selectedOptions:rt.options,savePressed:rt.savePressed,onChange:function(t,e,n,r){it({type:"setOption",optionId:t,optionTitle:e,optionValue:n,optionValueId:r})}})},t.id)})),Object(y.jsx)("hr",{className:"product-component1-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component1-billing-item",children:[Object(y.jsx)("p",{className:"product-component1-billing-label",children:"Quantity:"}),Object(y.jsx)(w.a,{count:rt.quantity,increment:function(){it({type:"incrementQuantity"})},decrement:function(){it({type:"decrementQuantity"})},disableIncrement:rt.quantity>=ut()})]}),x.c?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("hr",{className:"product-component1-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component1-billing-item",children:[Object(y.jsx)("p",{className:"product-component1-billing-label",children:rt.quantity<=1?"Item Subtotal:":"Items Subtotal:"}),Object(y.jsx)("p",{className:"product-component1-billing-label",children:Object(x.f)(lt())})]}),Object(y.jsxs)("div",{className:"product-component1-billing-item",children:[Object(y.jsx)("p",{className:"product-component1-billing-label",children:"Platform Fee:"}),Object(y.jsx)("p",{className:"product-component1-billing-label",children:Object(x.b)(lt())})]}),x.g&&pt()>0?Object(y.jsxs)("div",{className:"product-component1-billing-item",children:[Object(y.jsx)("p",{className:"product-component1-billing-label",children:"Shipping and Handling Fee:"}),Object(y.jsx)("p",{className:"product-component1-billing-label",children:Object(x.d)(pt())})]}):null]}):Object(y.jsx)(y.Fragment,{children:x.g&&pt()>0?Object(y.jsxs)("div",{className:"product-component1-billing-item",children:[Object(y.jsx)("p",{className:"product-component1-billing-label",children:"Shipping and Handling Fee:"}),Object(y.jsx)("p",{className:"product-component1-billing-label",children:Object(x.d)(pt())})]}):null}),Object(y.jsx)("hr",{className:"product-component1-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component1-total-container",children:[Object(y.jsx)("p",{className:"product-component1-total-label",children:"Total:"}),Object(y.jsx)("p",{className:"product-component1-total-value",children:Object(x.d)(lt()+pt())})]}),Object(y.jsxs)("div",{className:"product-component1-buttons x-center",children:[Object(y.jsx)(S.a,{onClick:function(){if(Object(g.f)(ct)){it({type:"setSavePressed",savePressed:!0});var t=[];t.push({cartItemType:"PRODUCT",cartItemId:Object(j.c)(),productId:n,productOptions:Object.values(rt.options),stripePriceId:X,quantity:rt.quantity,shippable:T,shippingPrice:B,shippingWeight:W}),Object(g.b)(t,at,st),it({type:"reset"})}else st("This item is not available for purchase at the moment",{variant:"error"})},title:"Add to Cart",transparent:!0,backgroundColor:ct.websiteStyles.colors.primaryColor,fontColor:Object(p.f)(ct.websiteStyles.colors.fontColor)?"".concat(ct.websiteStyles.colors.fontColor):"white",fontFamily:"HelveticaNeue-CondensedBold, Roboto Condensed, Helvetica Neue, Helvetica,Arial, sans-serif",borderRadius:"5px",width:"100%",height:"44px"}),Object(y.jsx)(S.a,{onClick:function(){return(e=e||Object(r.a)(z().mark((function t(){var e,r,i;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Object(g.f)(ct)){t.next=3;break}return st("This item is not available for purchase at the moment",{variant:"error"}),t.abrupt("return");case 3:return it({type:"setLoadingSpinner",loadingSpinner:!0}),e=[],r=Object(j.c)(),e.push({id:X,quantity:rt.quantity,cartItemId:r,shippable:T,shippingPrice:B*rt.quantity,shippingWeight:W*rt.quantity}),i=Object(H.n)(ct,n),t.next=10,Object(V.a)(ct.stripeAccountId,e,"","",Object(f.a)({},r,JSON.stringify(Object.values(rt.options))),T,B*rt.quantity,W*rt.quantity,Object(g.l)(ct),i,st);case 10:it({type:"setLoadingSpinner",loadingSpinner:!1}),it({type:"reset"});case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},title:"Buy Now",backgroundColor:ct.websiteStyles.colors.primaryColor,fontColor:Object(p.f)(ct.websiteStyles.colors.fontColor)?"".concat(ct.websiteStyles.colors.fontColor):"white",fontFamily:"HelveticaNeue-CondensedBold, Roboto Condensed, Helvetica Neue, Helvetica,Arial, sans-serif",borderRadius:"5px",width:"100%",height:"44px",loadingSpinner:rt.checkoutLoadingSpinner})]})]})]}
vendor: 4,752 bytes, line 2
2),Object(y.jsx)("div",{className:"product-component1-policies p-t-50px",children:Object(y.jsx)(N.a,{shippingPolicy:M,returnPolicy:Q})})]})})]})})};B.defaultProps={loadingSpinner:!1};var W=B;n(652);function M(){M=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,c=Object.create(o.prototype),a=new k(r||[]);return i(c,"_invoke",{value:N(t,n,a)}),c}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",h="executing",b="completed",f={};function m(){}function j(){}function g(){}var y={};l(y,c,(function(){return this}));var O=Object.getPrototypeOf,v=O&&O(O(E([])));v&&v!==n&&r.call(v,c)&&(y=v);var x=g.prototype=m.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,c,a){var s=u(t[i],t,o);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,a)}))}a(s.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function N(e,n,r){var i=d;return function(o,c){if(i===h)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw c;return{value:t,done:!0}}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var s=L(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var l=u(e,n,r);if("normal"===l.type){if(i=r.done?b:"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=b,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var c=o.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return j.prototype=g,i(x,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:j,configurable:!0}),j.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var c=new S(p(t,n,r,i),o);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(x),l(x,s,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),l=r.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}var Q={quantity:1,options:{},selectedImageIndex:0,savePressed:!1,checkoutLoadingSpinner:!1};function X(t,e){switch(e.type){case"reset":return Object(o.a)(Object(o.a)({},t),{},{quantity:1});case"incrementQuantity":return Object(o.a)(Object(o.a)({},t),{},{quantity:t.quantity+1});case"decrementQuantity":return t.quantity>1?Object(o.a)(Object(o.a)({},t),{},{quantity:t.quantity-1}):Object(o.a)(Object(o.a)({},t),{},{quantity:1});case"setOption":return Object(o.a)(Object(o.a)({},t),{},{options:Object(o.a)(Object(o.a)({},t.options),{},Object(f.a)({},e.optionId,{id:e.optionId,title:e.optionTitle,value:e.optionValue,valueId:e.optionValueId}))});case"setSelectedImageIndex":return Object(o.a)(Object(o.a)({},t),{},{selectedImageIndex:e.selectedImageIndex});case"setSavePressed":return Object(o.a)(Object(o.a)({},t),{},{savePressed:e.savePressed});case"setLoadingSpinner":return Object(o.a)(Object(o.a)({},t),{},{checkoutLoadingSpinner:e.loadingSpinner});default:return Q}}var D=function(t){var e,n=t.id,o=t.title,l=t.price,d=t.description,b=t.ribbons,O=t.images,I=t.options,k=t.inputs,T=t.shippable,C=(t.shippingThroughOptimX,t.shippingPrice),z=t.shippingWeight,A=t.shippingPolicy,G=t.returnPolicy,B=t.stripePriceId,W=t.productsTotal,D=t.productsSold,U=t.productsHold,Y=t.inStock,J=t.deleted,$=t.published,K=t.archived,Z=t.loadingSpinner,tt=Object(c.useReducer)(X,Q),et=Object(i.a)(tt,2),nt=et[0],rt=et[1],it=Object(c.useContext)(u.b),ot=it.globalState,ct=it.setGlobalState,at=Object(s.b)().enqueueSnackbar;Object(c.useEffect)((function(){I.forEach((function(t){if(t.variants.length>0){var e=-1;t.variants.every((function(t,n){return!t.inStock||(e=n,!1)})),rt(-1!==e?{type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:t.variants[e].title,optionValueId:t.variants[e].id}:{type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:"",optionValueId:""})}else rt({type:"setOption",optionId:t.id,optionTitle:t.title,optionValue:"",optionValueId:""})}))}),[I]);var st=function(){return l*nt.quantity},lt=function(){return Object(p.d)(C)?C*nt.quantity:0},pt=function(){return W-D-U};return Object(y.jsx)("div",{className:"product-component2-container-container x-center",children:Object(y.jsx)("div",{className:"product-component2-container p-t-50px p-b-50px p-l-50px p-r-50px",children:Z?Object(y.jsx)(h.a,{color:ot.websiteStyles.colors.primaryColor}):Object(y.jsx)(y.Fragment,{children:J||K||!Y||pt()<=0?J||K?Object(y.jsx)(F.a,{text:q.m}):!Y||pt()<=0?Object(y.jsx)(F.a,{text:q.o}):$?null:Object(y.jsx)(F.a,{text:q.n}):Object(y.jsxs)(y.Fragment,{children:[Object(y.jsxs)("div",{className:"product-component2-content m-t-50px",children:[Object(y.jsxs)("div",{className:"product-component2-images",children:[Object(y.jsx)("img",{className:"product-component2-display-image",src:Object(p.f)(O[nt.selectedImageIndex])?O[nt.selectedImageIndex]:Object(L.k)(ot,O),alt:"product",style:{objectFit:Object(L.l)(ot,O)}}),Object(y.jsx)("div",{className:"product-component2-images-array",children:O.map((function(t,e){return Object(y.jsx)(a.a.Fragment,{children:Object(p.f)(t)?Object(y.jsx)("img",{src:t,className:"product-component2-image",alt:"product",onClick:function(){rt({type:"setSelectedImageIndex",selectedImageIndex:e})}},Object(j.c)()):null},Object(j.c)())}))})]}),Object(y.jsxs)("div",{className:"product-component2-title-info-container",children:[Object(y.jsx)(P,{title:o}),Object(y.jsx)(v,{ribbons:b}),Object(y.jsxs)("div",{className:"product-component2-info-container",children:[Object(y.jsx)("div",{className:"product-component2-info-desc-container",children:Object(p.f)(d)?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("p",{className:"product-component2-info-desc-label m-t-0",children:"Description"}),Object(y.jsx)("p",{className:"product-component2-info-desc m-t-0 m-b-0",children:Object(m.a)(Object(L.c)(d))})]}):null}),Object(y.jsxs)("div",{className:"product-component2-widget-container p-t-10px",children:[function(){var t=pt();return t<10&&t>1?Object(y.jsx)(R.a,{info:"".concat(t," Available")}
2):1===t?Object(y.jsx)(R.a,{info:"1 Available"}):t<1?Object(y.jsx)(R.a,{info:"Unavailable"}):null}(),I.map((function(t){return Object(y.jsx)(a.a.Fragment,{children:Object(y.jsx)(E,{option:t,selectedOptions:nt.options,onChange:function(t,e,n,r){rt({type:"setOption",optionId:t,optionTitle:e,optionValue:n,optionValueId:r})}})},t.id)})),k.map((function(t){return Object(y.jsx)(a.a.Fragment,{children:Object(y.jsx)(_,{input:t,selectedOptions:nt.options,savePressed:nt.savePressed,onChange:function(t,e,n,r){rt({type:"setOption",optionId:t,optionTitle:e,optionValue:n,optionValueId:r})}})},t.id)})),Object(y.jsx)("hr",{className:"product-component2-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:"Quantity:"}),Object(y.jsx)(w.a,{count:nt.quantity,increment:function(){rt({type:"incrementQuantity"})},decrement:function(){rt({type:"decrementQuantity"})},disableIncrement:nt.quantity>=pt()})]}),x.c?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("hr",{className:"product-component2-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:nt.quantity<=1?"Item Subtotal:":"Items Subtotal:"}),Object(y.jsx)("p",{className:"product-component2-billing-label",children:Object(x.f)(st())})]}),Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:"Platform Fee:"}),Object(y.jsx)("p",{className:"product-component2-billing-label",children:Object(x.b)(st())})]}),x.g&<()>0?Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:"Shipping and Handling Fee:"}),Object(y.jsx)("p",{className:"product-component2-billing-label",children:Object(x.d)(lt())})]}):null]}):Object(y.jsx)(y.Fragment,{children:x.g&<()>0?Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)("hr",{className:"product-component2-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:nt.quantity<=1?"Item Subtotal:":"Items Subtotal:"}),Object(y.jsx)("p",{className:"product-component2-billing-label",children:Object(x.d)(st())})]}),Object(y.jsxs)("div",{className:"product-component2-billing-item",children:[Object(y.jsx)("p",{className:"product-component2-billing-label",children:"Shipping and Handling Fee:"}),Object(y.jsx)("p",{className:"product-component2-billing-label",children:Object(x.d)(lt())})]})]}):null}),Object(y.jsx)("hr",{className:"product-component2-horizontal-line"}),Object(y.jsxs)("div",{className:"product-component2-total-container",children:[Object(y.jsx)("p",{className:"product-component2-total-label",children:"Total:"}),Object(y.jsx)("p",{className:"product-component2-total-value",children:Object(x.d)(st()+lt())})]}),Object(y.jsxs)("div",{className:"product-component2-buttons x-center",children:[Object(y.jsx)(S.a,{onClick:function(){if(Object(g.f)(ot)){rt({type:"setSavePressed",savePressed:!0});var t=[];t.push({cartItemType:"PRODUCT",cartItemId:Object(j.c)(),productId:n,productOptions:Object.values(nt.options),stripePriceId:B,quantity:nt.quantity,shippable:T,shippingPrice:C,shippingWeight:z}),Object(g.b)(t,ct,at),rt({type:"reset"})}else at("This item is not available for purchase at the moment",{variant:"error"})},title:"Add to Cart",transparent:!0,backgroundColor:ot.websiteStyles.colors.primaryColor,fontColor:Object(p.f)(ot.websiteStyles.colors.fontColor)?"".concat(ot.websiteStyles.colors.fontColor):"white",fontFamily:"HelveticaNeue-CondensedBold, Roboto Condensed, Helvetica Neue, Helvetica,Arial, sans-serif",borderRadius:"5px",width:"100%",height:"44px"}),Object(y.jsx)(S.a,{onClick:function(){return(e=e||Object(r.a)(M().mark((function t(){var e,r,i;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(Object(g.f)(ot)){t.next=3;break}return at("This item is not available for purchase at the moment",{variant:"error"}),t.abrupt("return");case 3:return rt({type:"setLoadingSpinner",loadingSpinner:!0}),e=[],r=Object(j.c)(),e.push({id:B,quantity:nt.quantity,cartItemId:r,shippable:T,shippingPrice:C*nt.quantity,shippingWeight:z*nt.quantity}),i=Object(H.n)(ot,n),t.next=10,Object(V.a)(ot.stripeAccountId,e,"","",Object(f.a)({},r,JSON.stringify(Object.values(nt.options))),T,C*nt.quantity,z*nt.quantity,Object(g.l)(ot),i,at);case 10:rt({type:"setLoadingSpinner",loadingSpinner:!1}),rt({type:"reset"});case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)},title:"Buy Now",backgroundColor:ot.websiteStyles.colors.primaryColor,fontColor:Object(p.f)(ot.websiteStyles.colors.fontColor)?"".concat(ot.websiteStyles.colors.fontColor):"white",fontFamily:"HelveticaNeue-CondensedBold, Roboto Condensed, Helvetica Neue, Helvetica,Arial, sans-serif",borderRadius:"5px",width:"100%",height:"44px",loadingSpinner:nt.checkoutLoadingSpinner})]})]})]})]})]}),Object(y.jsx)("div",{className:"product-component2-policies p-t-50px",children:Object(y.jsx)(N.a,{shippingPolicy:A,returnPolicy:G})})]})})})})};D.defaultProps={loadingSpinner:!1};
2var U=D,Y=function(t){var e=t.id,n=t.title,r=t.price,i=t.description,o=t.ribbons,a=t.images,s=t.options,l=t.inputs,p=t.shippable,d=t.shippingThroughOptimX,f=t.shippingPrice,m=t.shippingWeight,j=t.shippingPolicy,O=t.returnPolicy,v=t.stripePriceId,x=t.productsTotal,w=t.productsSold,S=t.productsHold,N=t.inStock,L=t.deleted,I=t.published,P=t.archived,k=t.loadingSpinner,E=t.secondaryLoadingSpinner,T=Object(c.useContext)(u.b).globalState;return Object(y.jsx)(y.Fragment,{children:k?Object(y.jsx)(h.a,{color:T.websiteStyles.colors.primaryColor}):Object(y.jsxs)(y.Fragment,{children:[Object(y.jsx)(b.a,{links:[{title:"Home",link:"/"},{title:Object(g.k)(T),link:"/store"}],lastCrumb:n,marginLeft:"100px"}),Object(y.jsx)(W,{id:e,title:n,price:r,description:i,ribbons:o,images:a,options:s,inputs:l,shippable:p,shippingThroughOptimX:d,shippingPrice:f,shippingWeight:m,shippingPolicy:j,returnPolicy:O,stripePriceId:v,productsTotal:x,productsSold:w,productsHold:S,inStock:N,deleted:L,published:I,archived:P,loadingSpinner:E}),Object(y.jsx)(U,{id:e,title:n,price:r,description:i,ribbons:o,images:a,options:s,inputs:l,shippable:p,shippingThroughOptimX:d,shippingPrice:f,shippingWeight:m,shippingPolicy:j,returnPolicy:O,stripePriceId:v,productsTotal:x,productsSold:w,productsHold:S,inStock:N,deleted:L,published:I,archived:P,loadingSpinner:E})]})})},J=Object(c.memo)(Y),$=n(85),K=n(310),Z=n(19);function tt(){tt=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},c=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,c=Object.create(o.prototype),a=new k(r||[]);return i(c,"_invoke",{value:N(t,n,a)}),c}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var d="suspendedStart",h="executing",b="completed",f={};function m(){}function j(){}function g(){}var y={};l(y,c,(function(){return this}));var O=Object.getPrototypeOf,v=O&&O(O(E([])));v&&v!==n&&r.call(v,c)&&(y=v);var x=g.prototype=m.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,o,c,a){var s=u(t[i],t,o);if("throw"!==s.type){var l=s.arg,p=l.value;return p&&"object"==typeof p&&r.call(p,"__await")?e.resolve(p.__await).then((function(t){n("next",t,c,a)}),(function(t){n("throw",t,c,a)})):e.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,a)}))}a(s.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function N(e,n,r){var i=d;return function(o,c){if(i===h)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw c;return{value:t,done:!0}}for(r.method=o,r.arg=c;;){var a=r.delegate;if(a){var s=L(a,r);if(s){if(s===f)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var l=u(e,n,r);if("normal"===l.type){if(i=r.done?b:"suspendedYield",l.arg===f)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(i=b,r.method="throw",r.arg=l.arg)}}}function L(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=u(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,f;var c=o.arg;return c?c.done?(n[e.resultName]=c.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,f):c:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function E(e){if(e||""===e){var n=e[c];if(n)return n.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(typeof e+" is not iterable")}return j.prototype=g,i(x,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:j,configurable:!0}),j.displayName=l(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var c=new S(p(t,n,r,i),o);return e.isGeneratorFunction(n)?c:c.next().then((function(t){return t.done?t.value:c.next()}))},w(x),l(x,s,"Generator"),l(x,c,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return a.type="throw",a.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=r.call(c,"catchLoc"),l=r.call(c,"finallyLoc");if(s&&l){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var c=o?o.completion:{};return c.type=t,c.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(c)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),f}},e}var et={id:"",title:"",price:0,description:"",ribbons:[],images:[],options:[],inputs:[],shippable:!1,shippingThroughOptimX:"none",shippingPrice:0,shippingWeight:0,shippingPolicy:"",returnPolicy:"",stripePriceId:"",productsTotal:0,productsSold:0,productsHold:0,inStock:!0,deleted:!0,published:!1,archived:!1,loadingSpinner:!0,secondaryLoadingSpinner:!0,error:!1};function nt(t,e){switch(e.type){case"fetchProductTitle":return Object(o.a)(Object(o.a)({},t),{},{title:e.title});case"fetchProduct":return Object(o.a)(Object(o.a)({},t),{},{id:e.id,title:e.title,price:e.price,description:e.description,ribbons:e.ribbons,images:e.images,options:e.options,inputs:e.inputs,shippable:e.shippable,shippingThroughOptimX:e.shippingThroughOptimX,shippingPrice:e.shippingPrice,shippingWeight:e.shippingWeight,shippingPolicy:e.shippingPolicy,returnPolicy:e.returnPolicy,stripePriceId:e.stripePriceId,productsTotal:e.total,productsSold:e.sold,productsHold:e.hold,inStock:e.inStock,deleted:e.deleted,published:e.published,archived:e.archived});case"setLoadingSpinner":return Object(o.a)(Object(o.a)({},t),{},{loadingSpinner:e.loadingSpinner});case"setSecondaryLoadingSpinner":return Object(o.a)(Object(o.a)({},t),{},{secondaryLoadingSpinner:e.loadingSpinner});case"setError":return Object(o.a)(Object(o.a)({},t),{},{error:!0});default:return et}}var rt=function(){var t=Object(l.i)(),e=Object(c.useReducer)(nt,et),n=Object(i.a)(e,2),o=n[0],a=n[1],h=Object(c.useContext)(u.b),b=h.globalState,f=h.setGlobalState,m=Object(s.b)().enqueueSnackbar;Object(c.useEffect)((function(){Object(Z.m)(b,o.title,t.productid)}),[b,o.title]),Object(c.useEffect)((function(){var e;!function(){(e=e||Object(r.a)(tt().mark((function e(){return tt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Object(p.d)(b.accountId)){e.next=9;break}return a({type:"setLoadingSpinner",loadingSpinner:!0}),a({type:"setSecondaryLoadingSpinner",loadingSpinner:!0}),e.next=5,Object(d.d)(b.accountId,t.productid,a,m);case 5:return a({type:"setLoadingSpinner",loadingSpinner:!1}),e.next=8,Object(d.c)(b.accountId,t.productid,a,f,m);case 8:a({type:"setSecondaryLoadingSpinner",loadingSpinner:!1});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}()}),[b.accountId,t.productid]);return o.error?Object(y.jsx)(l.a,{to:"/notfound"}):Object(y.jsxs)(y.Fragment,{children:[Object(p.f)(o.title)?Object(y.jsx)(y.Fragment,{children:Object(y.jsx)(K.a,{title:Object($.c)(o.title,b),description:Object($.a)("Check out this product - ".concat(o.title),b),keywords:Object($.b)("Store, Product, ".concat(o.title),b)}
2)}):null,Object(p.d)(b)&&Object(p.d)(b.websiteStyles)?Object(y.jsx)(J,{id:t.productid,title:o.title,price:o.price,description:o.description,ribbons:o.ribbons,images:o.images,options:o.options,inputs:o.inputs,shippable:o.shippable,shippingThroughOptimX:o.shippingThroughOptimX,shippingPrice:o.shippingPrice,shippingWeight:o.shippingWeight,shippingPolicy:o.shippingPolicy,returnPolicy:o.returnPolicy,stripePriceId:o.stripePriceId,productsTotal:o.productsTotal,productsSold:o.productsSold,productsHold:o.productsHold,inStock:o.inStock,deleted:o.deleted,published:o.published,archived:o.archived,loadingSpinner:o.loadingSpinner,secondaryLoadingSpinner:o.secondaryLoadingSpinner}):null]})};e.default=Object(c.memo)(rt)}}]); 3//# sourceMappingURL=21.e3b19732.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.