@feature.ninja/widget
Advanced tools
Comparing version 0.0.855 to 0.0.858
@@ -1194,3 +1194,3 @@ var __defProp = Object.defineProperty; | ||
while (i2 < 10) { | ||
const results = yield this.featureRequests(i2); | ||
const results = yield this.featureRequests(`${i2}`); | ||
for (const result of results.data) { | ||
@@ -1197,0 +1197,0 @@ if (result.id === id) { |
@@ -1,2 +0,2 @@ | ||
(()=>{var Lt=Object.defineProperty,Mt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var rn=(E,f,C)=>f in E?Lt(E,f,{enumerable:!0,configurable:!0,writable:!0,value:C}):E[f]=C,k=(E,f)=>{for(var C in f||(f={}))tn.call(f,C)&&rn(E,C,f[C]);if(le)for(var C of le(f))on.call(f,C)&&rn(E,C,f[C]);return E},U=(E,f)=>Mt(E,St(f));var ve=(E,f)=>{var C={};for(var T in E)tn.call(E,T)&&f.indexOf(T)<0&&(C[T]=E[T]);if(E!=null&&le)for(var T of le(E))f.indexOf(T)<0&&on.call(E,T)&&(C[T]=E[T]);return C};var ue=(E,f,C)=>new Promise((T,B)=>{var G=O=>{try{P(C.next(O))}catch(V){B(V)}},Q=O=>{try{P(C.throw(O))}catch(V){B(V)}},P=O=>O.done?T(O.value):Promise.resolve(O.value).then(G,Q);P((C=C.apply(E,f)).next())});var Dt=function(){"use strict";var E,f,C,T,B,G,Q,P={},O=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function q(e,n){for(var t in n)e[t]=n[t];return e}function we(e){var n=e.parentNode;n&&n.removeChild(e)}function l(e,n,t){var o,u,r,d={};for(r in n)r=="key"?o=n[r]:r=="ref"?u=n[r]:d[r]=n[r];if(arguments.length>2&&(d.children=arguments.length>3?E.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)d[r]===void 0&&(d[r]=e.defaultProps[r]);return z(e,d,o,u,null)}function z(e,n,t,o,u){var r={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:u==null?++C:u};return f.vnode!=null&&f.vnode(r),r}function F(e){return e.children}function D(e,n){this.props=e,this.context=n}function H(e,n){if(n==null)return e.__?H(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?H(e):null}function be(e){var n,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return be(e)}}function fe(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!J.__r++||G!==f.debounceRendering)&&((G=f.debounceRendering)||B)(J)}function J(){for(var e;J.__r=T.length;)e=T.sort(function(n,t){return n.__v.__b-t.__v.__b}),T=[],e.some(function(n){var t,o,u,r,d,y;n.__d&&(d=(r=(t=n).__v).__e,(y=t.__P)&&(o=[],(u=q({},r)).__v=r.__v+1,ce(y,r,u,t.__n,y.ownerSVGElement!==void 0,r.__h!=null?[d]:null,o,d==null?H(r):d,r.__h),Le(o,r),r.__e!=d&&be(r)))})}function Ee(e,n,t,o,u,r,d,y,m,g){var a,b,s,i,c,v,p,h=o&&o.__k||O,w=h.length;for(t.__k=[],a=0;a<n.length;a++)if((i=t.__k[a]=(i=n[a])==null||typeof i=="boolean"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"?z(null,i,null,null,i):Array.isArray(i)?z(F,{children:i},null,null,null):i.__b>0?z(i.type,i.props,i.key,null,i.__v):i)!=null){if(i.__=t,i.__b=t.__b+1,(s=h[a])===null||s&&i.key==s.key&&i.type===s.type)h[a]=void 0;else for(b=0;b<w;b++){if((s=h[b])&&i.key==s.key&&i.type===s.type){h[b]=void 0;break}s=null}ce(e,i,s=s||P,u,r,d,y,m,g),c=i.__e,(b=i.ref)&&s.ref!=b&&(p||(p=[]),s.ref&&p.push(s.ref,null,i),p.push(b,i.__c||c,i)),c!=null?(v==null&&(v=c),typeof i.type=="function"&&i.__k!=null&&i.__k===s.__k?i.__d=m=xe(i,m,e):m=ke(e,i,s,h,c,m),g||t.type!=="option"?typeof t.type=="function"&&(t.__d=m):e.value=""):m&&s.__e==m&&m.parentNode!=e&&(m=H(s))}for(t.__e=v,a=w;a--;)h[a]!=null&&(typeof t.type=="function"&&h[a].__e!=null&&h[a].__e==t.__d&&(t.__d=H(o,a+1)),Se(h[a],h[a]));if(p)for(a=0;a<p.length;a++)Me(p[a],p[++a],p[++a])}function xe(e,n,t){var o,u;for(o=0;o<e.__k.length;o++)(u=e.__k[o])&&(u.__=e,n=typeof u.type=="function"?xe(u,n,t):ke(t,u,u,e.__k,u.__e,n));return n}function ke(e,n,t,o,u,r){var d,y,m;if(n.__d!==void 0)d=n.__d,n.__d=void 0;else if(t==null||u!=r||u.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(u),d=null;else{for(y=r,m=0;(y=y.nextSibling)&&m<o.length;m+=2)if(y==u)break e;e.insertBefore(u,r),d=r}return d!==void 0?d:u.nextSibling}function sn(e,n,t,o,u){var r;for(r in t)r==="children"||r==="key"||r in n||Y(e,r,null,t[r],o);for(r in n)u&&typeof n[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===n[r]||Y(e,r,n[r],t[r],o)}function Ce(e,n,t){n[0]==="-"?e.setProperty(n,t):e[n]=t==null?"":typeof t!="number"||V.test(n)?t:t+"px"}function Y(e,n,t,o,u){var r;e:if(n==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||Ce(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||Ce(e.style,n,t[n])}else if(n[0]==="o"&&n[1]==="n")r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=t,t?o||e.addEventListener(n,r?Te:Re,r):e.removeEventListener(n,r?Te:Re,r);else if(n!=="dangerouslySetInnerHTML"){if(u)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(n!=="href"&&n!=="list"&&n!=="form"&&n!=="tabIndex"&&n!=="download"&&n in e)try{e[n]=t==null?"":t;break e}catch(d){}typeof t=="function"||(t!=null&&(t!==!1||n[0]==="a"&&n[1]==="r")?e.setAttribute(n,t):e.removeAttribute(n))}}function Re(e){this.l[e.type+!1](f.event?f.event(e):e)}function Te(e){this.l[e.type+!0](f.event?f.event(e):e)}function ce(e,n,t,o,u,r,d,y,m){var g,a,b,s,i,c,v,p,h,w,L,x=n.type;if(n.constructor!==void 0)return null;t.__h!=null&&(m=t.__h,y=n.__e=t.__e,n.__h=null,r=[y]),(g=f.__b)&&g(n);try{e:if(typeof x=="function"){if(p=n.props,h=(g=x.contextType)&&o[g.__c],w=g?h?h.props.value:g.__:o,t.__c?v=(a=n.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?n.__c=a=new x(p,w):(n.__c=a=new D(p,w),a.constructor=x,a.render=ln),h&&h.sub(a),a.props=p,a.state||(a.state={}),a.context=w,a.__n=o,b=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=q({},a.__s)),q(a.__s,x.getDerivedStateFromProps(p,a.__s))),s=a.props,i=a.state,b)x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(x.getDerivedStateFromProps==null&&p!==s&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(p,w),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(p,a.__s,w)===!1||n.__v===t.__v){a.props=p,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach(function(A){A&&(A.__=n)}),a.__h.length&&d.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(p,a.__s,w),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(s,i,c)})}a.context=w,a.props=p,a.state=a.__s,(g=f.__r)&&g(n),a.__d=!1,a.__v=n,a.__P=e,g=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(o=q(q({},o),a.getChildContext())),b||a.getSnapshotBeforeUpdate==null||(c=a.getSnapshotBeforeUpdate(s,i)),L=g!=null&&g.type===F&&g.key==null?g.props.children:g,Ee(e,Array.isArray(L)?L:[L],n,t,o,u,r,d,y,m),a.base=n.__e,n.__h=null,a.__h.length&&d.push(a),v&&(a.__E=a.__=null),a.__e=!1}else r==null&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=an(t.__e,n,t,o,u,r,d,m);(g=f.diffed)&&g(n)}catch(A){n.__v=null,(m||r!=null)&&(n.__e=y,n.__h=!!m,r[r.indexOf(y)]=null),f.__e(A,n,t)}}function Le(e,n){f.__c&&f.__c(n,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(o){o.call(t)})}catch(o){f.__e(o,t.__v)}})}function an(e,n,t,o,u,r,d,y){var m,g,a,b=t.props,s=n.props,i=n.type,c=0;if(i==="svg"&&(u=!0),r!=null){for(;c<r.length;c++)if((m=r[c])&&(m===e||(i?m.localName==i:m.nodeType==3))){e=m,r[c]=null;break}}if(e==null){if(i===null)return document.createTextNode(s);e=u?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i,s.is&&s),r=null,y=!1}if(i===null)b===s||y&&e.data===s||(e.data=s);else{if(r=r&&E.call(e.childNodes),g=(b=t.props||P).dangerouslySetInnerHTML,a=s.dangerouslySetInnerHTML,!y){if(r!=null)for(b={},c=0;c<e.attributes.length;c++)b[e.attributes[c].name]=e.attributes[c].value;(a||g)&&(a&&(g&&a.__html==g.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(sn(e,s,b,u,y),a)n.__k=[];else if(c=n.props.children,Ee(e,Array.isArray(c)?c:[c],n,t,o,u&&i!=="foreignObject",r,d,r?r[0]:t.__k&&H(t,0),y),r!=null)for(c=r.length;c--;)r[c]!=null&&we(r[c]);y||("value"in s&&(c=s.value)!==void 0&&(c!==e.value||i==="progress"&&!c)&&Y(e,"value",c,b.value,!1),"checked"in s&&(c=s.checked)!==void 0&&c!==e.checked&&Y(e,"checked",c,b.checked,!1))}return e}function Me(e,n,t){try{typeof e=="function"?e(n):e.current=n}catch(o){f.__e(o,t)}}function Se(e,n,t){var o,u;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Me(o,null,n)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,n)}o.base=o.__P=null}if(o=e.__k)for(u=0;u<o.length;u++)o[u]&&Se(o[u],n,typeof e.type!="function");t||e.__e==null||we(e.__e),e.__e=e.__d=void 0}function ln(e,n,t){return this.constructor(e,t)}function un(e,n,t){var o,u,r;f.__&&f.__(e,n),u=(o=typeof t=="function")?null:t&&t.__k||n.__k,r=[],ce(n,e=(!o&&t||n).__k=l(F,null,[e]),u||P,P,n.ownerSVGElement!==void 0,!o&&t?[t]:u?null:n.firstChild?E.call(n.childNodes):null,r,!o&&t?t:u?u.__e:n.firstChild,o),Le(r,e)}function fn(e,n){var t={__c:n="__cC"+Q++,__:e,Consumer:function(o,u){return o.children(u)},Provider:function(o){var u,r;return this.getChildContext||(u=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(d){this.props.value!==d.value&&u.some(fe)},this.sub=function(d){u.push(d);var y=d.componentWillUnmount;d.componentWillUnmount=function(){u.splice(u.indexOf(d),1),y&&y.call(d)}}),o.children}};return t.Provider.__=t.Consumer.contextType=t}E=O.slice,f={__e:function(e,n){for(var t,o,u;n=n.__;)if((t=n.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(e)),u=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(e),u=t.__d),u)return t.__E=t}catch(r){e=r}throw e}},C=0,D.prototype.setState=function(e,n){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},t),this.props)),e&&q(t,e),e!=null&&this.__v&&(n&&this.__h.push(n),fe(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fe(this))},D.prototype.render=F,T=[],B=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0,Q=0,typeof window!="undefined"&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.14",f,{Fragment:F,Component:D});var Ae={};function $(e){return e.type===F?"Fragment":typeof e.type=="function"?e.type.displayName||e.type.name:typeof e.type=="string"?e.type:"#text"}var W=[],j=[];function Oe(){return W.length>0?W[W.length-1]:null}var Ue=!1;function _e(e){return typeof e.type=="function"&&e.type!=F}function M(e){for(var n=[e],t=e;t.__o!=null;)n.push(t.__o),t=t.__o;return n.reduce(function(o,u){o+=" in "+$(u);var r=u.__source;return r?o+=" (at "+r.fileName+":"+r.lineNumber+")":Ue||(Ue=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),o+` | ||
(()=>{var Lt=Object.defineProperty,Mt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var rn=(E,f,C)=>f in E?Lt(E,f,{enumerable:!0,configurable:!0,writable:!0,value:C}):E[f]=C,k=(E,f)=>{for(var C in f||(f={}))tn.call(f,C)&&rn(E,C,f[C]);if(le)for(var C of le(f))on.call(f,C)&&rn(E,C,f[C]);return E},U=(E,f)=>Mt(E,St(f));var ve=(E,f)=>{var C={};for(var T in E)tn.call(E,T)&&f.indexOf(T)<0&&(C[T]=E[T]);if(E!=null&&le)for(var T of le(E))f.indexOf(T)<0&&on.call(E,T)&&(C[T]=E[T]);return C};var ue=(E,f,C)=>new Promise((T,B)=>{var G=O=>{try{P(C.next(O))}catch(V){B(V)}},Q=O=>{try{P(C.throw(O))}catch(V){B(V)}},P=O=>O.done?T(O.value):Promise.resolve(O.value).then(G,Q);P((C=C.apply(E,f)).next())});var Dt=function(){"use strict";var E,f,C,T,B,G,Q,P={},O=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,n){for(var t in n)e[t]=n[t];return e}function we(e){var n=e.parentNode;n&&n.removeChild(e)}function l(e,n,t){var o,u,r,d={};for(r in n)r=="key"?o=n[r]:r=="ref"?u=n[r]:d[r]=n[r];if(arguments.length>2&&(d.children=arguments.length>3?E.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)d[r]===void 0&&(d[r]=e.defaultProps[r]);return z(e,d,o,u,null)}function z(e,n,t,o,u){var r={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:u==null?++C:u};return f.vnode!=null&&f.vnode(r),r}function F(e){return e.children}function D(e,n){this.props=e,this.context=n}function H(e,n){if(n==null)return e.__?H(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?H(e):null}function be(e){var n,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return be(e)}}function fe(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!J.__r++||G!==f.debounceRendering)&&((G=f.debounceRendering)||B)(J)}function J(){for(var e;J.__r=T.length;)e=T.sort(function(n,t){return n.__v.__b-t.__v.__b}),T=[],e.some(function(n){var t,o,u,r,d,y;n.__d&&(d=(r=(t=n).__v).__e,(y=t.__P)&&(o=[],(u=$({},r)).__v=r.__v+1,ce(y,r,u,t.__n,y.ownerSVGElement!==void 0,r.__h!=null?[d]:null,o,d==null?H(r):d,r.__h),Le(o,r),r.__e!=d&&be(r)))})}function Ee(e,n,t,o,u,r,d,y,m,g){var a,b,s,i,c,v,p,h=o&&o.__k||O,w=h.length;for(t.__k=[],a=0;a<n.length;a++)if((i=t.__k[a]=(i=n[a])==null||typeof i=="boolean"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"?z(null,i,null,null,i):Array.isArray(i)?z(F,{children:i},null,null,null):i.__b>0?z(i.type,i.props,i.key,null,i.__v):i)!=null){if(i.__=t,i.__b=t.__b+1,(s=h[a])===null||s&&i.key==s.key&&i.type===s.type)h[a]=void 0;else for(b=0;b<w;b++){if((s=h[b])&&i.key==s.key&&i.type===s.type){h[b]=void 0;break}s=null}ce(e,i,s=s||P,u,r,d,y,m,g),c=i.__e,(b=i.ref)&&s.ref!=b&&(p||(p=[]),s.ref&&p.push(s.ref,null,i),p.push(b,i.__c||c,i)),c!=null?(v==null&&(v=c),typeof i.type=="function"&&i.__k!=null&&i.__k===s.__k?i.__d=m=xe(i,m,e):m=ke(e,i,s,h,c,m),g||t.type!=="option"?typeof t.type=="function"&&(t.__d=m):e.value=""):m&&s.__e==m&&m.parentNode!=e&&(m=H(s))}for(t.__e=v,a=w;a--;)h[a]!=null&&(typeof t.type=="function"&&h[a].__e!=null&&h[a].__e==t.__d&&(t.__d=H(o,a+1)),Se(h[a],h[a]));if(p)for(a=0;a<p.length;a++)Me(p[a],p[++a],p[++a])}function xe(e,n,t){var o,u;for(o=0;o<e.__k.length;o++)(u=e.__k[o])&&(u.__=e,n=typeof u.type=="function"?xe(u,n,t):ke(t,u,u,e.__k,u.__e,n));return n}function ke(e,n,t,o,u,r){var d,y,m;if(n.__d!==void 0)d=n.__d,n.__d=void 0;else if(t==null||u!=r||u.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(u),d=null;else{for(y=r,m=0;(y=y.nextSibling)&&m<o.length;m+=2)if(y==u)break e;e.insertBefore(u,r),d=r}return d!==void 0?d:u.nextSibling}function sn(e,n,t,o,u){var r;for(r in t)r==="children"||r==="key"||r in n||Y(e,r,null,t[r],o);for(r in n)u&&typeof n[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===n[r]||Y(e,r,n[r],t[r],o)}function Ce(e,n,t){n[0]==="-"?e.setProperty(n,t):e[n]=t==null?"":typeof t!="number"||V.test(n)?t:t+"px"}function Y(e,n,t,o,u){var r;e:if(n==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||Ce(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||Ce(e.style,n,t[n])}else if(n[0]==="o"&&n[1]==="n")r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=t,t?o||e.addEventListener(n,r?Te:Re,r):e.removeEventListener(n,r?Te:Re,r);else if(n!=="dangerouslySetInnerHTML"){if(u)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(n!=="href"&&n!=="list"&&n!=="form"&&n!=="tabIndex"&&n!=="download"&&n in e)try{e[n]=t==null?"":t;break e}catch(d){}typeof t=="function"||(t!=null&&(t!==!1||n[0]==="a"&&n[1]==="r")?e.setAttribute(n,t):e.removeAttribute(n))}}function Re(e){this.l[e.type+!1](f.event?f.event(e):e)}function Te(e){this.l[e.type+!0](f.event?f.event(e):e)}function ce(e,n,t,o,u,r,d,y,m){var g,a,b,s,i,c,v,p,h,w,L,x=n.type;if(n.constructor!==void 0)return null;t.__h!=null&&(m=t.__h,y=n.__e=t.__e,n.__h=null,r=[y]),(g=f.__b)&&g(n);try{e:if(typeof x=="function"){if(p=n.props,h=(g=x.contextType)&&o[g.__c],w=g?h?h.props.value:g.__:o,t.__c?v=(a=n.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?n.__c=a=new x(p,w):(n.__c=a=new D(p,w),a.constructor=x,a.render=ln),h&&h.sub(a),a.props=p,a.state||(a.state={}),a.context=w,a.__n=o,b=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=$({},a.__s)),$(a.__s,x.getDerivedStateFromProps(p,a.__s))),s=a.props,i=a.state,b)x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(x.getDerivedStateFromProps==null&&p!==s&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(p,w),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(p,a.__s,w)===!1||n.__v===t.__v){a.props=p,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach(function(A){A&&(A.__=n)}),a.__h.length&&d.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(p,a.__s,w),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(s,i,c)})}a.context=w,a.props=p,a.state=a.__s,(g=f.__r)&&g(n),a.__d=!1,a.__v=n,a.__P=e,g=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(o=$($({},o),a.getChildContext())),b||a.getSnapshotBeforeUpdate==null||(c=a.getSnapshotBeforeUpdate(s,i)),L=g!=null&&g.type===F&&g.key==null?g.props.children:g,Ee(e,Array.isArray(L)?L:[L],n,t,o,u,r,d,y,m),a.base=n.__e,n.__h=null,a.__h.length&&d.push(a),v&&(a.__E=a.__=null),a.__e=!1}else r==null&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=an(t.__e,n,t,o,u,r,d,m);(g=f.diffed)&&g(n)}catch(A){n.__v=null,(m||r!=null)&&(n.__e=y,n.__h=!!m,r[r.indexOf(y)]=null),f.__e(A,n,t)}}function Le(e,n){f.__c&&f.__c(n,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(o){o.call(t)})}catch(o){f.__e(o,t.__v)}})}function an(e,n,t,o,u,r,d,y){var m,g,a,b=t.props,s=n.props,i=n.type,c=0;if(i==="svg"&&(u=!0),r!=null){for(;c<r.length;c++)if((m=r[c])&&(m===e||(i?m.localName==i:m.nodeType==3))){e=m,r[c]=null;break}}if(e==null){if(i===null)return document.createTextNode(s);e=u?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i,s.is&&s),r=null,y=!1}if(i===null)b===s||y&&e.data===s||(e.data=s);else{if(r=r&&E.call(e.childNodes),g=(b=t.props||P).dangerouslySetInnerHTML,a=s.dangerouslySetInnerHTML,!y){if(r!=null)for(b={},c=0;c<e.attributes.length;c++)b[e.attributes[c].name]=e.attributes[c].value;(a||g)&&(a&&(g&&a.__html==g.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(sn(e,s,b,u,y),a)n.__k=[];else if(c=n.props.children,Ee(e,Array.isArray(c)?c:[c],n,t,o,u&&i!=="foreignObject",r,d,r?r[0]:t.__k&&H(t,0),y),r!=null)for(c=r.length;c--;)r[c]!=null&&we(r[c]);y||("value"in s&&(c=s.value)!==void 0&&(c!==e.value||i==="progress"&&!c)&&Y(e,"value",c,b.value,!1),"checked"in s&&(c=s.checked)!==void 0&&c!==e.checked&&Y(e,"checked",c,b.checked,!1))}return e}function Me(e,n,t){try{typeof e=="function"?e(n):e.current=n}catch(o){f.__e(o,t)}}function Se(e,n,t){var o,u;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Me(o,null,n)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,n)}o.base=o.__P=null}if(o=e.__k)for(u=0;u<o.length;u++)o[u]&&Se(o[u],n,typeof e.type!="function");t||e.__e==null||we(e.__e),e.__e=e.__d=void 0}function ln(e,n,t){return this.constructor(e,t)}function un(e,n,t){var o,u,r;f.__&&f.__(e,n),u=(o=typeof t=="function")?null:t&&t.__k||n.__k,r=[],ce(n,e=(!o&&t||n).__k=l(F,null,[e]),u||P,P,n.ownerSVGElement!==void 0,!o&&t?[t]:u?null:n.firstChild?E.call(n.childNodes):null,r,!o&&t?t:u?u.__e:n.firstChild,o),Le(r,e)}function fn(e,n){var t={__c:n="__cC"+Q++,__:e,Consumer:function(o,u){return o.children(u)},Provider:function(o){var u,r;return this.getChildContext||(u=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(d){this.props.value!==d.value&&u.some(fe)},this.sub=function(d){u.push(d);var y=d.componentWillUnmount;d.componentWillUnmount=function(){u.splice(u.indexOf(d),1),y&&y.call(d)}}),o.children}};return t.Provider.__=t.Consumer.contextType=t}E=O.slice,f={__e:function(e,n){for(var t,o,u;n=n.__;)if((t=n.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(e)),u=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(e),u=t.__d),u)return t.__E=t}catch(r){e=r}throw e}},C=0,D.prototype.setState=function(e,n){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e=="function"&&(e=e($({},t),this.props)),e&&$(t,e),e!=null&&this.__v&&(n&&this.__h.push(n),fe(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fe(this))},D.prototype.render=F,T=[],B=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0,Q=0,typeof window!="undefined"&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.14",f,{Fragment:F,Component:D});var Ae={};function q(e){return e.type===F?"Fragment":typeof e.type=="function"?e.type.displayName||e.type.name:typeof e.type=="string"?e.type:"#text"}var W=[],j=[];function Oe(){return W.length>0?W[W.length-1]:null}var Ue=!1;function _e(e){return typeof e.type=="function"&&e.type!=F}function M(e){for(var n=[e],t=e;t.__o!=null;)n.push(t.__o),t=t.__o;return n.reduce(function(o,u){o+=" in "+q(u);var r=u.__source;return r?o+=" (at "+r.fileName+":"+r.lineNumber+")":Ue||(Ue=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),o+` | ||
`},"")}var cn=typeof WeakMap=="function",_n=D.prototype.setState;D.prototype.setState=function(e,n){return this.__v==null?this.state==null&&console.warn(`Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly. | ||
@@ -6,8 +6,8 @@ | ||
`+M(this.__v)),_n.call(this,e,n)};var dn=D.prototype.forceUpdate;function N(e){var n=e.props,t=$(e),o="";for(var u in n)if(n.hasOwnProperty(u)&&u!=="children"){var r=n[u];typeof r=="function"&&(r="function "+(r.displayName||r.name)+"() {}"),r=Object(r)!==r||r.toString?r+"":Object.prototype.toString.call(r),o+=" "+u+"="+JSON.stringify(r)}var d=n.children;return"<"+t+o+(d&&d.length?">..</"+t+">":" />")}D.prototype.forceUpdate=function(e){return this.__v==null?console.warn(`Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application. | ||
`+M(this.__v)),_n.call(this,e,n)};var dn=D.prototype.forceUpdate;function N(e){var n=e.props,t=q(e),o="";for(var u in n)if(n.hasOwnProperty(u)&&u!=="children"){var r=n[u];typeof r=="function"&&(r="function "+(r.displayName||r.name)+"() {}"),r=Object(r)!==r||r.toString?r+"":Object.prototype.toString.call(r),o+=" "+u+"="+JSON.stringify(r)}var d=n.children;return"<"+t+o+(d&&d.length?">..</"+t+">":" />")}D.prototype.forceUpdate=function(e){return this.__v==null?console.warn(`Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application. | ||
`+M(Oe())):this.__P==null&&console.warn(`Can't call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. | ||
`+M(this.__v)),dn.call(this,e)},function(){(function(){var s=f.__b,i=f.diffed,c=f.__,v=f.vnode,p=f.__r;f.diffed=function(h){_e(h)&&j.pop(),W.pop(),i&&i(h)},f.__b=function(h){_e(h)&&W.push(h),s&&s(h)},f.__=function(h,w){j=[],c&&c(h,w)},f.vnode=function(h){h.__o=j.length>0?j[j.length-1]:null,v&&v(h)},f.__r=function(h){_e(h)&&j.push(h),p&&p(h)}})();var e=!1,n=f.__b,t=f.diffed,o=f.vnode,u=f.__e,r=f.__,d=f.__h,y=cn?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,m=[];f.__e=function(s,i,c){if(i&&i.__c&&typeof s.then=="function"){var v=s;s=new Error("Missing Suspense. The throwing component was: "+$(i));for(var p=i;p;p=p.__)if(p.__c&&p.__c.__c){s=v;break}if(s instanceof Error)throw s}try{u(s,i,c),typeof s.then!="function"&&setTimeout(function(){throw s})}catch(h){throw h}},f.__=function(s,i){if(!i)throw new Error(`Undefined parent passed to render(), this is the second argument. | ||
Check if the element is available in the DOM/has the correct id.`);var c;switch(i.nodeType){case 1:case 11:case 9:c=!0;break;default:c=!1}if(!c){var v=$(s);throw new Error("Expected a valid HTML node as a second argument to render. Received "+i+" instead: render(<"+v+" />, "+i+");")}r&&r(s,i)},f.__b=function(s){var i=s.type,c=function L(x){return x?typeof x.type=="function"?L(x.__):x:{}}(s.__);if(e=!0,i===void 0)throw new Error(`Undefined component passed to createElement() | ||
`+M(this.__v)),dn.call(this,e)},function(){(function(){var s=f.__b,i=f.diffed,c=f.__,v=f.vnode,p=f.__r;f.diffed=function(h){_e(h)&&j.pop(),W.pop(),i&&i(h)},f.__b=function(h){_e(h)&&W.push(h),s&&s(h)},f.__=function(h,w){j=[],c&&c(h,w)},f.vnode=function(h){h.__o=j.length>0?j[j.length-1]:null,v&&v(h)},f.__r=function(h){_e(h)&&j.push(h),p&&p(h)}})();var e=!1,n=f.__b,t=f.diffed,o=f.vnode,u=f.__e,r=f.__,d=f.__h,y=cn?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,m=[];f.__e=function(s,i,c){if(i&&i.__c&&typeof s.then=="function"){var v=s;s=new Error("Missing Suspense. The throwing component was: "+q(i));for(var p=i;p;p=p.__)if(p.__c&&p.__c.__c){s=v;break}if(s instanceof Error)throw s}try{u(s,i,c),typeof s.then!="function"&&setTimeout(function(){throw s})}catch(h){throw h}},f.__=function(s,i){if(!i)throw new Error(`Undefined parent passed to render(), this is the second argument. | ||
Check if the element is available in the DOM/has the correct id.`);var c;switch(i.nodeType){case 1:case 11:case 9:c=!0;break;default:c=!1}if(!c){var v=q(s);throw new Error("Expected a valid HTML node as a second argument to render. Received "+i+" instead: render(<"+v+" />, "+i+");")}r&&r(s,i)},f.__b=function(s){var i=s.type,c=function L(x){return x?typeof x.type=="function"?L(x.__):x:{}}(s.__);if(e=!0,i===void 0)throw new Error(`Undefined component passed to createElement() | ||
@@ -20,4 +20,4 @@ You likely forgot to export your component or might have mixed up default and named imports`+N(s)+` | ||
let My`+$(s)+" = "+N(i)+`; | ||
let vnode = <My`+$(s)+` />; | ||
let My`+q(s)+" = "+N(i)+`; | ||
let vnode = <My`+q(s)+` />; | ||
@@ -40,4 +40,4 @@ This usually happens when you export a JSX literal and not the component. | ||
`+M(s))}if(typeof s.type=="function"&&s.type.propTypes){if(s.type.displayName==="Lazy"&&y&&!y.lazyPropTypes.has(s.type)){var p="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var h=s.type();y.lazyPropTypes.set(s.type,!0),console.warn(p+"Component wrapped in lazy() is "+$(h))}catch(L){console.warn(p+"We will log the wrapped component's name once it is loaded.")}}var w=s.props;s.type.__f&&delete(w=function(L,x){for(var A in x)L[A]=x[A];return L}({},w)).ref,function(L,x,A,oe,re){Object.keys(L).forEach(function(ge){var I;try{I=L[ge](x,ge,oe,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){I=se}!I||I.message in Ae||(Ae[I.message]=!0,console.error("Failed prop type: "+I.message+(re&&` | ||
`+re()||"")))})}(s.type.propTypes,w,0,$(s),function(){return M(s)})}n&&n(s)},f.__h=function(s,i,c){if(!s||!e)throw new Error("Hook can only be invoked from render methods.");d&&d(s,i,c)};var g=function(s,i){return{get:function(){var c="get"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("getting vnode."+s+" is deprecated, "+i))},set:function(){var c="set"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("setting vnode."+s+" is not allowed, "+i))}}},a={nodeName:g("nodeName","use vnode.type"),attributes:g("attributes","use vnode.props"),children:g("children","use vnode.props.children")},b=Object.create({},a);f.vnode=function(s){var i=s.props;if(s.type!==null&&i!=null&&("__source"in i||"__self"in i)){var c=s.props={};for(var v in i){var p=i[v];v==="__source"?s.__source=p:v==="__self"?s.__self=p:c[v]=p}}s.__proto__=b,o&&o(s)},f.diffed=function(s){if(s.__k&&s.__k.forEach(function(h){if(h&&h.type===void 0){delete h.__,delete h.__b;var w=Object.keys(h).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+w+`}. | ||
`+M(s))}if(typeof s.type=="function"&&s.type.propTypes){if(s.type.displayName==="Lazy"&&y&&!y.lazyPropTypes.has(s.type)){var p="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var h=s.type();y.lazyPropTypes.set(s.type,!0),console.warn(p+"Component wrapped in lazy() is "+q(h))}catch(L){console.warn(p+"We will log the wrapped component's name once it is loaded.")}}var w=s.props;s.type.__f&&delete(w=function(L,x){for(var A in x)L[A]=x[A];return L}({},w)).ref,function(L,x,A,oe,re){Object.keys(L).forEach(function(ge){var I;try{I=L[ge](x,ge,oe,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){I=se}!I||I.message in Ae||(Ae[I.message]=!0,console.error("Failed prop type: "+I.message+(re&&` | ||
`+re()||"")))})}(s.type.propTypes,w,0,q(s),function(){return M(s)})}n&&n(s)},f.__h=function(s,i,c){if(!s||!e)throw new Error("Hook can only be invoked from render methods.");d&&d(s,i,c)};var g=function(s,i){return{get:function(){var c="get"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("getting vnode."+s+" is deprecated, "+i))},set:function(){var c="set"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("setting vnode."+s+" is not allowed, "+i))}}},a={nodeName:g("nodeName","use vnode.type"),attributes:g("attributes","use vnode.props"),children:g("children","use vnode.props.children")},b=Object.create({},a);f.vnode=function(s){var i=s.props;if(s.type!==null&&i!=null&&("__source"in i||"__self"in i)){var c=s.props={};for(var v in i){var p=i[v];v==="__source"?s.__source=p:v==="__self"?s.__self=p:c[v]=p}}s.__proto__=b,o&&o(s)},f.diffed=function(s){if(s.__k&&s.__k.forEach(function(h){if(h&&h.type===void 0){delete h.__,delete h.__b;var w=Object.keys(h).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+w+`}. | ||
@@ -48,4 +48,4 @@ `+M(s))}}),e=!1,t&&t(s),s.__k!=null)for(var i=[],c=0;c<s.__k.length;c++){var v=s.__k[c];if(v&&v.key!=null){var p=v.key;if(i.indexOf(p)!==-1){console.error('Following component has two or more children with the same key attribute: "'+p+`". This may cause glitches and misbehavior in rendering process. Component: | ||
`+M(s));break}i.push(p)}}}}();var At="",X,S,De,K=0,de=[],Ne=f.__b,Ie=f.__r,Pe=f.diffed,qe=f.__c,$e=f.unmount;function pe(e,n){f.__h&&f.__h(S,e,K||n),K=0;var t=S.__H||(S.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function pn(e,n,t){var o=pe(X++,2);return o.t=e,o.__c||(o.__=[t?t(n):yn(void 0,n),function(u){var r=o.t(o.__[0],u);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=S),o.__}function Z(e,n){var t=pe(X++,3);!f.__s&&Be(t.__H,n)&&(t.__=e,t.__H=n,S.__H.__h.push(t))}function hn(e){return K=5,Fe(function(){return{current:e}},[])}function Fe(e,n){var t=pe(X++,7);return Be(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function He(e,n){return K=8,Fe(function(){return e},n)}function mn(){de.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(he),e.__H.__h=[]}catch(n){e.__H.__h=[],f.__e(n,e.__v)}}),de=[]}f.__b=function(e){S=null,Ne&&Ne(e)},f.__r=function(e){Ie&&Ie(e),X=0;var n=(S=e.__c).__H;n&&(n.__h.forEach(ee),n.__h.forEach(he),n.__h=[])},f.diffed=function(e){Pe&&Pe(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(de.push(n)!==1&&De===f.requestAnimationFrame||((De=f.requestAnimationFrame)||function(t){var o,u=function(){clearTimeout(r),je&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(u,100);je&&(o=requestAnimationFrame(u))})(mn)),S=void 0},f.__c=function(e,n){n.some(function(t){try{t.__h.forEach(ee),t.__h=t.__h.filter(function(o){return!o.__||he(o)})}catch(o){n.some(function(u){u.__h&&(u.__h=[])}),n=[],f.__e(o,t.__v)}}),qe&&qe(e,n)},f.unmount=function(e){$e&&$e(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(ee)}catch(t){f.__e(t,n.__v)}};var je=typeof requestAnimationFrame=="function";function ee(e){var n=S;typeof e.__c=="function"&&e.__c(),S=n}function he(e){var n=S;e.__c=e.__(),S=n}function Be(e,n){return!e||e.length!==n.length||n.some(function(t,o){return t!==e[o]})}function yn(e,n){return typeof n=="function"?n(e):n}var Ve=fn({});function _(e,n="div",t={}){const o=function(u){const y=u,{children:r}=y,d=ve(y,["children"]);return l(Ve.Consumer,null,m=>{const[g,a]=e.split(".");return g in m&&a in m[g]&&(t.className=m[g][a].split(` | ||
`).map(b=>b.trim()).join(" ").trim()),l(n,k(k({},t),d),r)})};return o.displayName=e,o}function gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),l("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}function vn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))}const wn=_("featureRequests.Tag"),bn=_("featureRequests.UpvoteButton","button"),En=_("featureRequests.Header"),xn=_("featureRequests.Voting"),kn=_("featureRequests.VoteCount"),Cn=_("featureRequests.Info"),Rn=_("featureRequests.Title"),Tn=_("featureRequests.Description"),Ln=_("featureRequests.Tags"),Mn=_("featureRequests.Status"),Sn=_("featureRequests.Options"),An=_("featureRequests.CommentsButton");function On(e){const{featureRequest:n,openDiscussion:t}=e;return l(En,null,l(xn,null,l(bn,null,l(gn,{className:"fn-h-12 fn-w-12 fn--m-2"})),l(kn,null,n.votes_count)),l(Cn,null,l(Rn,null,n.title),l(Tn,null,n.description),l(Ln,null,n.projects.map(o=>l(wn,{key:o.id},o.name))),l(Mn,null,"Considering")),l(Sn,null,l(An,{onClick:()=>t(n.id)},"10k",l(vn,{className:"fn-w-5 fn-h-5"}))))}const Un=_("featureRequests.Container"),Dn=_("featureRequests.Body"),Nn=_("featureRequests.Pagination"),In=_("featureRequests.PaginationInfo"),Pn=_("featureRequests.PaginationLinks"),We=_("featureRequests.PaginationButton","button");function qn(e){const{featureRequests:n,openDiscussion:t,goToPage:o,isLoading:u}=e;if(!n||u)return l("div",null,"Loading...");const{data:r,meta:d}=n;return l(Un,null,l(Dn,null,Object.values(r).map(y=>l(On,{key:y.id,featureRequest:y,openDiscussion:t}))),l(Nn,{"aria-label":"Pagination"},l(In,null,"Showing ",l("span",{className:"fn-font-medium"},d.from)," to"," ",l("span",{className:"fn-font-medium"},d.to)," of"," ",l("span",{className:"fn-font-medium"},d.total)," results"),l(Pn,null,l(We,{disabled:d.current_page===1?"disabled":void 0,onClick:()=>o(d.current_page-1)},"Previous"),l(We,{disabled:d.current_page+1>d.last_page?"disabled":void 0,onClick:()=>o(d.current_page+1)},"Next"))))}var R;(function(e){e.UPVOTE="UPVOTE",e.LOADING_FEATURE_REQUESTS="LOADING_FEATURE_REQUESTS",e.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",e.FEATURE_REQUEST_LOADED="FEATURE_REQUEST_LOADED",e.LOADING_FEATURE_REQUEST="LOADING_FEATURE_REQUEST",e.HANDLE_ERROR="HANDLE_ERROR",e.OPEN_MODAL="OPEN_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.NAVIGATE="NAVIGATE"})(R||(R={}));const $n={navigation:{route:"",pathname:"",search:{},params:{}},isLoadingFeatureRequests:!0,isLoadingFeatureRequest:!1},Fn=(e,n)=>{switch(console.log(n),n.type){case R.UPVOTE:return k({},e);case R.LOADING_FEATURE_REQUESTS:return U(k({},e),{isLoadingFeatureRequests:!0});case R.FEATURE_REQUESTS_LOADED:return U(k({},e),{featureRequests:n.payload,isLoadingFeatureRequests:!1});case R.LOADING_FEATURE_REQUEST:return U(k({},e),{isLoadingFeatureRequest:!0});case R.FEATURE_REQUEST_LOADED:return U(k({},e),{featureRequest:n.payload,isLoadingFeatureRequest:!1});case R.HANDLE_ERROR:return U(k({},e),{error:n.payload});case R.OPEN_MODAL:return U(k({},e),{modal:n.payload});case R.CLOSE_MODAL:return U(k({},e),{modal:void 0});case R.NAVIGATE:return U(k({},e),{navigation:n.payload});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};var Hn={Container:` | ||
`+M(s));break}i.push(p)}}}}();var At="",X,S,De,K=0,de=[],Ne=f.__b,Ie=f.__r,Pe=f.diffed,$e=f.__c,qe=f.unmount;function pe(e,n){f.__h&&f.__h(S,e,K||n),K=0;var t=S.__H||(S.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function pn(e,n,t){var o=pe(X++,2);return o.t=e,o.__c||(o.__=[t?t(n):yn(void 0,n),function(u){var r=o.t(o.__[0],u);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=S),o.__}function Z(e,n){var t=pe(X++,3);!f.__s&&Be(t.__H,n)&&(t.__=e,t.__H=n,S.__H.__h.push(t))}function hn(e){return K=5,Fe(function(){return{current:e}},[])}function Fe(e,n){var t=pe(X++,7);return Be(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function He(e,n){return K=8,Fe(function(){return e},n)}function mn(){de.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(he),e.__H.__h=[]}catch(n){e.__H.__h=[],f.__e(n,e.__v)}}),de=[]}f.__b=function(e){S=null,Ne&&Ne(e)},f.__r=function(e){Ie&&Ie(e),X=0;var n=(S=e.__c).__H;n&&(n.__h.forEach(ee),n.__h.forEach(he),n.__h=[])},f.diffed=function(e){Pe&&Pe(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(de.push(n)!==1&&De===f.requestAnimationFrame||((De=f.requestAnimationFrame)||function(t){var o,u=function(){clearTimeout(r),je&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(u,100);je&&(o=requestAnimationFrame(u))})(mn)),S=void 0},f.__c=function(e,n){n.some(function(t){try{t.__h.forEach(ee),t.__h=t.__h.filter(function(o){return!o.__||he(o)})}catch(o){n.some(function(u){u.__h&&(u.__h=[])}),n=[],f.__e(o,t.__v)}}),$e&&$e(e,n)},f.unmount=function(e){qe&&qe(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(ee)}catch(t){f.__e(t,n.__v)}};var je=typeof requestAnimationFrame=="function";function ee(e){var n=S;typeof e.__c=="function"&&e.__c(),S=n}function he(e){var n=S;e.__c=e.__(),S=n}function Be(e,n){return!e||e.length!==n.length||n.some(function(t,o){return t!==e[o]})}function yn(e,n){return typeof n=="function"?n(e):n}var Ve=fn({});function _(e,n="div",t={}){const o=function(u){const y=u,{children:r}=y,d=ve(y,["children"]);return l(Ve.Consumer,null,m=>{const[g,a]=e.split(".");return g in m&&a in m[g]&&(t.className=m[g][a].split(` | ||
`).map(b=>b.trim()).join(" ").trim()),l(n,k(k({},t),d),r)})};return o.displayName=e,o}function gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),l("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}function vn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))}const wn=_("featureRequests.Tag"),bn=_("featureRequests.UpvoteButton","button"),En=_("featureRequests.Header"),xn=_("featureRequests.Voting"),kn=_("featureRequests.VoteCount"),Cn=_("featureRequests.Info"),Rn=_("featureRequests.Title"),Tn=_("featureRequests.Description"),Ln=_("featureRequests.Tags"),Mn=_("featureRequests.Status"),Sn=_("featureRequests.Options"),An=_("featureRequests.CommentsButton");function On(e){const{featureRequest:n,openDiscussion:t}=e;return l(En,null,l(xn,null,l(bn,null,l(gn,{className:"fn-h-12 fn-w-12 fn--m-2"})),l(kn,null,n.votes_count)),l(Cn,null,l(Rn,null,n.title),l(Tn,null,n.description),l(Ln,null,n.projects.map(o=>l(wn,{key:o.id},o.name))),l(Mn,null,"Considering")),l(Sn,null,l(An,{onClick:()=>t(n.id)},"10k",l(vn,{className:"fn-w-5 fn-h-5"}))))}const Un=_("featureRequests.Container"),Dn=_("featureRequests.Body"),Nn=_("featureRequests.Pagination"),In=_("featureRequests.PaginationInfo"),Pn=_("featureRequests.PaginationLinks"),We=_("featureRequests.PaginationButton","button");function $n(e){const{featureRequests:n,openDiscussion:t,goToPage:o,isLoading:u}=e;if(!n||u)return l("div",null,"Loading...");const{data:r,meta:d}=n;return l(Un,null,l(Dn,null,Object.values(r).map(y=>l(On,{key:y.id,featureRequest:y,openDiscussion:t}))),l(Nn,{"aria-label":"Pagination"},l(In,null,"Showing ",l("span",{className:"fn-font-medium"},d.from)," to"," ",l("span",{className:"fn-font-medium"},d.to)," of"," ",l("span",{className:"fn-font-medium"},d.total)," results"),l(Pn,null,l(We,{disabled:d.current_page===1?"disabled":void 0,onClick:()=>o(d.current_page-1)},"Previous"),l(We,{disabled:d.current_page+1>d.last_page?"disabled":void 0,onClick:()=>o(d.current_page+1)},"Next"))))}var R;(function(e){e.UPVOTE="UPVOTE",e.LOADING_FEATURE_REQUESTS="LOADING_FEATURE_REQUESTS",e.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",e.FEATURE_REQUEST_LOADED="FEATURE_REQUEST_LOADED",e.LOADING_FEATURE_REQUEST="LOADING_FEATURE_REQUEST",e.HANDLE_ERROR="HANDLE_ERROR",e.OPEN_MODAL="OPEN_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.NAVIGATE="NAVIGATE"})(R||(R={}));const qn={navigation:{route:"",pathname:"",search:{},params:{}},isLoadingFeatureRequests:!0,isLoadingFeatureRequest:!1},Fn=(e,n)=>{switch(console.log(n),n.type){case R.UPVOTE:return k({},e);case R.LOADING_FEATURE_REQUESTS:return U(k({},e),{isLoadingFeatureRequests:!0});case R.FEATURE_REQUESTS_LOADED:return U(k({},e),{featureRequests:n.payload,isLoadingFeatureRequests:!1});case R.LOADING_FEATURE_REQUEST:return U(k({},e),{isLoadingFeatureRequest:!0});case R.FEATURE_REQUEST_LOADED:return U(k({},e),{featureRequest:n.payload,isLoadingFeatureRequest:!1});case R.HANDLE_ERROR:return U(k({},e),{error:n.payload});case R.OPEN_MODAL:return U(k({},e),{modal:n.payload});case R.CLOSE_MODAL:return U(k({},e),{modal:void 0});case R.NAVIGATE:return U(k({},e),{navigation:n.payload});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};var Hn={Container:` | ||
fn-max-w-4xl | ||
@@ -265,3 +265,3 @@ fn-mx-auto | ||
fn-text-gray-500 | ||
fn-text-sm`},Vn={app:Hn,featureRequests:Bn,discussionModal:jn};function Wn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}function Gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}function Qn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))}const Ge=_("discussionModal.Backdrop"),Qe=_("discussionModal.Container"),ze=_("discussionModal.Header"),Je=_("discussionModal.ThemedCloseIcon",Gn),Ye=_("discussionModal.CloseButton"),zn=_("discussionModal.Body"),Jn=_("discussionModal.Info"),Xe=_("discussionModal.Title","button"),Yn=_("discussionModal.FeatureRequestMeta"),Xn=_("discussionModal.AuthorName"),Kn=_("discussionModal.AuthorDateTime"),Zn=_("discussionModal.Comments"),Ke=_("discussionModal.Heading"),et=_("discussionModal.Description"),nt=_("discussionModal.Status"),tt=_("discussionModal.Comment"),ot=_("discussionModal.CommentMeta"),rt=_("discussionModal.CommenterName"),st=_("discussionModal.CommenterDateTime"),at=_("discussionModal.Message"),it=_("discussionModal.CreateCommentForm"),ne=_("discussionModal.Label","label"),te=_("discussionModal.FormField"),lt=_("discussionModal.MessageInput","textarea"),ut=_("discussionModal.NameInput","input"),ft=_("discussionModal.EmailInput","input"),ct=_("discussionModal.Consent"),_t=_("discussionModal.PostCommentButton","button"),Ze=_("discussionModal.ThemedCalenderIcon",Wn),en=_("discussionModal.ThemedUserIcon",Qn);function dt(e){const{featureRequest:n,close:t,isLoading:o}=e;return Z(()=>{function u(r){r.keyCode===27&&t()}return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[]),!n||o?l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,"Loading..."),l(Ye,{onClick:t},l(Je,null))))):l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,n.title),l(Ye,{onClick:t},l(Je,null))),l(zn,null,l(Jn,null,l(Yn,null,l(Xn,null,l(en,null)," Krock Schroemen"),l(Kn,null,l(Ze,null)," Tue 5. Oct 2021 12:58")),l(et,null,"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Obcaecati, sed. Vitae debitis incidunt at labore reiciendis dolore totam repellat, perferendis veritatis, sit cumque minima a. Modi natus architecto qui numquam."),l(nt,null,"Considering")),l(Zn,null,l(Ke,null,"Discussion"),l(tt,null,l(ot,null,l(rt,null,l(en,null)," Roj Vroemen"),l(st,null,l(Ze,null)," Tue 5. Oct 2021 13:37")),l(at,null,"Leet!"))),l(it,null,l(Ke,null,"Add a comment"),l(te,null,l(ne,{for:"comment-message"},"Message"),l(lt,{id:"comment-message"})),l(te,null,l(ne,{for:"comment-name"},"Name"),l(ut,{id:"comment-name"})),l(te,null,l(ne,{for:"comment-email"},"E-mail"),l(ft,{id:"comment-email"})),l(ct,null),l(te,null,l(ne,null),l(_t,null,"Post Comment"))))))}class pt{constructor(n,t="https://api.feature.ninja"){this.workspace=n,this.url=t}request(n,t="GET",o){return fetch(`${this.url}/${n}`,k({method:t},o?{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}:{})).then(u=>{if(u.ok)return u.json();throw new Error(`Error calling api: ${u.statusText}`)})}featureRequests(n="1",t){return this.request(`workspaces/${this.workspace}/feature-requests?page=${n}${t?`&projects=${t.join(",")}`:""}`)}featureRequest(n){return ue(this,null,function*(){let t=1;for(;t<10;){const o=yield this.featureRequests(t);for(const u of o.data)if(u.id===n)return u;t++}})}}const ht=_("app.Container"),mt=_("app.Searchbar"),yt=_("app.SearchInput","input"),gt=_("app.Spacer"),vt=_("app.Menu","nav"),wt=_("app.ActiveMenuLink","a"),bt=_("app.MenuLink","a");function Et(e){const o=e,{children:n}=o,t=ve(o,["children"]);return l(ht,k({},t),l(vt,null,e.activeRoute==="/"||e.activeRoute.startsWith("/feature-requests")?l(wt,{href:"#/"},"Feature Requests"):l(bt,{href:"#/"},"Feature Requests")),l(mt,null,l("span",{className:"fn-sr-only"},"Search..."),l(yt,{type:"text",placeholder:"Search..."})),l(gt,null),n)}function xt(e){const{options:{workspace:n,projects:t,theme:o}}=e,[u,r]=pn(Fn,$n),{error:d,modal:y,featureRequest:m,featureRequests:g,isLoadingFeatureRequests:a,isLoadingFeatureRequest:b,navigation:s}=u,i=hn();Z(()=>{i.current=new pt(n)},[n]),Z(()=>{const p=["/","/feature-requests/:id"];function h(){const w=new URL(document.URL).hash.substr(1),L=new URL(document.URL),x=new URL(`${L.protocol}//${L.host}/${w.replace(/^\//,"")}`);for(const A of p){const oe=A.match(/:(.*)/g)||[],re=A.replace(/:(.*)/g,"(.*)"),I=new RegExp(`^${re}$`,"g").exec(x.pathname);if(I){const se=I.slice(1);if(se.length!==oe.length)throw new Error("Variable names and values mismatch");const kt=oe.reduce((ae,ie,Rt)=>{const Tt=ie.substr(1);return ae[Tt]=se[Rt],ae},{}),Ct=[...x.searchParams].reduce((ae,ie)=>U(k({},ae),{[ie[0]]:ie[1]}),{});r({type:R.NAVIGATE,payload:{route:A,pathname:x.pathname,search:Ct,params:kt}});return}}r({type:R.NAVIGATE,payload:{route:"not-found",pathname:"not-found",search:{},params:{}}})}return h(),window.addEventListener("hashchange",h),()=>window.removeEventListener("hashchange",h)},[]);const c=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUESTS});const w=yield(h=i.current)==null?void 0:h.featureRequests(p,t);r({type:R.FEATURE_REQUESTS_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i,t]),v=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUEST});const w=yield(h=i.current)==null?void 0:h.featureRequest(p);r({type:R.FEATURE_REQUEST_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i]);return Z(()=>{switch(s.route){case"/":{const p=s.search.page||"1";(!g||String(g.meta.current_page)!==p)&&c(s.search.page||"1");return}case"/feature-requests/:id":{v(s.params.id);return}}},[v,c,g,s]),l("div",{style:{overflowY:y?"hidden":"auto",height:"100%",width:"100%"}},l(Ve.Provider,{value:k(k({},Vn),o)},l(Et,{activeRoute:s.route},l(qn,{error:d,isLoading:a,featureRequests:g,goToPage:p=>{window.location.hash="/?page="+p},openDiscussion:p=>{window.location.hash=`/feature-requests/${p}?${new URLSearchParams(s.search).toString()}`}}),s.route==="/feature-requests/:id"&&l(dt,{isLoading:b,close:()=>{r({type:R.CLOSE_MODAL}),window.location.hash=`/?${new URLSearchParams(s.search).toString()}`},featureRequest:m}))))}const ye=document.currentScript;function nn(e){if(!e.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var u;const t=k(k({},{elementId:"feature-ninja-widget"}),e);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,ye?(u=ye.parentElement)==null||u.insertBefore(o,ye):document.body.appendChild(o)),un(l(xt,{options:t}),o)})}return window.featureNinja=nn,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import"https://rsms.me/inter/inter.css";*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:-moz-focusring{outline:auto}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );--tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.fn-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fn-fixed{position:fixed}.fn-relative{position:relative}.fn-inset-0{top:0px;right:0px;bottom:0px;left:0px}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mb-2{margin-bottom:.5rem}.fn-mt-8{margin-top:2rem}.fn-mb-4{margin-bottom:1rem}.fn-mt-5{margin-top:1.25rem}.fn-mb-5{margin-bottom:1.25rem}.fn-mt-4{margin-top:1rem}.fn-mr-1{margin-right:.25rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-12{height:3rem}.fn-h-5{height:1.25rem}.fn-h-8{height:2rem}.fn-h-40{height:10rem}.fn-w-12{width:3rem}.fn-w-5{width:1.25rem}.fn-w-full{width:100%}.fn-w-11\/12{width:91.666667%}.fn-w-8{width:2rem}.fn-w-24{width:6rem}.fn-w-10{width:2.5rem}.fn-max-w-4xl{max-width:56rem}.fn-flex-1{flex:1 1 0%}.fn-flex-grow{flex-grow:1}.fn-flex-col{flex-direction:column}.fn-items-center{align-items:center}.fn-justify-center{justify-content:center}.fn-justify-between{justify-content:space-between}.fn-gap-2{gap:.5rem}.fn-gap-4{gap:1rem}.fn-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.fn-divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.fn-overflow-y-auto{overflow-y:auto}.fn-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded-md{border-radius:.375rem}.fn-rounded-xl{border-radius:.75rem}.fn-rounded{border-radius:.25rem}.fn-rounded-full{border-radius:9999px}.fn-border-2{border-width:2px}.fn-border{border-width:1px}.fn-border-b-2{border-bottom-width:2px}.fn-border-t{border-top-width:1px}.fn-border-solid{border-style:solid}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.fn-bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-bg-blue-500{--tw-bg-opacity: 1;background-color:rgba(59,130,246,var(--tw-bg-opacity))}.fn-bg-opacity-40{--tw-bg-opacity: .4}.fn-stroke-2{stroke-width:2}.fn-p-4{padding:1rem}.fn-p-2{padding:.5rem}.fn-p-5{padding:1.25rem}.fn-px-6{padding-left:1.5rem;padding-right:1.5rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-pt-4{padding-top:1rem}.fn-pb-1{padding-bottom:.25rem}.fn-pl-5{padding-left:1.25rem}.fn-pr-5{padding-right:1.25rem}.fn-pr-6{padding-right:1.5rem}.fn-pt-2{padding-top:.5rem}.fn-pr-4{padding-right:1rem}.fn-text-right{text-align:right}.fn-text-2xl{font-size:1.5rem;line-height:2rem}.fn-text-xs{font-size:.75rem;line-height:1rem}.fn-text-sm{font-size:.875rem;line-height:1.25rem}.fn-font-medium{font-weight:500}.fn-font-semibold{font-weight:600}.fn-text-gray-300{--tw-text-opacity: 1;color:rgba(209,213,219,var(--tw-text-opacity))}.fn-text-blue-400{--tw-text-opacity: 1;color:rgba(96,165,250,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}.fn-text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.fn-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-gray-400{--tw-text-opacity: 1;color:rgba(156,163,175,var(--tw-text-opacity))}.fn-text-gray-500{--tw-text-opacity: 1;color:rgba(107,114,128,var(--tw-text-opacity))}.fn-underline{text-decoration:underline}.fn-shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fn-ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.fn-ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgba(156, 163, 175, var(--tw-ring-opacity))}.fn-drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgba(0, 0, 0, .15));filter:var(--tw-filter)}.hover\:fn-bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.hover\:fn-bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.hover\:fn-text-green-400:hover{--tw-text-opacity: 1;color:rgba(52,211,153,var(--tw-text-opacity))}.focus\:fn-border-green-400:focus{--tw-border-opacity: 1;border-color:rgba(52,211,153,var(--tw-border-opacity))}.focus\:fn-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:fn-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:fn-ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(52, 211, 153, var(--tw-ring-opacity))}.focus\:fn-ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:fn-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:fn-opacity-25:disabled{opacity:.25}@media (min-width: 640px){.sm\:fn-block{display:block}.sm\:fn-justify-end{justify-content:flex-end}.sm\:fn-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\:fn-px-8{padding-left:2rem;padding-right:2rem}} | ||
fn-text-sm`},Vn={app:Hn,featureRequests:Bn,discussionModal:jn};function Wn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}function Gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}function Qn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))}const Ge=_("discussionModal.Backdrop"),Qe=_("discussionModal.Container"),ze=_("discussionModal.Header"),Je=_("discussionModal.ThemedCloseIcon",Gn),Ye=_("discussionModal.CloseButton"),zn=_("discussionModal.Body"),Jn=_("discussionModal.Info"),Xe=_("discussionModal.Title","button"),Yn=_("discussionModal.FeatureRequestMeta"),Xn=_("discussionModal.AuthorName"),Kn=_("discussionModal.AuthorDateTime"),Zn=_("discussionModal.Comments"),Ke=_("discussionModal.Heading"),et=_("discussionModal.Description"),nt=_("discussionModal.Status"),tt=_("discussionModal.Comment"),ot=_("discussionModal.CommentMeta"),rt=_("discussionModal.CommenterName"),st=_("discussionModal.CommenterDateTime"),at=_("discussionModal.Message"),it=_("discussionModal.CreateCommentForm"),ne=_("discussionModal.Label","label"),te=_("discussionModal.FormField"),lt=_("discussionModal.MessageInput","textarea"),ut=_("discussionModal.NameInput","input"),ft=_("discussionModal.EmailInput","input"),ct=_("discussionModal.Consent"),_t=_("discussionModal.PostCommentButton","button"),Ze=_("discussionModal.ThemedCalenderIcon",Wn),en=_("discussionModal.ThemedUserIcon",Qn);function dt(e){const{featureRequest:n,close:t,isLoading:o}=e;return Z(()=>{function u(r){r.keyCode===27&&t()}return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[]),!n||o?l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,"Loading..."),l(Ye,{onClick:t},l(Je,null))))):l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,n.title),l(Ye,{onClick:t},l(Je,null))),l(zn,null,l(Jn,null,l(Yn,null,l(Xn,null,l(en,null)," Krock Schroemen"),l(Kn,null,l(Ze,null)," Tue 5. Oct 2021 12:58")),l(et,null,"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Obcaecati, sed. Vitae debitis incidunt at labore reiciendis dolore totam repellat, perferendis veritatis, sit cumque minima a. Modi natus architecto qui numquam."),l(nt,null,"Considering")),l(Zn,null,l(Ke,null,"Discussion"),l(tt,null,l(ot,null,l(rt,null,l(en,null)," Roj Vroemen"),l(st,null,l(Ze,null)," Tue 5. Oct 2021 13:37")),l(at,null,"Leet!"))),l(it,null,l(Ke,null,"Add a comment"),l(te,null,l(ne,{for:"comment-message"},"Message"),l(lt,{id:"comment-message"})),l(te,null,l(ne,{for:"comment-name"},"Name"),l(ut,{id:"comment-name"})),l(te,null,l(ne,{for:"comment-email"},"E-mail"),l(ft,{id:"comment-email"})),l(ct,null),l(te,null,l(ne,null),l(_t,null,"Post Comment"))))))}class pt{constructor(n,t="https://api.feature.ninja"){this.workspace=n,this.url=t}request(n,t="GET",o){return fetch(`${this.url}/${n}`,k({method:t},o?{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}:{})).then(u=>{if(u.ok)return u.json();throw new Error(`Error calling api: ${u.statusText}`)})}featureRequests(n="1",t){return this.request(`workspaces/${this.workspace}/feature-requests?page=${n}${t?`&projects=${t.join(",")}`:""}`)}featureRequest(n){return ue(this,null,function*(){let t=1;for(;t<10;){const o=yield this.featureRequests(`${t}`);for(const u of o.data)if(u.id===n)return u;t++}})}}const ht=_("app.Container"),mt=_("app.Searchbar"),yt=_("app.SearchInput","input"),gt=_("app.Spacer"),vt=_("app.Menu","nav"),wt=_("app.ActiveMenuLink","a"),bt=_("app.MenuLink","a");function Et(e){const o=e,{children:n}=o,t=ve(o,["children"]);return l(ht,k({},t),l(vt,null,e.activeRoute==="/"||e.activeRoute.startsWith("/feature-requests")?l(wt,{href:"#/"},"Feature Requests"):l(bt,{href:"#/"},"Feature Requests")),l(mt,null,l("span",{className:"fn-sr-only"},"Search..."),l(yt,{type:"text",placeholder:"Search..."})),l(gt,null),n)}function xt(e){const{options:{workspace:n,projects:t,theme:o}}=e,[u,r]=pn(Fn,qn),{error:d,modal:y,featureRequest:m,featureRequests:g,isLoadingFeatureRequests:a,isLoadingFeatureRequest:b,navigation:s}=u,i=hn();Z(()=>{i.current=new pt(n)},[n]),Z(()=>{const p=["/","/feature-requests/:id"];function h(){const w=new URL(document.URL).hash.substr(1),L=new URL(document.URL),x=new URL(`${L.protocol}//${L.host}/${w.replace(/^\//,"")}`);for(const A of p){const oe=A.match(/:(.*)/g)||[],re=A.replace(/:(.*)/g,"(.*)"),I=new RegExp(`^${re}$`,"g").exec(x.pathname);if(I){const se=I.slice(1);if(se.length!==oe.length)throw new Error("Variable names and values mismatch");const kt=oe.reduce((ae,ie,Rt)=>{const Tt=ie.substr(1);return ae[Tt]=se[Rt],ae},{}),Ct=[...x.searchParams].reduce((ae,ie)=>U(k({},ae),{[ie[0]]:ie[1]}),{});r({type:R.NAVIGATE,payload:{route:A,pathname:x.pathname,search:Ct,params:kt}});return}}r({type:R.NAVIGATE,payload:{route:"not-found",pathname:"not-found",search:{},params:{}}})}return h(),window.addEventListener("hashchange",h),()=>window.removeEventListener("hashchange",h)},[]);const c=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUESTS});const w=yield(h=i.current)==null?void 0:h.featureRequests(p,t);r({type:R.FEATURE_REQUESTS_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i,t]),v=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUEST});const w=yield(h=i.current)==null?void 0:h.featureRequest(p);r({type:R.FEATURE_REQUEST_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i]);return Z(()=>{switch(s.route){case"/":{const p=s.search.page||"1";(!g||String(g.meta.current_page)!==p)&&c(s.search.page||"1");return}case"/feature-requests/:id":{v(s.params.id);return}}},[v,c,g,s]),l("div",{style:{overflowY:y?"hidden":"auto",height:"100%",width:"100%"}},l(Ve.Provider,{value:k(k({},Vn),o)},l(Et,{activeRoute:s.route},l($n,{error:d,isLoading:a,featureRequests:g,goToPage:p=>{window.location.hash="/?page="+p},openDiscussion:p=>{window.location.hash=`/feature-requests/${p}?${new URLSearchParams(s.search).toString()}`}}),s.route==="/feature-requests/:id"&&l(dt,{isLoading:b,close:()=>{r({type:R.CLOSE_MODAL}),window.location.hash=`/?${new URLSearchParams(s.search).toString()}`},featureRequest:m}))))}const ye=document.currentScript;function nn(e){if(!e.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var u;const t=k(k({},{elementId:"feature-ninja-widget"}),e);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,ye?(u=ye.parentElement)==null||u.insertBefore(o,ye):document.body.appendChild(o)),un(l(xt,{options:t}),o)})}return window.featureNinja=nn,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import"https://rsms.me/inter/inter.css";*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:-moz-focusring{outline:auto}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );--tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.fn-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fn-fixed{position:fixed}.fn-relative{position:relative}.fn-inset-0{top:0px;right:0px;bottom:0px;left:0px}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mb-2{margin-bottom:.5rem}.fn-mt-8{margin-top:2rem}.fn-mb-4{margin-bottom:1rem}.fn-mt-5{margin-top:1.25rem}.fn-mb-5{margin-bottom:1.25rem}.fn-mt-4{margin-top:1rem}.fn-mr-1{margin-right:.25rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-12{height:3rem}.fn-h-5{height:1.25rem}.fn-h-8{height:2rem}.fn-h-40{height:10rem}.fn-w-12{width:3rem}.fn-w-5{width:1.25rem}.fn-w-full{width:100%}.fn-w-11\/12{width:91.666667%}.fn-w-8{width:2rem}.fn-w-24{width:6rem}.fn-w-10{width:2.5rem}.fn-max-w-4xl{max-width:56rem}.fn-flex-1{flex:1 1 0%}.fn-flex-grow{flex-grow:1}.fn-flex-col{flex-direction:column}.fn-items-center{align-items:center}.fn-justify-center{justify-content:center}.fn-justify-between{justify-content:space-between}.fn-gap-2{gap:.5rem}.fn-gap-4{gap:1rem}.fn-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.fn-divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.fn-overflow-y-auto{overflow-y:auto}.fn-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded-md{border-radius:.375rem}.fn-rounded-xl{border-radius:.75rem}.fn-rounded{border-radius:.25rem}.fn-rounded-full{border-radius:9999px}.fn-border-2{border-width:2px}.fn-border{border-width:1px}.fn-border-b-2{border-bottom-width:2px}.fn-border-t{border-top-width:1px}.fn-border-solid{border-style:solid}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.fn-bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-bg-blue-500{--tw-bg-opacity: 1;background-color:rgba(59,130,246,var(--tw-bg-opacity))}.fn-bg-opacity-40{--tw-bg-opacity: .4}.fn-stroke-2{stroke-width:2}.fn-p-4{padding:1rem}.fn-p-2{padding:.5rem}.fn-p-5{padding:1.25rem}.fn-px-6{padding-left:1.5rem;padding-right:1.5rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-pt-4{padding-top:1rem}.fn-pb-1{padding-bottom:.25rem}.fn-pl-5{padding-left:1.25rem}.fn-pr-5{padding-right:1.25rem}.fn-pr-6{padding-right:1.5rem}.fn-pt-2{padding-top:.5rem}.fn-pr-4{padding-right:1rem}.fn-text-right{text-align:right}.fn-text-2xl{font-size:1.5rem;line-height:2rem}.fn-text-xs{font-size:.75rem;line-height:1rem}.fn-text-sm{font-size:.875rem;line-height:1.25rem}.fn-font-medium{font-weight:500}.fn-font-semibold{font-weight:600}.fn-text-gray-300{--tw-text-opacity: 1;color:rgba(209,213,219,var(--tw-text-opacity))}.fn-text-blue-400{--tw-text-opacity: 1;color:rgba(96,165,250,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}.fn-text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.fn-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-gray-400{--tw-text-opacity: 1;color:rgba(156,163,175,var(--tw-text-opacity))}.fn-text-gray-500{--tw-text-opacity: 1;color:rgba(107,114,128,var(--tw-text-opacity))}.fn-underline{text-decoration:underline}.fn-shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fn-ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.fn-ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgba(156, 163, 175, var(--tw-ring-opacity))}.fn-drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgba(0, 0, 0, .15));filter:var(--tw-filter)}.hover\:fn-bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.hover\:fn-bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.hover\:fn-text-green-400:hover{--tw-text-opacity: 1;color:rgba(52,211,153,var(--tw-text-opacity))}.focus\:fn-border-green-400:focus{--tw-border-opacity: 1;border-color:rgba(52,211,153,var(--tw-border-opacity))}.focus\:fn-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:fn-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:fn-ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(52, 211, 153, var(--tw-ring-opacity))}.focus\:fn-ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:fn-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:fn-opacity-25:disabled{opacity:.25}@media (min-width: 640px){.sm\:fn-block{display:block}.sm\:fn-justify-end{justify-content:flex-end}.sm\:fn-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\:fn-px-8{padding-left:2rem;padding-right:2rem}} | ||
`) })(),nn}();})(); |
@@ -1,2 +0,2 @@ | ||
var Lt=Object.defineProperty,Mt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var rn=(b,f,C)=>f in b?Lt(b,f,{enumerable:!0,configurable:!0,writable:!0,value:C}):b[f]=C,k=(b,f)=>{for(var C in f||(f={}))tn.call(f,C)&&rn(b,C,f[C]);if(le)for(var C of le(f))on.call(f,C)&&rn(b,C,f[C]);return b},U=(b,f)=>Mt(b,St(f));var ve=(b,f)=>{var C={};for(var T in b)tn.call(b,T)&&f.indexOf(T)<0&&(C[T]=b[T]);if(b!=null&&le)for(var T of le(b))f.indexOf(T)<0&&on.call(b,T)&&(C[T]=b[T]);return C};var ue=(b,f,C)=>new Promise((T,B)=>{var G=O=>{try{P(C.next(O))}catch(V){B(V)}},Q=O=>{try{P(C.throw(O))}catch(V){B(V)}},P=O=>O.done?T(O.value):Promise.resolve(O.value).then(G,Q);P((C=C.apply(b,f)).next())});(function(b,f){typeof exports=="object"&&typeof module!="undefined"?module.exports=f():typeof define=="function"&&define.amd?define(f):(b=typeof globalThis!="undefined"?globalThis:b||self,b.FeatureNinjaWidget=f())})(this,function(){"use strict";var b,f,C,T,B,G,Q,P={},O=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function q(e,n){for(var t in n)e[t]=n[t];return e}function we(e){var n=e.parentNode;n&&n.removeChild(e)}function l(e,n,t){var o,u,r,d={};for(r in n)r=="key"?o=n[r]:r=="ref"?u=n[r]:d[r]=n[r];if(arguments.length>2&&(d.children=arguments.length>3?b.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)d[r]===void 0&&(d[r]=e.defaultProps[r]);return z(e,d,o,u,null)}function z(e,n,t,o,u){var r={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:u==null?++C:u};return f.vnode!=null&&f.vnode(r),r}function F(e){return e.children}function D(e,n){this.props=e,this.context=n}function H(e,n){if(n==null)return e.__?H(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?H(e):null}function be(e){var n,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return be(e)}}function fe(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!J.__r++||G!==f.debounceRendering)&&((G=f.debounceRendering)||B)(J)}function J(){for(var e;J.__r=T.length;)e=T.sort(function(n,t){return n.__v.__b-t.__v.__b}),T=[],e.some(function(n){var t,o,u,r,d,y;n.__d&&(d=(r=(t=n).__v).__e,(y=t.__P)&&(o=[],(u=q({},r)).__v=r.__v+1,ce(y,r,u,t.__n,y.ownerSVGElement!==void 0,r.__h!=null?[d]:null,o,d==null?H(r):d,r.__h),Le(o,r),r.__e!=d&&be(r)))})}function Ee(e,n,t,o,u,r,d,y,m,g){var a,E,s,i,c,v,p,h=o&&o.__k||O,w=h.length;for(t.__k=[],a=0;a<n.length;a++)if((i=t.__k[a]=(i=n[a])==null||typeof i=="boolean"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"?z(null,i,null,null,i):Array.isArray(i)?z(F,{children:i},null,null,null):i.__b>0?z(i.type,i.props,i.key,null,i.__v):i)!=null){if(i.__=t,i.__b=t.__b+1,(s=h[a])===null||s&&i.key==s.key&&i.type===s.type)h[a]=void 0;else for(E=0;E<w;E++){if((s=h[E])&&i.key==s.key&&i.type===s.type){h[E]=void 0;break}s=null}ce(e,i,s=s||P,u,r,d,y,m,g),c=i.__e,(E=i.ref)&&s.ref!=E&&(p||(p=[]),s.ref&&p.push(s.ref,null,i),p.push(E,i.__c||c,i)),c!=null?(v==null&&(v=c),typeof i.type=="function"&&i.__k!=null&&i.__k===s.__k?i.__d=m=xe(i,m,e):m=ke(e,i,s,h,c,m),g||t.type!=="option"?typeof t.type=="function"&&(t.__d=m):e.value=""):m&&s.__e==m&&m.parentNode!=e&&(m=H(s))}for(t.__e=v,a=w;a--;)h[a]!=null&&(typeof t.type=="function"&&h[a].__e!=null&&h[a].__e==t.__d&&(t.__d=H(o,a+1)),Se(h[a],h[a]));if(p)for(a=0;a<p.length;a++)Me(p[a],p[++a],p[++a])}function xe(e,n,t){var o,u;for(o=0;o<e.__k.length;o++)(u=e.__k[o])&&(u.__=e,n=typeof u.type=="function"?xe(u,n,t):ke(t,u,u,e.__k,u.__e,n));return n}function ke(e,n,t,o,u,r){var d,y,m;if(n.__d!==void 0)d=n.__d,n.__d=void 0;else if(t==null||u!=r||u.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(u),d=null;else{for(y=r,m=0;(y=y.nextSibling)&&m<o.length;m+=2)if(y==u)break e;e.insertBefore(u,r),d=r}return d!==void 0?d:u.nextSibling}function sn(e,n,t,o,u){var r;for(r in t)r==="children"||r==="key"||r in n||Y(e,r,null,t[r],o);for(r in n)u&&typeof n[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===n[r]||Y(e,r,n[r],t[r],o)}function Ce(e,n,t){n[0]==="-"?e.setProperty(n,t):e[n]=t==null?"":typeof t!="number"||V.test(n)?t:t+"px"}function Y(e,n,t,o,u){var r;e:if(n==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||Ce(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||Ce(e.style,n,t[n])}else if(n[0]==="o"&&n[1]==="n")r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=t,t?o||e.addEventListener(n,r?Te:Re,r):e.removeEventListener(n,r?Te:Re,r);else if(n!=="dangerouslySetInnerHTML"){if(u)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(n!=="href"&&n!=="list"&&n!=="form"&&n!=="tabIndex"&&n!=="download"&&n in e)try{e[n]=t==null?"":t;break e}catch(d){}typeof t=="function"||(t!=null&&(t!==!1||n[0]==="a"&&n[1]==="r")?e.setAttribute(n,t):e.removeAttribute(n))}}function Re(e){this.l[e.type+!1](f.event?f.event(e):e)}function Te(e){this.l[e.type+!0](f.event?f.event(e):e)}function ce(e,n,t,o,u,r,d,y,m){var g,a,E,s,i,c,v,p,h,w,L,x=n.type;if(n.constructor!==void 0)return null;t.__h!=null&&(m=t.__h,y=n.__e=t.__e,n.__h=null,r=[y]),(g=f.__b)&&g(n);try{e:if(typeof x=="function"){if(p=n.props,h=(g=x.contextType)&&o[g.__c],w=g?h?h.props.value:g.__:o,t.__c?v=(a=n.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?n.__c=a=new x(p,w):(n.__c=a=new D(p,w),a.constructor=x,a.render=ln),h&&h.sub(a),a.props=p,a.state||(a.state={}),a.context=w,a.__n=o,E=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=q({},a.__s)),q(a.__s,x.getDerivedStateFromProps(p,a.__s))),s=a.props,i=a.state,E)x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(x.getDerivedStateFromProps==null&&p!==s&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(p,w),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(p,a.__s,w)===!1||n.__v===t.__v){a.props=p,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach(function(A){A&&(A.__=n)}),a.__h.length&&d.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(p,a.__s,w),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(s,i,c)})}a.context=w,a.props=p,a.state=a.__s,(g=f.__r)&&g(n),a.__d=!1,a.__v=n,a.__P=e,g=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(o=q(q({},o),a.getChildContext())),E||a.getSnapshotBeforeUpdate==null||(c=a.getSnapshotBeforeUpdate(s,i)),L=g!=null&&g.type===F&&g.key==null?g.props.children:g,Ee(e,Array.isArray(L)?L:[L],n,t,o,u,r,d,y,m),a.base=n.__e,n.__h=null,a.__h.length&&d.push(a),v&&(a.__E=a.__=null),a.__e=!1}else r==null&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=an(t.__e,n,t,o,u,r,d,m);(g=f.diffed)&&g(n)}catch(A){n.__v=null,(m||r!=null)&&(n.__e=y,n.__h=!!m,r[r.indexOf(y)]=null),f.__e(A,n,t)}}function Le(e,n){f.__c&&f.__c(n,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(o){o.call(t)})}catch(o){f.__e(o,t.__v)}})}function an(e,n,t,o,u,r,d,y){var m,g,a,E=t.props,s=n.props,i=n.type,c=0;if(i==="svg"&&(u=!0),r!=null){for(;c<r.length;c++)if((m=r[c])&&(m===e||(i?m.localName==i:m.nodeType==3))){e=m,r[c]=null;break}}if(e==null){if(i===null)return document.createTextNode(s);e=u?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i,s.is&&s),r=null,y=!1}if(i===null)E===s||y&&e.data===s||(e.data=s);else{if(r=r&&b.call(e.childNodes),g=(E=t.props||P).dangerouslySetInnerHTML,a=s.dangerouslySetInnerHTML,!y){if(r!=null)for(E={},c=0;c<e.attributes.length;c++)E[e.attributes[c].name]=e.attributes[c].value;(a||g)&&(a&&(g&&a.__html==g.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(sn(e,s,E,u,y),a)n.__k=[];else if(c=n.props.children,Ee(e,Array.isArray(c)?c:[c],n,t,o,u&&i!=="foreignObject",r,d,r?r[0]:t.__k&&H(t,0),y),r!=null)for(c=r.length;c--;)r[c]!=null&&we(r[c]);y||("value"in s&&(c=s.value)!==void 0&&(c!==e.value||i==="progress"&&!c)&&Y(e,"value",c,E.value,!1),"checked"in s&&(c=s.checked)!==void 0&&c!==e.checked&&Y(e,"checked",c,E.checked,!1))}return e}function Me(e,n,t){try{typeof e=="function"?e(n):e.current=n}catch(o){f.__e(o,t)}}function Se(e,n,t){var o,u;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Me(o,null,n)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,n)}o.base=o.__P=null}if(o=e.__k)for(u=0;u<o.length;u++)o[u]&&Se(o[u],n,typeof e.type!="function");t||e.__e==null||we(e.__e),e.__e=e.__d=void 0}function ln(e,n,t){return this.constructor(e,t)}function un(e,n,t){var o,u,r;f.__&&f.__(e,n),u=(o=typeof t=="function")?null:t&&t.__k||n.__k,r=[],ce(n,e=(!o&&t||n).__k=l(F,null,[e]),u||P,P,n.ownerSVGElement!==void 0,!o&&t?[t]:u?null:n.firstChild?b.call(n.childNodes):null,r,!o&&t?t:u?u.__e:n.firstChild,o),Le(r,e)}function fn(e,n){var t={__c:n="__cC"+Q++,__:e,Consumer:function(o,u){return o.children(u)},Provider:function(o){var u,r;return this.getChildContext||(u=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(d){this.props.value!==d.value&&u.some(fe)},this.sub=function(d){u.push(d);var y=d.componentWillUnmount;d.componentWillUnmount=function(){u.splice(u.indexOf(d),1),y&&y.call(d)}}),o.children}};return t.Provider.__=t.Consumer.contextType=t}b=O.slice,f={__e:function(e,n){for(var t,o,u;n=n.__;)if((t=n.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(e)),u=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(e),u=t.__d),u)return t.__E=t}catch(r){e=r}throw e}},C=0,D.prototype.setState=function(e,n){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=q({},this.state),typeof e=="function"&&(e=e(q({},t),this.props)),e&&q(t,e),e!=null&&this.__v&&(n&&this.__h.push(n),fe(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fe(this))},D.prototype.render=F,T=[],B=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0,Q=0,typeof window!="undefined"&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.14",f,{Fragment:F,Component:D});var Ae={};function $(e){return e.type===F?"Fragment":typeof e.type=="function"?e.type.displayName||e.type.name:typeof e.type=="string"?e.type:"#text"}var W=[],j=[];function Oe(){return W.length>0?W[W.length-1]:null}var Ue=!1;function _e(e){return typeof e.type=="function"&&e.type!=F}function M(e){for(var n=[e],t=e;t.__o!=null;)n.push(t.__o),t=t.__o;return n.reduce(function(o,u){o+=" in "+$(u);var r=u.__source;return r?o+=" (at "+r.fileName+":"+r.lineNumber+")":Ue||(Ue=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),o+` | ||
var Lt=Object.defineProperty,Mt=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var le=Object.getOwnPropertySymbols;var tn=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable;var rn=(b,f,C)=>f in b?Lt(b,f,{enumerable:!0,configurable:!0,writable:!0,value:C}):b[f]=C,k=(b,f)=>{for(var C in f||(f={}))tn.call(f,C)&&rn(b,C,f[C]);if(le)for(var C of le(f))on.call(f,C)&&rn(b,C,f[C]);return b},U=(b,f)=>Mt(b,St(f));var ve=(b,f)=>{var C={};for(var T in b)tn.call(b,T)&&f.indexOf(T)<0&&(C[T]=b[T]);if(b!=null&&le)for(var T of le(b))f.indexOf(T)<0&&on.call(b,T)&&(C[T]=b[T]);return C};var ue=(b,f,C)=>new Promise((T,B)=>{var G=O=>{try{P(C.next(O))}catch(V){B(V)}},Q=O=>{try{P(C.throw(O))}catch(V){B(V)}},P=O=>O.done?T(O.value):Promise.resolve(O.value).then(G,Q);P((C=C.apply(b,f)).next())});(function(b,f){typeof exports=="object"&&typeof module!="undefined"?module.exports=f():typeof define=="function"&&define.amd?define(f):(b=typeof globalThis!="undefined"?globalThis:b||self,b.FeatureNinjaWidget=f())})(this,function(){"use strict";var b,f,C,T,B,G,Q,P={},O=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function $(e,n){for(var t in n)e[t]=n[t];return e}function we(e){var n=e.parentNode;n&&n.removeChild(e)}function l(e,n,t){var o,u,r,d={};for(r in n)r=="key"?o=n[r]:r=="ref"?u=n[r]:d[r]=n[r];if(arguments.length>2&&(d.children=arguments.length>3?b.call(arguments,2):t),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)d[r]===void 0&&(d[r]=e.defaultProps[r]);return z(e,d,o,u,null)}function z(e,n,t,o,u){var r={type:e,props:n,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:u==null?++C:u};return f.vnode!=null&&f.vnode(r),r}function F(e){return e.children}function D(e,n){this.props=e,this.context=n}function H(e,n){if(n==null)return e.__?H(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null)return t.__e;return typeof e.type=="function"?H(e):null}function be(e){var n,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if((t=e.__k[n])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return be(e)}}function fe(e){(!e.__d&&(e.__d=!0)&&T.push(e)&&!J.__r++||G!==f.debounceRendering)&&((G=f.debounceRendering)||B)(J)}function J(){for(var e;J.__r=T.length;)e=T.sort(function(n,t){return n.__v.__b-t.__v.__b}),T=[],e.some(function(n){var t,o,u,r,d,y;n.__d&&(d=(r=(t=n).__v).__e,(y=t.__P)&&(o=[],(u=$({},r)).__v=r.__v+1,ce(y,r,u,t.__n,y.ownerSVGElement!==void 0,r.__h!=null?[d]:null,o,d==null?H(r):d,r.__h),Le(o,r),r.__e!=d&&be(r)))})}function Ee(e,n,t,o,u,r,d,y,m,g){var a,E,s,i,c,v,p,h=o&&o.__k||O,w=h.length;for(t.__k=[],a=0;a<n.length;a++)if((i=t.__k[a]=(i=n[a])==null||typeof i=="boolean"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"?z(null,i,null,null,i):Array.isArray(i)?z(F,{children:i},null,null,null):i.__b>0?z(i.type,i.props,i.key,null,i.__v):i)!=null){if(i.__=t,i.__b=t.__b+1,(s=h[a])===null||s&&i.key==s.key&&i.type===s.type)h[a]=void 0;else for(E=0;E<w;E++){if((s=h[E])&&i.key==s.key&&i.type===s.type){h[E]=void 0;break}s=null}ce(e,i,s=s||P,u,r,d,y,m,g),c=i.__e,(E=i.ref)&&s.ref!=E&&(p||(p=[]),s.ref&&p.push(s.ref,null,i),p.push(E,i.__c||c,i)),c!=null?(v==null&&(v=c),typeof i.type=="function"&&i.__k!=null&&i.__k===s.__k?i.__d=m=xe(i,m,e):m=ke(e,i,s,h,c,m),g||t.type!=="option"?typeof t.type=="function"&&(t.__d=m):e.value=""):m&&s.__e==m&&m.parentNode!=e&&(m=H(s))}for(t.__e=v,a=w;a--;)h[a]!=null&&(typeof t.type=="function"&&h[a].__e!=null&&h[a].__e==t.__d&&(t.__d=H(o,a+1)),Se(h[a],h[a]));if(p)for(a=0;a<p.length;a++)Me(p[a],p[++a],p[++a])}function xe(e,n,t){var o,u;for(o=0;o<e.__k.length;o++)(u=e.__k[o])&&(u.__=e,n=typeof u.type=="function"?xe(u,n,t):ke(t,u,u,e.__k,u.__e,n));return n}function ke(e,n,t,o,u,r){var d,y,m;if(n.__d!==void 0)d=n.__d,n.__d=void 0;else if(t==null||u!=r||u.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(u),d=null;else{for(y=r,m=0;(y=y.nextSibling)&&m<o.length;m+=2)if(y==u)break e;e.insertBefore(u,r),d=r}return d!==void 0?d:u.nextSibling}function sn(e,n,t,o,u){var r;for(r in t)r==="children"||r==="key"||r in n||Y(e,r,null,t[r],o);for(r in n)u&&typeof n[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===n[r]||Y(e,r,n[r],t[r],o)}function Ce(e,n,t){n[0]==="-"?e.setProperty(n,t):e[n]=t==null?"":typeof t!="number"||V.test(n)?t:t+"px"}function Y(e,n,t,o,u){var r;e:if(n==="style")if(typeof t=="string")e.style.cssText=t;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||Ce(e.style,n,"");if(t)for(n in t)o&&t[n]===o[n]||Ce(e.style,n,t[n])}else if(n[0]==="o"&&n[1]==="n")r=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+r]=t,t?o||e.addEventListener(n,r?Te:Re,r):e.removeEventListener(n,r?Te:Re,r);else if(n!=="dangerouslySetInnerHTML"){if(u)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(n!=="href"&&n!=="list"&&n!=="form"&&n!=="tabIndex"&&n!=="download"&&n in e)try{e[n]=t==null?"":t;break e}catch(d){}typeof t=="function"||(t!=null&&(t!==!1||n[0]==="a"&&n[1]==="r")?e.setAttribute(n,t):e.removeAttribute(n))}}function Re(e){this.l[e.type+!1](f.event?f.event(e):e)}function Te(e){this.l[e.type+!0](f.event?f.event(e):e)}function ce(e,n,t,o,u,r,d,y,m){var g,a,E,s,i,c,v,p,h,w,L,x=n.type;if(n.constructor!==void 0)return null;t.__h!=null&&(m=t.__h,y=n.__e=t.__e,n.__h=null,r=[y]),(g=f.__b)&&g(n);try{e:if(typeof x=="function"){if(p=n.props,h=(g=x.contextType)&&o[g.__c],w=g?h?h.props.value:g.__:o,t.__c?v=(a=n.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?n.__c=a=new x(p,w):(n.__c=a=new D(p,w),a.constructor=x,a.render=ln),h&&h.sub(a),a.props=p,a.state||(a.state={}),a.context=w,a.__n=o,E=a.__d=!0,a.__h=[]),a.__s==null&&(a.__s=a.state),x.getDerivedStateFromProps!=null&&(a.__s==a.state&&(a.__s=$({},a.__s)),$(a.__s,x.getDerivedStateFromProps(p,a.__s))),s=a.props,i=a.state,E)x.getDerivedStateFromProps==null&&a.componentWillMount!=null&&a.componentWillMount(),a.componentDidMount!=null&&a.__h.push(a.componentDidMount);else{if(x.getDerivedStateFromProps==null&&p!==s&&a.componentWillReceiveProps!=null&&a.componentWillReceiveProps(p,w),!a.__e&&a.shouldComponentUpdate!=null&&a.shouldComponentUpdate(p,a.__s,w)===!1||n.__v===t.__v){a.props=p,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach(function(A){A&&(A.__=n)}),a.__h.length&&d.push(a);break e}a.componentWillUpdate!=null&&a.componentWillUpdate(p,a.__s,w),a.componentDidUpdate!=null&&a.__h.push(function(){a.componentDidUpdate(s,i,c)})}a.context=w,a.props=p,a.state=a.__s,(g=f.__r)&&g(n),a.__d=!1,a.__v=n,a.__P=e,g=a.render(a.props,a.state,a.context),a.state=a.__s,a.getChildContext!=null&&(o=$($({},o),a.getChildContext())),E||a.getSnapshotBeforeUpdate==null||(c=a.getSnapshotBeforeUpdate(s,i)),L=g!=null&&g.type===F&&g.key==null?g.props.children:g,Ee(e,Array.isArray(L)?L:[L],n,t,o,u,r,d,y,m),a.base=n.__e,n.__h=null,a.__h.length&&d.push(a),v&&(a.__E=a.__=null),a.__e=!1}else r==null&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=an(t.__e,n,t,o,u,r,d,m);(g=f.diffed)&&g(n)}catch(A){n.__v=null,(m||r!=null)&&(n.__e=y,n.__h=!!m,r[r.indexOf(y)]=null),f.__e(A,n,t)}}function Le(e,n){f.__c&&f.__c(n,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(o){o.call(t)})}catch(o){f.__e(o,t.__v)}})}function an(e,n,t,o,u,r,d,y){var m,g,a,E=t.props,s=n.props,i=n.type,c=0;if(i==="svg"&&(u=!0),r!=null){for(;c<r.length;c++)if((m=r[c])&&(m===e||(i?m.localName==i:m.nodeType==3))){e=m,r[c]=null;break}}if(e==null){if(i===null)return document.createTextNode(s);e=u?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i,s.is&&s),r=null,y=!1}if(i===null)E===s||y&&e.data===s||(e.data=s);else{if(r=r&&b.call(e.childNodes),g=(E=t.props||P).dangerouslySetInnerHTML,a=s.dangerouslySetInnerHTML,!y){if(r!=null)for(E={},c=0;c<e.attributes.length;c++)E[e.attributes[c].name]=e.attributes[c].value;(a||g)&&(a&&(g&&a.__html==g.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(sn(e,s,E,u,y),a)n.__k=[];else if(c=n.props.children,Ee(e,Array.isArray(c)?c:[c],n,t,o,u&&i!=="foreignObject",r,d,r?r[0]:t.__k&&H(t,0),y),r!=null)for(c=r.length;c--;)r[c]!=null&&we(r[c]);y||("value"in s&&(c=s.value)!==void 0&&(c!==e.value||i==="progress"&&!c)&&Y(e,"value",c,E.value,!1),"checked"in s&&(c=s.checked)!==void 0&&c!==e.checked&&Y(e,"checked",c,E.checked,!1))}return e}function Me(e,n,t){try{typeof e=="function"?e(n):e.current=n}catch(o){f.__e(o,t)}}function Se(e,n,t){var o,u;if(f.unmount&&f.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Me(o,null,n)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){f.__e(r,n)}o.base=o.__P=null}if(o=e.__k)for(u=0;u<o.length;u++)o[u]&&Se(o[u],n,typeof e.type!="function");t||e.__e==null||we(e.__e),e.__e=e.__d=void 0}function ln(e,n,t){return this.constructor(e,t)}function un(e,n,t){var o,u,r;f.__&&f.__(e,n),u=(o=typeof t=="function")?null:t&&t.__k||n.__k,r=[],ce(n,e=(!o&&t||n).__k=l(F,null,[e]),u||P,P,n.ownerSVGElement!==void 0,!o&&t?[t]:u?null:n.firstChild?b.call(n.childNodes):null,r,!o&&t?t:u?u.__e:n.firstChild,o),Le(r,e)}function fn(e,n){var t={__c:n="__cC"+Q++,__:e,Consumer:function(o,u){return o.children(u)},Provider:function(o){var u,r;return this.getChildContext||(u=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(d){this.props.value!==d.value&&u.some(fe)},this.sub=function(d){u.push(d);var y=d.componentWillUnmount;d.componentWillUnmount=function(){u.splice(u.indexOf(d),1),y&&y.call(d)}}),o.children}};return t.Provider.__=t.Consumer.contextType=t}b=O.slice,f={__e:function(e,n){for(var t,o,u;n=n.__;)if((t=n.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(e)),u=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(e),u=t.__d),u)return t.__E=t}catch(r){e=r}throw e}},C=0,D.prototype.setState=function(e,n){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=$({},this.state),typeof e=="function"&&(e=e($({},t),this.props)),e&&$(t,e),e!=null&&this.__v&&(n&&this.__h.push(n),fe(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),fe(this))},D.prototype.render=F,T=[],B=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,J.__r=0,Q=0,typeof window!="undefined"&&window.__PREACT_DEVTOOLS__&&window.__PREACT_DEVTOOLS__.attachPreact("10.5.14",f,{Fragment:F,Component:D});var Ae={};function q(e){return e.type===F?"Fragment":typeof e.type=="function"?e.type.displayName||e.type.name:typeof e.type=="string"?e.type:"#text"}var W=[],j=[];function Oe(){return W.length>0?W[W.length-1]:null}var Ue=!1;function _e(e){return typeof e.type=="function"&&e.type!=F}function M(e){for(var n=[e],t=e;t.__o!=null;)n.push(t.__o),t=t.__o;return n.reduce(function(o,u){o+=" in "+q(u);var r=u.__source;return r?o+=" (at "+r.fileName+":"+r.lineNumber+")":Ue||(Ue=!0,console.warn("Add @babel/plugin-transform-react-jsx-source to get a more detailed component stack. Note that you should not add it to production builds of your App for bundle size reasons.")),o+` | ||
`},"")}var cn=typeof WeakMap=="function",_n=D.prototype.setState;D.prototype.setState=function(e,n){return this.__v==null?this.state==null&&console.warn(`Calling "this.setState" inside the constructor of a component is a no-op and might be a bug in your application. Instead, set "this.state = {}" directly. | ||
@@ -6,8 +6,8 @@ | ||
`+M(this.__v)),_n.call(this,e,n)};var dn=D.prototype.forceUpdate;function N(e){var n=e.props,t=$(e),o="";for(var u in n)if(n.hasOwnProperty(u)&&u!=="children"){var r=n[u];typeof r=="function"&&(r="function "+(r.displayName||r.name)+"() {}"),r=Object(r)!==r||r.toString?r+"":Object.prototype.toString.call(r),o+=" "+u+"="+JSON.stringify(r)}var d=n.children;return"<"+t+o+(d&&d.length?">..</"+t+">":" />")}D.prototype.forceUpdate=function(e){return this.__v==null?console.warn(`Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application. | ||
`+M(this.__v)),_n.call(this,e,n)};var dn=D.prototype.forceUpdate;function N(e){var n=e.props,t=q(e),o="";for(var u in n)if(n.hasOwnProperty(u)&&u!=="children"){var r=n[u];typeof r=="function"&&(r="function "+(r.displayName||r.name)+"() {}"),r=Object(r)!==r||r.toString?r+"":Object.prototype.toString.call(r),o+=" "+u+"="+JSON.stringify(r)}var d=n.children;return"<"+t+o+(d&&d.length?">..</"+t+">":" />")}D.prototype.forceUpdate=function(e){return this.__v==null?console.warn(`Calling "this.forceUpdate" inside the constructor of a component is a no-op and might be a bug in your application. | ||
`+M(Oe())):this.__P==null&&console.warn(`Can't call "this.forceUpdate" on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. | ||
`+M(this.__v)),dn.call(this,e)},function(){(function(){var s=f.__b,i=f.diffed,c=f.__,v=f.vnode,p=f.__r;f.diffed=function(h){_e(h)&&j.pop(),W.pop(),i&&i(h)},f.__b=function(h){_e(h)&&W.push(h),s&&s(h)},f.__=function(h,w){j=[],c&&c(h,w)},f.vnode=function(h){h.__o=j.length>0?j[j.length-1]:null,v&&v(h)},f.__r=function(h){_e(h)&&j.push(h),p&&p(h)}})();var e=!1,n=f.__b,t=f.diffed,o=f.vnode,u=f.__e,r=f.__,d=f.__h,y=cn?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,m=[];f.__e=function(s,i,c){if(i&&i.__c&&typeof s.then=="function"){var v=s;s=new Error("Missing Suspense. The throwing component was: "+$(i));for(var p=i;p;p=p.__)if(p.__c&&p.__c.__c){s=v;break}if(s instanceof Error)throw s}try{u(s,i,c),typeof s.then!="function"&&setTimeout(function(){throw s})}catch(h){throw h}},f.__=function(s,i){if(!i)throw new Error(`Undefined parent passed to render(), this is the second argument. | ||
Check if the element is available in the DOM/has the correct id.`);var c;switch(i.nodeType){case 1:case 11:case 9:c=!0;break;default:c=!1}if(!c){var v=$(s);throw new Error("Expected a valid HTML node as a second argument to render. Received "+i+" instead: render(<"+v+" />, "+i+");")}r&&r(s,i)},f.__b=function(s){var i=s.type,c=function L(x){return x?typeof x.type=="function"?L(x.__):x:{}}(s.__);if(e=!0,i===void 0)throw new Error(`Undefined component passed to createElement() | ||
`+M(this.__v)),dn.call(this,e)},function(){(function(){var s=f.__b,i=f.diffed,c=f.__,v=f.vnode,p=f.__r;f.diffed=function(h){_e(h)&&j.pop(),W.pop(),i&&i(h)},f.__b=function(h){_e(h)&&W.push(h),s&&s(h)},f.__=function(h,w){j=[],c&&c(h,w)},f.vnode=function(h){h.__o=j.length>0?j[j.length-1]:null,v&&v(h)},f.__r=function(h){_e(h)&&j.push(h),p&&p(h)}})();var e=!1,n=f.__b,t=f.diffed,o=f.vnode,u=f.__e,r=f.__,d=f.__h,y=cn?{useEffect:new WeakMap,useLayoutEffect:new WeakMap,lazyPropTypes:new WeakMap}:null,m=[];f.__e=function(s,i,c){if(i&&i.__c&&typeof s.then=="function"){var v=s;s=new Error("Missing Suspense. The throwing component was: "+q(i));for(var p=i;p;p=p.__)if(p.__c&&p.__c.__c){s=v;break}if(s instanceof Error)throw s}try{u(s,i,c),typeof s.then!="function"&&setTimeout(function(){throw s})}catch(h){throw h}},f.__=function(s,i){if(!i)throw new Error(`Undefined parent passed to render(), this is the second argument. | ||
Check if the element is available in the DOM/has the correct id.`);var c;switch(i.nodeType){case 1:case 11:case 9:c=!0;break;default:c=!1}if(!c){var v=q(s);throw new Error("Expected a valid HTML node as a second argument to render. Received "+i+" instead: render(<"+v+" />, "+i+");")}r&&r(s,i)},f.__b=function(s){var i=s.type,c=function L(x){return x?typeof x.type=="function"?L(x.__):x:{}}(s.__);if(e=!0,i===void 0)throw new Error(`Undefined component passed to createElement() | ||
@@ -20,4 +20,4 @@ You likely forgot to export your component or might have mixed up default and named imports`+N(s)+` | ||
let My`+$(s)+" = "+N(i)+`; | ||
let vnode = <My`+$(s)+` />; | ||
let My`+q(s)+" = "+N(i)+`; | ||
let vnode = <My`+q(s)+` />; | ||
@@ -40,4 +40,4 @@ This usually happens when you export a JSX literal and not the component. | ||
`+M(s))}if(typeof s.type=="function"&&s.type.propTypes){if(s.type.displayName==="Lazy"&&y&&!y.lazyPropTypes.has(s.type)){var p="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var h=s.type();y.lazyPropTypes.set(s.type,!0),console.warn(p+"Component wrapped in lazy() is "+$(h))}catch(L){console.warn(p+"We will log the wrapped component's name once it is loaded.")}}var w=s.props;s.type.__f&&delete(w=function(L,x){for(var A in x)L[A]=x[A];return L}({},w)).ref,function(L,x,A,oe,re){Object.keys(L).forEach(function(ge){var I;try{I=L[ge](x,ge,oe,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){I=se}!I||I.message in Ae||(Ae[I.message]=!0,console.error("Failed prop type: "+I.message+(re&&` | ||
`+re()||"")))})}(s.type.propTypes,w,0,$(s),function(){return M(s)})}n&&n(s)},f.__h=function(s,i,c){if(!s||!e)throw new Error("Hook can only be invoked from render methods.");d&&d(s,i,c)};var g=function(s,i){return{get:function(){var c="get"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("getting vnode."+s+" is deprecated, "+i))},set:function(){var c="set"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("setting vnode."+s+" is not allowed, "+i))}}},a={nodeName:g("nodeName","use vnode.type"),attributes:g("attributes","use vnode.props"),children:g("children","use vnode.props.children")},E=Object.create({},a);f.vnode=function(s){var i=s.props;if(s.type!==null&&i!=null&&("__source"in i||"__self"in i)){var c=s.props={};for(var v in i){var p=i[v];v==="__source"?s.__source=p:v==="__self"?s.__self=p:c[v]=p}}s.__proto__=E,o&&o(s)},f.diffed=function(s){if(s.__k&&s.__k.forEach(function(h){if(h&&h.type===void 0){delete h.__,delete h.__b;var w=Object.keys(h).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+w+`}. | ||
`+M(s))}if(typeof s.type=="function"&&s.type.propTypes){if(s.type.displayName==="Lazy"&&y&&!y.lazyPropTypes.has(s.type)){var p="PropTypes are not supported on lazy(). Use propTypes on the wrapped component itself. ";try{var h=s.type();y.lazyPropTypes.set(s.type,!0),console.warn(p+"Component wrapped in lazy() is "+q(h))}catch(L){console.warn(p+"We will log the wrapped component's name once it is loaded.")}}var w=s.props;s.type.__f&&delete(w=function(L,x){for(var A in x)L[A]=x[A];return L}({},w)).ref,function(L,x,A,oe,re){Object.keys(L).forEach(function(ge){var I;try{I=L[ge](x,ge,oe,"prop",null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(se){I=se}!I||I.message in Ae||(Ae[I.message]=!0,console.error("Failed prop type: "+I.message+(re&&` | ||
`+re()||"")))})}(s.type.propTypes,w,0,q(s),function(){return M(s)})}n&&n(s)},f.__h=function(s,i,c){if(!s||!e)throw new Error("Hook can only be invoked from render methods.");d&&d(s,i,c)};var g=function(s,i){return{get:function(){var c="get"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("getting vnode."+s+" is deprecated, "+i))},set:function(){var c="set"+s+i;m&&m.indexOf(c)<0&&(m.push(c),console.warn("setting vnode."+s+" is not allowed, "+i))}}},a={nodeName:g("nodeName","use vnode.type"),attributes:g("attributes","use vnode.props"),children:g("children","use vnode.props.children")},E=Object.create({},a);f.vnode=function(s){var i=s.props;if(s.type!==null&&i!=null&&("__source"in i||"__self"in i)){var c=s.props={};for(var v in i){var p=i[v];v==="__source"?s.__source=p:v==="__self"?s.__self=p:c[v]=p}}s.__proto__=E,o&&o(s)},f.diffed=function(s){if(s.__k&&s.__k.forEach(function(h){if(h&&h.type===void 0){delete h.__,delete h.__b;var w=Object.keys(h).join(",");throw new Error("Objects are not valid as a child. Encountered an object with the keys {"+w+`}. | ||
@@ -48,4 +48,4 @@ `+M(s))}}),e=!1,t&&t(s),s.__k!=null)for(var i=[],c=0;c<s.__k.length;c++){var v=s.__k[c];if(v&&v.key!=null){var p=v.key;if(i.indexOf(p)!==-1){console.error('Following component has two or more children with the same key attribute: "'+p+`". This may cause glitches and misbehavior in rendering process. Component: | ||
`+M(s));break}i.push(p)}}}}();var At="",X,S,De,K=0,de=[],Ne=f.__b,Ie=f.__r,Pe=f.diffed,qe=f.__c,$e=f.unmount;function pe(e,n){f.__h&&f.__h(S,e,K||n),K=0;var t=S.__H||(S.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function pn(e,n,t){var o=pe(X++,2);return o.t=e,o.__c||(o.__=[t?t(n):yn(void 0,n),function(u){var r=o.t(o.__[0],u);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=S),o.__}function Z(e,n){var t=pe(X++,3);!f.__s&&Be(t.__H,n)&&(t.__=e,t.__H=n,S.__H.__h.push(t))}function hn(e){return K=5,Fe(function(){return{current:e}},[])}function Fe(e,n){var t=pe(X++,7);return Be(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function He(e,n){return K=8,Fe(function(){return e},n)}function mn(){de.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(he),e.__H.__h=[]}catch(n){e.__H.__h=[],f.__e(n,e.__v)}}),de=[]}f.__b=function(e){S=null,Ne&&Ne(e)},f.__r=function(e){Ie&&Ie(e),X=0;var n=(S=e.__c).__H;n&&(n.__h.forEach(ee),n.__h.forEach(he),n.__h=[])},f.diffed=function(e){Pe&&Pe(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(de.push(n)!==1&&De===f.requestAnimationFrame||((De=f.requestAnimationFrame)||function(t){var o,u=function(){clearTimeout(r),je&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(u,100);je&&(o=requestAnimationFrame(u))})(mn)),S=void 0},f.__c=function(e,n){n.some(function(t){try{t.__h.forEach(ee),t.__h=t.__h.filter(function(o){return!o.__||he(o)})}catch(o){n.some(function(u){u.__h&&(u.__h=[])}),n=[],f.__e(o,t.__v)}}),qe&&qe(e,n)},f.unmount=function(e){$e&&$e(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(ee)}catch(t){f.__e(t,n.__v)}};var je=typeof requestAnimationFrame=="function";function ee(e){var n=S;typeof e.__c=="function"&&e.__c(),S=n}function he(e){var n=S;e.__c=e.__(),S=n}function Be(e,n){return!e||e.length!==n.length||n.some(function(t,o){return t!==e[o]})}function yn(e,n){return typeof n=="function"?n(e):n}var Ve=fn({});function _(e,n="div",t={}){const o=function(u){const y=u,{children:r}=y,d=ve(y,["children"]);return l(Ve.Consumer,null,m=>{const[g,a]=e.split(".");return g in m&&a in m[g]&&(t.className=m[g][a].split(` | ||
`).map(E=>E.trim()).join(" ").trim()),l(n,k(k({},t),d),r)})};return o.displayName=e,o}function gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),l("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}function vn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))}const wn=_("featureRequests.Tag"),bn=_("featureRequests.UpvoteButton","button"),En=_("featureRequests.Header"),xn=_("featureRequests.Voting"),kn=_("featureRequests.VoteCount"),Cn=_("featureRequests.Info"),Rn=_("featureRequests.Title"),Tn=_("featureRequests.Description"),Ln=_("featureRequests.Tags"),Mn=_("featureRequests.Status"),Sn=_("featureRequests.Options"),An=_("featureRequests.CommentsButton");function On(e){const{featureRequest:n,openDiscussion:t}=e;return l(En,null,l(xn,null,l(bn,null,l(gn,{className:"fn-h-12 fn-w-12 fn--m-2"})),l(kn,null,n.votes_count)),l(Cn,null,l(Rn,null,n.title),l(Tn,null,n.description),l(Ln,null,n.projects.map(o=>l(wn,{key:o.id},o.name))),l(Mn,null,"Considering")),l(Sn,null,l(An,{onClick:()=>t(n.id)},"10k",l(vn,{className:"fn-w-5 fn-h-5"}))))}const Un=_("featureRequests.Container"),Dn=_("featureRequests.Body"),Nn=_("featureRequests.Pagination"),In=_("featureRequests.PaginationInfo"),Pn=_("featureRequests.PaginationLinks"),We=_("featureRequests.PaginationButton","button");function qn(e){const{featureRequests:n,openDiscussion:t,goToPage:o,isLoading:u}=e;if(!n||u)return l("div",null,"Loading...");const{data:r,meta:d}=n;return l(Un,null,l(Dn,null,Object.values(r).map(y=>l(On,{key:y.id,featureRequest:y,openDiscussion:t}))),l(Nn,{"aria-label":"Pagination"},l(In,null,"Showing ",l("span",{className:"fn-font-medium"},d.from)," to"," ",l("span",{className:"fn-font-medium"},d.to)," of"," ",l("span",{className:"fn-font-medium"},d.total)," results"),l(Pn,null,l(We,{disabled:d.current_page===1?"disabled":void 0,onClick:()=>o(d.current_page-1)},"Previous"),l(We,{disabled:d.current_page+1>d.last_page?"disabled":void 0,onClick:()=>o(d.current_page+1)},"Next"))))}var R;(function(e){e.UPVOTE="UPVOTE",e.LOADING_FEATURE_REQUESTS="LOADING_FEATURE_REQUESTS",e.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",e.FEATURE_REQUEST_LOADED="FEATURE_REQUEST_LOADED",e.LOADING_FEATURE_REQUEST="LOADING_FEATURE_REQUEST",e.HANDLE_ERROR="HANDLE_ERROR",e.OPEN_MODAL="OPEN_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.NAVIGATE="NAVIGATE"})(R||(R={}));const $n={navigation:{route:"",pathname:"",search:{},params:{}},isLoadingFeatureRequests:!0,isLoadingFeatureRequest:!1},Fn=(e,n)=>{switch(console.log(n),n.type){case R.UPVOTE:return k({},e);case R.LOADING_FEATURE_REQUESTS:return U(k({},e),{isLoadingFeatureRequests:!0});case R.FEATURE_REQUESTS_LOADED:return U(k({},e),{featureRequests:n.payload,isLoadingFeatureRequests:!1});case R.LOADING_FEATURE_REQUEST:return U(k({},e),{isLoadingFeatureRequest:!0});case R.FEATURE_REQUEST_LOADED:return U(k({},e),{featureRequest:n.payload,isLoadingFeatureRequest:!1});case R.HANDLE_ERROR:return U(k({},e),{error:n.payload});case R.OPEN_MODAL:return U(k({},e),{modal:n.payload});case R.CLOSE_MODAL:return U(k({},e),{modal:void 0});case R.NAVIGATE:return U(k({},e),{navigation:n.payload});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};var Hn={Container:` | ||
`+M(s));break}i.push(p)}}}}();var At="",X,S,De,K=0,de=[],Ne=f.__b,Ie=f.__r,Pe=f.diffed,$e=f.__c,qe=f.unmount;function pe(e,n){f.__h&&f.__h(S,e,K||n),K=0;var t=S.__H||(S.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function pn(e,n,t){var o=pe(X++,2);return o.t=e,o.__c||(o.__=[t?t(n):yn(void 0,n),function(u){var r=o.t(o.__[0],u);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=S),o.__}function Z(e,n){var t=pe(X++,3);!f.__s&&Be(t.__H,n)&&(t.__=e,t.__H=n,S.__H.__h.push(t))}function hn(e){return K=5,Fe(function(){return{current:e}},[])}function Fe(e,n){var t=pe(X++,7);return Be(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function He(e,n){return K=8,Fe(function(){return e},n)}function mn(){de.forEach(function(e){if(e.__P)try{e.__H.__h.forEach(ee),e.__H.__h.forEach(he),e.__H.__h=[]}catch(n){e.__H.__h=[],f.__e(n,e.__v)}}),de=[]}f.__b=function(e){S=null,Ne&&Ne(e)},f.__r=function(e){Ie&&Ie(e),X=0;var n=(S=e.__c).__H;n&&(n.__h.forEach(ee),n.__h.forEach(he),n.__h=[])},f.diffed=function(e){Pe&&Pe(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(de.push(n)!==1&&De===f.requestAnimationFrame||((De=f.requestAnimationFrame)||function(t){var o,u=function(){clearTimeout(r),je&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(u,100);je&&(o=requestAnimationFrame(u))})(mn)),S=void 0},f.__c=function(e,n){n.some(function(t){try{t.__h.forEach(ee),t.__h=t.__h.filter(function(o){return!o.__||he(o)})}catch(o){n.some(function(u){u.__h&&(u.__h=[])}),n=[],f.__e(o,t.__v)}}),$e&&$e(e,n)},f.unmount=function(e){qe&&qe(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(ee)}catch(t){f.__e(t,n.__v)}};var je=typeof requestAnimationFrame=="function";function ee(e){var n=S;typeof e.__c=="function"&&e.__c(),S=n}function he(e){var n=S;e.__c=e.__(),S=n}function Be(e,n){return!e||e.length!==n.length||n.some(function(t,o){return t!==e[o]})}function yn(e,n){return typeof n=="function"?n(e):n}var Ve=fn({});function _(e,n="div",t={}){const o=function(u){const y=u,{children:r}=y,d=ve(y,["children"]);return l(Ve.Consumer,null,m=>{const[g,a]=e.split(".");return g in m&&a in m[g]&&(t.className=m[g][a].split(` | ||
`).map(E=>E.trim()).join(" ").trim()),l(n,k(k({},t),d),r)})};return o.displayName=e,o}function gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},e),l("path",{fillRule:"evenodd",d:"M14.707 12.707a1 1 0 01-1.414 0L10 9.414l-3.293 3.293a1 1 0 01-1.414-1.414l4-4a1 1 0 011.414 0l4 4a1 1 0 010 1.414z",clipRule:"evenodd"}))}function vn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"}))}const wn=_("featureRequests.Tag"),bn=_("featureRequests.UpvoteButton","button"),En=_("featureRequests.Header"),xn=_("featureRequests.Voting"),kn=_("featureRequests.VoteCount"),Cn=_("featureRequests.Info"),Rn=_("featureRequests.Title"),Tn=_("featureRequests.Description"),Ln=_("featureRequests.Tags"),Mn=_("featureRequests.Status"),Sn=_("featureRequests.Options"),An=_("featureRequests.CommentsButton");function On(e){const{featureRequest:n,openDiscussion:t}=e;return l(En,null,l(xn,null,l(bn,null,l(gn,{className:"fn-h-12 fn-w-12 fn--m-2"})),l(kn,null,n.votes_count)),l(Cn,null,l(Rn,null,n.title),l(Tn,null,n.description),l(Ln,null,n.projects.map(o=>l(wn,{key:o.id},o.name))),l(Mn,null,"Considering")),l(Sn,null,l(An,{onClick:()=>t(n.id)},"10k",l(vn,{className:"fn-w-5 fn-h-5"}))))}const Un=_("featureRequests.Container"),Dn=_("featureRequests.Body"),Nn=_("featureRequests.Pagination"),In=_("featureRequests.PaginationInfo"),Pn=_("featureRequests.PaginationLinks"),We=_("featureRequests.PaginationButton","button");function $n(e){const{featureRequests:n,openDiscussion:t,goToPage:o,isLoading:u}=e;if(!n||u)return l("div",null,"Loading...");const{data:r,meta:d}=n;return l(Un,null,l(Dn,null,Object.values(r).map(y=>l(On,{key:y.id,featureRequest:y,openDiscussion:t}))),l(Nn,{"aria-label":"Pagination"},l(In,null,"Showing ",l("span",{className:"fn-font-medium"},d.from)," to"," ",l("span",{className:"fn-font-medium"},d.to)," of"," ",l("span",{className:"fn-font-medium"},d.total)," results"),l(Pn,null,l(We,{disabled:d.current_page===1?"disabled":void 0,onClick:()=>o(d.current_page-1)},"Previous"),l(We,{disabled:d.current_page+1>d.last_page?"disabled":void 0,onClick:()=>o(d.current_page+1)},"Next"))))}var R;(function(e){e.UPVOTE="UPVOTE",e.LOADING_FEATURE_REQUESTS="LOADING_FEATURE_REQUESTS",e.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",e.FEATURE_REQUEST_LOADED="FEATURE_REQUEST_LOADED",e.LOADING_FEATURE_REQUEST="LOADING_FEATURE_REQUEST",e.HANDLE_ERROR="HANDLE_ERROR",e.OPEN_MODAL="OPEN_MODAL",e.CLOSE_MODAL="CLOSE_MODAL",e.NAVIGATE="NAVIGATE"})(R||(R={}));const qn={navigation:{route:"",pathname:"",search:{},params:{}},isLoadingFeatureRequests:!0,isLoadingFeatureRequest:!1},Fn=(e,n)=>{switch(console.log(n),n.type){case R.UPVOTE:return k({},e);case R.LOADING_FEATURE_REQUESTS:return U(k({},e),{isLoadingFeatureRequests:!0});case R.FEATURE_REQUESTS_LOADED:return U(k({},e),{featureRequests:n.payload,isLoadingFeatureRequests:!1});case R.LOADING_FEATURE_REQUEST:return U(k({},e),{isLoadingFeatureRequest:!0});case R.FEATURE_REQUEST_LOADED:return U(k({},e),{featureRequest:n.payload,isLoadingFeatureRequest:!1});case R.HANDLE_ERROR:return U(k({},e),{error:n.payload});case R.OPEN_MODAL:return U(k({},e),{modal:n.payload});case R.CLOSE_MODAL:return U(k({},e),{modal:void 0});case R.NAVIGATE:return U(k({},e),{navigation:n.payload});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};var Hn={Container:` | ||
fn-max-w-4xl | ||
@@ -265,3 +265,3 @@ fn-mx-auto | ||
fn-text-gray-500 | ||
fn-text-sm`},Vn={app:Hn,featureRequests:Bn,discussionModal:jn};function Wn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}function Gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}function Qn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))}const Ge=_("discussionModal.Backdrop"),Qe=_("discussionModal.Container"),ze=_("discussionModal.Header"),Je=_("discussionModal.ThemedCloseIcon",Gn),Ye=_("discussionModal.CloseButton"),zn=_("discussionModal.Body"),Jn=_("discussionModal.Info"),Xe=_("discussionModal.Title","button"),Yn=_("discussionModal.FeatureRequestMeta"),Xn=_("discussionModal.AuthorName"),Kn=_("discussionModal.AuthorDateTime"),Zn=_("discussionModal.Comments"),Ke=_("discussionModal.Heading"),et=_("discussionModal.Description"),nt=_("discussionModal.Status"),tt=_("discussionModal.Comment"),ot=_("discussionModal.CommentMeta"),rt=_("discussionModal.CommenterName"),st=_("discussionModal.CommenterDateTime"),at=_("discussionModal.Message"),it=_("discussionModal.CreateCommentForm"),ne=_("discussionModal.Label","label"),te=_("discussionModal.FormField"),lt=_("discussionModal.MessageInput","textarea"),ut=_("discussionModal.NameInput","input"),ft=_("discussionModal.EmailInput","input"),ct=_("discussionModal.Consent"),_t=_("discussionModal.PostCommentButton","button"),Ze=_("discussionModal.ThemedCalenderIcon",Wn),en=_("discussionModal.ThemedUserIcon",Qn);function dt(e){const{featureRequest:n,close:t,isLoading:o}=e;return Z(()=>{function u(r){r.keyCode===27&&t()}return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[]),!n||o?l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,"Loading..."),l(Ye,{onClick:t},l(Je,null))))):l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,n.title),l(Ye,{onClick:t},l(Je,null))),l(zn,null,l(Jn,null,l(Yn,null,l(Xn,null,l(en,null)," Krock Schroemen"),l(Kn,null,l(Ze,null)," Tue 5. Oct 2021 12:58")),l(et,null,"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Obcaecati, sed. Vitae debitis incidunt at labore reiciendis dolore totam repellat, perferendis veritatis, sit cumque minima a. Modi natus architecto qui numquam."),l(nt,null,"Considering")),l(Zn,null,l(Ke,null,"Discussion"),l(tt,null,l(ot,null,l(rt,null,l(en,null)," Roj Vroemen"),l(st,null,l(Ze,null)," Tue 5. Oct 2021 13:37")),l(at,null,"Leet!"))),l(it,null,l(Ke,null,"Add a comment"),l(te,null,l(ne,{for:"comment-message"},"Message"),l(lt,{id:"comment-message"})),l(te,null,l(ne,{for:"comment-name"},"Name"),l(ut,{id:"comment-name"})),l(te,null,l(ne,{for:"comment-email"},"E-mail"),l(ft,{id:"comment-email"})),l(ct,null),l(te,null,l(ne,null),l(_t,null,"Post Comment"))))))}class pt{constructor(n,t="https://api.feature.ninja"){this.workspace=n,this.url=t}request(n,t="GET",o){return fetch(`${this.url}/${n}`,k({method:t},o?{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}:{})).then(u=>{if(u.ok)return u.json();throw new Error(`Error calling api: ${u.statusText}`)})}featureRequests(n="1",t){return this.request(`workspaces/${this.workspace}/feature-requests?page=${n}${t?`&projects=${t.join(",")}`:""}`)}featureRequest(n){return ue(this,null,function*(){let t=1;for(;t<10;){const o=yield this.featureRequests(t);for(const u of o.data)if(u.id===n)return u;t++}})}}const ht=_("app.Container"),mt=_("app.Searchbar"),yt=_("app.SearchInput","input"),gt=_("app.Spacer"),vt=_("app.Menu","nav"),wt=_("app.ActiveMenuLink","a"),bt=_("app.MenuLink","a");function Et(e){const o=e,{children:n}=o,t=ve(o,["children"]);return l(ht,k({},t),l(vt,null,e.activeRoute==="/"||e.activeRoute.startsWith("/feature-requests")?l(wt,{href:"#/"},"Feature Requests"):l(bt,{href:"#/"},"Feature Requests")),l(mt,null,l("span",{className:"fn-sr-only"},"Search..."),l(yt,{type:"text",placeholder:"Search..."})),l(gt,null),n)}function xt(e){const{options:{workspace:n,projects:t,theme:o}}=e,[u,r]=pn(Fn,$n),{error:d,modal:y,featureRequest:m,featureRequests:g,isLoadingFeatureRequests:a,isLoadingFeatureRequest:E,navigation:s}=u,i=hn();Z(()=>{i.current=new pt(n)},[n]),Z(()=>{const p=["/","/feature-requests/:id"];function h(){const w=new URL(document.URL).hash.substr(1),L=new URL(document.URL),x=new URL(`${L.protocol}//${L.host}/${w.replace(/^\//,"")}`);for(const A of p){const oe=A.match(/:(.*)/g)||[],re=A.replace(/:(.*)/g,"(.*)"),I=new RegExp(`^${re}$`,"g").exec(x.pathname);if(I){const se=I.slice(1);if(se.length!==oe.length)throw new Error("Variable names and values mismatch");const kt=oe.reduce((ae,ie,Rt)=>{const Tt=ie.substr(1);return ae[Tt]=se[Rt],ae},{}),Ct=[...x.searchParams].reduce((ae,ie)=>U(k({},ae),{[ie[0]]:ie[1]}),{});r({type:R.NAVIGATE,payload:{route:A,pathname:x.pathname,search:Ct,params:kt}});return}}r({type:R.NAVIGATE,payload:{route:"not-found",pathname:"not-found",search:{},params:{}}})}return h(),window.addEventListener("hashchange",h),()=>window.removeEventListener("hashchange",h)},[]);const c=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUESTS});const w=yield(h=i.current)==null?void 0:h.featureRequests(p,t);r({type:R.FEATURE_REQUESTS_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i,t]),v=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUEST});const w=yield(h=i.current)==null?void 0:h.featureRequest(p);r({type:R.FEATURE_REQUEST_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i]);return Z(()=>{switch(s.route){case"/":{const p=s.search.page||"1";(!g||String(g.meta.current_page)!==p)&&c(s.search.page||"1");return}case"/feature-requests/:id":{v(s.params.id);return}}},[v,c,g,s]),l("div",{style:{overflowY:y?"hidden":"auto",height:"100%",width:"100%"}},l(Ve.Provider,{value:k(k({},Vn),o)},l(Et,{activeRoute:s.route},l(qn,{error:d,isLoading:a,featureRequests:g,goToPage:p=>{window.location.hash="/?page="+p},openDiscussion:p=>{window.location.hash=`/feature-requests/${p}?${new URLSearchParams(s.search).toString()}`}}),s.route==="/feature-requests/:id"&&l(dt,{isLoading:E,close:()=>{r({type:R.CLOSE_MODAL}),window.location.hash=`/?${new URLSearchParams(s.search).toString()}`},featureRequest:m}))))}const ye=document.currentScript;function nn(e){if(!e.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var u;const t=k(k({},{elementId:"feature-ninja-widget"}),e);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,ye?(u=ye.parentElement)==null||u.insertBefore(o,ye):document.body.appendChild(o)),un(l(xt,{options:t}),o)})}return window.featureNinja=nn,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import"https://rsms.me/inter/inter.css";*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:-moz-focusring{outline:auto}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );--tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.fn-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fn-fixed{position:fixed}.fn-relative{position:relative}.fn-inset-0{top:0px;right:0px;bottom:0px;left:0px}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mb-2{margin-bottom:.5rem}.fn-mt-8{margin-top:2rem}.fn-mb-4{margin-bottom:1rem}.fn-mt-5{margin-top:1.25rem}.fn-mb-5{margin-bottom:1.25rem}.fn-mt-4{margin-top:1rem}.fn-mr-1{margin-right:.25rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-12{height:3rem}.fn-h-5{height:1.25rem}.fn-h-8{height:2rem}.fn-h-40{height:10rem}.fn-w-12{width:3rem}.fn-w-5{width:1.25rem}.fn-w-full{width:100%}.fn-w-11\/12{width:91.666667%}.fn-w-8{width:2rem}.fn-w-24{width:6rem}.fn-w-10{width:2.5rem}.fn-max-w-4xl{max-width:56rem}.fn-flex-1{flex:1 1 0%}.fn-flex-grow{flex-grow:1}.fn-flex-col{flex-direction:column}.fn-items-center{align-items:center}.fn-justify-center{justify-content:center}.fn-justify-between{justify-content:space-between}.fn-gap-2{gap:.5rem}.fn-gap-4{gap:1rem}.fn-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.fn-divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.fn-overflow-y-auto{overflow-y:auto}.fn-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded-md{border-radius:.375rem}.fn-rounded-xl{border-radius:.75rem}.fn-rounded{border-radius:.25rem}.fn-rounded-full{border-radius:9999px}.fn-border-2{border-width:2px}.fn-border{border-width:1px}.fn-border-b-2{border-bottom-width:2px}.fn-border-t{border-top-width:1px}.fn-border-solid{border-style:solid}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.fn-bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-bg-blue-500{--tw-bg-opacity: 1;background-color:rgba(59,130,246,var(--tw-bg-opacity))}.fn-bg-opacity-40{--tw-bg-opacity: .4}.fn-stroke-2{stroke-width:2}.fn-p-4{padding:1rem}.fn-p-2{padding:.5rem}.fn-p-5{padding:1.25rem}.fn-px-6{padding-left:1.5rem;padding-right:1.5rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-pt-4{padding-top:1rem}.fn-pb-1{padding-bottom:.25rem}.fn-pl-5{padding-left:1.25rem}.fn-pr-5{padding-right:1.25rem}.fn-pr-6{padding-right:1.5rem}.fn-pt-2{padding-top:.5rem}.fn-pr-4{padding-right:1rem}.fn-text-right{text-align:right}.fn-text-2xl{font-size:1.5rem;line-height:2rem}.fn-text-xs{font-size:.75rem;line-height:1rem}.fn-text-sm{font-size:.875rem;line-height:1.25rem}.fn-font-medium{font-weight:500}.fn-font-semibold{font-weight:600}.fn-text-gray-300{--tw-text-opacity: 1;color:rgba(209,213,219,var(--tw-text-opacity))}.fn-text-blue-400{--tw-text-opacity: 1;color:rgba(96,165,250,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}.fn-text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.fn-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-gray-400{--tw-text-opacity: 1;color:rgba(156,163,175,var(--tw-text-opacity))}.fn-text-gray-500{--tw-text-opacity: 1;color:rgba(107,114,128,var(--tw-text-opacity))}.fn-underline{text-decoration:underline}.fn-shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fn-ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.fn-ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgba(156, 163, 175, var(--tw-ring-opacity))}.fn-drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgba(0, 0, 0, .15));filter:var(--tw-filter)}.hover\:fn-bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.hover\:fn-bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.hover\:fn-text-green-400:hover{--tw-text-opacity: 1;color:rgba(52,211,153,var(--tw-text-opacity))}.focus\:fn-border-green-400:focus{--tw-border-opacity: 1;border-color:rgba(52,211,153,var(--tw-border-opacity))}.focus\:fn-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:fn-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:fn-ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(52, 211, 153, var(--tw-ring-opacity))}.focus\:fn-ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:fn-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:fn-opacity-25:disabled{opacity:.25}@media (min-width: 640px){.sm\:fn-block{display:block}.sm\:fn-justify-end{justify-content:flex-end}.sm\:fn-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\:fn-px-8{padding-left:2rem;padding-right:2rem}} | ||
fn-text-sm`},Vn={app:Hn,featureRequests:Bn,discussionModal:jn};function Wn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"}))}function Gn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))}function Qn(e){return l("svg",k({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},e),l("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"}))}const Ge=_("discussionModal.Backdrop"),Qe=_("discussionModal.Container"),ze=_("discussionModal.Header"),Je=_("discussionModal.ThemedCloseIcon",Gn),Ye=_("discussionModal.CloseButton"),zn=_("discussionModal.Body"),Jn=_("discussionModal.Info"),Xe=_("discussionModal.Title","button"),Yn=_("discussionModal.FeatureRequestMeta"),Xn=_("discussionModal.AuthorName"),Kn=_("discussionModal.AuthorDateTime"),Zn=_("discussionModal.Comments"),Ke=_("discussionModal.Heading"),et=_("discussionModal.Description"),nt=_("discussionModal.Status"),tt=_("discussionModal.Comment"),ot=_("discussionModal.CommentMeta"),rt=_("discussionModal.CommenterName"),st=_("discussionModal.CommenterDateTime"),at=_("discussionModal.Message"),it=_("discussionModal.CreateCommentForm"),ne=_("discussionModal.Label","label"),te=_("discussionModal.FormField"),lt=_("discussionModal.MessageInput","textarea"),ut=_("discussionModal.NameInput","input"),ft=_("discussionModal.EmailInput","input"),ct=_("discussionModal.Consent"),_t=_("discussionModal.PostCommentButton","button"),Ze=_("discussionModal.ThemedCalenderIcon",Wn),en=_("discussionModal.ThemedUserIcon",Qn);function dt(e){const{featureRequest:n,close:t,isLoading:o}=e;return Z(()=>{function u(r){r.keyCode===27&&t()}return window.addEventListener("keydown",u),()=>window.removeEventListener("keydown",u)},[]),!n||o?l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,"Loading..."),l(Ye,{onClick:t},l(Je,null))))):l(Ge,null,l(Qe,null,l(ze,null,l(Xe,null,n.title),l(Ye,{onClick:t},l(Je,null))),l(zn,null,l(Jn,null,l(Yn,null,l(Xn,null,l(en,null)," Krock Schroemen"),l(Kn,null,l(Ze,null)," Tue 5. Oct 2021 12:58")),l(et,null,"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Obcaecati, sed. Vitae debitis incidunt at labore reiciendis dolore totam repellat, perferendis veritatis, sit cumque minima a. Modi natus architecto qui numquam."),l(nt,null,"Considering")),l(Zn,null,l(Ke,null,"Discussion"),l(tt,null,l(ot,null,l(rt,null,l(en,null)," Roj Vroemen"),l(st,null,l(Ze,null)," Tue 5. Oct 2021 13:37")),l(at,null,"Leet!"))),l(it,null,l(Ke,null,"Add a comment"),l(te,null,l(ne,{for:"comment-message"},"Message"),l(lt,{id:"comment-message"})),l(te,null,l(ne,{for:"comment-name"},"Name"),l(ut,{id:"comment-name"})),l(te,null,l(ne,{for:"comment-email"},"E-mail"),l(ft,{id:"comment-email"})),l(ct,null),l(te,null,l(ne,null),l(_t,null,"Post Comment"))))))}class pt{constructor(n,t="https://api.feature.ninja"){this.workspace=n,this.url=t}request(n,t="GET",o){return fetch(`${this.url}/${n}`,k({method:t},o?{headers:{"Content-Type":"application/json"},body:JSON.stringify(o)}:{})).then(u=>{if(u.ok)return u.json();throw new Error(`Error calling api: ${u.statusText}`)})}featureRequests(n="1",t){return this.request(`workspaces/${this.workspace}/feature-requests?page=${n}${t?`&projects=${t.join(",")}`:""}`)}featureRequest(n){return ue(this,null,function*(){let t=1;for(;t<10;){const o=yield this.featureRequests(`${t}`);for(const u of o.data)if(u.id===n)return u;t++}})}}const ht=_("app.Container"),mt=_("app.Searchbar"),yt=_("app.SearchInput","input"),gt=_("app.Spacer"),vt=_("app.Menu","nav"),wt=_("app.ActiveMenuLink","a"),bt=_("app.MenuLink","a");function Et(e){const o=e,{children:n}=o,t=ve(o,["children"]);return l(ht,k({},t),l(vt,null,e.activeRoute==="/"||e.activeRoute.startsWith("/feature-requests")?l(wt,{href:"#/"},"Feature Requests"):l(bt,{href:"#/"},"Feature Requests")),l(mt,null,l("span",{className:"fn-sr-only"},"Search..."),l(yt,{type:"text",placeholder:"Search..."})),l(gt,null),n)}function xt(e){const{options:{workspace:n,projects:t,theme:o}}=e,[u,r]=pn(Fn,qn),{error:d,modal:y,featureRequest:m,featureRequests:g,isLoadingFeatureRequests:a,isLoadingFeatureRequest:E,navigation:s}=u,i=hn();Z(()=>{i.current=new pt(n)},[n]),Z(()=>{const p=["/","/feature-requests/:id"];function h(){const w=new URL(document.URL).hash.substr(1),L=new URL(document.URL),x=new URL(`${L.protocol}//${L.host}/${w.replace(/^\//,"")}`);for(const A of p){const oe=A.match(/:(.*)/g)||[],re=A.replace(/:(.*)/g,"(.*)"),I=new RegExp(`^${re}$`,"g").exec(x.pathname);if(I){const se=I.slice(1);if(se.length!==oe.length)throw new Error("Variable names and values mismatch");const kt=oe.reduce((ae,ie,Rt)=>{const Tt=ie.substr(1);return ae[Tt]=se[Rt],ae},{}),Ct=[...x.searchParams].reduce((ae,ie)=>U(k({},ae),{[ie[0]]:ie[1]}),{});r({type:R.NAVIGATE,payload:{route:A,pathname:x.pathname,search:Ct,params:kt}});return}}r({type:R.NAVIGATE,payload:{route:"not-found",pathname:"not-found",search:{},params:{}}})}return h(),window.addEventListener("hashchange",h),()=>window.removeEventListener("hashchange",h)},[]);const c=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUESTS});const w=yield(h=i.current)==null?void 0:h.featureRequests(p,t);r({type:R.FEATURE_REQUESTS_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i,t]),v=He(p=>ue(this,null,function*(){var h;try{r({type:R.LOADING_FEATURE_REQUEST});const w=yield(h=i.current)==null?void 0:h.featureRequest(p);r({type:R.FEATURE_REQUEST_LOADED,payload:w})}catch(w){r({type:R.HANDLE_ERROR,payload:w})}}),[i]);return Z(()=>{switch(s.route){case"/":{const p=s.search.page||"1";(!g||String(g.meta.current_page)!==p)&&c(s.search.page||"1");return}case"/feature-requests/:id":{v(s.params.id);return}}},[v,c,g,s]),l("div",{style:{overflowY:y?"hidden":"auto",height:"100%",width:"100%"}},l(Ve.Provider,{value:k(k({},Vn),o)},l(Et,{activeRoute:s.route},l($n,{error:d,isLoading:a,featureRequests:g,goToPage:p=>{window.location.hash="/?page="+p},openDiscussion:p=>{window.location.hash=`/feature-requests/${p}?${new URLSearchParams(s.search).toString()}`}}),s.route==="/feature-requests/:id"&&l(dt,{isLoading:E,close:()=>{r({type:R.CLOSE_MODAL}),window.location.hash=`/?${new URLSearchParams(s.search).toString()}`},featureRequest:m}))))}const ye=document.currentScript;function nn(e){if(!e.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var u;const t=k(k({},{elementId:"feature-ninja-widget"}),e);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,ye?(u=ye.parentElement)==null||u.insertBefore(o,ye):document.body.appendChild(o)),un(l(xt,{options:t}),o)})}return window.featureNinja=nn,(function () { function styleInject(css,ref){if(ref===void 0){ref={}}var insertAt=ref.insertAt;if(!css||typeof document==="undefined"){return}var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(insertAt==="top"){if(head.firstChild){head.insertBefore(style,head.firstChild)}else{head.appendChild(style)}}else{head.appendChild(style)}if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}};styleInject(`@import"https://rsms.me/inter/inter.css";*,:before,:after{box-sizing:border-box}html{-moz-tab-size:4;-o-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}hr{height:0;color:inherit}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder,textarea:-ms-input-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:-moz-focusring{outline:auto}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity));--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );--tw-filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.fn-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fn-fixed{position:fixed}.fn-relative{position:relative}.fn-inset-0{top:0px;right:0px;bottom:0px;left:0px}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mb-2{margin-bottom:.5rem}.fn-mt-8{margin-top:2rem}.fn-mb-4{margin-bottom:1rem}.fn-mt-5{margin-top:1.25rem}.fn-mb-5{margin-bottom:1.25rem}.fn-mt-4{margin-top:1rem}.fn-mr-1{margin-right:.25rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-12{height:3rem}.fn-h-5{height:1.25rem}.fn-h-8{height:2rem}.fn-h-40{height:10rem}.fn-w-12{width:3rem}.fn-w-5{width:1.25rem}.fn-w-full{width:100%}.fn-w-11\/12{width:91.666667%}.fn-w-8{width:2rem}.fn-w-24{width:6rem}.fn-w-10{width:2.5rem}.fn-max-w-4xl{max-width:56rem}.fn-flex-1{flex:1 1 0%}.fn-flex-grow{flex-grow:1}.fn-flex-col{flex-direction:column}.fn-items-center{align-items:center}.fn-justify-center{justify-content:center}.fn-justify-between{justify-content:space-between}.fn-gap-2{gap:.5rem}.fn-gap-4{gap:1rem}.fn-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.fn-divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(229,231,235,var(--tw-divide-opacity))}.fn-overflow-y-auto{overflow-y:auto}.fn-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded-md{border-radius:.375rem}.fn-rounded-xl{border-radius:.75rem}.fn-rounded{border-radius:.25rem}.fn-rounded-full{border-radius:9999px}.fn-border-2{border-width:2px}.fn-border{border-width:1px}.fn-border-b-2{border-bottom-width:2px}.fn-border-t{border-top-width:1px}.fn-border-solid{border-style:solid}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-border-black{--tw-border-opacity: 1;border-color:rgba(0,0,0,var(--tw-border-opacity))}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-bg-gray-50{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.fn-bg-black{--tw-bg-opacity: 1;background-color:rgba(0,0,0,var(--tw-bg-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-bg-blue-500{--tw-bg-opacity: 1;background-color:rgba(59,130,246,var(--tw-bg-opacity))}.fn-bg-opacity-40{--tw-bg-opacity: .4}.fn-stroke-2{stroke-width:2}.fn-p-4{padding:1rem}.fn-p-2{padding:.5rem}.fn-p-5{padding:1.25rem}.fn-px-6{padding-left:1.5rem;padding-right:1.5rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-pt-4{padding-top:1rem}.fn-pb-1{padding-bottom:.25rem}.fn-pl-5{padding-left:1.25rem}.fn-pr-5{padding-right:1.25rem}.fn-pr-6{padding-right:1.5rem}.fn-pt-2{padding-top:.5rem}.fn-pr-4{padding-right:1rem}.fn-text-right{text-align:right}.fn-text-2xl{font-size:1.5rem;line-height:2rem}.fn-text-xs{font-size:.75rem;line-height:1rem}.fn-text-sm{font-size:.875rem;line-height:1.25rem}.fn-font-medium{font-weight:500}.fn-font-semibold{font-weight:600}.fn-text-gray-300{--tw-text-opacity: 1;color:rgba(209,213,219,var(--tw-text-opacity))}.fn-text-blue-400{--tw-text-opacity: 1;color:rgba(96,165,250,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}.fn-text-white{--tw-text-opacity: 1;color:rgba(255,255,255,var(--tw-text-opacity))}.fn-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-gray-400{--tw-text-opacity: 1;color:rgba(156,163,175,var(--tw-text-opacity))}.fn-text-gray-500{--tw-text-opacity: 1;color:rgba(107,114,128,var(--tw-text-opacity))}.fn-underline{text-decoration:underline}.fn-shadow-sm{--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.fn-ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.fn-ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgba(156, 163, 175, var(--tw-ring-opacity))}.fn-drop-shadow-2xl{--tw-drop-shadow: drop-shadow(0 25px 25px rgba(0, 0, 0, .15));filter:var(--tw-filter)}.hover\:fn-bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgba(29,78,216,var(--tw-bg-opacity))}.hover\:fn-bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.hover\:fn-text-green-400:hover{--tw-text-opacity: 1;color:rgba(52,211,153,var(--tw-text-opacity))}.focus\:fn-border-green-400:focus{--tw-border-opacity: 1;border-color:rgba(52,211,153,var(--tw-border-opacity))}.focus\:fn-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:fn-ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:fn-ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgba(52, 211, 153, var(--tw-ring-opacity))}.focus\:fn-ring-offset-2:focus{--tw-ring-offset-width: 2px}.disabled\:fn-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:fn-opacity-25:disabled{opacity:.25}@media (min-width: 640px){.sm\:fn-block{display:block}.sm\:fn-justify-end{justify-content:flex-end}.sm\:fn-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width: 1024px){.lg\:fn-px-8{padding-left:2rem;padding-right:2rem}} | ||
`) })(),nn}); |
{ | ||
"name": "@feature.ninja/widget", | ||
"version": "0.0.855", | ||
"version": "0.0.858", | ||
"description": "Feature Ninja Widget", | ||
@@ -5,0 +5,0 @@ "main": "./dist/widget.umd.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
164010
3