1/*! For license information please see 711.6083a3998f6d260f9d33.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunkgems_web_app=self.webpackChunkgems_web_app||[]).push([[711],{77377:function(e,t,n){n.d(t,{r:function(){return l}});var r,o,a=n(67294);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var l=function(e){return a.createElement("svg",i({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=a.createElement("path",{d:"M10.28 20.25H17c2.76 0 5-2.24 5-5v-6.5c0-2.76-2.24-5-5-5h-6.72c-1.41 0-2.75.59-3.7 1.64L3.05 9.27a4.053 4.053 0 0 0 0 5.46l3.53 3.88a4.978 4.978 0 0 0 3.7 1.64Z",stroke:"#f33",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),o||(o=a.createElement("path",{d:"m16 14.47-4.94-4.94M11.06 14.47 16 9.53",stroke:"#f33",strokeWidth:1.5,strokeLinecap:"round"})))}},73032:function(e,t,n){var r=n(67294),o=n(83253),a=n.n(o),i=n(42428);a().setAppElement("#root");var l={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"400px",minHeight:"100px",borderRadius:10,padding:30,border:"2px solid #202020"}};t.Z=function(e){var t=e.isOpen,n=e.title,o=e.message,c=e.onConfirm,u=e.onCancel;return r.createElement(a(),{style:l,isOpen:t,onRequestClose:function(){return u()}},r.createElement("div",{style:{textAlign:"center"}},r.createElement("h2",{style:{margin:0}},n),r.createElement(i.Z,{style:{margin:"10px 0"}},o)),r.createElement("div",{style:{display:"grid",gridGap:10,gridAutoFlow:"column",gridTemplateColumns:"1fr 1fr"}},r.createElement("button",{className:"button button-secondary",type:"button",style:{width:"100%",justifyContent:"center"},onClick:function(){return u()}},"No"),r.createElement("button",{className:"button button-danger",type:"button",style:{width:"100%",justifyContent:"center"},onClick:function(){return c()}},"Yes, delete")))}},51393:function(e,t,n){n.d(t,{nm:function(){return g},o_:function(){return d},tP:function(){return v},yT:function(){return y}});var r=n(71002),o=n(15861),a=n(67294),i=n(2699),l=n(47964),c=n(84956);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,i=Object.create(a.prototype),l=new Z(r||[]);return o(i,"_invoke",{value:k(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function m(){}function v(){}var y={};s(y,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==t&&n.call(b,i)&&(y=b);var w=v.prototype=h.prototype=Object.create(y);function E(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function a(o,i,l,c){var u=d(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,l,c)}),(function(e){a("throw",e,l,c)})):t.resolve(f).then((function(e){s.value=e,l(s)}),(function(e){return a("throw",e,l,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=C(i,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";
vendor: 4,194 bytes, line 2
2var c=d(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var o=d(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,p;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}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 I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function L(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=v,o(w,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=s(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(x.prototype),s(x.prototype,l,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new x(f(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},E(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=L,Z.prototype={constructor:Z,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(I),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},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),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}var s="onboarding_v4",f=function(e){return e.Step1="93097e74-8e05-43cf-ba7b-97511e7983be",e.Step2="eb0a8387-3a6c-4454-ae53-7d0ab73a3a66",e.Step3="20a55cef-aa43-4278-ad32-6e0fd0ea24b3",e}(f||{});function d(e){return e.stepId===f.Step1&&"show"===e.status&&e.id===s}function p(e){return e.stepId===f.Step2&&"show"===e.status&&e.id===s}function h(e){return e.stepId===f.Step3&&"show"===e.status&&e.id===s}function m(e){var t=e.children,n=e.title,r=e.subtitle,i=e.step,s=e.uid,f=e.isOpen,d=e.position;return a.createElement(a.Fragment,null,f&&a.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:100,backgroundColor:"rgb(0 0 0 / 30%)"},onContextMenu:function(e){e.preventDefault()}}),a.createElement(l.Tooltip,{style:{zIndex:f&&101,position:"relative"},position:d,html:a.createElement("div",{style:{backgroundColor:"white",border:"gainsboro solid 2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 5px 15px",borderRadius:10,padding:20,width:310,lineHeight:1.4,zIndex:"101 !important",margin:10}},a.createElement("h2",null,n),a.createElement("p",null,r),a.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},a.createElement("p",{style:{fontWeight:"bold"}},i),a.createElement("button",{type:"button",className:"button button-secondary",style:{width:80,justifyContent:"center"},onClick:(0,o.Z)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.r7)((0,c.JU)((0,c.ad)(),"sequences",s),{status:"hide"});case 2:case"end":return e.stop()}}),e)})))},"Hide"))),open:f,trigger:"manual"},t))}function v(e){var t=e.children,n=e.show,r=void 0===n||n,o=(0,i.a)(),l=o.user,c=o.sequence;return a.createElement(m,{title:"Summarize the interview",subtitle:"Gems transcribes and takes notes for you.",step:"1/3",uid:l.uid,isOpen:d(c)&&r,position:"bottom-start"},t)}function y(e){var t=e.children,n=e.show,r=void 0===n||n,o=(0,i.a)(),l=o.user,c=o.sequence;return a.createElement(m,{title:"Discover themes",subtitle:"Visually group notes on a board.",step:"2/3",uid:l.uid,isOpen:p(c)&&r,position:"top"},t)}function g(e){var t=e.children,n=e.show,r=void 0===n||n,o=(0,i.a)(),l=o.user,c=o.sequence;return a.createElement(m,{title:"Report findings",subtitle:"Click on a group of notes, then press '?' to ask a question. AI synthesizes the content of each group.",step:"3/3",uid:l.uid,isOpen:h(c)&&r,position:"bottom-start"},t)}},74450:function(e,t,n){n.r(t),n.d(t,{default:function(){return me}});var r,o=n(71002),a=n(4942),i=n(42982),l=n(15861),c=n(70885),u=n(67294),s=n(47964),f=n(95172),d=n(89250),p=n(93658),h=n(14642),m=n(5698),v=n(2699),y=n(16006),g=n(57615),b=n(92076),w=n(17869),E=n(57399),x=n(94358),k=n(51393),C=n(43521),O=n(2586),I=n(44594),Z=n(5280),L=n(42428),j=n(41810),S=n(68860),F=n(54668),N=n(56069);function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(this,arguments)}var P,_=function(e){return u.createElement("svg",D({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),r||(r=u.createElement("path",{d:"M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z",stroke:"#377dff",strokeWidth:1.5,strokeMiterlimit:10})))},R=n(41182);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A.apply(this,arguments)}var M,T=function(e){return u.createElement("svg",A({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),P||(P=u.createElement("path",{d:"M14.43 5.93 20.5 12l-6.07 6.07M3.5 12h16.83",stroke:"#377dff",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})))},V=n(62051),G=n(77377),W=n(86536),H=n(83253),z=n.n(H),Y=n(14400),U=n(71545);function q(){return q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q.apply(this,arguments)}var B=function(e){return u.createElement("svg",q({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),M||(M=u.createElement("path",{d:"M6 9.86v4.29M9 8.43v7.14M12 7v10M15 8.43v7.14M18 9.86v4.29M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z",stroke:"#fff",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})))};z().setAppElement("#root");var J={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"400px",minHeight:"100px",borderRadius:10,overflow:"inherit",border:"2px s
2olid #202020"}},Q=function(e){var t=e.isOpen,n=e.onClose,r=e.onTranscribe,o=(0,y.U)().triggerError,a=(0,u.useState)(null),i=(0,c.Z)(a,2),l=i[0],s=i[1],f=(0,u.useState)(null),d=(0,c.Z)(f,2),h=d[0],m=d[1],v=(0,u.useState)(!1),g=(0,c.Z)(v,2),b=g[0],w=g[1];return(0,u.useEffect)((function(){t&&(s(null),m(null))}),[t]),u.createElement(z(),{style:J,isOpen:t,onRequestClose:function(){return n()}},u.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},u.createElement("h2",null,"Add audio recording"),u.createElement(U.Z,{onClose:function(){return n()}})),u.createElement("div",null,u.createElement(p.Z,{options:[{value:"choose",label:u.createElement("span",{style:{fontWeight:"bold"}},"Choose recording language")},{value:E.tt.EnglishGeneral,label:u.createElement("span",{style:{fontWeight:"bold"}},"ð¬ð§ English")},{value:E.tt.Spanish,label:u.createElement("span",{style:{fontWeight:"bold"}},"ðªð¸ Spanish")},{value:E.tt.Italian,label:u.createElement("span",{style:{fontWeight:"bold"}},"ð®ð¹ Italian")},{value:E.tt.German,label:u.createElement("span",{style:{fontWeight:"bold"}},"ð©ðª German")},{value:E.tt.French,label:u.createElement("span",{style:{fontWeight:"bold"}},"ð«ð· French")}],value:l||"choose",onChange:function(e){s("choose"===e.value?null:e.value)}}),u.createElement(Y.b,{handleChange:function(e){m(e)},name:"file",multiple:!1,required:!0,types:["mp3","wav","m4a"],disabled:null!==h,onTypeError:function(e){o(e)},onDraggingStateChange:function(e){w(e)},dropMessageStyle:{display:"none"}},h?u.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",margin:"20px 0 0 0",height:40,alignItems:"center",border:"transparent 3px solid"}},u.createElement("p",{style:{fontWeight:"bold"}},h.name),u.createElement("button",{className:"button button-secondary",type:"button",onClick:function(){m(null)}},"Cancel")):b?u.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:100,margin:"20px 0 0 0",borderRadius:10,color:"white",backgroundColor:"#377dff",border:"white 3px dotted"}},u.createElement("p",{style:{fontWeight:"bold"}},"Drop audio recording here")):u.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"gainsboro 3px dotted",height:100,margin:"20px 0 0 0",cursor:"pointer",borderRadius:10}},u.createElement("p",{style:{fontWeight:"bold"}},"Upload or drop an audio recording"),u.createElement("p",null,".mp3 .wav .m4a"))),null!==h&&null!==l&&u.createElement("button",{style:{width:"100%",justifyContent:"center",marginTop:20},className:"button button-ai",type:"button",onClick:function(){h?l?r(h,l):o("Missing recording language"):o("Missing audio recording")}},u.createElement(B,null)," Transcribe")))};function X(){X=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),l=new I(o||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function m(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(Z([])));g&&g!==t&&n.call(g,i)&&(v=g);var b=m.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function a(r,i,l,c){var u=f(e[r],e,i);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==(0,o.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,l,c)}),(function(e){a("throw",e,l,c)})):t.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return a("throw",e,l,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,519 bytes, line 2
2(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function Z(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=Z,I.prototype={constructor:I,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(O),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}z().setAppElement("#root");var K,$,ee={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"400px",minHeight:"100px",borderRadius:10,border:"2px s
2olid #202020"}},te=function(e){var t=e.isOpen,n=e.onAddFolder,r=e.onClose,o=(0,y.U)().triggerError,a=(0,u.useCallback)(function(){var e=(0,l.Z)(X().mark((function e(t){var r,a;return X().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),r=t.target.elements.name,(a=r.value).length>0?n(a):o("Missing name");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n,o]);return u.createElement(z(),{style:ee,isOpen:t,onRequestClose:function(){return r()}},u.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},u.createElement("h2",null,"New Folder"),u.createElement(U.Z,{onClose:function(){return r()}})),u.createElement("form",{style:{display:"grid",gridGap:5},onSubmit:a},u.createElement("input",{className:"input",style:{height:"40px"},placeholder:"Folder name",type:"text",name:"name",maxLength:50}),u.createElement("button",{type:"submit",className:"button button-primary",style:{width:"100%",marginTop:10,display:"flex",justifyContent:"center"}},"Add folder")))},ne=n(15276);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(this,arguments)}var oe=function(e){return u.createElement("svg",re({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),K||(K=u.createElement("path",{d:"m13.81 15.73-3.54-3.54M13.77 12.23l-3.54 3.54",stroke:"#f33",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),$||($=u.createElement("path",{d:"M22 11v6c0 4-1 5-5 5H7c-4 0-5-1-5-5V7c0-4 1-5 5-5h1.5c1.5 0 1.83.44 2.4 1.2l1.5 2c.38.5.6.8 1.6.8h3c4 0 5 1 5 5Z",stroke:"#f33",strokeWidth:1.5,strokeMiterlimit:10})))};z().setAppElement("#root");var ae={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"400px",minHeight:"100px",borderRadius:10,border:"2px solid #202020"}},ie=function(e){var t=e.isOpen,n=e.sourceFolderId,r=e.onChosenFolder,o=e.onClose,a=(0,m.Wz)().databaseId,l=(0,u.useState)([]),s=(0,c.Z)(l,2),f=s[0],d=s[1];return(0,u.useEffect)((function(){if(a&&t){d(null!=n?[{id:"unfiled",title:"Unfile (no folder)"}]:[]);var e=[],r=(0,ne.iH)((0,ne.N8)(),"databases/".concat(a,"/sourceFolders")),o=(0,ne.yv)(r,(function(e){e.key!==n&&d((function(t){return[].concat((0,i.Z)(t),[{id:e.key,title:e.val().title}])}))}));return e.push(o),function(){return e.forEach((function(e){return e()}))}}}),[a,t,n]),u.createElement(z(),{style:ae,isOpen:t,onRequestClose:function(){return o()}},u.createElement("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"}},u.createElement("h2",null,"Move to folder"),u.createElement(U.Z,{onClose:function(){return o()}})),f&&f.length>0&&u.createElement(u.Fragment,null,u.createElement("p",{style:{fontWeight:"bold"}},"Click on a folder to add the source to it."),u.createElement("div",{style:{maxHeight:252,overflowY:"auto",display:"grid",gridGap:10}},f.map((function(e,t){return"unfiled"===e.id?u.createElement("button",{key:t,className:"button button-danger-secondary",style:{width:"100%"},onClick:function(){return r(e.id)}},u.createElement(oe,null),"Â Â ",e.title):u.createElement("button",{key:t,className:"button button-secondary",style:{width:"100%"},onClick:function(){return r(e.id)}},u.createElement(_,null),"Â Â ",e.title)})))),f&&0===f.length&&u.createElement(L.Z,null,"You have not created any folders yet."))},le=n(73032),ce=n(63727),ue=n(11100);z().setAppElement("#root");var se={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)",width:"400px",minHeight:"100px",borderRadius:10,border:"2px solid #202020"}},fe=function(e){var t=e.isOpen,n=e.onClose,r=(0,v.a)().username;return u.createElement(z(),{style:se,isOpen:t},u.createElement("h2",{style:{textAlign:"center"}},"Welcome, ",r,"!"),u.createElement("p",{style:{textAlign:"center",fontSize:18}},"Follow the steps to summarize interview themes and start writing reports in minutes."),u.createElement("div",{style:{display:"flex",justifyContent:"center"}},u.createElement("button",{type:"button",className:"button button-primary",onClick:function(){return n()},style:{width:300,justifyContent:"center"}},"Get started")))};function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,905 bytes, line 2
2t%2?de(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(){he=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var a=t&&t.prototype instanceof p?t:p,i=Object.create(a.prototype),l=new I(o||[]);return r(i,"_invoke",{value:x(e,n,l)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d={};function p(){}function h(){}function m(){}var v={};u(v,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(Z([])));g&&g!==t&&n.call(g,i)&&(v=g);var b=m.prototype=p.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function a(r,i,l,c){var u=f(e[r],e,i);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==(0,o.Z)(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,l,c)}),(function(e){a("throw",e,l,c)})):t.resolve(d).then((function(e){s.value=e,l(s)}),(function(e){return a("throw",e,l,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return{value:void 0,done:!0}}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=k(i,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function k(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function C(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function Z(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return h.prototype=m,r(b,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:h,configurable:!0}),h.displayName=u(m,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,c,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(E.prototype),u(E.prototype,l,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new E(s(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(b),u(b,c,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=Z,I.prototype={constructor:I,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.forEac
2h(O),!e)for(var t in this)"t"===t.charAt(0)&&n.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 r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},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),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:Z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var me=function(){var e=(0,d.s0)(),t=(0,y.U)().triggerError,n=(0,m.Wz)(),r=n.databaseId,o=n.workspaceSettings,a=n.currentPlan,D=(0,v.a)(),P=D.user,A=D.sequence,M=(0,u.useState)([]),H=(0,c.Z)(M,2),z=H[0],Y=H[1],U=(0,u.useState)([]),q=(0,c.Z)(U,2),B=q[0],J=q[1],X=(0,u.useState)(!1),K=(0,c.Z)(X,2),$=K[0],ee=K[1],ne=(0,u.useState)(!1),re=(0,c.Z)(ne,2),oe=re[0],ae=re[1],se=(0,u.useState)(!1),de=(0,c.Z)(se,2),me=de[0],ve=de[1],ye=(0,u.useState)(!1),ge=(0,c.Z)(ye,2),be=ge[0],we=ge[1],Ee=(0,u.useState)(""),xe=(0,c.Z)(Ee,2),ke=xe[0],Ce=xe[1],Oe=(0,u.useState)(""),Ie=(0,c.Z)(Oe,2),Ze=Ie[0],Le=Ie[1],je=(0,u.useState)(!1),Se=(0,c.Z)(je,2),Fe=Se[0],Ne=Se[1],De=(0,u.useState)(!1),Pe=(0,c.Z)(De,2),_e=Pe[0],Re=Pe[1],Ae=(0,u.useState)(!1),Me=(0,c.Z)(Ae,2),Te=Me[0],Ve=Me[1],Ge=(0,u.useState)(!1),We=(0,c.Z)(Ge,2),He=We[0],ze=We[1],Ye=(0,u.useState)(!1),Ue=(0,c.Z)(Ye,2),qe=Ue[0],Be=Ue[1],Je=(0,u.useRef)("all"),Qe=(0,u.useState)([]),Xe=(0,c.Z)(Qe,2),Ke=Xe[0],$e=Xe[1],et=(0,u.useRef)(Ke),tt=(0,u.useState)([]),nt=(0,c.Z)(tt,2),rt=nt[0],ot=nt[1],at=(0,u.useRef)([]),it=(0,u.useRef)(!1),lt=(0,u.useRef)([]),ct=(0,u.useRef)(!1),ut=(0,u.useState)(!1),st=(0,c.Z)(ut,2),ft=st[0],dt=st[1],pt=(0,u.useState)(!1),ht=(0,c.Z)(pt,2),mt=ht[0],vt=ht[1],yt=(0,u.useState)({top:0,left:0}),gt=(0,c.Z)(yt,2),bt=gt[0],wt=gt[1],Et=(0,u.useState)(!1),xt=(0,c.Z)(Et,2),kt=xt[0],Ct=xt[1],Ot=(0,u.useState)(void 0),It=(0,c.Z)(Ot,2),Zt=It[0],Lt=It[1],jt=(0,u.useState)(void 0),St=(0,c.Z)(jt,2),Ft=St[0],Nt=St[1],Dt=(0,u.useState)(),Pt=(0,c.Z)(Dt,2),_t=Pt[0],Rt=Pt[1],At=(0,u.useState)(),Mt=(0,c.Z)(At,2),Tt=Mt[0],Vt=Mt[1],Gt=(0,u.useState)(!0),Wt=(0,c.Z)(Gt,2),Ht=Wt[0],zt=Wt[1],Yt=(0,u.useState)(!1),Ut=(0,c.Z)(Yt,2),qt=Ut[0],Bt=Ut[1],Jt=(0,u.useState)("Loading..."),Qt=(0,c.Z)(Jt,2),Xt=Qt[0],Kt=Qt[1],$t=(0,u.useState)({statusCode:200,message:"Loading..."}),en=(0,c.Z)($t,2),tn=en[0],nn=en[1],rn=(0,u.useState)(!1),on=(0,c.Z)(rn,2),an=on[0],ln=on[1],cn=(0,u.useRef)(null);function un(e,t){return{value:e,label:u.createElement("span",{style:{fontWeight:"bold",display:"flex",justifyContent:"space-between",alignItems:"center"}},u.createElement("div",null,t),u.createElement("div",{className:"folder-item"},u.createElement("button",{type:"button",className:"button button-secondary",style:{marginRight:5},onMouseDown:function(n){n.preventDefault(),Ce(e),Le(t),we(!0)}},u.createElement(R.r,null)),u.createElement("button",{type:"button",className:"button button-danger-secondary",onMouseDown:function(t){t.preventDefault(),Ce(e),ze(!0)}},u.createElement(G.r,null))))}}function sn(){return fn.apply(this,arguments)}function fn(){return(fn=(0,l.Z)(he().mark((function e(){var t,n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),t["sourcesImport/".concat(P.uid,"/statusCode")]=202,t["sourcesImport/".concat(P.uid,"/message")]="Uploading file...",e.next=6,(0,h.Vx)(n,t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dn(){return pn.apply(this,arguments)}function pn(){return(pn=(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return it.current=!0,e.next=3,(0,C.r5)(r,t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hn(){return mn.apply(this,arguments)}function mn(){return(mn=(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ct.current=!0,e.next=3,(0,C.j8)(r,t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(){ln(!0)}function yn(){return(yn=(0,l.Z)(he().mark((function e(t,n){var o,a;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,ct.current=!0,e.next=4,
2sn();case 4:return e.next=6,(0,C.Yf)(r,P,t,n);case 6:e.next=16;break;case 8:return e.prev=8,e.t0=e.catch(0),o={},a=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),o["sourcesImport/".concat(P.uid,"/statusCode")]=500,o["sourcesImport/".concat(P.uid,"/message")]=e.t0.message,e.next=16,(0,h.Vx)(a,o);case 16:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}function gn(e){return bn.apply(this,arguments)}function bn(){return(bn=(0,l.Z)(he().mark((function e(t){var n,o;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),(o={})["workspaceSettings/sourceSortValue"]=t,e.next=5,(0,h.Vx)(n,o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wn(e){return En.apply(this,arguments)}function En(){return(En=(0,l.Z)(he().mark((function e(t){var n,o;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),(o={})["workspaceSettings/sourceFilterValue"]=t,e.next=5,(0,h.Vx)(n,o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xn(e){return kn.apply(this,arguments)}function kn(){return(kn=(0,l.Z)(he().mark((function e(t){var n,o;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),(o={})["workspaceSettings/sourceFolderValue"]=t,e.next=5,(0,h.Vx)(n,o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,u.useEffect)((function(){A&&Be((0,k.o_)(A))}),[A]),(0,u.useEffect)((function(){var e=B;function t(e){return e.title||"Untitled"}switch("unfiled"===o.sourceFolderValue?e=e.filter((function(e){return null==e.sourceFolderId})):"all"!==o.sourceFolderValue&&(e=e.filter((function(e){return e.sourceFolderId===o.sourceFolderValue}))),e=e.filter((function(e){return e.status===o.sourceFilterValue})),o.sourceSortValue){case E.Pb.AZ:e=e.sort((function(e,n){return t(e).localeCompare(t(n))}));break;case E.Pb.ZA:e=e.sort((function(e,n){return t(n).localeCompare(t(e))}));break;case E.Pb.NewestFirstCreated:e=e.sort((function(e,t){return t.creationDate-e.creationDate}));break;case E.Pb.OldestFirstCreated:e=e.sort((function(e,t){return e.creationDate-t.creationDate}));break;case E.Pb.NewestFirstEdited:e=e.sort((function(e,t){return t.lastEditDate-e.lastEditDate}));break;case E.Pb.OldestFirstEdited:e=e.sort((function(e,t){return e.lastEditDate-t.lastEditDate}))}ot(e)}),[o.sourceSortValue,o.sourceFilterValue,o.sourceFolderValue,B]),(0,u.useEffect)((function(){et.current=Ke}),[Ke]),(0,u.useEffect)((function(){function e(){return(e=(0,l.Z)(he().mark((function e(){var t,n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),t["sourcesImport/".concat(P.uid)]=null,e.next=5,(0,h.Vx)(n,t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}r&&P&&function(){e.apply(this,arguments)}()}),[r,P]),(0,u.useEffect)((function(){if(r){var t=[];(0,C.G5)(r),$e((function(e){return[].concat((0,i.Z)(e),[{value:"new_folder",label:u.createElement("span",{style:{fontWeight:"bold",color:"#377dff",dis
2play:"flex",alignItems:"center"}},u.createElement(_,null),"Â Â New Folder")},{value:"all",label:u.createElement("span",{style:{fontWeight:"bold",display:"flex",alignItems:"center"}},"All sources")},{value:"unfiled",label:u.createElement("span",{style:{fontWeight:"bold",display:"flex",alignItems:"center"}},"Unfiled sources")}])}));var n=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/sourceFolders")),o=(0,h.yv)(n,function(){var e=(0,l.Z)(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$e((function(e){return[].concat((0,i.Z)(e),[un(t.key,t.val().title)])}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());t.push(o);var a=(0,h.Jr)(n,function(){var e=(0,l.Z)(he().mark((function e(t){var n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=un(t.key,t.val().title),$e(et.current.map((function(e){return e.value!==t.key?pe({},e):pe({},n)})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());t.push(a);var c=(0,h.MQ)(n,(function(e){$e(et.current.filter((function(t){return t.value!==e.key})))}));t.push(c);var s=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/boards")),f=(0,h.yv)(s,function(){var t=(0,l.Z)(he().mark((function t(n){var o,a,l;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/rooms/").concat(n.val().roomId,"/lastEditDate")),t.next=3,(0,g.Yu)(o);case 3:a=t.sent,l={id:n.key,title:n.val().title,thumbnail:n.val().thumbnail,creationDate:n.val().creationDate,lastEditDate:a.val(),roomId:n.val().roomId},at.current.push(l),Y((function(e){return[].concat((0,i.Z)(e),[l])})),it.current&&(e("/room/".concat(n.val().roomId)),it.current=!1);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());t.push(f);var d=(0,h.Jr)(s,(function(e){var t={id:e.key,title:e.val().title,thumbnail:e.val().thumbnail,creationDate:e.val().creationDate,lastEditDate:Date.now(),roomId:e.val().roomId};at.current=at.current.map((function(n){return n.roomId!==e.val().roomId?pe({},n):pe({},t)})),Y(at.current)}));t.push(d);var p=(0,h.MQ)(s,(function(e){at.current=at.current.filter((function(t){return t.roomId!==e.val().roomId})),Y(at.current)}));t.push(p);var m=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/sources")),v=(0,h.yv)(m,function(){var t=(0,l.Z)(he().mark((function t(n){var o,a,l,c;return he().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/notes/").concat(n.val().noteId,"/lastEditDate")),t.next=3,(0,g.Yu)(o);case 3:if(a=t.sent,l={id:n.key,title:n.val().title,type:n.val().type,status:n.val().status,creationDate:n.val().creationDate,lastEditDate:a.val(),noteId:n.val().noteId,sourceFolderId:n.val().sourceFolderId},lt.current.push(l),J((function(e){return[].concat((0,i.Z)(e),[l])})),!ct.current){t.next=16;break}c=n.val().type,t.t0=c,t.next=t.t0===E.PO.Ideas?12:t.t0===E.PO.Audio?14:15;break;case 12:return e("/ideas/".concat(n.val().noteId)),t.abrupt("break",15);case 14:e("/audio/".concat(n.val().noteId));case 15:ct.current=!1;case 16:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());t.push(v);var y=(0,h.Jr)(m,(function(e){var t={id:e.key,title:e.val().title,type:e.val().type,status:e.val().status,creationDate:e.val().creationDate,lastEditDate:Date.now(),noteId:e.val().noteId,sourceFolderId:e.val().sourceFolderId};lt.current=lt.current.map((function(n){return n.noteId!==e.val().noteId?pe({},n):pe({},t)})),J(lt.current)}));t.push(y);var b=(0,h.MQ)(m,(function(e){lt.current=lt.current.filter((function(t){return t.noteId!==e.val().noteId})),J(lt.current)}));return t.push(b),function(){return t.forEach((function(e){return e()}))}}}),[r,e,P]),(0,u.useEffect)((function(){function e(){return(e=(0,l.Z)(he().mark((function e(n){var o,a;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(n),o={},a=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),o["sourcesImport/".concat(P.uid)]=null,e.next=6,(0,h.Vx)(a,o);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}tn&&tn.statusCode&&tn.message&&(500===tn.statusCode||403===tn.statusCode?function(t){e.apply(this,arguments)}(tn.message):202===tn.statusCode&&Kt(tn.message))}),[r,tn,t,P]),(0,u.useEffect)((function(){if(r&&P){var e=[],t=(0,h.iH)((0,h.N8)(),"databases/".concat(r,"/sourcesImport/").concat(P.uid)),n=(0,h.jM)(t,(function(e){nn(e.val())}));return e.push(n),function(){return e.forEach((function(e){return e()}))}}}),[r,P,t]),(0,u.useEffect)((function(){var e;if(r&&P&&tn&&202===tn.statusCode)return e=setTimeout((0,l.Z)(he().mark((function e(){var t,n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},n=(0,h.iH)((0,h.N8)(),"databases/".concat(r)),t["sourcesImport/".concat(P.uid,"/statusCode")]=500,t["sourcesImport/".concat(P.uid,"/message")]="Import timeout, please retry.",e.next=6,(0,h.Vx)(n,t);case 6:case"end":return e.stop()}}),e)}))),54e4),function(){return clearTimeout(e)}}),[r,P,tn]),(0,u.useEffect)((function(){var e=setTimeout((function(){Ct(!0)}),1e3);return function(){return clearTimeout(e)}}),[]),(0,f.y1)("a,b,i,shift+b",(function(t,n){switch(t.preventDefault(),n.key){case"a":vn();break;case"b":dn();break;case"shift+b":e("/boards");break;case"i":hn()}}),{enabled:!((0===z.length||0===rt.length)&&!kt||tn&&202===tn.statusCode)}),(0,f.y1)("t,m,backspace",(function(e,t){e.preventDefault();var n=rt[Ft];switch(Vt(n),t.key){case"t":ae(!0);break;case"m":Ne(!0);break;case"backspace":Re(!0)}}),{enabled:void 0!==Ft},[rt,Ft]),(0,f.y1)("t,backspace",(function(e,t){e.preventDefault();var n=z[Zt];switch(Rt(n),t.key){case"t":ee(!0);break;case"backspace":Ve(!0)}}),{enabled:void 0!==Zt},[z,Zt]),(0,u.useEffect)((function(){Ht&&(Lt(void 0),Nt(void 0))}),[Ht]),(0,u.useEffect)((function(){function t(t){var n=t.key;if(!(oe||$||He||Te||Fe||me||be||_e||an))if("ArrowDown"===n){zt(!1),Lt(void 0);var r=0;rt.length>0?void 0!==Ft&&Ft<rt.length-1?(r=(Ft+1)%rt.length,cn.current&&cn.current.scrollBy(0,80),Nt(r)):void 0===Ft&&Nt(r):Nt(void 0)}else if("ArrowUp"===n)if(zt(!1),Lt(void 0),rt.length>0){var o=rt.length-1;void 0!==Ft&&Ft>0?(o=(Ft+rt.length-1)%rt.length,cn.current&&cn.current.scrollBy(0,-80),Nt(o)):void 0===Ft&&Nt(o)}else Nt(void 0);else if("ArrowLeft"===n){zt(!1),Nt(void 0);var a=(z.length<4?z.length:4)-1;if(a>-1){var i=a;void 0!==Zt&&Zt>0?Lt(i=Zt-1):void 0===Zt&&Lt(i)}else Lt(void 0)}else if("ArrowRight"===n){zt(!1),Nt(void 0);var l=(z.length<4?z.length:4)-1;if(l>-1){var c=0;void 0!==Zt&&Zt<l?Lt(c=Zt+1):void 0===Zt&&Lt(c)}else Lt(void 0)}else if("Enter"===n)if(void 0!==Zt){var u=z[Zt];e("/room/".concat(u.roomId))}else if(void 0!==Ft){var s=rt[Ft];s.type===E.PO.Ideas?e("/ideas/".concat(s.noteId)):s.type===E.PO.Audio&&e("/audio/".concat(s.noteId))}}function n(){zt(!0)}return window.addEventListener("keydown",t),window.addEventListener("mousemove",n),function(){window.removeEventListener("keydown",t),window.removeEventListener("mousemove",n)}}),[Zt,z,Ft,rt,e,oe,$,He,Te,Fe,me,be,_e,an]),u.createElement(I.Z,{header:u.createElement(u.Fragment,null,u.createElement("div",{style:{display:"flex",marginRight:"10px",width:200}},u.createElement("img",{style:{margin:"10px"},src:j,alt:"Logo",width:47,height:40}),u.createElement("p",{style:{fontSize:"20px",fontWeight:"700"}},"Gems")),u.createElement("div",{style:{display:"flex",alignItems:"center"}},a!==m.fU.EarlyAccess&&u.createElement(x.Z,null),u.createElement(O.Z,{style:{display:"flex"}}))),body:u.createElement(u.Fragment,null,u.createElement("div",{style:{overflowY:"auto",height:"calc(100vh - 60px)"},ref:cn,onContextMenu:function(e){e.preventDefault()}},u.createElement("div",{style:{padding:20,minHeight:300}},u.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"}},u.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},u.createElement("h1",{style:{marginRight:10}},"Boards"),u.createElement(s.Tooltip,{position:"right-start",delay:500,html:u.createElement("div",{style:{width:"max-content",height:"20px",padding:"10px",backgroundColor:"#202020",borderRadius:"8px",color:"white"}},u.createElement("b",null,"B"))},u.createElement("button",{className:"button button-primary",type:"button",onClick:function(){return dn()}},u.createElement(N.r,null),"Â New Board"))),u.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},u.createElement(s.Tooltip,{position:"bottom-end",delay:500,html:u.createElement("div",{style:{width:"max-content",height:"20px",padding:"10px",backgroundColor:"#202020",borderRadius:"8px",color:"white"}},u.createElement("b",null,"â§ B"))},u.createElement("button",{style:{cursor:"pointer",border:0,backgroundColor:"transparent",fontSize:17,fontWeight:"bold",color:"#377
2dff"},type:"button",onClick:function(){return e("/boards")}},"See all â¸")))),(!z||0===z.length)&&kt&&u.createElement(L.Z,{style:{height:210}},"Visually make sense of your research. Click on ",u.createElement("b",null,"New Board"),"."),u.createElement("div",{className:"tiles-grid"},z.sort((function(e,t){return t.lastEditDate-e.lastEditDate})).map((function(t,n){if(n<4)return u.createElement(Z.Z,{key:n,title:t.title,roomId:t.roomId,thumbnail:t.thumbnail,lastEditDate:t.lastEditDate,isActive:n===Zt,style:{cursor:Ht?"pointer":"none",pointerEvents:Ht?"all":"none"},onClick:function(){return e("/room/".concat(t.roomId))},onMouseEnter:function(){Nt(void 0),Lt(n)},onMouseLeave:function(){Ht&&!mt&&Lt(void 0)},onContextMenu:function(e){e.preventDefault(),Lt(n),Rt(z[n]),wt({top:e.clientY,left:e.clientX}),vt(!0)}})})))),u.createElement("div",{style:{padding:20}},u.createElement("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",width:"100%"}},u.createElement("h1",{style:{margin:"0 10px 0 0"}},"Sources"),u.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:"100%"}},u.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},u.createElement(s.Tooltip,{position:"right-start",delay:500,html:u.createElement("div",{style:{width:"max-content",height:"20px",padding:"10px",backgroundColor:"#202020",borderRadius:"8px",color:"white"}},u.createElement("b",null,"I"))},u.createElement("button",{style:{marginRight:10,backgroundColor:"orange"},className:"button button-primary",type:"button",onClick:function(){return hn()}},u.createElement(S.r,null)," New Ideas")),u.createElement(k.tP,{show:!an&&!((0===z.length||0===rt.length)&&!kt||tn&&202===tn.statusCode||qt)&&!qe},u.createElement(s.Tooltip,{position:"right-start",delay:500,html:u.createElement("div",{style:{width:"max-content",height:"20px",padding:"10px",backgroundColor:"#202020",borderRadius:"8px",color:"white"}},u.createElement("b",null,"A"))},u.createElement("button",{style:{backgroundColor:"forestgreen"},className:"button button-primary",type:"button",onClick:function(){return vn()}},u.createElement(F.r,null)," New Audio")))))),u.createElement("div",{style:{display:"grid",gridTemplateColumns:"auto auto auto",columnGap:15,padding:"10px 0",width:"fit-content"}},o&&Ke&&Ke.length>0&&Ke.find((function(e){return e.value===o.sourceFolderValue}))&&u.createElement("div",{style:{display:"flex",alignItems:"center",width:"fit-content"}},u.createElement("span",{style:{fontWeight:"bold",color:"#676767"}},"Folder:"),"  ",u.createElement(p.Z,{controlClassName:"folder-dropdown-control",className:"folder-dropdown",options:Ke,value:o.sourceFolderValue,onChange:function(){var e=(0,l.Z)(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nt(void 0),"new_folder"===t.value?ve(!0):Je.current=t.value,e.next=4,xn(t.value);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),u.createElement("div",{style:{display:"flex",alignItems:"center",width:"fit-content"}},u.createElement("span",{style:{fontWeight:"bold",color:"#676767"}},"Sort by:"),"  ",u.createElement(p.Z,{className:"sort-dropdown",options:[{value:E.Pb.AZ,label:u.createElement("span",null,"A-Z")},{value:E.Pb.ZA,label:u.createElement("span",null,"Z-A")},{value:E.Pb.NewestFirstCreated,label:u.createElement("span",null,"Newest first (created)")},{value:E.Pb.OldestFirstCreated,label:u.createElement("span",null,"Oldest first (created)")},{value:E.Pb.NewestFirstEdited,label:u.createElement("span",null,"Newest first (edited)")},{value:E.Pb.OldestFirstEdited,label:u.createElement("span",null,"Oldest first (edited)")}],value:o.sourceSortValue,onChange:function(){var e=(0,l.Z)(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nt(void 0),e.next=3,gn(t.value);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),u.createElement("div",{style:{display:"flex",alignItems:"center",width:"fit-content"}}
2,u.createElement("span",{style:{fontWeight:"bold",color:"#676767"}},"Filter by:"),"Â Â ",u.createElement(p.Z,{className:"filter-dropdown",options:[{value:E.aF.Inbox,label:u.createElement("span",null,"Todo")},{value:E.aF.Done,label:u.createElement("span",null,"Done")}],value:o.sourceFilterValue,onChange:function(){var e=(0,l.Z)(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nt(void 0),e.next=3,wn(t.value);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}))),(!rt||0===rt.length)&&kt&&o.sourceFilterValue===E.aF.Inbox&&"all"===o.sourceFolderValue&&u.createElement(L.Z,{style:{height:210}},"Keep track of great ideas. Click on ",u.createElement("b",null,"New Ideas"),".",u.createElement("br",null),"Discover recording insights with AI. Click on ",u.createElement("b",null,"New Audio"),"."),(!rt||0===rt.length)&&kt&&o.sourceFilterValue===E.aF.Done&&"all"===o.sourceFolderValue&&u.createElement(L.Z,{style:{height:210}},"Open a Source and click on ",u.createElement("b",null,"Cluster notes")," to mark it as ",u.createElement("i",null,"Done"),"."),(!rt||0===rt.length)&&kt&&"unfiled"===o.sourceFolderValue&&u.createElement(L.Z,{style:{height:210}},"Sources that are not in any folder will show here."),(!rt||0===rt.length)&&kt&&"all"!==o.sourceFolderValue&&"unfiled"!==o.sourceFolderValue&&u.createElement(L.Z,{style:{height:210}},"Empty folder. Right click on a source and move it to this folder."),u.createElement("div",null,rt.map((function(t,n){return u.createElement("div",{key:n,className:"source-item ".concat(n===Ft?"active":""),style:{cursor:Ht?"pointer":"none",pointerEvents:Ht?"all":"none"},onClick:function(){t.type===E.PO.Ideas?e("/ideas/".concat(t.noteId)):t.type===E.PO.Audio&&e("/audio/".concat(t.noteId))},onMouseEnter:function(){Lt(void 0),Nt(n)},onMouseLeave:function(){Ht&&!ft&&Nt(void 0)},onContextMenu:function(e){e.preventDefault(),Nt(n),Vt(rt[n]),wt({top:e.clientY,left:e.clientX}),dt(!0)}},u.createElement("div",{style:{display:"flex",alignItems:"center"}},t.type===E.PO.Ideas&&u.createElement(w.Z,{size:40,isEditable:"done"!==t.status}),t.type===E.PO.Audio&&u.createElement(b.Z,{size:40,isEditable:"done"!==t.status}),u.createElement("p",{style:{padding:10,fontWeight:"bold"}}," ",t.title||"Untitled"," ")),u.createElement("p",null," ",(0,g.MQ)(t.lastEditDate)," "))}))))),u.createElement(fe,{isOpen:qe,onClose:function(){return Be(!1)}}),u.createElement(W.Z,{isOpen:(0===z.length||0===rt.length)&&!kt||tn&&202===tn.statusCode||qt,message:Xt}),u.createElement(Q,{isOpen:an,onClose:function(){ln(!1)},onTranscribe:function(e,t){ln(!1),function(e,t){yn.apply(this,arguments)}(e,t)}}),u.createElement(te,{isOpen:me&&null!=r,onAddFolder:function(){var e=(0,l.Z)(he().mark((function e(n){var o;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ve(!1),Bt(!0),e.next=4,(0,C.m9)(r,n,t);case 4:return o=e.sent,Bt(!1),Je.current=o,e.next=9,xn(o);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onClose:(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ve(!1),"new_folder"!==o.sourceFolderValue){e.next=4;break}return e.next=4,xn(Je.current);case 4:case"end":return e.stop()}}),e)})))}),u.createElement(ce.Z,{isOpen:be&&null!=ke&&null!=r,title:"Rename folder",placeholder:"Folder name",currentName:Ze,maxLength:30,onRename:function(){var e=(0,l.Z)(he().mark((function e(n){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return we(!1),Bt(!0),e.next=4,(0,C.cd)(r,ke,n,t);case 4:return Bt(!1),e.next=7,xn(null);case 7:return e.next=9,xn(ke);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onClose:function(){return we(!1)}}),u.createElement(ie,{isOpen:Fe&&null!=Tt&&null!=r,sourceFolderId:Tt&&Tt.sourceFolderId,onChosenFolder:function(){var e=(0,l.Z)(he().mark((function e(n){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ne(!1),Bt(!0),"unfiled"!==n){e.next=7;break}return e.next=5,(0,C.In)(r,Tt&&Tt.id,t);case 5:e.next=9;break;case 7:return e.next=9,(0,C.Sp)(r,Tt&&Tt.id,n,t,Tt&&Tt.sourceFolderId);case 9:return Bt(!1),Vt(null),e.next=13,xn(n);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onClose:function(){Vt(null),Ne(!1)}}),u.createElement(ce.Z,{isOpen:oe&&null!=Tt&&null!=r,title:"Rename source",placeholder:"Source name",currentName:Tt&&Tt.title,onRename:function(){var e=(0,l.Z)(he().mark((function e(n){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ae(!1),Bt(!0),e.next=4,(0,C.XH)(r,Tt&&Tt.noteId,Tt&&Tt.id,n,t);case 4:Bt(!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onClose:function(){return ae(!1)}}),u.createElement(ce.Z,{isOpen:$,title:"Rename board",placeholder:"Board name",currentName:_t&&_t.title,onRename:function(){var e=(0,l.Z)(he().mark((function e(n){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ee(!1),Bt(!0),e.next=4,(0,C.RM)(r,_t&&_t.roomId,_t&&_t.id,n,t);case 4:Bt(!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onClose:function(){return ee(!1)}}),u.createElement(le.Z,{isOpen:_e&&null!=Tt&&null!=r,title:"Do you confirm?",message:"This cannot be undone",onConfirm:(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Re(!1),Bt(!0),e.next=4,(0,C.wZ)(r,Tt&&Tt.noteId,Tt&&Tt.id,t,Tt&&Tt.sourceFolderId);case 4:Bt(!1);case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){return Re(!1)}}),u.createElement(le.Z,{isOpen:He&&null!=ke&&null!=r,title:"Do you confirm?",message:"The sources in this folder will not be deleted.",onConfirm:(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ze(!1),Bt(!0),e.next=4,(0,C.UA)(r,ke,t);case 4:return Bt(!1),e.next=7,xn("all");case 7:case"end":return e.stop()}}),e)}))),onCancel:function(){return ze(!1)}}),u.createElement(ue.Z,{isOpen:Te&&null!=_t&&null!=r,roomId:_t&&_t.roomId,onCancel:function(){return Ve(!1)},onConfirm:(0,l.Z)(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ve(!1),Bt(!0),e.next=4,(0,C.BI)(r,_t.roomId,_t.id,t);case 4:Bt(!1);case 5:case"end":return e.stop()}}),e)})))}),mt&&u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:9},onClick:function(){vt(!1),Lt(void 0)},onContextMenu:function(e){e.preventDefault()}}
2,u.createElement("div",{style:{top:window.innerHeight-bt.top<140?bt.top-140:bt.top,left:window.innerWidth-bt.left<250?bt.left-250:bt.left,width:250,height:"auto",position:"absolute",zIndex:10,borderRadius:10,padding:10,display:"grid",gridGap:10,backgroundColor:"white",border:"gainsboro solid 2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 5px 15px"}},u.createElement("button",{type:"button",className:"button button-secondary",style:{width:"100%"},onClick:function(){return ee(!0)}},u.createElement(R.r,null),"  Rename"),u.createElement("button",{type:"button",className:"button button-danger",style:{width:"100%"},onClick:function(){vt(!1),Ve(!0)}},u.createElement(V.r,null),"  Delete")))),ft&&u.createElement(u.Fragment,null,u.createElement("div",{style:{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:9},onClick:function(){dt(!1),Nt(void 0)},onContextMenu:function(e){e.preventDefault()}},u.createElement("div",{style:{top:window.innerHeight-bt.top<140?bt.top-140:bt.top,left:window.innerWidth-bt.left<250?bt.left-250:bt.left,width:250,height:"auto",position:"absolute",zIndex:10,borderRadius:10,padding:10,display:"grid",gridGap:10,backgroundColor:"white",border:"gainsboro solid 2px",boxShadow:"rgba(0, 0, 0, 0.1) 0px 5px 15px"}},o.sourceFilterValue!==E.aF.Done&&u.createElement("button",{type:"button",className:"button button-secondary",style:{width:"100%"},onClick:function(){return ae(!0)}},u.createElement(R.r,null),"  Rename"),u.createElement("button",{type:"button",className:"button button-secondary",style:{width:"100%"},onClick:function(){dt(!1),Ne(!0)}},u.createElement(T,null),"  Move to folder"),o.sourceFilterValue!==E.aF.Done&&u.createElement("button",{type:"button",className:"button button-danger",style:{width:"100%"},onClick:function(){dt(!1),Re(!0)}},u.createElement(V.r,null),"  Delete"))))),quickTips:u.createElement(u.Fragment,null,void 0===Zt&&void 0===Ft&&u.createElement(u.Fragment,null,u.createElement("span",null,"Add Board",u.createElement("span",null,"   ",u.createElement("b",null,"B"))),u.createElement("span",null,"Add Ideas",u.createElement("span",null,"   ",u.createElement("b",null,"I"))),u.createElement("span",null,"Add Audio Recording",u.createElement("span",null,"   ",u.createElement("b",null,"A"))),z&&z.length>0&&u.createElement("span",null,"Board focus",u.createElement("span",null,"   ",u.createElement("b",null,"â")," and  ",u.createElement("b",null,"â"))),B&&B.length>0&&u.createElement("span",null,"Source focus",u.createElement("span",null,"   ",u.createElement("b",null,"â")," and  ",u.createElement("b",null,"â")))),void 0!==Zt&&u.createElement(u.Fragment,null,u.createElement("span",null,"Open",u.createElement("span",null,"   ",u.createElement("b",null,"enter"))),u.createElement("span",null,"Rename",u.createElement("span",null,"   ",u.createElement("b",null,"T"))),u.createElement("span",null,"Delete",u.createElement("span",null,"   ",u.createElement("b",null,"â«")))),void 0!==Ft&&u.createElement(u.Fragment,null,u.createElement("span",null,"Open",u.createElement("span",null,"   ",u.createElement("b",null,"enter"))),u.createElement("span",null,"Rename",u.createElement("span",null,"   ",u.createElement("b",null,"T"))),u.createElement("span",null,"Move to folder",u.createElement("span",null,"   ",u.createElement("b",null,"M"))),u.createElement("span",null,"Delete",u.createElement("span",null,"   ",u.createElement("b",null,"â«")))))})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.