@feature.ninja/widget
Advanced tools
Comparing version 0.0.27 to 0.0.28
@@ -1,884 +0,575 @@ | ||
var e,n,t,_,r,o,l=Object.defineProperty,i=Object.defineProperties,f=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,n,t)=>n in e?l(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,d=(e,n)=>{for(var t in n||(n={}))a.call(n,t)&&c(e,t,n[t]);if(s)for(var t of s(n))u.call(n,t)&&c(e,t,n[t]);return e},p=(e,n)=>i(e,f(n)),h={},m=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function y(e,n){for(var t in n)e[t]=n[t];return e}function g(e){var n=e.parentNode;n&&n.removeChild(e)}function b(n,t,_){var r,o,l,i={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:i[l]=t[l];if(arguments.length>2&&(i.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===i[l]&&(i[l]=n.defaultProps[l]);return x(n,i,r,o,null)}function x(e,_,r,o,l){var i={type:e,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null!=n.vnode&&n.vnode(i),i}function w(e){return e.children}function k(e,n){this.props=e,this.context=n}function E(e,n){if(null==n)return e.__?E(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?E(e):null}function N(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return N(e)}}function S(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!P.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||r)(P)}function P(){for(var e;P.__r=_.length;)e=_.sort((function(e,n){return e.__v.__b-n.__v.__b})),_=[],e.some((function(e){var n,t,_,r,o,l;e.__d&&(o=(r=(n=e).__v).__e,(l=n.__P)&&(t=[],(_=y({},r)).__v=r.__v+1,U(l,r,_,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?E(r):o,r.__h),j(t,r),r.__e!=o&&N(r)))}))}function R(e,n,t,_,r,o,l,i,f,s){var a,u,c,d,p,v,y,g=_&&_.__k||m,b=g.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(d=t.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?x(null,d,null,null,d):Array.isArray(d)?x(w,{children:d},null,null,null):d.__b>0?x(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(c=g[a])||c&&d.key==c.key&&d.type===c.type)g[a]=void 0;else for(u=0;u<b;u++){if((c=g[u])&&d.key==c.key&&d.type===c.type){g[u]=void 0;break}c=null}U(e,d,c=c||h,r,o,l,i,f,s),p=d.__e,(u=d.ref)&&c.ref!=u&&(y||(y=[]),c.ref&&y.push(c.ref,null,d),y.push(u,d.__c||p,d)),null!=p?(null==v&&(v=p),"function"==typeof d.type&&null!=d.__k&&d.__k===c.__k?d.__d=f=O(d,f,e):f=T(e,d,c,g,p,f),s||"option"!==t.type?"function"==typeof t.type&&(t.__d=f):e.value=""):f&&c.__e==f&&f.parentNode!=e&&(f=E(c))}for(t.__e=v,a=b;a--;)null!=g[a]&&("function"==typeof t.type&&null!=g[a].__e&&g[a].__e==t.__d&&(t.__d=E(_,a+1)),F(g[a],g[a]));if(y)for(a=0;a<y.length;a++)C(y[a],y[++a],y[++a])}function O(e,n,t){var _,r;for(_=0;_<e.__k.length;_++)(r=e.__k[_])&&(r.__=e,n="function"==typeof r.type?O(r,n,t):T(t,r,r,e.__k,r.__e,n));return n}function T(e,n,t,_,r,o){var l,i,f;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),l=null;else{for(i=o,f=0;(i=i.nextSibling)&&f<_.length;f+=2)if(i==r)break e;e.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function D(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||v.test(n)?t:t+"px"}function A(e,n,t,_,r){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||D(e.style,n,"");if(t)for(n in t)_&&t[n]===_[n]||D(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?L:H,o):e.removeEventListener(n,o?L:H,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(l){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function H(e){this.l[e.type+!1](n.event?n.event(e):e)}function L(e){this.l[e.type+!0](n.event?n.event(e):e)}function U(t,_,r,o,l,i,f,s,a){var u,c,d,p,m,v,b,x,N,S,P,O=_.type;if(void 0!==_.constructor)return null;null!=r.__h&&(a=r.__h,s=_.__e=r.__e,_.__h=null,i=[s]),(u=n.__b)&&u(_);try{e:if("function"==typeof O){if(x=_.props,N=(u=O.contextType)&&o[u.__c],S=u?N?N.props.value:u.__:o,r.__c?b=(c=_.__c=r.__c).__=c.__E:("prototype"in O&&O.prototype.render?_.__c=c=new O(x,S):(_.__c=c=new k(x,S),c.constructor=O,c.render=M),N&&N.sub(c),c.props=x,c.state||(c.state={}),c.context=S,c.__n=o,d=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=O.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=y({},c.__s)),y(c.__s,O.getDerivedStateFromProps(x,c.__s))),p=c.props,m=c.state,d)null==O.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==O.getDerivedStateFromProps&&x!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(x,S),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(x,c.__s,S)||_.__v===r.__v){c.props=x,c.state=c.__s,_.__v!==r.__v&&(c.__d=!1),c.__v=_,_.__e=r.__e,_.__k=r.__k,_.__k.forEach((function(e){e&&(e.__=_)})),c.__h.length&&f.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(x,c.__s,S),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(p,m,v)}))}c.context=S,c.props=x,c.state=c.__s,(u=n.__r)&&u(_),c.__d=!1,c.__v=_,c.__P=t,u=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(o=y(y({},o),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(v=c.getSnapshotBeforeUpdate(p,m)),P=null!=u&&u.type===w&&null==u.key?u.props.children:u,R(t,Array.isArray(P)?P:[P],_,r,o,l,i,f,s,a),c.base=_.__e,_.__h=null,c.__h.length&&f.push(c),b&&(c.__E=c.__=null),c.__e=!1}else null==i&&_.__v===r.__v?(_.__k=r.__k,_.__e=r.__e):_.__e=function(n,t,_,r,o,l,i,f){var s,a,u,c=_.props,d=t.props,p=t.type,m=0;if("svg"===p&&(o=!0),null!=l)for(;m<l.length;m++)if((s=l[m])&&(s===n||(p?s.localName==p:3==s.nodeType))){n=s,l[m]=null;break}if(null==n){if(null===p)return document.createTextNode(d);n=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),l=null,f=!1}if(null===p)c===d||f&&n.data===d||(n.data=d);else{if(l=l&&e.call(n.childNodes),a=(c=_.props||h).dangerouslySetInnerHTML,u=d.dangerouslySetInnerHTML,!f){if(null!=l)for(c={},m=0;m<n.attributes.length;m++)c[n.attributes[m].name]=n.attributes[m].value;(u||a)&&(u&&(a&&u.__html==a.__html||u.__html===n.innerHTML)||(n.innerHTML=u&&u.__html||""))}if(function(e,n,t,_,r){var o;for(o in t)"children"===o||"key"===o||o in n||A(e,o,null,t[o],_);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||A(e,o,n[o],t[o],_)}(n,d,c,o,f),u)t.__k=[];else if(m=t.props.children,R(n,Array.isArray(m)?m:[m],t,_,r,o&&"foreignObject"!==p,l,i,l?l[0]:_.__k&&E(_,0),f),null!=l)for(m=l.length;m--;)null!=l[m]&&g(l[m]);f||("value"in d&&void 0!==(m=d.value)&&(m!==n.value||"progress"===p&&!m)&&A(n,"value",m,c.value,!1),"checked"in d&&void 0!==(m=d.checked)&&m!==n.checked&&A(n,"checked",m,c.checked,!1))}return n}(r.__e,_,r,o,l,i,f,a);(u=n.diffed)&&u(_)}catch(T){_.__v=null,(a||null!=i)&&(_.__e=s,_.__h=!!a,i[i.indexOf(s)]=null),n.__e(T,_,r)}}function j(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(_){n.__e(_,t.__v)}}))}function C(e,t,_){try{"function"==typeof e?e(t):e.current=t}catch(r){n.__e(r,_)}}function F(e,t,_){var r,o;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||C(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){n.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&F(r[o],t,"function"!=typeof e.type);_||null==e.__e||g(e.__e),e.__e=e.__d=void 0}function M(e,n,t){return this.constructor(e,t)}e=m.slice,n={__e:function(e,n){for(var t,_,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((_=t.constructor)&&null!=_.getDerivedStateFromError&&(t.setState(_.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(o){e=o}throw e}},t=0,k.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},t),this.props)),e&&y(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),S(this))},k.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},k.prototype.render=w,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,P.__r=0;var q,I,W,B=0,$=[],V=n.__b,Q=n.__r,z=n.diffed,G=n.__c,J=n.unmount;function K(e,t){n.__h&&n.__h(I,e,B||t),B=0;var _=I.__H||(I.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function X(){$.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(ne),e.__H.__h.forEach(te),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),$=[]}n.__b=function(e){I=null,V&&V(e)},n.__r=function(e){Q&&Q(e),q=0;var n=(I=e.__c).__H;n&&(n.__h.forEach(ne),n.__h.forEach(te),n.__h=[])},n.diffed=function(e){z&&z(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==$.push(t)&&W===n.requestAnimationFrame||((W=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),ee&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);ee&&(n=requestAnimationFrame(t))})(X)),I=void 0},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ne),e.__h=e.__h.filter((function(e){return!e.__||te(e)}))}catch(_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(_,e.__v)}})),G&&G(e,t)},n.unmount=function(e){J&&J(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(ne)}catch(_){n.__e(_,t.__v)}};var Y,Z,ee="function"==typeof requestAnimationFrame;function ne(e){var n=I;"function"==typeof e.__c&&e.__c(),I=n}function te(e){var n=I;e.__c=e.__(),I=n}function _e(e,n){return"function"==typeof n?n(e):n}(Z=Y||(Y={})).UPVOTE="UPVOTE",Z.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",Z.HANDLE_ERROR="HANDLE_ERROR";const re={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},oe=(e,n)=>{switch(console.log(n),n.type){case Y.UPVOTE:return p(d({},e),{data:p(d({},e.data),{[n.id]:p(d({},e.data[n.id]),{votes:e.data[n.id].votes_count+1})})});case Y.FEATURE_REQUESTS_LOADED:return p(d({},e),{data:n.response.data,meta:n.response.meta,links:n.response.links});case Y.HANDLE_ERROR:return p(d({},e),{error:n.error});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};function le(e){const{featureRequest:n}=e;return b("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},b("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},b("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},b("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"}))),b("div",{className:"fn-text-gray-500"})),b("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},b("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},n.title),b("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},n.description),b("div",{className:"fn-flex fn-justify-between fn-mt-2"},b("div",{className:"fn-flex fn-gap-2"},b("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),b("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},n.votes_count,b("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},b("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"}))))))}function ie(e){const{options:{workspace:t,projects:_}}=e,[r,o]=(l=oe,i=re,(s=K(q++,2)).t=l,s.__c||(s.__=[f?f(i):_e(void 0,i),function(e){var n=s.t(s.__[0],e);s.__[0]!==n&&(s.__=[n,s.__[1]],s.__c.setState({}))}],s.__c=I),s.__);var l,i,f,s;const{error:a,data:u,meta:c,links:d}=r;return function(e,t){var _,r,o=K(q++,3);!n.__s&&(_=o.__H,r=t,!_||_.length!==r.length||r.some((function(e,n){return e!==_[n]})))&&(o.__=e,o.__H=t,I.__H.__h.push(o))}((()=>{(()=>{return e=this,n=null,r=function*(){const e=yield fetch(`https://api.feature.ninja/workspaces/${t}/feature-requests${_?`?projects=${_.join(",")}`:""}`),n=yield e.json();if(e.ok)o({type:Y.FEATURE_REQUESTS_LOADED,response:n});else{const n=yield e.text();console.error("Error loading feature requests, response was:",n),o({type:Y.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}},new Promise(((t,_)=>{var o=e=>{try{i(r.next(e))}catch(n){_(n)}},l=e=>{try{i(r.throw(e))}catch(n){_(n)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(o,l);i((r=r.apply(e,n)).next())}));var e,n,r})()}),[t,_]),b("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},a&&b("div",{className:"fn-bg-red-400"},a.message),b("div",{className:"fn-py-4 fn-px-4"},b("span",{className:"fn-sr-only"},"Search..."),b("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),b("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(u).map((e=>b(le,{key:e.id,featureRequest:e})))),b("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},b("div",{className:"fn-hidden fn-sm:block"},b("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",b("span",{className:"fn-font-medium"},c.from)," to"," ",b("span",{className:"fn-font-medium"},c.to)," of"," ",b("span",{className:"fn-font-medium"},c.total)," results")),b("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},b("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.prev},"Previous"),b("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.next},"Next"))))}const fe=document.currentScript;function se(t){if(!t.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",(()=>{var _;const r=d(d({},{elementId:"feature-ninja-widget"}),t);let o=document.getElementById(r.elementId);var l,i,f,s,a,u;o||(o=document.createElement("div"),o.id=r.elementId,fe?null==(_=fe.parentElement)||_.insertBefore(o,fe):document.body.appendChild(o)),l=b(ie,{options:r}),i=o,n.__&&n.__(l,i),a=(s="function"==typeof f)?null:f&&f.__k||i.__k,u=[],U(i,l=(!s&&f||i).__k=b(w,null,[l]),a||h,h,void 0!==i.ownerSVGElement,!s&&f?[f]:a?null:i.firstChild?e.call(i.childNodes):null,u,!s&&f?f:a?a.__e:i.firstChild,s),j(u,l)}))}window.featureNinja=se,(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 url('https://rsms.me/inter/inter.css'); | ||
/*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */ | ||
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | ||
/* | ||
Document | ||
======== | ||
*/ | ||
/** | ||
Use a better box model (opinionated). | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; | ||
var __defProp = Object.defineProperty; | ||
var __defProps = Object.defineProperties; | ||
var __getOwnPropDescs = Object.getOwnPropertyDescriptors; | ||
var __getOwnPropSymbols = Object.getOwnPropertySymbols; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __propIsEnum = Object.prototype.propertyIsEnumerable; | ||
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; | ||
var __spreadValues = (a2, b2) => { | ||
for (var prop in b2 || (b2 = {})) | ||
if (__hasOwnProp.call(b2, prop)) | ||
__defNormalProp(a2, prop, b2[prop]); | ||
if (__getOwnPropSymbols) | ||
for (var prop of __getOwnPropSymbols(b2)) { | ||
if (__propIsEnum.call(b2, prop)) | ||
__defNormalProp(a2, prop, b2[prop]); | ||
} | ||
return a2; | ||
}; | ||
var __spreadProps = (a2, b2) => __defProps(a2, __getOwnPropDescs(b2)); | ||
var __async = (__this, __arguments, generator) => { | ||
return new Promise((resolve, reject) => { | ||
var fulfilled = (value) => { | ||
try { | ||
step(generator.next(value)); | ||
} catch (e2) { | ||
reject(e2); | ||
} | ||
}; | ||
var rejected = (value) => { | ||
try { | ||
step(generator.throw(value)); | ||
} catch (e2) { | ||
reject(e2); | ||
} | ||
}; | ||
var step = (x2) => x2.done ? resolve(x2.value) : Promise.resolve(x2.value).then(fulfilled, rejected); | ||
step((generator = generator.apply(__this, __arguments)).next()); | ||
}); | ||
}; | ||
var n, l, u$1, t$1, o$1, r$1, e$1 = {}, c$1 = [], s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; | ||
function a$1(n2, l2) { | ||
for (var u2 in l2) | ||
n2[u2] = l2[u2]; | ||
return n2; | ||
} | ||
/** | ||
Use a more readable tab size (opinionated). | ||
*/ | ||
html { | ||
-moz-tab-size: 4; | ||
-o-tab-size: 4; | ||
tab-size: 4; | ||
function h(n2) { | ||
var l2 = n2.parentNode; | ||
l2 && l2.removeChild(n2); | ||
} | ||
/** | ||
1. Correct the line height in all browsers. | ||
2. Prevent adjustments of font size after orientation changes in iOS. | ||
*/ | ||
html { | ||
line-height: 1.15; /* 1 */ | ||
-webkit-text-size-adjust: 100%; /* 2 */ | ||
function v$1(l2, u2, i2) { | ||
var t2, o2, r2, f2 = {}; | ||
for (r2 in u2) | ||
r2 == "key" ? t2 = u2[r2] : r2 == "ref" ? o2 = u2[r2] : f2[r2] = u2[r2]; | ||
if (arguments.length > 2 && (f2.children = arguments.length > 3 ? n.call(arguments, 2) : i2), typeof l2 == "function" && l2.defaultProps != null) | ||
for (r2 in l2.defaultProps) | ||
f2[r2] === void 0 && (f2[r2] = l2.defaultProps[r2]); | ||
return y$1(l2, f2, t2, o2, null); | ||
} | ||
/* | ||
Sections | ||
======== | ||
*/ | ||
/** | ||
Remove the margin in all browsers. | ||
*/ | ||
body { | ||
margin: 0; | ||
function y$1(n2, i2, t2, o2, r2) { | ||
var f2 = { type: n2, props: i2, key: t2, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: r2 == null ? ++u$1 : r2 }; | ||
return l.vnode != null && l.vnode(f2), f2; | ||
} | ||
/** | ||
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
*/ | ||
body { | ||
font-family: | ||
system-ui, | ||
-apple-system, /* Firefox supports this but not yet system-ui */ | ||
'Segoe UI', | ||
Roboto, | ||
Helvetica, | ||
Arial, | ||
sans-serif, | ||
'Apple Color Emoji', | ||
'Segoe UI Emoji'; | ||
function d(n2) { | ||
return n2.children; | ||
} | ||
/* | ||
Grouping content | ||
================ | ||
*/ | ||
/** | ||
1. Add the correct height in Firefox. | ||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) | ||
*/ | ||
hr { | ||
height: 0; /* 1 */ | ||
color: inherit; /* 2 */ | ||
function _(n2, l2) { | ||
this.props = n2, this.context = l2; | ||
} | ||
/* | ||
Text-level semantics | ||
==================== | ||
*/ | ||
/** | ||
Add the correct text decoration in Chrome, Edge, and Safari. | ||
*/ | ||
abbr[title] { | ||
-webkit-text-decoration: underline dotted; | ||
text-decoration: underline dotted; | ||
function k$1(n2, l2) { | ||
if (l2 == null) | ||
return n2.__ ? k$1(n2.__, n2.__.__k.indexOf(n2) + 1) : null; | ||
for (var u2; l2 < n2.__k.length; l2++) | ||
if ((u2 = n2.__k[l2]) != null && u2.__e != null) | ||
return u2.__e; | ||
return typeof n2.type == "function" ? k$1(n2) : null; | ||
} | ||
/** | ||
Add the correct font weight in Edge and Safari. | ||
*/ | ||
b, | ||
strong { | ||
font-weight: bolder; | ||
function b$1(n2) { | ||
var l2, u2; | ||
if ((n2 = n2.__) != null && n2.__c != null) { | ||
for (n2.__e = n2.__c.base = null, l2 = 0; l2 < n2.__k.length; l2++) | ||
if ((u2 = n2.__k[l2]) != null && u2.__e != null) { | ||
n2.__e = n2.__c.base = u2.__e; | ||
break; | ||
} | ||
return b$1(n2); | ||
} | ||
} | ||
/** | ||
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
2. Correct the odd 'em' font sizing in all browsers. | ||
*/ | ||
code, | ||
kbd, | ||
samp, | ||
pre { | ||
font-family: | ||
ui-monospace, | ||
SFMono-Regular, | ||
Consolas, | ||
'Liberation Mono', | ||
Menlo, | ||
monospace; /* 1 */ | ||
font-size: 1em; /* 2 */ | ||
function m$1(n2) { | ||
(!n2.__d && (n2.__d = true) && t$1.push(n2) && !g$1.__r++ || r$1 !== l.debounceRendering) && ((r$1 = l.debounceRendering) || o$1)(g$1); | ||
} | ||
/** | ||
Add the correct font size in all browsers. | ||
*/ | ||
small { | ||
font-size: 80%; | ||
function g$1() { | ||
for (var n2; g$1.__r = t$1.length; ) | ||
n2 = t$1.sort(function(n3, l2) { | ||
return n3.__v.__b - l2.__v.__b; | ||
}), t$1 = [], n2.some(function(n3) { | ||
var l2, u2, i2, t2, o2, r2; | ||
n3.__d && (o2 = (t2 = (l2 = n3).__v).__e, (r2 = l2.__P) && (u2 = [], (i2 = a$1({}, t2)).__v = t2.__v + 1, j$1(r2, t2, i2, l2.__n, r2.ownerSVGElement !== void 0, t2.__h != null ? [o2] : null, u2, o2 == null ? k$1(t2) : o2, t2.__h), z(u2, t2), t2.__e != o2 && b$1(t2))); | ||
}); | ||
} | ||
/** | ||
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. | ||
*/ | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
function w$1(n2, l2, u2, i2, t2, o2, r2, f2, s2, a2) { | ||
var h2, v2, p2, _2, b2, m2, g2, w2 = i2 && i2.__k || c$1, A = w2.length; | ||
for (u2.__k = [], h2 = 0; h2 < l2.length; h2++) | ||
if ((_2 = u2.__k[h2] = (_2 = l2[h2]) == null || typeof _2 == "boolean" ? null : typeof _2 == "string" || typeof _2 == "number" || typeof _2 == "bigint" ? y$1(null, _2, null, null, _2) : Array.isArray(_2) ? y$1(d, { children: _2 }, null, null, null) : _2.__b > 0 ? y$1(_2.type, _2.props, _2.key, null, _2.__v) : _2) != null) { | ||
if (_2.__ = u2, _2.__b = u2.__b + 1, (p2 = w2[h2]) === null || p2 && _2.key == p2.key && _2.type === p2.type) | ||
w2[h2] = void 0; | ||
else | ||
for (v2 = 0; v2 < A; v2++) { | ||
if ((p2 = w2[v2]) && _2.key == p2.key && _2.type === p2.type) { | ||
w2[v2] = void 0; | ||
break; | ||
} | ||
p2 = null; | ||
} | ||
j$1(n2, _2, p2 = p2 || e$1, t2, o2, r2, f2, s2, a2), b2 = _2.__e, (v2 = _2.ref) && p2.ref != v2 && (g2 || (g2 = []), p2.ref && g2.push(p2.ref, null, _2), g2.push(v2, _2.__c || b2, _2)), b2 != null ? (m2 == null && (m2 = b2), typeof _2.type == "function" && _2.__k != null && _2.__k === p2.__k ? _2.__d = s2 = x$1(_2, s2, n2) : s2 = P(n2, _2, p2, w2, b2, s2), a2 || u2.type !== "option" ? typeof u2.type == "function" && (u2.__d = s2) : n2.value = "") : s2 && p2.__e == s2 && s2.parentNode != n2 && (s2 = k$1(p2)); | ||
} | ||
for (u2.__e = m2, h2 = A; h2--; ) | ||
w2[h2] != null && (typeof u2.type == "function" && w2[h2].__e != null && w2[h2].__e == u2.__d && (u2.__d = k$1(i2, h2 + 1)), N(w2[h2], w2[h2])); | ||
if (g2) | ||
for (h2 = 0; h2 < g2.length; h2++) | ||
M(g2[h2], g2[++h2], g2[++h2]); | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
function x$1(n2, l2, u2) { | ||
var i2, t2; | ||
for (i2 = 0; i2 < n2.__k.length; i2++) | ||
(t2 = n2.__k[i2]) && (t2.__ = n2, l2 = typeof t2.type == "function" ? x$1(t2, l2, u2) : P(u2, t2, t2, n2.__k, t2.__e, l2)); | ||
return l2; | ||
} | ||
sup { | ||
top: -0.5em; | ||
function P(n2, l2, u2, i2, t2, o2) { | ||
var r2, f2, e2; | ||
if (l2.__d !== void 0) | ||
r2 = l2.__d, l2.__d = void 0; | ||
else if (u2 == null || t2 != o2 || t2.parentNode == null) | ||
n: | ||
if (o2 == null || o2.parentNode !== n2) | ||
n2.appendChild(t2), r2 = null; | ||
else { | ||
for (f2 = o2, e2 = 0; (f2 = f2.nextSibling) && e2 < i2.length; e2 += 2) | ||
if (f2 == t2) | ||
break n; | ||
n2.insertBefore(t2, o2), r2 = o2; | ||
} | ||
return r2 !== void 0 ? r2 : t2.nextSibling; | ||
} | ||
/* | ||
Tabular data | ||
============ | ||
*/ | ||
/** | ||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) | ||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) | ||
*/ | ||
table { | ||
text-indent: 0; /* 1 */ | ||
border-color: inherit; /* 2 */ | ||
function C(n2, l2, u2, i2, t2) { | ||
var o2; | ||
for (o2 in u2) | ||
o2 === "children" || o2 === "key" || o2 in l2 || H(n2, o2, null, u2[o2], i2); | ||
for (o2 in l2) | ||
t2 && typeof l2[o2] != "function" || o2 === "children" || o2 === "key" || o2 === "value" || o2 === "checked" || u2[o2] === l2[o2] || H(n2, o2, l2[o2], u2[o2], i2); | ||
} | ||
/* | ||
Forms | ||
===== | ||
*/ | ||
/** | ||
1. Change the font styles in all browsers. | ||
2. Remove the margin in Firefox and Safari. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
font-family: inherit; /* 1 */ | ||
font-size: 100%; /* 1 */ | ||
line-height: 1.15; /* 1 */ | ||
margin: 0; /* 2 */ | ||
function $(n2, l2, u2) { | ||
l2[0] === "-" ? n2.setProperty(l2, u2) : n2[l2] = u2 == null ? "" : typeof u2 != "number" || s.test(l2) ? u2 : u2 + "px"; | ||
} | ||
/** | ||
Remove the inheritance of text transform in Edge and Firefox. | ||
1. Remove the inheritance of text transform in Firefox. | ||
*/ | ||
button, | ||
select { /* 1 */ | ||
text-transform: none; | ||
function H(n2, l2, u2, i2, t2) { | ||
var o2; | ||
n: | ||
if (l2 === "style") | ||
if (typeof u2 == "string") | ||
n2.style.cssText = u2; | ||
else { | ||
if (typeof i2 == "string" && (n2.style.cssText = i2 = ""), i2) | ||
for (l2 in i2) | ||
u2 && l2 in u2 || $(n2.style, l2, ""); | ||
if (u2) | ||
for (l2 in u2) | ||
i2 && u2[l2] === i2[l2] || $(n2.style, l2, u2[l2]); | ||
} | ||
else if (l2[0] === "o" && l2[1] === "n") | ||
o2 = l2 !== (l2 = l2.replace(/Capture$/, "")), l2 = l2.toLowerCase() in n2 ? l2.toLowerCase().slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + o2] = u2, u2 ? i2 || n2.addEventListener(l2, o2 ? T : I, o2) : n2.removeEventListener(l2, o2 ? T : I, o2); | ||
else if (l2 !== "dangerouslySetInnerHTML") { | ||
if (t2) | ||
l2 = l2.replace(/xlink[H:h]/, "h").replace(/sName$/, "s"); | ||
else if (l2 !== "href" && l2 !== "list" && l2 !== "form" && l2 !== "tabIndex" && l2 !== "download" && l2 in n2) | ||
try { | ||
n2[l2] = u2 == null ? "" : u2; | ||
break n; | ||
} catch (n3) { | ||
} | ||
typeof u2 == "function" || (u2 != null && (u2 !== false || l2[0] === "a" && l2[1] === "r") ? n2.setAttribute(l2, u2) : n2.removeAttribute(l2)); | ||
} | ||
} | ||
/** | ||
Correct the inability to style clickable types in iOS and Safari. | ||
*/ | ||
button, | ||
[type='button'] { | ||
-webkit-appearance: button; | ||
function I(n2) { | ||
this.l[n2.type + false](l.event ? l.event(n2) : n2); | ||
} | ||
/** | ||
Remove the inner border and padding in Firefox. | ||
*/ | ||
/** | ||
Restore the focus styles unset by the previous rule. | ||
*/ | ||
/** | ||
Remove the additional ':invalid' styles in Firefox. | ||
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737 | ||
*/ | ||
/** | ||
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers. | ||
*/ | ||
legend { | ||
padding: 0; | ||
function T(n2) { | ||
this.l[n2.type + true](l.event ? l.event(n2) : n2); | ||
} | ||
/** | ||
Add the correct vertical alignment in Chrome and Firefox. | ||
*/ | ||
progress { | ||
vertical-align: baseline; | ||
} | ||
/** | ||
Correct the cursor style of increment and decrement buttons in Safari. | ||
*/ | ||
/** | ||
1. Correct the odd appearance in Chrome and Safari. | ||
2. Correct the outline style in Safari. | ||
*/ | ||
/** | ||
Remove the inner padding in Chrome and Safari on macOS. | ||
*/ | ||
/** | ||
1. Correct the inability to style clickable types in iOS and Safari. | ||
2. Change font properties to 'inherit' in Safari. | ||
*/ | ||
/* | ||
Interactive | ||
=========== | ||
*/ | ||
/* | ||
Add the correct display in Chrome and Safari. | ||
*/ | ||
summary { | ||
display: list-item; | ||
} | ||
/** | ||
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base | ||
* A thin layer on top of normalize.css that provides a starting point more | ||
* suitable for web applications. | ||
*/ | ||
/** | ||
* Removes the default spacing and border for appropriate elements. | ||
*/ | ||
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; | ||
} | ||
/** | ||
* Tailwind custom reset styles | ||
*/ | ||
/** | ||
* 1. Use the user's configured sans font-family (with Tailwind's default | ||
* sans-serif font stack as a fallback) as a sane default. | ||
* 2. Use Tailwind's default "normal" line-height so the user isn't forced | ||
* to override it to ensure consistency even when using the default theme. | ||
*/ | ||
html { | ||
font-family: Inter var, 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"; /* 1 */ | ||
line-height: 1.5; /* 2 */ | ||
} | ||
/** | ||
* Inherit font-family and line-height from html so users can set them as | ||
* a class directly on the html element. | ||
*/ | ||
body { | ||
font-family: inherit; | ||
line-height: inherit; | ||
} | ||
/** | ||
* 1. Prevent padding and border from affecting element width. | ||
* | ||
* We used to set this in the html element and inherit from | ||
* the parent element for everything else. This caused issues | ||
* in shadow-dom-enhanced elements like <details> where the content | ||
* is wrapped by a div with box-sizing set to content-box. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/4 | ||
* | ||
* | ||
* 2. Allow adding a border to an element by just adding a border-width. | ||
* | ||
* By default, the way the browser specifies that an element should have no | ||
* border is by setting it's border-style to none in the user-agent | ||
* stylesheet. | ||
* | ||
* In order to easily add borders to elements by just setting the border-width | ||
* property, we change the default border-style for all elements to solid, and | ||
* use border-width to hide them instead. This way our border utilities only | ||
* need to set the border-width property instead of the entire border | ||
* shorthand, making our border utilities much more straightforward to compose. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/pull/116 | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; /* 1 */ | ||
border-width: 0; /* 2 */ | ||
border-style: solid; /* 2 */ | ||
border-color: currentColor; /* 2 */ | ||
} | ||
/* | ||
* Ensure horizontal rules are visible by default | ||
*/ | ||
hr { | ||
border-top-width: 1px; | ||
} | ||
/** | ||
* Undo the border-style: none reset that Normalize applies to images so that | ||
* our border-{width} utilities have the expected effect. | ||
* | ||
* The Normalize reset is unnecessary for us since we default the border-width | ||
* to 0 on all elements. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/issues/362 | ||
*/ | ||
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 { | ||
cursor: pointer; | ||
} | ||
/** | ||
* Override legacy focus reset from Normalize with modern Firefox focus styles. | ||
* | ||
* This is actually an improvement over the new defaults in Firefox in our testing, | ||
* as it triggers the better focus styles even for links, which still use a dotted | ||
* outline in Firefox by default. | ||
*/ | ||
table { | ||
border-collapse: collapse; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-size: inherit; | ||
font-weight: inherit; | ||
} | ||
/** | ||
* Reset links to optimize for opt-in styling instead of | ||
* opt-out. | ||
*/ | ||
a { | ||
color: inherit; | ||
text-decoration: inherit; | ||
} | ||
/** | ||
* Reset form element properties that are easy to forget to | ||
* style explicitly so you don't inadvertently introduce | ||
* styles that deviate from your design system. These styles | ||
* supplement a partial reset that is already applied by | ||
* normalize.css. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
padding: 0; | ||
line-height: inherit; | ||
color: inherit; | ||
} | ||
/** | ||
* Use the configured 'mono' font family for elements that | ||
* are expected to be rendered with a monospace font, falling | ||
* back to the system monospace stack if there is no configured | ||
* 'mono' font family. | ||
*/ | ||
pre, | ||
code, | ||
kbd, | ||
samp { | ||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; | ||
} | ||
/** | ||
* 1. Make replaced elements display: block by default as that's | ||
* the behavior you want almost all of the time. Inspired by | ||
* CSS Remedy, with svg added as well. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
* | ||
* 2. Add vertical-align: middle to align replaced elements more | ||
* sensibly by default when overriding display by adding a | ||
* utility like inline. | ||
* | ||
* This can trigger a poorly considered linting error in some | ||
* tools but is included by design. | ||
* | ||
* https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210 | ||
*/ | ||
img, | ||
svg, | ||
video, | ||
canvas, | ||
audio, | ||
iframe, | ||
embed, | ||
object { | ||
display: block; /* 1 */ | ||
vertical-align: middle; /* 2 */ | ||
} | ||
/** | ||
* Constrain images and videos to the parent width and preserve | ||
* their intrinsic aspect ratio. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
*/ | ||
img, | ||
video { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
/** | ||
* Ensure the default browser behavior of the hidden attribute. | ||
*/ | ||
*, ::before, ::after{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.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-relative{ | ||
position: relative; | ||
} | ||
.fn--m-2{ | ||
margin: -0.5rem; | ||
} | ||
.fn-mx-auto{ | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
.fn-mt-2{ | ||
margin-top: 0.5rem; | ||
} | ||
.fn-mt-4{ | ||
margin-top: 1rem; | ||
} | ||
.fn-ml-3{ | ||
margin-left: 0.75rem; | ||
} | ||
.fn-block{ | ||
display: block; | ||
} | ||
.fn-flex{ | ||
display: flex; | ||
} | ||
.fn-inline-flex{ | ||
display: inline-flex; | ||
} | ||
.fn-hidden{ | ||
display: none; | ||
} | ||
.fn-h-5{ | ||
height: 1.25rem; | ||
} | ||
.fn-h-12{ | ||
height: 3rem; | ||
} | ||
.fn-w-5{ | ||
width: 1.25rem; | ||
} | ||
.fn-w-10{ | ||
width: 2.5rem; | ||
} | ||
.fn-w-12{ | ||
width: 3rem; | ||
} | ||
.fn-w-full{ | ||
width: 100%; | ||
} | ||
.fn-max-w-4xl{ | ||
max-width: 56rem; | ||
} | ||
.fn-flex-grow{ | ||
flex-grow: 1; | ||
} | ||
@-webkit-keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
function j$1(n2, u2, i2, t2, o2, r2, f2, e2, c2) { | ||
var s2, h2, v2, y2, p2, k2, b2, m2, g2, x2, A, P2 = u2.type; | ||
if (u2.constructor !== void 0) | ||
return null; | ||
i2.__h != null && (c2 = i2.__h, e2 = u2.__e = i2.__e, u2.__h = null, r2 = [e2]), (s2 = l.__b) && s2(u2); | ||
try { | ||
n: | ||
if (typeof P2 == "function") { | ||
if (m2 = u2.props, g2 = (s2 = P2.contextType) && t2[s2.__c], x2 = s2 ? g2 ? g2.props.value : s2.__ : t2, i2.__c ? b2 = (h2 = u2.__c = i2.__c).__ = h2.__E : ("prototype" in P2 && P2.prototype.render ? u2.__c = h2 = new P2(m2, x2) : (u2.__c = h2 = new _(m2, x2), h2.constructor = P2, h2.render = O), g2 && g2.sub(h2), h2.props = m2, h2.state || (h2.state = {}), h2.context = x2, h2.__n = t2, v2 = h2.__d = true, h2.__h = []), h2.__s == null && (h2.__s = h2.state), P2.getDerivedStateFromProps != null && (h2.__s == h2.state && (h2.__s = a$1({}, h2.__s)), a$1(h2.__s, P2.getDerivedStateFromProps(m2, h2.__s))), y2 = h2.props, p2 = h2.state, v2) | ||
P2.getDerivedStateFromProps == null && h2.componentWillMount != null && h2.componentWillMount(), h2.componentDidMount != null && h2.__h.push(h2.componentDidMount); | ||
else { | ||
if (P2.getDerivedStateFromProps == null && m2 !== y2 && h2.componentWillReceiveProps != null && h2.componentWillReceiveProps(m2, x2), !h2.__e && h2.shouldComponentUpdate != null && h2.shouldComponentUpdate(m2, h2.__s, x2) === false || u2.__v === i2.__v) { | ||
h2.props = m2, h2.state = h2.__s, u2.__v !== i2.__v && (h2.__d = false), h2.__v = u2, u2.__e = i2.__e, u2.__k = i2.__k, u2.__k.forEach(function(n3) { | ||
n3 && (n3.__ = u2); | ||
}), h2.__h.length && f2.push(h2); | ||
break n; | ||
} | ||
h2.componentWillUpdate != null && h2.componentWillUpdate(m2, h2.__s, x2), h2.componentDidUpdate != null && h2.__h.push(function() { | ||
h2.componentDidUpdate(y2, p2, k2); | ||
}); | ||
} | ||
h2.context = x2, h2.props = m2, h2.state = h2.__s, (s2 = l.__r) && s2(u2), h2.__d = false, h2.__v = u2, h2.__P = n2, s2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s, h2.getChildContext != null && (t2 = a$1(a$1({}, t2), h2.getChildContext())), v2 || h2.getSnapshotBeforeUpdate == null || (k2 = h2.getSnapshotBeforeUpdate(y2, p2)), A = s2 != null && s2.type === d && s2.key == null ? s2.props.children : s2, w$1(n2, Array.isArray(A) ? A : [A], u2, i2, t2, o2, r2, f2, e2, c2), h2.base = u2.__e, u2.__h = null, h2.__h.length && f2.push(h2), b2 && (h2.__E = h2.__ = null), h2.__e = false; | ||
} else | ||
r2 == null && u2.__v === i2.__v ? (u2.__k = i2.__k, u2.__e = i2.__e) : u2.__e = L(i2.__e, u2, i2, t2, o2, r2, f2, c2); | ||
(s2 = l.diffed) && s2(u2); | ||
} catch (n3) { | ||
u2.__v = null, (c2 || r2 != null) && (u2.__e = e2, u2.__h = !!c2, r2[r2.indexOf(e2)] = null), l.__e(n3, u2, i2); | ||
} | ||
} | ||
@keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
} | ||
function z(n2, u2) { | ||
l.__c && l.__c(u2, n2), n2.some(function(u3) { | ||
try { | ||
n2 = u3.__h, u3.__h = [], n2.some(function(n3) { | ||
n3.call(u3); | ||
}); | ||
} catch (n3) { | ||
l.__e(n3, u3.__v); | ||
} | ||
}); | ||
} | ||
@-webkit-keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
function L(l2, u2, i2, t2, o2, r2, f2, c2) { | ||
var s2, a2, v2, y2 = i2.props, p2 = u2.props, d2 = u2.type, _2 = 0; | ||
if (d2 === "svg" && (o2 = true), r2 != null) { | ||
for (; _2 < r2.length; _2++) | ||
if ((s2 = r2[_2]) && (s2 === l2 || (d2 ? s2.localName == d2 : s2.nodeType == 3))) { | ||
l2 = s2, r2[_2] = null; | ||
break; | ||
} | ||
} | ||
} | ||
@keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
if (l2 == null) { | ||
if (d2 === null) | ||
return document.createTextNode(p2); | ||
l2 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p2.is && p2), r2 = null, c2 = false; | ||
} | ||
} | ||
@-webkit-keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
if (d2 === null) | ||
y2 === p2 || c2 && l2.data === p2 || (l2.data = p2); | ||
else { | ||
if (r2 = r2 && n.call(l2.childNodes), a2 = (y2 = i2.props || e$1).dangerouslySetInnerHTML, v2 = p2.dangerouslySetInnerHTML, !c2) { | ||
if (r2 != null) | ||
for (y2 = {}, _2 = 0; _2 < l2.attributes.length; _2++) | ||
y2[l2.attributes[_2].name] = l2.attributes[_2].value; | ||
(v2 || a2) && (v2 && (a2 && v2.__html == a2.__html || v2.__html === l2.innerHTML) || (l2.innerHTML = v2 && v2.__html || "")); | ||
} | ||
if (C(l2, p2, y2, o2, c2), v2) | ||
u2.__k = []; | ||
else if (_2 = u2.props.children, w$1(l2, Array.isArray(_2) ? _2 : [_2], u2, i2, t2, o2 && d2 !== "foreignObject", r2, f2, r2 ? r2[0] : i2.__k && k$1(i2, 0), c2), r2 != null) | ||
for (_2 = r2.length; _2--; ) | ||
r2[_2] != null && h(r2[_2]); | ||
c2 || ("value" in p2 && (_2 = p2.value) !== void 0 && (_2 !== l2.value || d2 === "progress" && !_2) && H(l2, "value", _2, y2.value, false), "checked" in p2 && (_2 = p2.checked) !== void 0 && _2 !== l2.checked && H(l2, "checked", _2, y2.checked, false)); | ||
} | ||
return l2; | ||
} | ||
@keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
function M(n2, u2, i2) { | ||
try { | ||
typeof n2 == "function" ? n2(u2) : n2.current = u2; | ||
} catch (n3) { | ||
l.__e(n3, i2); | ||
} | ||
} | ||
@-webkit-keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
function N(n2, u2, i2) { | ||
var t2, o2; | ||
if (l.unmount && l.unmount(n2), (t2 = n2.ref) && (t2.current && t2.current !== n2.__e || M(t2, null, u2)), (t2 = n2.__c) != null) { | ||
if (t2.componentWillUnmount) | ||
try { | ||
t2.componentWillUnmount(); | ||
} catch (n3) { | ||
l.__e(n3, u2); | ||
} | ||
t2.base = t2.__P = null; | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
if (t2 = n2.__k) | ||
for (o2 = 0; o2 < t2.length; o2++) | ||
t2[o2] && N(t2[o2], u2, typeof n2.type != "function"); | ||
i2 || n2.__e == null || h(n2.__e), n2.__e = n2.__d = void 0; | ||
} | ||
@keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
function O(n2, l2, u2) { | ||
return this.constructor(n2, u2); | ||
} | ||
.fn-flex-col{ | ||
flex-direction: column; | ||
function S(u2, i2, t2) { | ||
var o2, r2, f2; | ||
l.__ && l.__(u2, i2), r2 = (o2 = typeof t2 == "function") ? null : t2 && t2.__k || i2.__k, f2 = [], j$1(i2, u2 = (!o2 && t2 || i2).__k = v$1(d, null, [u2]), r2 || e$1, e$1, i2.ownerSVGElement !== void 0, !o2 && t2 ? [t2] : r2 ? null : i2.firstChild ? n.call(i2.childNodes) : null, f2, !o2 && t2 ? t2 : r2 ? r2.__e : i2.firstChild, o2), z(f2, u2); | ||
} | ||
.fn-items-center{ | ||
align-items: center; | ||
n = c$1.slice, l = { __e: function(n2, l2) { | ||
for (var u2, i2, t2; l2 = l2.__; ) | ||
if ((u2 = l2.__c) && !u2.__) | ||
try { | ||
if ((i2 = u2.constructor) && i2.getDerivedStateFromError != null && (u2.setState(i2.getDerivedStateFromError(n2)), t2 = u2.__d), u2.componentDidCatch != null && (u2.componentDidCatch(n2), t2 = u2.__d), t2) | ||
return u2.__E = u2; | ||
} catch (l3) { | ||
n2 = l3; | ||
} | ||
throw n2; | ||
} }, u$1 = 0, _.prototype.setState = function(n2, l2) { | ||
var u2; | ||
u2 = this.__s != null && this.__s !== this.state ? this.__s : this.__s = a$1({}, this.state), typeof n2 == "function" && (n2 = n2(a$1({}, u2), this.props)), n2 && a$1(u2, n2), n2 != null && this.__v && (l2 && this.__h.push(l2), m$1(this)); | ||
}, _.prototype.forceUpdate = function(n2) { | ||
this.__v && (this.__e = true, n2 && this.__h.push(n2), m$1(this)); | ||
}, _.prototype.render = d, t$1 = [], o$1 = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, g$1.__r = 0; | ||
var index = ""; | ||
var t, u, r, o = 0, i = [], c = l.__b, f = l.__r, e = l.diffed, a = l.__c, v = l.unmount; | ||
function m(t2, r2) { | ||
l.__h && l.__h(u, t2, o || r2), o = 0; | ||
var i2 = u.__H || (u.__H = { __: [], __h: [] }); | ||
return t2 >= i2.__.length && i2.__.push({}), i2.__[t2]; | ||
} | ||
.fn-justify-between{ | ||
justify-content: space-between; | ||
function p(n2, r2, o2) { | ||
var i2 = m(t++, 2); | ||
return i2.t = n2, i2.__c || (i2.__ = [o2 ? o2(r2) : w(void 0, r2), function(n3) { | ||
var t2 = i2.t(i2.__[0], n3); | ||
i2.__[0] !== t2 && (i2.__ = [t2, i2.__[1]], i2.__c.setState({})); | ||
}], i2.__c = u), i2.__; | ||
} | ||
.fn-gap-2{ | ||
gap: 0.5rem; | ||
function y(r2, o2) { | ||
var i2 = m(t++, 3); | ||
!l.__s && k(i2.__H, o2) && (i2.__ = r2, i2.__H = o2, u.__H.__h.push(i2)); | ||
} | ||
.fn-gap-4{ | ||
gap: 1rem; | ||
function x() { | ||
i.forEach(function(t2) { | ||
if (t2.__P) | ||
try { | ||
t2.__H.__h.forEach(g), t2.__H.__h.forEach(j), t2.__H.__h = []; | ||
} catch (u2) { | ||
t2.__H.__h = [], l.__e(u2, t2.__v); | ||
} | ||
}), i = []; | ||
} | ||
.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)); | ||
l.__b = function(n2) { | ||
u = null, c && c(n2); | ||
}, l.__r = function(n2) { | ||
f && f(n2), t = 0; | ||
var r2 = (u = n2.__c).__H; | ||
r2 && (r2.__h.forEach(g), r2.__h.forEach(j), r2.__h = []); | ||
}, l.diffed = function(t2) { | ||
e && e(t2); | ||
var o2 = t2.__c; | ||
o2 && o2.__H && o2.__H.__h.length && (i.push(o2) !== 1 && r === l.requestAnimationFrame || ((r = l.requestAnimationFrame) || function(n2) { | ||
var t3, u2 = function() { | ||
clearTimeout(r2), b && cancelAnimationFrame(t3), setTimeout(n2); | ||
}, r2 = setTimeout(u2, 100); | ||
b && (t3 = requestAnimationFrame(u2)); | ||
})(x)), u = void 0; | ||
}, l.__c = function(t2, u2) { | ||
u2.some(function(t3) { | ||
try { | ||
t3.__h.forEach(g), t3.__h = t3.__h.filter(function(n2) { | ||
return !n2.__ || j(n2); | ||
}); | ||
} catch (r2) { | ||
u2.some(function(n2) { | ||
n2.__h && (n2.__h = []); | ||
}), u2 = [], l.__e(r2, t3.__v); | ||
} | ||
}), a && a(t2, u2); | ||
}, l.unmount = function(t2) { | ||
v && v(t2); | ||
var u2 = t2.__c; | ||
if (u2 && u2.__H) | ||
try { | ||
u2.__H.__.forEach(g); | ||
} catch (t3) { | ||
l.__e(t3, u2.__v); | ||
} | ||
}; | ||
var b = typeof requestAnimationFrame == "function"; | ||
function g(n2) { | ||
var t2 = u; | ||
typeof n2.__c == "function" && n2.__c(), u = t2; | ||
} | ||
.fn-divide-gray-200 > :not([hidden]) ~ :not([hidden]){ | ||
--tw-divide-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-divide-opacity)); | ||
function j(n2) { | ||
var t2 = u; | ||
n2.__c = n2.__(), u = t2; | ||
} | ||
.fn-truncate{ | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
function k(n2, t2) { | ||
return !n2 || n2.length !== t2.length || t2.some(function(t3, u2) { | ||
return t3 !== n2[u2]; | ||
}); | ||
} | ||
.fn-rounded{ | ||
border-radius: 0.25rem; | ||
function w(n2, t2) { | ||
return typeof t2 == "function" ? t2(n2) : t2; | ||
} | ||
.fn-rounded-md{ | ||
border-radius: 0.375rem; | ||
var ActionTypes; | ||
(function(ActionTypes2) { | ||
ActionTypes2["UPVOTE"] = "UPVOTE"; | ||
ActionTypes2["FEATURE_REQUESTS_LOADED"] = "FEATURE_REQUESTS_LOADED"; | ||
ActionTypes2["HANDLE_ERROR"] = "HANDLE_ERROR"; | ||
})(ActionTypes || (ActionTypes = {})); | ||
const initialState = { | ||
data: {}, | ||
meta: { | ||
from: 0, | ||
to: 0, | ||
total: 0 | ||
}, | ||
links: { | ||
prev: null, | ||
next: null | ||
} | ||
}; | ||
const reducer = (state, action) => { | ||
console.log(action); | ||
switch (action.type) { | ||
case ActionTypes.UPVOTE: | ||
return __spreadProps(__spreadValues({}, state), { | ||
data: __spreadProps(__spreadValues({}, state.data), { | ||
[action.id]: __spreadProps(__spreadValues({}, state.data[action.id]), { | ||
votes: state.data[action.id].votes_count + 1 | ||
}) | ||
}) | ||
}); | ||
case ActionTypes.FEATURE_REQUESTS_LOADED: | ||
return __spreadProps(__spreadValues({}, state), { | ||
data: action.response.data, | ||
meta: action.response.meta, | ||
links: action.response.links | ||
}); | ||
case ActionTypes.HANDLE_ERROR: | ||
return __spreadProps(__spreadValues({}, state), { | ||
error: action.error | ||
}); | ||
default: { | ||
throw new Error("Unexpected action: " + JSON.stringify(action)); | ||
} | ||
} | ||
}; | ||
function FeatureRequest(props) { | ||
const { featureRequest } = props; | ||
return /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4" | ||
}, /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-flex-col fn-w-10 fn-items-center" | ||
}, /* @__PURE__ */ v$1("button", { | ||
type: "button", | ||
className: "fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm" | ||
}, /* @__PURE__ */ v$1("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
viewBox: "0 0 20 20", | ||
fill: "currentColor", | ||
className: "fn-h-12 fn-w-12 fn--m-2", | ||
"aria-hidden": "true" | ||
}, /* @__PURE__ */ v$1("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" | ||
}))), /* @__PURE__ */ v$1("div", { | ||
className: "fn-text-gray-500" | ||
})), /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate" | ||
}, /* @__PURE__ */ v$1("div", { | ||
className: "fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate" | ||
}, featureRequest.title), /* @__PURE__ */ v$1("div", { | ||
className: "fn-text-sm fn-text-gray-700 fn-truncate" | ||
}, featureRequest.description), /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-justify-between fn-mt-2" | ||
}, /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-gap-2" | ||
}, /* @__PURE__ */ v$1("span", { | ||
className: "fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 " | ||
}, "boombox")), /* @__PURE__ */ v$1("div", { | ||
className: "fn-flex fn-text-gray-500 fn-text-sm" | ||
}, featureRequest.votes_count, /* @__PURE__ */ v$1("svg", { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
fill: "none", | ||
viewBox: "0 0 24 24", | ||
stroke: "currentColor", | ||
className: "fn-w-5 fn-h-5" | ||
}, /* @__PURE__ */ v$1("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" | ||
})))))); | ||
} | ||
.fn-rounded-full{ | ||
border-radius: 9999px; | ||
function Widget(props) { | ||
const { | ||
options: { workspace, projects } | ||
} = props; | ||
const [state, dispatch] = p(reducer, initialState); | ||
const { error, data, meta, links } = state; | ||
y(() => { | ||
const loadFeatureRequests = () => __async(this, null, function* () { | ||
const response = yield fetch(`https://api.feature.ninja/workspaces/${workspace}/feature-requests${projects ? `?projects=${projects.join(",")}` : ""}`); | ||
const responseJson = yield response.json(); | ||
if (response.ok) { | ||
dispatch({ | ||
type: ActionTypes.FEATURE_REQUESTS_LOADED, | ||
response: responseJson | ||
}); | ||
} else { | ||
const error2 = yield response.text(); | ||
console.error("Error loading feature requests, response was:", error2); | ||
dispatch({ | ||
type: ActionTypes.HANDLE_ERROR, | ||
error: new Error("Oops, something went wrong when loading the feature requests...") | ||
}); | ||
} | ||
}); | ||
loadFeatureRequests(); | ||
}, [workspace, projects]); | ||
return /* @__PURE__ */ v$1("div", { | ||
className: "fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8" | ||
}, error && /* @__PURE__ */ v$1("div", { | ||
className: "fn-bg-red-400" | ||
}, error.message), /* @__PURE__ */ v$1("div", { | ||
className: "fn-py-4 fn-px-4" | ||
}, /* @__PURE__ */ v$1("span", { | ||
className: "fn-sr-only" | ||
}, "Search..."), /* @__PURE__ */ v$1("input", { | ||
type: "text", | ||
className: "fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ", | ||
placeholder: "Search..." | ||
})), /* @__PURE__ */ v$1("div", { | ||
className: "fn-divide-y fn-divide-gray-200 fn-mt-4" | ||
}, Object.values(data).map((featureRequest) => /* @__PURE__ */ v$1(FeatureRequest, { | ||
key: featureRequest.id, | ||
featureRequest | ||
}))), /* @__PURE__ */ v$1("nav", { | ||
className: "fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6", | ||
"aria-label": "Pagination" | ||
}, /* @__PURE__ */ v$1("div", { | ||
className: "fn-hidden fn-sm:block" | ||
}, /* @__PURE__ */ v$1("p", { | ||
className: "fn-text-sm fn-text-gray-700" | ||
}, "Showing ", /* @__PURE__ */ v$1("span", { | ||
className: "fn-font-medium" | ||
}, meta.from), " to", " ", /* @__PURE__ */ v$1("span", { | ||
className: "fn-font-medium" | ||
}, meta.to), " of", " ", /* @__PURE__ */ v$1("span", { | ||
className: "fn-font-medium" | ||
}, meta.total), " results")), /* @__PURE__ */ v$1("div", { | ||
className: "fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end" | ||
}, /* @__PURE__ */ v$1("button", { | ||
className: "fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25", | ||
disabled: links.prev === null | ||
}, "Previous"), /* @__PURE__ */ v$1("button", { | ||
className: "fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25", | ||
disabled: links.next === null | ||
}, "Next")))); | ||
} | ||
.fn-border{ | ||
border-width: 1px; | ||
const currentScriptEl = document.currentScript; | ||
function featureNinja(options) { | ||
if (!options.workspace) { | ||
throw new Error("Feature Ninja widget: The `workspace` option is required!"); | ||
} | ||
window.addEventListener("DOMContentLoaded", () => { | ||
var _a; | ||
const defaultOptions = { | ||
elementId: "feature-ninja-widget" | ||
}; | ||
const allOptions = __spreadValues(__spreadValues({}, defaultOptions), options); | ||
let rootEl = document.getElementById(allOptions.elementId); | ||
if (!rootEl) { | ||
rootEl = document.createElement("div"); | ||
rootEl.id = allOptions.elementId; | ||
if (currentScriptEl) { | ||
(_a = currentScriptEl.parentElement) == null ? void 0 : _a.insertBefore(rootEl, currentScriptEl); | ||
} else { | ||
document.body.appendChild(rootEl); | ||
} | ||
} | ||
S(/* @__PURE__ */ v$1(Widget, { | ||
options: allOptions | ||
}), rootEl); | ||
}); | ||
} | ||
.fn-border-t{ | ||
border-top-width: 1px; | ||
} | ||
.fn-border-gray-200{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.fn-border-gray-300{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(209, 213, 219, var(--tw-border-opacity)); | ||
} | ||
.fn-bg-white{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(255, 255, 255, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-red-400{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(248, 113, 113, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-yellow-100{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(254, 243, 199, var(--tw-bg-opacity)); | ||
} | ||
.fn-p-4{ | ||
padding: 1rem; | ||
} | ||
.fn-px-2{ | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
.fn-px-4{ | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
} | ||
.fn-py-0{ | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
.fn-py-2{ | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
.fn-py-3{ | ||
padding-top: 0.75rem; | ||
padding-bottom: 0.75rem; | ||
} | ||
.fn-py-4{ | ||
padding-top: 1rem; | ||
padding-bottom: 1rem; | ||
} | ||
.fn-py-6{ | ||
padding-top: 1.5rem; | ||
padding-bottom: 1.5rem; | ||
} | ||
.fn-py-0\.5{ | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
.fn-text-xs{ | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
} | ||
.fn-text-sm{ | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.fn-font-medium{ | ||
font-weight: 500; | ||
} | ||
.fn-font-semibold{ | ||
font-weight: 600; | ||
} | ||
.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-text-gray-700{ | ||
--tw-text-opacity: 1; | ||
color: rgba(55, 65, 81, var(--tw-text-opacity)); | ||
} | ||
.fn-text-yellow-800{ | ||
--tw-text-opacity: 1; | ||
color: rgba(146, 64, 14, var(--tw-text-opacity)); | ||
} | ||
*, ::before, ::after{ | ||
--tw-shadow: 0 0 #0000; | ||
} | ||
.fn-shadow-sm{ | ||
--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | ||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); | ||
} | ||
*, ::before, ::after{ | ||
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); | ||
--tw-ring-offset-width: 0px; | ||
--tw-ring-offset-color: #fff; | ||
--tw-ring-color: rgba(59, 130, 246, 0.5); | ||
--tw-ring-offset-shadow: 0 0 #0000; | ||
--tw-ring-shadow: 0 0 #0000; | ||
} | ||
@media (min-width: 640px){ | ||
} | ||
@media (min-width: 768px){ | ||
} | ||
@media (min-width: 1024px){ | ||
} | ||
@media (min-width: 1280px){ | ||
} | ||
@media (min-width: 1536px){ | ||
} | ||
`) })();export{se as default}; | ||
window.featureNinja = featureNinja; | ||
(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]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}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:Inter var,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{cursor:pointer}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}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.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-relative{position:relative}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mt-4{margin-top:1rem}.fn-ml-3{margin-left:.75rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-5{height:1.25rem}.fn-h-12{height:3rem}.fn-w-5{width:1.25rem}.fn-w-10{width:2.5rem}.fn-w-12{width:3rem}.fn-w-full{width:100%}.fn-max-w-4xl{max-width:56rem}.fn-flex-grow{flex-grow:1}@-webkit-keyframes fn-spin{to{transform:rotate(360deg)}}@keyframes fn-spin{to{transform:rotate(360deg)}}@-webkit-keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes fn-pulse{50%{opacity:.5}}@keyframes fn-pulse{50%{opacity:.5}}@-webkit-keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.fn-flex-col{flex-direction:column}.fn-items-center{align-items: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-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded{border-radius:.25rem}.fn-rounded-md{border-radius:.375rem}.fn-rounded-full{border-radius:9999px}.fn-border{border-width:1px}.fn-border-t{border-top-width:1px}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-red-400{--tw-bg-opacity: 1;background-color:rgba(248,113,113,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-p-4{padding:1rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-py-4{padding-top:1rem;padding-bottom:1rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-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-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}.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)}*,:before,:after{--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} | ||
`) })(); | ||
export { featureNinja as default }; |
@@ -1,884 +0,2 @@ | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,t)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,__spreadValues=(e,n)=>{for(var t in n||(n={}))__hasOwnProp.call(n,t)&&__defNormalProp(e,t,n[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(n))__propIsEnum.call(n,t)&&__defNormalProp(e,t,n[t]);return e},__spreadProps=(e,n)=>__defProps(e,__getOwnPropDescs(n)),__async=(e,n,t)=>new Promise(((_,r)=>{var o=e=>{try{s(t.next(e))}catch(n){r(n)}},l=e=>{try{s(t.throw(e))}catch(n){r(n)}},s=e=>e.done?_(e.value):Promise.resolve(e.value).then(o,l);s((t=t.apply(e,n)).next())})),FeatureNinjaWidget=function(){"use strict";var e,n,t,_,r,o,l={},s=[],i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function u(n,t,_){var r,o,l,s={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===s[l]&&(s[l]=n.defaultProps[l]);return c(n,s,r,o,null)}function c(e,_,r,o,l){var s={type:e,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null!=n.vnode&&n.vnode(s),s}function p(e){return e.children}function d(e,n){this.props=e,this.context=n}function h(e,n){if(null==n)return e.__?h(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?h(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function v(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||r)(y)}function y(){for(var e;y.__r=_.length;)e=_.sort((function(e,n){return e.__v.__b-n.__v.__b})),_=[],e.some((function(e){var n,t,_,r,o,l;e.__d&&(o=(r=(n=e).__v).__e,(l=n.__P)&&(t=[],(_=f({},r)).__v=r.__v+1,P(l,r,_,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?h(r):o,r.__h),S(t,r),r.__e!=o&&m(r)))}))}function g(e,n,t,_,r,o,i,f,a,u){var d,m,v,y,g,w,k,E=_&&_.__k||s,N=E.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(y=t.__k[d]=null==(y=n[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?c(null,y,null,null,y):Array.isArray(y)?c(p,{children:y},null,null,null):y.__b>0?c(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(v=E[d])||v&&y.key==v.key&&y.type===v.type)E[d]=void 0;else for(m=0;m<N;m++){if((v=E[m])&&y.key==v.key&&y.type===v.type){E[m]=void 0;break}v=null}P(e,y,v=v||l,r,o,i,f,a,u),g=y.__e,(m=y.ref)&&v.ref!=m&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(m,y.__c||g,y)),null!=g?(null==w&&(w=g),"function"==typeof y.type&&null!=y.__k&&y.__k===v.__k?y.__d=a=b(y,a,e):a=x(e,y,v,E,g,a),u||"option"!==t.type?"function"==typeof t.type&&(t.__d=a):e.value=""):a&&v.__e==a&&a.parentNode!=e&&(a=h(v))}for(t.__e=w,d=N;d--;)null!=E[d]&&("function"==typeof t.type&&null!=E[d].__e&&E[d].__e==t.__d&&(t.__d=h(_,d+1)),D(E[d],E[d]));if(k)for(d=0;d<k.length;d++)O(k[d],k[++d],k[++d])}function b(e,n,t){var _,r;for(_=0;_<e.__k.length;_++)(r=e.__k[_])&&(r.__=e,n="function"==typeof r.type?b(r,n,t):x(t,r,r,e.__k,r.__e,n));return n}function x(e,n,t,_,r,o){var l,s,i;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),l=null;else{for(s=o,i=0;(s=s.nextSibling)&&i<_.length;i+=2)if(s==r)break e;e.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function w(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||i.test(n)?t:t+"px"}function k(e,n,t,_,r){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||w(e.style,n,"");if(t)for(n in t)_&&t[n]===_[n]||w(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?N:E,o):e.removeEventListener(n,o?N:E,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(l){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function N(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(t,_,r,o,s,i,u,c,m){var v,y,b,x,w,E,N,P,S,O,D,T=_.type;if(void 0!==_.constructor)return null;null!=r.__h&&(m=r.__h,c=_.__e=r.__e,_.__h=null,i=[c]),(v=n.__b)&&v(_);try{e:if("function"==typeof T){if(P=_.props,S=(v=T.contextType)&&o[v.__c],O=v?S?S.props.value:v.__:o,r.__c?N=(y=_.__c=r.__c).__=y.__E:("prototype"in T&&T.prototype.render?_.__c=y=new T(P,O):(_.__c=y=new d(P,O),y.constructor=T,y.render=R),S&&S.sub(y),y.props=P,y.state||(y.state={}),y.context=O,y.__n=o,b=y.__d=!0,y.__h=[]),null==y.__s&&(y.__s=y.state),null!=T.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=f({},y.__s)),f(y.__s,T.getDerivedStateFromProps(P,y.__s))),x=y.props,w=y.state,b)null==T.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(null==T.getDerivedStateFromProps&&P!==x&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(P,O),!y.__e&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(P,y.__s,O)||_.__v===r.__v){y.props=P,y.state=y.__s,_.__v!==r.__v&&(y.__d=!1),y.__v=_,_.__e=r.__e,_.__k=r.__k,_.__k.forEach((function(e){e&&(e.__=_)})),y.__h.length&&u.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(P,y.__s,O),null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(x,w,E)}))}y.context=O,y.props=P,y.state=y.__s,(v=n.__r)&&v(_),y.__d=!1,y.__v=_,y.__P=t,v=y.render(y.props,y.state,y.context),y.state=y.__s,null!=y.getChildContext&&(o=f(f({},o),y.getChildContext())),b||null==y.getSnapshotBeforeUpdate||(E=y.getSnapshotBeforeUpdate(x,w)),D=null!=v&&v.type===p&&null==v.key?v.props.children:v,g(t,Array.isArray(D)?D:[D],_,r,o,s,i,u,c,m),y.base=_.__e,_.__h=null,y.__h.length&&u.push(y),N&&(y.__E=y.__=null),y.__e=!1}else null==i&&_.__v===r.__v?(_.__k=r.__k,_.__e=r.__e):_.__e=function(n,t,_,r,o,s,i,f){var u,c,p,d=_.props,m=t.props,v=t.type,y=0;if("svg"===v&&(o=!0),null!=s)for(;y<s.length;y++)if((u=s[y])&&(u===n||(v?u.localName==v:3==u.nodeType))){n=u,s[y]=null;break}if(null==n){if(null===v)return document.createTextNode(m);n=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),s=null,f=!1}if(null===v)d===m||f&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),c=(d=_.props||l).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!f){if(null!=s)for(d={},y=0;y<n.attributes.length;y++)d[n.attributes[y].name]=n.attributes[y].value;(p||c)&&(p&&(c&&p.__html==c.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,t,_,r){var o;for(o in t)"children"===o||"key"===o||o in n||k(e,o,null,t[o],_);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||k(e,o,n[o],t[o],_)}(n,m,d,o,f),p)t.__k=[];else if(y=t.props.children,g(n,Array.isArray(y)?y:[y],t,_,r,o&&"foreignObject"!==v,s,i,s?s[0]:_.__k&&h(_,0),f),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);f||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===v&&!y)&&k(n,"value",y,d.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&k(n,"checked",y,d.checked,!1))}return n}(r.__e,_,r,o,s,i,u,m);(v=n.diffed)&&v(_)}catch(A){_.__v=null,(m||null!=i)&&(_.__e=c,_.__h=!!m,i[i.indexOf(c)]=null),n.__e(A,_,r)}}function S(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(_){n.__e(_,t.__v)}}))}function O(e,t,_){try{"function"==typeof e?e(t):e.current=t}catch(r){n.__e(r,_)}}function D(e,t,_){var r,o;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){n.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&D(r[o],t,"function"!=typeof e.type);_||null==e.__e||a(e.__e),e.__e=e.__d=void 0}function R(e,n,t){return this.constructor(e,t)}e=s.slice,n={__e:function(e,n){for(var t,_,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((_=t.constructor)&&null!=_.getDerivedStateFromError&&(t.setState(_.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(o){e=o}throw e}},t=0,d.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},t),this.props)),e&&f(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),v(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v(this))},d.prototype.render=p,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,y.__r=0;var T,A,H,j=0,L=[],U=n.__b,C=n.__r,F=n.diffed,M=n.__c,V=n.unmount;function I(e,t){n.__h&&n.__h(A,e,j||t),j=0;var _=A.__H||(A.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function q(){L.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),L=[]}n.__b=function(e){A=null,U&&U(e)},n.__r=function(e){C&&C(e),T=0;var n=(A=e.__c).__H;n&&(n.__h.forEach(Q),n.__h.forEach(z),n.__h=[])},n.diffed=function(e){F&&F(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==L.push(t)&&H===n.requestAnimationFrame||((H=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),$&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);$&&(n=requestAnimationFrame(t))})(q)),A=void 0},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Q),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(_,e.__v)}})),M&&M(e,t)},n.unmount=function(e){V&&V(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Q)}catch(_){n.__e(_,t.__v)}};var W,B,$="function"==typeof requestAnimationFrame;function Q(e){var n=A;"function"==typeof e.__c&&e.__c(),A=n}function z(e){var n=A;e.__c=e.__(),A=n}function G(e,n){return"function"==typeof n?n(e):n}(B=W||(W={})).UPVOTE="UPVOTE",B.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",B.HANDLE_ERROR="HANDLE_ERROR";const J={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},K=(e,n)=>{switch(console.log(n),n.type){case W.UPVOTE:return __spreadProps(__spreadValues({},e),{data:__spreadProps(__spreadValues({},e.data),{[n.id]:__spreadProps(__spreadValues({},e.data[n.id]),{votes:e.data[n.id].votes_count+1})})});case W.FEATURE_REQUESTS_LOADED:return __spreadProps(__spreadValues({},e),{data:n.response.data,meta:n.response.meta,links:n.response.links});case W.HANDLE_ERROR:return __spreadProps(__spreadValues({},e),{error:n.error});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};function X(e){const{featureRequest:n}=e;return u("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},u("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},u("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},u("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"}))),u("div",{className:"fn-text-gray-500"})),u("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},u("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},n.title),u("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},n.description),u("div",{className:"fn-flex fn-justify-between fn-mt-2"},u("div",{className:"fn-flex fn-gap-2"},u("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),u("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},n.votes_count,u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},u("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"}))))))}function Y(e){const{options:{workspace:t,projects:_}}=e,[r,o]=(l=K,s=J,(f=I(T++,2)).t=l,f.__c||(f.__=[i?i(s):G(void 0,s),function(e){var n=f.t(f.__[0],e);f.__[0]!==n&&(f.__=[n,f.__[1]],f.__c.setState({}))}],f.__c=A),f.__);var l,s,i,f;const{error:a,data:c,meta:p,links:d}=r;return function(e,t){var _,r,o=I(T++,3);!n.__s&&(_=o.__H,r=t,!_||_.length!==r.length||r.some((function(e,n){return e!==_[n]})))&&(o.__=e,o.__H=t,A.__H.__h.push(o))}((()=>{(()=>{__async(this,null,(function*(){const e=yield fetch(`https://api.feature.ninja/workspaces/${t}/feature-requests${_?`?projects=${_.join(",")}`:""}`),n=yield e.json();if(e.ok)o({type:W.FEATURE_REQUESTS_LOADED,response:n});else{const n=yield e.text();console.error("Error loading feature requests, response was:",n),o({type:W.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))})()}),[t,_]),u("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},a&&u("div",{className:"fn-bg-red-400"},a.message),u("div",{className:"fn-py-4 fn-px-4"},u("span",{className:"fn-sr-only"},"Search..."),u("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),u("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(c).map((e=>u(X,{key:e.id,featureRequest:e})))),u("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},u("div",{className:"fn-hidden fn-sm:block"},u("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",u("span",{className:"fn-font-medium"},p.from)," to"," ",u("span",{className:"fn-font-medium"},p.to)," of"," ",u("span",{className:"fn-font-medium"},p.total)," results")),u("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},u("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.prev},"Previous"),u("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.next},"Next"))))}const Z=document.currentScript;function ee(t){if(!t.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",(()=>{var _;const r=__spreadValues(__spreadValues({},{elementId:"feature-ninja-widget"}),t);let o=document.getElementById(r.elementId);var s,i,f,a,c,d;o||(o=document.createElement("div"),o.id=r.elementId,Z?null==(_=Z.parentElement)||_.insertBefore(o,Z):document.body.appendChild(o)),s=u(Y,{options:r}),i=o,n.__&&n.__(s,i),c=(a="function"==typeof f)?null:f&&f.__k||i.__k,d=[],P(i,s=(!a&&f||i).__k=u(p,null,[s]),c||l,l,void 0!==i.ownerSVGElement,!a&&f?[f]:c?null:i.firstChild?e.call(i.childNodes):null,d,!a&&f?f:c?c.__e:i.firstChild,a),S(d,s)}))}return window.featureNinja=ee,(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 url('https://rsms.me/inter/inter.css'); | ||
/*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */ | ||
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | ||
/* | ||
Document | ||
======== | ||
*/ | ||
/** | ||
Use a better box model (opinionated). | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; | ||
} | ||
/** | ||
Use a more readable tab size (opinionated). | ||
*/ | ||
html { | ||
-moz-tab-size: 4; | ||
-o-tab-size: 4; | ||
tab-size: 4; | ||
} | ||
/** | ||
1. Correct the line height in all browsers. | ||
2. Prevent adjustments of font size after orientation changes in iOS. | ||
*/ | ||
html { | ||
line-height: 1.15; /* 1 */ | ||
-webkit-text-size-adjust: 100%; /* 2 */ | ||
} | ||
/* | ||
Sections | ||
======== | ||
*/ | ||
/** | ||
Remove the margin in all browsers. | ||
*/ | ||
body { | ||
margin: 0; | ||
} | ||
/** | ||
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
*/ | ||
body { | ||
font-family: | ||
system-ui, | ||
-apple-system, /* Firefox supports this but not yet system-ui */ | ||
'Segoe UI', | ||
Roboto, | ||
Helvetica, | ||
Arial, | ||
sans-serif, | ||
'Apple Color Emoji', | ||
'Segoe UI Emoji'; | ||
} | ||
/* | ||
Grouping content | ||
================ | ||
*/ | ||
/** | ||
1. Add the correct height in Firefox. | ||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) | ||
*/ | ||
hr { | ||
height: 0; /* 1 */ | ||
color: inherit; /* 2 */ | ||
} | ||
/* | ||
Text-level semantics | ||
==================== | ||
*/ | ||
/** | ||
Add the correct text decoration in Chrome, Edge, and Safari. | ||
*/ | ||
abbr[title] { | ||
-webkit-text-decoration: underline dotted; | ||
text-decoration: underline dotted; | ||
} | ||
/** | ||
Add the correct font weight in Edge and Safari. | ||
*/ | ||
b, | ||
strong { | ||
font-weight: bolder; | ||
} | ||
/** | ||
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
2. Correct the odd 'em' font sizing in all browsers. | ||
*/ | ||
code, | ||
kbd, | ||
samp, | ||
pre { | ||
font-family: | ||
ui-monospace, | ||
SFMono-Regular, | ||
Consolas, | ||
'Liberation Mono', | ||
Menlo, | ||
monospace; /* 1 */ | ||
font-size: 1em; /* 2 */ | ||
} | ||
/** | ||
Add the correct font size in all browsers. | ||
*/ | ||
small { | ||
font-size: 80%; | ||
} | ||
/** | ||
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. | ||
*/ | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
} | ||
sup { | ||
top: -0.5em; | ||
} | ||
/* | ||
Tabular data | ||
============ | ||
*/ | ||
/** | ||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) | ||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) | ||
*/ | ||
table { | ||
text-indent: 0; /* 1 */ | ||
border-color: inherit; /* 2 */ | ||
} | ||
/* | ||
Forms | ||
===== | ||
*/ | ||
/** | ||
1. Change the font styles in all browsers. | ||
2. Remove the margin in Firefox and Safari. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
font-family: inherit; /* 1 */ | ||
font-size: 100%; /* 1 */ | ||
line-height: 1.15; /* 1 */ | ||
margin: 0; /* 2 */ | ||
} | ||
/** | ||
Remove the inheritance of text transform in Edge and Firefox. | ||
1. Remove the inheritance of text transform in Firefox. | ||
*/ | ||
button, | ||
select { /* 1 */ | ||
text-transform: none; | ||
} | ||
/** | ||
Correct the inability to style clickable types in iOS and Safari. | ||
*/ | ||
button, | ||
[type='button'] { | ||
-webkit-appearance: button; | ||
} | ||
/** | ||
Remove the inner border and padding in Firefox. | ||
*/ | ||
/** | ||
Restore the focus styles unset by the previous rule. | ||
*/ | ||
/** | ||
Remove the additional ':invalid' styles in Firefox. | ||
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737 | ||
*/ | ||
/** | ||
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers. | ||
*/ | ||
legend { | ||
padding: 0; | ||
} | ||
/** | ||
Add the correct vertical alignment in Chrome and Firefox. | ||
*/ | ||
progress { | ||
vertical-align: baseline; | ||
} | ||
/** | ||
Correct the cursor style of increment and decrement buttons in Safari. | ||
*/ | ||
/** | ||
1. Correct the odd appearance in Chrome and Safari. | ||
2. Correct the outline style in Safari. | ||
*/ | ||
/** | ||
Remove the inner padding in Chrome and Safari on macOS. | ||
*/ | ||
/** | ||
1. Correct the inability to style clickable types in iOS and Safari. | ||
2. Change font properties to 'inherit' in Safari. | ||
*/ | ||
/* | ||
Interactive | ||
=========== | ||
*/ | ||
/* | ||
Add the correct display in Chrome and Safari. | ||
*/ | ||
summary { | ||
display: list-item; | ||
} | ||
/** | ||
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base | ||
* A thin layer on top of normalize.css that provides a starting point more | ||
* suitable for web applications. | ||
*/ | ||
/** | ||
* Removes the default spacing and border for appropriate elements. | ||
*/ | ||
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; | ||
} | ||
/** | ||
* Tailwind custom reset styles | ||
*/ | ||
/** | ||
* 1. Use the user's configured sans font-family (with Tailwind's default | ||
* sans-serif font stack as a fallback) as a sane default. | ||
* 2. Use Tailwind's default "normal" line-height so the user isn't forced | ||
* to override it to ensure consistency even when using the default theme. | ||
*/ | ||
html { | ||
font-family: Inter var, 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"; /* 1 */ | ||
line-height: 1.5; /* 2 */ | ||
} | ||
/** | ||
* Inherit font-family and line-height from html so users can set them as | ||
* a class directly on the html element. | ||
*/ | ||
body { | ||
font-family: inherit; | ||
line-height: inherit; | ||
} | ||
/** | ||
* 1. Prevent padding and border from affecting element width. | ||
* | ||
* We used to set this in the html element and inherit from | ||
* the parent element for everything else. This caused issues | ||
* in shadow-dom-enhanced elements like <details> where the content | ||
* is wrapped by a div with box-sizing set to content-box. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/4 | ||
* | ||
* | ||
* 2. Allow adding a border to an element by just adding a border-width. | ||
* | ||
* By default, the way the browser specifies that an element should have no | ||
* border is by setting it's border-style to none in the user-agent | ||
* stylesheet. | ||
* | ||
* In order to easily add borders to elements by just setting the border-width | ||
* property, we change the default border-style for all elements to solid, and | ||
* use border-width to hide them instead. This way our border utilities only | ||
* need to set the border-width property instead of the entire border | ||
* shorthand, making our border utilities much more straightforward to compose. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/pull/116 | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; /* 1 */ | ||
border-width: 0; /* 2 */ | ||
border-style: solid; /* 2 */ | ||
border-color: currentColor; /* 2 */ | ||
} | ||
/* | ||
* Ensure horizontal rules are visible by default | ||
*/ | ||
hr { | ||
border-top-width: 1px; | ||
} | ||
/** | ||
* Undo the border-style: none reset that Normalize applies to images so that | ||
* our border-{width} utilities have the expected effect. | ||
* | ||
* The Normalize reset is unnecessary for us since we default the border-width | ||
* to 0 on all elements. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/issues/362 | ||
*/ | ||
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 { | ||
cursor: pointer; | ||
} | ||
/** | ||
* Override legacy focus reset from Normalize with modern Firefox focus styles. | ||
* | ||
* This is actually an improvement over the new defaults in Firefox in our testing, | ||
* as it triggers the better focus styles even for links, which still use a dotted | ||
* outline in Firefox by default. | ||
*/ | ||
table { | ||
border-collapse: collapse; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-size: inherit; | ||
font-weight: inherit; | ||
} | ||
/** | ||
* Reset links to optimize for opt-in styling instead of | ||
* opt-out. | ||
*/ | ||
a { | ||
color: inherit; | ||
text-decoration: inherit; | ||
} | ||
/** | ||
* Reset form element properties that are easy to forget to | ||
* style explicitly so you don't inadvertently introduce | ||
* styles that deviate from your design system. These styles | ||
* supplement a partial reset that is already applied by | ||
* normalize.css. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
padding: 0; | ||
line-height: inherit; | ||
color: inherit; | ||
} | ||
/** | ||
* Use the configured 'mono' font family for elements that | ||
* are expected to be rendered with a monospace font, falling | ||
* back to the system monospace stack if there is no configured | ||
* 'mono' font family. | ||
*/ | ||
pre, | ||
code, | ||
kbd, | ||
samp { | ||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; | ||
} | ||
/** | ||
* 1. Make replaced elements display: block by default as that's | ||
* the behavior you want almost all of the time. Inspired by | ||
* CSS Remedy, with svg added as well. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
* | ||
* 2. Add vertical-align: middle to align replaced elements more | ||
* sensibly by default when overriding display by adding a | ||
* utility like inline. | ||
* | ||
* This can trigger a poorly considered linting error in some | ||
* tools but is included by design. | ||
* | ||
* https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210 | ||
*/ | ||
img, | ||
svg, | ||
video, | ||
canvas, | ||
audio, | ||
iframe, | ||
embed, | ||
object { | ||
display: block; /* 1 */ | ||
vertical-align: middle; /* 2 */ | ||
} | ||
/** | ||
* Constrain images and videos to the parent width and preserve | ||
* their intrinsic aspect ratio. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
*/ | ||
img, | ||
video { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
/** | ||
* Ensure the default browser behavior of the hidden attribute. | ||
*/ | ||
*, ::before, ::after{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.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-relative{ | ||
position: relative; | ||
} | ||
.fn--m-2{ | ||
margin: -0.5rem; | ||
} | ||
.fn-mx-auto{ | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
.fn-mt-2{ | ||
margin-top: 0.5rem; | ||
} | ||
.fn-mt-4{ | ||
margin-top: 1rem; | ||
} | ||
.fn-ml-3{ | ||
margin-left: 0.75rem; | ||
} | ||
.fn-block{ | ||
display: block; | ||
} | ||
.fn-flex{ | ||
display: flex; | ||
} | ||
.fn-inline-flex{ | ||
display: inline-flex; | ||
} | ||
.fn-hidden{ | ||
display: none; | ||
} | ||
.fn-h-5{ | ||
height: 1.25rem; | ||
} | ||
.fn-h-12{ | ||
height: 3rem; | ||
} | ||
.fn-w-5{ | ||
width: 1.25rem; | ||
} | ||
.fn-w-10{ | ||
width: 2.5rem; | ||
} | ||
.fn-w-12{ | ||
width: 3rem; | ||
} | ||
.fn-w-full{ | ||
width: 100%; | ||
} | ||
.fn-max-w-4xl{ | ||
max-width: 56rem; | ||
} | ||
.fn-flex-grow{ | ||
flex-grow: 1; | ||
} | ||
@-webkit-keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@-webkit-keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
} | ||
} | ||
@keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
} | ||
} | ||
@-webkit-keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
} | ||
} | ||
@keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
} | ||
} | ||
@-webkit-keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
} | ||
@keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
} | ||
.fn-flex-col{ | ||
flex-direction: column; | ||
} | ||
.fn-items-center{ | ||
align-items: center; | ||
} | ||
.fn-justify-between{ | ||
justify-content: space-between; | ||
} | ||
.fn-gap-2{ | ||
gap: 0.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-truncate{ | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
.fn-rounded{ | ||
border-radius: 0.25rem; | ||
} | ||
.fn-rounded-md{ | ||
border-radius: 0.375rem; | ||
} | ||
.fn-rounded-full{ | ||
border-radius: 9999px; | ||
} | ||
.fn-border{ | ||
border-width: 1px; | ||
} | ||
.fn-border-t{ | ||
border-top-width: 1px; | ||
} | ||
.fn-border-gray-200{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.fn-border-gray-300{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(209, 213, 219, var(--tw-border-opacity)); | ||
} | ||
.fn-bg-white{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(255, 255, 255, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-red-400{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(248, 113, 113, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-yellow-100{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(254, 243, 199, var(--tw-bg-opacity)); | ||
} | ||
.fn-p-4{ | ||
padding: 1rem; | ||
} | ||
.fn-px-2{ | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
.fn-px-4{ | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
} | ||
.fn-py-0{ | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
.fn-py-2{ | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
.fn-py-3{ | ||
padding-top: 0.75rem; | ||
padding-bottom: 0.75rem; | ||
} | ||
.fn-py-4{ | ||
padding-top: 1rem; | ||
padding-bottom: 1rem; | ||
} | ||
.fn-py-6{ | ||
padding-top: 1.5rem; | ||
padding-bottom: 1.5rem; | ||
} | ||
.fn-py-0\.5{ | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
.fn-text-xs{ | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
} | ||
.fn-text-sm{ | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.fn-font-medium{ | ||
font-weight: 500; | ||
} | ||
.fn-font-semibold{ | ||
font-weight: 600; | ||
} | ||
.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-text-gray-700{ | ||
--tw-text-opacity: 1; | ||
color: rgba(55, 65, 81, var(--tw-text-opacity)); | ||
} | ||
.fn-text-yellow-800{ | ||
--tw-text-opacity: 1; | ||
color: rgba(146, 64, 14, var(--tw-text-opacity)); | ||
} | ||
*, ::before, ::after{ | ||
--tw-shadow: 0 0 #0000; | ||
} | ||
.fn-shadow-sm{ | ||
--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | ||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); | ||
} | ||
*, ::before, ::after{ | ||
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); | ||
--tw-ring-offset-width: 0px; | ||
--tw-ring-offset-color: #fff; | ||
--tw-ring-color: rgba(59, 130, 246, 0.5); | ||
--tw-ring-offset-shadow: 0 0 #0000; | ||
--tw-ring-shadow: 0 0 #0000; | ||
} | ||
@media (min-width: 640px){ | ||
} | ||
@media (min-width: 768px){ | ||
} | ||
@media (min-width: 1024px){ | ||
} | ||
@media (min-width: 1280px){ | ||
} | ||
@media (min-width: 1536px){ | ||
} | ||
`) })(),ee}(); | ||
(()=>{var Pe=Object.defineProperty,Ue=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var ye=(x,l,y)=>l in x?Pe(x,l,{enumerable:!0,configurable:!0,writable:!0,value:y}):x[l]=y,S=(x,l)=>{for(var y in l||(l={}))Ce.call(l,y)&&ye(x,y,l[y]);if(ve)for(var y of ve(l))Oe.call(l,y)&&ye(x,y,l[y]);return x},P=(x,l)=>Ue(x,$e(l));var ge=(x,l,y)=>new Promise((R,U)=>{var $=N=>{try{D(y.next(N))}catch(b){U(b)}},A=N=>{try{D(y.throw(N))}catch(b){U(b)}},D=N=>N.done?R(N.value):Promise.resolve(N.value).then($,A);D((y=y.apply(x,l)).next())});var Me=function(){"use strict";var x,l,y,R,U,$,A={},D=[],N=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(n,e){for(var t in e)n[t]=e[t];return n}function G(n){var e=n.parentNode;e&&e.removeChild(n)}function a(n,e,t){var o,f,r,u={};for(r in e)r=="key"?o=e[r]:r=="ref"?f=e[r]:u[r]=e[r];if(arguments.length>2&&(u.children=arguments.length>3?x.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(r in n.defaultProps)u[r]===void 0&&(u[r]=n.defaultProps[r]);return C(n,u,o,f,null)}function C(n,e,t,o,f){var r={type:n,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:f==null?++y:f};return l.vnode!=null&&l.vnode(r),r}function O(n){return n.children}function j(n,e){this.props=n,this.context=e}function H(n,e){if(e==null)return n.__?H(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?H(n):null}function K(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return K(n)}}function X(n){(!n.__d&&(n.__d=!0)&&R.push(n)&&!F.__r++||$!==l.debounceRendering)&&(($=l.debounceRendering)||U)(F)}function F(){for(var n;F.__r=R.length;)n=R.sort(function(e,t){return e.__v.__b-t.__v.__b}),R=[],n.some(function(e){var t,o,f,r,u,h;e.__d&&(u=(r=(t=e).__v).__e,(h=t.__P)&&(o=[],(f=b({},r)).__v=r.__v+1,B(h,r,f,t.__n,h.ownerSVGElement!==void 0,r.__h!=null?[u]:null,o,u==null?H(r):u,r.__h),oe(o,r),r.__e!=u&&K(r)))})}function Y(n,e,t,o,f,r,u,h,d,p){var _,m,i,s,c,L,v,g=o&&o.__k||D,w=g.length;for(t.__k=[],_=0;_<e.length;_++)if((s=t.__k[_]=(s=e[_])==null||typeof s=="boolean"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"?C(null,s,null,null,s):Array.isArray(s)?C(O,{children:s},null,null,null):s.__b>0?C(s.type,s.props,s.key,null,s.__v):s)!=null){if(s.__=t,s.__b=t.__b+1,(i=g[_])===null||i&&s.key==i.key&&s.type===i.type)g[_]=void 0;else for(m=0;m<w;m++){if((i=g[m])&&s.key==i.key&&s.type===i.type){g[m]=void 0;break}i=null}B(n,s,i=i||A,f,r,u,h,d,p),c=s.__e,(m=s.ref)&&i.ref!=m&&(v||(v=[]),i.ref&&v.push(i.ref,null,s),v.push(m,s.__c||c,s)),c!=null?(L==null&&(L=c),typeof s.type=="function"&&s.__k!=null&&s.__k===i.__k?s.__d=d=Z(s,d,n):d=ee(n,s,i,g,c,d),p||t.type!=="option"?typeof t.type=="function"&&(t.__d=d):n.value=""):d&&i.__e==d&&d.parentNode!=n&&(d=H(i))}for(t.__e=L,_=w;_--;)g[_]!=null&&(typeof t.type=="function"&&g[_].__e!=null&&g[_].__e==t.__d&&(t.__d=H(o,_+1)),fe(g[_],g[_]));if(v)for(_=0;_<v.length;_++)re(v[_],v[++_],v[++_])}function Z(n,e,t){var o,f;for(o=0;o<n.__k.length;o++)(f=n.__k[o])&&(f.__=n,e=typeof f.type=="function"?Z(f,e,t):ee(t,f,f,n.__k,f.__e,e));return e}function ee(n,e,t,o,f,r){var u,h,d;if(e.__d!==void 0)u=e.__d,e.__d=void 0;else if(t==null||f!=r||f.parentNode==null)e:if(r==null||r.parentNode!==n)n.appendChild(f),u=null;else{for(h=r,d=0;(h=h.nextSibling)&&d<o.length;d+=2)if(h==f)break e;n.insertBefore(f,r),u=r}return u!==void 0?u:f.nextSibling}function xe(n,e,t,o,f){var r;for(r in t)r==="children"||r==="key"||r in e||M(n,r,null,t[r],o);for(r in e)f&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===e[r]||M(n,r,e[r],t[r],o)}function ne(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||N.test(e)?t:t+"px"}function M(n,e,t,o,f){var r;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof o=="string"&&(n.style.cssText=o=""),o)for(e in o)t&&e in t||ne(n.style,e,"");if(t)for(e in t)o&&t[e]===o[e]||ne(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+r]=t,t?o||n.addEventListener(e,r?_e:te,r):n.removeEventListener(e,r?_e:te,r);else if(e!=="dangerouslySetInnerHTML"){if(f)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t==null?"":t;break e}catch(u){}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function te(n){this.l[n.type+!1](l.event?l.event(n):n)}function _e(n){this.l[n.type+!0](l.event?l.event(n):n)}function B(n,e,t,o,f,r,u,h,d){var p,_,m,i,s,c,L,v,g,w,W,E=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(d=t.__h,h=e.__e=t.__e,e.__h=null,r=[h]),(p=l.__b)&&p(e);try{e:if(typeof E=="function"){if(v=e.props,g=(p=E.contextType)&&o[p.__c],w=p?g?g.props.value:p.__:o,t.__c?L=(_=e.__c=t.__c).__=_.__E:("prototype"in E&&E.prototype.render?e.__c=_=new E(v,w):(e.__c=_=new j(v,w),_.constructor=E,_.render=ke),g&&g.sub(_),_.props=v,_.state||(_.state={}),_.context=w,_.__n=o,m=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),E.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=b({},_.__s)),b(_.__s,E.getDerivedStateFromProps(v,_.__s))),i=_.props,s=_.state,m)E.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(E.getDerivedStateFromProps==null&&v!==i&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(v,w),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(v,_.__s,w)===!1||e.__v===t.__v){_.props=v,_.state=_.__s,e.__v!==t.__v&&(_.__d=!1),_.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(I){I&&(I.__=e)}),_.__h.length&&u.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(v,_.__s,w),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(i,s,c)})}_.context=w,_.props=v,_.state=_.__s,(p=l.__r)&&p(e),_.__d=!1,_.__v=e,_.__P=n,p=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(o=b(b({},o),_.getChildContext())),m||_.getSnapshotBeforeUpdate==null||(c=_.getSnapshotBeforeUpdate(i,s)),W=p!=null&&p.type===O&&p.key==null?p.props.children:p,Y(n,Array.isArray(W)?W:[W],e,t,o,f,r,u,h,d),_.base=e.__e,e.__h=null,_.__h.length&&u.push(_),L&&(_.__E=_.__=null),_.__e=!1}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=be(t.__e,e,t,o,f,r,u,d);(p=l.diffed)&&p(e)}catch(I){e.__v=null,(d||r!=null)&&(e.__e=h,e.__h=!!d,r[r.indexOf(h)]=null),l.__e(I,e,t)}}function oe(n,e){l.__c&&l.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(o){o.call(t)})}catch(o){l.__e(o,t.__v)}})}function be(n,e,t,o,f,r,u,h){var d,p,_,m=t.props,i=e.props,s=e.type,c=0;if(s==="svg"&&(f=!0),r!=null){for(;c<r.length;c++)if((d=r[c])&&(d===n||(s?d.localName==s:d.nodeType==3))){n=d,r[c]=null;break}}if(n==null){if(s===null)return document.createTextNode(i);n=f?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s,i.is&&i),r=null,h=!1}if(s===null)m===i||h&&n.data===i||(n.data=i);else{if(r=r&&x.call(n.childNodes),p=(m=t.props||A).dangerouslySetInnerHTML,_=i.dangerouslySetInnerHTML,!h){if(r!=null)for(m={},c=0;c<n.attributes.length;c++)m[n.attributes[c].name]=n.attributes[c].value;(_||p)&&(_&&(p&&_.__html==p.__html||_.__html===n.innerHTML)||(n.innerHTML=_&&_.__html||""))}if(xe(n,i,m,f,h),_)e.__k=[];else if(c=e.props.children,Y(n,Array.isArray(c)?c:[c],e,t,o,f&&s!=="foreignObject",r,u,r?r[0]:t.__k&&H(t,0),h),r!=null)for(c=r.length;c--;)r[c]!=null&&G(r[c]);h||("value"in i&&(c=i.value)!==void 0&&(c!==n.value||s==="progress"&&!c)&&M(n,"value",c,m.value,!1),"checked"in i&&(c=i.checked)!==void 0&&c!==n.checked&&M(n,"checked",c,m.checked,!1))}return n}function re(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(o){l.__e(o,t)}}function fe(n,e,t){var o,f;if(l.unmount&&l.unmount(n),(o=n.ref)&&(o.current&&o.current!==n.__e||re(o,null,e)),(o=n.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){l.__e(r,e)}o.base=o.__P=null}if(o=n.__k)for(f=0;f<o.length;f++)o[f]&&fe(o[f],e,typeof n.type!="function");t||n.__e==null||G(n.__e),n.__e=n.__d=void 0}function ke(n,e,t){return this.constructor(n,t)}function we(n,e,t){var o,f,r;l.__&&l.__(n,e),f=(o=typeof t=="function")?null:t&&t.__k||e.__k,r=[],B(e,n=(!o&&t||e).__k=a(O,null,[n]),f||A,A,e.ownerSVGElement!==void 0,!o&&t?[t]:f?null:e.firstChild?x.call(e.childNodes):null,r,!o&&t?t:f?f.__e:e.firstChild,o),oe(r,n)}x=D.slice,l={__e:function(n,e){for(var t,o,f;e=e.__;)if((t=e.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(n)),f=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),f=t.__d),f)return t.__E=t}catch(r){n=r}throw n}},y=0,j.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof n=="function"&&(n=n(b({},t),this.props)),n&&b(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),X(this))},j.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),X(this))},j.prototype.render=O,R=[],U=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,F.__r=0;var je="",V,k,le,se=0,z=[],ie=l.__b,ae=l.__r,ce=l.diffed,ue=l.__c,de=l.unmount;function pe(n,e){l.__h&&l.__h(k,n,se||e),se=0;var t=k.__H||(k.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function Ee(n,e,t){var o=pe(V++,2);return o.t=n,o.__c||(o.__=[t?t(e):Te(void 0,e),function(f){var r=o.t(o.__[0],f);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=k),o.__}function Ne(n,e){var t=pe(V++,3);!l.__s&&Re(t.__H,e)&&(t.__=n,t.__H=e,k.__H.__h.push(t))}function Se(){z.forEach(function(n){if(n.__P)try{n.__H.__h.forEach(q),n.__H.__h.forEach(Q),n.__H.__h=[]}catch(e){n.__H.__h=[],l.__e(e,n.__v)}}),z=[]}l.__b=function(n){k=null,ie&&ie(n)},l.__r=function(n){ae&&ae(n),V=0;var e=(k=n.__c).__H;e&&(e.__h.forEach(q),e.__h.forEach(Q),e.__h=[])},l.diffed=function(n){ce&&ce(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(z.push(e)!==1&&le===l.requestAnimationFrame||((le=l.requestAnimationFrame)||function(t){var o,f=function(){clearTimeout(r),he&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(f,100);he&&(o=requestAnimationFrame(f))})(Se)),k=void 0},l.__c=function(n,e){e.some(function(t){try{t.__h.forEach(q),t.__h=t.__h.filter(function(o){return!o.__||Q(o)})}catch(o){e.some(function(f){f.__h&&(f.__h=[])}),e=[],l.__e(o,t.__v)}}),ue&&ue(n,e)},l.unmount=function(n){de&&de(n);var e=n.__c;if(e&&e.__H)try{e.__H.__.forEach(q)}catch(t){l.__e(t,e.__v)}};var he=typeof requestAnimationFrame=="function";function q(n){var e=k;typeof n.__c=="function"&&n.__c(),k=e}function Q(n){var e=k;n.__c=n.__(),k=e}function Re(n,e){return!n||n.length!==e.length||e.some(function(t,o){return t!==n[o]})}function Te(n,e){return typeof e=="function"?e(n):e}var T;(function(n){n.UPVOTE="UPVOTE",n.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",n.HANDLE_ERROR="HANDLE_ERROR"})(T||(T={}));const Ae={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},De=(n,e)=>{switch(console.log(e),e.type){case T.UPVOTE:return P(S({},n),{data:P(S({},n.data),{[e.id]:P(S({},n.data[e.id]),{votes:n.data[e.id].votes_count+1})})});case T.FEATURE_REQUESTS_LOADED:return P(S({},n),{data:e.response.data,meta:e.response.meta,links:e.response.links});case T.HANDLE_ERROR:return P(S({},n),{error:e.error});default:throw new Error("Unexpected action: "+JSON.stringify(e))}};function He(n){const{featureRequest:e}=n;return a("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},a("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},a("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},a("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"}))),a("div",{className:"fn-text-gray-500"})),a("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},a("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},e.title),a("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},e.description),a("div",{className:"fn-flex fn-justify-between fn-mt-2"},a("div",{className:"fn-flex fn-gap-2"},a("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),a("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},e.votes_count,a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},a("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"}))))))}function Le(n){const{options:{workspace:e,projects:t}}=n,[o,f]=Ee(De,Ae),{error:r,data:u,meta:h,links:d}=o;return Ne(()=>{(()=>ge(this,null,function*(){const _=yield fetch(`https://api.feature.ninja/workspaces/${e}/feature-requests${t?`?projects=${t.join(",")}`:""}`),m=yield _.json();if(_.ok)f({type:T.FEATURE_REQUESTS_LOADED,response:m});else{const i=yield _.text();console.error("Error loading feature requests, response was:",i),f({type:T.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))()},[e,t]),a("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},r&&a("div",{className:"fn-bg-red-400"},r.message),a("div",{className:"fn-py-4 fn-px-4"},a("span",{className:"fn-sr-only"},"Search..."),a("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),a("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(u).map(p=>a(He,{key:p.id,featureRequest:p}))),a("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},a("div",{className:"fn-hidden fn-sm:block"},a("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",a("span",{className:"fn-font-medium"},h.from)," to"," ",a("span",{className:"fn-font-medium"},h.to)," of"," ",a("span",{className:"fn-font-medium"},h.total)," results")),a("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},a("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:d.prev===null},"Previous"),a("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:d.next===null},"Next"))))}const J=document.currentScript;function me(n){if(!n.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var f;const t=S(S({},{elementId:"feature-ninja-widget"}),n);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,J?(f=J.parentElement)==null||f.insertBefore(o,J):document.body.appendChild(o)),we(a(Le,{options:t}),o)})}return window.featureNinja=me,(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]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}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:Inter var,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{cursor:pointer}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}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.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-relative{position:relative}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mt-4{margin-top:1rem}.fn-ml-3{margin-left:.75rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-5{height:1.25rem}.fn-h-12{height:3rem}.fn-w-5{width:1.25rem}.fn-w-10{width:2.5rem}.fn-w-12{width:3rem}.fn-w-full{width:100%}.fn-max-w-4xl{max-width:56rem}.fn-flex-grow{flex-grow:1}@-webkit-keyframes fn-spin{to{transform:rotate(360deg)}}@keyframes fn-spin{to{transform:rotate(360deg)}}@-webkit-keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes fn-pulse{50%{opacity:.5}}@keyframes fn-pulse{50%{opacity:.5}}@-webkit-keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.fn-flex-col{flex-direction:column}.fn-items-center{align-items: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-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded{border-radius:.25rem}.fn-rounded-md{border-radius:.375rem}.fn-rounded-full{border-radius:9999px}.fn-border{border-width:1px}.fn-border-t{border-top-width:1px}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-red-400{--tw-bg-opacity: 1;background-color:rgba(248,113,113,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-p-4{padding:1rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-py-4{padding-top:1rem;padding-bottom:1rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-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-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}.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)}*,:before,:after{--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} | ||
`) })(),me}();})(); |
@@ -1,884 +0,2 @@ | ||
var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,n,t)=>n in e?__defProp(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,__spreadValues=(e,n)=>{for(var t in n||(n={}))__hasOwnProp.call(n,t)&&__defNormalProp(e,t,n[t]);if(__getOwnPropSymbols)for(var t of __getOwnPropSymbols(n))__propIsEnum.call(n,t)&&__defNormalProp(e,t,n[t]);return e},__spreadProps=(e,n)=>__defProps(e,__getOwnPropDescs(n)),__async=(e,n,t)=>new Promise(((_,r)=>{var o=e=>{try{s(t.next(e))}catch(n){r(n)}},l=e=>{try{s(t.throw(e))}catch(n){r(n)}},s=e=>e.done?_(e.value):Promise.resolve(e.value).then(o,l);s((t=t.apply(e,n)).next())}));!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).FeatureNinjaWidget=n()}(this,(function(){"use strict";var e,n,t,_,r,o,l={},s=[],i=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,n){for(var t in n)e[t]=n[t];return e}function a(e){var n=e.parentNode;n&&n.removeChild(e)}function u(n,t,_){var r,o,l,s={};for(l in t)"key"==l?r=t[l]:"ref"==l?o=t[l]:s[l]=t[l];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):_),"function"==typeof n&&null!=n.defaultProps)for(l in n.defaultProps)void 0===s[l]&&(s[l]=n.defaultProps[l]);return c(n,s,r,o,null)}function c(e,_,r,o,l){var s={type:e,props:_,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null!=n.vnode&&n.vnode(s),s}function p(e){return e.children}function d(e,n){this.props=e,this.context=n}function h(e,n){if(null==n)return e.__?h(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?h(e):null}function m(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return m(e)}}function v(e){(!e.__d&&(e.__d=!0)&&_.push(e)&&!y.__r++||o!==n.debounceRendering)&&((o=n.debounceRendering)||r)(y)}function y(){for(var e;y.__r=_.length;)e=_.sort((function(e,n){return e.__v.__b-n.__v.__b})),_=[],e.some((function(e){var n,t,_,r,o,l;e.__d&&(o=(r=(n=e).__v).__e,(l=n.__P)&&(t=[],(_=f({},r)).__v=r.__v+1,P(l,r,_,n.__n,void 0!==l.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?h(r):o,r.__h),S(t,r),r.__e!=o&&m(r)))}))}function g(e,n,t,_,r,o,i,f,a,u){var d,m,v,y,g,w,k,E=_&&_.__k||s,N=E.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(y=t.__k[d]=null==(y=n[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?c(null,y,null,null,y):Array.isArray(y)?c(p,{children:y},null,null,null):y.__b>0?c(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(v=E[d])||v&&y.key==v.key&&y.type===v.type)E[d]=void 0;else for(m=0;m<N;m++){if((v=E[m])&&y.key==v.key&&y.type===v.type){E[m]=void 0;break}v=null}P(e,y,v=v||l,r,o,i,f,a,u),g=y.__e,(m=y.ref)&&v.ref!=m&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(m,y.__c||g,y)),null!=g?(null==w&&(w=g),"function"==typeof y.type&&null!=y.__k&&y.__k===v.__k?y.__d=a=b(y,a,e):a=x(e,y,v,E,g,a),u||"option"!==t.type?"function"==typeof t.type&&(t.__d=a):e.value=""):a&&v.__e==a&&a.parentNode!=e&&(a=h(v))}for(t.__e=w,d=N;d--;)null!=E[d]&&("function"==typeof t.type&&null!=E[d].__e&&E[d].__e==t.__d&&(t.__d=h(_,d+1)),T(E[d],E[d]));if(k)for(d=0;d<k.length;d++)O(k[d],k[++d],k[++d])}function b(e,n,t){var _,r;for(_=0;_<e.__k.length;_++)(r=e.__k[_])&&(r.__=e,n="function"==typeof r.type?b(r,n,t):x(t,r,r,e.__k,r.__e,n));return n}function x(e,n,t,_,r,o){var l,s,i;if(void 0!==n.__d)l=n.__d,n.__d=void 0;else if(null==t||r!=o||null==r.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(r),l=null;else{for(s=o,i=0;(s=s.nextSibling)&&i<_.length;i+=2)if(s==r)break e;e.insertBefore(r,o),l=o}return void 0!==l?l:r.nextSibling}function w(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||i.test(n)?t:t+"px"}function k(e,n,t,_,r){var o;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof _&&(e.style.cssText=_=""),_)for(n in _)t&&n in t||w(e.style,n,"");if(t)for(n in t)_&&t[n]===_[n]||w(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+o]=t,t?_||e.addEventListener(n,o?N:E,o):e.removeEventListener(n,o?N:E,o);else if("dangerouslySetInnerHTML"!==n){if(r)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(l){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function E(e){this.l[e.type+!1](n.event?n.event(e):e)}function N(e){this.l[e.type+!0](n.event?n.event(e):e)}function P(t,_,r,o,s,i,u,c,m){var v,y,b,x,w,E,N,P,S,O,T,R=_.type;if(void 0!==_.constructor)return null;null!=r.__h&&(m=r.__h,c=_.__e=r.__e,_.__h=null,i=[c]),(v=n.__b)&&v(_);try{e:if("function"==typeof R){if(P=_.props,S=(v=R.contextType)&&o[v.__c],O=v?S?S.props.value:v.__:o,r.__c?N=(y=_.__c=r.__c).__=y.__E:("prototype"in R&&R.prototype.render?_.__c=y=new R(P,O):(_.__c=y=new d(P,O),y.constructor=R,y.render=D),S&&S.sub(y),y.props=P,y.state||(y.state={}),y.context=O,y.__n=o,b=y.__d=!0,y.__h=[]),null==y.__s&&(y.__s=y.state),null!=R.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=f({},y.__s)),f(y.__s,R.getDerivedStateFromProps(P,y.__s))),x=y.props,w=y.state,b)null==R.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(null==R.getDerivedStateFromProps&&P!==x&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(P,O),!y.__e&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(P,y.__s,O)||_.__v===r.__v){y.props=P,y.state=y.__s,_.__v!==r.__v&&(y.__d=!1),y.__v=_,_.__e=r.__e,_.__k=r.__k,_.__k.forEach((function(e){e&&(e.__=_)})),y.__h.length&&u.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(P,y.__s,O),null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(x,w,E)}))}y.context=O,y.props=P,y.state=y.__s,(v=n.__r)&&v(_),y.__d=!1,y.__v=_,y.__P=t,v=y.render(y.props,y.state,y.context),y.state=y.__s,null!=y.getChildContext&&(o=f(f({},o),y.getChildContext())),b||null==y.getSnapshotBeforeUpdate||(E=y.getSnapshotBeforeUpdate(x,w)),T=null!=v&&v.type===p&&null==v.key?v.props.children:v,g(t,Array.isArray(T)?T:[T],_,r,o,s,i,u,c,m),y.base=_.__e,_.__h=null,y.__h.length&&u.push(y),N&&(y.__E=y.__=null),y.__e=!1}else null==i&&_.__v===r.__v?(_.__k=r.__k,_.__e=r.__e):_.__e=function(n,t,_,r,o,s,i,f){var u,c,p,d=_.props,m=t.props,v=t.type,y=0;if("svg"===v&&(o=!0),null!=s)for(;y<s.length;y++)if((u=s[y])&&(u===n||(v?u.localName==v:3==u.nodeType))){n=u,s[y]=null;break}if(null==n){if(null===v)return document.createTextNode(m);n=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,m.is&&m),s=null,f=!1}if(null===v)d===m||f&&n.data===m||(n.data=m);else{if(s=s&&e.call(n.childNodes),c=(d=_.props||l).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!f){if(null!=s)for(d={},y=0;y<n.attributes.length;y++)d[n.attributes[y].name]=n.attributes[y].value;(p||c)&&(p&&(c&&p.__html==c.__html||p.__html===n.innerHTML)||(n.innerHTML=p&&p.__html||""))}if(function(e,n,t,_,r){var o;for(o in t)"children"===o||"key"===o||o in n||k(e,o,null,t[o],_);for(o in n)r&&"function"!=typeof n[o]||"children"===o||"key"===o||"value"===o||"checked"===o||t[o]===n[o]||k(e,o,n[o],t[o],_)}(n,m,d,o,f),p)t.__k=[];else if(y=t.props.children,g(n,Array.isArray(y)?y:[y],t,_,r,o&&"foreignObject"!==v,s,i,s?s[0]:_.__k&&h(_,0),f),null!=s)for(y=s.length;y--;)null!=s[y]&&a(s[y]);f||("value"in m&&void 0!==(y=m.value)&&(y!==n.value||"progress"===v&&!y)&&k(n,"value",y,d.value,!1),"checked"in m&&void 0!==(y=m.checked)&&y!==n.checked&&k(n,"checked",y,d.checked,!1))}return n}(r.__e,_,r,o,s,i,u,m);(v=n.diffed)&&v(_)}catch(A){_.__v=null,(m||null!=i)&&(_.__e=c,_.__h=!!m,i[i.indexOf(c)]=null),n.__e(A,_,r)}}function S(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(_){n.__e(_,t.__v)}}))}function O(e,t,_){try{"function"==typeof e?e(t):e.current=t}catch(r){n.__e(r,_)}}function T(e,t,_){var r,o;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(l){n.__e(l,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&T(r[o],t,"function"!=typeof e.type);_||null==e.__e||a(e.__e),e.__e=e.__d=void 0}function D(e,n,t){return this.constructor(e,t)}e=s.slice,n={__e:function(e,n){for(var t,_,r;n=n.__;)if((t=n.__c)&&!t.__)try{if((_=t.constructor)&&null!=_.getDerivedStateFromError&&(t.setState(_.getDerivedStateFromError(e)),r=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),r=t.__d),r)return t.__E=t}catch(o){e=o}throw e}},t=0,d.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},t),this.props)),e&&f(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),v(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),v(this))},d.prototype.render=p,_=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,y.__r=0;var R,A,j,H=0,L=[],U=n.__b,C=n.__r,F=n.diffed,M=n.__c,V=n.unmount;function I(e,t){n.__h&&n.__h(A,e,H||t),H=0;var _=A.__H||(A.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({}),_.__[e]}function q(){L.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(z),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}})),L=[]}n.__b=function(e){A=null,U&&U(e)},n.__r=function(e){C&&C(e),R=0;var n=(A=e.__c).__H;n&&(n.__h.forEach(Q),n.__h.forEach(z),n.__h=[])},n.diffed=function(e){F&&F(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==L.push(t)&&j===n.requestAnimationFrame||((j=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(_),$&&cancelAnimationFrame(n),setTimeout(e)},_=setTimeout(t,100);$&&(n=requestAnimationFrame(t))})(q)),A=void 0},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Q),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(_){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(_,e.__v)}})),M&&M(e,t)},n.unmount=function(e){V&&V(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(Q)}catch(_){n.__e(_,t.__v)}};var W,B,$="function"==typeof requestAnimationFrame;function Q(e){var n=A;"function"==typeof e.__c&&e.__c(),A=n}function z(e){var n=A;e.__c=e.__(),A=n}function G(e,n){return"function"==typeof n?n(e):n}(B=W||(W={})).UPVOTE="UPVOTE",B.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",B.HANDLE_ERROR="HANDLE_ERROR";const J={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},K=(e,n)=>{switch(console.log(n),n.type){case W.UPVOTE:return __spreadProps(__spreadValues({},e),{data:__spreadProps(__spreadValues({},e.data),{[n.id]:__spreadProps(__spreadValues({},e.data[n.id]),{votes:e.data[n.id].votes_count+1})})});case W.FEATURE_REQUESTS_LOADED:return __spreadProps(__spreadValues({},e),{data:n.response.data,meta:n.response.meta,links:n.response.links});case W.HANDLE_ERROR:return __spreadProps(__spreadValues({},e),{error:n.error});default:throw new Error("Unexpected action: "+JSON.stringify(n))}};function X(e){const{featureRequest:n}=e;return u("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},u("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},u("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},u("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},u("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"}))),u("div",{className:"fn-text-gray-500"})),u("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},u("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},n.title),u("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},n.description),u("div",{className:"fn-flex fn-justify-between fn-mt-2"},u("div",{className:"fn-flex fn-gap-2"},u("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),u("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},n.votes_count,u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},u("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"}))))))}function Y(e){const{options:{workspace:t,projects:_}}=e,[r,o]=(l=K,s=J,(f=I(R++,2)).t=l,f.__c||(f.__=[i?i(s):G(void 0,s),function(e){var n=f.t(f.__[0],e);f.__[0]!==n&&(f.__=[n,f.__[1]],f.__c.setState({}))}],f.__c=A),f.__);var l,s,i,f;const{error:a,data:c,meta:p,links:d}=r;return function(e,t){var _,r,o=I(R++,3);!n.__s&&(_=o.__H,r=t,!_||_.length!==r.length||r.some((function(e,n){return e!==_[n]})))&&(o.__=e,o.__H=t,A.__H.__h.push(o))}((()=>{(()=>{__async(this,null,(function*(){const e=yield fetch(`https://api.feature.ninja/workspaces/${t}/feature-requests${_?`?projects=${_.join(",")}`:""}`),n=yield e.json();if(e.ok)o({type:W.FEATURE_REQUESTS_LOADED,response:n});else{const n=yield e.text();console.error("Error loading feature requests, response was:",n),o({type:W.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))})()}),[t,_]),u("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},a&&u("div",{className:"fn-bg-red-400"},a.message),u("div",{className:"fn-py-4 fn-px-4"},u("span",{className:"fn-sr-only"},"Search..."),u("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),u("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(c).map((e=>u(X,{key:e.id,featureRequest:e})))),u("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},u("div",{className:"fn-hidden fn-sm:block"},u("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",u("span",{className:"fn-font-medium"},p.from)," to"," ",u("span",{className:"fn-font-medium"},p.to)," of"," ",u("span",{className:"fn-font-medium"},p.total)," results")),u("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},u("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.prev},"Previous"),u("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:null===d.next},"Next"))))}const Z=document.currentScript;function ee(t){if(!t.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",(()=>{var _;const r=__spreadValues(__spreadValues({},{elementId:"feature-ninja-widget"}),t);let o=document.getElementById(r.elementId);var s,i,f,a,c,d;o||(o=document.createElement("div"),o.id=r.elementId,Z?null==(_=Z.parentElement)||_.insertBefore(o,Z):document.body.appendChild(o)),s=u(Y,{options:r}),i=o,n.__&&n.__(s,i),c=(a="function"==typeof f)?null:f&&f.__k||i.__k,d=[],P(i,s=(!a&&f||i).__k=u(p,null,[s]),c||l,l,void 0!==i.ownerSVGElement,!a&&f?[f]:c?null:i.firstChild?e.call(i.childNodes):null,d,!a&&f?f:c?c.__e:i.firstChild,a),S(d,s)}))}return window.featureNinja=ee,(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 url('https://rsms.me/inter/inter.css'); | ||
/*! tailwindcss v2.2.16 | MIT License | https://tailwindcss.com */ | ||
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ | ||
/* | ||
Document | ||
======== | ||
*/ | ||
/** | ||
Use a better box model (opinionated). | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; | ||
} | ||
/** | ||
Use a more readable tab size (opinionated). | ||
*/ | ||
html { | ||
-moz-tab-size: 4; | ||
-o-tab-size: 4; | ||
tab-size: 4; | ||
} | ||
/** | ||
1. Correct the line height in all browsers. | ||
2. Prevent adjustments of font size after orientation changes in iOS. | ||
*/ | ||
html { | ||
line-height: 1.15; /* 1 */ | ||
-webkit-text-size-adjust: 100%; /* 2 */ | ||
} | ||
/* | ||
Sections | ||
======== | ||
*/ | ||
/** | ||
Remove the margin in all browsers. | ||
*/ | ||
body { | ||
margin: 0; | ||
} | ||
/** | ||
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
*/ | ||
body { | ||
font-family: | ||
system-ui, | ||
-apple-system, /* Firefox supports this but not yet system-ui */ | ||
'Segoe UI', | ||
Roboto, | ||
Helvetica, | ||
Arial, | ||
sans-serif, | ||
'Apple Color Emoji', | ||
'Segoe UI Emoji'; | ||
} | ||
/* | ||
Grouping content | ||
================ | ||
*/ | ||
/** | ||
1. Add the correct height in Firefox. | ||
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) | ||
*/ | ||
hr { | ||
height: 0; /* 1 */ | ||
color: inherit; /* 2 */ | ||
} | ||
/* | ||
Text-level semantics | ||
==================== | ||
*/ | ||
/** | ||
Add the correct text decoration in Chrome, Edge, and Safari. | ||
*/ | ||
abbr[title] { | ||
-webkit-text-decoration: underline dotted; | ||
text-decoration: underline dotted; | ||
} | ||
/** | ||
Add the correct font weight in Edge and Safari. | ||
*/ | ||
b, | ||
strong { | ||
font-weight: bolder; | ||
} | ||
/** | ||
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) | ||
2. Correct the odd 'em' font sizing in all browsers. | ||
*/ | ||
code, | ||
kbd, | ||
samp, | ||
pre { | ||
font-family: | ||
ui-monospace, | ||
SFMono-Regular, | ||
Consolas, | ||
'Liberation Mono', | ||
Menlo, | ||
monospace; /* 1 */ | ||
font-size: 1em; /* 2 */ | ||
} | ||
/** | ||
Add the correct font size in all browsers. | ||
*/ | ||
small { | ||
font-size: 80%; | ||
} | ||
/** | ||
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers. | ||
*/ | ||
sub, | ||
sup { | ||
font-size: 75%; | ||
line-height: 0; | ||
position: relative; | ||
vertical-align: baseline; | ||
} | ||
sub { | ||
bottom: -0.25em; | ||
} | ||
sup { | ||
top: -0.5em; | ||
} | ||
/* | ||
Tabular data | ||
============ | ||
*/ | ||
/** | ||
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) | ||
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) | ||
*/ | ||
table { | ||
text-indent: 0; /* 1 */ | ||
border-color: inherit; /* 2 */ | ||
} | ||
/* | ||
Forms | ||
===== | ||
*/ | ||
/** | ||
1. Change the font styles in all browsers. | ||
2. Remove the margin in Firefox and Safari. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
font-family: inherit; /* 1 */ | ||
font-size: 100%; /* 1 */ | ||
line-height: 1.15; /* 1 */ | ||
margin: 0; /* 2 */ | ||
} | ||
/** | ||
Remove the inheritance of text transform in Edge and Firefox. | ||
1. Remove the inheritance of text transform in Firefox. | ||
*/ | ||
button, | ||
select { /* 1 */ | ||
text-transform: none; | ||
} | ||
/** | ||
Correct the inability to style clickable types in iOS and Safari. | ||
*/ | ||
button, | ||
[type='button'] { | ||
-webkit-appearance: button; | ||
} | ||
/** | ||
Remove the inner border and padding in Firefox. | ||
*/ | ||
/** | ||
Restore the focus styles unset by the previous rule. | ||
*/ | ||
/** | ||
Remove the additional ':invalid' styles in Firefox. | ||
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737 | ||
*/ | ||
/** | ||
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers. | ||
*/ | ||
legend { | ||
padding: 0; | ||
} | ||
/** | ||
Add the correct vertical alignment in Chrome and Firefox. | ||
*/ | ||
progress { | ||
vertical-align: baseline; | ||
} | ||
/** | ||
Correct the cursor style of increment and decrement buttons in Safari. | ||
*/ | ||
/** | ||
1. Correct the odd appearance in Chrome and Safari. | ||
2. Correct the outline style in Safari. | ||
*/ | ||
/** | ||
Remove the inner padding in Chrome and Safari on macOS. | ||
*/ | ||
/** | ||
1. Correct the inability to style clickable types in iOS and Safari. | ||
2. Change font properties to 'inherit' in Safari. | ||
*/ | ||
/* | ||
Interactive | ||
=========== | ||
*/ | ||
/* | ||
Add the correct display in Chrome and Safari. | ||
*/ | ||
summary { | ||
display: list-item; | ||
} | ||
/** | ||
* Manually forked from SUIT CSS Base: https://github.com/suitcss/base | ||
* A thin layer on top of normalize.css that provides a starting point more | ||
* suitable for web applications. | ||
*/ | ||
/** | ||
* Removes the default spacing and border for appropriate elements. | ||
*/ | ||
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; | ||
} | ||
/** | ||
* Tailwind custom reset styles | ||
*/ | ||
/** | ||
* 1. Use the user's configured sans font-family (with Tailwind's default | ||
* sans-serif font stack as a fallback) as a sane default. | ||
* 2. Use Tailwind's default "normal" line-height so the user isn't forced | ||
* to override it to ensure consistency even when using the default theme. | ||
*/ | ||
html { | ||
font-family: Inter var, 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"; /* 1 */ | ||
line-height: 1.5; /* 2 */ | ||
} | ||
/** | ||
* Inherit font-family and line-height from html so users can set them as | ||
* a class directly on the html element. | ||
*/ | ||
body { | ||
font-family: inherit; | ||
line-height: inherit; | ||
} | ||
/** | ||
* 1. Prevent padding and border from affecting element width. | ||
* | ||
* We used to set this in the html element and inherit from | ||
* the parent element for everything else. This caused issues | ||
* in shadow-dom-enhanced elements like <details> where the content | ||
* is wrapped by a div with box-sizing set to content-box. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/4 | ||
* | ||
* | ||
* 2. Allow adding a border to an element by just adding a border-width. | ||
* | ||
* By default, the way the browser specifies that an element should have no | ||
* border is by setting it's border-style to none in the user-agent | ||
* stylesheet. | ||
* | ||
* In order to easily add borders to elements by just setting the border-width | ||
* property, we change the default border-style for all elements to solid, and | ||
* use border-width to hide them instead. This way our border utilities only | ||
* need to set the border-width property instead of the entire border | ||
* shorthand, making our border utilities much more straightforward to compose. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/pull/116 | ||
*/ | ||
*, | ||
::before, | ||
::after { | ||
box-sizing: border-box; /* 1 */ | ||
border-width: 0; /* 2 */ | ||
border-style: solid; /* 2 */ | ||
border-color: currentColor; /* 2 */ | ||
} | ||
/* | ||
* Ensure horizontal rules are visible by default | ||
*/ | ||
hr { | ||
border-top-width: 1px; | ||
} | ||
/** | ||
* Undo the border-style: none reset that Normalize applies to images so that | ||
* our border-{width} utilities have the expected effect. | ||
* | ||
* The Normalize reset is unnecessary for us since we default the border-width | ||
* to 0 on all elements. | ||
* | ||
* https://github.com/tailwindcss/tailwindcss/issues/362 | ||
*/ | ||
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 { | ||
cursor: pointer; | ||
} | ||
/** | ||
* Override legacy focus reset from Normalize with modern Firefox focus styles. | ||
* | ||
* This is actually an improvement over the new defaults in Firefox in our testing, | ||
* as it triggers the better focus styles even for links, which still use a dotted | ||
* outline in Firefox by default. | ||
*/ | ||
table { | ||
border-collapse: collapse; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6 { | ||
font-size: inherit; | ||
font-weight: inherit; | ||
} | ||
/** | ||
* Reset links to optimize for opt-in styling instead of | ||
* opt-out. | ||
*/ | ||
a { | ||
color: inherit; | ||
text-decoration: inherit; | ||
} | ||
/** | ||
* Reset form element properties that are easy to forget to | ||
* style explicitly so you don't inadvertently introduce | ||
* styles that deviate from your design system. These styles | ||
* supplement a partial reset that is already applied by | ||
* normalize.css. | ||
*/ | ||
button, | ||
input, | ||
optgroup, | ||
select, | ||
textarea { | ||
padding: 0; | ||
line-height: inherit; | ||
color: inherit; | ||
} | ||
/** | ||
* Use the configured 'mono' font family for elements that | ||
* are expected to be rendered with a monospace font, falling | ||
* back to the system monospace stack if there is no configured | ||
* 'mono' font family. | ||
*/ | ||
pre, | ||
code, | ||
kbd, | ||
samp { | ||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; | ||
} | ||
/** | ||
* 1. Make replaced elements display: block by default as that's | ||
* the behavior you want almost all of the time. Inspired by | ||
* CSS Remedy, with svg added as well. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
* | ||
* 2. Add vertical-align: middle to align replaced elements more | ||
* sensibly by default when overriding display by adding a | ||
* utility like inline. | ||
* | ||
* This can trigger a poorly considered linting error in some | ||
* tools but is included by design. | ||
* | ||
* https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210 | ||
*/ | ||
img, | ||
svg, | ||
video, | ||
canvas, | ||
audio, | ||
iframe, | ||
embed, | ||
object { | ||
display: block; /* 1 */ | ||
vertical-align: middle; /* 2 */ | ||
} | ||
/** | ||
* Constrain images and videos to the parent width and preserve | ||
* their intrinsic aspect ratio. | ||
* | ||
* https://github.com/mozdevs/cssremedy/issues/14 | ||
*/ | ||
img, | ||
video { | ||
max-width: 100%; | ||
height: auto; | ||
} | ||
/** | ||
* Ensure the default browser behavior of the hidden attribute. | ||
*/ | ||
*, ::before, ::after{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.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-relative{ | ||
position: relative; | ||
} | ||
.fn--m-2{ | ||
margin: -0.5rem; | ||
} | ||
.fn-mx-auto{ | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
.fn-mt-2{ | ||
margin-top: 0.5rem; | ||
} | ||
.fn-mt-4{ | ||
margin-top: 1rem; | ||
} | ||
.fn-ml-3{ | ||
margin-left: 0.75rem; | ||
} | ||
.fn-block{ | ||
display: block; | ||
} | ||
.fn-flex{ | ||
display: flex; | ||
} | ||
.fn-inline-flex{ | ||
display: inline-flex; | ||
} | ||
.fn-hidden{ | ||
display: none; | ||
} | ||
.fn-h-5{ | ||
height: 1.25rem; | ||
} | ||
.fn-h-12{ | ||
height: 3rem; | ||
} | ||
.fn-w-5{ | ||
width: 1.25rem; | ||
} | ||
.fn-w-10{ | ||
width: 2.5rem; | ||
} | ||
.fn-w-12{ | ||
width: 3rem; | ||
} | ||
.fn-w-full{ | ||
width: 100%; | ||
} | ||
.fn-max-w-4xl{ | ||
max-width: 56rem; | ||
} | ||
.fn-flex-grow{ | ||
flex-grow: 1; | ||
} | ||
@-webkit-keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@keyframes fn-spin{ | ||
to{ | ||
transform: rotate(360deg); | ||
} | ||
} | ||
@-webkit-keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
} | ||
} | ||
@keyframes fn-ping{ | ||
75%, 100%{ | ||
transform: scale(2); | ||
opacity: 0; | ||
} | ||
} | ||
@-webkit-keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
} | ||
} | ||
@keyframes fn-pulse{ | ||
50%{ | ||
opacity: .5; | ||
} | ||
} | ||
@-webkit-keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
} | ||
@keyframes fn-bounce{ | ||
0%, 100%{ | ||
transform: translateY(-25%); | ||
-webkit-animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
animation-timing-function: cubic-bezier(0.8,0,1,1); | ||
} | ||
50%{ | ||
transform: none; | ||
-webkit-animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
animation-timing-function: cubic-bezier(0,0,0.2,1); | ||
} | ||
} | ||
.fn-flex-col{ | ||
flex-direction: column; | ||
} | ||
.fn-items-center{ | ||
align-items: center; | ||
} | ||
.fn-justify-between{ | ||
justify-content: space-between; | ||
} | ||
.fn-gap-2{ | ||
gap: 0.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-truncate{ | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
.fn-rounded{ | ||
border-radius: 0.25rem; | ||
} | ||
.fn-rounded-md{ | ||
border-radius: 0.375rem; | ||
} | ||
.fn-rounded-full{ | ||
border-radius: 9999px; | ||
} | ||
.fn-border{ | ||
border-width: 1px; | ||
} | ||
.fn-border-t{ | ||
border-top-width: 1px; | ||
} | ||
.fn-border-gray-200{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(229, 231, 235, var(--tw-border-opacity)); | ||
} | ||
.fn-border-gray-300{ | ||
--tw-border-opacity: 1; | ||
border-color: rgba(209, 213, 219, var(--tw-border-opacity)); | ||
} | ||
.fn-bg-white{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(255, 255, 255, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-red-400{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(248, 113, 113, var(--tw-bg-opacity)); | ||
} | ||
.fn-bg-yellow-100{ | ||
--tw-bg-opacity: 1; | ||
background-color: rgba(254, 243, 199, var(--tw-bg-opacity)); | ||
} | ||
.fn-p-4{ | ||
padding: 1rem; | ||
} | ||
.fn-px-2{ | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
.fn-px-4{ | ||
padding-left: 1rem; | ||
padding-right: 1rem; | ||
} | ||
.fn-py-0{ | ||
padding-top: 0px; | ||
padding-bottom: 0px; | ||
} | ||
.fn-py-2{ | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
} | ||
.fn-py-3{ | ||
padding-top: 0.75rem; | ||
padding-bottom: 0.75rem; | ||
} | ||
.fn-py-4{ | ||
padding-top: 1rem; | ||
padding-bottom: 1rem; | ||
} | ||
.fn-py-6{ | ||
padding-top: 1.5rem; | ||
padding-bottom: 1.5rem; | ||
} | ||
.fn-py-0\.5{ | ||
padding-top: 0.125rem; | ||
padding-bottom: 0.125rem; | ||
} | ||
.fn-text-xs{ | ||
font-size: 0.75rem; | ||
line-height: 1rem; | ||
} | ||
.fn-text-sm{ | ||
font-size: 0.875rem; | ||
line-height: 1.25rem; | ||
} | ||
.fn-font-medium{ | ||
font-weight: 500; | ||
} | ||
.fn-font-semibold{ | ||
font-weight: 600; | ||
} | ||
.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-text-gray-700{ | ||
--tw-text-opacity: 1; | ||
color: rgba(55, 65, 81, var(--tw-text-opacity)); | ||
} | ||
.fn-text-yellow-800{ | ||
--tw-text-opacity: 1; | ||
color: rgba(146, 64, 14, var(--tw-text-opacity)); | ||
} | ||
*, ::before, ::after{ | ||
--tw-shadow: 0 0 #0000; | ||
} | ||
.fn-shadow-sm{ | ||
--tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); | ||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); | ||
} | ||
*, ::before, ::after{ | ||
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/); | ||
--tw-ring-offset-width: 0px; | ||
--tw-ring-offset-color: #fff; | ||
--tw-ring-color: rgba(59, 130, 246, 0.5); | ||
--tw-ring-offset-shadow: 0 0 #0000; | ||
--tw-ring-shadow: 0 0 #0000; | ||
} | ||
@media (min-width: 640px){ | ||
} | ||
@media (min-width: 768px){ | ||
} | ||
@media (min-width: 1024px){ | ||
} | ||
@media (min-width: 1280px){ | ||
} | ||
@media (min-width: 1536px){ | ||
} | ||
`) })(),ee})); | ||
var Pe=Object.defineProperty,Ue=Object.defineProperties;var $e=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var Ce=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var ye=(y,l,g)=>l in y?Pe(y,l,{enumerable:!0,configurable:!0,writable:!0,value:g}):y[l]=g,S=(y,l)=>{for(var g in l||(l={}))Ce.call(l,g)&&ye(y,g,l[g]);if(ve)for(var g of ve(l))Oe.call(l,g)&&ye(y,g,l[g]);return y},P=(y,l)=>Ue(y,$e(l));var ge=(y,l,g)=>new Promise((R,U)=>{var $=N=>{try{D(g.next(N))}catch(b){U(b)}},A=N=>{try{D(g.throw(N))}catch(b){U(b)}},D=N=>N.done?R(N.value):Promise.resolve(N.value).then($,A);D((g=g.apply(y,l)).next())});(function(y,l){typeof exports=="object"&&typeof module!="undefined"?module.exports=l():typeof define=="function"&&define.amd?define(l):(y=typeof globalThis!="undefined"?globalThis:y||self,y.FeatureNinjaWidget=l())})(this,function(){"use strict";var y,l,g,R,U,$,A={},D=[],N=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(n,e){for(var t in e)n[t]=e[t];return n}function G(n){var e=n.parentNode;e&&e.removeChild(n)}function a(n,e,t){var o,f,r,u={};for(r in e)r=="key"?o=e[r]:r=="ref"?f=e[r]:u[r]=e[r];if(arguments.length>2&&(u.children=arguments.length>3?y.call(arguments,2):t),typeof n=="function"&&n.defaultProps!=null)for(r in n.defaultProps)u[r]===void 0&&(u[r]=n.defaultProps[r]);return C(n,u,o,f,null)}function C(n,e,t,o,f){var r={type:n,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:f==null?++g:f};return l.vnode!=null&&l.vnode(r),r}function O(n){return n.children}function j(n,e){this.props=n,this.context=e}function H(n,e){if(e==null)return n.__?H(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null)return t.__e;return typeof n.type=="function"?H(n):null}function K(n){var e,t;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,e=0;e<n.__k.length;e++)if((t=n.__k[e])!=null&&t.__e!=null){n.__e=n.__c.base=t.__e;break}return K(n)}}function X(n){(!n.__d&&(n.__d=!0)&&R.push(n)&&!F.__r++||$!==l.debounceRendering)&&(($=l.debounceRendering)||U)(F)}function F(){for(var n;F.__r=R.length;)n=R.sort(function(e,t){return e.__v.__b-t.__v.__b}),R=[],n.some(function(e){var t,o,f,r,u,h;e.__d&&(u=(r=(t=e).__v).__e,(h=t.__P)&&(o=[],(f=b({},r)).__v=r.__v+1,B(h,r,f,t.__n,h.ownerSVGElement!==void 0,r.__h!=null?[u]:null,o,u==null?H(r):u,r.__h),oe(o,r),r.__e!=u&&K(r)))})}function Y(n,e,t,o,f,r,u,h,d,p){var _,m,s,i,c,L,v,x=o&&o.__k||D,w=x.length;for(t.__k=[],_=0;_<e.length;_++)if((i=t.__k[_]=(i=e[_])==null||typeof i=="boolean"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"?C(null,i,null,null,i):Array.isArray(i)?C(O,{children:i},null,null,null):i.__b>0?C(i.type,i.props,i.key,null,i.__v):i)!=null){if(i.__=t,i.__b=t.__b+1,(s=x[_])===null||s&&i.key==s.key&&i.type===s.type)x[_]=void 0;else for(m=0;m<w;m++){if((s=x[m])&&i.key==s.key&&i.type===s.type){x[m]=void 0;break}s=null}B(n,i,s=s||A,f,r,u,h,d,p),c=i.__e,(m=i.ref)&&s.ref!=m&&(v||(v=[]),s.ref&&v.push(s.ref,null,i),v.push(m,i.__c||c,i)),c!=null?(L==null&&(L=c),typeof i.type=="function"&&i.__k!=null&&i.__k===s.__k?i.__d=d=Z(i,d,n):d=ee(n,i,s,x,c,d),p||t.type!=="option"?typeof t.type=="function"&&(t.__d=d):n.value=""):d&&s.__e==d&&d.parentNode!=n&&(d=H(s))}for(t.__e=L,_=w;_--;)x[_]!=null&&(typeof t.type=="function"&&x[_].__e!=null&&x[_].__e==t.__d&&(t.__d=H(o,_+1)),fe(x[_],x[_]));if(v)for(_=0;_<v.length;_++)re(v[_],v[++_],v[++_])}function Z(n,e,t){var o,f;for(o=0;o<n.__k.length;o++)(f=n.__k[o])&&(f.__=n,e=typeof f.type=="function"?Z(f,e,t):ee(t,f,f,n.__k,f.__e,e));return e}function ee(n,e,t,o,f,r){var u,h,d;if(e.__d!==void 0)u=e.__d,e.__d=void 0;else if(t==null||f!=r||f.parentNode==null)e:if(r==null||r.parentNode!==n)n.appendChild(f),u=null;else{for(h=r,d=0;(h=h.nextSibling)&&d<o.length;d+=2)if(h==f)break e;n.insertBefore(f,r),u=r}return u!==void 0?u:f.nextSibling}function xe(n,e,t,o,f){var r;for(r in t)r==="children"||r==="key"||r in e||M(n,r,null,t[r],o);for(r in e)f&&typeof e[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||t[r]===e[r]||M(n,r,e[r],t[r],o)}function ne(n,e,t){e[0]==="-"?n.setProperty(e,t):n[e]=t==null?"":typeof t!="number"||N.test(e)?t:t+"px"}function M(n,e,t,o,f){var r;e:if(e==="style")if(typeof t=="string")n.style.cssText=t;else{if(typeof o=="string"&&(n.style.cssText=o=""),o)for(e in o)t&&e in t||ne(n.style,e,"");if(t)for(e in t)o&&t[e]===o[e]||ne(n.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in n?e.toLowerCase().slice(2):e.slice(2),n.l||(n.l={}),n.l[e+r]=t,t?o||n.addEventListener(e,r?_e:te,r):n.removeEventListener(e,r?_e:te,r);else if(e!=="dangerouslySetInnerHTML"){if(f)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in n)try{n[e]=t==null?"":t;break e}catch(u){}typeof t=="function"||(t!=null&&(t!==!1||e[0]==="a"&&e[1]==="r")?n.setAttribute(e,t):n.removeAttribute(e))}}function te(n){this.l[n.type+!1](l.event?l.event(n):n)}function _e(n){this.l[n.type+!0](l.event?l.event(n):n)}function B(n,e,t,o,f,r,u,h,d){var p,_,m,s,i,c,L,v,x,w,W,E=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(d=t.__h,h=e.__e=t.__e,e.__h=null,r=[h]),(p=l.__b)&&p(e);try{e:if(typeof E=="function"){if(v=e.props,x=(p=E.contextType)&&o[p.__c],w=p?x?x.props.value:p.__:o,t.__c?L=(_=e.__c=t.__c).__=_.__E:("prototype"in E&&E.prototype.render?e.__c=_=new E(v,w):(e.__c=_=new j(v,w),_.constructor=E,_.render=ke),x&&x.sub(_),_.props=v,_.state||(_.state={}),_.context=w,_.__n=o,m=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),E.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=b({},_.__s)),b(_.__s,E.getDerivedStateFromProps(v,_.__s))),s=_.props,i=_.state,m)E.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(E.getDerivedStateFromProps==null&&v!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(v,w),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(v,_.__s,w)===!1||e.__v===t.__v){_.props=v,_.state=_.__s,e.__v!==t.__v&&(_.__d=!1),_.__v=e,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(I){I&&(I.__=e)}),_.__h.length&&u.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(v,_.__s,w),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,i,c)})}_.context=w,_.props=v,_.state=_.__s,(p=l.__r)&&p(e),_.__d=!1,_.__v=e,_.__P=n,p=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(o=b(b({},o),_.getChildContext())),m||_.getSnapshotBeforeUpdate==null||(c=_.getSnapshotBeforeUpdate(s,i)),W=p!=null&&p.type===O&&p.key==null?p.props.children:p,Y(n,Array.isArray(W)?W:[W],e,t,o,f,r,u,h,d),_.base=e.__e,e.__h=null,_.__h.length&&u.push(_),L&&(_.__E=_.__=null),_.__e=!1}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=be(t.__e,e,t,o,f,r,u,d);(p=l.diffed)&&p(e)}catch(I){e.__v=null,(d||r!=null)&&(e.__e=h,e.__h=!!d,r[r.indexOf(h)]=null),l.__e(I,e,t)}}function oe(n,e){l.__c&&l.__c(e,n),n.some(function(t){try{n=t.__h,t.__h=[],n.some(function(o){o.call(t)})}catch(o){l.__e(o,t.__v)}})}function be(n,e,t,o,f,r,u,h){var d,p,_,m=t.props,s=e.props,i=e.type,c=0;if(i==="svg"&&(f=!0),r!=null){for(;c<r.length;c++)if((d=r[c])&&(d===n||(i?d.localName==i:d.nodeType==3))){n=d,r[c]=null;break}}if(n==null){if(i===null)return document.createTextNode(s);n=f?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i,s.is&&s),r=null,h=!1}if(i===null)m===s||h&&n.data===s||(n.data=s);else{if(r=r&&y.call(n.childNodes),p=(m=t.props||A).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!h){if(r!=null)for(m={},c=0;c<n.attributes.length;c++)m[n.attributes[c].name]=n.attributes[c].value;(_||p)&&(_&&(p&&_.__html==p.__html||_.__html===n.innerHTML)||(n.innerHTML=_&&_.__html||""))}if(xe(n,s,m,f,h),_)e.__k=[];else if(c=e.props.children,Y(n,Array.isArray(c)?c:[c],e,t,o,f&&i!=="foreignObject",r,u,r?r[0]:t.__k&&H(t,0),h),r!=null)for(c=r.length;c--;)r[c]!=null&&G(r[c]);h||("value"in s&&(c=s.value)!==void 0&&(c!==n.value||i==="progress"&&!c)&&M(n,"value",c,m.value,!1),"checked"in s&&(c=s.checked)!==void 0&&c!==n.checked&&M(n,"checked",c,m.checked,!1))}return n}function re(n,e,t){try{typeof n=="function"?n(e):n.current=e}catch(o){l.__e(o,t)}}function fe(n,e,t){var o,f;if(l.unmount&&l.unmount(n),(o=n.ref)&&(o.current&&o.current!==n.__e||re(o,null,e)),(o=n.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){l.__e(r,e)}o.base=o.__P=null}if(o=n.__k)for(f=0;f<o.length;f++)o[f]&&fe(o[f],e,typeof n.type!="function");t||n.__e==null||G(n.__e),n.__e=n.__d=void 0}function ke(n,e,t){return this.constructor(n,t)}function we(n,e,t){var o,f,r;l.__&&l.__(n,e),f=(o=typeof t=="function")?null:t&&t.__k||e.__k,r=[],B(e,n=(!o&&t||e).__k=a(O,null,[n]),f||A,A,e.ownerSVGElement!==void 0,!o&&t?[t]:f?null:e.firstChild?y.call(e.childNodes):null,r,!o&&t?t:f?f.__e:e.firstChild,o),oe(r,n)}y=D.slice,l={__e:function(n,e){for(var t,o,f;e=e.__;)if((t=e.__c)&&!t.__)try{if((o=t.constructor)&&o.getDerivedStateFromError!=null&&(t.setState(o.getDerivedStateFromError(n)),f=t.__d),t.componentDidCatch!=null&&(t.componentDidCatch(n),f=t.__d),f)return t.__E=t}catch(r){n=r}throw n}},g=0,j.prototype.setState=function(n,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=b({},this.state),typeof n=="function"&&(n=n(b({},t),this.props)),n&&b(t,n),n!=null&&this.__v&&(e&&this.__h.push(e),X(this))},j.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),X(this))},j.prototype.render=O,R=[],U=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,F.__r=0;var je="",V,k,le,ie=0,z=[],se=l.__b,ae=l.__r,ce=l.diffed,ue=l.__c,de=l.unmount;function pe(n,e){l.__h&&l.__h(k,n,ie||e),ie=0;var t=k.__H||(k.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function Ee(n,e,t){var o=pe(V++,2);return o.t=n,o.__c||(o.__=[t?t(e):Te(void 0,e),function(f){var r=o.t(o.__[0],f);o.__[0]!==r&&(o.__=[r,o.__[1]],o.__c.setState({}))}],o.__c=k),o.__}function Ne(n,e){var t=pe(V++,3);!l.__s&&Re(t.__H,e)&&(t.__=n,t.__H=e,k.__H.__h.push(t))}function Se(){z.forEach(function(n){if(n.__P)try{n.__H.__h.forEach(q),n.__H.__h.forEach(Q),n.__H.__h=[]}catch(e){n.__H.__h=[],l.__e(e,n.__v)}}),z=[]}l.__b=function(n){k=null,se&&se(n)},l.__r=function(n){ae&&ae(n),V=0;var e=(k=n.__c).__H;e&&(e.__h.forEach(q),e.__h.forEach(Q),e.__h=[])},l.diffed=function(n){ce&&ce(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(z.push(e)!==1&&le===l.requestAnimationFrame||((le=l.requestAnimationFrame)||function(t){var o,f=function(){clearTimeout(r),he&&cancelAnimationFrame(o),setTimeout(t)},r=setTimeout(f,100);he&&(o=requestAnimationFrame(f))})(Se)),k=void 0},l.__c=function(n,e){e.some(function(t){try{t.__h.forEach(q),t.__h=t.__h.filter(function(o){return!o.__||Q(o)})}catch(o){e.some(function(f){f.__h&&(f.__h=[])}),e=[],l.__e(o,t.__v)}}),ue&&ue(n,e)},l.unmount=function(n){de&&de(n);var e=n.__c;if(e&&e.__H)try{e.__H.__.forEach(q)}catch(t){l.__e(t,e.__v)}};var he=typeof requestAnimationFrame=="function";function q(n){var e=k;typeof n.__c=="function"&&n.__c(),k=e}function Q(n){var e=k;n.__c=n.__(),k=e}function Re(n,e){return!n||n.length!==e.length||e.some(function(t,o){return t!==n[o]})}function Te(n,e){return typeof e=="function"?e(n):e}var T;(function(n){n.UPVOTE="UPVOTE",n.FEATURE_REQUESTS_LOADED="FEATURE_REQUESTS_LOADED",n.HANDLE_ERROR="HANDLE_ERROR"})(T||(T={}));const Ae={data:{},meta:{from:0,to:0,total:0},links:{prev:null,next:null}},De=(n,e)=>{switch(console.log(e),e.type){case T.UPVOTE:return P(S({},n),{data:P(S({},n.data),{[e.id]:P(S({},n.data[e.id]),{votes:n.data[e.id].votes_count+1})})});case T.FEATURE_REQUESTS_LOADED:return P(S({},n),{data:e.response.data,meta:e.response.meta,links:e.response.links});case T.HANDLE_ERROR:return P(S({},n),{error:e.error});default:throw new Error("Unexpected action: "+JSON.stringify(e))}};function He(n){const{featureRequest:e}=n;return a("div",{className:"fn-flex fn-py-6 fn-px-4 fn-sm:px-6 fn-gap-4"},a("div",{className:"fn-flex fn-flex-col fn-w-10 fn-items-center"},a("button",{type:"button",className:"fn-flex fn-flex-col fn-items-center fn-rounded-full fn-text-gray-400 fn-hover:text-green-400 fn-focus:outline-none fn-focus:ring-2 fn-focus:ring-offset-2 fn-focus:ring-green-400 text-sm"},a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"fn-h-12 fn-w-12 fn--m-2","aria-hidden":"true"},a("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"}))),a("div",{className:"fn-text-gray-500"})),a("div",{className:"fn-flex fn-flex-col fn-flex-grow fn-justify-between fn-truncate"},a("div",{className:"fn-text-md fn-text-gray-700 fn-font-semibold fn-truncate"},e.title),a("div",{className:"fn-text-sm fn-text-gray-700 fn-truncate"},e.description),a("div",{className:"fn-flex fn-justify-between fn-mt-2"},a("div",{className:"fn-flex fn-gap-2"},a("span",{className:"fn-inline-flex fn-items-center fn-px-2 fn-py-0.5 fn-rounded fn-text-xs fn-font-medium fn-bg-yellow-100 fn-text-yellow-800 "},"boombox")),a("div",{className:"fn-flex fn-text-gray-500 fn-text-sm"},e.votes_count,a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",className:"fn-w-5 fn-h-5"},a("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"}))))))}function Le(n){const{options:{workspace:e,projects:t}}=n,[o,f]=Ee(De,Ae),{error:r,data:u,meta:h,links:d}=o;return Ne(()=>{(()=>ge(this,null,function*(){const _=yield fetch(`https://api.feature.ninja/workspaces/${e}/feature-requests${t?`?projects=${t.join(",")}`:""}`),m=yield _.json();if(_.ok)f({type:T.FEATURE_REQUESTS_LOADED,response:m});else{const s=yield _.text();console.error("Error loading feature requests, response was:",s),f({type:T.HANDLE_ERROR,error:new Error("Oops, something went wrong when loading the feature requests...")})}}))()},[e,t]),a("div",{className:"fn-max-w-4xl fn-mx-auto fn-sm:px-6 fn-lg:px-8"},r&&a("div",{className:"fn-bg-red-400"},r.message),a("div",{className:"fn-py-4 fn-px-4"},a("span",{className:"fn-sr-only"},"Search..."),a("input",{type:"text",className:"fn-shadow-sm fn-focus:ring-green-400 fn-focus:border-green-400 fn-block fn-p-4 fn-w-full fn-border-gray-300 fn-rounded-md ",placeholder:"Search..."})),a("div",{className:"fn-divide-y fn-divide-gray-200 fn-mt-4"},Object.values(u).map(p=>a(He,{key:p.id,featureRequest:p}))),a("nav",{className:"fn-bg-white fn-px-4 fn-py-3 fn-flex fn-items-center fn-justify-between fn-border-t fn-border-gray-200 fn-sm:px-6","aria-label":"Pagination"},a("div",{className:"fn-hidden fn-sm:block"},a("p",{className:"fn-text-sm fn-text-gray-700"},"Showing ",a("span",{className:"fn-font-medium"},h.from)," to"," ",a("span",{className:"fn-font-medium"},h.to)," of"," ",a("span",{className:"fn-font-medium"},h.total)," results")),a("div",{className:"fn-fn-flex-1 fn-fn-flex fn-fn-justify-between fn-fn-sm:justify-end"},a("button",{className:"fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:d.prev===null},"Previous"),a("button",{className:"fn-ml-3 fn-relative fn-inline-flex fn-items-center fn-px-4 fn-py-2 fn-border fn-border-gray-300 fn-text-sm fn-font-medium fn-rounded-md fn-text-gray-700 fn-bg-white fn-hover:bg-gray-50 fn-disabled:opacity-25",disabled:d.next===null},"Next"))))}const J=document.currentScript;function me(n){if(!n.workspace)throw new Error("Feature Ninja widget: The `workspace` option is required!");window.addEventListener("DOMContentLoaded",()=>{var f;const t=S(S({},{elementId:"feature-ninja-widget"}),n);let o=document.getElementById(t.elementId);o||(o=document.createElement("div"),o.id=t.elementId,J?(f=J.parentElement)==null||f.insertBefore(o,J):document.body.appendChild(o)),we(a(Le,{options:t}),o)})}return window.featureNinja=me,(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]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}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:Inter var,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{cursor:pointer}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}*,:before,:after{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.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-relative{position:relative}.fn--m-2{margin:-.5rem}.fn-mx-auto{margin-left:auto;margin-right:auto}.fn-mt-2{margin-top:.5rem}.fn-mt-4{margin-top:1rem}.fn-ml-3{margin-left:.75rem}.fn-block{display:block}.fn-flex{display:flex}.fn-inline-flex{display:inline-flex}.fn-hidden{display:none}.fn-h-5{height:1.25rem}.fn-h-12{height:3rem}.fn-w-5{width:1.25rem}.fn-w-10{width:2.5rem}.fn-w-12{width:3rem}.fn-w-full{width:100%}.fn-max-w-4xl{max-width:56rem}.fn-flex-grow{flex-grow:1}@-webkit-keyframes fn-spin{to{transform:rotate(360deg)}}@keyframes fn-spin{to{transform:rotate(360deg)}}@-webkit-keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@keyframes fn-ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes fn-pulse{50%{opacity:.5}}@keyframes fn-pulse{50%{opacity:.5}}@-webkit-keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes fn-bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}.fn-flex-col{flex-direction:column}.fn-items-center{align-items: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-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fn-rounded{border-radius:.25rem}.fn-rounded-md{border-radius:.375rem}.fn-rounded-full{border-radius:9999px}.fn-border{border-width:1px}.fn-border-t{border-top-width:1px}.fn-border-gray-200{--tw-border-opacity: 1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.fn-border-gray-300{--tw-border-opacity: 1;border-color:rgba(209,213,219,var(--tw-border-opacity))}.fn-bg-white{--tw-bg-opacity: 1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.fn-bg-red-400{--tw-bg-opacity: 1;background-color:rgba(248,113,113,var(--tw-bg-opacity))}.fn-bg-yellow-100{--tw-bg-opacity: 1;background-color:rgba(254,243,199,var(--tw-bg-opacity))}.fn-p-4{padding:1rem}.fn-px-2{padding-left:.5rem;padding-right:.5rem}.fn-px-4{padding-left:1rem;padding-right:1rem}.fn-py-0{padding-top:0;padding-bottom:0}.fn-py-2{padding-top:.5rem;padding-bottom:.5rem}.fn-py-3{padding-top:.75rem;padding-bottom:.75rem}.fn-py-4{padding-top:1rem;padding-bottom:1rem}.fn-py-6{padding-top:1.5rem;padding-bottom:1.5rem}.fn-py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.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-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-text-gray-700{--tw-text-opacity: 1;color:rgba(55,65,81,var(--tw-text-opacity))}.fn-text-yellow-800{--tw-text-opacity: 1;color:rgba(146,64,14,var(--tw-text-opacity))}*,:before,:after{--tw-shadow: 0 0 #0000}.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)}*,:before,:after{--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} | ||
`) })(),me}); |
{ | ||
"name": "@feature.ninja/widget", | ||
"version": "0.0.27", | ||
"version": "0.0.28", | ||
"description": "Feature Ninja Widget", | ||
@@ -27,16 +27,16 @@ "main": "./dist/widget.umd.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.15.5", | ||
"@babel/preset-env": "^7.15.6", | ||
"@heroicons/react": "^1.0.4", | ||
"@prefresh/vite": "^2.2.3", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@types/node": "^16.10.1", | ||
"autoprefixer": "^10.3.6", | ||
"esbuild": "^0.13.3", | ||
"postcss": "^8.3.8", | ||
"preact": "^10.5.14", | ||
"rollup": "^2.57.0", | ||
"tailwindcss": "^2.2.16", | ||
"vite": "^2.5.10" | ||
"@babel/core": "7.15.5", | ||
"@babel/preset-env": "7.15.6", | ||
"@heroicons/react": "1.0.4", | ||
"@prefresh/vite": "2.2.3", | ||
"@rollup/plugin-babel": "5.3.0", | ||
"@types/node": "16.10.1", | ||
"autoprefixer": "10.3.6", | ||
"esbuild": "0.13.3", | ||
"postcss": "8.3.8", | ||
"preact": "10.5.14", | ||
"rollup": "2.58.0", | ||
"tailwindcss": "2.2.16", | ||
"vite": "2.6.2" | ||
} | ||
} |
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
6
86377
813
4