-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-projects-js-e6aac65cab4f6a61af4f.js.map
1 lines (1 loc) · 14.3 KB
/
component---src-pages-projects-js-e6aac65cab4f6a61af4f.js.map
1
{"version":3,"sources":["webpack:///./node_modules/gsap/EasePack.js","webpack:///./src/pages/projects.js","webpack:///./src/services/animations/prebuilt-group-animations.service.js"],"names":["gsap","_registerEase","_getGSAP","window","registerPlugin","_boolean","value","defaultValue","indexOf","_initCore","core","registerEase","p","eases","parseEase","createConfig","ease","ratio","y","config","SlowMo","ExpoScaleEase","RoughEase","EasePack","globals","_createSlowMo","linearRatio","power","yoyoMode","pow","Math","min","p1","p3","calcEnd","r","_createExpoScale","start","end","log","p2","exp","EasePoint","time","next","this","t","v","prev","c","gap","_createRoughEase","vars","points","x","bump","invX","obj","pnt","recent","taper","a","cnt","i","randomize","clamp","template","strength","random","sort","b","register","version","myProjects","name","description","Projects","props","projectRefs","componentDidMount","targets","tl","staggerFromTo","opacity","scale","Bounce","easeOut","staggerTo","boxShadow","render","Provider","appStorage","title","className","style","display","maxWidth","flexFlow","justifyContent","map","ref","element","flex","minWidth","textAlign","margin","padding","borderRadius","background","key","toString","href","React","Component"],"mappings":"sIAcIA,EAEAC,E,qEACAC,G,oBAAW,WACb,OAAOF,GAA0B,oBAAXG,SAA2BH,EAAOG,OAAOH,OAASA,EAAKI,gBAAkBJ,IAE7FK,EAAW,SAAkBC,EAAOC,GACtC,cAA2B,IAAVD,EAAwBC,EAAeD,MAAYA,EAAQ,IAAIE,QAAQ,WAEtFC,EAAY,SAAmBC,GAGjC,GAFAV,EAAOU,GAAQR,IAEL,CACRD,EAAgBD,EAAKW,aAErB,IAUIC,EAVAC,EAAQb,EAAKc,YACbC,EAAe,SAAsBC,GACvC,OAAO,SAAUC,GACf,IAAIC,EAAI,GAAMD,EAAQ,EAEtBD,EAAKG,OAAS,SAAUP,GACtB,OAAOI,EAAK,GAAK,EAAIJ,GAAKA,EAAIM,EAAIN,EAAI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C,MAAO,GACPpE,KAAMqE,IAAOC,SACX,CACFH,QAAS,EACTC,MAAO,EACPpE,KAAMqE,IAAOC,SACX,IAAK,SAASC,UAAUP,EAAS,GAAI,CACvC9D,EAAG,EACHsE,UAAW,4BACXxE,KAAMI,EAAOkE,SACX,IAAK,U,EDiCRG,OAAA,WAAU,IAAD,OACR,OACC,kBAAC,IAAeC,SAAhB,CAAyBpF,MAAQqF,KAChC,kBAAC,IAAD,KACC,kBAAC,IAAD,CAAKC,MAAM,aACX,wBAAIC,UAAU,SAAd,iBACA,6BACA,uDACA,6BAASC,MAAO,CACfC,QAAS,OACTC,SAAU,IACVC,SAAU,WACVC,eAAgB,gBAGfzB,EAAW0B,KAAI,SAACvF,EAAGmD,GAAJ,OACd,6BAASqC,IAAK,SAAAC,GACb,EAAKvB,YAAYf,GAAKsC,GACpBP,MAAO,CACTQ,KAAM,EACNC,SAAU,IACVC,UAAW,SACXC,OAAQ,EACRC,QAAS,WACTC,aAAc,EACdC,WAAY,uCACVC,IAAM9C,EAAE+C,YACV,4BACElG,EAAE8D,MAEJ,+BACE9D,EAAE+D,kBAMR,uBAAGmB,MAAO,CACTU,UAAW,QACXC,OAAQ,IAER,gDAEC,uBAAGM,KAAK,kCAAR,sB,GAtDgBC,IAAMC,WAkEdrC","file":"component---src-pages-projects-js-e6aac65cab4f6a61af4f.js","sourcesContent":["import \"core-js/modules/es6.array.sort\";\nimport \"core-js/modules/es6.array.index-of\";\n\n/*!\n * EasePack 3.0.4\n * https://greensock.com\n *\n * @license Copyright 2008-2019, GreenSock. All rights reserved.\n * Subject to the terms at https://greensock.com/standard-license or for\n * Club GreenSock members, the agreement issued with that membership.\n * @author: Jack Doyle, jack@greensock.com\n*/\n\n/* eslint-disable */\nvar gsap,\n _coreInitted,\n _registerEase,\n _getGSAP = function _getGSAP() {\n return gsap || typeof window !== \"undefined\" && (gsap = window.gsap) && gsap.registerPlugin && gsap;\n},\n _boolean = function _boolean(value, defaultValue) {\n return !!(typeof value === \"undefined\" ? defaultValue : value && !~(value + \"\").indexOf(\"false\"));\n},\n _initCore = function _initCore(core) {\n gsap = core || _getGSAP();\n\n if (gsap) {\n _registerEase = gsap.registerEase; //add weighted ease capabilities to standard eases so users can do \"power2.inOut(0.8)\" for example to push everything toward the \"out\", or (-0.8) to push it toward the \"in\" (0 is neutral)\n\n var eases = gsap.parseEase(),\n createConfig = function createConfig(ease) {\n return function (ratio) {\n var y = 0.5 + ratio / 2;\n\n ease.config = function (p) {\n return ease(2 * (1 - p) * p * y + p * p);\n };\n };\n },\n p;\n\n for (p in eases) {\n if (!eases[p].config) {\n createConfig(eases[p]);\n }\n }\n\n _registerEase(\"slow\", SlowMo);\n\n _registerEase(\"expoScale\", ExpoScaleEase);\n\n _registerEase(\"rough\", RoughEase);\n\n for (p in EasePack) {\n p !== \"version\" && gsap.core.globals(p, EasePack[p]);\n }\n\n _coreInitted = 1;\n }\n},\n _createSlowMo = function _createSlowMo(linearRatio, power, yoyoMode) {\n linearRatio = Math.min(1, linearRatio || 0.7);\n\n var pow = linearRatio < 1 ? power || power === 0 ? power : 0.7 : 0,\n p1 = (1 - linearRatio) / 2,\n p3 = p1 + linearRatio,\n calcEnd = _boolean(yoyoMode);\n\n return function (p) {\n var r = p + (0.5 - p) * pow;\n return p < p1 ? calcEnd ? 1 - (p = 1 - p / p1) * p : r - (p = 1 - p / p1) * p * p * p * r : p > p3 ? calcEnd ? p === 1 ? 0 : 1 - (p = (p - p3) / p1) * p : r + (p - r) * (p = (p - p3) / p1) * p * p * p : calcEnd ? 1 : r;\n };\n},\n _createExpoScale = function _createExpoScale(start, end, ease) {\n var p1 = Math.log(end / start),\n p2 = end - start;\n ease && (ease = gsap.parseEase(ease));\n return function (p) {\n return (start * Math.exp(p1 * (ease ? ease(p) : p)) - start) / p2;\n };\n},\n EasePoint = function EasePoint(time, value, next) {\n this.t = time;\n this.v = value;\n\n if (next) {\n this.next = next;\n next.prev = this;\n this.c = next.v - value;\n this.gap = next.t - time;\n }\n},\n _createRoughEase = function _createRoughEase(vars) {\n if (typeof vars !== \"object\") {\n //users may pass in via a string, like \"rough(30)\"\n vars = {\n points: +vars || 20\n };\n }\n\n var taper = vars.taper || \"none\",\n a = [],\n cnt = 0,\n points = (+vars.points || 20) | 0,\n i = points,\n randomize = _boolean(vars.randomize, true),\n clamp = _boolean(vars.clamp),\n template = gsap ? gsap.parseEase(vars.template) : 0,\n strength = (+vars.strength || 1) * 0.4,\n x,\n y,\n bump,\n invX,\n obj,\n pnt,\n recent;\n\n while (--i > -1) {\n x = randomize ? Math.random() : 1 / points * i;\n y = template ? template(x) : x;\n\n if (taper === \"none\") {\n bump = strength;\n } else if (taper === \"out\") {\n invX = 1 - x;\n bump = invX * invX * strength;\n } else if (taper === \"in\") {\n bump = x * x * strength;\n } else if (x < 0.5) {\n //\"both\" (start)\n invX = x * 2;\n bump = invX * invX * 0.5 * strength;\n } else {\n //\"both\" (end)\n invX = (1 - x) * 2;\n bump = invX * invX * 0.5 * strength;\n }\n\n if (randomize) {\n y += Math.random() * bump - bump * 0.5;\n } else if (i % 2) {\n y += bump * 0.5;\n } else {\n y -= bump * 0.5;\n }\n\n if (clamp) {\n if (y > 1) {\n y = 1;\n } else if (y < 0) {\n y = 0;\n }\n }\n\n a[cnt++] = {\n x: x,\n y: y\n };\n }\n\n a.sort(function (a, b) {\n return a.x - b.x;\n });\n pnt = new EasePoint(1, 1, null);\n i = points;\n\n while (i--) {\n obj = a[i];\n pnt = new EasePoint(obj.x, obj.y, pnt);\n }\n\n recent = new EasePoint(0, 0, pnt.t ? pnt : pnt.next);\n return function (p) {\n var pnt = recent;\n\n if (p > pnt.t) {\n while (pnt.next && p >= pnt.t) {\n pnt = pnt.next;\n }\n\n pnt = pnt.prev;\n } else {\n while (pnt.prev && p <= pnt.t) {\n pnt = pnt.prev;\n }\n }\n\n recent = pnt;\n return pnt.v + (p - pnt.t) / pnt.gap * pnt.c;\n };\n};\n\nexport var SlowMo = _createSlowMo(0.7);\nSlowMo.ease = SlowMo; //for backward compatibility\n\nSlowMo.config = _createSlowMo;\nexport var ExpoScaleEase = _createExpoScale(1, 2);\nExpoScaleEase.config = _createExpoScale;\nexport var RoughEase = _createRoughEase();\nRoughEase.ease = RoughEase; //for backward compatibility\n\nRoughEase.config = _createRoughEase;\nexport var EasePack = {\n SlowMo: SlowMo,\n RoughEase: RoughEase,\n ExpoScaleEase: ExpoScaleEase\n};\n\nfor (var p in EasePack) {\n EasePack[p].register = _initCore;\n EasePack[p].version = \"3.0.4\";\n}\n\n_getGSAP() && gsap.registerPlugin(SlowMo);\nexport { EasePack as default };","import React from 'react';\nimport Layout from 'components/layout';\nimport SEO from 'components/seo';\n\nimport { popIn } from 'services/animations/prebuilt-group-animations.service'\nimport { StorageContext, appStorage } from 'contexts/storage/storage.context';\n\nconst myProjects = [{\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}, {\n\tname: 'Watermalon',\n\tdescription: 'lorem ipsum dolor sit amet.',\n}]\n\nclass Projects extends React.Component {\n\n\tconstructor(props) {\n\t\tsuper(props)\n\t\tthis.projectRefs = []\n\t}\n\n\tcomponentDidMount() {\n\t\tpopIn(this.projectRefs)\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<StorageContext.Provider value={ appStorage }>\n\t\t\t\t<Layout>\n\t\t\t\t\t<SEO title=\"Projects\" />\n\t\t\t\t\t<h1 className=\"title\">Meus Projetos</h1>\n\t\t\t\t\t<hr/>\n\t\t\t\t\t<p>Alguns projetos pessoais</p>\n\t\t\t\t\t<section style={{\n\t\t\t\t\t\tdisplay: 'flex',\n\t\t\t\t\t\tmaxWidth: 920,\n\t\t\t\t\t\tflexFlow: 'row wrap',\n\t\t\t\t\t\tjustifyContent: 'flex-center',\n\t\t\t\t\t}}>\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmyProjects.map((p, i) => (\n\t\t\t\t\t\t\t\t<article ref={element => {\n\t\t\t\t\t\t\t\t\tthis.projectRefs[i] = element\n\t\t\t\t\t\t\t\t}} style={{\n\t\t\t\t\t\t\t\t\tflex: 2,\n\t\t\t\t\t\t\t\t\tminWidth: 250,\n\t\t\t\t\t\t\t\t\ttextAlign: \"center\",\n\t\t\t\t\t\t\t\t\tmargin: 8,\n\t\t\t\t\t\t\t\t\tpadding: '16px 2px',\n\t\t\t\t\t\t\t\t\tborderRadius: 8,\n\t\t\t\t\t\t\t\t\tbackground: 'rgba(var(--color-primary-rgb), .05)'\n\t\t\t\t\t\t\t\t}} key={ i.toString() }>\n\t\t\t\t\t\t\t\t\t<h4>\n\t\t\t\t\t\t\t\t\t\t{p.name}\n\t\t\t\t\t\t\t\t\t</h4>\n\t\t\t\t\t\t\t\t\t<small>\n\t\t\t\t\t\t\t\t\t\t{p.description}\n\t\t\t\t\t\t\t\t\t</small>\n\t\t\t\t\t\t\t\t</article>\n\t\t\t\t\t\t\t))\n\t\t\t\t\t\t}\n\t\t\t\t\t</section>\n\t\t\t\t\t<p style={{\n\t\t\t\t\t\ttextAlign: \"right\",\n\t\t\t\t\t\tmargin: 8\n\t\t\t\t\t}}>\n\t\t\t\t\t\t<small>\n\t\t\t\t\t\t\tveja mais {` `}\n\t\t\t\t\t\t\t<a href=\"https://github.com/erickvieira\">\n\t\t\t\t\t\t\t\tno meu GitHub\n\t\t\t\t\t</a>\n\t\t\t\t\t\t</small>\n\t\t\t\t\t</p>\n\t\t\t\t</Layout>\n\t\t\t</StorageContext.Provider>\n\t\t)\n\t}\n\n}\n\nexport default Projects","import { tl } from './animation.service'\nimport { Bounce, SlowMo } from 'gsap/all'\n\nexport function popIn(targets) {\n\ttl().staggerFromTo(targets, .2, {\n\t\ty: 5,\n\t\topacity: 0,\n\t\tscale: 0.5,\n\t\tease: Bounce.easeOut,\n\t}, {\n\t\topacity: 1,\n\t\tscale: 1,\n\t\tease: Bounce.easeOut,\n\t}, .05, 'step1').staggerTo(targets, .1, {\n\t\ty: 0,\n\t\tboxShadow: '0 4px 8px rgba(0,0,0,0.2)',\n\t\tease: SlowMo.easeOut\n\t}, .02, 'step2')\n}"],"sourceRoot":""}