@flarehr/superhero-pba-support-admin 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,17 +1,15 @@
1
- # pba-support-admin
1
+ # pre-benefits-admin
2
2
 
3
3
  ## CLI Commands
4
4
 
5
- - `npm start`: Run a development, HMR server
6
-
7
5
  - `npm install`: Installs dependencies
8
6
 
7
+ - `npm start`: Run a development, HMR server
8
+
9
9
  - `npm run build`: Production-ready build
10
10
 
11
11
  - `npm run lint`: Pass TypeScript files using ESLint
12
12
 
13
- - `npm run lint`: Fix TypeScript files using ESLint
14
-
15
13
  - `npm run test`: Run Jest and Enzyme with
16
14
  [`enzyme-adapter-preact-pure`](https://github.com/preactjs/enzyme-adapter-preact-pure) for
17
15
  your tests
Binary file
File without changes
@@ -0,0 +1,41 @@
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="mdyV")}({"3Tbp":function(e,t,n){"use strict";(function(e,r){var o=n("mdg6");const i=[{accountId:"123456",profileId:"999999999",firstName:"Hugh",lastName:"Jackman",email:"hugh.jackman@mcdonalds.com",mobile:"04222222222",dob:"1969-02-02",address:"Sydney",state:"NSW",PostCode:"2195"},{accountId:"123456",profileId:"888888888",firstName:"Hugh",lastName:"Jackman",email:"hugh.jackman@jdSports.com",mobile:"04222222222",dob:"1969-02-02",address:"Sydney",state:"NSW",PostCode:"2195"}];t.a=()=>e(r,null,e(o.d,null,e(o.e,null,e(o.b,null,e(o.c,null,e(o.k,null,e(o.i,null,e(o.j,null,e(o.h,{scope:"col"},"Account Id"),e(o.h,{scope:"col"},"Profile Id"),e(o.h,{scope:"col"},"FirstName"),e(o.h,{scope:"col"},"LastName"),e(o.h,{scope:"col"},"Email"),e(o.h,{scope:"col"},"Mobile"),e(o.h,{scope:"col"},"DOB"),e(o.h,{scope:"col"},"Address"),e(o.h,{scope:"col"},"State"),e(o.h,{scope:"col"},"Postcode"))),e(o.f,null,i.map((t=>e(o.j,{key:t.email},e(o.a,null,t.accountId),e(o.g,null,t.profileId),e(o.g,null,t.firstName),e(o.g,null,t.lastName),e(o.g,null,t.email),e(o.g,null,t.mobile),e(o.g,null,t.dob),e(o.g,null,t.address),e(o.g,null,t.state),e(o.g,null,t.PostCode)))))))))))}).call(this,n("hosL").h,n("hosL").Fragment)},"5+bp":function(e,t,n){"use strict";(function(e){var r=n("hosL"),o=n("paZ/"),i=n("QRet"),l=n("3Tbp"),c=n("cSVd"),a=n("LBRg");Object(o.a)(r.h);t.a=()=>{const[t,n]=Object(i.a)(!1);return Object(r.h)(e,null,Object(r.h)(a.a,null,"Customer Search"),Object(r.h)(c.a,{onClick:e=>{e?"test.test@gmail.com"===e?n(!0):alert("No Record Found with Email provided!"):alert("Please enter email address!")}}),t&&Object(r.h)(l.a,null))}}).call(this,n("hosL").Fragment)},"5Ypr":function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return y}));var r=n("paZ/");let o,i,l,c,a,u,_,d,s=e=>e;const p=Object(r.b)("div")(o||(o=s`
2
+ ${0}
3
+ `),(()=>({display:"flex",flexDirection:"column",marginTop:"1rem",marginLeft:"1rem"}))),f=Object(r.b)("h3")(i||(i=s`
4
+ ${0}
5
+ `),(()=>({"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700",marginTop:"0.5rem"}))),h=Object(r.b)("div")(l||(l=s`
6
+ ${0}
7
+ `),(()=>({width:"25%",marginTop:"2rem"}))),m=Object(r.b)("div")(c||(c=s`
8
+ ${0}
9
+ `),(()=>({display:"flex",justifyContent:"space-between",marginTop:"1.5rem"}))),v=Object(r.b)("label")(a||(a=s`
10
+ ${0}
11
+ `),(()=>({"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700",marginTop:"0.5rem"}))),b=Object(r.b)("input")(u||(u=s`
12
+ ${0}
13
+ `),(()=>({"--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",appearance:"none",borderWidth:"1px",borderRadius:"0.25rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem","--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",lineHeight:"1.25","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"}}))),g=Object(r.b)("div")(_||(_=s`
14
+ ${0}
15
+ `),(()=>({display:"flex",justifyContent:"flex-end",marginTop:"1.5rem"}))),y=Object(r.b)("button")(d||(d=s`
16
+ ${0}
17
+ `),(()=>({"--tw-bg-opacity":"1",backgroundColor:"rgba(99, 102, 241, var(--tw-bg-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(49, 46, 129, var(--tw-bg-opacity))"},"--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))",fontWeight:"700",paddingTop:"0.25rem",paddingBottom:"0.25rem",paddingLeft:"1rem",paddingRight:"1rem",borderRadius:"0.25rem","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"}})))},LBRg:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("paZ/");let o;const i=Object(r.b)("span")(o||(o=(e=>e)`
18
+ ${0}
19
+ `),(()=>({height:"3rem",width:"3rem","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"})))},QRet:function(e,t,n){"use strict";function r(e,t){s.options.__h&&s.options.__h(_,e,p||t),p=0;var n=_.__H||(_.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function o(e){return p=1,function(e,t,n){var o=r(u++,2);return o.t=e,o.__c||(o.__=[n?n(t):a(void 0,t),function(e){var t=o.t(o.__[0],e);o.__[0]!==t&&(o.__=[t,o.__[1]],o.__c.setState({}))}],o.__c=_),o.__}(a,e)}function i(){for(var e;e=f.shift();)if(e.__P)try{e.__H.__h.forEach(l),e.__H.__h.forEach(c),e.__H.__h=[]}catch(t){e.__H.__h=[],s.options.__e(t,e.__v)}}function l(e){var t=_,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),_=t}function c(e){var t=_;e.__c=e.__(),_=t}function a(e,t){return"function"==typeof t?t(e):t}n.d(t,"a",(function(){return o}));var u,_,d,s=n("hosL"),p=0,f=[],h=s.options.__b,m=s.options.__r,v=s.options.diffed,b=s.options.__c,g=s.options.unmount;s.options.__b=function(e){_=null,h&&h(e)},s.options.__r=function(e){m&&m(e),u=0;var t=(_=e.__c).__H;t&&(t.__h.forEach(l),t.__h.forEach(c),t.__h=[])},s.options.diffed=function(e){v&&v(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==f.push(t)&&d===s.options.requestAnimationFrame||((d=s.options.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),y&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);y&&(t=requestAnimationFrame(n))})(i)),_=null},s.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(l),e.__h=e.__h.filter((function(e){return!e.__||c(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],s.options.__e(n,e.__v)}})),b&&b(e,t)},s.options.unmount=function(e){g&&g(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{l(e)}catch(e){t=e}})),t&&s.options.__e(t,n.__v))};var y="function"==typeof requestAnimationFrame},cSVd:function(e,t,n){"use strict";(function(e,r){var o=n("QRet"),i=n("5Ypr");t.a=t=>{const[n,l]=Object(o.a)("");return e(r,null,e(i.c,null,e(i.h,null,"Search for PBA Customer with Email:"),e(i.g,null,e(i.f,null,e(i.e,null,"Email Address"),e(i.d,{name:"emailAddress",placeholder:"users@email.com",type:"text","aria-describedby":"emailAddress",onChange:e=>{e.preventDefault(),l(e.target.value)},required:!0})),e(i.b,null,e(i.a,{onClick:e=>{e.preventDefault(),t.onClick(n)}},"Search")))))}}).call(this,n("hosL").h,n("hosL").Fragment)},hosL:function(e,t,n){"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}function o(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,o,i,c={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:c[i]=t[i];if(arguments.length>2&&(c.children=arguments.length>3?P.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===c[i]&&(c[i]=e.defaultProps[i]);return l(e,c,r,o,null)}function l(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++H:o};return null==o&&null!=N.vnode&&N.vnode(i),i}function c(){return{current:null}}function a(e){return e.children}function u(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?_(e):null}function d(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return d(e)}}function s(e){(!e.__d&&(e.__d=!0)&&W.push(e)&&!p.__r++||D!==N.debounceRendering)&&((D=N.debounceRendering)||$)(p)}function p(){for(var e;p.__r=W.length;)e=W.sort((function(e,t){return e.__v.__b-t.__v.__b})),W=[],e.some((function(e){var t,n,o,i,l,c;e.__d&&(l=(i=(t=e).__v).__e,(c=t.__P)&&(n=[],(o=r({},i)).__v=i.__v+1,x(c,i,o,t.__n,void 0!==c.ownerSVGElement,null!=i.__h?[l]:null,n,null==l?_(i):l,i.__h),k(n,i),i.__e!=l&&d(i)))}))}function f(e,t,n,r,o,i,c,u,d,s){var p,f,m,b,g,y,w,k=r&&r.__k||M,C=k.length;for(n.__k=[],p=0;p<t.length;p++)if(null!=(b=n.__k[p]=null==(b=t[p])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?l(null,b,null,null,b):Array.isArray(b)?l(a,{children:b},null,null,null):b.__b>0?l(b.type,b.props,b.key,null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(m=k[p])||m&&b.key==m.key&&b.type===m.type)k[p]=void 0;else for(f=0;f<C;f++){if((m=k[f])&&b.key==m.key&&b.type===m.type){k[f]=void 0;break}m=null}x(e,b,m=m||B,o,i,c,u,d,s),g=b.__e,(f=b.ref)&&m.ref!=f&&(w||(w=[]),m.ref&&w.push(m.ref,null,b),w.push(f,b.__c||g,b)),null!=g?(null==y&&(y=g),"function"==typeof b.type&&b.__k===m.__k?b.__d=d=h(b,d,e):d=v(e,b,m,k,g,d),"function"==typeof n.type&&(n.__d=d)):d&&m.__e==d&&d.parentNode!=e&&(d=_(m))}for(n.__e=y,p=C;p--;)null!=k[p]&&("function"==typeof n.type&&null!=k[p].__e&&k[p].__e==n.__d&&(n.__d=_(r,p+1)),O(k[p],k[p]));if(w)for(p=0;p<w.length;p++)j(w[p],w[++p],w[++p])}function h(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?h(r,t,n):v(n,r,r,o,r.__e,t));return t}function m(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){m(e,t)})):t.push(e)),t}function v(e,t,n,r,o,i){var l,c,a;if(void 0!==t.__d)l=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),l=null;else{for(c=i,a=0;(c=c.nextSibling)&&a<r.length;a+=2)if(c==o)break e;e.insertBefore(o,i),l=i}return void 0!==l?l:o.nextSibling}function b(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||I.test(t)?n:n+"px"}function g(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||b(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||b(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?w:y,i):e.removeEventListener(t,i?w:y,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function y(e){this.l[e.type+!1](N.event?N.event(e):e)}function w(e){this.l[e.type+!0](N.event?N.event(e):e)}function x(e,t,n,o,i,l,c,_,d){var s,p,h,m,v,b,g,y,w,x,k,j=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(d=n.__h,_=t.__e=n.__e,t.__h=null,l=[_]),(s=N.__b)&&s(t);try{e:if("function"==typeof j){if(y=t.props,w=(s=j.contextType)&&o[s.__c],x=s?w?w.props.value:s.__:o,n.__c?g=(p=t.__c=n.__c).__=p.__E:("prototype"in j&&j.prototype.render?t.__c=p=new j(y,x):(t.__c=p=new u(y,x),p.constructor=j,p.render=S),w&&w.sub(p),p.props=y,p.state||(p.state={}),p.context=x,p.__n=o,h=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=j.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=r({},p.__s)),r(p.__s,j.getDerivedStateFromProps(y,p.__s))),m=p.props,v=p.state,h)null==j.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==j.getDerivedStateFromProps&&y!==m&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(y,x),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(y,p.__s,x)||t.__v===n.__v){p.props=y,p.state=p.__s,t.__v!==n.__v&&(p.__d=!1),p.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),p.__h.length&&c.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(y,p.__s,x),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(m,v,b)}))}p.context=x,p.props=y,p.state=p.__s,(s=N.__r)&&s(t),p.__d=!1,p.__v=t,p.__P=e,s=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(o=r(r({},o),p.getChildContext())),h||null==p.getSnapshotBeforeUpdate||(b=p.getSnapshotBeforeUpdate(m,v)),k=null!=s&&s.type===a&&null==s.key?s.props.children:s,f(e,Array.isArray(k)?k:[k],t,n,o,i,l,c,_,d),p.base=t.__e,t.__h=null,p.__h.length&&c.push(p),g&&(p.__E=p.__=null),p.__e=!1}else null==l&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=C(n.__e,t,n,o,i,l,c,d);(s=N.diffed)&&s(t)}catch(e){t.__v=null,(d||null!=l)&&(t.__e=_,t.__h=!!d,l[l.indexOf(_)]=null),N.__e(e,t,n)}}function k(e,t){N.__c&&N.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){N.__e(e,t.__v)}}))}function C(e,t,n,r,i,l,c,a){var u,d,s,p=n.props,h=t.props,m=t.type,v=0;if("svg"===m&&(i=!0),null!=l)for(;v<l.length;v++)if((u=l[v])&&"setAttribute"in u==!!m&&(m?u.localName===m:3===u.nodeType)){e=u,l[v]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),l=null,a=!1}if(null===m)p===h||a&&e.data===h||(e.data=h);else{if(l=l&&P.call(e.childNodes),d=(p=n.props||B).dangerouslySetInnerHTML,s=h.dangerouslySetInnerHTML,!a){if(null!=l)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(s||d)&&(s&&(d&&s.__html==d.__html||s.__html===e.innerHTML)||(e.innerHTML=s&&s.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||g(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||g(e,i,t[i],n[i],r)}(e,h,p,i,a),s)t.__k=[];else if(v=t.props.children,f(e,Array.isArray(v)?v:[v],t,n,r,i&&"foreignObject"!==m,l,c,l?l[0]:n.__k&&_(n,0),a),null!=l)for(v=l.length;v--;)null!=l[v]&&o(l[v]);a||("value"in h&&void 0!==(v=h.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==p.value)&&g(e,"value",v,p.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==e.checked&&g(e,"checked",v,p.checked,!1))}return e}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){N.__e(e,n)}}function O(e,t,n){var r,i;if(N.unmount&&N.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||j(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){N.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&O(r[i],t,"function"!=typeof e.type);n||null==e.__e||o(e.__e),e.__e=e.__d=void 0}function S(e,t,n){return this.constructor(e,n)}function T(e,t,n){var r,o,l;N.__&&N.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,l=[],x(t,e=(!r&&n||t).__k=i(a,null,[e]),o||B,B,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?P.call(t.childNodes):null,l,!r&&n?n:o?o.__e:t.firstChild,r),k(l,e)}function L(e,t){T(e,t,L)}function A(e,t,n){var o,i,c,a=r({},e.props);for(c in t)"key"==c?o=t[c]:"ref"==c?i=t[c]:a[c]=t[c];return arguments.length>2&&(a.children=arguments.length>3?P.call(arguments,2):n),l(e.type,a,o||e.key,i||e.ref,null)}function E(e,t){var n={__c:t="__cC"+F++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(s)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}n.r(t),n.d(t,"render",(function(){return T})),n.d(t,"hydrate",(function(){return L})),n.d(t,"createElement",(function(){return i})),n.d(t,"h",(function(){return i})),n.d(t,"Fragment",(function(){return a})),n.d(t,"createRef",(function(){return c})),n.d(t,"isValidElement",(function(){return R})),n.d(t,"Component",(function(){return u})),n.d(t,"cloneElement",(function(){return A})),n.d(t,"createContext",(function(){return E})),n.d(t,"toChildArray",(function(){return m})),n.d(t,"options",(function(){return N}));var P,N,H,R,W,$,D,F,B={},M=[],I=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;P=M.slice,N={__e:function(e,t,n,r){for(var o,i,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),l=o.__d),l)return o.__E=o}catch(t){e=t}throw e}},H=0,R=function(e){return null!=e&&void 0===e.constructor},u.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof e&&(e=e(r({},n),this.props)),e&&r(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),s(this))},u.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),s(this))},u.prototype.render=a,W=[],$="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,p.__r=0,F=0},mdg6:function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return g})),n.d(t,"k",(function(){return y})),n.d(t,"i",(function(){return w})),n.d(t,"j",(function(){return x})),n.d(t,"h",(function(){return k})),n.d(t,"f",(function(){return C})),n.d(t,"a",(function(){return j})),n.d(t,"g",(function(){return O}));var r=n("paZ/");let o,i,l,c,a,u,_,d,s,p,f,h=e=>e;const m=Object(r.b)("div")(o||(o=h`
20
+ ${0}
21
+ `),(()=>({display:"flex",flexDirection:"column",marginTop:"2.5rem"}))),v=Object(r.b)("div")(i||(i=h`
22
+ ${0}
23
+ `),(()=>({marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}}))),b=Object(r.b)("div")(l||(l=h`
24
+ ${0}
25
+ `),(()=>({paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle",display:"inline-block",minWidth:"100%","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}}))),g=Object(r.b)("div")(c||(c=h`
26
+ ${0}
27
+ `),(()=>({"--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",overflow:"hidden",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}}))),y=Object(r.b)("table")(a||(a=h`
28
+ ${0}
29
+ `),(()=>({minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgba(107, 114, 128, var(--tw-divide-opacity))"}}))),w=Object(r.b)("thead")(u||(u=h`
30
+ ${0}
31
+ `),(()=>({"--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))"}))),x=Object(r.b)("tr")(_||(_=h`
32
+ ${0}
33
+ `),(()=>({"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-x-reverse":0,borderRightWidth:"calc(1px * var(--tw-divide-x-reverse))",borderLeftWidth:"calc(1px * calc(1 - var(--tw-divide-x-reverse)))","--tw-divide-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-divide-opacity))"}}))),k=Object(r.b)("th")(d||(d=h`
34
+ ${0}
35
+ `),(()=>({paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgba(17, 24, 39, var(--tw-text-opacity))",textTransform:"uppercase",letterSpacing:"0.05em"}))),C=Object(r.b)("tbody")(s||(s=h`
36
+ ${0}
37
+ `),(()=>({"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"}))),j=Object(r.b)("td")(p||(p=h`
38
+ ${0}
39
+ `),(()=>({"--tw-text-opacity":"1",color:"rgba(17, 24, 39, var(--tw-text-opacity))",fontWeight:"500",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}))),O=Object(r.b)("td")(f||(f=h`
40
+ ${0}
41
+ `),(()=>({"--tw-text-opacity":"1",color:"rgba(107, 114, 128, var(--tw-text-opacity))",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"})))},mdyV:function(e,t,n){"use strict";n.r(t);var r=n("hosL");const{h:o,render:i,hydrate:l}=r,c=e=>e&&e.default?e.default:e;if("function"==typeof c(n("qVkA"))){let e=document.getElementById("preact_root")||document.body.firstElementChild,t=()=>{let t=c(n("qVkA")),r={};const l=document.querySelector('[type="__PREACT_CLI_DATA__"]');l&&(r=JSON.parse(decodeURI(l.innerHTML)).preRenderData||r);r.url&&(a=r.url);var a;i(o(t,{CLI_DATA:{preRenderData:r}}),document.body,e)};0,t()}},"paZ/":function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function o(e){let t=this||{},n=e.call?e(t.p):e;return b(n.unshift?n.raw?g(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>r(e,n&&n.call?n(t.p):n)),{}):n,d(t.target),t.g,t.o,t.k)}function i(e,t,n,r){h.p=t,c=e,a=n,u=r}function l(e,t){let n=this||{};return function(){function i(_,d){let s=r({},_),p=s.className||i.className;n.p=r({theme:a&&a()},s),n.o=/ *go\d+/.test(p),s.className=o.apply(n,l)+(p?" "+p:""),t&&(s.ref=d);let f=e;return e[0]&&(f=s.as||e,delete s.as),u&&f[0]&&u(s),c(f,s)}let l=arguments;return t?t(i):i}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}));let c,a,u,_={data:""},d=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||r((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_,s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,p=/\/\*[^]*?\*\/| +/g,f=/\n+/g,h=(e,t)=>{let n="",r="",o="";for(let i in e){let l=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+l+";":r+="f"==i[1]?h(l,i):i+"{"+h(l,"k"==i[1]?"":t)+"}":"object"==typeof l?r+=h(l,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=l&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=h.p?h.p(i,l):i+":"+l+";")}return n+(t&&o?t+"{"+o+"}":o)+r},m={},v=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+v(e[n]);return t}return e},b=(e,t,n,r,o)=>{let i=v(e),l=m[i]||(m[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!m[l]){let t=i!==e?e:(e=>{let t,n,r=[{}];for(;t=s.exec(e.replace(p,""));)t[4]?r.shift():t[3]?(n=t[3].replace(f," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(f," ").trim();return r[0]})(e);m[l]=h(o?{["@keyframes "+l]:t}:t,n?"":"."+l)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(m[l],t,r),l},g=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":h(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");o.bind({g:1}),o.bind({k:1})},qVkA:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return Object(_.cloneElement)(t,n)}function i(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Object(_.h)(o,r({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,c=t.attributes,a=t.childNodes;for(i=c.length;i--;)"slot"!==c[i].name&&(o[c[i].name]=c[i].value,o[l(c[i].name)]=c[i].value);for(i=a.length;i--;){var d=e(a[i],null),s=a[i].slot;s?o[s]=Object(_.h)(u,{name:s},d):r[i]=d}var p=n?Object(_.h)(u,null,r):r;return Object(_.h)(n||t.nodeName.toLowerCase(),o,p)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?_.hydrate:_.render)(this._vdom,this._root)}function l(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function c(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[l(e)]=n,this._vdom=Object(_.cloneElement)(this._vdom,r),Object(_.render)(this._vdom,this._root)}}function a(){Object(_.render)(this._vdom=null,this._root)}function u(e,t){var n=this;return Object(_.h)("slot",r({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}n.r(t);var _=n("hosL");!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=i,o.prototype.attributeChangedCallback=c,o.prototype.disconnectedCallback=a,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t||e.tagName||e.displayName||e.name,o)}(n("5+bp").a,"superhero-pba-support-admin",["backend-url","access-token"])}});
@@ -0,0 +1 @@
1
+ !function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s="mdyV")}({"3Tbp":function(t,e,n){"use strict";(function(t,r){var o=n("mdg6"),i=[{accountId:"123456",profileId:"999999999",firstName:"Hugh",lastName:"Jackman",email:"hugh.jackman@mcdonalds.com",mobile:"04222222222",dob:"1969-02-02",address:"Sydney",state:"NSW",PostCode:"2195"},{accountId:"123456",profileId:"888888888",firstName:"Hugh",lastName:"Jackman",email:"hugh.jackman@jdSports.com",mobile:"04222222222",dob:"1969-02-02",address:"Sydney",state:"NSW",PostCode:"2195"}];e.a=function(){return t(r,null,t(o.d,null,t(o.e,null,t(o.b,null,t(o.c,null,t(o.k,null,t(o.i,null,t(o.j,null,t(o.h,{scope:"col"},"Account Id"),t(o.h,{scope:"col"},"Profile Id"),t(o.h,{scope:"col"},"FirstName"),t(o.h,{scope:"col"},"LastName"),t(o.h,{scope:"col"},"Email"),t(o.h,{scope:"col"},"Mobile"),t(o.h,{scope:"col"},"DOB"),t(o.h,{scope:"col"},"Address"),t(o.h,{scope:"col"},"State"),t(o.h,{scope:"col"},"Postcode"))),t(o.f,null,i.map((function(e){return t(o.j,{key:e.email},t(o.a,null,e.accountId),t(o.g,null,e.profileId),t(o.g,null,e.firstName),t(o.g,null,e.lastName),t(o.g,null,e.email),t(o.g,null,e.mobile),t(o.g,null,e.dob),t(o.g,null,e.address),t(o.g,null,e.state),t(o.g,null,e.PostCode))})))))))))}}).call(this,n("hosL").h,n("hosL").Fragment)},"5+bp":function(t,e,n){"use strict";(function(t){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n("hosL"),u=n("paZ/"),l=n("QRet"),c=n("3Tbp"),a=n("cSVd"),_=n("LBRg");Object(u.a)(i.h);e.a=function(){var e=r(Object(l.a)(!1),2),n=e[0],o=e[1];return Object(i.h)(t,null,Object(i.h)(_.a,null,"Customer Search"),Object(i.h)(a.a,{onClick:function(t){t?"test.test@gmail.com"===t?o(!0):alert("No Record Found with Email provided!"):alert("Please enter email address!")}}),n&&Object(i.h)(c.a,null))}}).call(this,n("hosL").Fragment)},"5Ypr":function(t,e,n){"use strict";function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}n.d(e,"c",(function(){return s})),n.d(e,"h",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return v})),n.d(e,"d",(function(){return b})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return g}));var o,i,u,l,c,a,_,f,d=n("paZ/"),s=Object(d.b)("div")(o||(o=r(["\n ","\n"])),(function(){return{display:"flex",flexDirection:"column",marginTop:"1rem",marginLeft:"1rem"}})),p=Object(d.b)("h3")(i||(i=r(["\n ","\n"])),(function(){return{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700",marginTop:"0.5rem"}})),h=Object(d.b)("div")(u||(u=r(["\n ","\n"])),(function(){return{width:"25%",marginTop:"2rem"}})),m=Object(d.b)("div")(l||(l=r(["\n ","\n"])),(function(){return{display:"flex",justifyContent:"space-between",marginTop:"1.5rem"}})),v=Object(d.b)("label")(c||(c=r(["\n ","\n"])),(function(){return{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700",marginTop:"0.5rem"}})),b=Object(d.b)("input")(a||(a=r(["\n ","\n"])),(function(){return{"--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",appearance:"none",borderWidth:"1px",borderRadius:"0.25rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",paddingLeft:"0.25rem",paddingRight:"0.25rem","--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",lineHeight:"1.25","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"}}})),y=Object(d.b)("div")(_||(_=r(["\n ","\n"])),(function(){return{display:"flex",justifyContent:"flex-end",marginTop:"1.5rem"}})),g=Object(d.b)("button")(f||(f=r(["\n ","\n"])),(function(){return{"--tw-bg-opacity":"1",backgroundColor:"rgba(99, 102, 241, var(--tw-bg-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(49, 46, 129, var(--tw-bg-opacity))"},"--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))",fontWeight:"700",paddingTop:"0.25rem",paddingBottom:"0.25rem",paddingLeft:"1rem",paddingRight:"1rem",borderRadius:"0.25rem","&:focus":{outline:"2px solid transparent",outlineOffset:"2px"}}}))},LBRg:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r,o,i,u=n("paZ/"),l=Object(u.b)("span")(r||(o=["\n ","\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))),(function(){return{height:"3rem",width:"3rem","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"}}))},QRet:function(t,e,n){"use strict";function r(t,e){d.options.__h&&d.options.__h(_,t,s||e),s=0;var n=_.__H||(_.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function o(t){return s=1,function(t,e,n){var o=r(a++,2);return o.t=t,o.__c||(o.__=[n?n(e):c(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=_),o.__}(c,t)}function i(){for(var t;t=p.shift();)if(t.__P)try{t.__H.__h.forEach(u),t.__H.__h.forEach(l),t.__H.__h=[]}catch(e){t.__H.__h=[],d.options.__e(e,t.__v)}}function u(t){var e=_,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),_=e}function l(t){var e=_;t.__c=t.__(),_=e}function c(t,e){return"function"==typeof e?e(t):e}n.d(e,"a",(function(){return o}));var a,_,f,d=n("hosL"),s=0,p=[],h=d.options.__b,m=d.options.__r,v=d.options.diffed,b=d.options.__c,y=d.options.unmount;d.options.__b=function(t){_=null,h&&h(t)},d.options.__r=function(t){m&&m(t),a=0;var e=(_=t.__c).__H;e&&(e.__h.forEach(u),e.__h.forEach(l),e.__h=[])},d.options.diffed=function(t){v&&v(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==p.push(e)&&f===d.options.requestAnimationFrame||((f=d.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),g&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);g&&(e=requestAnimationFrame(n))})(i)),_=null},d.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(u),t.__h=t.__h.filter((function(t){return!t.__||l(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],d.options.__e(n,t.__v)}})),b&&b(t,e)},d.options.unmount=function(t){y&&y(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{u(t)}catch(t){e=t}})),e&&d.options.__e(e,n.__v))};var g="function"==typeof requestAnimationFrame},cSVd:function(t,e,n){"use strict";(function(t,r){function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],u=!0,l=!1;try{for(n=n.call(t);!(u=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{u||null==n.return||n.return()}finally{if(l)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=n("QRet"),l=n("5Ypr");e.a=function(e){var n=o(Object(u.a)(""),2),i=n[0],c=n[1];return t(r,null,t(l.c,null,t(l.h,null,"Search for PBA Customer with Email:"),t(l.g,null,t(l.f,null,t(l.e,null,"Email Address"),t(l.d,{name:"emailAddress",placeholder:"users@email.com",type:"text","aria-describedby":"emailAddress",onChange:function(t){t.preventDefault(),c(t.target.value)},required:!0})),t(l.b,null,t(l.a,{onClick:function(t){t.preventDefault(),e.onClick(i)}},"Search")))))}}).call(this,n("hosL").h,n("hosL").Fragment)},hosL:function(t,e,n){"use strict";function r(t,e){for(var n in e)t[n]=e[n];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t,e,n){var r,o,i,l={};for(i in e)"key"==i?r=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?P.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return u(t,l,r,o,null)}function u(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++H:o};return null==o&&null!=N.vnode&&N.vnode(i),i}function l(){return{current:null}}function c(t){return t.children}function a(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(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?_(t):null}function f(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 f(t)}}function d(t){(!t.__d&&(t.__d=!0)&&W.push(t)&&!s.__r++||D!==N.debounceRendering)&&((D=N.debounceRendering)||I)(s)}function s(){for(var t;s.__r=W.length;)t=W.sort((function(t,e){return t.__v.__b-e.__v.__b})),W=[],t.some((function(t){var e,n,o,i,u,l;t.__d&&(u=(i=(e=t).__v).__e,(l=e.__P)&&(n=[],(o=r({},i)).__v=i.__v+1,x(l,i,o,e.__n,void 0!==l.ownerSVGElement,null!=i.__h?[u]:null,n,null==u?_(i):u,i.__h),j(n,i),i.__e!=u&&f(i)))}))}function p(t,e,n,r,o,i,l,a,f,d){var s,p,m,b,y,g,w,j=r&&r.__k||B,k=j.length;for(n.__k=[],s=0;s<e.length;s++)if(null!=(b=n.__k[s]=null==(b=e[s])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?u(null,b,null,null,b):Array.isArray(b)?u(c,{children:b},null,null,null):b.__b>0?u(b.type,b.props,b.key,null,b.__v):b)){if(b.__=n,b.__b=n.__b+1,null===(m=j[s])||m&&b.key==m.key&&b.type===m.type)j[s]=void 0;else for(p=0;p<k;p++){if((m=j[p])&&b.key==m.key&&b.type===m.type){j[p]=void 0;break}m=null}x(t,b,m=m||M,o,i,l,a,f,d),y=b.__e,(p=b.ref)&&m.ref!=p&&(w||(w=[]),m.ref&&w.push(m.ref,null,b),w.push(p,b.__c||y,b)),null!=y?(null==g&&(g=y),"function"==typeof b.type&&b.__k===m.__k?b.__d=f=h(b,f,t):f=v(t,b,m,j,y,f),"function"==typeof n.type&&(n.__d=f)):f&&m.__e==f&&f.parentNode!=t&&(f=_(m))}for(n.__e=g,s=k;s--;)null!=j[s]&&("function"==typeof n.type&&null!=j[s].__e&&j[s].__e==n.__d&&(n.__d=_(r,s+1)),C(j[s],j[s]));if(w)for(s=0;s<w.length;s++)O(w[s],w[++s],w[++s])}function h(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?h(r,e,n):v(n,r,r,o,r.__e,e));return e}function m(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){m(t,e)})):e.push(t)),e}function v(t,e,n,r,o,i){var u,l,c;if(void 0!==e.__d)u=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),u=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break t;t.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function b(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||U.test(e)?n:n+"px"}function y(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||b(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||b(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?w:g,i):t.removeEventListener(e,i?w:g,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 g(t){this.l[t.type+!1](N.event?N.event(t):t)}function w(t){this.l[t.type+!0](N.event?N.event(t):t)}function x(t,e,n,o,i,u,l,_,f){var d,s,h,m,v,b,y,g,w,x,j,O=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(f=n.__h,_=e.__e=n.__e,e.__h=null,u=[_]),(d=N.__b)&&d(e);try{t:if("function"==typeof O){if(g=e.props,w=(d=O.contextType)&&o[d.__c],x=d?w?w.props.value:d.__:o,n.__c?y=(s=e.__c=n.__c).__=s.__E:("prototype"in O&&O.prototype.render?e.__c=s=new O(g,x):(e.__c=s=new a(g,x),s.constructor=O,s.render=S),w&&w.sub(s),s.props=g,s.state||(s.state={}),s.context=x,s.__n=o,h=s.__d=!0,s.__h=[]),null==s.__s&&(s.__s=s.state),null!=O.getDerivedStateFromProps&&(s.__s==s.state&&(s.__s=r({},s.__s)),r(s.__s,O.getDerivedStateFromProps(g,s.__s))),m=s.props,v=s.state,h)null==O.getDerivedStateFromProps&&null!=s.componentWillMount&&s.componentWillMount(),null!=s.componentDidMount&&s.__h.push(s.componentDidMount);else{if(null==O.getDerivedStateFromProps&&g!==m&&null!=s.componentWillReceiveProps&&s.componentWillReceiveProps(g,x),!s.__e&&null!=s.shouldComponentUpdate&&!1===s.shouldComponentUpdate(g,s.__s,x)||e.__v===n.__v){s.props=g,s.state=s.__s,e.__v!==n.__v&&(s.__d=!1),s.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),s.__h.length&&l.push(s);break t}null!=s.componentWillUpdate&&s.componentWillUpdate(g,s.__s,x),null!=s.componentDidUpdate&&s.__h.push((function(){s.componentDidUpdate(m,v,b)}))}s.context=x,s.props=g,s.state=s.__s,(d=N.__r)&&d(e),s.__d=!1,s.__v=e,s.__P=t,d=s.render(s.props,s.state,s.context),s.state=s.__s,null!=s.getChildContext&&(o=r(r({},o),s.getChildContext())),h||null==s.getSnapshotBeforeUpdate||(b=s.getSnapshotBeforeUpdate(m,v)),j=null!=d&&d.type===c&&null==d.key?d.props.children:d,p(t,Array.isArray(j)?j:[j],e,n,o,i,u,l,_,f),s.base=e.__e,e.__h=null,s.__h.length&&l.push(s),y&&(s.__E=s.__=null),s.__e=!1}else null==u&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=k(n.__e,e,n,o,i,u,l,f);(d=N.diffed)&&d(e)}catch(t){e.__v=null,(f||null!=u)&&(e.__e=_,e.__h=!!f,u[u.indexOf(_)]=null),N.__e(t,e,n)}}function j(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 k(t,e,n,r,i,u,l,c){var a,f,d,s=n.props,h=e.props,m=e.type,v=0;if("svg"===m&&(i=!0),null!=u)for(;v<u.length;v++)if((a=u[v])&&"setAttribute"in a==!!m&&(m?a.localName===m:3===a.nodeType)){t=a,u[v]=null;break}if(null==t){if(null===m)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),u=null,c=!1}if(null===m)s===h||c&&t.data===h||(t.data=h);else{if(u=u&&P.call(t.childNodes),f=(s=n.props||M).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!c){if(null!=u)for(s={},v=0;v<t.attributes.length;v++)s[t.attributes[v].name]=t.attributes[v].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===t.innerHTML)||(t.innerHTML=d&&d.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||y(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]||y(t,i,e[i],n[i],r)}(t,h,s,i,c),d)e.__k=[];else if(v=e.props.children,p(t,Array.isArray(v)?v:[v],e,n,r,i&&"foreignObject"!==m,u,l,u?u[0]:n.__k&&_(n,0),c),null!=u)for(v=u.length;v--;)null!=u[v]&&o(u[v]);c||("value"in h&&void 0!==(v=h.value)&&(v!==t.value||"progress"===m&&!v||"option"===m&&v!==s.value)&&y(t,"value",v,s.value,!1),"checked"in h&&void 0!==(v=h.checked)&&v!==t.checked&&y(t,"checked",v,s.checked,!1))}return t}function O(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){N.__e(t,n)}}function C(t,e,n){var r,i;if(N.unmount&&N.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||O(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){N.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&C(r[i],e,"function"!=typeof t.type);n||null==t.__e||o(t.__e),t.__e=t.__d=void 0}function S(t,e,n){return this.constructor(t,n)}function A(t,e,n){var r,o,u;N.__&&N.__(t,e),o=(r="function"==typeof n)?null:n&&n.__k||e.__k,u=[],x(e,t=(!r&&n||e).__k=i(c,null,[t]),o||M,M,void 0!==e.ownerSVGElement,!r&&n?[n]:o?null:e.firstChild?P.call(e.childNodes):null,u,!r&&n?n:o?o.__e:e.firstChild,r),j(u,t)}function T(t,e){A(t,e,T)}function L(t,e,n){var o,i,l,c=r({},t.props);for(l in e)"key"==l?o=e[l]:"ref"==l?i=e[l]:c[l]=e[l];return arguments.length>2&&(c.children=arguments.length>3?P.call(arguments,2):n),u(t.type,c,o||t.key,i||t.ref,null)}function E(t,e){var n={__c:e="__cC"+F++,__: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(d)},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}n.r(e),n.d(e,"render",(function(){return A})),n.d(e,"hydrate",(function(){return T})),n.d(e,"createElement",(function(){return i})),n.d(e,"h",(function(){return i})),n.d(e,"Fragment",(function(){return c})),n.d(e,"createRef",(function(){return l})),n.d(e,"isValidElement",(function(){return R})),n.d(e,"Component",(function(){return a})),n.d(e,"cloneElement",(function(){return L})),n.d(e,"createContext",(function(){return E})),n.d(e,"toChildArray",(function(){return m})),n.d(e,"options",(function(){return N}));var P,N,H,R,W,I,D,F,M={},B=[],U=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;P=B.slice,N={__e:function(t,e,n,r){for(var o,i,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},H=0,R=function(t){return null!=t&&void 0===t.constructor},a.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=r({},this.state),"function"==typeof t&&(t=t(r({},n),this.props)),t&&r(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),d(this))},a.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),d(this))},a.prototype.render=c,W=[],I="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,s.__r=0,F=0},mdg6:function(t,e,n){"use strict";function r(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return v})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return y})),n.d(e,"k",(function(){return g})),n.d(e,"i",(function(){return w})),n.d(e,"j",(function(){return x})),n.d(e,"h",(function(){return j})),n.d(e,"f",(function(){return k})),n.d(e,"a",(function(){return O})),n.d(e,"g",(function(){return C}));var o,i,u,l,c,a,_,f,d,s,p,h=n("paZ/"),m=Object(h.b)("div")(o||(o=r(["\n ","\n"])),(function(){return{display:"flex",flexDirection:"column",marginTop:"2.5rem"}})),v=Object(h.b)("div")(i||(i=r(["\n ","\n"])),(function(){return{marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}}})),b=Object(h.b)("div")(u||(u=r(["\n ","\n"])),(function(){return{paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle",display:"inline-block",minWidth:"100%","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}}})),y=Object(h.b)("div")(l||(l=r(["\n ","\n"])),(function(){return{"--tw-shadow":"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",overflow:"hidden",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}}})),g=Object(h.b)("table")(c||(c=r(["\n ","\n"])),(function(){return{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgba(107, 114, 128, var(--tw-divide-opacity))"}}})),w=Object(h.b)("thead")(a||(a=r(["\n ","\n"])),(function(){return{"--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))"}})),x=Object(h.b)("tr")(_||(_=r(["\n ","\n"])),(function(){return{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-x-reverse":0,borderRightWidth:"calc(1px * var(--tw-divide-x-reverse))",borderLeftWidth:"calc(1px * calc(1 - var(--tw-divide-x-reverse)))","--tw-divide-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-divide-opacity))"}}})),j=Object(h.b)("th")(f||(f=r(["\n ","\n"])),(function(){return{paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgba(17, 24, 39, var(--tw-text-opacity))",textTransform:"uppercase",letterSpacing:"0.05em"}})),k=Object(h.b)("tbody")(d||(d=r(["\n ","\n"])),(function(){return{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":0,borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))"}})),O=Object(h.b)("td")(s||(s=r(["\n ","\n"])),(function(){return{"--tw-text-opacity":"1",color:"rgba(17, 24, 39, var(--tw-text-opacity))",fontWeight:"500",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}})),C=Object(h.b)("td")(p||(p=r(["\n ","\n"])),(function(){return{"--tw-text-opacity":"1",color:"rgba(107, 114, 128, var(--tw-text-opacity))",paddingLeft:"1.5rem",paddingRight:"1.5rem",paddingTop:"1rem",paddingBottom:"1rem",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem"}}))},mdyV:function(t,e,n){"use strict";n.r(e);var r=n("hosL"),o=r.h,i=r.render,u=function(t){return t&&t.default?t.default:t};if("function"==typeof u(n("qVkA"))){var l=document.getElementById("preact_root")||document.body.firstElementChild;0,function(){var t=u(n("qVkA")),e={},r=document.querySelector('[type="__PREACT_CLI_DATA__"]');r&&(e=JSON.parse(decodeURI(r.innerHTML)).preRenderData||e);var c;e.url&&(c=e.url);i(o(t,{CLI_DATA:{preRenderData:e}}),document.body,l)}()}},"paZ/":function(t,e,n){"use strict";function r(){return r=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},r.apply(this,arguments)}function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t){var e=this||{},n=t.call?t(e.p):t;return y(n.unshift?n.raw?g(n,[].slice.call(arguments,1),e.p):n.reduce((function(t,n){return r(t,n&&n.call?n(e.p):n)}),{}):n,d(e.target),e.g,e.o,e.k)}function u(t,e,n,r){m.p=e,c=t,a=n,_=r}function l(t,e){var n=this||{};return function(){function o(l,f){var d=r({},l),s=d.className||o.className;n.p=r({theme:a&&a()},d),n.o=/ *go\d+/.test(s),d.className=i.apply(n,u)+(s?" "+s:""),e&&(d.ref=f);var p=t;return t[0]&&(p=d.as||t,delete d.as),_&&p[0]&&_(d),c(p,d)}var u=arguments;return e?e(o):o}}n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return l}));var c,a,_,f={data:""},d=function(t){return"object"==("undefined"==typeof window?"undefined":o(window))?((t?t.querySelector("#_goober"):window._goober)||r((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||f},s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,p=/\/\*[^]*?\*\/| +/g,h=/\n+/g,m=function t(e,n){var r="",i="",u="",l=function(l){var a=e[l];"@"==l[0]?"i"==l[1]?r=l+" "+a+";":i+="f"==l[1]?t(a,l):l+"{"+t(a,"k"==l[1]?"":n)+"}":"object"==o(a)?i+=t(a,n?n.replace(/([^,])+/g,(function(t){return l.replace(/(^:.*)|([^,])+/g,(function(e){return/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e}))})):l):null!=a&&(l=/^--/.test(l)?l:l.replace(/[A-Z]/g,"-$&").toLowerCase(),u+=t.p?t.p(l,a):l+":"+a+";"),c=l};for(var c in e)l(c);return r+(n&&u?n+"{"+u+"}":u)+i},v={},b=function t(e){if("object"==o(e)){var n="";for(var r in e)n+=r+t(e[r]);return n}return e},y=function(t,e,n,r,o){var i,u,l,c=b(t),a=v[c]||(v[c]=function(t){for(var e=0,n=11;e<t.length;)n=101*n+t.charCodeAt(e++)>>>0;return"go"+n}(c));if(!v[a]){var _=c!==t?t:function(t){for(var e,n,r=[{}];e=s.exec(t.replace(p,""));)e[4]?r.shift():e[3]?(n=e[3].replace(h," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][e[1]]=e[2].replace(h," ").trim();return r[0]}(t);v[a]=m(o?(l=_,(u="@keyframes "+a)in(i={})?Object.defineProperty(i,u,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[u]=l,i):_,n?"":"."+a)}return function(t,e,n){-1==e.data.indexOf(t)&&(e.data=n?t+e.data:e.data+t)}(v[a],e,r),a},g=function(t,e,n){return t.reduce((function(t,r,i){var u=e[i];if(u&&u.call){var l=u(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;u=c?"."+c:l&&"object"==o(l)?l.props?"":m(l,""):!1===l?"":l}return t+r+(null==u?"":u)}),"")};i.bind({g:1}),i.bind({k:1})},qVkA:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(){return(o=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 i(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 Object(f.cloneElement)(e,n)}function u(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=Object(f.h)(i,o({},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,u=e.attributes,c=e.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[l(u[i].name)]=u[i].value);for(i=c.length;i--;){var a=t(c[i],null),d=c[i].slot;d?o[d]=Object(f.h)(_,{name:d},a):r[i]=a}var s=n?Object(f.h)(_,null,r):r;return Object(f.h)(n||e.nodeName.toLowerCase(),o,s)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?f.hydrate:f.render)(this._vdom,this._root)}function l(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function c(t,e,n){if(this._vdom){var r={};r[t]=n=null==n?void 0:n,r[l(t)]=n,this._vdom=Object(f.cloneElement)(this._vdom,r),Object(f.render)(this._vdom,this._root)}}function a(){Object(f.render)(this._vdom=null,this._root)}function _(t,e){var n=this;return Object(f.h)("slot",o({},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)}}))}n.r(e);var f=n("hosL");!function(t,e,n,o){function i(){var e=Reflect.construct(HTMLElement,[],i);return e._vdomComponent=t,e._root=o&&o.shadow?e.attachShadow({mode:"open"}):e,e}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=u,i.prototype.attributeChangedCallback=c,i.prototype.disconnectedCallback=a,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),i.observedAttributes=n,n.forEach((function(t){Object.defineProperty(i.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=r(e);null!=e&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(t,e)}})})),customElements.define(e||t.tagName||t.displayName||t.name,i)}(n("5+bp").a,"superhero-pba-support-admin",["backend-url","access-token"])}});
Binary file
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>@flarehr/superhero-pba-support-admin</title><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="apple-touch-icon" href="/assets/icons/apple-touch-icon.png"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"></head><body><script crossorigin="anonymous" src="/bundle.a2e1e.esm.js" type="module"></script><script nomodule="" src="/polyfills.js"></script><script nomodule="" defer="defer" src="/bundle.js"></script></body></html>
@@ -0,0 +1 @@
1
+ !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="Ve17")}({"+TSP":function(e,t,n){e.exports=self.fetch||(self.fetch=n("Cf1v").default||n("Cf1v"))},"5+HP":function(e,t,n){"use strict";function r(e){return Boolean(e&&void 0!==e.length)}function o(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,i._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void c(t.promise,e)}f(t.promise,r)}else(1===e._state?f:c)(t.promise,e._value)}))):e._deferreds.push(t)}function f(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof i)return e._state=3,e._value=t,void s(e);if("function"==typeof n)return void l((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,s(e)}catch(t){c(e,t)}var r,o}function c(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&i._immediateFn((function(){e._handled||i._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)u(e,e._deferreds[t]);e._deferreds=null}function a(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e((function(e){n||(n=!0,f(t,e))}),(function(e){n||(n=!0,c(t,e))}))}catch(e){if(n)return;n=!0,c(t,e)}}n.r(t);var d=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},p=function(e){return new this((function(t,n){function r(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var u=n.then;if("function"==typeof u)return void u.call(n,(function(t){r(e,t)}),(function(n){o[e]={status:"rejected",reason:n},0==--i&&t(o)}))}o[e]={status:"fulfilled",value:n},0==--i&&t(o)}if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);for(var i=o.length,u=0;u<o.length;u++)r(u,o[u])}))},h=setTimeout;i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(o);return u(this,new a(e,t,n)),n},i.prototype.finally=d,i.all=function(e){return new i((function(t,n){function o(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var f=r.then;if("function"==typeof f)return void f.call(r,(function(t){o(e,t)}),n)}i[e]=r,0==--u&&t(i)}catch(e){n(e)}}if(!r(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var u=i.length,f=0;f<i.length;f++)o(f,i[f])}))},i.allSettled=p,i.resolve=function(e){return e&&"object"==typeof e&&e.constructor===i?e:new i((function(t){t(e)}))},i.reject=function(e){return new i((function(t,n){n(e)}))},i.race=function(e){return new i((function(t,n){if(!r(e))return n(new TypeError("Promise.race accepts an array"));for(var o=0,u=e.length;o<u;o++)i.resolve(e[o]).then(t,n)}))},i._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){h(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};t.default=i},Cf1v:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],u=[],f={},c=function e(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:e,headers:{keys:function(){return i},entries:function(){return u},get:function(e){return f[e.toLowerCase()]},has:function(e){return e.toLowerCase()in f}}}};for(var s in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),u.push([t,n]),f[t]=f[t]?f[t]+","+n:n})),n(c())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(s,t.headers[s]);o.send(t.body||null)}))}},Ve17:function(e,t,n){(function(e){e.Promise||(e.Promise=n("5+HP").default),e.fetch||(e.fetch=n("+TSP"))}).call(this,n("pCvA"))},pCvA:function(e){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){"object"==typeof window&&(t=window)}e.exports=t}});
@@ -0,0 +1 @@
1
+ !function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(t){return e[t]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s="Ve17")}({"+TSP":function(e,t,n){e.exports=self.fetch||(self.fetch=n("Cf1v").default||n("Cf1v"))},"5+HP":function(e,t,n){"use strict";function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function u(e){return Boolean(e&&void 0!==e.length)}function i(){}function f(e){if(!(this instanceof f))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],y(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,f._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,o)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof f)return e._state=3,e._value=t,void a(e);if("function"==typeof n)return void y((o=n,u=t,function(){o.apply(u,arguments)}),e)}e._state=1,e._value=t,a(e)}catch(t){l(e,t)}var o,u}function l(e,t){e._state=2,e._value=t,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&f._immediateFn((function(){e._handled||f._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function p(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function y(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}n.r(t);var d=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},h=function(e){return new this((function(t,n){function r(e,n){if(n&&("object"===o(n)||"function"==typeof n)){var f=n.then;if("function"==typeof f)return void f.call(n,(function(t){r(e,t)}),(function(n){u[e]={status:"rejected",reason:n},0==--i&&t(u)}))}u[e]={status:"fulfilled",value:n},0==--i&&t(u)}if(!e||void 0===e.length)return n(new TypeError(o(e)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var u=Array.prototype.slice.call(e);if(0===u.length)return t([]);for(var i=u.length,f=0;f<u.length;f++)r(f,u[f])}))},m=setTimeout;f.prototype.catch=function(e){return this.then(null,e)},f.prototype.then=function(e,t){var n=new this.constructor(i);return c(this,new p(e,t,n)),n},f.prototype.finally=d,f.all=function(e){return new f((function(t,n){function o(e,u){try{if(u&&("object"===r(u)||"function"==typeof u)){var c=u.then;if("function"==typeof c)return void c.call(u,(function(t){o(e,t)}),n)}i[e]=u,0==--f&&t(i)}catch(e){n(e)}}if(!u(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);for(var f=i.length,c=0;c<i.length;c++)o(c,i[c])}))},f.allSettled=h,f.resolve=function(e){return e&&"object"===r(e)&&e.constructor===f?e:new f((function(t){t(e)}))},f.reject=function(e){return new f((function(t,n){n(e)}))},f.race=function(e){return new f((function(t,n){if(!u(e))return n(new TypeError("Promise.race accepts an array"));for(var o=0,r=e.length;o<r;o++)f.resolve(e[o]).then(t,n)}))},f._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){m(e,0)},f._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};t.default=f},Cf1v:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,o){var r=new XMLHttpRequest,u=[],i=[],f={},c=function e(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:e,headers:{keys:function(){return u},entries:function(){return i},get:function(e){return f[e.toLowerCase()]},has:function(e){return e.toLowerCase()in f}}}};for(var s in r.open(t.method||"get",e,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){u.push(t=t.toLowerCase()),i.push([t,n]),f[t]=f[t]?f[t]+","+n:n})),n(c())},r.onerror=o,r.withCredentials="include"==t.credentials,t.headers)r.setRequestHeader(s,t.headers[s]);r.send(t.body||null)}))}},Ve17:function(e,t,n){(function(e){e.Promise||(e.Promise=n("5+HP").default),e.fetch||(e.fetch=n("+TSP"))}).call(this,n("pCvA"))},pCvA:function(e){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":t(window))&&(n=window)}e.exports=n}});
@@ -0,0 +1 @@
1
+ {"/":{"undefined":{"type":"style","weight":1},"bundle.a2e1e.esm.js":{"type":"script","weight":1}}}
package/package.json CHANGED
@@ -1,47 +1,60 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-pba-support-admin",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "license": "MIT",
5
+ "main": "build/bundle.js",
5
6
  "files": [
6
- "dist/"
7
+ "build"
7
8
  ],
9
+ "babelMacros": {
10
+ "twin": {
11
+ "preset": "goober"
12
+ }
13
+ },
8
14
  "scripts": {
9
- "start": "webpack serve --mode development",
10
- "build": "webpack --mode production --node-env production",
11
- "test": "jest ./tests",
12
- "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
13
- "lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix"
15
+ "build": "preact build --no-prerender -c preact.config.js --no-sw",
16
+ "start": "npm run dev",
17
+ "dev": "preact watch --p 7100",
18
+ "lint": "eslint . --ext .js,.jsx,.ts,.tsx && tsc --noemit --skipLibCheck",
19
+ "test": "jest ./tests"
14
20
  },
21
+ "proxy": "http://localhost:7071",
15
22
  "dependencies": {
16
23
  "preact": "^10.3.1",
17
- "preact-custom-element": "^4.2.1",
18
- "preact-router": "^3.2.1"
24
+ "preact-custom-element": "^4.2.1"
19
25
  },
20
26
  "devDependencies": {
21
- "@types/enzyme": "^3.10.5",
22
- "@types/jest": "^26.0.8",
27
+ "@agney/babel-plugin-goober-css-prop": "^0.0.1",
28
+ "@heroicons/react": "^1.0.6",
29
+ "@types/enzyme": "^3.10.9",
30
+ "@types/jest": "^26.0.24",
23
31
  "@types/preact-custom-element": "^4.0.1",
24
- "@typescript-eslint/eslint-plugin": "^5.26.0",
25
- "@typescript-eslint/parser": "^5.26.0",
26
- "autoprefixer": "^10.4.7",
27
- "css-loader": "^6.7.1",
28
- "cssnano": "^5.1.11",
32
+ "@typescript-eslint/eslint-plugin": "^4.29.0",
33
+ "@typescript-eslint/parser": "^4.29.0",
34
+ "axios": "^0.26.1",
35
+ "babel-plugin-transform-goober": "^1.2.0",
36
+ "base64-inline-loader": "^2.0.1",
29
37
  "enzyme": "^3.11.0",
30
38
  "enzyme-adapter-preact-pure": "^3.1.0",
31
- "eslint": "^8.16.0",
32
- "eslint-config-preact": "^1.3.0",
33
- "eslint-config-prettier": "^8.5.0",
34
- "eslint-plugin-jest": "^26.4.5",
35
- "html-webpack-plugin": "^5.5.0",
39
+ "eslint": "^6.8.0",
40
+ "eslint-config-preact": "^1.1.4",
41
+ "eslint-plugin-jest": "^25.2.2",
42
+ "goober": "^2.0.44",
36
43
  "jest": "^27.2.5",
37
- "jest-preset-preact": "^4.0.2",
38
- "postcss": "^8.4.14",
39
- "postcss-loader": "^7.0.0",
40
- "tailwindcss": "^3.1.3",
41
- "ts-loader": "^9.3.0",
44
+ "jest-preset-preact": "^4.0.3",
45
+ "preact-cli": "^3.3.5",
46
+ "twin.macro": "^2.8.2",
42
47
  "typescript": "^4.5.2",
43
- "webpack": "^5.72.1",
44
- "webpack-cli": "^4.9.2",
45
- "webpack-dev-server": "^4.9.2"
48
+ "yup": "^0.32.11"
49
+ },
50
+ "resolutions": {
51
+ "glob-parent": "6.0.2"
52
+ },
53
+ "jest": {
54
+ "preset": "jest-preset-preact",
55
+ "setupFiles": [
56
+ "<rootDir>/tests/__mocks__/browserMocks.ts",
57
+ "<rootDir>/tests/__mocks__/setupTests.ts"
58
+ ]
46
59
  }
47
60
  }
@@ -1 +0,0 @@
1
- (()=>{"use strict";var t={383:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([t.id,'/*! tailwindcss v3.1.3 | 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%;font-weight:inherit;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%}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--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-serif{font-family:ui-serif,Georgia,Cambria,Times New Roman,Times,serif}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}',""]);const l=a},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(a[c]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},81:t=>{t.exports=function(t){return t[1]}},42:(t,e,n)=>{n.r(e),n.d(e,{Link:()=>C,Route:()=>S,Router:()=>x,default:()=>O,exec:()=>a,getCurrentUrl:()=>h,route:()=>v,subscribers:()=>_});var r=n(400),o={};function i(t,e){for(var n in e)t[n]=e[n];return t}function a(t,e,n){var r,i=/(?:\?([^#]*))?(#.*)?$/,a=t.match(i),l={};if(a&&a[1])for(var c=a[1].split("&"),u=0;u<c.length;u++){var p=c[u].split("=");l[decodeURIComponent(p[0])]=decodeURIComponent(p.slice(1).join("="))}t=s(t.replace(i,"")),e=s(e||"");for(var f=Math.max(t.length,e.length),_=0;_<f;_++)if(e[_]&&":"===e[_].charAt(0)){var d=e[_].replace(/(^:|[+*?]+$)/g,""),h=(e[_].match(/[+*?]+$/)||o)[0]||"",v=~h.indexOf("+"),y=~h.indexOf("*"),b=t[_]||"";if(!b&&!y&&(h.indexOf("?")<0||v)){r=!1;break}if(l[d]=decodeURIComponent(b),v||y){l[d]=t.slice(_).map(decodeURIComponent).join("/");break}}else if(e[_]!==t[_]){r=!1;break}return(!0===n.default||!1!==r)&&l}function l(t,e){return t.rank<e.rank?1:t.rank>e.rank?-1:t.index-e.index}function c(t,e){return t.index=e,t.rank=function(t){return t.props.default?0:s(t.props.path).map(u).join("")}(t),t.props}function s(t){return t.replace(/(^\/+|\/+$)/g,"").split("/")}function u(t){return":"==t.charAt(0)?1+"*+?".indexOf(t.charAt(t.length-1))||4:5}var p=null,f=[],_=[],d={};function h(){var t;return""+((t=p&&p.location?p.location:p&&p.getCurrentLocation?p.getCurrentLocation():"undefined"!=typeof location?location:d).pathname||"")+(t.search||"")}function v(t,e){return void 0===e&&(e=!1),"string"!=typeof t&&t.url&&(e=t.replace,t=t.url),function(t){for(var e=f.length;e--;)if(f[e].canRoute(t))return!0;return!1}(t)&&function(t,e){void 0===e&&(e="push"),p&&p[e]?p[e](t):"undefined"!=typeof history&&history[e+"State"]&&history[e+"State"](null,null,t)}(t,e?"replace":"push"),y(t)}function y(t){for(var e=!1,n=0;n<f.length;n++)!0===f[n].routeTo(t)&&(e=!0);for(var r=_.length;r--;)_[r](t);return e}function b(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 v(e)}}function m(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button))return b(t.currentTarget||t.target||this),g(t)}function g(t){return t&&(t.stopImmediatePropagation&&t.stopImmediatePropagation(),t.stopPropagation&&t.stopPropagation(),t.preventDefault()),!1}function w(t){if(!(t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button)){var e=t.target;do{if("A"===String(e.nodeName).toUpperCase()&&e.getAttribute("href")){if(e.hasAttribute("native"))return;if(b(e))return g(t)}}while(e=e.parentNode)}}var k=!1,x=function(t){function e(e){t.call(this,e),e.history&&(p=e.history),this.state={url:e.url||h()},k||("function"==typeof addEventListener&&(p||addEventListener("popstate",(function(){y(h())})),addEventListener("click",w)),k=!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldComponentUpdate=function(t){return!0!==t.static||t.url!==this.props.url||t.onChange!==this.props.onChange},e.prototype.canRoute=function(t){var e=(0,r.toChildArray)(this.props.children);return this.getMatchingChildren(e,t,!1).length>0},e.prototype.routeTo=function(t){this.setState({url:t});var e=this.canRoute(t);return this.updating||this.forceUpdate(),e},e.prototype.componentWillMount=function(){f.push(this),this.updating=!0},e.prototype.componentDidMount=function(){var t=this;p&&(this.unlisten=p.listen((function(e){t.routeTo(""+(e.pathname||"")+(e.search||""))}))),this.updating=!1},e.prototype.componentWillUnmount=function(){"function"==typeof this.unlisten&&this.unlisten(),f.splice(f.indexOf(this),1)},e.prototype.componentWillUpdate=function(){this.updating=!0},e.prototype.componentDidUpdate=function(){this.updating=!1},e.prototype.getMatchingChildren=function(t,e,n){return t.filter(c).sort(l).map((function(t){var o=a(e,t.props.path,t.props);if(o){if(!1!==n){var l={url:e,matches:o};return i(l,o),delete l.ref,delete l.key,(0,r.cloneElement)(t,l)}return t}})).filter(Boolean)},e.prototype.render=function(t,e){var n=t.children,o=t.onChange,i=e.url,a=this.getMatchingChildren((0,r.toChildArray)(n),i,!0),l=a[0]||null,c=this.previousUrl;return i!==c&&(this.previousUrl=i,"function"==typeof o&&o({router:this,url:i,previous:c,active:a,current:l})),l},e}(r.Component),C=function(t){return(0,r.createElement)("a",i({onClick:m},t))},S=function(t){return(0,r.createElement)(t.component,t)};x.subscribers=_,x.getCurrentUrl=h,x.route=v,x.Router=x,x.Route=S,x.Link=C,x.exec=a;const O=x},232:(t,e,n)=>{e.rU=void 0;var r=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},o=n(400),i=n(42);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}var c=function(t){function e(){var n,r;a(this,e);for(var o=arguments.length,i=Array(o),c=0;c<o;c++)i[c]=arguments[c];return n=r=l(this,t.call.apply(t,[this].concat(i))),r.update=function(t){r.nextUrl=t,r.setState({})},l(r,n)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.componentDidMount=function(){i.subscribers.push(this.update)},e.prototype.componentWillUnmount=function(){i.subscribers.splice(i.subscribers.indexOf(this.update)>>>0,1)},e.prototype.render=function(t){var e=this.nextUrl||(0,i.getCurrentUrl)(),n=e.replace(/\?.+$/,"");return this.nextUrl=null,t.children({url:e,path:n,matches:!1!==(0,i.exec)(n,t.path,{})})},e}(o.Component),s=function(t){var e=t.activeClassName,n=t.path,a=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["activeClassName","path"]);return(0,o.h)(c,{path:n||a.href},(function(t){var n=t.matches;return(0,o.h)(i.Link,r({},a,{class:[a.class||a.className,n&&e].filter(Boolean).join(" ")}))}))};e.rU=s,c.Link=s},400:(t,e,n)=>{n.r(e),n.d(e,{Component:()=>g,Fragment:()=>m,cloneElement:()=>F,createContext:()=>$,createElement:()=>v,createRef:()=>b,h:()=>v,hydrate:()=>W,isValidElement:()=>a,options:()=>o,render:()=>I,toChildArray:()=>U});var r,o,i,a,l,c,s,u,p={},f=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function v(t,e,n){var o,i,a,l={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return y(t,l,o,i,null)}function y(t,e,n,r,a){var l={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(l),l}function b(){return{current:null}}function m(t){return t.children}function g(t,e){this.props=t,this.context=e}function w(t,e){if(null==e)return t.__?w(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?w(t):null}function k(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 k(t)}}function x(t){(!t.__d&&(t.__d=!0)&&l.push(t)&&!C.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||c)(C)}function C(){for(var t;C.__r=l.length;)t=l.sort((function(t,e){return t.__v.__b-e.__v.__b})),l=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,M(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),L(n,o),o.__e!=i&&k(o)))}))}function S(t,e,n,r,o,i,a,l,c,s){var u,_,d,h,v,b,g,k=r&&r.__k||f,x=k.length;for(n.__k=[],u=0;u<e.length;u++)if(null!=(h=n.__k[u]=null==(h=e[u])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?y(null,h,null,null,h):Array.isArray(h)?y(m,{children:h},null,null,null):h.__b>0?y(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=k[u])||d&&h.key==d.key&&h.type===d.type)k[u]=void 0;else for(_=0;_<x;_++){if((d=k[_])&&h.key==d.key&&h.type===d.type){k[_]=void 0;break}d=null}M(t,h,d=d||p,o,i,a,l,c,s),v=h.__e,(_=h.ref)&&d.ref!=_&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(_,h.__c||v,h)),null!=v?(null==b&&(b=v),"function"==typeof h.type&&h.__k===d.__k?h.__d=c=O(h,c,t):c=E(t,h,d,k,v,c),"function"==typeof n.type&&(n.__d=c)):c&&d.__e==c&&c.parentNode!=t&&(c=w(d))}for(n.__e=b,u=x;u--;)null!=k[u]&&("function"==typeof n.type&&null!=k[u].__e&&k[u].__e==n.__d&&(n.__d=w(r,u+1)),R(k[u],k[u]));if(g)for(u=0;u<g.length;u++)z(g[u],g[++u],g[++u])}function O(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?O(r,e,n):E(n,r,r,o,r.__e,e));return e}function U(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){U(t,e)})):e.push(t)),e}function E(t,e,n,r,o,i){var a,l,c;if(void 0!==e.__d)a=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),a=null;else{for(l=i,c=0;(l=l.nextSibling)&&c<r.length;c+=2)if(l==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function P(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||_.test(e)?n:n+"px"}function j(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||P(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||P(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?T:A,i):t.removeEventListener(e,i?T:A,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 A(t){this.l[t.type+!1](o.event?o.event(t):t)}function T(t){this.l[t.type+!0](o.event?o.event(t):t)}function M(t,e,n,r,i,a,l,c,s){var u,p,f,_,h,v,y,b,w,k,x,C=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(u=o.__b)&&u(e);try{t:if("function"==typeof C){if(b=e.props,w=(u=C.contextType)&&r[u.__c],k=u?w?w.props.value:u.__:r,n.__c?y=(p=e.__c=n.__c).__=p.__E:("prototype"in C&&C.prototype.render?e.__c=p=new C(b,k):(e.__c=p=new g(b,k),p.constructor=C,p.render=D),w&&w.sub(p),p.props=b,p.state||(p.state={}),p.context=k,p.__n=r,f=p.__d=!0,p.__h=[]),null==p.__s&&(p.__s=p.state),null!=C.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=d({},p.__s)),d(p.__s,C.getDerivedStateFromProps(b,p.__s))),_=p.props,h=p.state,f)null==C.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==C.getDerivedStateFromProps&&b!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,k),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,k)||e.__v===n.__v){p.props=b,p.state=p.__s,e.__v!==n.__v&&(p.__d=!1),p.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,k),null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(_,h,v)}))}p.context=k,p.props=b,p.state=p.__s,(u=o.__r)&&u(e),p.__d=!1,p.__v=e,p.__P=t,u=p.render(p.props,p.state,p.context),p.state=p.__s,null!=p.getChildContext&&(r=d(d({},r),p.getChildContext())),f||null==p.getSnapshotBeforeUpdate||(v=p.getSnapshotBeforeUpdate(_,h)),x=null!=u&&u.type===m&&null==u.key?u.props.children:u,S(t,Array.isArray(x)?x:[x],e,n,r,i,a,l,c,s),p.base=e.__e,e.__h=null,p.__h.length&&l.push(p),y&&(p.__E=p.__=null),p.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=N(n.__e,e,n,r,i,a,l,s);(u=o.diffed)&&u(e)}catch(t){e.__v=null,(s||null!=a)&&(e.__e=c,e.__h=!!s,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function L(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function N(t,e,n,o,i,a,l,c){var s,u,f,_=n.props,d=e.props,v=e.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((s=a[y])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){t=s,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),a=null,c=!1}if(null===v)_===d||c&&t.data===d||(t.data=d);else{if(a=a&&r.call(t.childNodes),u=(_=n.props||p).dangerouslySetInnerHTML,f=d.dangerouslySetInnerHTML,!c){if(null!=a)for(_={},y=0;y<t.attributes.length;y++)_[t.attributes[y].name]=t.attributes[y].value;(f||u)&&(f&&(u&&f.__html==u.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||j(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]||j(t,i,e[i],n[i],r)}(t,d,_,i,c),f)e.__k=[];else if(y=e.props.children,S(t,Array.isArray(y)?y:[y],e,n,o,i&&"foreignObject"!==v,a,l,a?a[0]:n.__k&&w(n,0),c),null!=a)for(y=a.length;y--;)null!=a[y]&&h(a[y]);c||("value"in d&&void 0!==(y=d.value)&&(y!==t.value||"progress"===v&&!y||"option"===v&&y!==_.value)&&j(t,"value",y,_.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==t.checked&&j(t,"checked",y,_.checked,!1))}return t}function z(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function R(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||z(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&R(r[i],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function D(t,e,n){return this.constructor(t,n)}function I(t,e,n){var i,a,l;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,l=[],M(e,t=(!i&&n||e).__k=v(m,null,[t]),a||p,p,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,l,!i&&n?n:a?a.__e:e.firstChild,i),L(l,t)}function W(t,e){I(t,e,W)}function F(t,e,n){var o,i,a,l=d({},t.props);for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:l[a]=e[a];return arguments.length>2&&(l.children=arguments.length>3?r.call(arguments,2):n),y(t.type,l,o||t.key,i||t.ref,null)}function $(t,e){var n={__c:e="__cC"+u++,__: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(x)},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}r=f.slice,o={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},i=0,a=function(t){return null!=t&&void 0===t.constructor},g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},g.prototype.render=m,l=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,C.__r=0,u=0}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,exports:{}};return t[r](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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{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 r=e.getElementsByTagName("script");r.length&&(t=r[r.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=n(400);function e(){return(e=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 r(e){this.getChildContext=function(){return e.context};var n=e.children,r=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}(e,["context","children"]);return(0,t.cloneElement)(n,r)}function o(){var n=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(n),this._vdom=(0,t.h)(r,e({},this._props,{context:n.detail.context}),function e(n,r){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var o=[],a={},l=0,s=n.attributes,u=n.childNodes;for(l=s.length;l--;)"slot"!==s[l].name&&(a[s[l].name]=s[l].value,a[i(s[l].name)]=s[l].value);for(l=u.length;l--;){var p=e(u[l],null),f=u[l].slot;f?a[f]=(0,t.h)(c,{name:f},p):o[l]=p}var _=r?(0,t.h)(c,null,o):o;return(0,t.h)(r||n.nodeName.toLowerCase(),a,_)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?t.hydrate:t.render)(this._vdom,this._root)}function i(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function a(e,n,r){if(this._vdom){var o={};o[e]=r=null==r?void 0:r,o[i(e)]=r,this._vdom=(0,t.cloneElement)(this._vdom,o),(0,t.render)(this._vdom,this._root)}}function l(){(0,t.render)(this._vdom=null,this._root)}function c(n,r){var o=this;return(0,t.h)("slot",e({},n,{ref:function(t){t?(o.ref=t,o._listener||(o._listener=function(t){t.stopPropagation(),t.detail.context=r},t.addEventListener("_preact",o._listener))):o.ref.removeEventListener("_preact",o._listener)}}))}var s=0;function u(e,n,r,o,i){var a,l,c={};for(l in n)"ref"==l?a=n[l]:c[l]=n[l];var u={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--s,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return t.options.vnode&&t.options.vnode(u),u}var p=n(232);const f=n.p+"assets/icon.png";var _=function(){return _=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_.apply(this,arguments)};const d=function(){return u("header",{children:[u("h1",{children:"Support Admin Component"}),u("img",{src:f}),u("nav",{children:u(p.rU,_({href:"/"},{children:"Home"}))})]})};var h=n(383),v=function(){return v=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},v.apply(this,arguments)};!function(t,e,n,r){function i(){var e=Reflect.construct(HTMLElement,[],i);return e._vdomComponent=t,e._root=e,e}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=o,i.prototype.attributeChangedCallback=a,i.prototype.disconnectedCallback=l,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),i.observedAttributes=n,n.forEach((function(t){Object.defineProperty(i.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("superhero-pba-support-admin",i)}((function(e){var n={backendUrl:e["backend-url"],accessToken:e["access-token"]};return u(t.Fragment,{children:[u("style",{children:h.Z}),u("div",v({class:"font-serif"},{children:[u(d,{}),u("p",v({class:"font-mono"},{children:"Hello from the component"})),"Config: ",JSON.stringify(n)]}))]})}),0,["backend-url","access-token"])})()})();