forked from sindresorhus/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
776-4f3d10fdc3783f75.js.download
36 lines (33 loc) · 18.5 KB
/
776-4f3d10fdc3783f75.js.download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[776],{96369:function(i,l,p){"use strict";p.d(l,{S:function(){return TagLabel}});var v=p(77293),y=p(99029),m=p(3e3),_=p(39479),S=p(28165),I={grad:.9,turn:360,rad:360/(2*Math.PI)},t=function(i){return"string"==typeof i?i.length>0:"number"==typeof i},n=function(i,l,p){return void 0===l&&(l=0),void 0===p&&(p=Math.pow(10,l)),Math.round(p*i)/p+0},e=function(i,l,p){return void 0===l&&(l=0),void 0===p&&(p=1),i>p?p:i>l?i:l},u=function(i){return(i=isFinite(i)?i%360:0)>0?i:i+360},a=function(i){return{r:e(i.r,0,255),g:e(i.g,0,255),b:e(i.b,0,255),a:e(i.a)}},o=function(i){return{r:n(i.r),g:n(i.g),b:n(i.b),a:n(i.a,3)}},F=/^#([0-9a-f]{3,8})$/i,s=function(i){var l=i.toString(16);return l.length<2?"0"+l:l},h=function(i){var l=i.r,p=i.g,v=i.b,y=i.a,m=Math.max(l,p,v),_=m-Math.min(l,p,v),S=_?m===l?(p-v)/_:m===p?2+(v-l)/_:4+(l-p)/_:0;return{h:60*(S<0?S+6:S),s:m?_/m*100:0,v:m/255*100,a:y}},b=function(i){var l=i.h,p=i.s,v=i.v,y=i.a;l=l/360*6,p/=100,v/=100;var m=Math.floor(l),_=v*(1-p),S=v*(1-(l-m)*p),I=v*(1-(1-l+m)*p),F=m%6;return{r:255*[v,S,_,_,I,v][F],g:255*[I,v,v,S,_,_][F],b:255*[_,_,I,v,v,S][F],a:y}},g=function(i){return{h:u(i.h),s:e(i.s,0,100),l:e(i.l,0,100),a:e(i.a)}},d=function(i){return{h:n(i.h),s:n(i.s),l:n(i.l),a:n(i.a,3)}},f=function(i){var l,p;return b((l=i.s,{h:i.h,s:(l*=((p=i.l)<50?p:100-p)/100)>0?2*l/(p+l)*100:0,v:p+l,a:i.a}))},c=function(i){var l,p,v,y;return{h:(l=h(i)).h,s:(y=(200-(p=l.s))*(v=l.v)/100)>0&&y<200?p*v/100/(y<=100?y:200-y)*100:0,l:y/2,a:l.a}},k=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,E=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,z=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,P={string:[[function(i){var l=F.exec(i);return l?(i=l[1]).length<=4?{r:parseInt(i[0]+i[0],16),g:parseInt(i[1]+i[1],16),b:parseInt(i[2]+i[2],16),a:4===i.length?n(parseInt(i[3]+i[3],16)/255,2):1}:6===i.length||8===i.length?{r:parseInt(i.substr(0,2),16),g:parseInt(i.substr(2,2),16),b:parseInt(i.substr(4,2),16),a:8===i.length?n(parseInt(i.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(i){var l=E.exec(i)||z.exec(i);return l?l[2]!==l[4]||l[4]!==l[6]?null:a({r:Number(l[1])/(l[2]?100/255:1),g:Number(l[3])/(l[4]?100/255:1),b:Number(l[5])/(l[6]?100/255:1),a:void 0===l[7]?1:Number(l[7])/(l[8]?100:1)}):null},"rgb"],[function(i){var l,p,v=k.exec(i)||x.exec(i);return v?f(g({h:(l=v[1],void 0===(p=v[2])&&(p="deg"),Number(l)*(I[p]||1)),s:Number(v[3]),l:Number(v[4]),a:void 0===v[5]?1:Number(v[5])/(v[6]?100:1)})):null},"hsl"]],object:[[function(i){var l=i.r,p=i.g,v=i.b,y=i.a;return t(l)&&t(p)&&t(v)?a({r:Number(l),g:Number(p),b:Number(v),a:Number(void 0===y?1:y)}):null},"rgb"],[function(i){var l=i.h,p=i.s,v=i.l,y=i.a;return t(l)&&t(p)&&t(v)?f(g({h:Number(l),s:Number(p),l:Number(v),a:Number(void 0===y?1:y)})):null},"hsl"],[function(i){var l,p=i.h,v=i.s,y=i.v,m=i.a;return t(p)&&t(v)&&t(y)?b({h:u((l={h:Number(p),s:Number(v),v:Number(y),a:Number(void 0===m?1:m)}).h),s:e(l.s,0,100),v:e(l.v,0,100),a:e(l.a)}):null},"hsv"]]},N=function(i,l){for(var p=0;p<l.length;p++){var v=l[p][0](i);if(v)return[v,l[p][1]]}return[null,void 0]},M=function(i,l){var p=c(i);return{h:p.h,s:e(p.s+100*l,0,100),l:p.l,a:p.a}},H=function(i){return(299*i.r+587*i.g+114*i.b)/1e3/255},$=function(i,l){var p=c(i);return{h:p.h,s:p.s,l:e(p.l+100*l,0,100),a:p.a}},O=function(){function r(i){this.parsed=("string"==typeof i?N(i.trim(),P.string):"object"==typeof i&&null!==i?N(i,P.object):[null,void 0])[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return n(H(this.rgba),2)},r.prototype.isDark=function(){return .5>H(this.rgba)},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){var i,l,p,v,y,m;return l=(i=o(this.rgba)).r,p=i.g,v=i.b,m=(y=i.a)<1?s(n(255*y)):"","#"+s(l)+s(p)+s(v)+m},r.prototype.toRgb=function(){return o(this.rgba)},r.prototype.toRgbString=function(){var i,l,p,v,y;return l=(i=o(this.rgba)).r,p=i.g,v=i.b,(y=i.a)<1?"rgba("+l+", "+p+", "+v+", "+y+")":"rgb("+l+", "+p+", "+v+")"},r.prototype.toHsl=function(){return d(c(this.rgba))},r.prototype.toHslString=function(){var i,l,p,v,y;return l=(i=d(c(this.rgba))).h,p=i.s,v=i.l,(y=i.a)<1?"hsla("+l+", "+p+"%, "+v+"%, "+y+")":"hsl("+l+", "+p+"%, "+v+"%)"},r.prototype.toHsv=function(){var i;return{h:n((i=h(this.rgba)).h),s:n(i.s),v:n(i.v),a:n(i.a,3)}},r.prototype.invert=function(){var i;return w({r:255-(i=this.rgba).r,g:255-i.g,b:255-i.b,a:i.a})},r.prototype.saturate=function(i){return void 0===i&&(i=.1),w(M(this.rgba,i))},r.prototype.desaturate=function(i){return void 0===i&&(i=.1),w(M(this.rgba,-i))},r.prototype.grayscale=function(){return w(M(this.rgba,-1))},r.prototype.lighten=function(i){return void 0===i&&(i=.1),w($(this.rgba,i))},r.prototype.darken=function(i){return void 0===i&&(i=.1),w($(this.rgba,-i))},r.prototype.rotate=function(i){return void 0===i&&(i=15),this.hue(this.hue()+i)},r.prototype.alpha=function(i){var l;return"number"==typeof i?w({r:(l=this.rgba).r,g:l.g,b:l.b,a:i}):n(this.rgba.a,3)},r.prototype.hue=function(i){var l=c(this.rgba);return"number"==typeof i?w({h:i,s:l.s,l:l.l,a:l.a}):n(l.h)},r.prototype.isEqual=function(i){return this.toHex()===w(i).toHex()},r}(),w=function(i){return i instanceof O?i:new O(i)},A=[],a11y_o=function(i){var l=i/255;return l<.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)},a11y_t=function(i){return .2126*a11y_o(i.r)+.7152*a11y_o(i.g)+.0722*a11y_o(i.b)};!function(i){i.forEach(function(i){0>A.indexOf(i)&&(i(O,P),A.push(i))})}([function(i){i.prototype.luminance=function(){var i,l;return i=a11y_t(this.rgba),void 0===l&&(l=100),Math.round(l*i)/l+0},i.prototype.contrast=function(l){void 0===l&&(l="#FFF");var p,v,y,m,_,S=l instanceof i?l:new i(l);return v=this.rgba,y=S.toRgb(),m=a11y_t(v),_=a11y_t(y),void 0===p&&(p=100),Math.floor(p*(m>_?(m+.05)/(_+.05):(_+.05)/(m+.05)))/p+0},i.prototype.isReadable=function(i,l){var p,v,y,m,_;return void 0===i&&(i="#FFF"),void 0===l&&(l={}),this.contrast(i)>=(_=void 0===(m=(p=l).size)?"normal":m,"AAA"===(y=void 0===(v=p.level)?"AA":v)&&"normal"===_?7:"AA"===y&&"large"===_?3:4.5)}}]);let D=(0,_.B)("TagLabel",{root:(i,l)=>S.iv`
display: inline-flex;
align-items: center;
justify-content: center;
text-align: center;
border-radius: 30px;
${m.ZT.smallPrint1Bold};
color: ${l};
background-color: ${i};
&[data-size='small'] {
height: auto;
padding: 0 8px;
}
&[data-size='medium'] {
height: auto;
padding: 3px 8px;
}
`}),j=["gray","white","info","success","warning","error","peach","neutral300","bolt","cream","success500","lavender"],TagLabel=({children:i,color:l="gray",size:p="medium",className:m})=>{let _=y.w.neutral700,S=y.w.neutral100;if(j.find(i=>i===l))switch(l){case"gray":_=y.w.neutral700,S=y.w.neutral100;break;case"white":_=y.w.neutral100,S=y.w.neutral800;break;case"info":_=y.w.blue10,S=y.w.neutral800;break;case"success":_=y.w.success100,S=y.w.neutral800;break;case"warning":_=y.w.warning100,S=y.w.neutral800;break;case"error":_=y.w.error100,S=y.w.neutral800;break;case"peach":_=y.w.peach,S=y.w.neutral800;break;case"neutral300":_=y.w.neutral300,S=y.w.neutral800;break;case"bolt":_=y.w.bolt,S=y.w.neutral800;break;case"cream":_=y.w.cream,S=y.w.neutral800;break;case"success500":_=y.w.success500,S=y.w.neutral100;break;case"lavender":_=y.w.lavender,S=y.w.neutral800}else{_=y.w[l];let i=w(_).contrast(y.w.neutral100),p=w(_).contrast(y.w.neutral800);S=i>p?y.w.neutral100:y.w.neutral800}return(0,v.U)("span",{css:D.root(_,S),"data-size":p,className:m},i)}},64476:function(i,l,p){"use strict";p.d(l,{A:function(){return ServiceIcon}});var v=p(35788),y=p(77293),m=p(37365),_=p(41717);let ServiceIcon=({alt:i,ariaHidden:l=!1,hasBorder:p=!0,hasShadow:S=!1,hasWhiteBackground:I=!1,serviceName:F,size:k,src:x})=>{let{iconSize:E}=_.G[k];return(0,y.U)(v.e,{hasBorder:p,hasShadow:S,hasWhiteBackground:I,size:k},(0,y.U)(m.E,{alt:i||`${F} logo`,ariaHidden:l,borderRadius:0,height:E,objectFit:"contain",src:x,width:E}))}},41717:function(i,l,p){"use strict";p.d(l,{G:function(){return v}});let v={20:{borderRadius:3,iconSize:14,spacing:5},30:{borderRadius:3,iconSize:20,spacing:5},40:{borderRadius:5,iconSize:30,spacing:5},60:{borderRadius:8,iconSize:40,spacing:10},80:{borderRadius:10,iconSize:60,spacing:20},120:{borderRadius:15,iconSize:90,spacing:30},150:{borderRadius:18,iconSize:110,spacing:40}}},35788:function(i,l,p){"use strict";p.d(l,{e:function(){return ServiceIconShell}});var v=p(28165),y=p(99029),m=p(10391),_=p(98628),S=p(39479),I=p(52676),F=p(77293),k=p(41717);let x=(0,S.B)("ServiceIconShell",{root:({hasBorder:i,hasShadow:l,hasWhiteBackground:p,size:S})=>{let{borderRadius:F}=k.G[S],x=i?`1px solid ${y.w.neutral300}`:"none",E=p?y.w.white:y.w.neutral100;return[v.iv`
display: flex;
align-items: center;
justify-content: center;
background-color: ${E};
border: ${x};
border-radius: ${F}px;
`,(0,I.Q)("size",v.iv`
height: ${S}px;
width: ${S}px;
`),l&&(0,I.Q)("shadowed",v.iv`
box-shadow: ${m.f.elevation5};
transition-duration: ${_.f.transitionDuration};
transition-property: box-shadow;
transition-timing-function: ${_.f.transitionTimingFunction};
`)]}}),ServiceIconShell=({children:i,hasBorder:l=!0,hasShadow:p=!1,hasWhiteBackground:v=!1,size:y})=>(0,F.U)("span",{css:x.root({hasBorder:l,hasShadow:p,hasWhiteBackground:v,size:y}),"data-testid":"ServiceIconShell"},i)},59712:function(i,l,p){"use strict";p.d(l,{kW:function(){return FullStoryAPI},xd:function(){return useIdentifyToFullStory},b2:function(){return useInstallFullStory}});var v,y,m={};p.r(m),p.d(m,{anonymize:function(){return P},consent:function(){return x},event:function(){return _},getCurrentSessionURL:function(){return I},identify:function(){return F},init:function(){return A},isInitialized:function(){return isInitialized},log:function(){return S},restart:function(){return z},setUserVars:function(){return k},setVars:function(){return O},shutdown:function(){return E}});var executeSnippetV1=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=i.wnd,p=void 0===l?window:l;!function(i,l,p,v,y,m,_,S){if(p in i){i.console&&i.console.log&&i.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');return}(_=i[p]=function(i,l,p){_.q?_.q.push([i,l,p]):_._api(i,l,p)}).q=[],(m=l.createElement(v)).async=1,m.crossOrigin="anonymous",m.src="https://"+_fs_script,(S=l.getElementsByTagName(v)[0]).parentNode.insertBefore(m,S),_.identify=function(i,l,p){_(y,{uid:i},p),l&&_(y,l,p)},_.setUserVars=function(i,l){_(y,i,l)},_.event=function(i,l,p){_("event",{n:i,p:l},p)},_.anonymize=function(){_.identify(!1)},_.shutdown=function(){_("rec",!1)},_.restart=function(){_("rec",!0)},_.log=function(i,l){_("log",[i,l])},_.consent=function(i){_("consent",!arguments.length||i)},_.identifyAccount=function(i,l){m="account",(l=l||{}).acctId=i,_(m,l)},_.clearUserCookie=function(){},_.setVars=function(i,l){_("setVars",[i,l])},_._w={},S="XMLHttpRequest",_._w[S]=i[S],S="fetch",_._w[S]=i[S],i[S]&&(i[S]=function(){return _._w[S].apply(this,arguments)}),_._v="1.3.0"}(p,p.document,p._fs_namespace,"script","user")},initFS=function(i){var l=i.orgId,p=i.namespace,v=i.debug,y=i.host,m=i.script;if(!l)throw Error("FullStory orgId is a required parameter");window._fs_debug=void 0!==v&&v,window._fs_host=void 0===y?"fullstory.com":y,window._fs_script=void 0===m?"edge.fullstory.com/s/fs.js":m,window._fs_org=l,window._fs_namespace=void 0===p?"FS":p,executeSnippetV1()};function ownKeys(i,l){var p=Object.keys(i);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(i);l&&(v=v.filter(function(l){return Object.getOwnPropertyDescriptor(i,l).enumerable})),p.push.apply(p,v)}return p}!function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=i.shouldInsertScript,p=i.globalVar,v=void 0===p?"window":p,y=i.apiVersion,m=void 0===y?"1.3.0":y;"(function(m,n,e,t,l,o,g,y){\n if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window[\"_fs_namespace\"].');} return;}\n g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];".concat(void 0===l||l?"\n o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;\n y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);":"","\n g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};\n g.anonymize=function(){g.identify(!!0)};\n g.shutdown=function(){g(\"rec\",!1)};g.restart=function(){g(\"rec\",!0)};\n g.log = function(a,b){g(\"log\",[a,b])};\n g.consent=function(a){g(\"consent\",!arguments.length||a)};\n g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};\n g.clearUserCookie=function(){};\n g.setVars=function(n, p){g('setVars',[n,p]);};\n g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];\n if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};\n g._v=\"").concat(m,'";\n})(').concat(v,",").concat("window"===v?"document":"".concat(v,".document"),",").concat(v,"['_fs_namespace'],'script','user');")}();var fs=function(){return window[window._fs_namespace]},ensureSnippetLoaded=function(){if(!fs())throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions")},hasFullStoryWithFunction=function(){ensureSnippetLoaded();for(var i=arguments.length,l=Array(i),p=0;p<i;p++)l[p]=arguments[p];return l.every(function(i){return fs()[i]})},guard=function(i){return function(){if(window._fs_dev_mode){var l,p="FullStory is in dev mode and is not recording: ".concat(i," method not executed");return console.warn(p),p}return hasFullStoryWithFunction(i)?(l=fs())[i].apply(l,arguments):(console.warn("FS.".concat(i," not ready")),null)}},_=guard("event"),S=guard("log"),I=guard("getCurrentSessionURL"),F=guard("identify"),k=guard("setUserVars"),x=guard("consent"),E=guard("shutdown"),z=guard("restart"),P=guard("anonymize"),O=guard("setVars"),A=(v=function(i,l){var p=function(i){for(var l=1;l<arguments.length;l++){var p=null!=arguments[l]?arguments[l]:{};l%2?ownKeys(Object(p),!0).forEach(function(l){var v;v=p[l],l in i?Object.defineProperty(i,l,{value:v,enumerable:!0,configurable:!0,writable:!0}):i[l]=v}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(p)):ownKeys(Object(p)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(p,l))})}return i}({},i);if(fs()){console.warn("The FullStory snippet has already been defined elsewhere (likely in the <head> element)");return}if(p.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),p.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),p.cookieDomain&&(window._fs_cookie_domain=p.cookieDomain),!0===p.debug&&(p.script?console.warn("Ignoring `debug = true` because `script` is set"):p.script="edge.fullstory.com/s/fs-debug.js"),initFS(p),l&&fs()("observe",{type:"start",callback:l}),!0===p.devMode){var v="FullStory was initialized in devMode and will stop recording";_("FullStory Dev Mode",{message_str:v}),E(),window._fs_dev_mode=!0,console.warn(v)}},y="FullStory init has already been called once, additional invocations are ignored",function(){if(window._fs_initialized){y&&console.warn(y);return}v.apply(void 0,arguments),window._fs_initialized=!0}),isInitialized=function(){return!!window._fs_initialized},D=p(2784);function isDebugMode(){try{return!!window.DEBUG||"on"===localStorage.getItem("fs_debug")}catch{return!!window.DEBUG}}let isProduction=()=>!0,isStaging=()=>{var i,l,p;return null===(i=window)||void 0===i?void 0:null===(l=i.location)||void 0===l?void 0:null===(p=l.origin)||void 0===p?void 0:p.includes("zapier-staging")},isPreviewDeploy=()=>{var i,l,p;return null===(i=window)||void 0===i?void 0:null===(l=i.location)||void 0===l?void 0:null===(p=l.origin)||void 0===p?void 0:p.includes("zapier-deployment")},isProductionAndNotStaging=()=>isProduction()&&!isStaging()&&!isPreviewDeploy(),j=["[email protected]","[email protected]"],V=["zapier.com","zapier.rodeo"],isIgnoredEmail=i=>{var l;if(!i)return!1;if(j.includes(i))return!0;let p=null==i?void 0:null===(l=i.split("@"))||void 0===l?void 0:l[1];return!!(p&&V.includes(p))},isDisabledMode=i=>"undefined"==typeof window||!isProductionAndNotStaging()||isIgnoredEmail(i||""),FullStoryAPI=(i,...l)=>{var p;if("undefined"==typeof window)return;let v=(null==l?void 0:null===(p=l[0])||void 0===p?void 0:p.email)||"";if(isDebugMode())console.log('ℹ️ (Debug mode) Invoked FullStory method "'.concat(i,'" with arguments:'),...l);else if(isDisabledMode(v)){console.log('ℹ️ (Disabled mode) Would have invoked FullStory method "'.concat(i,'" with arguments:'),...l);return}if(window.FS&&window._fs_initialized)return m[i](...l)};function useInstallFullStory(i){let l=null==i?void 0:i.namespace,p=(null==i?void 0:i.isDisabled)||!1,v=(null==i?void 0:i.email)||"";(0,D.useEffect)(()=>{let i;if(!(p||isDisabledMode(v))||isDebugMode()){try{i=window.top!==window.self}catch(l){i=!0}A({orgId:"1XM",namespace:l||"FS",recordOnlyThisIFrame:i})}},[l,p,v])}let R=["__tnp","APPMANAGEMENT_FE_SERVICE","IDENTITY_FE_SERVICE","currentAccountId","__canary"],parseCookies=(i="")=>i.split(" ").reduce((i,l)=>{let p=l.replace(";","").split("=");return R.forEach(l=>{p[0].startsWith(l)&&(i[p[0]]=p[1])}),i},{}),useIdentifyToFullStory=i=>{let{id:l,email:p,...v}=i||{};(0,D.useEffect)(()=>{l&&FullStoryAPI("identify",l)},[l]),(0,D.useEffect)(()=>{let i=document.cookie,l=JSON.stringify(parseCookies(i));FullStoryAPI("setUserVars",{cookies:l})},[]),(0,D.useEffect)(()=>{p&&FullStoryAPI("setUserVars",{email:p,displayName:p})},[p]),(0,D.useEffect)(()=>{let i=Object.keys(v).filter(i=>"__typename"!==i).length>0;i&&FullStoryAPI("setUserVars",v)},[JSON.stringify(v)])}},50343:function(i){i.exports=function(i,l){for(var p=-1,v=null==i?0:i.length,y=Array(v);++p<v;)y[p]=l(i[p],p,i);return y}},1054:function(i,l,p){var v=p(50857),y=p(50343),m=p(86152),_=p(4795),S=1/0,I=v?v.prototype:void 0,F=I?I.toString:void 0;i.exports=function baseToString(i){if("string"==typeof i)return i;if(m(i))return y(i,baseToString)+"";if(_(i))return F?F.call(i):"";var l=i+"";return"0"==l&&1/i==-S?"-0":l}},66188:function(i,l,p){var v=p(1054);i.exports=function(i){return null==i?"":v(i)}}}]);