@flarehr/apollo-benefits-onboarding 0.1.59548 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
(()=>{"use strict";var t={};t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{var e;t.g.importScripts&&(e=t.g.location+"");var n=t.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var r=n.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=e})();var e,n,r,o,i,_,l,u={},c=[],a=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(t,e){for(var n in e)t[n]=e[n];return t}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function p(t,n,r){var o,i,_,l={};for(_ in n)"key"==_?o=n[_]:"ref"==_?i=n[_]:l[_]=n[_];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(_ in t.defaultProps)void 0===l[_]&&(l[_]=t.defaultProps[_]);return h(t,l,o,i,null)}function h(t,e,o,i,_){var l={type:t,props:e,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==_?++r:_};return null==_&&null!=n.vnode&&n.vnode(l),l}function d(t){return t.children}function v(t,e){this.props=t,this.context=e}function m(t,e){if(null==e)return t.__?m(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?m(t):null}function y(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return y(t)}}function g(t){(!t.__d&&(t.__d=!0)&&o.push(t)&&!b.__r++||_!==n.debounceRendering)&&((_=n.debounceRendering)||i)(b)}function b(){for(var t;b.__r=o.length;)t=o.sort((function(t,e){return t.__v.__b-e.__v.__b})),o=[],t.some((function(t){var e,n,r,o,i,_;t.__d&&(i=(o=(e=t).__v).__e,(_=e.__P)&&(n=[],(r=s({},o)).__v=o.__v+1,T(_,o,r,e.__n,void 0!==_.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?m(o):i,o.__h),H(n,o),o.__e!=i&&y(o)))}))}function k(t,e,n,r,o,i,_,l,a,s){var f,p,v,y,g,b,k,x=r&&r.__k||c,A=x.length;for(n.__k=[],f=0;f<e.length;f++)if(null!=(y=n.__k[f]=null==(y=e[f])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?h(null,y,null,null,y):Array.isArray(y)?h(d,{children:y},null,null,null):y.__b>0?h(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(v=x[f])||v&&y.key==v.key&&y.type===v.type)x[f]=void 0;else for(p=0;p<A;p++){if((v=x[p])&&y.key==v.key&&y.type===v.type){x[p]=void 0;break}v=null}T(t,y,v=v||u,o,i,_,l,a,s),g=y.__e,(p=y.ref)&&v.ref!=p&&(k||(k=[]),v.ref&&k.push(v.ref,null,y),k.push(p,y.__c||g,y)),null!=g?(null==b&&(b=g),"function"==typeof y.type&&y.__k===v.__k?y.__d=a=C(y,a,t):a=w(t,y,v,x,g,a),"function"==typeof n.type&&(n.__d=a)):a&&v.__e==a&&a.parentNode!=t&&(a=m(v))}for(n.__e=b,f=A;f--;)null!=x[f]&&("function"==typeof n.type&&null!=x[f].__e&&x[f].__e==n.__d&&(n.__d=m(r,f+1)),N(x[f],x[f]));if(k)for(f=0;f<k.length;f++)O(k[f],k[++f],k[++f])}function C(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?C(r,e,n):w(n,r,r,o,r.__e,e));return e}function x(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){x(t,e)})):e.push(t)),e}function w(t,e,n,r,o,i){var _,l,u;if(void 0!==e.__d)_=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),_=null;else{for(l=i,u=0;(l=l.nextSibling)&&u<r.length;u+=2)if(l==o)break t;t.insertBefore(o,i),_=i}return void 0!==_?_:o.nextSibling}function A(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||a.test(e)?n:n+"px"}function E(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||A(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||A(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?S:P,i):t.removeEventListener(e,i?S:P,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function P(t){this.l[t.type+!1](n.event?n.event(t):t)}function S(t){this.l[t.type+!0](n.event?n.event(t):t)}function T(t,e,r,o,i,_,l,u,c){var a,f,p,h,m,y,g,b,C,x,w,A=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(c=r.__h,u=e.__e=r.__e,e.__h=null,_=[u]),(a=n.__b)&&a(e);try{t:if("function"==typeof A){if(b=e.props,C=(a=A.contextType)&&o[a.__c],x=a?C?C.props.value:a.__:o,r.__c?g=(f=e.__c=r.__c).__=f.__E:("prototype"in A&&A.prototype.render?e.__c=f=new A(b,x):(e.__c=f=new v(b,x),f.constructor=A,f.render=L),C&&C.sub(f),f.props=b,f.state||(f.state={}),f.context=x,f.__n=o,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=s({},f.__s)),s(f.__s,A.getDerivedStateFromProps(b,f.__s))),h=f.props,m=f.state,p)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,x)||e.__v===r.__v){f.props=b,f.state=f.__s,e.__v!==r.__v&&(f.__d=!1),f.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,m,y)}))}f.context=x,f.props=b,f.state=f.__s,(a=n.__r)&&a(e),f.__d=!1,f.__v=e,f.__P=t,a=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(o=s(s({},o),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(h,m)),w=null!=a&&a.type===d&&null==a.key?a.props.children:a,k(t,Array.isArray(w)?w:[w],e,r,o,i,_,l,u,c),f.base=e.__e,e.__h=null,f.__h.length&&l.push(f),g&&(f.__E=f.__=null),f.__e=!1}else null==_&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=U(r.__e,e,r,o,i,_,l,c);(a=n.diffed)&&a(e)}catch(t){e.__v=null,(c||null!=_)&&(e.__e=u,e.__h=!!c,_[_.indexOf(u)]=null),n.__e(t,e,r)}}function H(t,e){n.__c&&n.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){n.__e(t,e.__v)}}))}function U(t,n,r,o,i,_,l,c){var a,s,p,h=r.props,d=n.props,v=n.type,y=0;if("svg"===v&&(i=!0),null!=_)for(;y<_.length;y++)if((a=_[y])&&"setAttribute"in a==!!v&&(v?a.localName===v:3===a.nodeType)){t=a,_[y]=null;break}if(null==t){if(null===v)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,d.is&&d),_=null,c=!1}if(null===v)h===d||c&&t.data===d||(t.data=d);else{if(_=_&&e.call(t.childNodes),s=(h=r.props||u).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=_)for(h={},y=0;y<t.attributes.length;y++)h[t.attributes[y].name]=t.attributes[y].value;(p||s)&&(p&&(s&&p.__html==s.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||E(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||E(t,i,e[i],n[i],r)}(t,d,h,i,c),p)n.__k=[];else if(y=n.props.children,k(t,Array.isArray(y)?y:[y],n,r,o,i&&"foreignObject"!==v,_,l,_?_[0]:r.__k&&m(r,0),c),null!=_)for(y=_.length;y--;)null!=_[y]&&f(_[y]);c||("value"in d&&void 0!==(y=d.value)&&(y!==t.value||"progress"===v&&!y||"option"===v&&y!==h.value)&&E(t,"value",y,h.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==t.checked&&E(t,"checked",y,h.checked,!1))}return t}function O(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){n.__e(t,r)}}function N(t,e,r){var o,i;if(n.unmount&&n.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||O(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){n.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&N(o[i],e,"function"!=typeof t.type);r||null==t.__e||f(t.__e),t.__e=t.__d=void 0}function L(t,e,n){return this.constructor(t,n)}function D(t,r,o){var i,_,l;n.__&&n.__(t,r),_=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],T(r,t=(!i&&o||r).__k=p(d,null,[t]),_||u,u,void 0!==r.ownerSVGElement,!i&&o?[o]:_?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:_?_.__e:r.firstChild,i),H(l,t)}function M(t,e){D(t,e,M)}function j(t,n,r){var o,i,_,l=s({},t.props);for(_ in n)"key"==_?o=n[_]:"ref"==_?i=n[_]:l[_]=n[_];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),h(t.type,l,o||t.key,i||t.ref,null)}e=c.slice,n={__e:function(t,e,n,r){for(var o,i,_;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),_=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),_=o.__d),_)return o.__E=o}catch(e){t=e}throw t}},r=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof t&&(t=t(s({},n),this.props)),t&&s(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),g(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),g(this))},v.prototype.render=d,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b.__r=0,l=0;var R=0;function W(t,e,r,o,i){var _,l,u={};for(l in e)"ref"==l?_=e[l]:u[l]=e[l];var c={type:t,props:u,key:r,ref:_,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--R,__source:i,__self:o};if("function"==typeof t&&(_=t.defaultProps))for(l in _)void 0===u[l]&&(u[l]=_[l]);return n.vnode&&n.vnode(c),c}var F,$,I,B=0,q=[],K=n.__b,G=n.__r,V=n.diffed,z=n.__c,J=n.unmount;function Q(t,e){n.__h&&n.__h($,t,B||e),B=0;var r=$.__H||($.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function X(){for(var t;t=q.shift();)if(t.__P)try{t.__H.__h.forEach(Z),t.__H.__h.forEach(tt),t.__H.__h=[]}catch(e){t.__H.__h=[],n.__e(e,t.__v)}}n.__b=function(t){$=null,K&&K(t)},n.__r=function(t){G&&G(t),F=0;var e=($=t.__c).__H;e&&(e.__h.forEach(Z),e.__h.forEach(tt),e.__h=[])},n.diffed=function(t){V&&V(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==q.push(e)&&I===n.requestAnimationFrame||((I=n.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),Y&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Y&&(e=requestAnimationFrame(n))})(X)),$=null},n.__c=function(t,e){e.some((function(t){try{t.__h.forEach(Z),t.__h=t.__h.filter((function(t){return!t.__||tt(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],n.__e(r,t.__v)}})),z&&z(t,e)},n.unmount=function(t){J&&J(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{Z(t)}catch(t){e=t}})),e&&n.__e(e,r.__v))};var Y="function"==typeof requestAnimationFrame;function Z(t){var e=$,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),$=e}function tt(t){var e=$;t.__c=t.__(),$=e}function et(t,e){return"function"==typeof e?e(t):e}var nt={};function rt(t,e){for(var n in e)t[n]=e[n];return t}function ot(t,e,n){var r,o=/(?:\?([^#]*))?(#.*)?$/,i=t.match(o),_={};if(i&&i[1])for(var l=i[1].split("&"),u=0;u<l.length;u++){var c=l[u].split("=");_[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}t=lt(t.replace(o,"")),e=lt(e||"");for(var a=Math.max(t.length,e.length),s=0;s<a;s++)if(e[s]&&":"===e[s].charAt(0)){var f=e[s].replace(/(^:|[+*?]+$)/g,""),p=(e[s].match(/[+*?]+$/)||nt)[0]||"",h=~p.indexOf("+"),d=~p.indexOf("*"),v=t[s]||"";if(!v&&!d&&(p.indexOf("?")<0||h)){r=!1;break}if(_[f]=decodeURIComponent(v),h||d){_[f]=t.slice(s).map(decodeURIComponent).join("/");break}}else if(e[s]!==t[s]){r=!1;break}return(!0===n.default||!1!==r)&&_}function it(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:t.index-e.index}function _t(t,e){return t.index=e,t.rank=function(t){return t.props.default?0:lt(t.props.path).map(ut).join("")}(t),t.props}function lt(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function ut(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}var ct={},at=[],st=[],ft=null,pt={url:vt()},ht=function(t,e){var n={__c:e="__cC"+l++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(g)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(pt);function dt(){var t=function(t){var e=$.context[t.__c],n=Q(F++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub($)),e.props.value):t.__}(ht);if(t===pt){var e=function(t){return B=1,function(t,e,n){var r=Q(F++,2);return r.t=t,r.__c||(r.__=[et(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=$),r.__}(et,t)}()[1];!function(t,r){var o=Q(F++,3);!n.__s&&function(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}(o.__H,r)&&(o.__=function(){return st.push(e),function(){return st.splice(st.indexOf(e),1)}},o.__H=r,$.__H.__h.push(o))}(0,[])}return[t,mt]}function vt(){var t;return""+((t=ft&&ft.location?ft.location:ft&&ft.getCurrentLocation?ft.getCurrentLocation():"undefined"!=typeof location?location:ct).pathname||"")+(t.search||"")}function mt(t,e){return void 0===e&&(e=!1),"string"!=typeof t&&t.url&&(e=t.replace,t=t.url),function(t){for(var e=at.length;e--;)if(at[e].canRoute(t))return!0;return!1}(t)&&function(t,e){void 0===e&&(e="push"),ft&&ft[e]?ft[e](t):"undefined"!=typeof history&&history[e+"State"]&&history[e+"State"](null,null,t)}(t,e?"replace":"push"),yt(t)}function yt(t){for(var e=!1,n=0;n<at.length;n++)at[n].routeTo(t)&&(e=!0);return e}function gt(t){if(t&&t.getAttribute){var e=t.getAttribute("href"),n=t.getAttribute("target");if(e&&e.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return mt(e)}}function bt(t){return t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault(),!1}function kt(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button)){var e=t.target;do{if("a"===e.localName&&e.getAttribute("href")){if(e.hasAttribute("data-native")||e.hasAttribute("native"))return;if(gt(e))return bt(t)}}while(e=e.parentNode)}}var Ct=!1;function xt(t){t.history&&(ft=t.history),this.state={url:t.url||vt()}}rt(xt.prototype=new v,{shouldComponentUpdate:function(t){return!0!==t.static||t.url!==this.props.url||t.onChange!==this.props.onChange},canRoute:function(t){var e=x(this.props.children);return void 0!==this.g(e,t)},routeTo:function(t){this.setState({url:t});var e=this.canRoute(t);return this.p||this.forceUpdate(),e},componentWillMount:function(){this.p=!0},componentDidMount:function(){var t=this;Ct||(Ct=!0,ft||addEventListener("popstate",(function(){yt(vt())})),addEventListener("click",kt)),at.push(this),ft&&(this.u=ft.listen((function(e){var n=e.location||e;t.routeTo(""+(n.pathname||"")+(n.search||""))}))),this.p=!1},componentWillUnmount:function(){"function"==typeof this.u&&this.u(),at.splice(at.indexOf(this),1)},componentWillUpdate:function(){this.p=!0},componentDidUpdate:function(){this.p=!1},g:function(t,e){t=t.filter(_t).sort(it);for(var n=0;n<t.length;n++){var r=t[n],o=ot(e,r.props.path,r.props);if(o)return[r,o]}},render:function(t,e){var n,r,o=t.onChange,i=e.url,_=this.c,l=this.g(x(t.children),i);if(l&&(r=j(l[0],rt(rt({url:i,matches:n=l[1]},n),{key:void 0,ref:void 0}))),i!==(_&&_.url)){rt(pt,_=this.c={url:i,previous:_&&_.url,current:r,path:r?r.props.path:null,matches:n}),_.router=this,_.active=r?[r]:[];for(var u=st.length;u--;)st[u]({});"function"==typeof o&&o(_)}return p(ht.Provider,{value:_},r)}});var wt=function(t){return p("a",rt({onClick:kt},t))},At=function(t){return p(t.component,t)};const Et=()=>W("div",{children:[W("h1",{children:"Home"}),W("p",{children:"This is the Home component."})]});var Pt=["className","activeClass","activeClassName","path"];function St(t){var e=t.className,n=t.activeClass,r=t.activeClassName,o=t.path,i=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}(t,Pt),_=dt()[0],l=o&&_.path&&ot(_.path,o,{})||ot(_.url,i.href,{}),u=i.class||e||"",c=l&&(n||r)||"";return i.class=u+(u&&c&&" ")+c,p(wt,i)}const Tt=()=>W("div",{children:[W("h1",{children:"Error 404"}),W("p",{children:"That page doesn't exist."}),W(St,{href:"/",children:W("h4",{children:"Back to Home"})})]});function Ht(t){let e=t;if(document.currentScript){const n=document.currentScript.src,r=n.split("/").at(-1);if(r)try{const o=new URL(t);e=n.replace(`/${r}`,o.pathname)}catch(o){e=n.replace(r,t)}}return e}const Ut=t.p+"assets/icon.png",Ot=()=>W("header",{children:[W("h1",{children:"Preact App"}),W("img",{src:Ht(Ut)}),W("nav",{children:W(St,{href:"/",children:"Home"})})]});function Nt(){return(Nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Lt(t){this.getChildContext=function(){return t.context};var e=t.children,n=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e.indexOf(n=i[r])>=0||(o[n]=t[n]);return o}(t,["context","children"]);return j(e,n)}function Dt(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=p(Lt,Nt({},this._props,{context:t.detail.context}),function t(e,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var r=[],o={},i=0,_=e.attributes,l=e.childNodes;for(i=_.length;i--;)"slot"!==_[i].name&&(o[_[i].name]=_[i].value,o[Mt(_[i].name)]=_[i].value);for(i=l.length;i--;){var u=t(l[i],null),c=l[i].slot;c?o[c]=p(Wt,{name:c},u):r[i]=u}var a=n?p(Wt,null,r):r;return p(n||e.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?M:D)(this._vdom,this._root)}function Mt(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function jt(t,e,n){if(this._vdom){var r={};r[t]=n=null==n?void 0:n,r[Mt(t)]=n,this._vdom=j(this._vdom,r),D(this._vdom,this._root)}}function Rt(){D(this._vdom=null,this._root)}function Wt(t,e){var n=this;return p("slot",Nt({},t,{ref:function(t){t?(n.ref=t,n._listener||(n._listener=function(t){t.stopPropagation(),t.detail.context=e},t.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}!function(t,e,n,r){function o(){var e=Reflect.construct(HTMLElement,[],o);return e._vdomComponent=t,e._root=r&&r.shadow?e.attachShadow({mode:"open"}):e,e}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Dt,o.prototype.attributeChangedCallback=jt,o.prototype.disconnectedCallback=Rt,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),o.observedAttributes=n,n.forEach((function(t){Object.defineProperty(o.prototype,t,{get:function(){return this._vdom.props[t]},set:function(e){this._vdom?this.attributeChangedCallback(t,null,e):(this._props||(this._props={}),this._props[t]=e,this.connectedCallback());var n=typeof e;null!=e&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(t,e)}})})),customElements.define("benefits-onboarding",o)}((t=>{const e={backendUrl:t["backend-url"],accessToken:t["access-token"]};return W("div",{children:[W("link",{rel:"stylesheet",href:Ht("benefits-onboarding.css")}),W("div",{class:"font-sans",children:[W(Ot,{}),W(xt,{children:[W(At,{path:"/",component:Et}),W(Tt,{default:!0})]})]}),"Config: ",JSON.stringify(e)]})}),0,["backend-url","access-token"],{shadow:!0})})();
|
1
|
+
(()=>{"use strict";var t={383:(t,e,n)=>{n.d(e,{Z:()=>a});var o=n(81),r=n.n(o),i=n(645),l=n.n(i)()(r());l.push([t.id,'/*! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}',""]);const a=l},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,i){"string"==typeof t&&(t=[[null,t,void 0]]);var l={};if(o)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(l[u]=!0)}for(var c=0;c<t.length;c++){var s=[].concat(t[c]);o&&l[s[0]]||(void 0!==i&&(void 0===s[5]||(s[1]="@layer".concat(s[5].length>0?" ".concat(s[5]):""," {").concat(s[1],"}")),s[5]=i),n&&(s[2]?(s[1]="@media ".concat(s[2]," {").concat(s[1],"}"),s[2]=n):s[2]=n),r&&(s[4]?(s[1]="@supports (".concat(s[4],") {").concat(s[1],"}"),s[4]=r):s[4]="".concat(r)),e.push(s))}},e}},81:t=>{t.exports=function(t){return t[1]}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,exports:{}};return t[o](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");o.length&&(t=o[o.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})(),(()=>{var t,e,o,r,i,l,a,u={},c=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function _(t,e){for(var n in e)t[n]=e[n];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function f(e,n,o){var r,i,l,a={};for(l in n)"key"==l?r=n[l]:"ref"==l?i=n[l]:a[l]=n[l];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):o),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===a[l]&&(a[l]=e.defaultProps[l]);return h(e,a,r,i,null)}function h(t,n,r,i,l){var a={type:t,props:n,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++o:l};return null==l&&null!=e.vnode&&e.vnode(a),a}function d(t){return t.children}function v(t,e){this.props=t,this.context=e}function m(t,e){if(null==e)return t.__?m(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?m(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function y(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!b.__r++||l!==e.debounceRendering)&&((l=e.debounceRendering)||i)(b)}function b(){for(var t;b.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,o,r,i,l;t.__d&&(i=(r=(e=t).__v).__e,(l=e.__P)&&(n=[],(o=_({},r)).__v=r.__v+1,O(l,r,o,e.__n,void 0!==l.ownerSVGElement,null!=r.__h?[i]:null,n,null==i?m(r):i,r.__h),U(n,r),r.__e!=i&&g(r)))}))}function w(t,e,n,o,r,i,l,a,s,_){var p,f,v,g,y,b,w,x=o&&o.__k||c,S=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(g=n.__k[p]=null==(g=e[p])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?h(null,g,null,null,g):Array.isArray(g)?h(d,{children:g},null,null,null):g.__b>0?h(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(v=x[p])||v&&g.key==v.key&&g.type===v.type)x[p]=void 0;else for(f=0;f<S;f++){if((v=x[f])&&g.key==v.key&&g.type===v.type){x[f]=void 0;break}v=null}O(t,g,v=v||u,r,i,l,a,s,_),y=g.__e,(f=g.ref)&&v.ref!=f&&(w||(w=[]),v.ref&&w.push(v.ref,null,g),w.push(f,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===v.__k?g.__d=s=k(g,s,t):s=C(t,g,v,x,y,s),"function"==typeof n.type&&(n.__d=s)):s&&v.__e==s&&s.parentNode!=t&&(s=m(v))}for(n.__e=b,p=S;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=m(o,p+1)),H(x[p],x[p]));if(w)for(p=0;p<w.length;p++)T(w[p],w[++p],w[++p])}function k(t,e,n){for(var o,r=t.__k,i=0;r&&i<r.length;i++)(o=r[i])&&(o.__=t,e="function"==typeof o.type?k(o,e,n):C(n,o,o,r,o.__e,e));return e}function x(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){x(t,e)})):e.push(t)),e}function C(t,e,n,o,r,i){var l,a,u;if(void 0!==e.__d)l=e.__d,e.__d=void 0;else if(null==n||r!=i||null==r.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(r),l=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<o.length;u+=2)if(a==r)break t;t.insertBefore(r,i),l=i}return void 0!==l?l:r.nextSibling}function S(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||s.test(e)?n:n+"px"}function E(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||S(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||S(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o||t.addEventListener(e,i?P:A,i):t.removeEventListener(e,i?P:A,i);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function A(t){this.l[t.type+!1](e.event?e.event(t):t)}function P(t){this.l[t.type+!0](e.event?e.event(t):t)}function O(t,n,o,r,i,l,a,u,c){var s,p,f,h,m,g,y,b,k,x,C,S=n.type;if(void 0!==n.constructor)return null;null!=o.__h&&(c=o.__h,u=n.__e=o.__e,n.__h=null,l=[u]),(s=e.__b)&&s(n);try{t:if("function"==typeof S){if(b=n.props,k=(s=S.contextType)&&r[s.__c],x=s?k?k.props.value:s.__:r,o.__c?y=(p=n.__c=o.__c).__=p.__E:("prototype"in S&&S.prototype.render?n.__c=p=new S(b,x):(n.__c=p=new v(b,x),p.constructor=S,p.render=N),k&&k.sub(p),p.props=b,p.state||(p.state={}),p.context=x,p.__n=r,f=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=S.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=_({},p.__s)),_(p.__s,S.getDerivedStateFromProps(b,p.__s))),h=p.props,m=p.state,f)null==S.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==S.getDerivedStateFromProps&&b!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,x),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,x)||n.__v===o.__v){p.props=b,p.state=p.__s,n.__v!==o.__v&&(p.__d=!1),p.__v=n,n.__e=o.__e,n.__k=o.__k,n.__k.forEach((function(t){t&&(t.__=n)})),p.__h.length&&a.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,x),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,m,g)}))}p.context=x,p.props=b,p.state=p.__s,(s=e.__r)&&s(n),p.__d=!1,p.__v=n,p.__P=t,s=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(r=_(_({},r),p.getChildContext())),f||null==p.getSnapshotBeforeUpdate||(g=p.getSnapshotBeforeUpdate(h,m)),C=null!=s&&s.type===d&&null==s.key?s.props.children:s,w(t,Array.isArray(C)?C:[C],n,o,r,i,l,a,u,c),p.base=n.__e,n.__h=null,p.__h.length&&a.push(p),y&&(p.__E=p.__=null),p.__e=!1}else null==l&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=j(o.__e,n,o,r,i,l,a,c);(s=e.diffed)&&s(n)}catch(t){n.__v=null,(c||null!=l)&&(n.__e=u,n.__h=!!c,l[l.indexOf(u)]=null),e.__e(t,n,o)}}function U(t,n){e.__c&&e.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){e.__e(t,n.__v)}}))}function j(e,n,o,r,i,l,a,c){var s,_,f,h=o.props,d=n.props,v=n.type,g=0;if("svg"===v&&(i=!0),null!=l)for(;g<l.length;g++)if((s=l[g])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){e=s,l[g]=null;break}if(null==e){if(null===v)return document.createTextNode(d);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,d.is&&d),l=null,c=!1}if(null===v)h===d||c&&e.data===d||(e.data=d);else{if(l=l&&t.call(e.childNodes),_=(h=o.props||u).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=l)for(h={},g=0;g<e.attributes.length;g++)h[e.attributes[g].name]=e.attributes[g].value;(f||_)&&(f&&(_&&f.__html==_.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(t,e,n,o,r){var i;for(i in n)"children"===i||"key"===i||i in e||E(t,i,null,n[i],o);for(i in e)r&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||E(t,i,e[i],n[i],o)}(e,d,h,i,c),f)n.__k=[];else if(g=n.props.children,w(e,Array.isArray(g)?g:[g],n,o,r,i&&"foreignObject"!==v,l,a,l?l[0]:o.__k&&m(o,0),c),null!=l)for(g=l.length;g--;)null!=l[g]&&p(l[g]);c||("value"in d&&void 0!==(g=d.value)&&(g!==e.value||"progress"===v&&!g||"option"===v&&g!==h.value)&&E(e,"value",g,h.value,!1),"checked"in d&&void 0!==(g=d.checked)&&g!==e.checked&&E(e,"checked",g,h.checked,!1))}return e}function T(t,n,o){try{"function"==typeof t?t(n):t.current=n}catch(t){e.__e(t,o)}}function H(t,n,o){var r,i;if(e.unmount&&e.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||T(r,null,n)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){e.__e(t,n)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&H(r[i],n,"function"!=typeof t.type);o||null==t.__e||p(t.__e),t.__e=t.__d=void 0}function N(t,e,n){return this.constructor(t,n)}function M(n,o,r){var i,l,a;e.__&&e.__(n,o),l=(i="function"==typeof r)?null:r&&r.__k||o.__k,a=[],O(o,n=(!i&&r||o).__k=f(d,null,[n]),l||u,u,void 0!==o.ownerSVGElement,!i&&r?[r]:l?null:o.firstChild?t.call(o.childNodes):null,a,!i&&r?r:l?l.__e:o.firstChild,i),U(a,n)}function L(t,e){M(t,e,L)}function z(e,n,o){var r,i,l,a=_({},e.props);for(l in n)"key"==l?r=n[l]:"ref"==l?i=n[l]:a[l]=n[l];return arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):o),h(e.type,a,r||e.key,i||e.ref,null)}t=c.slice,e={__e:function(t,e,n,o){for(var r,i,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),l=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),l=r.__d),l)return r.__E=r}catch(e){t=e}throw t}},o=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=_({},this.state),"function"==typeof t&&(t=t(_({},n),this.props)),t&&_(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),y(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},v.prototype.render=d,r=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b.__r=0,a=0;var I=0;function D(t,n,o,r,i){var l,a,u={};for(a in n)"ref"==a?l=n[a]:u[a]=n[a];var c={type:t,props:u,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--I,__source:i,__self:r};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return e.vnode&&e.vnode(c),c}var F,R,W,$=0,B=[],q=e.__b,K=e.__r,G=e.diffed,V=e.__c,Z=e.unmount;function J(t,n){e.__h&&e.__h(R,t,$||n),$=0;var o=R.__H||(R.__H={__:[],__h:[]});return t>=o.__.length&&o.__.push({}),o.__[t]}function Q(){for(var t;t=B.shift();)if(t.__P)try{t.__H.__h.forEach(Y),t.__H.__h.forEach(tt),t.__H.__h=[]}catch(n){t.__H.__h=[],e.__e(n,t.__v)}}e.__b=function(t){R=null,q&&q(t)},e.__r=function(t){K&&K(t),F=0;var e=(R=t.__c).__H;e&&(e.__h.forEach(Y),e.__h.forEach(tt),e.__h=[])},e.diffed=function(t){G&&G(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==B.push(n)&&W===e.requestAnimationFrame||((W=e.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(o),X&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);X&&(e=requestAnimationFrame(n))})(Q)),R=null},e.__c=function(t,n){n.some((function(t){try{t.__h.forEach(Y),t.__h=t.__h.filter((function(t){return!t.__||tt(t)}))}catch(o){n.some((function(t){t.__h&&(t.__h=[])})),n=[],e.__e(o,t.__v)}})),V&&V(t,n)},e.unmount=function(t){Z&&Z(t);var n,o=t.__c;o&&o.__H&&(o.__H.__.forEach((function(t){try{Y(t)}catch(t){n=t}})),n&&e.__e(n,o.__v))};var X="function"==typeof requestAnimationFrame;function Y(t){var e=R,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),R=e}function tt(t){var e=R;t.__c=t.__(),R=e}function et(t,e){return"function"==typeof e?e(t):e}var nt={};function ot(t,e){for(var n in e)t[n]=e[n];return t}function rt(t,e,n){var o,r=/(?:\?([^#]*))?(#.*)?$/,i=t.match(r),l={};if(i&&i[1])for(var a=i[1].split("&"),u=0;u<a.length;u++){var c=a[u].split("=");l[decodeURIComponent(c[0])]=decodeURIComponent(c.slice(1).join("="))}t=at(t.replace(r,"")),e=at(e||"");for(var s=Math.max(t.length,e.length),_=0;_<s;_++)if(e[_]&&":"===e[_].charAt(0)){var p=e[_].replace(/(^:|[+*?]+$)/g,""),f=(e[_].match(/[+*?]+$/)||nt)[0]||"",h=~f.indexOf("+"),d=~f.indexOf("*"),v=t[_]||"";if(!v&&!d&&(f.indexOf("?")<0||h)){o=!1;break}if(l[p]=decodeURIComponent(v),h||d){l[p]=t.slice(_).map(decodeURIComponent).join("/");break}}else if(e[_]!==t[_]){o=!1;break}return(!0===n.default||!1!==o)&&l}function it(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:t.index-e.index}function lt(t,e){return t.index=e,t.rank=function(t){return t.props.default?0:at(t.props.path).map(ut).join("")}(t),t.props}function at(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function ut(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}var ct={},st=[],_t=[],pt=null,ft={url:vt()},ht=function(t,e){var n={__c:e="__cC"+a++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(y)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}(ft);function dt(){var t=function(t){var e=R.context[t.__c],n=J(F++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(R)),e.props.value):t.__}(ht);if(t===ft){var n=function(t){return $=1,function(t,e,n){var o=J(F++,2);return o.t=t,o.__c||(o.__=[et(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=R),o.__}(et,t)}()[1];!function(t,o){var r=J(F++,3);!e.__s&&function(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}(r.__H,o)&&(r.__=function(){return _t.push(n),function(){return _t.splice(_t.indexOf(n),1)}},r.__H=o,R.__H.__h.push(r))}(0,[])}return[t,mt]}function vt(){var t;return""+((t=pt&&pt.location?pt.location:pt&&pt.getCurrentLocation?pt.getCurrentLocation():"undefined"!=typeof location?location:ct).pathname||"")+(t.search||"")}function mt(t,e){return void 0===e&&(e=!1),"string"!=typeof t&&t.url&&(e=t.replace,t=t.url),function(t){for(var e=st.length;e--;)if(st[e].canRoute(t))return!0;return!1}(t)&&function(t,e){void 0===e&&(e="push"),pt&&pt[e]?pt[e](t):"undefined"!=typeof history&&history[e+"State"]&&history[e+"State"](null,null,t)}(t,e?"replace":"push"),gt(t)}function gt(t){for(var e=!1,n=0;n<st.length;n++)st[n].routeTo(t)&&(e=!0);return e}function yt(t){if(t&&t.getAttribute){var e=t.getAttribute("href"),n=t.getAttribute("target");if(e&&e.match(/^\//g)&&(!n||n.match(/^_?self$/i)))return mt(e)}}function bt(t){return t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault(),!1}function wt(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||t.button)){var e=t.target;do{if("a"===e.localName&&e.getAttribute("href")){if(e.hasAttribute("data-native")||e.hasAttribute("native"))return;if(yt(e))return bt(t)}}while(e=e.parentNode)}}var kt=!1;function xt(t){t.history&&(pt=t.history),this.state={url:t.url||vt()}}ot(xt.prototype=new v,{shouldComponentUpdate:function(t){return!0!==t.static||t.url!==this.props.url||t.onChange!==this.props.onChange},canRoute:function(t){var e=x(this.props.children);return void 0!==this.g(e,t)},routeTo:function(t){this.setState({url:t});var e=this.canRoute(t);return this.p||this.forceUpdate(),e},componentWillMount:function(){this.p=!0},componentDidMount:function(){var t=this;kt||(kt=!0,pt||addEventListener("popstate",(function(){gt(vt())})),addEventListener("click",wt)),st.push(this),pt&&(this.u=pt.listen((function(e){var n=e.location||e;t.routeTo(""+(n.pathname||"")+(n.search||""))}))),this.p=!1},componentWillUnmount:function(){"function"==typeof this.u&&this.u(),st.splice(st.indexOf(this),1)},componentWillUpdate:function(){this.p=!0},componentDidUpdate:function(){this.p=!1},g:function(t,e){t=t.filter(lt).sort(it);for(var n=0;n<t.length;n++){var o=t[n],r=rt(e,o.props.path,o.props);if(r)return[o,r]}},render:function(t,e){var n,o,r=t.onChange,i=e.url,l=this.c,a=this.g(x(t.children),i);if(a&&(o=z(a[0],ot(ot({url:i,matches:n=a[1]},n),{key:void 0,ref:void 0}))),i!==(l&&l.url)){ot(ft,l=this.c={url:i,previous:l&&l.url,current:o,path:o?o.props.path:null,matches:n}),l.router=this,l.active=o?[o]:[];for(var u=_t.length;u--;)_t[u]({});"function"==typeof r&&r(l)}return f(ht.Provider,{value:l},o)}});var Ct=function(t){return f("a",ot({onClick:wt},t))},St=function(t){return f(t.component,t)};const Et=function(){return D("div",{children:D("p",{children:"This is the Home component."})})};var At=["className","activeClass","activeClassName","path"];function Pt(t){var e=t.className,n=t.activeClass,o=t.activeClassName,r=t.path,i=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}(t,At),l=dt()[0],a=r&&l.path&&rt(l.path,r,{})||rt(l.url,i.href,{}),u=i.class||e||"",c=a&&(n||o)||"";return i.class=u+(u&&c&&" ")+c,f(Ct,i)}var Ot=function(){return Ot=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Ot.apply(this,arguments)};const Ut=function(){return D("div",{children:[D("h1",{children:"Error 404"}),D("p",{children:"That page doesn't exist."}),D(Pt,Ot({href:"/"},{children:D("h4",{children:"Back to Home"})}))]})},jt=n.p+"assets/icon.png";var Tt=function(){return Tt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Tt.apply(this,arguments)};const Ht=function(){return D("header",{children:[D("h1",{children:"Preact App"}),D("img",{src:jt}),D("nav",{children:D(Pt,Tt({href:"/"},{children:"Home"}))})]})};var Nt=n(383),Mt=function(){return Mt=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},Mt.apply(this,arguments)};function Lt(){return(Lt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function zt(t){this.getChildContext=function(){return t.context};var e=t.children,n=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)e.indexOf(n=i[o])>=0||(r[n]=t[n]);return r}(t,["context","children"]);return z(e,n)}function It(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=f(zt,Lt({},this._props,{context:t.detail.context}),function t(e,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var o=[],r={},i=0,l=e.attributes,a=e.childNodes;for(i=l.length;i--;)"slot"!==l[i].name&&(r[l[i].name]=l[i].value,r[Dt(l[i].name)]=l[i].value);for(i=a.length;i--;){var u=t(a[i],null),c=a[i].slot;c?r[c]=f(Wt,{name:c},u):o[i]=u}var s=n?f(Wt,null,o):o;return f(n||e.nodeName.toLowerCase(),r,s)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?L:M)(this._vdom,this._root)}function Dt(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function Ft(t,e,n){if(this._vdom){var o={};o[t]=n=null==n?void 0:n,o[Dt(t)]=n,this._vdom=z(this._vdom,o),M(this._vdom,this._root)}}function Rt(){M(this._vdom=null,this._root)}function Wt(t,e){var n=this;return f("slot",Lt({},t,{ref:function(t){t?(n.ref=t,n._listener||(n._listener=function(t){t.stopPropagation(),t.detail.context=e},t.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}!function(t,e,n,o){function r(){var e=Reflect.construct(HTMLElement,[],r);return e._vdomComponent=t,e._root=o&&o.shadow?e.attachShadow({mode:"open"}):e,e}(r.prototype=Object.create(HTMLElement.prototype)).constructor=r,r.prototype.connectedCallback=It,r.prototype.attributeChangedCallback=Ft,r.prototype.disconnectedCallback=Rt,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),r.observedAttributes=n,n.forEach((function(t){Object.defineProperty(r.prototype,t,{get:function(){return this._vdom.props[t]},set:function(e){this._vdom?this.attributeChangedCallback(t,null,e):(this._props||(this._props={}),this._props[t]=e,this.connectedCallback());var n=typeof e;null!=e&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(t,e)}})})),customElements.define("benefits-onboarding",r)}((function(t){var e={backendUrl:t["backend-url"],accessToken:t["access-token"]};return D(d,{children:[D("style",{children:Nt.Z}),D("div",Mt({class:"font-sans"},{children:[D(Ht,{}),D(xt,{children:[D(St,{path:"/",component:Et}),D(Ut,{default:!0})]}),"Config: ",JSON.stringify(e)]}))]})}),0,["backend-url","access-token"],{shadow:!0})})()})();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flarehr/apollo-benefits-onboarding",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.3.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist/"
|
@@ -23,14 +23,13 @@
|
|
23
23
|
"@typescript-eslint/parser": "^5.26.0",
|
24
24
|
"autoprefixer": "^10.4.7",
|
25
25
|
"css-loader": "^6.7.1",
|
26
|
-
"cssnano": "^5.1.
|
26
|
+
"cssnano": "^5.1.10",
|
27
27
|
"eslint": "^8.16.0",
|
28
28
|
"eslint-config-preact": "^1.3.0",
|
29
29
|
"eslint-config-prettier": "^8.5.0",
|
30
|
-
"eslint-plugin-jest": "^26.
|
30
|
+
"eslint-plugin-jest": "^26.4.5",
|
31
31
|
"html-webpack-plugin": "^5.5.0",
|
32
32
|
"jest": "^28.1.0",
|
33
|
-
"mini-css-extract-plugin": "^2.6.0",
|
34
33
|
"postcss": "^8.4.14",
|
35
34
|
"postcss-loader": "^7.0.0",
|
36
35
|
"prettier": "^2.6.2",
|
@@ -1 +0,0 @@
|
|
1
|
-
/*! tailwindcss v3.0.24 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
|