@flarehr/promoted-benefits-ui 1.0.143 → 1.0.146
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function _(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(n){if(n.ep)return;n.ep=!0;const r=_(n);fetch(n.href,r)}})();var M,p,he,P,_e,ve,z,ye,S={},me=[],He=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function C(e,t){for(var _ in t)e[_]=t[_];return e}function ge(e){var t=e.parentNode;t&&t.removeChild(e)}function Ue(e,t,_){var o,n,r,c={};for(r in t)r=="key"?o=t[r]:r=="ref"?n=t[r]:c[r]=t[r];if(arguments.length>2&&(c.children=arguments.length>3?M.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)c[r]===void 0&&(c[r]=e.defaultProps[r]);return F(e,c,o,n,null)}function F(e,t,_,o,n){var r={type:e,props:t,key:_,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++he,__i:-1,__u:0};return n==null&&p.vnode!=null&&p.vnode(r),r}function E(e){return e.children}function I(e,t){this.props=e,this.context=t}function H(e,t){if(t==null)return e.__?H(e.__,e.__i+1):null;for(var _;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null)return _.__e;return typeof e.type=="function"?H(e):null}function be(e){var t,_;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null){e.__e=e.__c.base=_.__e;break}return be(e)}}function G(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!B.__r++||_e!==p.debounceRendering)&&((_e=p.debounceRendering)||ve)(B)}function B(){var e,t,_,o,n,r,c,l,u;for(P.sort(z);e=P.shift();)e.__d&&(t=P.length,o=void 0,r=(n=(_=e).__v).__e,l=[],u=[],(c=_.__P)&&((o=C({},n)).__v=n.__v+1,p.vnode&&p.vnode(o),Y(c,o,n,_.__n,c.ownerSVGElement!==void 0,32&n.__u?[r]:null,l,r??H(n),!!(32&n.__u),u),o.__v=n.__v,o.__.__k[o.__i]=o,$e(l,o,u),o.__e!=r&&be(o)),P.length>t&&P.sort(z));B.__r=0}function ke(e,t,_,o,n,r,c,l,u,s,f){var i,d,a,m,w,g=o&&o.__k||me,h=t.length;for(_.__d=u,Se(_,t,g),u=_.__d,i=0;i<h;i++)(a=_.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(d=a.__i===-1?S:g[a.__i]||S,a.__i=i,Y(e,a,d,n,r,c,l,u,s,f),m=a.__e,a.ref&&d.ref!=a.ref&&(d.ref&&Z(d.ref,null,a),f.push(a.ref,a.__c||m,a)),w==null&&m!=null&&(w=m),65536&a.__u||d.__k===a.__k?(m||d.__e!=u||(u=H(d)),u=we(a,u,e)):typeof a.type=="function"&&a.__d!==void 0?u=a.__d:m&&(u=m.nextSibling),a.__d=void 0,a.__u&=-196609);_.__d=u,_.__e=w}function Se(e,t,_){var o,n,r,c,l,u=t.length,s=_.length,f=s,i=0;for(e.__k=[],o=0;o<u;o++)c=o+i,(n=e.__k[o]=(n=t[o])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?F(null,n,null,null,null):X(n)?F(E,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?F(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=e,n.__b=e.__b+1,l=Te(n,_,c,f),n.__i=l,r=null,l!==-1&&(f--,(r=_[l])&&(r.__u|=131072)),r==null||r.__v===null?(l==-1&&i--,typeof n.type!="function"&&(n.__u|=65536)):l!==c&&(l===c+1?i++:l>c?f>u-c?i+=l-c:i--:l<c?l==c-1&&(i=l-c):i=0,l!==o+i&&(n.__u|=65536))):(r=_[c])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=H(r)),K(r,r,!1),_[c]=null,f--);if(f)for(o=0;o<s;o++)(r=_[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=H(r)),K(r,r))}function we(e,t,_){var o,n;if(typeof e.type=="function"){for(o=e.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=e,t=we(o[n],t,_));return t}e.__e!=t&&(_.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Te(e,t,_,o){var n=e.key,r=e.type,c=_-1,l=_+1,u=t[_];if(u===null||u&&n==u.key&&r===u.type&&!(131072&u.__u))return _;if(o>(u!=null&&!(131072&u.__u)?1:0))for(;c>=0||l<t.length;){if(c>=0){if((u=t[c])&&!(131072&u.__u)&&n==u.key&&r===u.type)return c;c--}if(l<t.length){if((u=t[l])&&!(131072&u.__u)&&n==u.key&&r===u.type)return l;l++}}return-1}function ne(e,t,_){t[0]==="-"?e.setProperty(t,_??""):e[t]=_==null?"":typeof _!="number"||He.test(t)?_:_+"px"}function D(e,t,_,o,n){var r;e:if(t==="style")if(typeof _=="string")e.style.cssText=_;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)_&&t in _||ne(e.style,t,"");if(_)for(t in _)o&&_[t]===o[t]||ne(e.style,t,_[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=_,_?o?_.u=o.u:(_.u=Date.now(),e.addEventListener(t,r?re:oe,r)):e.removeEventListener(t,r?re:oe,r);else{if(n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,_))}}function oe(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(p.event?p.event(e):e)}}function re(e){if(this.l)return this.l[e.type+!0](p.event?p.event(e):e)}function Y(e,t,_,o,n,r,c,l,u,s){var f,i,d,a,m,w,g,h,b,$,N,U,te,A,R,k=t.type;if(t.constructor!==void 0)return null;128&_.__u&&(u=!!(32&_.__u),r=[l=t.__e=_.__e]),(f=p.__b)&&f(t);e:if(typeof k=="function")try{if(h=t.props,b=(f=k.contextType)&&o[f.__c],$=f?b?b.props.value:f.__:o,_.__c?g=(i=t.__c=_.__c).__=i.__E:("prototype"in k&&k.prototype.render?t.__c=i=new k(h,$):(t.__c=i=new I(h,$),i.constructor=k,i.render=Ne),b&&b.sub(i),i.props=h,i.state||(i.state={}),i.context=$,i.__n=o,d=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),k.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=C({},i.__s)),C(i.__s,k.getDerivedStateFromProps(h,i.__s))),a=i.props,m=i.state,i.__v=t,d)k.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(k.getDerivedStateFromProps==null&&h!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(h,$),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(h,i.__s,$)===!1||t.__v===_.__v)){for(t.__v!==_.__v&&(i.props=h,i.state=i.__s,i.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.forEach(function(L){L&&(L.__=t)}),N=0;N<i._sb.length;N++)i.__h.push(i._sb[N]);i._sb=[],i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(h,i.__s,$),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,m,w)})}if(i.context=$,i.props=h,i.__P=e,i.__e=!1,U=p.__r,te=0,"prototype"in k&&k.prototype.render){for(i.state=i.__s,i.__d=!1,U&&U(t),f=i.render(i.props,i.state,i.context),A=0;A<i._sb.length;A++)i.__h.push(i._sb[A]);i._sb=[]}else do i.__d=!1,U&&U(t),f=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++te<25);i.state=i.__s,i.getChildContext!=null&&(o=C(C({},o),i.getChildContext())),d||i.getSnapshotBeforeUpdate==null||(w=i.getSnapshotBeforeUpdate(a,m)),ke(e,X(R=f!=null&&f.type===E&&f.key==null?f.props.children:f)?R:[R],t,_,o,n,r,c,l,u,s),i.base=t.__e,t.__u&=-161,i.__h.length&&c.push(i),g&&(i.__E=i.__=null)}catch(L){t.__v=null,u||r!=null?(t.__e=l,t.__u|=u?160:32,r[r.indexOf(l)]=null):(t.__e=_.__e,t.__k=_.__k),p.__e(L,t,_)}else r==null&&t.__v===_.__v?(t.__k=_.__k,t.__e=_.__e):t.__e=Ee(_.__e,t,_,o,n,r,c,u,s);(f=p.diffed)&&f(t)}function $e(e,t,_){t.__d=void 0;for(var o=0;o<_.length;o++)Z(_[o],_[++o],_[++o]);p.__c&&p.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){p.__e(r,n.__v)}})}function Ee(e,t,_,o,n,r,c,l,u){var s,f,i,d,a,m,w,g=_.props,h=t.props,b=t.type;if(b==="svg"&&(n=!0),r!=null){for(s=0;s<r.length;s++)if((a=r[s])&&"setAttribute"in a==!!b&&(b?a.localName===b:a.nodeType===3)){e=a,r[s]=null;break}}if(e==null){if(b===null)return document.createTextNode(h);e=n?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,h.is&&h),r=null,l=!1}if(b===null)g===h||l&&e.data===h||(e.data=h);else{if(r=r&&M.call(e.childNodes),g=_.props||S,!l&&r!=null)for(g={},s=0;s<e.attributes.length;s++)g[(a=e.attributes[s]).name]=a.value;for(s in g)a=g[s],s=="children"||(s=="dangerouslySetInnerHTML"?i=a:s==="key"||s in h||D(e,s,null,a,n));for(s in h)a=h[s],s=="children"?d=a:s=="dangerouslySetInnerHTML"?f=a:s=="value"?m=a:s=="checked"?w=a:s==="key"||l&&typeof a!="function"||g[s]===a||D(e,s,a,g[s],n);if(f)l||i&&(f.__html===i.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(i&&(e.innerHTML=""),ke(e,X(d)?d:[d],t,_,o,n&&b!=="foreignObject",r,c,r?r[0]:_.__k&&H(_,0),l,u),r!=null)for(s=r.length;s--;)r[s]!=null&&ge(r[s]);l||(s="value",m!==void 0&&(m!==e[s]||b==="progress"&&!m||b==="option"&&m!==g[s])&&D(e,s,m,g[s],!1),s="checked",w!==void 0&&w!==e[s]&&D(e,s,w,g[s],!1))}return e}function Z(e,t,_){try{typeof e=="function"?e(t):e.current=t}catch(o){p.__e(o,_)}}function K(e,t,_){var o,n;if(p.unmount&&p.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Z(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){p.__e(r,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(n=0;n<o.length;n++)o[n]&&K(o[n],t,_||typeof e.type!="function");_||e.__e==null||ge(e.__e),e.__=e.__e=e.__d=void 0}function Ne(e,t,_){return this.constructor(e,_)}function Ae(e,t,_){var o,n,r,c;p.__&&p.__(e,t),n=(o=typeof _=="function")?null:_&&_.__k||t.__k,r=[],c=[],Y(t,e=(!o&&_||t).__k=Ue(E,null,[e]),n||S,S,t.ownerSVGElement!==void 0,!o&&_?[_]:n?null:t.firstChild?M.call(t.childNodes):null,r,!o&&_?_:n?n.__e:t.firstChild,o,c),$e(r,e,c)}function j(e,t){var _={__c:t="__cC"+ye++,__:e,Consumer:function(o,n){return o.children(n)},Provider:function(o){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&n.some(function(l){l.__e=!0,G(l)})},this.sub=function(c){n.push(c);var l=c.componentWillUnmount;c.componentWillUnmount=function(){n.splice(n.indexOf(c),1),l&&l.call(c)}}),o.children}};return _.Provider.__=_.Consumer.contextType=_}M=me.slice,p={__e:function(e,t,_,o){for(var n,r,c;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),c=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,o||{}),c=n.__d),c)return n.__E=n}catch(l){e=l}throw e}},he=0,I.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},_),this.props)),e&&C(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),G(this))},I.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},I.prototype.render=E,P=[],ve=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z=function(e,t){return e.__v.__b-t.__v.__b},B.__r=0,ye=0;var Le=0;function x(e,t,_,o,n,r){var c,l,u={};for(l in t)l=="ref"?c=t[l]:u[l]=t[l];var s={type:e,props:u,key:_,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:n,__self:r};if(typeof e=="function"&&(c=e.defaultProps))for(l in c)u[l]===void 0&&(u[l]=c[l]);return p.vnode&&p.vnode(s),s}var T,v,V,ie,Q=0,xe=[],W=[],y=p,ce=y.__b,le=y.__r,se=y.diffed,ue=y.__c,ae=y.unmount,fe=y.__;function ee(e,t){y.__h&&y.__h(v,e,Q||t),Q=0;var _=v.__H||(v.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({__V:W}),_.__[e]}function q(e){return Q=1,De(Ce,e)}function De(e,t,_){var o=ee(T++,2);if(o.t=e,!o.__c&&(o.__=[_?_(t):Ce(void 0,t),function(l){var u=o.__N?o.__N[0]:o.__[0],s=o.t(u,l);u!==s&&(o.__N=[s,o.__[1]],o.__c.setState({}))}],o.__c=v,!v.u)){var n=function(l,u,s){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!r||r.call(this,l,u,s);var i=!1;return f.forEach(function(d){if(d.__N){var a=d.__[0];d.__=d.__N,d.__N=void 0,a!==d.__[0]&&(i=!0)}}),!(!i&&o.__c.props===l)&&(!r||r.call(this,l,u,s))};v.u=!0;var r=v.shouldComponentUpdate,c=v.componentWillUpdate;v.componentWillUpdate=function(l,u,s){if(this.__e){var f=r;r=void 0,n(l,u,s),r=f}c&&c.call(this,l,u,s)},v.shouldComponentUpdate=n}return o.__N||o.__}function de(e,t){var _=ee(T++,3);!y.__s&&Oe(_.__H,t)&&(_.__=e,_.i=t,v.__H.__h.push(_))}function Fe(e){var t=v.context[e.__c],_=ee(T++,9);return _.c=e,t?(_.__==null&&(_.__=!0,t.sub(v)),t.props.value):e.__}function Ie(){for(var e;e=xe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(O),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){v=null,ce&&ce(e)},y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},y.__r=function(e){le&&le(e),T=0;var t=(v=e.__c).__H;t&&(V===v?(t.__h=[],v.__h=[],t.__.forEach(function(_){_.__N&&(_.__=_.__N),_.__V=W,_.__N=_.i=void 0})):(t.__h.forEach(O),t.__h.forEach(J),t.__h=[],T=0)),V=v},y.diffed=function(e){se&&se(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(xe.push(t)!==1&&ie===y.requestAnimationFrame||((ie=y.requestAnimationFrame)||We)(Ie)),t.__H.__.forEach(function(_){_.i&&(_.__H=_.i),_.__V!==W&&(_.__=_.__V),_.i=void 0,_.__V=W})),V=v=null},y.__c=function(e,t){t.some(function(_){try{_.__h.forEach(O),_.__h=_.__h.filter(function(o){return!o.__||J(o)})}catch(o){t.some(function(n){n.__h&&(n.__h=[])}),t=[],y.__e(o,_.__v)}}),ue&&ue(e,t)},y.unmount=function(e){ae&&ae(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(o){try{O(o)}catch(n){t=n}}),_.__H=void 0,t&&y.__e(t,_.__v))};var pe=typeof requestAnimationFrame=="function";function We(e){var t,_=function(){clearTimeout(o),pe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(_,100);pe&&(t=requestAnimationFrame(_))}function O(e){var t=v,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),v=t}function J(e){var t=v;e.__c=e.__(),v=t}function Oe(e,t){return!e||e.length!==t.length||t.some(function(_,o){return _!==e[o]})}function Ce(e,t){return typeof t=="function"?t(e):t}let Pe=j({});const Be=e=>Pe=j({...e}),Me=()=>Fe(Pe),je=async(e,t,_,o)=>{const n=new Headers;n.append("Content-Type","application/x-www-form-urlencoded");let r;const c=new URLSearchParams;c.append("grant_type","authorization_code"),c.append("code",t),c.append("client_id",_),c.append("redirect_uri",o);const l=await fetch(`${e}/connect/token`,{method:"POST",headers:n,body:c});return l.ok&&(r=await l.json()),r},Re=e=>{if(e)return{accessToken:e.access_token,isLoggedIn:!!e.access_token,expiresIn:e.expires_in}},Ve=e=>new URLSearchParams(window.location.search).get(e)??void 0,qe=async e=>{const t=Ve("code"),_=`${window.location.origin}/promoted-benefits/app/v1.0/`;if(!(!e.identityUrl||!e.clientId||!t))return Re(await je(e.identityUrl,t,e.clientId,_))},ze=async(e,t)=>{let _;const o=await fetch(e,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});return o.ok&&(_=await o.json()),_},Ge=(e,t,_)=>`${e}app/?token=${t}&redirectPath=${_}`,Ke=async(e,t,_)=>{const o=`${e==null?void 0:e.apolloBaseUrl}/benefits/`;if(!o||!_||!t)return;const n=await ze(`${o}/backend/v1.0/current/token`,t);if(!(!n||!n.token))return Ge(o,n.token,_)};j({});const Qe=e=>j({...e}),Je=async()=>{let e;const t=await fetch(`${window.location.origin}/promoted-benefits/app/v1.0/config.json`);return t.ok&&(e=await t.json()),e},Xe=()=>{const[e,t]=q({}),[_,o]=q(),[n,r]=q(!1);Be(e);const c=Me(),l="/categories/everyday?src=someurlfortracking",u=async()=>{const s=await Ke(_,c.accessToken,l);if(s){const f=window.open();f&&(f.location=`${s}`)}};return de(()=>{(async()=>{const s=await Je();s&&(Qe(s),o(s))})()},[]),de(()=>{(async()=>{if(!n&&_){const s=await qe(_);s&&t(s),r(!0)}})()},[_]),n?c.isLoggedIn?x("div",{className:"text-3xl font-bold",children:[x("h1",{children:"Hello World!"}),x("button",{onClick:u,class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline",type:"button",children:"Try apollo benefits"})]}):x(E,{children:x("div",{className:"text-3xl font-bold danger",children:x("h1",{children:"Auth failed"})})}):x("p",{children:"Loading..."})};Ae(x(Xe,{}),document.body);
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function _(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(n){if(n.ep)return;n.ep=!0;const r=_(n);fetch(n.href,r)}})();var M,p,he,C,_e,ve,z,ye,S={},me=[],He=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,X=Array.isArray;function P(e,t){for(var _ in t)e[_]=t[_];return e}function ge(e){var t=e.parentNode;t&&t.removeChild(e)}function Ue(e,t,_){var o,n,r,c={};for(r in t)r=="key"?o=t[r]:r=="ref"?n=t[r]:c[r]=t[r];if(arguments.length>2&&(c.children=arguments.length>3?M.call(arguments,2):_),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)c[r]===void 0&&(c[r]=e.defaultProps[r]);return I(e,c,o,n,null)}function I(e,t,_,o,n){var r={type:e,props:t,key:_,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++he,__i:-1,__u:0};return n==null&&p.vnode!=null&&p.vnode(r),r}function E(e){return e.children}function F(e,t){this.props=e,this.context=t}function H(e,t){if(t==null)return e.__?H(e.__,e.__i+1):null;for(var _;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null)return _.__e;return typeof e.type=="function"?H(e):null}function be(e){var t,_;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((_=e.__k[t])!=null&&_.__e!=null){e.__e=e.__c.base=_.__e;break}return be(e)}}function G(e){(!e.__d&&(e.__d=!0)&&C.push(e)&&!B.__r++||_e!==p.debounceRendering)&&((_e=p.debounceRendering)||ve)(B)}function B(){var e,t,_,o,n,r,c,s,u;for(C.sort(z);e=C.shift();)e.__d&&(t=C.length,o=void 0,r=(n=(_=e).__v).__e,s=[],u=[],(c=_.__P)&&((o=P({},n)).__v=n.__v+1,p.vnode&&p.vnode(o),Y(c,o,n,_.__n,c.ownerSVGElement!==void 0,32&n.__u?[r]:null,s,r??H(n),!!(32&n.__u),u),o.__v=n.__v,o.__.__k[o.__i]=o,$e(s,o,u),o.__e!=r&&be(o)),C.length>t&&C.sort(z));B.__r=0}function ke(e,t,_,o,n,r,c,s,u,l,f){var i,d,a,m,w,g=o&&o.__k||me,h=t.length;for(_.__d=u,Se(_,t,g),u=_.__d,i=0;i<h;i++)(a=_.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(d=a.__i===-1?S:g[a.__i]||S,a.__i=i,Y(e,a,d,n,r,c,s,u,l,f),m=a.__e,a.ref&&d.ref!=a.ref&&(d.ref&&Z(d.ref,null,a),f.push(a.ref,a.__c||m,a)),w==null&&m!=null&&(w=m),65536&a.__u||d.__k===a.__k?(m||d.__e!=u||(u=H(d)),u=we(a,u,e)):typeof a.type=="function"&&a.__d!==void 0?u=a.__d:m&&(u=m.nextSibling),a.__d=void 0,a.__u&=-196609);_.__d=u,_.__e=w}function Se(e,t,_){var o,n,r,c,s,u=t.length,l=_.length,f=l,i=0;for(e.__k=[],o=0;o<u;o++)c=o+i,(n=e.__k[o]=(n=t[o])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?I(null,n,null,null,null):X(n)?I(E,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?I(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=e,n.__b=e.__b+1,s=Te(n,_,c,f),n.__i=s,r=null,s!==-1&&(f--,(r=_[s])&&(r.__u|=131072)),r==null||r.__v===null?(s==-1&&i--,typeof n.type!="function"&&(n.__u|=65536)):s!==c&&(s===c+1?i++:s>c?f>u-c?i+=s-c:i--:s<c?s==c-1&&(i=s-c):i=0,s!==o+i&&(n.__u|=65536))):(r=_[c])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=H(r)),K(r,r,!1),_[c]=null,f--);if(f)for(o=0;o<l;o++)(r=_[o])!=null&&!(131072&r.__u)&&(r.__e==e.__d&&(e.__d=H(r)),K(r,r))}function we(e,t,_){var o,n;if(typeof e.type=="function"){for(o=e.__k,n=0;o&&n<o.length;n++)o[n]&&(o[n].__=e,t=we(o[n],t,_));return t}e.__e!=t&&(_.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Te(e,t,_,o){var n=e.key,r=e.type,c=_-1,s=_+1,u=t[_];if(u===null||u&&n==u.key&&r===u.type&&!(131072&u.__u))return _;if(o>(u!=null&&!(131072&u.__u)?1:0))for(;c>=0||s<t.length;){if(c>=0){if((u=t[c])&&!(131072&u.__u)&&n==u.key&&r===u.type)return c;c--}if(s<t.length){if((u=t[s])&&!(131072&u.__u)&&n==u.key&&r===u.type)return s;s++}}return-1}function ne(e,t,_){t[0]==="-"?e.setProperty(t,_??""):e[t]=_==null?"":typeof _!="number"||He.test(t)?_:_+"px"}function D(e,t,_,o,n){var r;e:if(t==="style")if(typeof _=="string")e.style.cssText=_;else{if(typeof o=="string"&&(e.style.cssText=o=""),o)for(t in o)_&&t in _||ne(e.style,t,"");if(_)for(t in _)o&&_[t]===o[t]||ne(e.style,t,_[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=_,_?o?_.u=o.u:(_.u=Date.now(),e.addEventListener(t,r?re:oe,r)):e.removeEventListener(t,r?re:oe,r);else{if(n)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=_??"";break e}catch{}typeof _=="function"||(_==null||_===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,_))}}function oe(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(p.event?p.event(e):e)}}function re(e){if(this.l)return this.l[e.type+!0](p.event?p.event(e):e)}function Y(e,t,_,o,n,r,c,s,u,l){var f,i,d,a,m,w,g,h,b,$,N,U,te,A,R,k=t.type;if(t.constructor!==void 0)return null;128&_.__u&&(u=!!(32&_.__u),r=[s=t.__e=_.__e]),(f=p.__b)&&f(t);e:if(typeof k=="function")try{if(h=t.props,b=(f=k.contextType)&&o[f.__c],$=f?b?b.props.value:f.__:o,_.__c?g=(i=t.__c=_.__c).__=i.__E:("prototype"in k&&k.prototype.render?t.__c=i=new k(h,$):(t.__c=i=new F(h,$),i.constructor=k,i.render=Ne),b&&b.sub(i),i.props=h,i.state||(i.state={}),i.context=$,i.__n=o,d=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),k.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=P({},i.__s)),P(i.__s,k.getDerivedStateFromProps(h,i.__s))),a=i.props,m=i.state,i.__v=t,d)k.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(k.getDerivedStateFromProps==null&&h!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(h,$),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(h,i.__s,$)===!1||t.__v===_.__v)){for(t.__v!==_.__v&&(i.props=h,i.state=i.__s,i.__d=!1),t.__e=_.__e,t.__k=_.__k,t.__k.forEach(function(L){L&&(L.__=t)}),N=0;N<i._sb.length;N++)i.__h.push(i._sb[N]);i._sb=[],i.__h.length&&c.push(i);break e}i.componentWillUpdate!=null&&i.componentWillUpdate(h,i.__s,$),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,m,w)})}if(i.context=$,i.props=h,i.__P=e,i.__e=!1,U=p.__r,te=0,"prototype"in k&&k.prototype.render){for(i.state=i.__s,i.__d=!1,U&&U(t),f=i.render(i.props,i.state,i.context),A=0;A<i._sb.length;A++)i.__h.push(i._sb[A]);i._sb=[]}else do i.__d=!1,U&&U(t),f=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++te<25);i.state=i.__s,i.getChildContext!=null&&(o=P(P({},o),i.getChildContext())),d||i.getSnapshotBeforeUpdate==null||(w=i.getSnapshotBeforeUpdate(a,m)),ke(e,X(R=f!=null&&f.type===E&&f.key==null?f.props.children:f)?R:[R],t,_,o,n,r,c,s,u,l),i.base=t.__e,t.__u&=-161,i.__h.length&&c.push(i),g&&(i.__E=i.__=null)}catch(L){t.__v=null,u||r!=null?(t.__e=s,t.__u|=u?160:32,r[r.indexOf(s)]=null):(t.__e=_.__e,t.__k=_.__k),p.__e(L,t,_)}else r==null&&t.__v===_.__v?(t.__k=_.__k,t.__e=_.__e):t.__e=Ee(_.__e,t,_,o,n,r,c,u,l);(f=p.diffed)&&f(t)}function $e(e,t,_){t.__d=void 0;for(var o=0;o<_.length;o++)Z(_[o],_[++o],_[++o]);p.__c&&p.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){p.__e(r,n.__v)}})}function Ee(e,t,_,o,n,r,c,s,u){var l,f,i,d,a,m,w,g=_.props,h=t.props,b=t.type;if(b==="svg"&&(n=!0),r!=null){for(l=0;l<r.length;l++)if((a=r[l])&&"setAttribute"in a==!!b&&(b?a.localName===b:a.nodeType===3)){e=a,r[l]=null;break}}if(e==null){if(b===null)return document.createTextNode(h);e=n?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,h.is&&h),r=null,s=!1}if(b===null)g===h||s&&e.data===h||(e.data=h);else{if(r=r&&M.call(e.childNodes),g=_.props||S,!s&&r!=null)for(g={},l=0;l<e.attributes.length;l++)g[(a=e.attributes[l]).name]=a.value;for(l in g)a=g[l],l=="children"||(l=="dangerouslySetInnerHTML"?i=a:l==="key"||l in h||D(e,l,null,a,n));for(l in h)a=h[l],l=="children"?d=a:l=="dangerouslySetInnerHTML"?f=a:l=="value"?m=a:l=="checked"?w=a:l==="key"||s&&typeof a!="function"||g[l]===a||D(e,l,a,g[l],n);if(f)s||i&&(f.__html===i.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(i&&(e.innerHTML=""),ke(e,X(d)?d:[d],t,_,o,n&&b!=="foreignObject",r,c,r?r[0]:_.__k&&H(_,0),s,u),r!=null)for(l=r.length;l--;)r[l]!=null&&ge(r[l]);s||(l="value",m!==void 0&&(m!==e[l]||b==="progress"&&!m||b==="option"&&m!==g[l])&&D(e,l,m,g[l],!1),l="checked",w!==void 0&&w!==e[l]&&D(e,l,w,g[l],!1))}return e}function Z(e,t,_){try{typeof e=="function"?e(t):e.current=t}catch(o){p.__e(o,_)}}function K(e,t,_){var o,n;if(p.unmount&&p.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||Z(o,null,t)),(o=e.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(r){p.__e(r,t)}o.base=o.__P=null,e.__c=void 0}if(o=e.__k)for(n=0;n<o.length;n++)o[n]&&K(o[n],t,_||typeof e.type!="function");_||e.__e==null||ge(e.__e),e.__=e.__e=e.__d=void 0}function Ne(e,t,_){return this.constructor(e,_)}function Ae(e,t,_){var o,n,r,c;p.__&&p.__(e,t),n=(o=typeof _=="function")?null:_&&_.__k||t.__k,r=[],c=[],Y(t,e=(!o&&_||t).__k=Ue(E,null,[e]),n||S,S,t.ownerSVGElement!==void 0,!o&&_?[_]:n?null:t.firstChild?M.call(t.childNodes):null,r,!o&&_?_:n?n.__e:t.firstChild,o,c),$e(r,e,c)}function j(e,t){var _={__c:t="__cC"+ye++,__:e,Consumer:function(o,n){return o.children(n)},Provider:function(o){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(c){this.props.value!==c.value&&n.some(function(s){s.__e=!0,G(s)})},this.sub=function(c){n.push(c);var s=c.componentWillUnmount;c.componentWillUnmount=function(){n.splice(n.indexOf(c),1),s&&s.call(c)}}),o.children}};return _.Provider.__=_.Consumer.contextType=_}M=me.slice,p={__e:function(e,t,_,o){for(var n,r,c;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&r.getDerivedStateFromError!=null&&(n.setState(r.getDerivedStateFromError(e)),c=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(e,o||{}),c=n.__d),c)return n.__E=n}catch(s){e=s}throw e}},he=0,F.prototype.setState=function(e,t){var _;_=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},_),this.props)),e&&P(_,e),e!=null&&this.__v&&(t&&this._sb.push(t),G(this))},F.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),G(this))},F.prototype.render=E,C=[],ve=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z=function(e,t){return e.__v.__b-t.__v.__b},B.__r=0,ye=0;var Le=0;function x(e,t,_,o,n,r){var c,s,u={};for(s in t)s=="ref"?c=t[s]:u[s]=t[s];var l={type:e,props:u,key:_,ref:c,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Le,__i:-1,__u:0,__source:n,__self:r};if(typeof e=="function"&&(c=e.defaultProps))for(s in c)u[s]===void 0&&(u[s]=c[s]);return p.vnode&&p.vnode(l),l}var T,v,V,ie,Q=0,xe=[],W=[],y=p,ce=y.__b,se=y.__r,le=y.diffed,ue=y.__c,ae=y.unmount,fe=y.__;function ee(e,t){y.__h&&y.__h(v,e,Q||t),Q=0;var _=v.__H||(v.__H={__:[],__h:[]});return e>=_.__.length&&_.__.push({__V:W}),_.__[e]}function q(e){return Q=1,De(Pe,e)}function De(e,t,_){var o=ee(T++,2);if(o.t=e,!o.__c&&(o.__=[_?_(t):Pe(void 0,t),function(s){var u=o.__N?o.__N[0]:o.__[0],l=o.t(u,s);u!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=v,!v.u)){var n=function(s,u,l){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!r||r.call(this,s,u,l);var i=!1;return f.forEach(function(d){if(d.__N){var a=d.__[0];d.__=d.__N,d.__N=void 0,a!==d.__[0]&&(i=!0)}}),!(!i&&o.__c.props===s)&&(!r||r.call(this,s,u,l))};v.u=!0;var r=v.shouldComponentUpdate,c=v.componentWillUpdate;v.componentWillUpdate=function(s,u,l){if(this.__e){var f=r;r=void 0,n(s,u,l),r=f}c&&c.call(this,s,u,l)},v.shouldComponentUpdate=n}return o.__N||o.__}function de(e,t){var _=ee(T++,3);!y.__s&&Oe(_.__H,t)&&(_.__=e,_.i=t,v.__H.__h.push(_))}function Ie(e){var t=v.context[e.__c],_=ee(T++,9);return _.c=e,t?(_.__==null&&(_.__=!0,t.sub(v)),t.props.value):e.__}function Fe(){for(var e;e=xe.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(O),e.__H.__h.forEach(J),e.__H.__h=[]}catch(t){e.__H.__h=[],y.__e(t,e.__v)}}y.__b=function(e){v=null,ce&&ce(e)},y.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),fe&&fe(e,t)},y.__r=function(e){se&&se(e),T=0;var t=(v=e.__c).__H;t&&(V===v?(t.__h=[],v.__h=[],t.__.forEach(function(_){_.__N&&(_.__=_.__N),_.__V=W,_.__N=_.i=void 0})):(t.__h.forEach(O),t.__h.forEach(J),t.__h=[],T=0)),V=v},y.diffed=function(e){le&&le(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(xe.push(t)!==1&&ie===y.requestAnimationFrame||((ie=y.requestAnimationFrame)||We)(Fe)),t.__H.__.forEach(function(_){_.i&&(_.__H=_.i),_.__V!==W&&(_.__=_.__V),_.i=void 0,_.__V=W})),V=v=null},y.__c=function(e,t){t.some(function(_){try{_.__h.forEach(O),_.__h=_.__h.filter(function(o){return!o.__||J(o)})}catch(o){t.some(function(n){n.__h&&(n.__h=[])}),t=[],y.__e(o,_.__v)}}),ue&&ue(e,t)},y.unmount=function(e){ae&&ae(e);var t,_=e.__c;_&&_.__H&&(_.__H.__.forEach(function(o){try{O(o)}catch(n){t=n}}),_.__H=void 0,t&&y.__e(t,_.__v))};var pe=typeof requestAnimationFrame=="function";function We(e){var t,_=function(){clearTimeout(o),pe&&cancelAnimationFrame(t),setTimeout(e)},o=setTimeout(_,100);pe&&(t=requestAnimationFrame(_))}function O(e){var t=v,_=e.__c;typeof _=="function"&&(e.__c=void 0,_()),v=t}function J(e){var t=v;e.__c=e.__(),v=t}function Oe(e,t){return!e||e.length!==t.length||t.some(function(_,o){return _!==e[o]})}function Pe(e,t){return typeof t=="function"?t(e):t}let Ce=j({});const Be=e=>Ce=j({...e}),Me=()=>Ie(Ce),je=async(e,t,_,o)=>{const n=new Headers;n.append("Content-Type","application/x-www-form-urlencoded");let r;const c=new URLSearchParams;c.append("grant_type","authorization_code"),c.append("code",t),c.append("client_id",_),c.append("redirect_uri",o);const s=await fetch(`${e}/connect/token`,{method:"POST",headers:n,body:c});return s.ok&&(r=await s.json()),r},Re=e=>{if(e)return{accessToken:e.access_token,isLoggedIn:!!e.access_token,expiresIn:e.expires_in}},Ve=e=>new URLSearchParams(window.location.search).get(e)??void 0,qe=async e=>{const t=Ve("code"),_=`${window.location.origin}/promoted-benefits/app/v1.0/`;if(!(!e.identityUrl||!e.clientId||!t))return Re(await je(e.identityUrl,t,e.clientId,_))},ze=async(e,t)=>{let _;const o=await fetch(e,{method:"GET",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json"}});return o.ok&&(_=await o.json()),_},Ge=(e,t,_,o)=>{const n=document.referrer;return`${e}/app/?token=${t}&redirectPath=${_}&referrer=${n}&promotionId=${o}`},Ke=async(e,t,_,o)=>{const n=`${e==null?void 0:e.apolloBaseUrl}/benefits`;if(!n||!_||!t||!o)return;const r=await ze(`${n}/backend/v1.0/current/token`,t);if(!(!r||!r.token))return Ge(n,r.token,_,o)};j({});const Qe=e=>j({...e}),Je=async()=>{let e;const t=await fetch(`${window.location.origin}/promoted-benefits/app/v1.0/config.json`);return t.ok&&(e=await t.json()),e},Xe=()=>{const[e,t]=q({}),[_,o]=q(),[n,r]=q(!1);Be(e);const c=Me(),s="/categories/everyday",u="testPromotionId",l=async()=>{const f=await Ke(_,c.accessToken,s,u);if(f){const i=window.open();i&&(i.location=`${f}`)}};return de(()=>{(async()=>{const f=await Je();f&&(Qe(f),o(f))})()},[]),de(()=>{(async()=>{if(!n&&_){const f=await qe(_);f&&t(f),r(!0)}})()},[_]),n?c.isLoggedIn?x("div",{className:"text-3xl font-bold",children:[x("h1",{children:"Hello World!"}),x("button",{onClick:l,class:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline",type:"button",children:"Try apollo benefits"})]}):x(E,{children:x("div",{className:"text-3xl font-bold danger",children:x("h1",{children:"Auth failed"})})}):x("p",{children:"Loading..."})};Ae(x(Xe,{}),document.body);
|
package/dist/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
margin: 0;
|
|
9
9
|
}
|
|
10
10
|
</style>
|
|
11
|
-
<script type="module" crossorigin src="/promoted-benefits/app/v1.0/assets/index-
|
|
11
|
+
<script type="module" crossorigin src="/promoted-benefits/app/v1.0/assets/index-RXkYvElu.js"></script>
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/promoted-benefits/app/v1.0/assets/index-Drn6v6rS.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flarehr/promoted-benefits-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.146",
|
|
4
4
|
"description": "Flare Promoted Benefits",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"preview": "vite preview",
|
|
13
13
|
"analyze": "npx vite-bundle-visualizer",
|
|
14
14
|
"test": "jest",
|
|
15
|
-
"lint": "eslint src/**/*.{
|
|
16
|
-
"lint:fix": "eslint src/**/*.{
|
|
15
|
+
"lint": "eslint src/**/*.{ts,tsx}",
|
|
16
|
+
"lint:fix": "eslint src/**/*.{ts,tsx} --fix",
|
|
17
17
|
"prepare": "husky"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|