Skip to content

Instantly share code, notes, and snippets.

@cogniflow-admin
Last active July 3, 2024 14:08
Show Gist options
  • Save cogniflow-admin/36ea5792b3d0d5ae81d41b270cc8c3d3 to your computer and use it in GitHub Desktop.
Save cogniflow-admin/36ea5792b3d0d5ae81d41b270cc8c3d3 to your computer and use it in GitHub Desktop.
name: Cogniflow-Excel-AddIn-v2
description: ''
host: EXCEL
api_set: {}
script:
content: "var Tt=Object.defineProperty;var yt=(e,t,n)=>t in e?Tt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ue=(e,t,n)=>(yt(e,typeof t!=\"symbol\"?t+\"\":t,n),n);(function(){const t=document.createElement(\"link\").relList;if(t&&t.supports&&t.supports(\"modulepreload\"))return;for(const s of document.querySelectorAll('link[rel=\"modulepreload\"]'))o(s);new MutationObserver(s=>{for(const r of s)if(r.type===\"childList\")for(const l of r.addedNodes)l.tagName===\"LINK\"&&l.rel===\"modulepreload\"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerPolicy&&(r.referrerPolicy=s.referrerPolicy),s.crossOrigin===\"use-credentials\"?r.credentials=\"include\":s.crossOrigin===\"anonymous\"?r.credentials=\"omit\":r.credentials=\"same-origin\",r}function o(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}})();var ie,f,je,U,be,ze,me,Ze,B={},Je=[],At=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,le=Array.isArray;function D(e,t){for(var n in t)e[n]=t[n];return e}function Qe(e){var t=e.parentNode;t&&t.removeChild(e)}function ve(e,t,n){var o,s,r,l={};for(r in t)r==\"key\"?o=t[r]:r==\"ref\"?s=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?ie.call(arguments,2):n),typeof e==\"function\"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return J(e,l,o,s,null)}function J(e,t,n,o,s){var r={type:e,props:t,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:s??++je};return s==null&&f.vnode!=null&&f.vnode(r),r}function V(e){return e.children}function P(e,t){this.props=e,this.context=t}function j(e,t){if(t==null)return e.__?j(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==\"function\"?j(e):null}function Ye(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Ye(e)}}function ge(e){(!e.__d&&(e.__d=!0)&&U.push(e)&&!ee.__r++||be!==f.debounceRendering)&&((be=f.debounceRendering)||ze)(ee)}function ee(){var e,t,n,o,s,r,l,c,_;for(U.sort(me);e=U.shift();)e.__d&&(t=U.length,o=void 0,s=void 0,r=void 0,c=(l=(n=e).__v).__e,(_=n.__P)&&(o=[],s=[],(r=D({},l)).__v=l.__v+1,Ae(_,l,r,n.__n,_.ownerSVGElement!==void 0,l.__h!=null?[c]:null,o,c??j(l),l.__h,s),nt(o,l,s),l.__e!=c&&Ye(l)),U.length>t&&U.sort(me));ee.__r=0}function Ke(e,t,n,o,s,r,l,c,_,p,d){var i,g,m,u,h,b,T,y,k,w=0,E=o&&o.__k||Je,H=E.length,A=H,R=t.length;for(n.__k=[],i=0;i<R;i++)(u=n.__k[i]=(u=t[i])==null||typeof u==\"boolean\"||typeof u==\"function\"?null:typeof u==\"string\"||typeof u==\"number\"||typeof u==\"bigint\"?J(null,u,null,null,u):le(u)?J(V,{children:u},null,null,null):u.__b>0?J(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):u)!=null?(u.__=n,u.__b=n.__b+1,(y=Ct(u,E,T=i+w,A))===-1?m=B:(m=E[y]||B,E[y]=void 0,A--),Ae(e,u,m,s,r,l,c,_,p,d),h=u.__e,(g=u.ref)&&m.ref!=g&&(m.ref&&Ce(m.ref,null,u),d.push(g,u.__c||h,u)),h!=null&&(b==null&&(b=h),(k=m===B||m.__v===null)?y==-1&&w--:y!==T&&(y===T+1?w++:y>T?A>R-T?w+=y-T:w--:w=y<T&&y==T-1?y-T:0),T=i+w,typeof u.type!=\"function\"||y===T&&m.__k!==u.__k?typeof u.type==\"function\"||y===T&&!k?u.__d!==void 0?(_=u.__d,u.__d=void 0):_=h.nextSibling:_=tt(e,h,_):_=et(u,_,e),typeof n.type==\"function\"&&(n.__d=_))):(m=E[i])&&m.key==null&&m.__e&&(m.__e==_&&(_=j(m)),Te(m,m,!1));for(n.__e=b,i=H;i--;)E[i]!=null&&(typeof n.type==\"function\"&&E[i].__e!=null&&E[i].__e==n.__d&&(n.__d=E[i].__e.nextSibling),Te(E[i],E[i]))}function et(e,t,n){for(var o,s=e.__k,r=0;s&&r<s.length;r++)(o=s[r])&&(o.__=e,t=typeof o.type==\"function\"?et(o,t,n):tt(n,o.__e,t));return t}function te(e,t){return t=t||[],e==null||typeof e==\"boolean\"||(le(e)?e.some(function(n){te(n,t)}):t.push(e)),t}function tt(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Ct(e,t,n,o){var s=e.key,r=e.type,l=n-1,c=n+1,_=t[n];if(_===null||_&&s==_.key&&r===_.type)return n;if(o>(_!=null?1:0))for(;l>=0||c<t.length;){if(l>=0){if((_=t[l])&&s==_.key&&r===_.type)return l;l--}if(c<t.length){if((_=t[c])&&s==_.key&&r===_.type)return c;c++}}return-1}function Et(e,t,n,o,s){var r;for(r in n)r===\"children\"||r===\"key\"||r in t||ne(e,r,null,n[r],o);for(r in t)s&&typeof t[r]!=\"function\"||r===\"children\"||r===\"key\"||r===\"value\"||r===\"checked\"||n[r]===t[r]||ne(e,r,t[r],n[r],o)}function we(e,t,n){t[0]===\"-\"?e.setProperty(t,n??\"\"):e[t]=n==null?\"\":typeof n!=\"number\"||At.test(t)?n:n+\"px\"}function ne(e,t,n,o,s){var r;e:if(t===\"style\")if(typeof n==\"string\")e.style.cssText=n;else{if(typeof o==\"string\"&&(e.style.cssText=o=\"\"),o)for(t in o)n&&t in n||we(e.style,t,\"\");if(n)for(t in n)o&&n[t]===o[t]||we(e.style,t,n[t])}else if(t[0]===\"o\"&&t[1]===\"n\")r=t!==(t=t.replace(/Capture$/,\"\")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=n,n?o||e.addEventListener(t,r?Se:Ie,r):e.removeEventListener(t,r?Se:Ie,r);else if(t!==\"dangerouslySetInnerHTML\"){if(s)t=t.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(t!==\"width\"&&t!==\"height\"&&t!==\"href\"&&t!==\"list\"&&t!==\"form\"&&t!==\"tabIndex\"&&t!==\"download\"&&t!==\"rowSpan\"&&t!==\"colSpan\"&&t in e)try{e[t]=n??\"\";break e}catch{}typeof n==\"function\"||(n==null||n===!1&&t[4]!==\"-\"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ie(e){return this.l[e.type+!1](f.event?f.event(e):e)}function Se(e){return this.l[e.type+!0](f.event?f.event(e):e)}function Ae(e,t,n,o,s,r,l,c,_,p){var d,i,g,m,u,h,b,T,y,k,w,E,H,A,R,S=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(_=n.__h,c=t.__e=n.__e,t.__h=null,r=[c]),(d=f.__b)&&d(t);e:if(typeof S==\"function\")try{if(T=t.props,y=(d=S.contextType)&&o[d.__c],k=d?y?y.props.value:d.__:o,n.__c?b=(i=t.__c=n.__c).__=i.__E:(\"prototype\"in S&&S.prototype.render?t.__c=i=new S(T,k):(t.__c=i=new P(T,k),i.constructor=S,i.render=wt),y&&y.sub(i),i.props=T,i.state||(i.state={}),i.context=k,i.__n=o,g=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),S.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=D({},i.__s)),D(i.__s,S.getDerivedStateFromProps(T,i.__s))),m=i.props,u=i.state,i.__v=t,g)S.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(S.getDerivedStateFromProps==null&&T!==m&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(T,k),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(T,i.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(i.props=T,i.state=i.__s,i.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(F){F&&(F.__=t)}),w=0;w<i._sb.length;w++)i.__h.push(i._sb[w]);i._sb=[],i.__h.length&&l.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(T,i.__s,k),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(m,u,h)})}if(i.context=k,i.props=T,i.__P=e,i.__e=!1,E=f.__r,H=0,\"prototype\"in S&&S.prototype.render){for(i.state=i.__s,i.__d=!1,E&&E(t),d=i.render(i.props,i.state,i.context),A=0;A<i._sb.length;A++)i.__h.push(i._sb[A]);i._sb=[]}else do i.__d=!1,E&&E(t),d=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++H<25);i.state=i.__s,i.getChildContext!=null&&(o=D(D({},o),i.getChildContext())),g||i.getSnapshotBeforeUpdate==null||(h=i.getSnapshotBeforeUpdate(m,u)),Ke(e,le(R=d!=null&&d.type===V&&d.key==null?d.props.children:d)?R:[R],t,n,o,s,r,l,c,_,p),i.base=t.__e,t.__h=null,i.__h.length&&l.push(i),b&&(i.__E=i.__=null)}catch(F){t.__v=null,(_||r!=null)&&(t.__e=c,t.__h=!!_,r[r.indexOf(c)]=null),f.__e(F,t,n)}else r==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=bt(n.__e,t,n,o,s,r,l,_,p);(d=f.diffed)&&d(t)}function nt(e,t,n){for(var o=0;o<n.length;o++)Ce(n[o],n[++o],n[++o]);f.__c&&f.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(r){r.call(s)})}catch(r){f.__e(r,s.__v)}})}function bt(e,t,n,o,s,r,l,c,_){var p,d,i,g=n.props,m=t.props,u=t.type,h=0;if(u===\"svg\"&&(s=!0),r!=null){for(;h<r.length;h++)if((p=r[h])&&\"setAttribute\"in p==!!u&&(u?p.localName===u:p.nodeType===3)){e=p,r[h]=null;break}}if(e==null){if(u===null)return document.createTextNode(m);e=s?document.createElementNS(\"http://www.w3.org/2000/svg\",u):document.createElement(u,m.is&&m),r=null,c=!1}if(u===null)g===m||c&&e.data===m||(e.data=m);else{if(r=r&&ie.call(e.childNodes),d=(g=n.props||B).dangerouslySetInnerHTML,i=m.dangerouslySetInnerHTML,!c){if(r!=null)for(g={},h=0;h<e.attributes.length;h++)g[e.attributes[h].name]=e.attributes[h].value;(i||d)&&(i&&(d&&i.__html==d.__html||i.__html===e.innerHTML)||(e.innerHTML=i&&i.__html||\"\"))}if(Et(e,m,g,s,c),i)t.__k=[];else if(Ke(e,le(h=t.props.children)?h:[h],t,n,o,s&&u!==\"foreignObject\",r,l,r?r[0]:n.__k&&j(n,0),c,_),r!=null)for(h=r.length;h--;)r[h]!=null&&Qe(r[h]);c||(\"value\"in m&&(h=m.value)!==void 0&&(h!==e.value||u===\"progress\"&&!h||u===\"option\"&&h!==g.value)&&ne(e,\"value\",h,g.value,!1),\"checked\"in m&&(h=m.checked)!==void 0&&h!==e.checked&&ne(e,\"checked\",h,g.checked,!1))}return e}function Ce(e,t,n){try{typeof e==\"function\"?e(t):e.current=t}catch(o){f.__e(o,n)}}function Te(e,t,n){var o,s;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Ce(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&Te(o[s],t,n||typeof e.type!=\"function\");n||e.__e==null||Qe(e.__e),e.__=e.__e=e.__d=void 0}function wt(e,t,n){return this.constructor(e,n)}function It(e,t,n){var o,s,r,l;f.__&&f.__(e,t),s=(o=typeof n==\"function\")?null:n&&n.__k||t.__k,r=[],l=[],Ae(t,e=(!o&&n||t).__k=ve(V,null,[e]),s||B,B,t.ownerSVGElement!==void 0,!o&&n?[n]:s?null:t.firstChild?ie.call(t.childNodes):null,r,!o&&n?n:s?s.__e:t.firstChild,o,l),nt(r,e,l)}function ot(e,t){var n={__c:t=\"__cC\"+Ze++,__:e,Consumer:function(o,s){return o.children(s)},Provider:function(o){var s,r;return this.getChildContext||(s=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&s.some(function(c){c.__e=!0,ge(c)})},this.sub=function(l){s.push(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){s.splice(s.indexOf(l),1),c&&c.call(l)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}ie=Je.slice,f={__e:function(e,t,n,o){for(var s,r,l;t=t.__;)if((s=t.__c)&&!s.__)try{if((r=s.constructor)&&r.getDerivedStateFromError!=null&&(s.setState(r.getDerivedStateFromError(e)),l=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,o||{}),l=s.__d),l)return s.__E=s}catch(c){e=c}throw e}},je=0,P.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=D({},this.state),typeof e==\"function\"&&(e=e(D({},n),this.props)),e&&D(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),ge(this))},P.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ge(this))},P.prototype.render=V,U=[],ze=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,me=function(e,t){return e.__v.__b-t.__v.__b},ee.__r=0,Ze=0;var G,C,de,ke,oe=0,rt=[],Q=[],Ne=f.__b,Re=f.__r,Oe=f.diffed,xe=f.__c,Me=f.unmount;function ae(e,t){f.__h&&f.__h(C,e,oe||t),oe=0;var n=C.__H||(C.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Q}),n.__[e]}function I(e){return oe=1,St(lt,e)}function St(e,t,n){var o=ae(G++,2);if(o.t=e,!o.__c&&(o.__=[n?n(t):lt(void 0,t),function(c){var _=o.__N?o.__N[0]:o.__[0],p=o.t(_,c);_!==p&&(o.__N=[p,o.__[1]],o.__c.setState({}))}],o.__c=C,!C.u)){var s=function(c,_,p){if(!o.__c.__H)return!0;var d=o.__c.__H.__.filter(function(g){return g.__c});if(d.every(function(g){return!g.__N}))return!r||r.call(this,c,_,p);var i=!1;return d.forEach(function(g){if(g.__N){var m=g.__[0];g.__=g.__N,g.__N=void 0,m!==g.__[0]&&(i=!0)}}),!(!i&&o.__c.props===c)&&(!r||r.call(this,c,_,p))};C.u=!0;var r=C.shouldComponentUpdate,l=C.componentWillUpdate;C.componentWillUpdate=function(c,_,p){if(this.__e){var d=r;r=void 0,s(c,_,p),r=d}l&&l.call(this,c,_,p)},C.shouldComponentUpdate=s}return o.__N||o.__}function q(e,t){var n=ae(G++,3);!f.__s&&it(n.__H,t)&&(n.__=e,n.i=t,C.__H.__h.push(n))}function kt(e){return oe=5,Nt(function(){return{current:e}},[])}function Nt(e,t){var n=ae(G++,7);return it(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function st(e){var t=C.context[e.__c],n=ae(G++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(C)),t.props.value):e.__}function Rt(){for(var e;e=rt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Y),e.__H.__h.forEach(ye),e.__H.__h=[]}catch(t){e.__H.__h=[],f.__e(t,e.__v)}}f.__b=function(e){C=null,Ne&&Ne(e)},f.__r=function(e){Re&&Re(e),G=0;var t=(C=e.__c).__H;t&&(de===C?(t.__h=[],C.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Q,n.__N=n.i=void 0})):(t.__h.forEach(Y),t.__h.forEach(ye),t.__h=[],G=0)),de=C},f.diffed=function(e){Oe&&Oe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rt.push(t)!==1&&ke===f.requestAnimationFrame||((ke=f.requestAnimationFrame)||Ot)(Rt)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Q&&(n.__=n.__V),n.i=void 0,n.__V=Q})),de=C=null},f.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Y),n.__h=n.__h.filter(function(o){return!o.__||ye(o)})}catch(o){t.some(function(s){s.__h&&(s.__h=[])}),t=[],f.__e(o,n.__v)}}),xe&&xe(e,t)},f.unmount=function(e){Me&&Me(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Y(o)}catch(s){t=s}}),n.__H=void 0,t&&f.__e(t,n.__v))};var Pe=typeof requestAnimationFrame==\"function\";function Ot(e){var t,n=function(){clearTimeout(o),Pe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(n,100);Pe&&(t=requestAnimationFrame(n))}function Y(e){var t=C,n=e.__c;typeof n==\"function\"&&(e.__c=void 0,n()),C=t}function ye(e){var t=C;e.__c=e.__(),C=t}function it(e,t){return!e||e.length!==t.length||t.some(function(n,o){return n!==e[o]})}function lt(e,t){return typeof t==\"function\"?t(e):t}const xt=\"https://api.cogniflow.ai\";class Mt{constructor(t){ue(this,\"get\",this.req(\"GET\"));ue(this,\"post\",this.req(\"POST\"));this.headers={\"Content-Type\":\"application/json\"},localStorage.getItem(\"access_token\")&&this.setTokenInHeaders(localStorage.getItem(\"access_token\")),this.baseUrl=t}setTokenInHeaders(t){this.headers={...this.headers,Authorization:`Bearer ${t}`}}req(t){return(n,o,s,r=\"normal\")=>r===\"normal\"?fetch(`${this.baseUrl}/${n}`,{method:t,headers:{...this.headers,...s??{}},body:o}).then(l=>{if(!l.ok){const c=new Error(\"HTTP status code: \"+l.status);throw c.response=l,c.status=l.status,c}return l.json()}).then(l=>l):fetchRetry(`${this.baseUrl}/${n}`,12e4,200,{method:t,headers:{...this.headers,...s??{}},body:o}).then(l=>{if(!l.ok){const c=new Error(\"HTTP status code: \"+l.status);throw c.response=l,c.status=l.status,c}return l.json()}).then(l=>l)}}const X=new Mt(xt),Pt=e=>X.post(\"login\",new URLSearchParams({...e}),{\"Content-Type\":\"application/x-www-form-urlencoded\"}),Lt=()=>X.get(\"user/\"),$t=({visibility:e=0,type:t})=>{const n=t.toString?`&type=${t}`:\"\";return X.get(`experiment/?visibility=${e}${n}`)},Dt=e=>X.get(`experiment/${e}`);var Ht=0;function a(e,t,n,o,s,r){var l,c,_={};for(c in t)c==\"ref\"?l=t[c]:_[c]=t[c];var p={type:e,props:_,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ht,__source:s,__self:r};if(typeof e==\"function\"&&(l=e.defaultProps))for(c in l)_[c]===void 0&&(_[c]=l[c]);return f.vnode&&f.vnode(p),p}const fe=\"access_token\",at=ot({user:{},login:()=>{},token:null}),ce=()=>st(at),Ft=({children:e})=>{const[t,n]=I({}),[o,s]=I(null);q(()=>{o&&Lt().then(c=>{n(c)}).catch(c=>{})},[n,o]),q(()=>{const c=localStorage.getItem(fe);c?(X.setTokenInHeaders(c),s(!0)):s(!1)},[]);const r=(c,_)=>Pt({username:c,password:_}).then(({access_token:p,...d})=>{X.setTokenInHeaders(p),localStorage.setItem(fe,p),s(!0)}),l=()=>{localStorage.removeItem(fe),X.setTokenInHeaders(\"\"),s(!1)};return a(at.Provider,{value:{login:r,logout:l,user:t,isAuthenticated:o},children:e})},ct=ot({navigate:()=>{},path:\"\"}),_e=()=>st(ct),Ut=({children:e})=>{const[t,n]=I(\"\"),[o,s]=I({}),r=(l,c={})=>{n(l),s(_=>({..._,...c}))};return a(ct.Provider,{value:{path:t,navigate:r,params:o},children:e})};function Xt(e,t){for(var n in t)e[n]=t[n];return e}function Le(e,t){for(var n in e)if(n!==\"__source\"&&!(n in t))return!0;for(var o in t)if(o!==\"__source\"&&e[o]!==t[o])return!0;return!1}function $e(e){this.props=e}($e.prototype=new P).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return Le(this.props,e)||Le(this.state,t)};var De=f.__b;f.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),De&&De(e)};var Bt=f.__e;f.__e=function(e,t,n,o){if(e.then){for(var s,r=t;r=r.__;)if((s=r.__c)&&s.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),s.__c(e,t)}Bt(e,t,n,o)};var He=f.unmount;function _t(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(o){typeof o.__c==\"function\"&&o.__c()}),e.__c.__H=null),(e=Xt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(o){return _t(o,t,n)})),e}function ut(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(o){return ut(o,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function pe(){this.__u=0,this.t=null,this.__b=null}function dt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function z(){this.u=null,this.o=null}f.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),He&&He(e)},(pe.prototype=new P).__c=function(e,t){var n=t.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var s=dt(o.__v),r=!1,l=function(){r||(r=!0,n.__R=null,s?s(c):c())};n.__R=l;var c=function(){if(!--o.__u){if(o.state.__a){var p=o.state.__a;o.__v.__k[0]=ut(p,p.__c.__P,p.__c.__O)}var d;for(o.setState({__a:o.__b=null});d=o.t.pop();)d.forceUpdate()}},_=t.__h===!0;o.__u++||_||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(l,l)},pe.prototype.componentWillUnmount=function(){this.t=[]},pe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(\"div\"),o=this.__v.__k[0].__c;this.__v.__k[0]=_t(this.__b,n,o.__O=o.__P)}this.__b=null}var s=t.__a&&ve(V,null,e.fallback);return s&&(s.__h=null),[ve(V,null,t.__a?null:e.children),s]};var Fe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(z.prototype=new P).__a=function(e){var t=this,n=dt(t.__v),o=t.o.get(e);return o[0]++,function(s){var r=function(){t.props.revealOrder?(o.push(s),Fe(t,e,o)):s()};n?n(r):r()}},z.prototype.render=function(e){this.u=null,this.o=new Map;var t=te(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Fe(e,n,t)})};var Wt=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,Vt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Gt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qt=/[A-Z0-9]/g,jt=typeof document<\"u\",zt=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/:/fil|che|ra/).test(e)};P.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(P.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ue=f.event;function Zt(){}function Jt(){return this.cancelBubble}function Qt(){return this.defaultPrevented}f.event=function(e){return Ue&&(e=Ue(e)),e.persist=Zt,e.isPropagationStopped=Jt,e.isDefaultPrevented=Qt,e.nativeEvent=e};var Yt={enumerable:!1,configurable:!0,get:function(){return this.class}},Xe=f.vnode;f.vnode=function(e){typeof e.type==\"string\"&&function(t){var n=t.props,o=t.type,s={};for(var r in n){var l=n[r];if(!(r===\"value\"&&\"defaultValue\"in n&&l==null||jt&&r===\"children\"&&o===\"noscript\"||r===\"class\"||r===\"className\")){var c=r.toLowerCase();r===\"defaultValue\"&&\"value\"in n&&n.value==null?r=\"value\":r===\"download\"&&l===!0?l=\"\":c===\"ondoubleclick\"?r=\"ondblclick\":c!==\"onchange\"||o!==\"input\"&&o!==\"textarea\"||zt(n.type)?c===\"onfocus\"?r=\"onfocusin\":c===\"onblur\"?r=\"onfocusout\":Gt.test(r)?r=c:o.indexOf(\"-\")===-1&&Vt.test(r)?r=r.replace(qt,\"-$&\").toLowerCase():l===null&&(l=void 0):c=r=\"oninput\",c===\"oninput\"&&s[r=c]&&(r=\"oninputCapture\"),s[r]=l}}o==\"select\"&&s.multiple&&Array.isArray(s.value)&&(s.value=te(n.children).forEach(function(_){_.props.selected=s.value.indexOf(_.props.value)!=-1})),o==\"select\"&&s.defaultValue!=null&&(s.value=te(n.children).forEach(function(_){_.props.selected=s.multiple?s.defaultValue.indexOf(_.props.value)!=-1:s.defaultValue==_.props.value})),n.class&&!n.className?(s.class=n.class,Object.defineProperty(s,\"className\",Yt)):(n.className&&!n.class||n.class&&n.className)&&(s.class=s.className=n.className),t.props=s}(e),e.$$typeof=Wt,Xe&&Xe(e)};var Be=f.__r;f.__r=function(e){Be&&Be(e),e.__c};var We=f.diffed;f.diffed=function(e){We&&We(e);var t=e.props,n=e.__e;n!=null&&e.type===\"textarea\"&&\"value\"in t&&t.value!==n.value&&(n.value=t.value==null?\"\":t.value)};const Kt=()=>a(\"svg\",{id:\"Capa_1\",\"data-name\":\"Capa 1\",xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 841.89 235.28\",class:\"jss32\",children:[a(\"defs\",{}),a(\"title\",{children:\"1a\"}),a(\"path\",{style:{fill:\"#141624\"},class:\"cls-1\",d:\"M169.59,144.1a30.6,30.6,0,0,1,0-43.49v-.06h0a30.72,30.72,0,0,1,41.44-1.86,5.32,5.32,0,0,1,2,3.1c.07.9.11,1.44.11,1.63a6.16,6.16,0,0,1-1.41,3.88c-1.12,1.32-2.13,2-3,2.09s-1.4.11-1.55.11a6.56,6.56,0,0,1-4.05-1.41,18.53,18.53,0,0,0-24.94,27.36,18.54,18.54,0,0,0,24.94,1.13,6.16,6.16,0,0,1,3.88-1.41,6,6,0,0,1,4.73,2.2,6.18,6.18,0,0,1-.73,8.61,30.18,30.18,0,0,1-9.29,5.29,29.35,29.35,0,0,1-10.41,1.86A29.75,29.75,0,0,1,169.59,144.1Z\"}),a(\"path\",{style:{fill:\"#141624\"},class:\"cls-1\",d:\"M244,144.1a30.72,30.72,0,0,1,0-43.49l.05-.06a30.8,30.8,0,0,1,52.53,21.79A30.78,30.78,0,0,1,244,144.1Zm34.85-8.67a18.52,18.52,0,1,0-13.09,5.43A17.84,17.84,0,0,0,278.88,135.43Z\"}),a(\"path\",{class:\"cls-1\",style:{fill:\"#141624\"},d:\"M335.54,176.5a30.56,30.56,0,0,1-9.51-7.32,6.18,6.18,0,0,1-1.47-4,6.06,6.06,0,0,1,2.09-4.62,6,6,0,0,1,3.94-1.52,6.12,6.12,0,0,1,4.67,2.09,19.75,19.75,0,0,0,5.74,4.44,18.07,18.07,0,0,0,8.22,1.92,18.64,18.64,0,0,0,18.52-18.58v-2a30.82,30.82,0,0,1-49.37-24.54,29.63,29.63,0,0,1,9.06-21.73v-.06a30.78,30.78,0,0,1,43.52,0A30.78,30.78,0,0,1,380,122.17v26.74a30.86,30.86,0,0,1-30.8,30.8A30.18,30.18,0,0,1,335.54,176.5Zm26.74-41.07a18.53,18.53,0,1,0-13.06,5.43A17.82,17.82,0,0,0,362.28,135.43Z\"}),a(\"path\",{class:\"cls-1\",style:{fill:\"#141624\"},d:\"M442.33,151.33a5.91,5.91,0,0,1-1.8-4.33V114.23a9,9,0,0,0-3.55-7,15.46,15.46,0,0,0-19.42,0,9,9,0,0,0-3.55,7V147a6.15,6.15,0,0,1-6.13,6.13,5.82,5.82,0,0,1-4.31-1.8A6,6,0,0,1,401.8,147V97.62a6,6,0,0,1,6.08-6.08,6,6,0,0,1,5.63,3.6,26.9,26.9,0,0,1,13.79-3.6,26.22,26.22,0,0,1,17.62,6.36q7.89,6.7,7.88,16.33V147a6.13,6.13,0,0,1-10.47,4.33Z\"}),a(\"path\",{class:\"cls-1\",style:{fill:\"#141624\"},d:\"M476.38,78.14a5.9,5.9,0,0,1-1.8-4.33V71.05a6.14,6.14,0,0,1,12.28,0v2.76a6.14,6.14,0,0,1-10.48,4.33Zm0,73.19a5.91,5.91,0,0,1-1.8-4.33V97.62a5.84,5.84,0,0,1,1.8-4.31,6.19,6.19,0,0,1,8.67,0,5.85,5.85,0,0,1,1.81,4.31V147a6.14,6.14,0,0,1-10.48,4.33Z\"}),a(\"path\",{class:\"cls-2\",style:{fill:\"#eb5e60\"},d:\"M510.8,177.93a5.87,5.87,0,0,1-1.77-4.31V122.34a29.7,29.7,0,0,1,9-21.73l.05-.06a29.74,29.74,0,0,1,21.74-9,6,6,0,0,1,4.33,1.77,5.84,5.84,0,0,1,1.8,4.31,6.15,6.15,0,0,1-6.13,6.14,18.64,18.64,0,0,0-18.58,18.58v18.52h18.58a6.14,6.14,0,0,1,0,12.27H521.25v20.49a6.08,6.08,0,0,1-6.08,6.09A6,6,0,0,1,510.8,177.93Z\"}),a(\"path\",{class:\"cls-2\",style:{fill:\"#eb5e60\"},d:\"M588.57,153.13a20.91,20.91,0,0,1-20.83-20.83V71.05a6.14,6.14,0,0,1,12.28,0V132.3a8.55,8.55,0,0,0,8.55,8.56h10.81a5.91,5.91,0,0,1,4.37,1.8,6.19,6.19,0,0,1,0,8.67,5.91,5.91,0,0,1-4.37,1.8Z\"}),a(\"path\",{class:\"cls-2\",style:{fill:\"#eb5e60\"},d:\"M630.7,144.1a30.72,30.72,0,0,1,0-43.49l.05-.06a30.8,30.8,0,0,1,52.53,21.79A30.78,30.78,0,0,1,630.7,144.1Zm34.85-8.67a18.52,18.52,0,1,0-13.09,5.43A17.88,17.88,0,0,0,665.55,135.43Z\"}),a(\"path\",{class:\"cls-2\",style:{fill:\"#eb5e60\"},d:\"M761.62,152.79a6.22,6.22,0,0,1-3.55-3l-11.76-23.53-11.77,23.53a5.86,5.86,0,0,1-2.7,2.71,6.36,6.36,0,0,1-2.76.67,5.64,5.64,0,0,1-1.92-.34,6.18,6.18,0,0,1-3.54-3L699,100.38a6.37,6.37,0,0,1-.68-2.76,5.83,5.83,0,0,1,.34-1.91,6.3,6.3,0,0,1,3-3.55,6.47,6.47,0,0,1,2.7-.62,5.88,5.88,0,0,1,5.52,3.38l19.2,38.45,11.76-23.53a5.92,5.92,0,0,1,5.47-3.38,6.3,6.3,0,0,1,2.75.68,5.91,5.91,0,0,1,2.71,2.7l11.76,23.53,19.2-38.45a5.88,5.88,0,0,1,5.52-3.38,6.47,6.47,0,0,1,2.7.62,5.84,5.84,0,0,1,3.38,5.46,6.37,6.37,0,0,1-.68,2.76L769,149.75a6.21,6.21,0,0,1-2.75,2.71,6.05,6.05,0,0,1-2.71.67A5.62,5.62,0,0,1,761.62,152.79Z\"}),a(\"polyline\",{class:\"cls-3\",style:{fill:\"none\",stroke:\"#eb5e60\",strokeLinecap:\"round\",strokeMiterlimit:10,strokeWidth:\"14px\"},points:\"75.47 79.2 47.03 119.07 75.47 164.07\"}),a(\"polyline\",{class:\"cls-3\",style:{fill:\"none\",stroke:\"#eb5e60\",strokeLinecap:\"round\",strokeMiterlimit:10,strokeWidth:\"14px\"},points:\"113.2 79.2 84.76 119.07 113.2 164.07\"}),a(\"line\",{class:\"cls-3\",x1:\"101.72\",y1:\"145.91\",x2:\"133.07\",y2:\"104.48\"})]}),en=()=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",style:\"fill: rgba(0, 0, 0, 1);transform: ;msFilter:;\",children:[a(\"path\",{d:\"M16 13v-2H7V8l-5 4 5 4v-3z\"}),a(\"path\",{d:\"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z\"})]}),tn=()=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",style:\"fill: rgba(0, 0, 0, 1);transform: ;msFilter:;\",children:a(\"path\",{d:\"m6.293 13.293 1.414 1.414L12 10.414l4.293 4.293 1.414-1.414L12 7.586z\"})}),nn=()=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",style:\"fill: rgba(0, 0, 0, 1);transform: ;msFilter:;\",children:a(\"path\",{d:\"M16.293 9.293 12 13.586 7.707 9.293l-1.414 1.414L12 16.414l5.707-5.707z\"})}),on=()=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",width:\"24\",height:\"24\",viewBox:\"0 0 24 24\",style:\"fill: rgba(0, 0, 0, 1);transform: ;msFilter:;\",children:a(\"path\",{d:\"M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z\"})}),v={TEXT_CLASSIFICATION:0,TEXT_TRANSLATION:1,TEXT_NER_RESPONSE:2,TEXT_QANDA:3,SMART_EXTRACTOR:4,IMAGE_CLASSIFICATION:100,IMAGE_OBJECT_DETECTION:101,IMAGE_OCR:102,IMAGE_FACE_SIMILARITY:103,IMAGE_CUSTOM_ENTITY_EXTRACTOR:4,AUDIO_CLASSIFICATION:200,AUDIO_SPEECH2TEXT:201},rn=[v.TEXT_CLASSIFICATION,v.TEXT_TRANSLATION,v.TEXT_NER_RESPONSE,v.TEXT_QANDA,v.SMART_EXTRACTOR,v.IMAGE_CLASSIFICATION,v.IMAGE_OBJECT_DETECTION,v.IMAGE_OCR,v.AUDIO_CLASSIFICATION,v.AUDIO_SPEECH2TEXT],K={TEXT:0,IMAGE:1,AUDIO:2},ft={[K.TEXT]:\"Text\",[K.IMAGE]:\"Image\",[K.AUDIO]:\"Audio\"},sn={[v.TEXT_CLASSIFICATION]:\"Classification\",[v.AUDIO_CLASSIFICATION]:\"Classification\",[v.AUDIO_SPEECH2TEXT]:\"Transcription\",[v.TEXT_TRANSLATION]:\"Translation\",[v.TEXT_NER_RESPONSE]:\"Named Entity Recognition (NER)\",[v.TEXT_QANDA]:\"Question-Answering\",[v.IMAGE_OCR]:\"OCR\",[v.SMART_EXTRACTOR]:\"Smart extractor\",[v.IMAGE_CLASSIFICATION]:\"Classification\",[v.IMAGE_OBJECT_DETECTION]:\"Object detection\",[v.IMAGE_FACE_SIMILARITY]:\"Image verification\"},ln={[v.TEXT_CLASSIFICATION]:\"#ffe5e3\",[v.AUDIO_CLASSIFICATION]:\"#ffede3\",[v.AUDIO_SPEECH2TEXT]:\"#fff5e3\",[v.TEXT_TRANSLATION]:\"#fffae3\",[v.TEXT_NER_RESPONSE]:\"#fffde3\",[v.TEXT_QANDA]:\"#ffffe3\",[v.IMAGE_OCR]:\"#f2ffe3\",[v.SMART_EXTRACTOR]:\"#e6ffe3\",[v.IMAGE_CLASSIFICATION]:\"#d9ffe3\",[v.IMAGE_OBJECT_DETECTION]:\"#e3ffec\",[v.IMAGE_FACE_SIMILARITY]:\"#e3fff4\"},$={LOGIN:\"login\",DASHBOARD:\"dashboard\",TEST:\"test\"},an=\"_logoWrapper_1phh2_1\",cn=\"_formWrapper_1phh2_12\",_n=\"_subtitle_1phh2_17\",un=\"_formField_1phh2_23\",dn=\"_loginButton_1phh2_52\",fn=\"_info_1phh2_74\",pn=\"_link_1phh2_81\",hn=\"_errorWrapper_1phh2_88\",x={logoWrapper:an,formWrapper:cn,subtitle:_n,formField:un,loginButton:dn,info:fn,link:pn,errorWrapper:hn},mn=()=>{const{login:e}=ce(),{navigate:t}=_e(),[n,o]=I({email:\"\",password:\"\"}),[s,r]=I(!1),l=()=>{if(!n.email||!n.password){r(\"Please fill all fields\");return}r(!1),e(n.email,n.password).then(_=>{t($.DASHBOARD)}).catch(_=>{let p=`Error: ${_.message}`;switch(_.status){case 400:p=\"Invalid email or password\"}r(p)})},c=_=>{o({...n,[_.target.name]:_.target.value})};return a(\"div\",{className:x.loginPage,children:[a(\"div\",{className:x.logoWrapper,children:a(Kt,{})}),a(\"div\",{className:x.formWrapper,children:[a(\"h3\",{className:x.subtitle,children:\"Sign in to Cogniflow\"}),a(\"div\",{className:x.formField,children:[a(\"label\",{children:\"Email\"}),a(\"input\",{placeholder:\"youremail@gmail.com\",name:\"email\",onChange:c,type:\"email\"})]}),a(\"div\",{className:x.formField,children:[a(\"label\",{children:\"Password\"}),a(\"input\",{placeholder:\"******\",onChange:c,name:\"password\",type:\"password\"})]}),a(\"div\",{className:x.info,children:a(\"small\",{children:[\"You need to have a Cogniflow password to access our Excel Add-in, if you don't have one, create it\",\" \",a(\"a\",{className:x.link,href:\"https://app.cogniflow.ai/settings/profile\",target:\"_blank\",children:\"here\"})]})}),a(\"button\",{className:x.loginButton,onClick:l,children:\"Login\"}),s&&a(\"div\",{className:x.errorWrapper,children:a(\"div\",{className:x.error,children:a(\"small\",{children:s})})})]})]})},vn={\"lds-ring\":\"_lds-ring_1im9c_1\"},pt=()=>a(\"div\",{className:vn[\"lds-ring\"],children:[a(\"div\",{}),a(\"div\",{}),a(\"div\",{}),a(\"div\",{})]}),gn=(e,t)=>{q(()=>{function n(o){e.current&&!e.current.contains(o.target)&&t()}return document.addEventListener(\"mousedown\",n),()=>{document.removeEventListener(\"mousedown\",n)}},[e])};function Tn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var ht={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o=[],s=0;s<arguments.length;s++){var r=arguments[s];if(r){var l=typeof r;if(l===\"string\"||l===\"number\")o.push(r);else if(Array.isArray(r)){if(r.length){var c=n.apply(null,r);c&&o.push(c)}}else if(l===\"object\"){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes(\"[native code]\")){o.push(r.toString());continue}for(var _ in r)t.call(r,_)&&r[_]&&o.push(_)}}}return o.join(\" \")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(ht);var yn=ht.exports;const mt=Tn(yn),An=\"_dropdown_7fpzl_19\",Cn=\"_active_7fpzl_51\",Z={\"trigger-button\":\"_trigger-button_7fpzl_1\",\"dropdown-wrapper\":\"_dropdown-wrapper_7fpzl_19\",dropdown:An,active:Cn},re=({items:e=[],initialValue:t,className:n,onChange:o})=>{const[s,r]=I(!1),[l,c]=I(t),_=kt(null);gn(_,()=>{r(!1)});const p=d=>{c(d),r(!1),o(d)};return a(\"div\",{class:mt(Z[\"dropdown-wrapper\"],n),ref:_,children:[a(\"div\",{onClick:()=>{r(d=>!d)},className:Z[\"trigger-button\"],children:[l.label,s?a(tn,{}):a(nn,{})]}),a(\"ul\",{className:s?Z.active:\"\",children:e.map(({label:d,value:i})=>a(\"li\",{onClick:()=>p({label:d,value:i}),className:Z.dropdownItem,children:d}))})]})},En=\"_nav_1arwg_1\",bn=\"_logout_1arwg_19\",wn=\"_logoutItems_1arwg_33\",In=\"_dropdowns_1arwg_49\",Sn=\"_dropdownLabel_1arwg_60\",kn=\"_experimentItem_1arwg_67\",Nn=\"_content_1arwg_71\",Rn=\"_cardsWrapper_1arwg_75\",On=\"_loader_1arwg_83\",M={nav:En,logout:bn,logoutItems:wn,dropdowns:In,dropdownLabel:Sn,experimentItem:kn,content:Nn,cardsWrapper:Rn,loader:On},xn=\"_card_1pg1x_1\",Mn=\"_wave_1pg1x_16\",Pn=\"_imgBackground_1pg1x_25\",Ln=\"_title_1pg1x_35\",$n=\"_experimentClassification_1pg1x_44\",Dn=\"_image_1pg1x_53\",Hn=\"_dot_1pg1x_74\",Fn=\"_cardFooter_1pg1x_82\",L={card:xn,wave:Mn,imgBackground:Pn,title:Ln,experimentClassification:$n,image:Dn,dot:Hn,cardFooter:Fn},Un=({title:e,type:t,task:n,logo:o,...s})=>{const r=o?\"https://s3.us-east-2.amazonaws.com/static-cogniflow-prod/\"+o:\"https://app.cogniflow.ai/static/media/img-placeholder.3c18e621361480e8272e676738157c04.svg\";return a(\"div\",{className:L.card,children:[a(\"div\",{className:L.wave,children:a(\"div\",{className:L.imgBackground})}),a(\"p\",{className:L.title,children:e}),a(\"div\",{className:L.image,children:a(\"img\",{src:r})}),a(\"div\",{className:L.cardFooter,children:[a(\"div\",{className:L.dot,style:{backgroundColor:ln[n]}}),a(\"p\",{className:L.experimentClassification,children:[ft[t],\" | \",sn[n]]})]})]})},Ve=[{label:\"Public\",value:1},{label:\"Private\",value:0},{label:\"Community\",value:3},{label:\"Organization\",value:2}],Ge=[{label:\"All\",value:\"\"},{label:\"Text\",value:0},{label:\"Image\",value:1},{label:\"Audio\",value:2}],Xn=()=>{const[e,t]=I(!1),[n,o]=I([]),{logout:s}=ce(),[r,l]=I(0),[c,_]=I(\"\"),{navigate:p}=_e();q(()=>{t(!0),$t({visibility:r,type:c}).then(u=>{const h=u.filter(b=>rn.includes(b.task));o(h),t(!1)}).catch(u=>{t(!1),console.log(\"failing\",u)})},[r,c]);const d=u=>{p(\"test\",{id:u})},i=()=>{s(),p(\"test\")},g=u=>{l(u.value)},m=u=>{_(u.value)};return a(\"div\",{children:[a(\"div\",{className:M.nav,children:[a(\"div\",{className:M.logout,children:a(\"div\",{className:M.logoutItems,onClick:i,children:a(en,{})})}),a(\"h4\",{children:\"Experiments\"}),a(\"div\",{})]}),a(\"div\",{className:M.content,children:[a(\"div\",{className:M.dropdowns,children:[a(\"div\",{children:[a(\"small\",{className:M.dropdownLabel,children:\"Visibility:\"}),a(re,{items:Ve,initialValue:Ve[1],onChange:g})]}),a(\"div\",{children:[a(\"small\",{className:M.dropdownLabel,children:\"Type:\"}),a(re,{items:Ge,initialValue:Ge[0],onChange:m})]})]}),e&&a(\"div\",{className:M.loader,children:a(pt,{})}),!e&&n.length?a(\"div\",{className:M.cardsWrapper,children:n.map(({id:u,...h})=>a(\"div\",{className:M.experimentItem,onClick:()=>d(u),children:a(Un,{...h})}))}):a(\"div\",{children:a(\"h3\",{style:{textAlign:\"center\",fontWeight:\"400\"},children:\"No experiments found\"})})]})]})},Bn=\"_nav_r1i7b_1\",Wn=\"_title_r1i7b_20\",Vn=\"_icon_r1i7b_24\",Gn=\"_content_r1i7b_32\",qn=\"_dropdowns_r1i7b_36\",jn=\"_runModel_r1i7b_42\",zn=\"_subtitleBlock_r1i7b_68\",Zn=\"_checkboxes_r1i7b_76\",Jn=\"_checkboxText_r1i7b_83\",Qn=\"_loading_r1i7b_87\",Yn=\"_runModelDisabled_r1i7b_93\",Kn=\"_warning_r1i7b_108\",N={nav:Bn,title:Wn,icon:Vn,content:Gn,dropdowns:qn,runModel:jn,subtitleBlock:zn,checkboxes:Zn,checkboxText:Jn,loading:Qn,runModelDisabled:Yn,warning:Kn},W={TEXT:0,IMAGE:1,AUDIO:2},O={TEXT_CLASSIFICATION:0,TEXT_TRANSLATION:1,TEXT_QANDA:3,IMAGE_CLASSIFICATION:100,IMAGE_OBJECT_DETECTION:101,IMAGE_OCR:102,AUDIO_CLASSIFICATION:200,SMART_EXTRACTOR:4},Ee={[W.TEXT]:{time:1e3,limit:3},[W.IMAGE]:{time:1e3,limit:2},[W.AUDIO]:{time:1e3,limit:1},index:0};async function eo(e){await Excel.run(async t=>{const n=t.workbook.worksheets.getActiveWorksheet(),o=so(t);let s=t.workbook.getSelectedRange();if(!e.hasHeaders&&O.SMART_EXTRACTOR===e.task&&lo(t),await o(s,[\"isEntireColumn\"]),s.isEntireColumn){const _=s.getUsedRange();await o(_,[\"values\",\"address\"]);const p=await io(_,t);s=n.getRange(p)}await o(s,[\"values\",\"address\"]),await ao({range:s,task:e.task,config:e.experimentConfig,context:t,sheet:n,parameters:e});const r=s.values.map(([_])=>_),l=to({parameters:e,cells:r});e.task===O.SMART_EXTRACTOR&&e.hasHeaders&&l.shift();const c=co(l,Ee[e.type].limit);switch(e.task){case O.SMART_EXTRACTOR:await no({requests:c,requestRange:s,config:e.experimentConfig,sheet:n,context:t,type:e.type,hasHeaders:e.hasHeaders,callback:e.predictionCallback});return;default:oo({sheet:n,context:t,requestRange:s,chunks:c,includeConfidence:e.includeConfidence,type:e.type,task:e.task,callback:e.predictionCallback})}})}function to({parameters:e,cells:t}){var l;const n=[];let o=0;const r={[O.TEXT_QANDA]:{result:[{answer:\"\"}]},[O.SMART_EXTRACTOR]:[(l=e.experimentConfig.entities)==null?void 0:l.reduce((c,_)=>({...c,[_.name]:\"\"}),{})]}[e.task]||{result:\"\"};for(const c of t){if(e.hasHeaders&&o===0){n.push(Promise.resolve({result:r})),o++;continue}n.push(fetch(`${e.url}/${e.modelId}`,{method:\"POST\",headers:{\"Content-Type\":\"application/json\",\"x-api-key\":e.apikey},body:JSON.stringify({[_o(e.type,e.task)]:c,format:\"jpg\"})}).then(_=>_.ok?_.json():new Promise((p,d)=>{_.json().then(i=>{p({message:\"error\",status:_.status,result:i})})}))),o++}return n}function vt(e,t){switch(e){case 400:return\"Bad Request: The request was unacceptable, often due to missing a required parameter.\";case 401:return\"Unauthorized: Prediction quota exceede or no valid API key provided.\";case 403:return\"Forbidden: The API key doesn’t have permissions to perform the request.\";case 404:return\"Not Found: The requested resource doesn’t exist.\";case 429:return\"Too Many Requests: Too many requests hit the API too quickly.\";case 500:return\"Internal Server Error: We had a problem with our server. Try again later.\";case 503:return(t.includes(\"OpenAI\")?\"Please enter your OpenAI API key in https://app.cogniflow.ai/settings/apikeys to enable the model to work.\":\"\")||\"Service Unavailable: We’re temporarily offline for maintenance. Please try again later.\";default:return\"Unknown error\"}}async function no({requests:e,requestRange:t,config:n,sheet:o,context:s,type:r,hasHeaders:l,callback:c}){const _=n.entities.map(({name:d})=>d);let p=t.getOffsetRange(l?1:0,1);for(const d of e){const i=await Promise.allSettled(d),g=p.getCell(0,0),m=p.getCell(i.length-1,_.length-1);for(const T of[g,m])T.load(\"address\");await s.sync();const u=`${se(g.address)}:${se(m.address)}`,h=[];for(const{value:T}of i){if(T.message===\"error\"){h.push(_.map((k,w)=>{var E;return w===0?vt(T.status,(E=T==null?void 0:T.result)==null?void 0:E.detail):\"\"}));continue}const y=_.map(k=>{const w=T.result[0][k]||\"\";return Array.isArray(w)?JSON.stringify(w):w});y.length||y.push(\"---\"),h.push(y)}const b=o.getRange(u);b.values=h,p=b.getLastRow().getRowsBelow(1),await ro(Ee[r].time)}c&&c()}async function oo({sheet:e,context:t,requestRange:n,chunks:o,includeConfidence:s,type:r,task:l,callback:c}){let _=qe(n.address).startNumber;const{startLetter:p}=qe(n.address);for(const d of o){const i=await Promise.allSettled(d),[g,m]=[`${p}${_}`,`${p}${_+d.length-1}`],u=e.getRange(`${g}:${m}`),h=i.map(b=>[uo(b.value,l)]);u.values=h,s&&(u.getColumnsAfter(1).values=i.map(b=>[fo(b.value,l)||-1])),await t.sync(),await new Promise(b=>setTimeout(b,Ee[r].time)),_+=d.length}c&&c()}function ro(e){return new Promise(t=>setTimeout(t,e))}function so(e){return async(t,n)=>{t.load(n),await e.sync()}}async function io(e,t){const n=e.address.split(\"!\")[1].split(\":\")[0];let o=0;for(const[l]of e.values){if(!l)break;o++}const s=e.getCell(o-1,0);s.load(\"address\"),await t.sync();const r=s.address.split(\"!\")[1];return`${n}:${r}`}function lo(e){e.workbook.worksheets.getActiveWorksheet().getRange(\"A1:A1\").getCell(0,0).getEntireRow().insert(Excel.InsertShiftDirection.down)}async function ao({range:e,task:t,config:n,context:o,sheet:s,parameters:r}){switch(t){case O.SMART_EXTRACTOR:const l=n.entities.map(({name:g})=>g);if(r.action==\"insert\"&&l.forEach(()=>{e.getEntireColumn().getColumnsAfter(1).insert(\"Right\")}),r.hasHeaders)return;const c=po(e.address),_=s.getRange(`${c}2:${c}2`),p=_.getRowsAbove(1).getCell(0,1),d=_.getRowsAbove(1).getCell(0,l.length);for(const g of[p,d])g.load(\"address\");await o.sync();const i=`${se(p.address)}:${se(d.address)}`;s.getRange(i).values=[l];return;default:r.action==\"insert\"&&(e.getEntireColumn().getColumnsAfter(1).insert(\"Right\"),r.includeConfidence&&e.getEntireColumn().getColumnsAfter(1).insert(\"Right\")),r.hasHeaders&&r.task===O.SMART_EXTRACTOR&&(e.getCell(-1,1).values=[[r.experiment]],r.includeConfidence&&(e.getCell(-1,2).values=[[\"Confidence\"]]))}}function se(e){return e.split(\"!\")[1]}function qe(e){const t=e.split(\"!\")[1],[n,...o]=t.split(\":\")[0].split(\"\");return{startLetter:String.fromCharCode(n.charCodeAt(0)+1),startNumber:parseInt(o.join(\"\"))}}function co(e,t){const n=[];for(let o=0;o<e.length;o+=t){const s=e.slice(o,o+t);n.push(s)}return n}function _o(e,t){switch(e){case W.TEXT:return t===O.TEXT_QANDA?\"question\":\"text\";case W.IMAGE:return\"url\";case W.AUDIO:return\"url\";default:return\"url\"}}function uo(e,t){if(e.message===\"error\")return vt(e.status);switch(t){case O.TEXT_QANDA:return e.result[0].answer;case O.SMART_EXTRACTOR:return JSON.stringify(e.result);case O.IMAGE_OBJECT_DETECTION:return JSON.stringify(e.result);case O.IMAGE_OCR:return JSON.stringify(e.result);default:return e.result}}function fo(e,t){switch(t){case O.TEXT_QANDA:return-1;default:return e.confidence_score}}function po(e){const t=e.split(\"!\")[1].match(/[A-Za-z]+/);return t?t[0]:null}const ho={[v.TEXT_CLASSIFICATION]:\"text/classification/predict\",[v.TEXT_NER_RESPONSE]:\"text/information-extraction/extract-entities\",[v.TEXT_TRANSLATION]:\"text/translation/translate\",[v.TEXT_QANDA]:\"text/question-answering/ask\",[v.SMART_EXTRACTOR]:\"smart-extraction/extract\",[v.IMAGE_CLASSIFICATION]:\"image/classification/predict\",[v.IMAGE_OBJECT_DETECTION]:\"image/object-detection/detect-from-web\",[v.IMAGE_OCR]:\"image/ocr/recognize-from-web\",[v.IMAGE_FACE_SIMILARITY]:\"face-similarity/predict-from-web\",[v.AUDIO_CLASSIFICATION]:\"audio/classification/predict-from-web\",[v.AUDIO_SPEECH2TEXT]:\"audio/speech2text/transcribe-from-web\"},mo=\"https://predict.cogniflow.ai\",he=[{label:\"Insert results at the right\",value:\"insert\"},{label:\"Replace results at the right\",value:\"replace\"}],vo=0,go=()=>{const{navigate:e,params:{id:t}}=_e(),n=()=>{e($.DASHBOARD)},[o,s]=I(null),[r,l]=I(!1),[c,_]=I(he[0]),[p,d]=I(\"\"),[i,g]=I(!1),{user:m}=ce();q(()=>{l(!0),Dt(t).then(({title:A,type:R,task:S,models:F,config:gt,...yo})=>{s({title:A,type:R,task:S,models:F,config:gt}),d(F[0].id),l(!1)})},[]);const{api_keys:u}=m,h=o&&!!o.models.length&&o.models[0],[b,T]=I({hasHeaders:!1,includeConfidence:!1}),y=A=>{T(R=>({...R,[A.target.name]:A.target.checked}))},k=A=>{_(A)},w=A=>{d(A.id)},E=()=>{g(!1)},H=async()=>{let A=ho[o.task];const R=K.IMAGE===o.type?\"-from-web\":\"\";o.task===v.SMART_EXTRACTOR&&(A=`${ft[o.type].toLowerCase()}/${A}`),A=`${mo}/${A}${R}`,g(!0),await eo({...b,modelId:p,action:c.value,experiment:o.title,experimentConfig:o.config,type:o.type,task:o.task,url:A,apikey:u.find(S=>S.provider===vo).key,predictionCallback:E})};return a(\"div\",{children:[a(\"div\",{className:N.nav,children:[a(\"div\",{children:a(\"div\",{className:N.icon,onClick:n,children:a(on,{})})}),a(\"h4\",{className:N.title,children:\"Run model\"}),a(\"div\",{})]}),r&&a(\"div\",{className:N.loading,children:a(pt,{})}),o&&a(\"div\",{className:N.content,children:[a(\"div\",{className:N.title,children:a(\"h3\",{children:o&&o.title})}),a(\"div\",{className:N.dropdowns,children:[a(\"div\",{className:N.subtitleBlock,children:[a(\"p\",{children:\"Model to use\"}),a(re,{initialValue:{label:h.name,id:h.id},items:o.models.map(({name:A,id:R})=>({label:A,value:R})),onChange:w})]}),a(\"div\",{className:N.subtitleBlock,children:[a(\"p\",{children:\"Place result\"}),a(re,{initialValue:he[0],items:he,onChange:k})]}),a(\"div\",{children:[v.SMART_EXTRACTOR!==o.task&&a(\"div\",{className:N.checkboxes,children:[a(\"input\",{type:\"checkbox\",id:\"confidence\",name:\"includeConfidence\",value:b.includeConfidence,onChange:y}),\" \",a(\"label\",{className:N.checkboxText,htmlFor:\"confidence\",children:\"Show confidence\"})]}),a(\"div\",{className:N.checkboxes,children:[a(\"input\",{type:\"checkbox\",id:\"headers\",name:\"hasHeaders\",value:b.hasHeaders,onChange:y}),\" \",a(\"label\",{className:N.checkboxText,htmlFor:\"headers\",children:\"My sheet includes headers\"})]})]})]}),i&&a(\"div\",{className:N.warning,children:\"Please do not edit the document while the model is running.\"}),a(\"button\",{className:mt({[N.runModel]:!0,[N.runModelDisabled]:i}),onClick:H,disabled:i,children:i?\"Running model...\":\"Run model\"})]})]})};function To(){const{isAuthenticated:e}=ce(),{navigate:t,path:n}=_e();q(()=>{switch(n){case $.LOGIN:e&&t($.DASHBOARD);default:e||t($.LOGIN)}},[n]);const o={[$.LOGIN]:a(mn,{}),[$.DASHBOARD]:a(Xn,{}),[$.TEST]:a(go,{})};return a(\"div\",{children:o[n]})}It(a(Ft,{children:a(Ut,{children:a(To,{})})}),document.getElementById(\"app\"));"
language: typescript
template:
content: <div id="app"></div>
language: html
style:
content: >
@import"https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap";._logoWrapper_1phh2_1{border-bottom:1px
solid
var(--gray-300);display:flex;justify-content:center}._logoWrapper_1phh2_1
svg{width:300px;height:auto}._formWrapper_1phh2_12{padding:24px 0;margin:0
24px}._subtitle_1phh2_17{font-weight:600;color:var(--gray-800);margin-bottom:24px}._formField_1phh2_23{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}._formField_1phh2_23
label{font-size:14px;font-weight:500;color:var(--gray-800)}._formField_1phh2_23
input{padding:8px;border-radius:4px;font-size:12px;font-family:Poppins,sans-serif;border:1px
solid var(--gray-300)}._formField_1phh2_23
input:focus{outline:none;-webkit-box-shadow:0px 5px 10px -5px
rgba(168,168,168,1);-moz-box-shadow:0px 5px 10px -5px
rgba(168,168,168,1);box-shadow:0 5px 10px -5px
#a8a8a8}._loginButton_1phh2_52{margin-top:24px;padding:10px
8px;border-radius:4px;font-size:14px;font-family:Poppins,sans-serif;border:1px
solid
var(--gray-300);background-color:var(--primary-color);color:var(--white-color);cursor:pointer;border:none;font-weight:600;width:100%;-webkit-box-shadow:0px
5px 10px -5px rgba(253,121,114,1);-moz-box-shadow:0px 5px 10px -5px
rgba(253,121,114,1);box-shadow:0 5px 10px -5px
#fd7972}._loginButton_1phh2_52:hover{background-color:#fd7972}._info_1phh2_74{line-height:1.2;margin-bottom:12px;font-size:14px;color:var(--gray-600)}._link_1phh2_81{color:var(--primary-color);cursor:pointer;font-weight:600;text-decoration:underline}._errorWrapper_1phh2_88{margin-top:12px;padding:8px;border-radius:4px;background-color:#fde2e2;border:1px
solid
#fca5a5;color:#c53030;font-size:12px;font-weight:500}._lds-ring_1im9c_1{display:inline-block;position:relative;width:80px;height:80px}._lds-ring_1im9c_1
div{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px
solid var(--secondary-color);border-radius:50%;animation:_lds-ring_1im9c_1
1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--secondary-color)
transparent transparent transparent}._lds-ring_1im9c_1
div:nth-child(1){animation-delay:-.45s}._lds-ring_1im9c_1
div:nth-child(2){animation-delay:-.3s}._lds-ring_1im9c_1
div:nth-child(3){animation-delay:-.15s}@keyframes
_lds-ring_1im9c_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._trigger-button_7fpzl_1{padding:5px
10px;background:var(--white-color);color:var(--secondary-color);font-size:16px;border:1px
solid
var(--secondary-color-100);border-radius:3px;cursor:pointer;font-size:14px;display:flex;justify-content:space-between;align-items:center}._trigger-button_7fpzl_1:hover{background:#f6f6f6}._dropdown-wrapper_7fpzl_19{position:relative;width:100%}._dropdown-wrapper_7fpzl_19
._dropdown_7fpzl_19{background:#fff;width:200px;position:absolute;top:50px;left:0;font-family:Poppins;font-size:14px;display:flex;align-items:center}ul{background:#fff;color:#000;list-style:none;margin:0;font-size:16px;overflow:hidden;height:0px;position:absolute;transition:height
.3s
ease;padding:0;z-index:1}ul._active_7fpzl_51{height:120px;overflow:auto;position:absolute;width:100%;-webkit-box-shadow:0px
5px 10px -5px rgba(168,168,168,1);-moz-box-shadow:0px 5px 10px -5px
rgba(168,168,168,1);box-shadow:0 5px 10px -5px
#a8a8a8}li{margin-bottom:2px;padding:10px;font-size:12px;transition:all .2s
ease}li:hover{font-weight:600;cursor:pointer;background-color:var(--primary-color);color:#fff}._nav_1arwg_1{display:flex;border-bottom:1px
solid var(--gray-300);padding:0
16px;margin-bottom:12px}._nav_1arwg_1>div{flex:1;display:flex;align-items:center}._nav_1arwg_1
h4{margin:12px
0;font-weight:600;color:var(--primary-color)}._logout_1arwg_19{display:flex}._logout_1arwg_19
div{display:flex;justify-content:flex-start}._logout_1arwg_19
svg{width:18px;height:18px}._logoutItems_1arwg_33{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background-color:var(--gray-200);padding:3px;cursor:pointer}._dropdowns_1arwg_49{display:flex;gap:12px;margin-bottom:14px}._dropdowns_1arwg_49>div{width:100%}._dropdownLabel_1arwg_60{font-weight:600;margin-bottom:8px;font-size:12px}._experimentItem_1arwg_67{cursor:pointer}._content_1arwg_71{margin:0
24px}._cardsWrapper_1arwg_75{margin-top:20px;display:grid;grid-template-columns:repeat(4,1fr);flex-direction:column;gap:20px}._loader_1arwg_83{display:flex;justify-content:center;align-items:center;margin-top:42px}@media
(max-width:
1024px){._cardsWrapper_1arwg_75{grid-template-columns:repeat(3,1fr)}}@media
(max-width:
768px){._cardsWrapper_1arwg_75{grid-template-columns:repeat(2,1fr)}}@media
(max-width:
480px){._cardsWrapper_1arwg_75{grid-template-columns:repeat(1,1fr)}}._card_1pg1x_1{height:130px;box-shadow:0
10px 24px #00000012;border-radius:5px;padding:14px;transition:all .2s
ease;overflow:hidden;position:relative}._wave_1pg1x_16{position:absolute;top:-15px;transform:rotate(183deg);left:0;z-index:-1;width:105%}._imgBackground_1pg1x_25{background-image:url(https://app.cogniflow.ai/img/imgTextPattern.png);height:45px}._card_1pg1x_1:hover{box-shadow:none}._title_1pg1x_35{font-size:16px;font-weight:600;color:var(--gray-700);margin:50px
0
0;text-align:center;color:#000}._experimentClassification_1pg1x_44{font-size:12px;color:var(--gray-800);text-align:center;font-weight:600;margin:0}._image_1pg1x_53{width:40px;height:40px;border-radius:12px;position:absolute;top:15px;left:50%;transform:translate(-50%);overflow:hidden;display:flex;justify-content:center;align-items:center}._image_1pg1x_53>img{object-fit:contain;width:100%;height:100%}._dot_1pg1x_74{width:4px;height:4px;border:1px
solid
var(--gray-400)}._cardFooter_1pg1x_82{display:flex;justify-content:center;align-items:center;gap:4px}._nav_r1i7b_1{display:flex;border-bottom:1px
solid var(--gray-300);padding:0
16px;margin-bottom:12px}._nav_r1i7b_1>div{flex:1;display:flex;align-items:center}._nav_r1i7b_1
h4{margin:12px
0;font-weight:600;color:var(--primary-color)}._title_r1i7b_20{text-align:center}._icon_r1i7b_24{width:24px;height:24px;border-radius:50%;background-color:var(--gray-200);padding:3px}._content_r1i7b_32{margin:0
24px}._dropdowns_r1i7b_36{display:flex;flex-direction:column;gap:12px}._runModel_r1i7b_42{padding:10px
8px;border-radius:4px;font-size:14px;font-family:Poppins,sans-serif;border:1px
solid
var(--gray-300);background-color:var(--primary-color);color:var(--white-color);cursor:pointer;border:none;font-weight:600;width:100%;-webkit-box-shadow:0px
5px 10px -5px rgba(253,121,114,1);-moz-box-shadow:0px 5px 10px -5px
rgba(253,121,114,1);box-shadow:0 5px 10px -5px
#fd7972;margin-top:12px}._runModel_r1i7b_42:hover{background-color:#fd7972}._title_r1i7b_20
h3{font-weight:500}._subtitleBlock_r1i7b_68{font-size:14px}._subtitleBlock_r1i7b_68
p{margin:8px
0}._checkboxes_r1i7b_76{display:flex;align-items:center;margin-top:12px;gap:4px}._checkboxText_r1i7b_83{font-size:14px}._loading_r1i7b_87{display:flex;justify-content:center;align-items:center}._runModelDisabled_r1i7b_93{margin-top:32px;padding:10px
8px;border-radius:4px;font-size:14px;font-family:Poppins,sans-serif;border:1px
solid
var(--gray-300);background-color:var(--gray-300);color:var(--white-color);cursor:pointer;border:none;font-weight:600;width:100%}._warning_r1i7b_108{background-color:#ffffce;font-size:12px;font-weight:500;margin-top:24px;padding:12px}body,p,span,div,button,h1,h2,h3,h4,h5,h6{font-family:Poppins,sans-serif}body{margin:0}:root{--secondary-color:
#272c4d;--secondary-color-100: #d8ddeb;--primary-color:
#ff6a61;--white-color: #fff;--black-color: #000;--warning-color:
#ffff61;--gray-100: #f7fafc;--gray-200: #edf2f7;--gray-300:
#e2e8f0;--gray-400: #cbd5e0;--gray-500: #a0aec0;--gray-600:
#718096;--gray-700: #4a5568;--gray-800: #2d3748}
language: css
libraries: |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
@types/office-js
office-ui-fabric-js@1.4.0/dist/css/fabric.min.css
office-ui-fabric-js@1.4.0/dist/css/fabric.components.min.css
core-js@2.4.1/client/core.min.js
@types/core-js
jquery@3.1.1
@types/jquery@3.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment