-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path905244bd661d9c37f415f4ff262f27be02c3ae83-6d584c10ad08a704d467.js
2 lines (2 loc) · 8.52 KB
/
905244bd661d9c37f415f4ff262f27be02c3ae83-6d584c10ad08a704d467.js
1
2
"use strict";(self.webpackChunkgatsby_starter_default=self.webpackChunkgatsby_starter_default||[]).push([[67],{3401:function(t,n,i){i.d(n,{Mi:function(){return I},Qh:function(){return M},UO:function(){return P},Xc:function(){return R},uf:function(){return Z}});var e=i(9439),a=i(4925),r=i(4942),o=i(7294),s=i(4567),l=i(9064),d=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],u=["unmountOnExit","in","className","transition","transitionEnd","delay"],c=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],v=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay","motionProps"],f=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"];function m(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,e)}return i}function y(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?m(Object(i),!0).forEach((function(n){(0,r.Z)(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var x=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.filter(Boolean).join(" ")};var E={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},p={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},g={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},h={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},O={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function b(t){var n;switch(null!==(n=null==t?void 0:t.direction)&&void 0!==n?n:"right"){case"right":default:return g;case"left":return p;case"bottom":return O;case"top":return h}}var w={enter:{duration:.2,ease:E.easeOut},exit:{duration:.1,ease:E.easeIn}},N=function(t,n){return y(y({},t),{},{delay:"number"==typeof n?n:null==n?void 0:n.enter})},j=function(t,n){return y(y({},t),{},{delay:"number"==typeof n?n:null==n?void 0:n.exit})},k={exit:{height:{duration:.2,ease:E.ease},opacity:{duration:.3,ease:E.ease}},enter:{height:{duration:.3,ease:E.ease},opacity:{duration:.4,ease:E.ease}}},S={exit:function(t){var n,i,e=t.animateOpacity,a=t.startingHeight,r=t.transition,o=t.transitionEnd,s=t.delay;return y(y({},e&&{opacity:(i=a,null!=i&&parseInt(i.toString(),10)>0?1:0)}),{},{height:a,transitionEnd:null==o?void 0:o.exit,transition:null!==(n=null==r?void 0:r.exit)&&void 0!==n?n:j(k.exit,s)})},enter:function(t){var n,i=t.animateOpacity,e=t.endingHeight,a=t.transition,r=t.transitionEnd,o=t.delay;return y(y({},i&&{opacity:1}),{},{height:e,transitionEnd:null==r?void 0:r.enter,transition:null!==(n=null==a?void 0:a.enter)&&void 0!==n?n:N(k.enter,o)})}},P=(0,o.forwardRef)((function(t,n){var i,r=t.in,u=t.unmountOnExit,c=t.animateOpacity,v=void 0===c||c,f=t.startingHeight,m=void 0===f?0:f,E=t.endingHeight,p=void 0===E?"auto":E,g=t.style,h=t.className,O=t.transition,b=t.transitionEnd,w=(0,a.Z)(t,d),N=(0,o.useState)(!1),j=(0,e.Z)(N,2),k=j[0],P=j[1];(0,o.useEffect)((function(){var t=setTimeout((function(){P(!0)}));return function(){return clearTimeout(t)}}),[]),i={condition:Boolean(m>0&&u),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"},i.message;var H=parseFloat(m.toString())>0,Z={startingHeight:m,endingHeight:p,animateOpacity:v,transition:k?O:{enter:{duration:0}},transitionEnd:{enter:null==b?void 0:b.enter,exit:u?null==b?void 0:b.exit:y(y({},null==b?void 0:b.exit),{},{display:H?"block":"none"})}},M=!u||r,X=r||u?"enter":"exit";return o.createElement(s.M,{initial:!1,custom:Z},M&&o.createElement(l.E.div,y(y({ref:n},w),{},{className:x("chakra-collapse",h),style:y({overflow:"hidden",display:"block"},g),custom:Z,variants:S,initial:!!u&&"exit",animate:X,exit:"exit"})))}));P.displayName="Collapse";var H={enter:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.transition,e=n.transitionEnd,a=n.delay;return{opacity:1,transition:null!==(t=null==i?void 0:i.enter)&&void 0!==t?t:N(w.enter,a),transitionEnd:null==e?void 0:e.enter}},exit:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.transition,e=n.transitionEnd,a=n.delay;return{opacity:0,transition:null!==(t=null==i?void 0:i.exit)&&void 0!==t?t:j(w.exit,a),transitionEnd:null==e?void 0:e.exit}}},Z={initial:"exit",animate:"enter",exit:"exit",variants:H};(0,o.forwardRef)((function(t,n){var i=t.unmountOnExit,e=t.in,r=t.className,d=t.transition,c=t.transitionEnd,v=t.delay,f=(0,a.Z)(t,u),m=e||i?"enter":"exit",E=!i||e&&i,p={transition:d,transitionEnd:c,delay:v};return o.createElement(s.M,{custom:p},E&&o.createElement(l.E.div,y(y({ref:n,className:x("chakra-fade",r),custom:p},Z),{},{animate:m},f)))})).displayName="Fade";var M={initial:"exit",animate:"enter",exit:"exit",variants:{exit:function(t){var n,i=t.reverse,e=t.initialScale,a=t.transition,r=t.transitionEnd,o=t.delay;return y(y({opacity:0},i?{scale:e,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:y({scale:e},null==r?void 0:r.exit)}),{},{transition:null!==(n=null==a?void 0:a.exit)&&void 0!==n?n:j(w.exit,o)})},enter:function(t){var n,i=t.transitionEnd,e=t.transition,a=t.delay;return{opacity:1,scale:1,transition:null!==(n=null==e?void 0:e.enter)&&void 0!==n?n:N(w.enter,a),transitionEnd:null==i?void 0:i.enter}}}};(0,o.forwardRef)((function(t,n){var i=t.unmountOnExit,e=t.in,r=t.reverse,d=void 0===r||r,u=t.initialScale,v=void 0===u?.95:u,f=t.className,m=t.transition,E=t.transitionEnd,p=t.delay,g=(0,a.Z)(t,c),h=!i||e&&i,O=e||i?"enter":"exit",b={initialScale:v,reverse:d,transition:m,transitionEnd:E,delay:p};return o.createElement(s.M,{custom:b},h&&o.createElement(l.E.div,y(y({ref:n,className:x("chakra-offset-slide",f)},M),{},{animate:O,custom:b},g)))})).displayName="ScaleFade";var X={exit:{duration:.15,ease:E.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},Y={exit:function(t){var n,i=t.direction,e=t.transition,a=t.transitionEnd,r=t.delay;return y(y({},b({direction:i}).exit),{},{transition:null!==(n=null==e?void 0:e.exit)&&void 0!==n?n:j(X.exit,r),transitionEnd:null==a?void 0:a.exit})},enter:function(t){var n,i=t.direction,e=t.transitionEnd,a=t.transition,r=t.delay;return y(y({},b({direction:i}).enter),{},{transition:null!==(n=null==a?void 0:a.enter)&&void 0!==n?n:N(X.enter,r),transitionEnd:null==e?void 0:e.enter})}},I=(0,o.forwardRef)((function(t,n){var i=t.direction,e=void 0===i?"right":i,r=t.style,d=t.unmountOnExit,u=t.in,c=t.className,f=t.transition,m=t.transitionEnd,E=t.delay,p=t.motionProps,g=(0,a.Z)(t,v),h=b({direction:e}),O=Object.assign({position:"fixed"},h.position,r),w=!d||u&&d,N=u||d?"enter":"exit",j={transitionEnd:m,transition:f,direction:e,delay:E};return o.createElement(s.M,{custom:j},w&&o.createElement(l.E.div,y(y({},g),{},{ref:n,initial:"exit",className:x("chakra-slide",c),animate:N,exit:"exit",custom:j,variants:Y,style:O},p)))}));I.displayName="Slide";var R={initial:"initial",animate:"enter",exit:"exit",variants:{initial:function(t){var n,i=t.offsetX,e=t.offsetY,a=t.transition,r=t.transitionEnd,o=t.delay;return{opacity:0,x:i,y:e,transition:null!==(n=null==a?void 0:a.exit)&&void 0!==n?n:j(w.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:function(t){var n,i=t.transition,e=t.transitionEnd,a=t.delay;return{opacity:1,x:0,y:0,transition:null!==(n=null==i?void 0:i.enter)&&void 0!==n?n:N(w.enter,a),transitionEnd:null==e?void 0:e.enter}},exit:function(t){var n,i=t.offsetY,e=t.offsetX,a=t.transition,r=t.transitionEnd,o=t.reverse,s=t.delay,l={x:e,y:i};return y({opacity:0,transition:null!==(n=null==a?void 0:a.exit)&&void 0!==n?n:j(w.exit,s)},o?y(y({},l),{},{transitionEnd:null==r?void 0:r.exit}):{transitionEnd:y(y({},l),null==r?void 0:r.exit)})}}};(0,o.forwardRef)((function(t,n){var i=t.unmountOnExit,e=t.in,r=t.reverse,d=void 0===r||r,u=t.className,c=t.offsetX,v=void 0===c?0:c,m=t.offsetY,E=void 0===m?8:m,p=t.transition,g=t.transitionEnd,h=t.delay,O=(0,a.Z)(t,f),b=!i||e&&i,w=e||i?"enter":"exit",N={offsetX:v,offsetY:E,reverse:d,transition:p,transitionEnd:g,delay:h};return o.createElement(s.M,{custom:N},b&&o.createElement(l.E.div,y(y({ref:n,className:x("chakra-offset-slide",u),custom:N},R),{},{animate:w},O)))})).displayName="SlideFade"}}]);
//# sourceMappingURL=905244bd661d9c37f415f4ff262f27be02c3ae83-6d584c10ad08a704d467.js.map