text: (window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"0Wfq":function(e,t,r){var n;n=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","‘":"\'","’":"\'","“":"\\"","”":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial"}'),t=JSON.parse('{"vi":{"Đ":"D","đ":"d"}}');function r(r,n){if("string"!=typeof r)throw new Error("slugify: string argument expected");var o=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},i=void 0===n.replacement?"-":n.replacement,a=r.split("").reduce((function(t,r){return t+(o[r]||e[r]||r).replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"").trim().replace(new RegExp("[\\s"+i+"]+","g"),i);return n.lower&&(a=a.toLowerCase()),n.strict&&(a=a.replace(new RegExp("[^a-zA-Z0-9"+i+"]","g"),"").replace(new RegExp("[\\s"+i+"]+","g"),i)),a}return r.extend=function(t){for(var r in t)e[r]=t[r]},r},e.exports=n(),e.exports.default=n()},"0vI5":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("ERkP"),o=r.n(n),i=o.a.createContext({}),a=i.Provider},"1Fob":function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),o=new RegExp("(%[a-f0-9]{2})+","gi");function i(e,t){try{return decodeURIComponent(e.join(""))}catch(o){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],i(r),i(n))}function a(e){try{return decodeURIComponent(e)}catch(o){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=i(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},n=o.exec(e);n;){try{r[n[0]]=decodeURIComponent(n[0])}catch(t){var i=a(n[0]);i!==n[0]&&(r[n[0]]=i)}n=o.exec(e)}r["%C2"]="�";for(var c=Object.keys(r),u=0;u<c.length;u++){var s=c[u];e=e.replace(new RegExp(s,"g"),r[s])}return e}(e)}}},"3yYM":function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function c(e,t,r,n){var o=t&&t.prototype instanceof l?t:l,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return E()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=g(a,r);if(c){if(c===s)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===s)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}e.wrap=c;var s={};function l(){}function f(){}function p(){}var d={};d[o]=function(){return this};var h=Object.getPrototypeOf,y=h&&h(h(w([])));y&&y!==t&&r.call(y,o)&&(d=y);var v=p.prototype=l.prototype=Object.create(d);function b(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function m(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function g(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,g(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var n=u(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,s;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function w(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=v.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},b(m.prototype),m.prototype[i]=function(){return this},e.AsyncIterator=m,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new m(c(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(v),v[a]="Generator",v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=w,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,s):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),s},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),x(r),s}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),s}},e}(e.exports);try{regeneratorRuntime=n}catch(o){Function("r","regeneratorRuntime = r")(n)}},"5RP8":function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r("teAW"),o=r("l1C2"),i=r("ERkP"),a=r.n(i),c=r("aWzz"),u=r.n(c);function s(e){var t=e.children,r=e.as,o=void 0===r?"h1":r,i=Object(n.d)(e,["children","as"]);return a.a.createElement(o,i,t)}s.propTypes={as:u.a.oneOf(["h1","h2","h3","h4","h5","h6","span"])},s.__docgenInfo={description:"",methods:[],displayName:"BaseHeading",props:{as:{required:!1,tsType:{name:"union",raw:'"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "span"',elements:[{name:"literal",value:'"h1"'},{name:"literal",value:'"h2"'},{name:"literal",value:'"h3"'},{name:"literal",value:'"h4"'},{name:"literal",value:'"h5"'},{name:"literal",value:'"h6"'},{name:"literal",value:'"span"'}]},description:""}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/BaseHeading/BaseHeading.tsx"]={name:"BaseHeading",docgenInfo:s.__docgenInfo,path:"src/components/BaseHeading/BaseHeading.tsx"});var l=r("TDXc"),f=function(e){return{fontFamily:e.fonts.heading,margin:0,lineHeight:e.lineHeights.heading}},p=function(e,t){return function(r){return[{color:r.tones[t].text},"PRIMARY"===e&&{fontWeight:r.fontWeights.bold},"EMPHASIZED"===e&&{fontWeight:r.fontWeights.extraBold},"LIGHT"===e&&{fontWeight:100,textTransform:"uppercase"}]}};function d(e){var t=e.tone,r=void 0===t?"NEUTRAL":t,i=e.variant,a=void 0===i?"PRIMARY":i,c=e.as,u=void 0===c?"h2":c,d=e.customCss,h=Object(n.d)(e,["tone","variant","as","customCss"]);return Object(l.a)(d),Object(o.jsx)(s,Object(n.b)({as:u,css:function(e){return[f(e),p(a,r)(e),d]}},h))}d.__docgenInfo={description:"",methods:[],displayName:"Heading",props:{tone:{defaultValue:{value:"`NEUTRAL`",computed:!1},required:!1,tsType:{name:"HeadingTone"},description:""},variant:{defaultValue:{value:"`PRIMARY`",computed:!1},required:!1,tsType:{name:"HeadingVariant"},description:""},as:{defaultValue:{value:"`h2`",computed:!1},required:!1},customCss:{required:!1,tsType:{name:"Interpolation"},description:""}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/Heading/Heading.tsx"]={name:"Heading",docgenInfo:d.__docgenInfo,path:"src/components/Heading/Heading.tsx"})},"695J":function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},"8uyH":function(e,t,r){var n=r("dpio"),o=r("OekA"),i=r("S3pA"),a=r("wxYD");e.exports=function(e,t){return function(r,c){var u=a(r)?n:o,s=t?t():{};return u(r,e,i(c,2),s)}}},AYPV:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return u}));var n=r("ERkP"),o=r.n(n),i=r("G1Rd"),a=r("JBtm"),c=r.n(a);function u(e){var t=e.location,r=c.a.parse(t.search);return o.a.createElement(i.a,{recipe:r.name})}},Au29:function(e,t,r){"use strict";r.r(t),r.d(t,"MDXContext",(function(){return l})),r.d(t,"MDXProvider",(function(){return d})),r.d(t,"mdx",(function(){return v})),r.d(t,"useMDXComponents",(function(){return p})),r.d(t,"withMDXComponents",(function(){return f}));var n=r("ERkP"),o=r.n(n);function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var l=o.a.createContext({}),f=function(e){return function(t){var r=p(t.components);return o.a.createElement(e,a({},t,{components:r}))}},p=function(e){var t=o.a.useContext(l);return"function"==typeof e?e(t):u(u({},t),e)},d=function(e){var t=e.components,r=e.children,n=e.disableParentContext,i=p(t);return n&&(i=t),o.a.createElement(l.Provider,{value:i},r)},h={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},y=o.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,i=e.originalType,a=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),l=p(r),f=n,d=l["".concat(a,".").concat(f)]||l[f]||h[f]||i;return r?o.a.createElement(d,u(u({ref:t},c),{},{components:r})):o.a.createElement(d,u({ref:t},c))}));function v(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=r.length,a=new Array(i);a[0]=y;var c={};for(var u in t)hasOwnProperty.call(t,u)&&(c[u]=t[u]);c.originalType=e,c.mdxType="string"==typeof e?e:n,a[1]=c;for(var s=2;s<i;s++)a[s]=r[s];return o.a.createElement.apply(null,a)}return o.a.createElement.apply(null,r)}y.displayName="MDXCreateElement"},DSYg:function(e,t,r){"use strict";function n(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}r.d(t,"a",(function(){return n}))},G1Rd:function(e,t,r){"use strict";(function(e){var n,o,i,a,c=r("VtSi"),u=r.n(c),s=(r("3yYM"),r("QsI/")),l=r("Rj53"),f=r.n(l),p=r("ERkP"),d=r.n(p),h=r("oj0F"),y=r("eQpF"),v=r("0vI5"),b=r("oG6b"),m=r("cnhd"),g=r("HgYO"),O=r("HX+Y"),x=r.n(O),j=r("W6ZR"),w=r("5RP8"),E=r("yVhM"),R=r("QKw7"),A=r("aK7+"),S=r("PaNl"),P=r("K9ew"),k=!1,T=function(){var e=Object(s.a)(u.a.mark((function e(){var t,r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x()(a+"/session");case 2:return t=e.sent,e.next=5,t.text();case 5:r=e.sent,n?r!==n&&window.location.reload():n=r;case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){return Object(h.c)("span",null,"Loading...")};function _(e){var t=e.children;return Object(h.c)("div",{sx:{maxWidth:1e3,margin:"0 auto"}},t)}var C=function(e){return"done"===e.value?"Refresh State":"Install Recipe"},N=function e(t){var r=t.resourceChildren,n=t.state;return r&&r.length?Object(h.c)(y.b.ul,{sx:{ml:0,mt:0,pl:0}},r.map((function(t){return Object(h.c)(y.b.li,{sx:{listStyleType:"none"},key:t._uuid},Object(h.c)(P.a,{state:n,resource:t}),Object(h.c)(e,{state:n,resourceChildren:t.resourceChildren}))}))):null},D=function(t){var r=t.recipe,n=Object(p.useState)(null),c=n[0],l=n[1];d.a.useEffect((function(){x()("/___services").then((function(e){return e.json()})).then((function(e){if(e.metadata&&(i=e.metadata.sitePath),e.recipesgraphqlserver){a="http://localhost:"+e.recipesgraphqlserver.port;var t=Object(m.a)({port:e.recipesgraphqlserver.port,connectionCallback:(n=Object(s.a)(u.a.mark((function e(){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:T(),U(r);case 2:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})});l(t)}var n}))}),[]);var O=Object(g.d)({query:"\n          subscription {\n            operation {\n              state\n            }\n          }\n        "},(function(e,t){return t}))[0],D=Object(g.b)("\n        mutation ($recipePath: String!, $projectRoot: String!) {\n          createOperation(recipePath: $recipePath, projectRoot: $projectRoot)\n        }\n      "),F=(D[0],D[1]),B=Object(g.b)("\n        mutation($event: String!, $input: String) {\n          sendEvent(event: $event, input: $input)\n        }\n      "),L=(B[0],B[1]);o=function(e){var t=e.event,r=e.input;L(r?{event:t,input:JSON.stringify(r)}:{event:t})};var U=function(){var e=Object(s.a)(u.a.mark((function e(t){return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(S.b)("createOperation"),k){e.next=12;break}return k=!0,e.prev=3,e.next=6,F({recipePath:t,projectRoot:i});case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(3),Object(S.b)("error creating operation",e.t0),k=!1;case 12:T();case 13:case"end":return e.stop()}}),e,null,[[3,8]])})));return function(t){return e.apply(this,arguments)}}();var M=O.data&&JSON.parse(O.data.operation.state);if(!M)return Object(h.c)(_,null,Object(h.c)(I,null)," ",r);var H="done"===M.value;"doneError"===M.value&&console.log("doneError state",M),Object(S.b)("state",M),Object(S.b)("plan",M.context.plan),Object(S.b)("stepResources",M.context.stepResources),H&&e.nextTick((function(){try{c.close()}catch(e){}Object(S.b)(r+" finished successfully")}));var Y=M.context,G=Y.plan,q=Y.stepsAsJS,J=Y.exports,W=f()(G,(function(e){return e.resourceName}));return Object(h.c)(d.a.Fragment,null,Object(h.c)(y.b.p,null," "),Object(h.c)(b.a,{value:(null==G?void 0:G.filter((function(e){var t;return null===(t=e.resourceDefinitions)||void 0===t?void 0:t._key})))||[]},Object(h.c)(v.a,{value:{}},Object(h.c)(_,null,Object(h.c)(R.a,null),Object(h.c)("div",{sx:{mb:8,display:"flex",alignItems:"flex-start",justifyContent:"space-between"}},Object(h.c)("div",{sx:{"*:last-child":{mb:0}}},Object(h.c)(E.StepRenderer,{components:S.a,scope:{sendEvent:o},remarkPlugins:[S.d]},(null==J?void 0:J.join("\n"))+"\n\n"+q[0])),Object(h.c)(j.a,{onClick:function(){return o({event:"CONTINUE"})},loading:"applyingPlan"===M.value,loadingLabel:"Installing",sx:{width:"140px",ml:6}},Object(h.c)(C,{state:M}))),Object(h.c)("div",{sx:{marginBottom:14}},Object(h.c)(w.a,{sx:{marginBottom:6}},null==G?void 0:G.length," ","Changes"),Object.entries(W).map((function(e){var t=e[0],r=e[1];return Object(h.c)("div",{key:"key-"+t},Object(h.c)(w.a,{as:"h3",sx:{mb:3,fontWeight:400,fontStyle:"italic"}},t),Object(h.c)(y.b.ul,{sx:{pl:3,marginTop:0,mb:5}},r.filter((function(e){return"Input"!==e.resourceName})).map((function(e,r){return Object(h.c)(y.b.li,{sx:{listStyleType:"none"},key:t+"-plan-"+r},Object(h.c)(P.a,{state:M,resource:e}),Object(h.c)(N,{state:M,resourceChildren:e.resourceChildren}))}))))}))),Object(h.c)(w.a,{sx:{mb:6}},q.length-1," Steps"),q.slice(1).map((function(e,t){return Object(h.c)(A.a,{sendEvent:o,state:M,step:e,key:"step-"+t,i:t})}))))))};t.a=function(e){var t=e.recipe;return Object(h.c)(D,{recipe:t})}}).call(this,r("F63i"))},"HX+Y":function(e,t){var r=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!=typeof self?self:this);!function(e){!function(t){var r="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&c.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function y(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=d(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,r,n=d(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=h(t),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=s(e),t=l(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},p.prototype.delete=function(e){delete this.map[s(e)]},p.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},p.prototype.set=function(e,t){this.map[s(e)]=l(t)},p.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),f(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),f(e)},n&&(p.prototype[Symbol.iterator]=p.prototype.entries);var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var r,n,o=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),m.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),t}function x(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},b.call(g.prototype),b.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var j=[301,302,303,307,308];x.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new x(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(E){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,r){return new Promise((function(n,i){var a=new g(e,r);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function u(){c.abort()}c.onload=function(){var e,t,r={status:c.status,statusText:c.statusText,headers:(e=c.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};r.url="responseURL"in c?c.responseURL:r.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;n(new x(o,r))},c.onerror=function(){i(new TypeError("Network request failed"))},c.ontimeout=function(){i(new TypeError("Network request failed"))},c.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},c.open(a.method,a.url,!0),"include"===a.credentials?c.withCredentials=!0:"omit"===a.credentials&&(c.withCredentials=!1),"responseType"in c&&o&&(c.responseType="blob"),a.headers.forEach((function(e,t){c.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),c.onreadystatechange=function(){4===c.readyState&&a.signal.removeEventListener("abort",u)}),c.send(void 0===a._bodyInit?null:a._bodyInit)}))}w.polyfill=!0,e.fetch||(e.fetch=w,e.Headers=p,e.Request=g,e.Response=x),t.Headers=p,t.Request=g,t.Response=x,t.fetch=w}({})}(r),delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t},JBtm:function(e,t,r){"use strict";var n=r("ddV6"),o=r("RhWx");function i(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c=r("uotq"),u=r("1Fob"),s=r("p/97");function l(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function f(e,t){return t.encode?t.strict?c(e):encodeURIComponent(e):e}function p(e,t){return t.decode?u(e):e}function d(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){var t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function v(e,t){l((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":case"separator":return function(t,r,n){var o="string"==typeof r&&r.split("").indexOf(e.arrayFormatSeparator)>-1?r.split(e.arrayFormatSeparator).map((function(t){return p(t,e)})):null===r?r:p(r,e);n[t]=o};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var a,c=i(e.split("&"));try{for(c.s();!(a=c.n()).done;){var u=a.value,f=s(t.decode?u.replace(/\+/g," "):u,"="),d=n(f,2),h=d[0],v=d[1];v=void 0===v?null:["comma","separator"].includes(t.arrayFormat)?v:p(v,t),r(p(h,t),v,o)}}catch(E){c.e(E)}finally{c.f()}for(var b=0,m=Object.keys(o);b<m.length;b++){var g=m[b],O=o[g];if("object"==typeof O&&null!==O)for(var x=0,j=Object.keys(O);x<j.length;x++){var w=j[x];O[w]=y(O[w],t)}else o[g]=y(O,t)}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce((function(e,t){var r=o[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(r):e[t]=r,e}),Object.create(null))}t.extract=h,t.parse=v,t.stringify=function(e,t){if(!e)return"";l((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);for(var r=function(r){return t.skipNull&&null==e[r]||t.skipEmptyString&&""===e[r]},n=function(e){switch(e.arrayFormat){case"index":return function(t){return function(r,n){var i=r.length;return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[[f(t,e),"[",i,"]"].join("")]:[[f(t,e),"[",f(i,e),"]=",f(n,e)].join("")])}};case"bracket":return function(t){return function(r,n){return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[[f(t,e),"[]"].join("")]:[[f(t,e),"[]=",f(n,e)].join("")])}};case"comma":case"separator":return function(t){return function(r,n){return null==n||0===n.length?r:0===r.length?[[f(t,e),"=",f(n,e)].join("")]:[[r,f(n,e)].join(e.arrayFormatSeparator)]}};default:return function(t){return function(r,n){return void 0===n||e.skipNull&&null===n||e.skipEmptyString&&""===n?r:[].concat(o(r),null===n?[f(t,e)]:[[f(t,e),"=",f(n,e)].join("")])}}}}(t),i={},a=0,c=Object.keys(e);a<c.length;a++){var u=c[a];r(u)||(i[u]=e[u])}var s=Object.keys(i);return!1!==t.sort&&s.sort(t.sort),s.map((function(r){var o=e[r];return void 0===o?"":null===o?f(r,t):Array.isArray(o)?o.reduce(n(r),[]).join("&"):f(r,t)+"="+f(o,t)})).filter((function(e){return e.length>0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var r=s(e,"#"),o=n(r,2),i=o[0],a=o[1];return Object.assign({url:i.split("?")[0]||"",query:v(h(e),t)},t&&t.parseFragmentIdentifier&&a?{fragmentIdentifier:p(a,t)}:{})},t.stringifyUrl=function(e,r){r=Object.assign({encode:!0,strict:!0},r);var n=d(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query),c=t.stringify(a,r);c&&(c="?".concat(c));var u=function(e){var t="",r=e.indexOf("#");return-1!==r&&(t=e.slice(r)),t}(e.url);return e.fragmentIdentifier&&(u="#".concat(f(e.fragmentIdentifier,r))),"".concat(n).concat(c).concat(u)}},K9ew:function(e,t,r){"use strict";var n=r("ERkP"),o=r.n(n),i=r("ilhn"),a=r("l1C2"),c=r("teAW"),u=r("UzlY");function s(e){return o.a.createElement(u.a,Object(c.b)({},e,{iconName:"SuccessIcon",applyColorToStroke:!1}),o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.5228-4.4772 10-10 10-5.52285 0-10-4.4772-10-10C2 6.47715 6.47715 2 12 2c5.5228 0 10 4.47715 10 10zm-11.3557 4.2175c-.2986-.0436-.5802-.2059-.76709-.4763l-2.48775-3.3963c-.25012-.362-.18368-.8548.15337-1.1376.33705-.2829.83396-.2627 1.14701.0465l1.76846 1.8456c.1645.1481.3187.207.5228.0394l4.7666-5.19716c.2935-.31996.7868-.35219 1.1194-.07311.3326.27907.3866.77052.1224 1.11509L11.788 15.7688c-.2786.3633-.724.5199-1.1437.4487z"}))}s.__docgenInfo={description:"",methods:[],displayName:"SuccessIcon"},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/icons/SuccessIcon.tsx"]={name:"SuccessIcon",docgenInfo:s.__docgenInfo,path:"src/components/icons/SuccessIcon.tsx"});var l=s,f=r("swQ7"),p=r("PaNl"),d=r("oj0F");function h(){var e,t,r=(e=["\n    0% {\n      transform: rotate(0);\n    }\n    100% {\n      transform: rotate(360deg);\n    }\n  "],t||(t=e.slice(0)),e.raw=t,e);return h=function(){return r},r}t.a=function(e){var t=e.state,r=e.resource,n=Object(d.c)(i.c,{sx:{height:"10px",width:"15px",display:"inline-block"}}),c=r.describe;if("applyingPlan"===t.value&&r.isDone)n=Object(d.c)(l,null);else if("applyingPlan"===t.value){var u=Object(a.keyframes)(h());n=Object(d.c)(i.f,{sx:{display:"inline-block",animation:u+" 1s linear infinite",height:"15px",width:"15px",top:"3px",position:"relative"}}),c=r.describe}else"done"===t.value&&(n=Object(d.c)(l,{height:"15px",width:"15px"}),c=r._message);return Object(d.c)(o.a.Fragment,null,n," ",Object(d.c)(f.a,{href:"#"+Object(p.c)(r),onClick:function(e){e.preventDefault(),document.getElementById(e.currentTarget.hash.slice(1)).scrollIntoView({behavior:"smooth",block:"start"})}},c))}},OekA:function(e,t,r){var n=r("Q4oW");e.exports=function(e,t,r,o){return n(e,(function(e,n,i){t(o,e,r(e),i)})),o}},PaNl:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"c",(function(){return f})),r.d(t,"b",(function(){return p}));var n=r("ERkP"),o=r.n(n),i=r("dpmo"),a=r.n(i),c=r("0Wfq"),u=r.n(c),s={Config:function(){return null},GatsbyPlugin:function(){return null},NPMPackageJson:function(){return null},NPMPackage:function(){return null},File:function(){return null},Input:function(){return null},Directory:function(){return null},GatsbyShadowFile:function(){return null},NPMScript:function(){return null},RecipeIntroduction:function(e){return o.a.createElement("div",null,e.children)},RecipeStep:function(e){return o.a.createElement("div",null,e.children)},ContentfulSpace:function(){return null},ContentfulEnvironment:function(){return null},ContentfulType:function(){return null}},l=function(){return function(e){return a()(e,"export",(function(){return!0})),e}},f=function(e){return e.describe||(e.describe=""),encodeURIComponent(e.resourceName+"-"+u()(e.describe))},p=function(e,t){console.log(e,t)}},QKw7:function(e,t,r){"use strict";var n=r("oj0F"),o=r("eQpF"),i=r("swQ7");t.a=function(){return Object(n.c)("div",{sx:{marginTop:8,marginBottom:8,background:function(e){return e.tones.BRAND.superLight},border:function(e){return"1px solid "+e.tones.BRAND.light},padding:4}},Object(n.c)(o.b.p,null,"Thank you for trying the experimental version of Gatsby Recipes! 🤗"),Object(n.c)(o.b.p,{sx:{margin:0}},"Please ask questions, share your recipes, report bugs, and subscribe for updates in our umbrella issue at"," ",Object(n.c)(i.a,{href:"https://github.com/gatsbyjs/gatsby/issues/22991"},"https://github.com/gatsbyjs/gatsby/issues/22991")))}},"QsI/":function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(s){return void r(s)}c.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,u,"next",e)}function u(e){n(a,o,i,c,u,"throw",e)}c(void 0)}))}}r.d(t,"a",(function(){return o}))},Rj53:function(e,t,r){var n=r("wC3K"),o=r("8uyH"),i=Object.prototype.hasOwnProperty,a=o((function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])}));e.exports=a},TDXc:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return i}));var n=r("DSYg");function o(e){void 0!==e&&Object(n.a)('Styling components via "customCss" prop is deprecated, please use Emotion "css" prop or pass a "className"')}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(n.a)("<".concat(e,'> and its subcomponents should be considered deprecated and replaced with "').concat(t?"useAriaFormGroupField":"useAriaFormField",'"'))}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(n.a)("\n<".concat(e,"> and its subcomponents should be considered deprecated and replaced with one of the following:\n  - <").concat(e,"Block> (or <").concat(e.substring(0,e.indexOf("Field")),'ConnectedField> in Formik forms)\n  - "').concat(t?"useAriaFormGroupField":"useAriaFormField",'" hook and a combination of styled form elements, such as <StyledInput>, <').concat(t?"FormLegend":"StyledLabel",">, <FormError>\n").trim())}},TcdR:function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},Ua7V:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}},V3Tn:function(e,t,r){"use strict";var n=r("yWCo");t.__esModule=!0,t.ResourceProvider=t.useResourceByUUID=t.useResource=t.useResourceContext=void 0;var o=n(r("ERkP")),i=o.default.createContext([]);t.useResourceContext=function(){return(0,o.useContext)(i)};t.useResource=function(e){return(0,o.useContext)(i).find((function(t){return t.resourceDefinitions._key===e}))||{}};t.useResourceByUUID=function(e){return(0,o.useContext)(i).find((function(t){return t._uuid===e}))};var a=i.Provider;t.ResourceProvider=a},VtSi:function(e,t,r){e.exports=r("3yYM")},YVhI:function(e,t,r){"use strict";var n=r("IGGJ");t.__esModule=!0,t.useProvider=void 0;n(r("ERkP"));t.useProvider=function(e){return{contentful:{accessToken:{}.CONTENTFUL_ACCESS_TOKEN}}[e]}},"aK7+":function(e,t,r){"use strict";var n=r("oj0F"),o=r("eQpF"),i=r("5RP8"),a=r("yVhM"),c=r("+wNj"),u=r("jM10"),s=r.n(u),l=r("bGM1"),f=Object(l.a)();s.a.setColors({red:f.tones.DANGER.medium.slice(1),green:f.tones.SUCCESS.medium.slice(1),yellow:f.tones.WARNING.medium.slice(1)});var p=function(e){var t,r=e.resourcePlan,i=Object(c.a)(e,["resourcePlan"]);return Object(n.c)(o.b.pre,Object.assign({},i,{sx:{background:function(e){return e.tones.BRAND.superLight},borderRadius:2,padding:4},dangerouslySetInnerHTML:{__html:s()((t=r.diff,t.replace(/</g,"&lt;")))}}))},d=function(e){var t=e.resourcePlan,r=Object(c.a)(e,["resourcePlan"]);return t.diff?"File"===t.resourceName?Object(n.c)("div",{sx:{background:function(e){return e.tones.BRAND.superLight},border:function(e){return"1px solid "+e.tones.BRAND.lighter},borderRadius:2}},Object(n.c)(i.a,{as:"h6",sx:{px:4,py:3,fontWeight:"normal",borderBottom:function(e){return"1px solid "+e.tones.BRAND.lighter}}},t.resourceDefinitions.path),Object(n.c)(p,{resourcePlan:t,sx:{borderTopLeftRadius:0,borderTopRightRadius:0}})):Object(n.c)(p,Object.assign({},r,{resourcePlan:t,sx:{border:function(e){return"1px solid "+e.tones.BRAND.lighter}}})):null},h=r("PaNl"),y=function e(t){var r,i=t.resourcePlan;t.isLastPlan;return Object(n.c)("div",{id:Object(h.c)(i),sx:{}},Object(n.c)("div",null,Object(n.c)(o.b.p,{sx:{mb:i.diff?6:0}},Object(n.c)(o.b.em,null,i.resourceName)," ","—"," ",i.describe)),Object(n.c)(d,{resourcePlan:i}),null==i||null===(r=i.resourceChildren)||void 0===r?void 0:r.map((function(t){return Object(n.c)(e,{key:t._uuid,resourcePlan:t})})))};t.a=function(e){var t,r,o,c=e.sendEvent,u=e.state,s=e.step,l=e.i,f=null===(t=u.context)||void 0===t||null===(r=t.plan)||void 0===r?void 0:r.filter((function(e){return parseInt(e._stepMetadata.step,10)===l+1}));return Object(n.c)("div",{key:"step-"+l,sx:{position:"relative",borderRadius:2,border:function(e){return"1px solid "+e.tones.BRAND.light},marginBottom:7}},Object(n.c)("div",{sx:{position:"absolute",backgroundColor:"white",color:function(e){return e.tones.BRAND.dark},right:"6px",top:"6px",border:function(e){return"1px solid "+e.tones.BRAND.light},borderRadius:9999,height:30,width:30,display:"flex",alignContent:"center",justifyContent:"center",lineHeight:"28px"}},l+1),Object(n.c)("div",{sx:{display:"flex","& > *":{marginY:0},borderTopLeftRadius:2,borderTopRightRadius:2,borderBottom:function(e){return"1px solid "+e.tones.BRAND.light},background:function(e){return e.tones.BRAND.lighter},padding:4}},Object(n.c)("div",{sx:{"p:last-child":{margin:0}}},Object(n.c)(a.StepRenderer,{key:"DOC",components:h.a,scope:{sendEvent:c},remarkPlugins:[h.d]},(null===(o=u.context.exports)||void 0===o?void 0:o.join("\n"))+"\n\n"+s))),(null==f?void 0:f.length)>0&&Object(n.c)("div",null,Object(n.c)("div",{sx:{padding:6}},Object(n.c)(i.a,{sx:{mb:4,mt:0,color:function(e){return e.tones.NEUTRAL.darker},fontWeight:500},as:"h3"},"Proposed changes"),f.map((function(e,t){return Object(n.c)(y,{key:"res-plan-"+t,resourcePlan:e,isLastPlan:t===f.length-1})})))))}},cd4M:function(e,t,r){"use strict";var n=r("yWCo"),o=r("IGGJ");t.__esModule=!0,t.InputProvider=t.useInput=t.useInputByKey=void 0;var i=o(r("97Jx")),a=n(r("ERkP")),c=a.default.createContext({}),u=function(e){var t=((0,a.useContext)(c)||{})[e];return null==t?void 0:t.value};t.useInputByKey=u;t.useInput=function(e){var t=e.type,r=void 0===t?"text":t,n=e.label,o=e.key,c=u(void 0===o?"123":o)||"",s=(0,a.useState)(c),l=s[0],f=s[1];return[function(e){return a.default.createElement("div",null,a.default.createElement("label",null,n),a.default.createElement("input",(0,i.default)({},e,{type:r,value:l,onChange:function(e){return f(e.target.value)}})))},l]};var s=c.Provider;t.InputProvider=s},ddV6:function(e,t,r){var n=r("qPgQ"),o=r("Ua7V"),i=r("peMk"),a=r("f2kJ");e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},dpio:function(e,t){e.exports=function(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}},dpmo:function(e,t,r){"use strict";var n=r("tTLS");e.exports=function(e,t,r){var o,i;r||(r=t,t={});return i=null==(i=t.cascade)||i,o=n(r),function e(t,r,n){var a,c,u,s,l;if(o(t,r,n))return null;if(!(a=t.children)||0===a.length)return t;s=0,c=a.length,u=-1;for(;++u<c;)(l=e(a[u],u,t))&&(a[s++]=l);if(i&&0===s)return null;return a.length=s,t}(e,null,null)}},f2kJ:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},gyOD:function(e,t,r){"use strict";var n=r("rDK1"),o=r("RhWx"),i=r("LdEA"),a=r("IGGJ");t.__esModule=!0,t.default=void 0;var c=a(r("ERkP")),u=r("Au29"),s=r("cd4M"),l=r("V3Tn"),f=r("YVhI");t.default=function(e){var t,r=e.children,a=e.scope,p=e.components,d=i(e,["children","scope","components"]),h=Object.assign({mdx:u.mdx,MDXProvider:u.MDXProvider,React:c.default},p,{components:p,props:d,useInput:s.useInput,useInputByKey:s.useInputByKey,useResource:l.useResource,useProvider:f.useProvider},a),y=Object.keys(h),v=Object.values(h);return n(Function,o(y).concat([(t=r,t+"\n\n  return React.createElement(MDXProvider, { components },\n    React.createElement(MDXContent, props)\n  );")])).apply(void 0,o(v))}},jM10:function(e,t,r){"use strict";e.exports=u;var n=/(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/,o={reset:["fff","000"],black:"000",red:"ff0000",green:"209805",yellow:"e8bf03",blue:"0000ff",magenta:"ff00ff",cyan:"00ffee",lightgrey:"f0f0f0",darkgrey:"888"},i={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"lightgrey"},a={1:"font-weight:bold",2:"opacity:0.5",3:"<i>",4:"<u>",8:"display:none",9:"<del>"},c={23:"</i>",24:"</u>",29:"</del>"};function u(e){if(!n.test(e))return e;var t=[],r=e.replace(/\033\[(\d+)*m/g,(function(e,r){var n=a[r];if(n)return~t.indexOf(r)?(t.pop(),"</span>"):(t.push(r),"<"===n[0]?n:'<span style="'+n+';">');var o=c[r];return o?(t.pop(),o):""})),o=t.length;return o>0&&(r+=Array(o+1).join("</span>")),r}function s(e){for(var t in a[0]="font-weight:normal;opacity:1;color:#"+e.reset[0]+";background:#"+e.reset[1],a[7]="color:#"+e.reset[1]+";background:#"+e.reset[0],a[90]="color:#"+e.darkgrey,i){var r=e[i[t]]||"000";a[t]="color:#"+r,t=parseInt(t),a[(t+10).toString()]="background:#"+r}}[0,21,22,27,28,39,49].forEach((function(e){c[e]="</span>"})),u.setColors=function(e){if("object"!=typeof e)throw new Error("`colors` parameter must be an Object.");var t={};for(var r in o){var n=e.hasOwnProperty(r)?e[r]:null;if(n){if("reset"===r){if("string"==typeof n&&(n=[n]),!Array.isArray(n)||0===n.length||n.some((function(e){return"string"!=typeof e})))throw new Error("The value of `"+r+"` property must be an Array and each item could only be a hex string, e.g.: FF0000");var i=o[r];n[0]||(n[0]=i[0]),1!==n.length&&n[1]||(n=[n[0]]).push(i[1]),n=n.slice(0,2)}else if("string"!=typeof n)throw new Error("The value of `"+r+"` property must be a hex string, e.g.: FF0000");t[r]=n}else t[r]=o[r]}s(t)},u.reset=function(){s(o)},u.tags={},Object.defineProperty?(Object.defineProperty(u.tags,"open",{get:function(){return a}}),Object.defineProperty(u.tags,"close",{get:function(){return c}})):(u.tags.open=a,u.tags.close=c),u.reset()},oG6b:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r("ERkP"),o=r.n(n).a.createContext([]),i=o.Provider},"p/97":function(e,t,r){"use strict";e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}},qPgQ:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},rDK1:function(e,t,r){var n=r("695J"),o=r("TcdR");function i(t,r,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,r){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return r&&n(i,r.prototype),i},i.apply(null,arguments)}e.exports=i},tTLS:function(e,t,r){"use strict";function n(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null==e)return a;if("object"==typeof e)return("length"in e?i:o)(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function o(e){return function(t){var r;for(r in e)if(t[r]!==e[r])return!1;return!0}}function i(e){var t=function(e){for(var t=[],r=e.length,o=-1;++o<r;)t[o]=n(e[o]);return t}(e),r=t.length;return function(){var e=-1;for(;++e<r;)if(t[e].apply(this,arguments))return!0;return!1}}function a(){return!0}e.exports=n},uotq:function(e,t,r){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())}))}},yVhM:function(e,t,r){var n=r("gyOD").default;console.log(n),e.exports.StepRenderer=n}}]);
  //# sourceMappingURL=component---src-pages-recipe-js-898f8d08f45904035164.js.map