@flarehr/apollo-benefits-onboarding 0.1.59544
Sign up to get free protection for your applications and to get access to all the features.
Binary file
|
@@ -0,0 +1 @@
|
|
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)}
|
@@ -0,0 +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})})();
|
package/package.json
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
{
|
2
|
+
"name": "@flarehr/apollo-benefits-onboarding",
|
3
|
+
"version": "0.1.59544",
|
4
|
+
"license": "MIT",
|
5
|
+
"files": [
|
6
|
+
"dist/"
|
7
|
+
],
|
8
|
+
"scripts": {
|
9
|
+
"start": "webpack serve --mode development",
|
10
|
+
"build": "webpack --mode production --node-env production",
|
11
|
+
"test": "",
|
12
|
+
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
|
13
|
+
"lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix"
|
14
|
+
},
|
15
|
+
"dependencies": {
|
16
|
+
"preact": "^10.7.2",
|
17
|
+
"preact-custom-element": "^4.2.1",
|
18
|
+
"preact-router": "^4.0.1"
|
19
|
+
},
|
20
|
+
"devDependencies": {
|
21
|
+
"@types/preact-custom-element": "^4.0.1",
|
22
|
+
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
23
|
+
"@typescript-eslint/parser": "^5.26.0",
|
24
|
+
"autoprefixer": "^10.4.7",
|
25
|
+
"css-loader": "^6.7.1",
|
26
|
+
"cssnano": "^5.1.9",
|
27
|
+
"eslint": "^8.16.0",
|
28
|
+
"eslint-config-preact": "^1.3.0",
|
29
|
+
"eslint-config-prettier": "^8.5.0",
|
30
|
+
"eslint-plugin-jest": "^26.2.2",
|
31
|
+
"html-webpack-plugin": "^5.5.0",
|
32
|
+
"jest": "^28.1.0",
|
33
|
+
"mini-css-extract-plugin": "^2.6.0",
|
34
|
+
"postcss": "^8.4.14",
|
35
|
+
"postcss-loader": "^7.0.0",
|
36
|
+
"prettier": "^2.6.2",
|
37
|
+
"tailwindcss": "^3.0.24",
|
38
|
+
"ts-loader": "^9.3.0",
|
39
|
+
"typescript": "^4.7.2",
|
40
|
+
"webpack": "^5.72.1",
|
41
|
+
"webpack-cli": "^4.9.2",
|
42
|
+
"webpack-dev-server": "^4.9.0"
|
43
|
+
}
|
44
|
+
}
|