@flarehr/apollo-benefits-onboarding 0.1.59654 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
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("h1",{children:"Home"}),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("div",{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})})()})();
|
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.1
|
3
|
+
"version": "0.2.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"files": [
|
6
6
|
"dist/"
|
@@ -23,11 +23,11 @@
|
|
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
33
|
"postcss": "^8.4.14",
|