(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9939],{28201:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"}),"AccountCircle");t.Z=s},11736:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M15 2c-2.71 0-5.05 1.54-6.22 3.78-1.28.67-2.34 1.72-3 3C3.54 9.95 2 12.29 2 15c0 3.87 3.13 7 7 7 2.71 0 5.05-1.54 6.22-3.78 1.28-.67 2.34-1.72 3-3C20.46 14.05 22 11.71 22 9c0-3.87-3.13-7-7-7zM9 20c-2.76 0-5-2.24-5-5 0-1.12.37-2.16 1-3 0 3.87 3.13 7 7 7-.84.63-1.88 1-3 1zm3-3c-2.76 0-5-2.24-5-5 0-1.12.37-2.16 1-3 0 3.86 3.13 6.99 7 7-.84.63-1.88 1-3 1zm4.7-3.3c-.53.19-1.1.3-1.7.3-2.76 0-5-2.24-5-5 0-.6.11-1.17.3-1.7.53-.19 1.1-.3 1.7-.3 2.76 0 5 2.24 5 5 0 .6-.11 1.17-.3 1.7zM19 12c0-3.86-3.13-6.99-7-7 .84-.63 1.87-1 3-1 2.76 0 5 2.24 5 5 0 1.12-.37 2.16-1 3z"}),"Animation");t.Z=s},27036:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=s},50594:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.Z=s},37105:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"}),"Diamond");t.Z=s},17696:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7zm11.77 8.27L13 19.54l-4.27-4.27C8.28 14.81 8 14.19 8 13.5c0-1.38 1.12-2.5 2.5-2.5.69 0 1.32.28 1.77.74l.73.72.73-.73c.45-.45 1.08-.73 1.77-.73 1.38 0 2.5 1.12 2.5 2.5 0 .69-.28 1.32-.73 1.77z"}),"Loyalty");t.Z=s},97540:function(e,t,r){"use strict";var i=r(64836);t.Z=void 0;var n=i(r(64938)),o=r(85893),s=(0,n.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57zM12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zM9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59zM4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59zm10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58z"}),"Support");t.Z=s},13882:function(e,t,r){"use strict";function requiredArgs(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return requiredArgs}})},83946:function(e,t,r){"use strict";function toInteger(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{Z:function(){return toInteger}})},77349:function(e,t,r){"use strict";r.d(t,{Z:function(){return addDays}});var i=r(83946),n=r(19013),o=r(13882);function addDays(e,t){(0,o.Z)(2,arguments);var r=(0,n.Z)(e),s=(0,i.Z)(t);return isNaN(s)?new Date(NaN):(s&&r.setDate(r.getDate()+s),r)}},11640:function(e,t,r){"use strict";r.d(t,{Z:function(){return addMonths}});var i=r(83946),n=r(19013),o=r(13882);function addMonths(e,t){(0,o.Z)(2,arguments);var r=(0,n.Z)(e),s=(0,i.Z)(t);if(isNaN(s))return new Date(NaN);if(!s)return r;var a=r.getDate(),l=new Date(r.getTime());return(l.setMonth(r.getMonth()+s+1,0),a>=l.getDate())?l:(r.setFullYear(l.getFullYear(),l.getMonth(),a),r)}},29422:function(e,t,r){"use strict";r.d(t,{Z:function(){return add}});var i=r(71002),n=r(77349),o=r(11640),s=r(19013),a=r(13882),l=r(83946);function add(e,t){if((0,a.Z)(2,arguments),!t||"object"!==(0,i.Z)(t))return new Date(NaN);var r=t.years?(0,l.Z)(t.years):0,c=t.months?(0,l.Z)(t.months):0,d=t.weeks?(0,l.Z)(t.weeks):0,u=t.days?(0,l.Z)(t.days):0,g=t.hours?(0,l.Z)(t.hours):0,m=t.minutes?(0,l.Z)(t.minutes):0,p=t.seconds?(0,l.Z)(t.seconds):0,h=(0,s.Z)(e),f=c||r?(0,o.Z)(h,c+12*r):h,y=u||d?(0,n.Z)(f,u+7*d):f;return new Date(y.getTime()+1e3*(p+60*(m+60*g)))}},19013:function(e,t,r){"use strict";r.d(t,{Z:function(){return toDate}});var i=r(71002),n=r(13882);function toDate(e){(0,n.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.Z)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},2691:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pricing",function(){return r(25086)}])},25086:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return PricingPage}});var i=r(85893),n=r(67294),o=r(7243),s=r(44012),a=r(26447),l=r(23972),c=r(11163),d=r(90948),u=r(98102),g=r(2734),m=r(13614),p=r(37858),h=r(75921),f=r(21987),y=r(58439),Z=r(69397),x=r(27036),v=r(50594),j=r(28201),b=r(37105),C=r(11736),w=r(17696),S=r(97540);let N=[{icon:(0,i.jsx)(j.Z,{}),messageId:"CreateAndShareProfile",freeTier:!0,skellyBones:!0},{icon:(0,i.jsx)(b.Z,{}),messageId:"UniqueCustomizedId",freeTier:!0,skellyBones:!0},{icon:(0,i.jsx)(w.Z,{}),messageId:"SpecialBonesBadge",freeTier:!1,skellyBones:!0},{icon:(0,i.jsx)(C.Z,{}),messageId:"AnimatedAvatarAndBackground",freeTier:!1,skellyBones:!0},{icon:(0,i.jsx)(S.Z,{}),messageId:"PrioritySupport",freeTier:!1,skellyBones:!0}];var D=r(9103),P=r(21395),k=r(93862);let A=(0,d.ZP)(u.Z)({width:"6rem",padding:"1.5rem 0.5rem 1rem 0.5rem",textAlign:"center"});function Comparison(){let e=(0,g.Z)(),t=(0,c.useRouter)(),r=(0,D.C)(e=>e.account.friendId),{status:o}=n.useContext(P.DN);return(0,i.jsxs)(m.Z,{style:{marginTop:"1rem",marginLeft:"auto",marginRight:"auto",width:"fit-content",borderCollapse:"unset"},children:[(0,i.jsx)(p.Z,{children:(0,i.jsxs)(h.Z,{children:[(0,i.jsx)(u.Z,{}),(0,i.jsx)(A,{children:(0,i.jsx)(l.Z,{variant:"subtitle1",children:(0,i.jsx)(s.Z,{id:"FreeTier"})})}),(0,i.jsxs)(A,{style:{position:"relative",borderRadius:"0.5rem 0.5rem 0 0",borderTop:"thin solid ".concat(e.palette.primary.main),borderLeft:"thin solid ".concat(e.palette.primary.main),borderRight:"thin solid ".concat(e.palette.primary.main)},children:[(0,i.jsx)(l.Z,{variant:"subtitle1",children:(0,i.jsx)(s.Z,{id:"Bones"})}),(0,i.jsx)("div",{style:{position:"absolute",top:"-0.7rem",left:0,width:"100%"},children:(0,i.jsx)(f.Z,{style:{marginLeft:"auto",marginRight:"auto",borderRadius:"0.25rem",padding:"0rem 0.3rem 0rem 0.3rem",width:"fit-content",backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},children:(0,i.jsx)(l.Z,{variant:"body1",children:(0,i.jsx)(s.Z,{id:"MostPopular"})})})})]})]})}),(0,i.jsxs)(y.Z,{children:[N.map((t,r)=>(0,i.jsxs)(h.Z,{style:{borderCollapse:"unset"},children:[(0,i.jsx)(u.Z,{style:{borderBottom:"none",verticalAlign:"top",padding:"".concat(0===r?"1rem":"0.5rem"," 0rem 0.5rem 0")},children:(0,i.jsxs)(a.Z,{direction:"row",gap:"0.5rem",style:{alignItems:"top"},children:[t.icon,(0,i.jsx)(l.Z,{variant:"body1",children:(0,i.jsx)(s.Z,{id:t.messageId})})]})}),(0,i.jsx)(u.Z,{style:{borderBottom:"none",verticalAlign:"top",padding:"".concat(0===r?"1rem":"0.5rem"," 0rem 0.5rem 0"),textAlign:"center"},children:!0===t.freeTier?(0,i.jsx)(x.Z,{}):(0,i.jsx)(v.Z,{style:{opacity:.3}})}),(0,i.jsx)(u.Z,{style:{verticalAlign:"top",borderLeft:"thin solid ".concat(e.palette.primary.main),borderRight:"thin solid ".concat(e.palette.primary.main),borderBottom:"none",padding:"".concat(0===r?"1rem":"0.5rem"," 0rem 0.5rem 0"),textAlign:"center"},children:!0===t.skellyBones?(0,i.jsx)(x.Z,{}):(0,i.jsx)(v.Z,{})})]},r)),(0,i.jsxs)(h.Z,{style:{borderCollapse:"unset"},children:[(0,i.jsx)(u.Z,{style:{borderBottom:"none"}}),(0,i.jsx)(u.Z,{style:{borderBottom:"none",verticalAlign:"top",padding:"0.5rem 0rem 0.5rem 0",textAlign:"center"},children:r?null:(0,i.jsx)("div",{style:{padding:"0 0.3rem 0 0.3rem",width:"100%",boxSizing:"border-box"},children:(0,i.jsx)(Z.Z,{color:"secondary",variant:"contained",onClick:()=>{t.push("/auth/".concat(k.D.SignUp))},style:{width:"100%"},children:(0,i.jsx)(l.Z,{variant:"body1",children:(0,i.jsx)(s.Z,{id:"SignUp"})})})})}),(0,i.jsx)(u.Z,{style:{verticalAlign:"top",borderLeft:"thin solid ".concat(e.palette.primary.main),borderRight:"thin solid ".concat(e.palette.primary.main),borderBottom:"thin solid ".concat(e.palette.primary.main),padding:"0.5rem 0rem 0.5rem 0",borderRadius:"0 0 0.5rem 0.5rem",textAlign:"center"},children:o===P.Zh.ACTIVE||o===P.Zh.CANCELLED?null:(0,i.jsx)("div",{style:{padding:"0 0.3rem 0 0.3rem",width:"100%",boxSizing:"border-box"},children:(0,i.jsx)(Z.Z,{color:"primary",variant:"contained",onClick:()=>{r?t.push("settings"):t.push("/auth/".concat(k.D.LogIn,"?subscribe"))},style:{width:"100%"},children:(0,i.jsx)(l.Z,{variant:"body1",children:(0,i.jsx)(s.Z,{id:"Subscribe"})})})})})]})]})]})}function PricingCard(e){let{title:t,price:r,benefits:n}=e,o=(0,g.Z)();return(0,i.jsx)(f.Z,{style:{padding:"1rem",width:"20rem",backgroundColor:o.palette.surfaceVariant.default,color:o.palette.surfaceVariant.contrastText,marginLeft:"auto",marginRight:"auto"},children:(0,i.jsxs)(a.Z,{direction:"column",gap:"1rem",children:[(0,i.jsx)(l.Z,{variant:"subtitle1",component:"div",style:{textAlign:"center"},children:(0,i.jsx)(s.Z,{id:t})}),(0,i.jsx)(l.Z,{variant:"body1",component:"div",style:{textAlign:"center"},children:(0,i.jsx)(s.Z,{id:"TierPricing",values:{price:r}})}),(n||[]).map(e=>(0,i.jsxs)(a.Z,{direction:"row",gap:"0.5rem",style:{alignItems:"center"},children:[e.icon,(0,i.jsx)(l.Z,{variant:"body1",children:(0,i.jsx)(s.Z,{id:e.messageId})})]},e.messageId))]})})}function PricingCards(){return(0,i.jsxs)(a.Z,{direction:"row",gap:"2rem",style:{flexWrap:"wrap",marginLeft:"auto",marginRight:"auto"},children:[(0,i.jsx)(PricingCard,{title:"FreeTier",price:0,benefits:N.filter(e=>!0===e.freeTier)}),(0,i.jsx)(PricingCard,{title:"Bones",price:4.99,benefits:N.filter(e=>!1===e.freeTier&&!0===e.skellyBones)})]})}function Pricing(){return(0,i.jsx)("div",{style:{width:"100%",maxWidth:1200,marginLeft:"auto",marginRight:"auto",boxSizing:"border-box",padding:"1rem",marginTop:"1rem",marginBottom:"2rem"},children:(0,i.jsxs)(a.Z,{direction:"column",gap:"2rem",children:[(0,i.jsx)(l.Z,{variant:"h3",style:{maxWidth:"40rem",textAlign:"center",marginLeft:"auto",marginRight:"auto"},children:(0,i.jsx)(s.Z,{id:"PricingTitle"})}),(0,i.jsx)("img",{src:"/img/illustrations/skelly_bones.svg",style:{width:"30rem",maxWidth:"100%",marginLeft:"auto",marginRight:"auto"}}),(0,i.jsx)(PricingCards,{}),(0,i.jsx)(P.ZP,{children:(0,i.jsx)(Comparison,{})})]})})}var L=r(66565);function PricingPage(){let{title:e,metaName:t,metaProperty:r}=(0,L.$)("/bones","Bones","Get the premium service Skelly bones","Skelly, Skelly.gg, Bones, Premium, Gaming, eSports",{image:"https://skelly.gg/img/linkPreview/skelly_bones.jpg"});return(0,i.jsx)(o.Z,{title:e,metaName:t,metaProperty:r,canonical:"https://skelly.gg/pricing",children:(0,i.jsx)(Pricing,{})})}},21395:function(e,t,r){"use strict";r.d(t,{DN:function(){return m},ZP:function(){return MySubscriptionsContextProvider},Zh:function(){return n}});var i,n,o=r(85893),s=r(67294),a=r(37887),l=r(44194),c=r(29422),d=r(9103),u=r(47669),g=r(13594);(i=n||(n={})).NONE="NONE",i.ACTIVE="ACTIVE",i.CANCELLED="CANCELLED",i.UNDEFINED="UNDEFINED";let m=s.createContext(void 0);function MySubscriptionsContextProvider(e){let{children:t}=e,r=(0,d.C)(e=>e.account.loginState);return r===u.zZ.LoggedIn?(0,o.jsx)(LoggedIn,{children:t}):(0,o.jsx)(LoggedOut,{children:t})}function LoggedIn(e){let{children:t}=e,{loading:r,error:i,data:n}=(0,a.a)(l.US),[d,u]=s.useState(void 0),[p,h]=s.useState(void 0),[f,y]=s.useState(void 0),[Z,x]=s.useState(void 0),[v,j]=s.useState(void 0),[b,C]=s.useState(void 0);return s.useEffect(()=>{if(!n||!n.getMyProfile){void 0!==d&&u(void 0);return}g.ZP.log("MySubscriptionsContext(): Subscriptions: ",n.getMyProfile.subscriptions),u(n.getMyProfile.subscriptions);let e=n.getMyProfile.subscriptions;if(Array.isArray(e)&&e.length>0){for(let t of e)if("bones"===t.type&&t.paypal){if("ACTIVE"===t.paypal.status){h("ACTIVE"),y(t.paypal.start_time),x(t.paypal.next_billing_time),j(void 0),C(t.paypal.subscriptionID);return}if("CANCELLED"===t.paypal.status&&void 0!==t.paypal.last_payment_time){let e=new Date,r=new Date(t.paypal.last_payment_time),i=(0,c.Z)(r,{months:1});if(console.log("now: ",e),console.log("lastPaymentTime: ",r),console.log("validUntil: ",i),console.log("typeof validUntil: ",typeof i),i>e){h("CANCELLED"),y(t.paypal.start_time),x(void 0),j(i.toISOString()),C(t.paypal.subscriptionID);return}}}}h("NONE"),y(void 0),x(void 0),j(void 0),C(void 0)},[n]),(0,o.jsx)(m.Provider,{value:{subscriptions:d,status:p,startTime:f,nextBilling:Z,validUntil:v,subscriptionID:b},children:t})}function LoggedOut(e){let{children:t}=e;return(0,o.jsx)(m.Provider,{value:{subscriptions:void 0,status:void 0,startTime:void 0,nextBilling:void 0,validUntil:void 0,subscriptionID:void 0},children:t})}},66565:function(e,t,r){"use strict";function getStandardSEO(e,t,r,i,n){let o="Skelly | ".concat(t),s="https://skelly.gg".concat(e),a=(null==n?void 0:n.image)||"https://skelly.gg/img/linkPreview/skelly_welcome_3.jpg",l={},c={};return l.description=r,l.keywords=i,c["og:url"]=s,c["og:type"]="website",c["og:title"]=o,c["og:description"]=r,c["og:image"]=a,l["twitter:card"]=a,c["twitter:domain"]="skelly.gg",c["twitter:url"]=s,l["twitter:title"]=o,l["twitter:description"]=r,l["twitter:image"]=a,{title:o,metaName:l,metaProperty:c}}r.d(t,{$:function(){return getStandardSEO}})}},function(e){e.O(0,[5208,2680,5834,7139,7243,9774,2888,179],function(){return e(e.s=2691)}),_N_E=e.O()}]);