/*! For license information please see GithubPicker.0820539144ef5245d1e9.js.LICENSE.txt */ (self.webpackChunkapp=self.webpackChunkapp||[]).push([[3203],{27926:function(n,e,t){"use strict";t.d(e,{Z:function(){return j}});var r=t(93379),o=t.n(r),i=t(7795),a=t.n(i),c=t(90569),s=t.n(c),u=t(3565),l=t.n(u),d=t(19216),f=t.n(d),h=t(44589),p=t.n(h),y=t(56281),A={};A.styleTagTransform=p(),A.setAttributes=l(),A.insert=s().bind(null,"head"),A.domAPI=a(),A.insertStyleElement=f(),o()(y.Z,A);var m=y.Z&&y.Z.locals?y.Z.locals:void 0,v=t(85893);function g(n){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g(n)}var b=["children","secondary","className"];function x(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function w(n){for(var e=1;e=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,b);return(0,v.jsx)("button",w(w({className:[r,m.action,t&&m.secondary].join(" ")},o),{},{children:e}))}C.defaultProps={className:""};var j=C},72054:function(n,e,t){"use strict";t.d(e,{Z:function(){return O}});var r=t(94184),o=t.n(r),i=t(67294),a=t(45697),c=t.n(a),s=t(93379),u=t.n(s),l=t(7795),d=t.n(l),f=t(90569),h=t.n(f),p=t(3565),y=t.n(p),A=t(19216),m=t.n(A),v=t(44589),g=t.n(v),b=t(56634),x={};x.styleTagTransform=g(),x.setAttributes=y(),x.insert=h().bind(null,"head"),x.domAPI=d(),x.insertStyleElement=m(),u()(b.Z,x);var w=b.Z&&b.Z.locals?b.Z.locals:void 0,E=t(21517),C=t(64261),j=t(62092),B=t(85893);function k(n){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k(n)}function S(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0||(o[t]=n[t]);return o}(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(o[t]=n[t])}return o}(n,w),c=e(i)||!i&&r&&"cannot be empty";return(0,b.jsxs)("span",{className:g.wrapper,children:[(0,b.jsx)("input",C({type:"text",value:i},a)),c&&(0,b.jsx)("span",{className:g.error,children:c})]})}B.propTypes={value:o().any.isRequired,required:o().bool,validator:o().func}},92087:function(n,e,t){"use strict";var r=t(45697),o=t.n(r),i=t(96186),a=t(64261),c=t(80031),s=t(85893);function u(n){var e=n.onDismiss;return(0,s.jsx)(a.Z,{children:(0,s.jsxs)(i.Z,{onDismiss:e,children:[(0,s.jsx)("h2",{children:"Automatic Layout Generation Failed"}),(0,s.jsx)("p",{children:"No accompanying layout was found with your keymap file and the Keymap Editor was unable to generate one automatically for you."}),(0,s.jsx)("p",{children:"Something went wrong with the attempted automatic layout generation for your keyboard and there's no automatic way to recover, but if you want to reach out for assistance maybe we can work together to resolve any technical issues or else craft a manual layout for your keyboard."}),(0,s.jsxs)("p",{children:["Share your experience at ",c.qM,"."]})]})})}u.propTypes={onDismiss:o().func.isRequired},e.Z=u},75620:function(n,e,t){"use strict";t.r(e),t.d(e,{default:function(){return Sn}});var r=t(13311),o=t.n(r),i=t(66379),a=t.n(i),c=t(67294),s=t(45697),u=t.n(s),l=t(93965),d=t(96186),f=t(64261),h=t(85893),p={maxHeight:"300px",overflow:"auto",padding:"10px",fontFamily:"monospace",fontSize:"80%",backgroundColor:"rgb(239, 239, 239, 0.5)"},y={margin:"10px"};function A(n){var e=n.onDismiss,t=n.title,r=n.errors,o=function(n){if("InfoValidationError"===n)return"config/info.json"}(t);return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:t}),o&&(0,h.jsxs)("p",{children:["Errors in the file ",(0,h.jsx)("code",{children:o}),"."]}),(0,h.jsx)("ul",{style:p,children:r.map((function(n,e){return(0,h.jsx)("li",{style:y,children:n},e)}))})]})})}var m=t(97168),v=t(35161),g=t.n(v),b="selectedGithubRepository",x="selectedGithubBranch",w="selectedGithubKeyboard";function E(n,e){try{return JSON.parse(localStorage.getItem("".concat(w,":").concat(n,":").concat(e)))}catch(n){return null}}function C(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t0&&(e=r[0].id),n.initialized=!0,n.selectedRepoId=e},loadingBranchesList:function(n){n.noBranches=!1,n.loading=!0},loadedBranchesList:function(n,e){var t=n.selectedRepoId,r=e.payload.branches,i=o()(l.Z.repositories,{id:t});n.noBranches=0===r.length,n.branches=r,n.keyboard=null,n.keyboards=[],n.loading=!1;for(var a=g()(r,"name"),c=i.default_branch,s=function(n){try{return JSON.parse(localStorage.getItem("".concat(x,":").concat(n)))}catch(n){return null}}(t),u=0,d=[1===r.length?r[0].name:null,s,c];u.json"}),"."]}),D.Yo,D.t6]})})}$.propTypes={onDismiss:u().func.isRequired};var I=$;var _=(0,h.jsx)(Z.Z,{external:!0,href:"https://zmk.dev/docs/user-setup#user-config-setup-script",children:"User Config Setup Script"});function R(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"Empty Repository"}),(0,h.jsxs)("p",{children:["The selected repository doesn't appear to contain anything yet. please be sure to use ZMK's ",_," to initialize your repo first."]}),D.t6]})})}t(41051);function N(n){var e=n.onDismiss;return(0,h.jsx)(f.Z,{children:(0,h.jsxs)(d.Z,{onDismiss:e,children:[(0,h.jsx)("h2",{children:"No Keymap Available"}),(0,h.jsxs)("p",{children:["We couldn't find a ",(0,h.jsx)("code",{children:".keymap"})," file in your ",(0,h.jsx)("code",{children:"config/"})," folder."]}),(0,h.jsxs)("p",{children:["Please ensure that any keymap(s) you wish to edit are placed in that directory even if an accompanying keyboard definition exists in your under the ",(0,h.jsx)("code",{children:"config/boards/..."})," directory."]}),(0,h.jsxs)("p",{children:["If you have any questions please feel free to reach out by creating an issue at ",D.qM,"."]})]})})}N.propTypes={onDismiss:u().func.isRequired};var Y=N,q=(t(91892),t(93379)),G=t.n(q),z=t(7795),F=t.n(z),K=t(90569),W=t.n(K),U=t(3565),H=t.n(U),J=t(19216),V=t.n(J),X=t(44589),Q=t.n(X),nn=t(92127),en={};en.styleTagTransform=Q(),en.setAttributes=H(),en.insert=W().bind(null,"head"),en.domAPI=F(),en.insertStyleElement=V(),G()(nn.Z,en);nn.Z&&nn.Z.locals&&nn.Z.locals;var tn=t(80047),rn={};rn.styleTagTransform=Q(),rn.setAttributes=H(),rn.insert=W().bind(null,"head"),rn.domAPI=F(),rn.insertStyleElement=V(),G()(tn.Z,rn);tn.Z&&tn.Z.locals&&tn.Z.locals;function on(n){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},on(n)}function an(){an=function(){return n};var n={},e=Object.prototype,t=e.hasOwnProperty,r=Object.defineProperty||function(n,e,t){n[e]=t.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(n,e,t){return Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),n[e]}try{s({},"")}catch(n){s=function(n,e,t){return n[e]=t}}function u(n,e,t,o){var i=e&&e.prototype instanceof f?e:f,a=Object.create(i.prototype),c=new j(o||[]);return r(a,"_invoke",{value:x(n,t,c)}),a}function l(n,e,t){try{return{type:"normal",arg:n.call(e,t)}}catch(n){return{type:"throw",arg:n}}}n.wrap=u;var d={};function f(){}function h(){}function p(){}var y={};s(y,i,(function(){return this}));var A=Object.getPrototypeOf,m=A&&A(A(B([])));m&&m!==e&&t.call(m,i)&&(y=m);var v=p.prototype=f.prototype=Object.create(y);function g(n){["next","throw","return"].forEach((function(e){s(n,e,(function(n){return this._invoke(e,n)}))}))}function b(n,e){function o(r,i,a,c){var s=l(n[r],n,i);if("throw"!==s.type){var u=s.arg,d=u.value;return d&&"object"==on(d)&&t.call(d,"__await")?e.resolve(d.__await).then((function(n){o("next",n,a,c)}),(function(n){o("throw",n,a,c)})):e.resolve(d).then((function(n){u.value=n,a(u)}),(function(n){return o("throw",n,a,c)}))}c(s.arg)}var i;r(this,"_invoke",{value:function(n,t){function r(){return new e((function(e,r){o(n,t,e,r)}))}return i=i?i.then(r,r):r()}})}function x(n,e,t){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(t.method=o,t.arg=i;;){var a=t.delegate;if(a){var c=w(a,t);if(c){if(c===d)continue;return c}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if("suspendedStart"===r)throw r="completed",t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);r="executing";var s=l(n,e,t);if("normal"===s.type){if(r=t.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:t.done}}"throw"===s.type&&(r="completed",t.method="throw",t.arg=s.arg)}}}function w(n,e){var t=e.method,r=n.iterator[t];if(void 0===r)return e.delegate=null,"throw"===t&&n.iterator.return&&(e.method="return",e.arg=void 0,w(n,e),"throw"===e.method)||"return"!==t&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=l(r,n.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[n.resultName]=i.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function E(n){var e={tryLoc:n[0]};1 in n&&(e.catchLoc=n[1]),2 in n&&(e.finallyLoc=n[2],e.afterLoc=n[3]),this.tryEntries.push(e)}function C(n){var e=n.completion||{};e.type="normal",delete e.arg,n.completion=e}function j(n){this.tryEntries=[{tryLoc:"root"}],n.forEach(E,this),this.reset(!0)}function B(n){if(n){var e=n[i];if(e)return e.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var r=-1,o=function e(){for(;++r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),s=t.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),C(t),d}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var r=t.completion;if("throw"===r.type){var o=r.arg;C(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:B(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),d}},n}function cn(n,e,t,r,o,i,a){try{var c=n[i](a),s=c.value}catch(n){return void t(n)}c.done?e(s):Promise.resolve(s).then(r,o)}function sn(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){cn(i,r,o,a,c,"next",n)}function c(n){cn(i,r,o,a,c,"throw",n)}a(void 0)}))}}function un(n){return function(n){if(Array.isArray(n))return ln(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return ln(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ln(n,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ln(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=t.call(i,"catchLoc"),s=t.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===n)return this.complete(t.completion,t.afterLoc),C(t),d}},catch:function(n){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===n){var r=t.completion;if("throw"===r.type){var o=r.arg;C(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(n,e,t){return this.delegate={iterator:B(n),resultName:e,nextLoc:t},"next"===this.method&&(this.arg=void 0),d}},n}function mn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function vn(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);t=e?n:""+Array(e+1-r.length).join(t)+n},m={s:A,z:function(n){var e=-n.utcOffset(),t=Math.abs(e),r=Math.floor(t/60),o=t%60;return(e<=0?"+":"-")+A(r,2,"0")+":"+A(o,2,"0")},m:function n(e,t){if(e.date()1)return n(a[0])}else{var c=e.name;g[c]=e,o=c}return!r&&o&&(v=o),o||!r&&v},w=function(n,e){if(b(n))return n.clone();var t="object"==typeof e?e:{};return t.date=n,t.args=arguments,new C(t)},E=m;E.l=x,E.i=b,E.w=function(n,e){return w(n,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var C=function(){function y(n){this.$L=x(n.locale,null,!0),this.parse(n)}var A=y.prototype;return A.parse=function(n){this.$d=function(n){var e=n.date,t=n.utc;if(null===e)return new Date(NaN);if(E.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(h);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return t?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(n),this.$x=n.x||{},this.init()},A.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},A.$utils=function(){return E},A.isValid=function(){return!(this.$d.toString()===f)},A.isSame=function(n,e){var t=w(n);return this.startOf(e)<=t&&t<=this.endOf(e)},A.isAfter=function(n,e){return w(n)0,A<=y.r||!y.r){A<=1&&p>0&&(y=f[p-1]);var m=d[y.l];c&&(A=c(""+A)),u="string"==typeof m?m.replace("%d",A):m(A,r,y.l,l);break}}if(r)return u;var v=l?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(n,e){return i(n,e,this,!0)},r.from=function(n,e){return i(n,e,this)};var a=function(n){return n.$u?t.utc():t()};r.toNow=function(n){return this.to(a(this),n)},r.fromNow=function(n){return this.from(a(this),n)}}}()},69199:function(n,e,t){var r=t(89881),o=t(98612);n.exports=function(n,e){var t=-1,i=o(n)?Array(n.length):[];return r(n,(function(n,r,o){i[++t]=e(n,r,o)})),i}},66379:function(n,e,t){var r=t(2958),o=t(1499);n.exports=function(n,e){return n===e||r(n,e,o(e))}},35161:function(n,e,t){var r=t(29932),o=t(67206),i=t(69199),a=t(1469);n.exports=function(n,e){return(a(n)?r:i)(n,o(e,3))}},66317:function(){},99918:function(){}}]); //# sourceMappingURL=GithubPicker.0820539144ef5245d1e9.js.map