@flarehr/pba-benefits-admin 1.0.44 → 1.0.45
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.
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
${0}
|
|
34
34
|
`),(()=>({alignItems:"center",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",borderWidth:"1px",borderColor:"rgba(0, 0, 0, 0)","&:disabled":{opacity:"0.5"},borderRadius:"0.375rem","--tw-shadow":"0 1px 2px 0 rgba(0, 0, 0, 0.05)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(75, 85, 99, var(--tw-bg-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(55, 65, 81, var(--tw-bg-opacity))"},"&:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-width":"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgba(107, 114, 128, var(--tw-ring-opacity))"}}))),l=Object(n.b)("div")(a||(a=u`
|
|
35
35
|
${0}
|
|
36
|
-
`),(()=>({margin:"5rem"})))},PHxc:function(t,e,r){var n=r("cm7J");t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},PYDc:function(t,e,r){var n=r("FEiO");t.exports=function(){this.__data__=n?n(null):{},this.size=0}},PqlX:function(t){t.exports=Array.isArray},Q7iE:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTUgMTJoLjAxTTEyIDEyaC4wMU0xOSAxMmguMDFNNiAxMmExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6bTcgMGExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6bTcgMGExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6IiAvPjwvc3ZnPg=="},QRet:function(t,e,r){"use strict";function n(t,e){w.options.__h&&w.options.__h(g,t,j||e),j=0;var r=g.__H||(g.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function o(t){return j=1,i(b,t)}function i(t,e,r){var o=n(m++,2);return o.t=t,o.__c||(o.__=[r?r(e):b(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=g),o.__}function a(t,e){var r=n(m++,3);!w.options.__s&&_(r.__H,e)&&(r.__=t,r.__H=e,g.__H.__h.push(r))}function u(t,e){var r=n(m++,4);!w.options.__s&&_(r.__H,e)&&(r.__=t,r.__H=e,g.__h.push(r))}function c(t){return j=5,l((function(){return{current:t}}),[])}function s(t,e,r){j=6,u((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==r?r:r.concat(t))}function l(t,e){var r=n(m++,7);return _(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function f(t,e){return j=8,l((function(){return t}),e)}function p(t){var e=g.context[t.__c],r=n(m++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(g)),e.props.value):t.__}function d(t,e){w.options.useDebugValue&&w.options.useDebugValue(e?e(t):t)}function h(){for(var t;t=O.shift();)if(t.__P)try{t.__H.__h.forEach(v),t.__H.__h.forEach(y),t.__H.__h=[]}catch(e){t.__H.__h=[],w.options.__e(e,t.__v)}}function v(t){var e=g,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),g=e}function y(t){var e=g;t.__c=t.__(),g=e}function _(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function b(t,e){return"function"==typeof e?e(t):e}r.d(e,"j",(function(){return o})),r.d(e,"h",(function(){return i})),r.d(e,"d",(function(){return a})),r.d(e,"f",(function(){return u})),r.d(e,"i",(function(){return c})),r.d(e,"e",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return p})),r.d(e,"c",(function(){return d}));var m,g,x,w=r("hosL"),j=0,O=[],E=w.options.__b,F=w.options.__r,S=w.options.diffed,A=w.options.__c,T=w.options.unmount;w.options.__b=function(t){g=null,E&&E(t)},w.options.__r=function(t){F&&F(t),m=0;var e=(g=t.__c).__H;e&&(e.__h.forEach(v),e.__h.forEach(y),e.__h=[])},w.options.diffed=function(t){S&&S(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==O.push(e)&&x===w.options.requestAnimationFrame||((x=w.options.requestAnimationFrame)||function(t){var e,r=function(){clearTimeout(n),k&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);k&&(e=requestAnimationFrame(r))})(h)),g=null},w.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(v),t.__h=t.__h.filter((function(t){return!t.__||y(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],w.options.__e(r,t.__v)}})),A&&A(t,e)},w.options.unmount=function(t){T&&T(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{v(t)}catch(t){e=t}})),e&&w.options.__e(e,r.__v))};var k="function"==typeof requestAnimationFrame},Qn7i:function(t,e,r){function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(n.Cache||o),r}var o=r("xkFB");n.Cache=o,t.exports=n},RROh:function(t,e,r){"use strict";(function(t,n){var o=r("QRet"),i=r("F0sN"),a=r("qQ1Y");e.a=e=>{const[r,u]=Object(o.j)([]),[c,s]=Object(o.j)(!0);return Object(o.d)((()=>{c&&(async()=>{const t=await Object(i.a)(e.backendUrl,e.accessToken);u([...t]),s(!1)})()}),[c]),t(n,null,t("h3",null,"Perks List"),t(a.e,null,t(a.f,null,t(a.d,null,t(a.h,null,t(a.l,null,t(a.k,null,t("tr",null,t(a.j,null,"Title"),t(a.j,null,"Sub-Title"),t(a.j,null,"Visible"),t(a.j,null,"Category"),t(a.b,null,"Action"))),t("tbody",null,r.map(((r,n)=>t(a.g,{key:n},t(a.m,null,r.perkData.title),t(a.i,null,Object(i.f)(r.perkData.subtitle,30)),t(a.i,null,r.visibility?"True":"False"),t(a.i,null,r.perkData.category),t(a.a,null,t(a.c,{onClick:()=>e.onUpdate(r,!0)},"Update-Perk"),t(a.c,{onClick:()=>{return t=r,s(!0),void e.onDelete(t.perkId,t.visibility);var t}},"Update-Visibility"))))))))))))}}).call(this,r("hosL").h,r("hosL").Fragment)},"RW/s":function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r("iOq2"),i=r("HE1N"),a=r("VZJX"),u=r("J9xP"),c=r("PHxc");n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=c,t.exports=n},RoC8:function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},RqPZ:function(t,e,r){var n=r("GI0s"),o=r("9aUh");t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},SAih:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},SHde:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},SyCk:function(t,e,r){var n=r("RqPZ"),o=r("ckUF");t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},T9Ud:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},TEbo:function(t,e,r){var n=r("Qn7i");t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},TsNJ:function(t){t.exports=function(t){return function(e){return t(e)}}},ULAX:function(t,e,r){var n=r("TEbo"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},UgeB:function(t,e,r){var n=r("GI0s"),o=r("T9Ud");t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},UnPy:function(t){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},VNQV:function(t,e,r){var n=r("LSEb")(r("s3UK"),"DataView");t.exports=n},VY7S:function(t,e,r){var n=r("WRuO"),o=r("COrk");t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var s=r[a];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<u;){var l=(s=r[a])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var d=new n;if(i)var h=i(f,p,l,t,e,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},VZJX:function(t,e,r){var n=r("cm7J");t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},WRuO:function(t,e,r){function n(t){var e=this.__data__=new o(t);this.size=e.size}var o=r("RW/s"),i=r("e1Ej"),a=r("zEvu"),u=r("Chmn"),c=r("AJMQ"),s=r("kCQp");n.prototype.clear=i,n.prototype.delete=a,n.prototype.get=u,n.prototype.has=c,n.prototype.set=s,t.exports=n},WcvB:function(t,e,r){"use strict";(function(t,n){var o=r("2y1a"),i=r("QRet"),a=r("Nt/+"),u=r("F0sN"),c=r("DxZe"),s=r("Q7iE"),l=r.n(s),f=r("eBIj"),p=r.n(f),d=r("6reK"),h=r.n(d),v=r("i7Bh"),y=r.n(v),_=r("xX61"),b=r.n(_);const m=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"];e.a=e=>{var r;const s=Object(i.i)(null),[f,d]=Object(i.j)("pristine"),[v,_,g]=Object(o.d)(e.name);Object(i.d)((()=>{a.f(v.value)?d("uploaded"):d("pristine")}),[v.value]);const x=t=>{t.preventDefault(),g.setValue(a.g),s.current&&(s.current.value=""),d("pristine")},w=async t=>{t.preventDefault();const r=t.target.files;if(!r)return;const n=r.item(0);if(n)try{const t=await Object(u.i)(n,e.backendUrl,e.accessToken);g.setValue(a.c(t)),d("uploaded")}catch(t){d("error")}};return t("div",null,t("label",{htmlFor:e.name},t("div",null,"uploading"===f&&t(c.c,{src:l.a}),"error"===f&&t(c.a,{src:p.a}),"pristine"===f&&t((()=>t(n,null,t(c.c,{src:h.a}),t("small",null,"Add supporting document (PDF, DOC up to 10MB)"),t("input",{type:"file",ref:s,id:e.name,accept:m.join(","),disabled:"pristine"!==f,onChange:w}))),null),"uploaded"===f&&t((()=>t(n,null,t(c.c,{src:h.a}),t(c.c,{src:y.a}),Object(u.b)(v.value).title)),null)),t("span",null,"uploading"===f&&"Uploading","error"===f&&t("span",null,`Failed to upload. ${null!==(r=_.error)&&void 0!==r?r:"Unknow error."}`)),"uploaded"===f&&t("span",{onClick:x},t(c.c,{src:b.a})),"error"===f&&t("span",{onClick:x},"Try again")))}}).call(this,r("hosL").h,r("hosL").Fragment)},WjON:function(t,e,r){var n=r("zcvR");t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},"X/0h":function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},XXCu:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},YIRF:function(t){t.exports=function(t){return t.split("")}},YaJL:function(t,e,r){var n=r("LSEb"),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},Yzgk:function(t,e,r){var n=r("RqPZ"),o=r("zc1V"),i=r("9aUh"),a=r("bE7W"),u=/^\[object .+?Constructor\]$/,c=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?c:u).test(a(t))}},Zs3A:function(t){var e="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+o+"]",a="\\d+",u="[\\u2700-\\u27bf]",c="["+r+"]",s="[^\\ud800-\\udfff"+o+a+e+r+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+n+"]",d="(?:"+c+"|"+s+")",h="(?:"+p+"|"+s+")",v="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",m=b+_+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,f].join("|")+")"+b+_+")*"),g="(?:"+[u,l,f].join("|")+")"+m,x=RegExp([p+"?"+c+"+"+v+"(?="+[i,p,"$"].join("|")+")",h+"+"+y+"(?="+[i,p+d,"$"].join("|")+")",p+"?"+d+"+"+v,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,g].join("|"),"g");t.exports=function(t){return t.match(x)||[]}},a7YA:function(t){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},aBIM:function(t,e,r){var n=r("zcvR");t.exports=function(t){return n(this,t).get(t)}},ayR8:function(t,e,r){"use strict";(function(t){var n=r("QRet"),o=r("2y1a"),i=r("Nt/+"),a=r("F0sN"),u=r("DxZe"),c=r("xX61"),s=r.n(c),l=r("Q7iE"),f=r.n(l),p=r("AdeD"),d=r.n(p);const h=["image/png","image/jpeg","image/gif"];e.a=e=>{const r=Object(n.i)(null),[c,l]=Object(n.j)(e.state),[p,v,y]=Object(o.d)(e.name);Object(n.d)((()=>{i.f(p.value)?l("uploaded"):l("pristine")}),[p.value]);return t("div",null,"uploaded"===c&&t("div",null,t("div",null,t("img",{src:Object(a.b)(v.value).downloadUrl,alt:""})),t("div",null,t("span",{onClick:()=>{y.setValue(i.g),r.current&&(r.current.value=""),l("pristine")}},t(u.c,{src:s.a})))),"uploading"===c&&t("div",null,t(u.c,{src:f.a})),"pristine"===c&&t("label",{htmlFor:e.name},t("div",null,t("input",{ref:r,id:e.name,type:"file",accept:h.join(","),onChange:async t=>{t.preventDefault();const r=t.target.files;if(!r)return;const n=r.item(0);if(n){l("uploading");try{const t=await Object(a.j)(n,e.backendUrl,e.accessToken);y.setValue(i.c(t)),l("uploaded")}catch(t){l("error")}}}}),t(u.b,{src:d.a})),e.title&&t("span",null,e.title),e.subtitle&&t("p",null,t("small",null,e.subtitle))))}}).call(this,r("hosL").h)},b2OE:function(t,e,r){var n=r("LSEb")(r("s3UK"),"Set");t.exports=n},bE7W:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},cTHi:function(t,e,r){var n=r("zXe4");t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},ckUF:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},cm7J:function(t,e,r){var n=r("dIZa");t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},d1lM:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},d6Vr:function(t,e,r){var n=r("s3UK");t.exports=n["__core-js_shared__"]},dIZa:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},dtdj:function(t,e,r){var n=r("d1lM"),o=r("BW49");t.exports=function(t,e){return null!=t&&o(t,e,n)}},e1Ej:function(t,e,r){var n=r("RW/s");t.exports=function(){this.__data__=new n,this.size=0}},eBIj:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTEyIDh2NG0wIDRoLjAxTTIxIDEyYTkgOSAwIDExLTE4IDAgOSA5IDAgMDExOCAweiIgLz48L3N2Zz4="},edSL:function(t,e,r){var n=r("Exs5");t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},f8zI:function(t,e,r){var n=r("zYYD"),o=r("KXzt");t.exports=function(t){return o(n(t).toLowerCase())}},fgdD:function(t){function e(t,e){function r(t,e,a){if(a.has(t)){var s;try{s=", node was:"+JSON.stringify(t)}catch(t){s=""}throw new Error("Cyclic dependency"+s)}if(!c.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!i[e]){i[e]=!0;var l=u.get(t)||new Set;if(e=(l=Array.from(l)).length){a.add(t);do{var f=l[--e];r(f,c.get(f),a)}while(e);a.delete(t)}o[--n]=t}}var n=t.length,o=new Array(n),i={},a=n,u=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var o=t[r];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),c=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!c.has(t[0])||!c.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)i[a]||r(t[a],a,new Set);return o}t.exports=function(t){return e(function(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var o=t[r];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=e},fxeQ:function(t,e,r){var n=r("LSEb")(r("s3UK"),"WeakMap");t.exports=n},gKNW:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},gPdB:function(t,e,r){var n=r("YIRF"),o=r("SAih"),i=r("O4Im");t.exports=function(t){return o(t)?i(t):n(t)}},gY5s:function(t,e,r){var n=r("yIQZ"),o=r("BW49");t.exports=function(t,e){return null!=t&&o(t,e,n)}},gwRl:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},h0av:function(t,e,r){var n=r("6iN7"),o=r("Lalj"),i=r("SyCk");t.exports=function(t){return i(t)?n(t):o(t)}},hosL:function(t,e,r){"use strict";function n(t,e){for(var r in e)t[r]=e[r];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t,e,r){var n,o,i,u={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?I.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return a(t,u,n,o,null)}function a(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++C:o};return null==o&&null!=P.vnode&&P.vnode(i),i}function u(){return{current:null}}function c(t){return t.children}function s(t,e){this.props=t,this.context=e}function l(t,e){if(null==e)return t.__?l(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?l(t):null}function f(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return f(t)}}function p(t){(!t.__d&&(t.__d=!0)&&R.push(t)&&!d.__r++||U!==P.debounceRendering)&&((U=P.debounceRendering)||L)(d)}function d(){for(var t;d.__r=R.length;)t=R.sort((function(t,e){return t.__v.__b-e.__v.__b})),R=[],t.some((function(t){var e,r,o,i,a,u;t.__d&&(a=(i=(e=t).__v).__e,(u=e.__P)&&(r=[],(o=n({},i)).__v=i.__v+1,w(u,i,o,e.__n,void 0!==u.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?l(i):a,i.__h),j(r,i),i.__e!=a&&f(i)))}))}function h(t,e,r,n,o,i,u,s,f,p){var d,h,y,b,m,g,x,j=n&&n.__k||z,O=j.length;for(r.__k=[],d=0;d<e.length;d++)if(null!=(b=r.__k[d]=null==(b=e[d])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?a(null,b,null,null,b):Array.isArray(b)?a(c,{children:b},null,null,null):b.__b>0?a(b.type,b.props,b.key,null,b.__v):b)){if(b.__=r,b.__b=r.__b+1,null===(y=j[d])||y&&b.key==y.key&&b.type===y.type)j[d]=void 0;else for(h=0;h<O;h++){if((y=j[h])&&b.key==y.key&&b.type===y.type){j[h]=void 0;break}y=null}w(t,b,y=y||$,o,i,u,s,f,p),m=b.__e,(h=b.ref)&&y.ref!=h&&(x||(x=[]),y.ref&&x.push(y.ref,null,b),x.push(h,b.__c||m,b)),null!=m?(null==g&&(g=m),"function"==typeof b.type&&b.__k===y.__k?b.__d=f=v(b,f,t):f=_(t,b,y,j,m,f),"function"==typeof r.type&&(r.__d=f)):f&&y.__e==f&&f.parentNode!=t&&(f=l(y))}for(r.__e=g,d=O;d--;)null!=j[d]&&("function"==typeof r.type&&null!=j[d].__e&&j[d].__e==r.__d&&(r.__d=l(n,d+1)),F(j[d],j[d]));if(x)for(d=0;d<x.length;d++)E(x[d],x[++d],x[++d])}function v(t,e,r){for(var n,o=t.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=t,e="function"==typeof n.type?v(n,e,r):_(r,n,n,o,n.__e,e));return e}function y(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){y(t,e)})):e.push(t)),e}function _(t,e,r,n,o,i){var a,u,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==r||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<n.length;c+=2)if(u==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function b(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||V.test(e)?r:r+"px"}function m(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||b(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||b(t.style,e,r[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]=r,r?n||t.addEventListener(e,i?x:g,i):t.removeEventListener(e,i?x: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==r?"":r;break t}catch(t){}"function"==typeof r||(null!=r&&(!1!==r||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,r):t.removeAttribute(e))}}function g(t){this.l[t.type+!1](P.event?P.event(t):t)}function x(t){this.l[t.type+!0](P.event?P.event(t):t)}function w(t,e,r,o,i,a,u,l,f){var p,d,v,y,_,b,m,g,x,w,j,E=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(f=r.__h,l=e.__e=r.__e,e.__h=null,a=[l]),(p=P.__b)&&p(e);try{t:if("function"==typeof E){if(g=e.props,x=(p=E.contextType)&&o[p.__c],w=p?x?x.props.value:p.__:o,r.__c?m=(d=e.__c=r.__c).__=d.__E:("prototype"in E&&E.prototype.render?e.__c=d=new E(g,w):(e.__c=d=new s(g,w),d.constructor=E,d.render=S),x&&x.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=o,v=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=n({},d.__s)),n(d.__s,E.getDerivedStateFromProps(g,d.__s))),y=d.props,_=d.state,v)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==y&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||e.__v===r.__v){d.props=g,d.state=d.__s,e.__v!==r.__v&&(d.__d=!1),d.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&u.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(y,_,b)}))}d.context=w,d.props=g,d.state=d.__s,(p=P.__r)&&p(e),d.__d=!1,d.__v=e,d.__P=t,p=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=n(n({},o),d.getChildContext())),v||null==d.getSnapshotBeforeUpdate||(b=d.getSnapshotBeforeUpdate(y,_)),j=null!=p&&p.type===c&&null==p.key?p.props.children:p,h(t,Array.isArray(j)?j:[j],e,r,o,i,a,u,l,f),d.base=e.__e,e.__h=null,d.__h.length&&u.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=O(r.__e,e,r,o,i,a,u,f);(p=P.diffed)&&p(e)}catch(t){e.__v=null,(f||null!=a)&&(e.__e=l,e.__h=!!f,a[a.indexOf(l)]=null),P.__e(t,e,r)}}function j(t,e){P.__c&&P.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){P.__e(t,e.__v)}}))}function O(t,e,r,n,i,a,u,c){var s,f,p,d=r.props,v=e.props,y=e.type,_=0;if("svg"===y&&(i=!0),null!=a)for(;_<a.length;_++)if((s=a[_])&&"setAttribute"in s==!!y&&(y?s.localName===y:3===s.nodeType)){t=s,a[_]=null;break}if(null==t){if(null===y)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),a=null,c=!1}if(null===y)d===v||c&&t.data===v||(t.data=v);else{if(a=a&&I.call(t.childNodes),f=(d=r.props||$).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!c){if(null!=a)for(d={},_=0;_<t.attributes.length;_++)d[t.attributes[_].name]=t.attributes[_].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in e||m(t,i,null,r[i],n);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===e[i]||m(t,i,e[i],r[i],n)}(t,v,d,i,c),p)e.__k=[];else if(_=e.props.children,h(t,Array.isArray(_)?_:[_],e,r,n,i&&"foreignObject"!==y,a,u,a?a[0]:r.__k&&l(r,0),c),null!=a)for(_=a.length;_--;)null!=a[_]&&o(a[_]);c||("value"in v&&void 0!==(_=v.value)&&(_!==t.value||"progress"===y&&!_||"option"===y&&_!==d.value)&&m(t,"value",_,d.value,!1),"checked"in v&&void 0!==(_=v.checked)&&_!==t.checked&&m(t,"checked",_,d.checked,!1))}return t}function E(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){P.__e(t,r)}}function F(t,e,r){var n,i;if(P.unmount&&P.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||E(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){P.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&F(n[i],e,"function"!=typeof t.type);r||null==t.__e||o(t.__e),t.__e=t.__d=void 0}function S(t,e,r){return this.constructor(t,r)}function A(t,e,r){var n,o,a;P.__&&P.__(t,e),o=(n="function"==typeof r)?null:r&&r.__k||e.__k,a=[],w(e,t=(!n&&r||e).__k=i(c,null,[t]),o||$,$,void 0!==e.ownerSVGElement,!n&&r?[r]:o?null:e.firstChild?I.call(e.childNodes):null,a,!n&&r?r:o?o.__e:e.firstChild,n),j(a,t)}function T(t,e){A(t,e,T)}function k(t,e,r){var o,i,u,c=n({},t.props);for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];return arguments.length>2&&(c.children=arguments.length>3?I.call(arguments,2):r),a(t.type,c,o||t.key,i||t.ref,null)}function D(t,e){var r={__c:e="__cC"+N++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some(p)},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}r.r(e),r.d(e,"render",(function(){return A})),r.d(e,"hydrate",(function(){return T})),r.d(e,"createElement",(function(){return i})),r.d(e,"h",(function(){return i})),r.d(e,"Fragment",(function(){return c})),r.d(e,"createRef",(function(){return u})),r.d(e,"isValidElement",(function(){return M})),r.d(e,"Component",(function(){return s})),r.d(e,"cloneElement",(function(){return k})),r.d(e,"createContext",(function(){return D})),r.d(e,"toChildArray",(function(){return y})),r.d(e,"options",(function(){return P}));var I,P,C,M,R,L,U,N,$={},z=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;I=z.slice,P={__e:function(t,e,r,n){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,n||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},C=0,M=function(t){return null!=t&&void 0===t.constructor},s.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=n({},this.state),"function"==typeof t&&(t=t(n({},r),this.props)),t&&n(r,t),null!=t&&this.__v&&(e&&this.__h.push(e),p(this))},s.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),p(this))},s.prototype.render=c,R=[],L="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d.__r=0,N=0},i0JV:function(t,e,r){var n=r("FEiO"),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},i7Bh:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTkgMTJsMiAyIDQtNG02IDJhOSA5IDAgMTEtMTggMCA5IDkgMCAwMTE4IDB6IiAvPjwvc3ZnPg=="},iMLE:function(t){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},iOq2:function(t){t.exports=function(){this.__data__=[],this.size=0}},jL4t:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},jgJv:function(t,e,r){var n=r("s3UK");t.exports=n.Symbol},ji6j:function(t,e,r){var n=r("2AbI"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var y=c;++f<l;){var _=t[p=s[f]],b=e[p];if(i)var m=c?i(b,_,p,e,t,u):i(_,b,p,t,e,u);if(!(void 0===m?_===b||a(_,b,r,i,u):m)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var g=t.constructor,x=e.constructor;g==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(t),u.delete(e),v}},kCQp:function(t,e,r){var n=r("RW/s"),o=r("0KRy"),i=r("xkFB");t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},kXPx:function(t,e,r){var n=r("COrk"),o=r("edSL"),i=r("dtdj"),a=r("BwbT"),u=r("2EQx"),c=r("a7YA"),s=r("cTHi");t.exports=function(t,e){return a(t)&&u(e)?c(s(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},lYsT:function(t,e,r){var n=r("UgeB"),o=r("T9Ud"),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},ln7d:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return l}));var n=r("2y1a"),o=r("uL7t"),i=r("Nt/+"),a=r("z46i"),u=r("ayR8"),c=r("WcvB"),s=r("DaPW");const l=o.b().shape({title:o.c().default("").required("Field is required").max(50,"Max 50 chars"),subTitle:o.c().default("").required("Field is required").max(100,"Max 100 chars"),category:o.c().default("").required("Category is required").oneOf([...a.a],"Category is required"),description:o.c().default("").required("Field is required").max(250,"Max 250 chars"),linkLabel:o.c().default("").required("Field is required").max(30,"Max 30 chars"),url:o.c().default("").matches(/^(https:\/\/)www\.?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,{excludeEmptyString:!0,message:"Provide a valid URL"}).required("Field is required").max(100,"Max 100 chars"),coverPhoto:o.a().default((()=>i.g)).required(),icon:o.a().default((()=>i.g)).required(),attachments:o.a().default((()=>i.g)).required()}),f=l.getDefault();e.a=e=>t(s.c,null,t(n.c,{initialValues:i.d((()=>f))(e.initialValues),validationSchema:l,onSubmit:async(t,{setSubmitting:r})=>{r(!1),await e.onSaveAsync(t)}},(({errors:r,touched:o})=>t(n.b,null,t(s.b,null,e.isEditMode?"Edit Perk":"Add new Perk"),t("div",null,t(s.d,{htmlFor:"title"},r.title&&o.title,t("span",null,"Title*"),r.title&&o.title&&t(s.e,null,r.title)),t(n.a,{name:"title",placeholder:"e.g. Free flu shots",type:"text","aria-describedby":"title"})),t("div",null,t(s.d,{htmlFor:"subTitle"},r.subTitle&&o.subTitle,t("span",null,"SubTitle*"),r.subTitle&&o.subTitle&&t(s.e,null,r.subTitle)),t(n.a,{name:"subTitle",placeholder:"e.g. Flu protection for you and your immediate family",type:"text","aria-describedby":"subTitle"})),t("div",null,t(s.d,{htmlFor:"category"},r.category&&o.category,t("span",null,"Category*"),r.category&&o.category&&t(s.e,null,r.category)),t(n.a,{as:"select",name:"category",placeholder:"Enter category",type:"text","aria-describedby":"category"},a.a.map((e=>t("option",{key:e,value:e},e))))),t("div",null,t(s.d,{htmlFor:"description"},r.description&&o.description,t("span",null,"Description*"),r.description&&o.description&&t(s.e,null,r.description)),t(n.a,{as:"textarea",name:"description",placeholder:"Add detailed description of the perk",type:"text","aria-describedby":"description"})),t("div",null,t(s.d,{htmlFor:"linkLabel"},r.linkLabel&&o.linkLabel,t("span",null,"LinkLabel*"),r.linkLabel&&o.linkLabel&&t(s.e,null,r.linkLabel)),t(n.a,{name:"linkLabel",placeholder:"e.g. Learn More",type:"text","aria-describedby":"linkLabel"})),t("div",null,t(s.d,{htmlFor:"url"},r.url&&o.url,t("span",null,"URL*")),t(n.a,{name:"url",placeholder:"https://www.example.com",type:"text","aria-describedby":"url"}),r.url&&o.url&&t(s.e,null,r.url)),t("div",null,t(s.d,null,"Cover Image"),t(u.a,{name:"coverPhoto",mode:"full",title:"Add an image",subtitle:"PNG, JPG, GIF, up to 10MB",state:"pristine",backendUrl:e.backendUrl,accessToken:e.accessToken})),t("div",null,t(s.d,null,"Icon"),t(u.a,{name:"icon",mode:"full",title:"Add an image",state:"pristine",backendUrl:e.backendUrl,accessToken:e.accessToken})),t("div",null,t(s.d,null,"Attachment"),t(c.a,{name:"attachments",backendUrl:e.backendUrl,accessToken:e.accessToken})),t(s.a,{type:"submit"},e.isEditMode?"Update":"Submit")))))}).call(this,r("hosL").h)},"m/eG":function(t,e,r){"use strict";(function(t){function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}var o=r("hosL"),i=r("paZ/"),a=r("QRet"),u=r("Nt/+"),c=r("ln7d"),s=r("RROh"),l=r("F0sN"),f=r("PBc2");Object(i.a)(o.h);e.a=e=>{const r={backendUrl:e["backend-url"],accessToken:e["access-token"]},[i,p]=Object(a.j)(!1),[d,h]=Object(a.j)(!1),[v,y]=Object(a.j)(),[_,b]=Object(a.j)(u.g),m=async t=>{d?(await Object(l.h)(Object(l.e)(t),r.backendUrl,r.accessToken,v.perkId),h(!1)):await Object(l.c)(Object(l.e)(t),r.backendUrl,r.accessToken),p(!1)},g=t=>{t.visibility?(b(u.h(Object(l.d)(t.perkData))),y(t),h(!0),p(!0)):alert("Update Visibility to True!")},x=(t,r)=>{Object(l.g)(e["backend-url"],e["access-token"],t,!r),p(!1),h(!1)},w=()=>{p(!1),h(!1),b(u.g)};return Object(o.h)(f.c,null,!i&&Object(o.h)((()=>Object(o.h)(t,null,Object(o.h)(f.b,null,Object(o.h)(f.a,{onClick:()=>p(!0)},"Add new Perk!")),Object(o.h)(s.a,n({onUpdate:g,onDelete:x},r)))),null),i&&Object(o.h)((()=>Object(o.h)(t,null,Object(o.h)(f.b,null,Object(o.h)(f.a,{onClick:w},"Perks List")),Object(o.h)(c.a,n({initialValues:_,isEditMode:d,onSaveAsync:m},r)))),null))}}).call(this,r("hosL").Fragment)},m3cY:function(t,e,r){var n=r("PAOY"),o=r("zYYD"),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,n).replace(a,"")}},mdyV:function(t,e,r){"use strict";r.r(e);var n=r("hosL");const{h:o,render:i,hydrate:a}=n,u=t=>t&&t.default?t.default:t;if("function"==typeof u(r("/hs+"))){let t=document.getElementById("preact_root")||document.body.firstElementChild,e=()=>{let e=u(r("/hs+")),n={};const a=document.querySelector('[type="__PREACT_CLI_DATA__"]');a&&(n=JSON.parse(decodeURI(a.innerHTML)).preRenderData||n);n.url&&(c=n.url);var c;i(o(e,{CLI_DATA:{preRenderData:n}}),document.body,t)};0,e()}},pCs0:function(t){var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},pCvA:function(t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},"paZ/":function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}function o(t){let e=this||{},r=t.call?t(e.p):t;return b(r.unshift?r.raw?m(r,[].slice.call(arguments,1),e.p):r.reduce(((t,r)=>n(t,r&&r.call?r(e.p):r)),{}):r,f(e.target),e.g,e.o,e.k)}function i(t,e,r,n){v.p=e,u=t,c=r,s=n}function a(t,e){let r=this||{};return function(){function i(l,f){let p=n({},l),d=p.className||i.className;r.p=n({theme:c&&c()},p),r.o=/ *go\d+/.test(d),p.className=o.apply(r,a)+(d?" "+d:""),e&&(p.ref=f);let h=t;return t[0]&&(h=p.as||t,delete p.as),s&&h[0]&&s(p),u(h,p)}let a=arguments;return e?e(i):i}}r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return a}));let u,c,s,l={data:""},f=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||n((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||l,p=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d=/\/\*[^]*?\*\/| +/g,h=/\n+/g,v=(t,e)=>{let r="",n="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?v(a,i):i+"{"+v(a,"k"==i[1]?"":e)+"}":"object"==typeof a?n+=v(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=v.p?v.p(i,a):i+":"+a+";")}return r+(e&&o?e+"{"+o+"}":o)+n},y={},_=t=>{if("object"==typeof t){let e="";for(let r in t)e+=r+_(t[r]);return e}return t},b=(t,e,r,n,o)=>{let i=_(t),a=y[i]||(y[i]=(t=>{let e=0,r=11;for(;e<t.length;)r=101*r+t.charCodeAt(e++)>>>0;return"go"+r})(i));if(!y[a]){let e=i!==t?t:(t=>{let e,r,n=[{}];for(;e=p.exec(t.replace(d,""));)e[4]?n.shift():e[3]?(r=e[3].replace(h," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][e[1]]=e[2].replace(h," ").trim();return n[0]})(t);y[a]=v(o?{["@keyframes "+a]:e}:e,r?"":"."+a)}return((t,e,r)=>{-1==e.data.indexOf(t)&&(e.data=r?t+e.data:e.data+t)})(y[a],e,n),a},m=(t,e,r)=>t.reduce(((t,n,o)=>{let i=e[o];if(i&&i.call){let t=i(r),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":v(t,""):!1===t?"":t}return t+n+(null==i?"":i)}),"");o.bind({g:1}),o.bind({k:1})},"q+I6":function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},qQ1Y:function(t,e,r){"use strict";r.d(e,"e",(function(){return g})),r.d(e,"f",(function(){return x})),r.d(e,"d",(function(){return w})),r.d(e,"h",(function(){return j})),r.d(e,"l",(function(){return O})),r.d(e,"k",(function(){return E})),r.d(e,"g",(function(){return F})),r.d(e,"j",(function(){return S})),r.d(e,"m",(function(){return A})),r.d(e,"i",(function(){return T})),r.d(e,"b",(function(){return k})),r.d(e,"a",(function(){return D})),r.d(e,"c",(function(){return I}));var n=r("paZ/");let o,i,a,u,c,s,l,f,p,d,h,v,y,_,b,m=t=>t;const g=Object(n.b)("div")(o||(o=m`
|
|
36
|
+
`),(()=>({margin:"5rem"})))},PHxc:function(t,e,r){var n=r("cm7J");t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},PYDc:function(t,e,r){var n=r("FEiO");t.exports=function(){this.__data__=n?n(null):{},this.size=0}},PqlX:function(t){t.exports=Array.isArray},Q7iE:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTUgMTJoLjAxTTEyIDEyaC4wMU0xOSAxMmguMDFNNiAxMmExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6bTcgMGExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6bTcgMGExIDEgMCAxMS0yIDAgMSAxIDAgMDEyIDB6IiAvPjwvc3ZnPg=="},QRet:function(t,e,r){"use strict";function n(t,e){w.options.__h&&w.options.__h(g,t,j||e),j=0;var r=g.__H||(g.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function o(t){return j=1,i(b,t)}function i(t,e,r){var o=n(m++,2);return o.t=t,o.__c||(o.__=[r?r(e):b(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=g),o.__}function a(t,e){var r=n(m++,3);!w.options.__s&&_(r.__H,e)&&(r.__=t,r.__H=e,g.__H.__h.push(r))}function u(t,e){var r=n(m++,4);!w.options.__s&&_(r.__H,e)&&(r.__=t,r.__H=e,g.__h.push(r))}function c(t){return j=5,l((function(){return{current:t}}),[])}function s(t,e,r){j=6,u((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==r?r:r.concat(t))}function l(t,e){var r=n(m++,7);return _(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function f(t,e){return j=8,l((function(){return t}),e)}function p(t){var e=g.context[t.__c],r=n(m++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(g)),e.props.value):t.__}function d(t,e){w.options.useDebugValue&&w.options.useDebugValue(e?e(t):t)}function h(){for(var t;t=O.shift();)if(t.__P)try{t.__H.__h.forEach(v),t.__H.__h.forEach(y),t.__H.__h=[]}catch(e){t.__H.__h=[],w.options.__e(e,t.__v)}}function v(t){var e=g,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),g=e}function y(t){var e=g;t.__c=t.__(),g=e}function _(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function b(t,e){return"function"==typeof e?e(t):e}r.d(e,"j",(function(){return o})),r.d(e,"h",(function(){return i})),r.d(e,"d",(function(){return a})),r.d(e,"f",(function(){return u})),r.d(e,"i",(function(){return c})),r.d(e,"e",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"a",(function(){return f})),r.d(e,"b",(function(){return p})),r.d(e,"c",(function(){return d}));var m,g,x,w=r("hosL"),j=0,O=[],E=w.options.__b,F=w.options.__r,S=w.options.diffed,A=w.options.__c,T=w.options.unmount;w.options.__b=function(t){g=null,E&&E(t)},w.options.__r=function(t){F&&F(t),m=0;var e=(g=t.__c).__H;e&&(e.__h.forEach(v),e.__h.forEach(y),e.__h=[])},w.options.diffed=function(t){S&&S(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==O.push(e)&&x===w.options.requestAnimationFrame||((x=w.options.requestAnimationFrame)||function(t){var e,r=function(){clearTimeout(n),k&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);k&&(e=requestAnimationFrame(r))})(h)),g=null},w.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(v),t.__h=t.__h.filter((function(t){return!t.__||y(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],w.options.__e(r,t.__v)}})),A&&A(t,e)},w.options.unmount=function(t){T&&T(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{v(t)}catch(t){e=t}})),e&&w.options.__e(e,r.__v))};var k="function"==typeof requestAnimationFrame},Qn7i:function(t,e,r){function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function r(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(n.Cache||o),r}var o=r("xkFB");n.Cache=o,t.exports=n},RROh:function(t,e,r){"use strict";(function(t,n){var o=r("QRet"),i=r("F0sN"),a=r("qQ1Y");e.a=e=>{const[r,u]=Object(o.j)([]),[c,s]=Object(o.j)(!0);return Object(o.d)((()=>{c&&(async()=>{const t=await Object(i.a)(e.backendUrl,e.accessToken);u([...t]),s(!1)})()}),[c]),t(n,null,t("h3",null,"Perks List"),t(a.e,null,t(a.f,null,t(a.d,null,t(a.h,null,t(a.l,null,t(a.k,null,t("tr",null,t(a.j,null,"Title"),t(a.j,null,"Sub-Title"),t(a.j,null,"Visible"),t(a.j,null,"Category"),t(a.b,null,"Action"))),t("tbody",null,r.map(((r,n)=>t(a.g,{key:n},t(a.m,null,r.perkData.title),t(a.i,null,Object(i.f)(r.perkData.subtitle,30)),t(a.i,null,r.visibility?"True":"False"),t(a.i,null,r.perkData.category),t(a.a,null,t(a.c,{onClick:()=>e.onUpdate(r,!0)},"Update-Perk"),t(a.c,{onClick:()=>{return t=r,s(!0),void e.onDelete(t.perkId,t.visibility);var t}},"Update-Visibility"))))))))))))}}).call(this,r("hosL").h,r("hosL").Fragment)},"RW/s":function(t,e,r){function n(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}var o=r("iOq2"),i=r("HE1N"),a=r("VZJX"),u=r("J9xP"),c=r("PHxc");n.prototype.clear=o,n.prototype.delete=i,n.prototype.get=a,n.prototype.has=u,n.prototype.set=c,t.exports=n},RoC8:function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},RqPZ:function(t,e,r){var n=r("GI0s"),o=r("9aUh");t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},SAih:function(t){var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},SHde:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},SyCk:function(t,e,r){var n=r("RqPZ"),o=r("ckUF");t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},T9Ud:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},TEbo:function(t,e,r){var n=r("Qn7i");t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},TsNJ:function(t){t.exports=function(t){return function(e){return t(e)}}},ULAX:function(t,e,r){var n=r("TEbo"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},UgeB:function(t,e,r){var n=r("GI0s"),o=r("T9Ud");t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},UnPy:function(t){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},VNQV:function(t,e,r){var n=r("LSEb")(r("s3UK"),"DataView");t.exports=n},VY7S:function(t,e,r){var n=r("WRuO"),o=r("COrk");t.exports=function(t,e,r,i){var a=r.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var s=r[a];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<u;){var l=(s=r[a])[0],f=t[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var d=new n;if(i)var h=i(f,p,l,t,e,d);if(!(void 0===h?o(p,f,3,i,d):h))return!1}}return!0}},VZJX:function(t,e,r){var n=r("cm7J");t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},WRuO:function(t,e,r){function n(t){var e=this.__data__=new o(t);this.size=e.size}var o=r("RW/s"),i=r("e1Ej"),a=r("zEvu"),u=r("Chmn"),c=r("AJMQ"),s=r("kCQp");n.prototype.clear=i,n.prototype.delete=a,n.prototype.get=u,n.prototype.has=c,n.prototype.set=s,t.exports=n},WcvB:function(t,e,r){"use strict";(function(t,n){var o=r("2y1a"),i=r("QRet"),a=r("Nt/+"),u=r("F0sN"),c=r("DxZe"),s=r("Q7iE"),l=r.n(s),f=r("eBIj"),p=r.n(f),d=r("6reK"),h=r.n(d),v=r("i7Bh"),y=r.n(v),_=r("xX61"),b=r.n(_);const m=["application/pdf","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"];e.a=e=>{var r;const s=Object(i.i)(null),[f,d]=Object(i.j)("pristine"),[v,_,g]=Object(o.d)(e.name);Object(i.d)((()=>{a.f(v.value)?d("uploaded"):d("pristine")}),[v.value]);const x=t=>{t.preventDefault(),g.setValue(a.g),s.current&&(s.current.value=""),d("pristine")},w=async t=>{t.preventDefault();const r=t.target.files;if(!r)return;const n=r.item(0);if(n)try{const t=await Object(u.i)(n,e.backendUrl,e.accessToken);g.setValue(a.c(t)),d("uploaded")}catch(t){d("error")}};return t("div",null,t("label",{htmlFor:e.name},t("div",null,"uploading"===f&&t(c.c,{src:l.a}),"error"===f&&t(c.a,{src:p.a}),"pristine"===f&&t((()=>t(n,null,t(c.c,{src:h.a}),t("small",null,"Add supporting document (PDF, DOC up to 10MB)"),t("input",{type:"file",ref:s,id:e.name,accept:m.join(","),disabled:"pristine"!==f,onChange:w}))),null),"uploaded"===f&&t((()=>t(n,null,t(c.c,{src:h.a}),t(c.c,{src:y.a}),Object(u.b)(v.value).title)),null)),t("span",null,"uploading"===f&&"Uploading","error"===f&&t("span",null,`Failed to upload. ${null!==(r=_.error)&&void 0!==r?r:"Unknow error."}`)),"uploaded"===f&&t("span",{onClick:x},t(c.c,{src:b.a})),"error"===f&&t("span",{onClick:x},"Try again")))}}).call(this,r("hosL").h,r("hosL").Fragment)},WjON:function(t,e,r){var n=r("zcvR");t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},"X/0h":function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},XXCu:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},YIRF:function(t){t.exports=function(t){return t.split("")}},YaJL:function(t,e,r){var n=r("LSEb"),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},Yzgk:function(t,e,r){var n=r("RqPZ"),o=r("zc1V"),i=r("9aUh"),a=r("bE7W"),u=/^\[object .+?Constructor\]$/,c=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?c:u).test(a(t))}},Zs3A:function(t){var e="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+o+"]",a="\\d+",u="[\\u2700-\\u27bf]",c="["+r+"]",s="[^\\ud800-\\udfff"+o+a+e+r+n+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",f="[\\ud800-\\udbff][\\udc00-\\udfff]",p="["+n+"]",d="(?:"+c+"|"+s+")",h="(?:"+p+"|"+s+")",v="(?:['’](?:d|ll|m|re|s|t|ve))?",y="(?:['’](?:D|LL|M|RE|S|T|VE))?",_="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",m=b+_+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,f].join("|")+")"+b+_+")*"),g="(?:"+[u,l,f].join("|")+")"+m,x=RegExp([p+"?"+c+"+"+v+"(?="+[i,p,"$"].join("|")+")",h+"+"+y+"(?="+[i,p+d,"$"].join("|")+")",p+"?"+d+"+"+v,p+"+"+y,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,g].join("|"),"g");t.exports=function(t){return t.match(x)||[]}},a7YA:function(t){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},aBIM:function(t,e,r){var n=r("zcvR");t.exports=function(t){return n(this,t).get(t)}},ayR8:function(t,e,r){"use strict";(function(t){var n=r("QRet"),o=r("2y1a"),i=r("Nt/+"),a=r("F0sN"),u=r("DxZe"),c=r("xX61"),s=r.n(c),l=r("Q7iE"),f=r.n(l),p=r("AdeD"),d=r.n(p);const h=["image/png","image/jpeg","image/gif"];e.a=e=>{const r=Object(n.i)(null),[c,l]=Object(n.j)(e.state),[p,v,y]=Object(o.d)(e.name);Object(n.d)((()=>{i.f(p.value)?l("uploaded"):l("pristine")}),[p.value]);return t("div",null,"uploaded"===c&&t("div",null,t("div",null,t("img",{src:Object(a.b)(v.value).downloadUrl,alt:""})),t("div",null,t("span",{onClick:()=>{y.setValue(i.g),r.current&&(r.current.value=""),l("pristine")}},t(u.c,{src:s.a})))),"uploading"===c&&t("div",null,t(u.c,{src:f.a})),"pristine"===c&&t("label",{htmlFor:e.name},t("div",null,t("input",{ref:r,id:e.name,type:"file",accept:h.join(","),onChange:async t=>{t.preventDefault();const r=t.target.files;if(!r)return;const n=r.item(0);if(n){l("uploading");try{const t=await Object(a.j)(n,e.backendUrl,e.accessToken);y.setValue(i.c(t)),l("uploaded")}catch(t){l("error")}}}}),t(u.b,{src:d.a})),e.title&&t("span",null,e.title),e.subtitle&&t("p",null,t("small",null,e.subtitle))))}}).call(this,r("hosL").h)},b2OE:function(t,e,r){var n=r("LSEb")(r("s3UK"),"Set");t.exports=n},bE7W:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},cTHi:function(t,e,r){var n=r("zXe4");t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},ckUF:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},cm7J:function(t,e,r){var n=r("dIZa");t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},d1lM:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},d6Vr:function(t,e,r){var n=r("s3UK");t.exports=n["__core-js_shared__"]},dIZa:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},dtdj:function(t,e,r){var n=r("d1lM"),o=r("BW49");t.exports=function(t,e){return null!=t&&o(t,e,n)}},e1Ej:function(t,e,r){var n=r("RW/s");t.exports=function(){this.__data__=new n,this.size=0}},eBIj:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTEyIDh2NG0wIDRoLjAxTTIxIDEyYTkgOSAwIDExLTE4IDAgOSA5IDAgMDExOCAweiIgLz48L3N2Zz4="},edSL:function(t,e,r){var n=r("Exs5");t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},f8zI:function(t,e,r){var n=r("zYYD"),o=r("KXzt");t.exports=function(t){return o(n(t).toLowerCase())}},fgdD:function(t){function e(t,e){function r(t,e,a){if(a.has(t)){var s;try{s=", node was:"+JSON.stringify(t)}catch(t){s=""}throw new Error("Cyclic dependency"+s)}if(!c.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!i[e]){i[e]=!0;var l=u.get(t)||new Set;if(e=(l=Array.from(l)).length){a.add(t);do{var f=l[--e];r(f,c.get(f),a)}while(e);a.delete(t)}o[--n]=t}}var n=t.length,o=new Array(n),i={},a=n,u=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var o=t[r];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),c=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!c.has(t[0])||!c.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)i[a]||r(t[a],a,new Set);return o}t.exports=function(t){return e(function(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var o=t[r];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=e},fxeQ:function(t,e,r){var n=r("LSEb")(r("s3UK"),"WeakMap");t.exports=n},gKNW:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},gPdB:function(t,e,r){var n=r("YIRF"),o=r("SAih"),i=r("O4Im");t.exports=function(t){return o(t)?i(t):n(t)}},gY5s:function(t,e,r){var n=r("yIQZ"),o=r("BW49");t.exports=function(t,e){return null!=t&&o(t,e,n)}},gwRl:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},h0av:function(t,e,r){var n=r("6iN7"),o=r("Lalj"),i=r("SyCk");t.exports=function(t){return i(t)?n(t):o(t)}},hosL:function(t,e,r){"use strict";function n(t,e){for(var r in e)t[r]=e[r];return t}function o(t){var e=t.parentNode;e&&e.removeChild(t)}function i(t,e,r){var n,o,i,u={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:u[i]=e[i];if(arguments.length>2&&(u.children=arguments.length>3?I.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return a(t,u,n,o,null)}function a(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++C:o};return null==o&&null!=P.vnode&&P.vnode(i),i}function u(){return{current:null}}function c(t){return t.children}function s(t,e){this.props=t,this.context=e}function l(t,e){if(null==e)return t.__?l(t.__,t.__.__k.indexOf(t)+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?l(t):null}function f(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return f(t)}}function p(t){(!t.__d&&(t.__d=!0)&&R.push(t)&&!d.__r++||U!==P.debounceRendering)&&((U=P.debounceRendering)||L)(d)}function d(){for(var t;d.__r=R.length;)t=R.sort((function(t,e){return t.__v.__b-e.__v.__b})),R=[],t.some((function(t){var e,r,o,i,a,u;t.__d&&(a=(i=(e=t).__v).__e,(u=e.__P)&&(r=[],(o=n({},i)).__v=i.__v+1,w(u,i,o,e.__n,void 0!==u.ownerSVGElement,null!=i.__h?[a]:null,r,null==a?l(i):a,i.__h),j(r,i),i.__e!=a&&f(i)))}))}function h(t,e,r,n,o,i,u,s,f,p){var d,h,y,b,m,g,x,j=n&&n.__k||z,O=j.length;for(r.__k=[],d=0;d<e.length;d++)if(null!=(b=r.__k[d]=null==(b=e[d])||"boolean"==typeof b?null:"string"==typeof b||"number"==typeof b||"bigint"==typeof b?a(null,b,null,null,b):Array.isArray(b)?a(c,{children:b},null,null,null):b.__b>0?a(b.type,b.props,b.key,null,b.__v):b)){if(b.__=r,b.__b=r.__b+1,null===(y=j[d])||y&&b.key==y.key&&b.type===y.type)j[d]=void 0;else for(h=0;h<O;h++){if((y=j[h])&&b.key==y.key&&b.type===y.type){j[h]=void 0;break}y=null}w(t,b,y=y||$,o,i,u,s,f,p),m=b.__e,(h=b.ref)&&y.ref!=h&&(x||(x=[]),y.ref&&x.push(y.ref,null,b),x.push(h,b.__c||m,b)),null!=m?(null==g&&(g=m),"function"==typeof b.type&&b.__k===y.__k?b.__d=f=v(b,f,t):f=_(t,b,y,j,m,f),"function"==typeof r.type&&(r.__d=f)):f&&y.__e==f&&f.parentNode!=t&&(f=l(y))}for(r.__e=g,d=O;d--;)null!=j[d]&&("function"==typeof r.type&&null!=j[d].__e&&j[d].__e==r.__d&&(r.__d=l(n,d+1)),F(j[d],j[d]));if(x)for(d=0;d<x.length;d++)E(x[d],x[++d],x[++d])}function v(t,e,r){for(var n,o=t.__k,i=0;o&&i<o.length;i++)(n=o[i])&&(n.__=t,e="function"==typeof n.type?v(n,e,r):_(r,n,n,o,n.__e,e));return e}function y(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){y(t,e)})):e.push(t)),e}function _(t,e,r,n,o,i){var a,u,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==r||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<n.length;c+=2)if(u==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function b(t,e,r){"-"===e[0]?t.setProperty(e,r):t[e]=null==r?"":"number"!=typeof r||V.test(e)?r:r+"px"}function m(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||b(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||b(t.style,e,r[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]=r,r?n||t.addEventListener(e,i?x:g,i):t.removeEventListener(e,i?x: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==r?"":r;break t}catch(t){}"function"==typeof r||(null!=r&&(!1!==r||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,r):t.removeAttribute(e))}}function g(t){this.l[t.type+!1](P.event?P.event(t):t)}function x(t){this.l[t.type+!0](P.event?P.event(t):t)}function w(t,e,r,o,i,a,u,l,f){var p,d,v,y,_,b,m,g,x,w,j,E=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(f=r.__h,l=e.__e=r.__e,e.__h=null,a=[l]),(p=P.__b)&&p(e);try{t:if("function"==typeof E){if(g=e.props,x=(p=E.contextType)&&o[p.__c],w=p?x?x.props.value:p.__:o,r.__c?m=(d=e.__c=r.__c).__=d.__E:("prototype"in E&&E.prototype.render?e.__c=d=new E(g,w):(e.__c=d=new s(g,w),d.constructor=E,d.render=S),x&&x.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=o,v=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=n({},d.__s)),n(d.__s,E.getDerivedStateFromProps(g,d.__s))),y=d.props,_=d.state,v)null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==y&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||e.__v===r.__v){d.props=g,d.state=d.__s,e.__v!==r.__v&&(d.__d=!1),d.__v=e,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&u.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(y,_,b)}))}d.context=w,d.props=g,d.state=d.__s,(p=P.__r)&&p(e),d.__d=!1,d.__v=e,d.__P=t,p=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(o=n(n({},o),d.getChildContext())),v||null==d.getSnapshotBeforeUpdate||(b=d.getSnapshotBeforeUpdate(y,_)),j=null!=p&&p.type===c&&null==p.key?p.props.children:p,h(t,Array.isArray(j)?j:[j],e,r,o,i,a,u,l,f),d.base=e.__e,e.__h=null,d.__h.length&&u.push(d),m&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===r.__v?(e.__k=r.__k,e.__e=r.__e):e.__e=O(r.__e,e,r,o,i,a,u,f);(p=P.diffed)&&p(e)}catch(t){e.__v=null,(f||null!=a)&&(e.__e=l,e.__h=!!f,a[a.indexOf(l)]=null),P.__e(t,e,r)}}function j(t,e){P.__c&&P.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){P.__e(t,e.__v)}}))}function O(t,e,r,n,i,a,u,c){var s,f,p,d=r.props,v=e.props,y=e.type,_=0;if("svg"===y&&(i=!0),null!=a)for(;_<a.length;_++)if((s=a[_])&&"setAttribute"in s==!!y&&(y?s.localName===y:3===s.nodeType)){t=s,a[_]=null;break}if(null==t){if(null===y)return document.createTextNode(v);t=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),a=null,c=!1}if(null===y)d===v||c&&t.data===v||(t.data=v);else{if(a=a&&I.call(t.childNodes),f=(d=r.props||$).dangerouslySetInnerHTML,p=v.dangerouslySetInnerHTML,!c){if(null!=a)for(d={},_=0;_<t.attributes.length;_++)d[t.attributes[_].name]=t.attributes[_].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,r,n,o){var i;for(i in r)"children"===i||"key"===i||i in e||m(t,i,null,r[i],n);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||r[i]===e[i]||m(t,i,e[i],r[i],n)}(t,v,d,i,c),p)e.__k=[];else if(_=e.props.children,h(t,Array.isArray(_)?_:[_],e,r,n,i&&"foreignObject"!==y,a,u,a?a[0]:r.__k&&l(r,0),c),null!=a)for(_=a.length;_--;)null!=a[_]&&o(a[_]);c||("value"in v&&void 0!==(_=v.value)&&(_!==t.value||"progress"===y&&!_||"option"===y&&_!==d.value)&&m(t,"value",_,d.value,!1),"checked"in v&&void 0!==(_=v.checked)&&_!==t.checked&&m(t,"checked",_,d.checked,!1))}return t}function E(t,e,r){try{"function"==typeof t?t(e):t.current=e}catch(t){P.__e(t,r)}}function F(t,e,r){var n,i;if(P.unmount&&P.unmount(t),(n=t.ref)&&(n.current&&n.current!==t.__e||E(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){P.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&F(n[i],e,"function"!=typeof t.type);r||null==t.__e||o(t.__e),t.__e=t.__d=void 0}function S(t,e,r){return this.constructor(t,r)}function A(t,e,r){var n,o,a;P.__&&P.__(t,e),o=(n="function"==typeof r)?null:r&&r.__k||e.__k,a=[],w(e,t=(!n&&r||e).__k=i(c,null,[t]),o||$,$,void 0!==e.ownerSVGElement,!n&&r?[r]:o?null:e.firstChild?I.call(e.childNodes):null,a,!n&&r?r:o?o.__e:e.firstChild,n),j(a,t)}function T(t,e){A(t,e,T)}function k(t,e,r){var o,i,u,c=n({},t.props);for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:c[u]=e[u];return arguments.length>2&&(c.children=arguments.length>3?I.call(arguments,2):r),a(t.type,c,o||t.key,i||t.ref,null)}function D(t,e){var r={__c:e="__cC"+N++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some(p)},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}r.r(e),r.d(e,"render",(function(){return A})),r.d(e,"hydrate",(function(){return T})),r.d(e,"createElement",(function(){return i})),r.d(e,"h",(function(){return i})),r.d(e,"Fragment",(function(){return c})),r.d(e,"createRef",(function(){return u})),r.d(e,"isValidElement",(function(){return M})),r.d(e,"Component",(function(){return s})),r.d(e,"cloneElement",(function(){return k})),r.d(e,"createContext",(function(){return D})),r.d(e,"toChildArray",(function(){return y})),r.d(e,"options",(function(){return P}));var I,P,C,M,R,L,U,N,$={},z=[],V=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;I=z.slice,P={__e:function(t,e,r,n){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,n||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},C=0,M=function(t){return null!=t&&void 0===t.constructor},s.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=n({},this.state),"function"==typeof t&&(t=t(n({},r),this.props)),t&&n(r,t),null!=t&&this.__v&&(e&&this.__h.push(e),p(this))},s.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),p(this))},s.prototype.render=c,R=[],L="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d.__r=0,N=0},i0JV:function(t,e,r){var n=r("FEiO"),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},i7Bh:function(t){t.exports="data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJoLTYgdy02IiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHN0cm9rZT0iY3VycmVudENvbG9yIiBzdHJva2Utd2lkdGg9IjIiPjxwYXRoIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTkgMTJsMiAyIDQtNG02IDJhOSA5IDAgMTEtMTggMCA5IDkgMCAwMTE4IDB6IiAvPjwvc3ZnPg=="},iMLE:function(t){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},iOq2:function(t){t.exports=function(){this.__data__=[],this.size=0}},jL4t:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},jgJv:function(t,e,r){var n=r("s3UK");t.exports=n.Symbol},ji6j:function(t,e,r){var n=r("2AbI"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,u){var c=1&r,s=n(t),l=s.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in e:o.call(e,p)))return!1}var d=u.get(t),h=u.get(e);if(d&&h)return d==e&&h==t;var v=!0;u.set(t,e),u.set(e,t);for(var y=c;++f<l;){var _=t[p=s[f]],b=e[p];if(i)var m=c?i(b,_,p,e,t,u):i(_,b,p,t,e,u);if(!(void 0===m?_===b||a(_,b,r,i,u):m)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var g=t.constructor,x=e.constructor;g==x||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof x&&x instanceof x||(v=!1)}return u.delete(t),u.delete(e),v}},kCQp:function(t,e,r){var n=r("RW/s"),o=r("0KRy"),i=r("xkFB");t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},kXPx:function(t,e,r){var n=r("COrk"),o=r("edSL"),i=r("dtdj"),a=r("BwbT"),u=r("2EQx"),c=r("a7YA"),s=r("cTHi");t.exports=function(t,e){return a(t)&&u(e)?c(s(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},lYsT:function(t,e,r){var n=r("UgeB"),o=r("T9Ud"),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},ln7d:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return l}));var n=r("2y1a"),o=r("uL7t"),i=r("Nt/+"),a=r("z46i"),u=r("ayR8"),c=r("WcvB"),s=r("DaPW");const l=o.b().shape({title:o.c().default("").required("Field is required").max(50,"Max 50 chars"),subTitle:o.c().default("").required("Field is required").max(100,"Max 100 chars"),category:o.c().default("").required("Category is required").oneOf([...a.a],"Category is required"),description:o.c().default("").required("Field is required").max(250,"Max 250 chars"),linkLabel:o.c().default("").required("Field is required").max(30,"Max 30 chars"),url:o.c().default("").matches(/^(https:\/\/)www\.?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,{excludeEmptyString:!0,message:"Provide a valid URL"}).required("Field is required").max(100,"Max 100 chars"),coverPhoto:o.a().default((()=>i.g)).required(),icon:o.a().default((()=>i.g)).required(),attachments:o.a().default((()=>i.g)).required()}),f=l.getDefault();e.a=e=>t(s.c,null,t(n.c,{initialValues:i.d((()=>f))(e.initialValues),validationSchema:l,onSubmit:async(t,{setSubmitting:r})=>{r(!1),await e.onSaveAsync(t)}},(({errors:r,touched:o})=>t(n.b,null,t(s.b,null,e.isEditMode?"Edit Perk":"Add new Perk"),t("div",null,t(s.d,{htmlFor:"title"},r.title&&o.title,t("span",null,"Title*"),r.title&&o.title&&t(s.e,null,r.title)),t(n.a,{name:"title",placeholder:"e.g. Free flu shots",type:"text","aria-describedby":"title"})),t("div",null,t(s.d,{htmlFor:"subTitle"},r.subTitle&&o.subTitle,t("span",null,"SubTitle*"),r.subTitle&&o.subTitle&&t(s.e,null,r.subTitle)),t(n.a,{name:"subTitle",placeholder:"e.g. Flu protection for you and your immediate family",type:"text","aria-describedby":"subTitle"})),t("div",null,t(s.d,{htmlFor:"category"},r.category&&o.category,t("span",null,"Category*"),r.category&&o.category&&t(s.e,null,r.category)),t(n.a,{as:"select",name:"category",placeholder:"Enter category",type:"text","aria-describedby":"category"},a.a.map((e=>t("option",{key:e,value:e},e))))),t("div",null,t(s.d,{htmlFor:"description"},r.description&&o.description,t("span",null,"Description*"),r.description&&o.description&&t(s.e,null,r.description)),t(n.a,{as:"textarea",name:"description",placeholder:"Add detailed description of the perk",type:"text","aria-describedby":"description"})),t("div",null,t(s.d,{htmlFor:"linkLabel"},r.linkLabel&&o.linkLabel,t("span",null,"LinkLabel*"),r.linkLabel&&o.linkLabel&&t(s.e,null,r.linkLabel)),t(n.a,{name:"linkLabel",placeholder:"e.g. Learn More",type:"text","aria-describedby":"linkLabel"})),t("div",null,t(s.d,{htmlFor:"url"},r.url&&o.url,t("span",null,"URL*")),t(n.a,{name:"url",placeholder:"https://www.example.com",type:"text","aria-describedby":"url"}),r.url&&o.url&&t(s.e,null,r.url)),t("div",null,t(s.d,null,"Cover Image"),t(u.a,{name:"coverPhoto",mode:"full",title:"Add an image",subtitle:"PNG, JPG, GIF, up to 10MB",state:"pristine",backendUrl:e.backendUrl,accessToken:e.accessToken})),t("div",null,t(s.d,null,"Icon"),t(u.a,{name:"icon",mode:"full",title:"Add an image",state:"pristine",backendUrl:e.backendUrl,accessToken:e.accessToken})),t("div",null,t(s.d,null,"Attachment"),t(c.a,{name:"attachments",backendUrl:e.backendUrl,accessToken:e.accessToken})),t(s.a,{type:"submit"},e.isEditMode?"Update":"Submit")))))}).call(this,r("hosL").h)},"m/eG":function(t,e,r){"use strict";(function(t){function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}var o=r("hosL"),i=r("paZ/"),a=r("QRet"),u=r("Nt/+"),c=r("ln7d"),s=r("RROh"),l=r("F0sN"),f=r("PBc2");Object(i.a)(o.h);e.a=e=>{const r={backendUrl:e["backend-url"],accessToken:e["access-token"]},[i,p]=Object(a.j)(!1),[d,h]=Object(a.j)(!1),[v,y]=Object(a.j)(),_=async t=>{if(d){if(void 0===v)throw alert("Unable to get perk for update!"),new Error("Unable to get perk for update!");await Object(l.h)(Object(l.e)(t),r.backendUrl,r.accessToken,v.perkId),h(!1)}else await Object(l.c)(Object(l.e)(t),r.backendUrl,r.accessToken);p(!1)},b=t=>{t.visibility?(y(t),h(!0),p(!0)):alert("Update Visibility to True!")},m=(t,r)=>{Object(l.g)(e["backend-url"],e["access-token"],t,!r),p(!1),h(!1)},g=()=>{p(!1),h(!1)};return Object(o.h)(f.c,null,!i&&Object(o.h)((()=>Object(o.h)(t,null,Object(o.h)(f.b,null,Object(o.h)(f.a,{onClick:()=>p(!0)},"Add new Perk!")),Object(o.h)(s.a,n({onUpdate:b,onDelete:m},r)))),null),i&&Object(o.h)((()=>Object(o.h)(t,null,Object(o.h)(f.b,null,Object(o.h)(f.a,{onClick:g},"Perks List")),Object(o.h)(c.a,n({initialValues:v?u.h(Object(l.d)(v.perkData)):u.g,isEditMode:d,onSaveAsync:_},r)))),null))}}).call(this,r("hosL").Fragment)},m3cY:function(t,e,r){var n=r("PAOY"),o=r("zYYD"),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,n).replace(a,"")}},mdyV:function(t,e,r){"use strict";r.r(e);var n=r("hosL");const{h:o,render:i,hydrate:a}=n,u=t=>t&&t.default?t.default:t;if("function"==typeof u(r("/hs+"))){let t=document.getElementById("preact_root")||document.body.firstElementChild,e=()=>{let e=u(r("/hs+")),n={};const a=document.querySelector('[type="__PREACT_CLI_DATA__"]');a&&(n=JSON.parse(decodeURI(a.innerHTML)).preRenderData||n);n.url&&(c=n.url);var c;i(o(e,{CLI_DATA:{preRenderData:n}}),document.body,t)};0,e()}},pCs0:function(t){var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},pCvA:function(t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},"paZ/":function(t,e,r){"use strict";function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}function o(t){let e=this||{},r=t.call?t(e.p):t;return b(r.unshift?r.raw?m(r,[].slice.call(arguments,1),e.p):r.reduce(((t,r)=>n(t,r&&r.call?r(e.p):r)),{}):r,f(e.target),e.g,e.o,e.k)}function i(t,e,r,n){v.p=e,u=t,c=r,s=n}function a(t,e){let r=this||{};return function(){function i(l,f){let p=n({},l),d=p.className||i.className;r.p=n({theme:c&&c()},p),r.o=/ *go\d+/.test(d),p.className=o.apply(r,a)+(d?" "+d:""),e&&(p.ref=f);let h=t;return t[0]&&(h=p.as||t,delete p.as),s&&h[0]&&s(p),u(h,p)}let a=arguments;return e?e(i):i}}r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return a}));let u,c,s,l={data:""},f=t=>"object"==typeof window?((t?t.querySelector("#_goober"):window._goober)||n((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||l,p=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d=/\/\*[^]*?\*\/| +/g,h=/\n+/g,v=(t,e)=>{let r="",n="",o="";for(let i in t){let a=t[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?v(a,i):i+"{"+v(a,"k"==i[1]?"":e)+"}":"object"==typeof a?n+=v(a,e?e.replace(/([^,])+/g,(t=>i.replace(/(^:.*)|([^,])+/g,(e=>/&/.test(e)?e.replace(/&/g,t):t?t+" "+e:e)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=v.p?v.p(i,a):i+":"+a+";")}return r+(e&&o?e+"{"+o+"}":o)+n},y={},_=t=>{if("object"==typeof t){let e="";for(let r in t)e+=r+_(t[r]);return e}return t},b=(t,e,r,n,o)=>{let i=_(t),a=y[i]||(y[i]=(t=>{let e=0,r=11;for(;e<t.length;)r=101*r+t.charCodeAt(e++)>>>0;return"go"+r})(i));if(!y[a]){let e=i!==t?t:(t=>{let e,r,n=[{}];for(;e=p.exec(t.replace(d,""));)e[4]?n.shift():e[3]?(r=e[3].replace(h," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][e[1]]=e[2].replace(h," ").trim();return n[0]})(t);y[a]=v(o?{["@keyframes "+a]:e}:e,r?"":"."+a)}return((t,e,r)=>{-1==e.data.indexOf(t)&&(e.data=r?t+e.data:e.data+t)})(y[a],e,n),a},m=(t,e,r)=>t.reduce(((t,n,o)=>{let i=e[o];if(i&&i.call){let t=i(r),e=t&&t.props&&t.props.className||/^go/.test(t)&&t;i=e?"."+e:t&&"object"==typeof t?t.props?"":v(t,""):!1===t?"":t}return t+n+(null==i?"":i)}),"");o.bind({g:1}),o.bind({k:1})},"q+I6":function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},qQ1Y:function(t,e,r){"use strict";r.d(e,"e",(function(){return g})),r.d(e,"f",(function(){return x})),r.d(e,"d",(function(){return w})),r.d(e,"h",(function(){return j})),r.d(e,"l",(function(){return O})),r.d(e,"k",(function(){return E})),r.d(e,"g",(function(){return F})),r.d(e,"j",(function(){return S})),r.d(e,"m",(function(){return A})),r.d(e,"i",(function(){return T})),r.d(e,"b",(function(){return k})),r.d(e,"a",(function(){return D})),r.d(e,"c",(function(){return I}));var n=r("paZ/");let o,i,a,u,c,s,l,f,p,d,h,v,y,_,b,m=t=>t;const g=Object(n.b)("div")(o||(o=m`
|
|
37
37
|
${0}
|
|
38
38
|
`),(()=>({display:"flex",flexDirection:"column",marginTop:"2.5rem"}))),x=Object(n.b)("div")(i||(i=m`
|
|
39
39
|
${0}
|