@flarehr/superhero-salpac-profile-admin 1.0.610 → 1.0.611
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,6 @@ var __defProp=Object.defineProperty,__defNormalProp=(e,t,r)=>t in e?__defProp(e,
|
|
8
8
|
${({prefix:e})=>e?{paddingLeft:"2.5rem"}:{paddingLeft:"0.75rem"}}
|
9
9
|
|
10
10
|
${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
|
11
|
-
`;function So({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const To=Ue(So),Eo=Ue((({label:e,id:t,type:r,icon:n,placeholder:o,setPlaceholderOnFocus:i,value:a,className:c,onChange:s,onBlur:l,onEnter:u,error:d,helperText:p,disabled:f,remove:h},_)=>eo("div",{className:c,children:[e&&Qn("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),eo("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&Qn("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),eo("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[Qn(Co,{type:r,value:a,name:t,id:t,placeholder:o,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&s(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&l&&l(t.target.value.trim())},onFocus:()=>{o&&i&&!(null==a?void 0:a.trim())&&s(o)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:_,disabled:f,prefix:!!n}),h&&eo("button",{type:"button",children:[Qn(To,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>h()})," "]})]})]}),d&&Qn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&Qn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),Po=e=>{var t,r;const[n,o]=ue(""),[i,a]=ue([]),[c,s]=ue(e.columns[0]),[l,u]=ue("asc"),d=me((()=>c?[...e.data].sort(((e,t)=>{const r=c.sort?c.sort(e[c.field],t[c.field]):e[c.field].localeCompare(t[c.field]);return"desc"===l?-1*r:r})):e.data),[e.data,c,l]),p=me((()=>{const t=i.reduce(((e,t)=>e.filter(t.filterFunction)),d);return n&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(n.toLowerCase()))):t}),[d,n,i,e.searchButton]),f=me((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),h=()=>{e.searchButton&&e.searchButton.onClick(n)},_=(e,t)=>{const r={name:e.name,filterFunction:r=>e.predicate(r[t.field])},n=i.filter((e=>e.name!==r.name));return()=>n.length<i.length?a([...n]):a([...n,r])};return Qn(Jn,{children:eo("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[eo("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[eo("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[Qn("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&Qn("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),eo("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[Qn(Eo,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:Qn(lo,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(r=e.searchButton)?void 0:r.error,onChange:e=>o(e),onEnter:h}),e.searchButton&&Qn("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:Qn("button",{type:"button",onClick:h,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&Qn("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:Qn("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),Qn("div",{css:{marginTop:"2rem",display:"flow-root"},children:Qn("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:Qn("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:Qn("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:eo("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[f&&Qn("thead",{children:Qn("tr",{children:eo("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[Qn(xo,{onClick:()=>a([]),isActive:0==i.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>Qn(xo,{onClick:_(t,e),isActive:!!i.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),Qn("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:Qn("tr",{children:e.columns.map((e=>Qn("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:eo("button",{disabled:!e.isSortable,onClick:()=>(e=>{c===e?u("asc"===l?"desc":"asc"):(s(e),u("asc"))})(e),css:{display:"inline-flex"},children:[Qn("span",{children:e.name}),eo("span",{css:{marginLeft:"0.5rem"},children:[c===e&&"asc"===l&&Qn(yo,{css:{height:"1.25rem",width:"1.25rem"}}),c===e&&"desc"===l&&Qn(ko,{css:{height:"1.25rem",width:"1.25rem"}}),c!==e&&Qn("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),Qn("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,r)=>Qn("tr",{children:e.columns.map(((e,n)=>Qn(y,{children:vo(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},Ao=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}],Ro=()=>{const[e,t]=ue([]),[r,n]=ue(),o=ve(oo);return Qn(Po,{columns:Ao,data:e,title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:async e=>{try{n(void 0);const r=Ae(o.backend.url,o.backend.accessToken),i=await(async(e,t,r)=>await e(`/accounts/${t}/profile-search?search=${r}`,"GET"))(r,o.account.accountId,e);t(i)}catch(r){n(await io(r))}},text:"Search",error:r}})},Lo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],$o=e=>{switch(e){case"search":return Qn(Ro,{});case"linkedProfiles":return Qn("div",{children:"Coming soon..."})}},Oo=()=>{const[e,t]=ue("search");return eo(Jn,{children:[Qn(no,{tabs:Lo,currentTabId:e,onChange:t}),Qn("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:$o(e)})]})},No=e=>{const[t,r]=ue(),[n,o]=ue({status:"NotLinked",message:"Access Denied"}),[i]=ue(Oe.create(e.accessToken)),[a,c]=ue("Loading");var s;s={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},oo=B({...s,backend:{...s.backend,url:s.backend.url.replace(/\/?$/,"")}}),pe((()=>{(async()=>{if(i.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);o(r),c("Linked"===r.status?"Main":"Unlinked")}catch(t){r(await io(t)),c("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,i]),pe((()=>{i&&!i.isAuthorized&&(r("Access Denied"),c("Error"))}),[i]);const l=async()=>{try{const t=Ae(e.backendUrl,e.accessToken);return await(async e=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2),await e("/ingest/clients","POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)})(t),!0}catch(t){return r(await io(t)),c("Error"),!1}},u=async()=>{try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);return"Linked"===r.status?(o(r),c("Main"),!0):(n.status!==r.status||n.message!==r.message)&&(o(r),!0)}catch{return!1}},d=()=>{r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),c("Error")};switch(a){case"Loading":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return Qn(Oo,{});case"Error":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return eo("div",{children:[Qn("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),Qn(to,{onClick:l,onCheck:u,onTimeout:d,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Io=Bn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),zo=()=>eo(y,{children:[Qn(Un,{styles:Bn`
|
11
|
+
`;function So({title:e,titleId:t,...r},n){return g("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g("title",{id:t},e):null,g("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const To=Ue(So),Eo=Ue((({label:e,id:t,type:r,icon:n,placeholder:o,setPlaceholderOnFocus:i,value:a,className:c,onChange:s,onBlur:l,onEnter:u,error:d,helperText:p,disabled:f,remove:h},_)=>eo("div",{className:c,children:[e&&Qn("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),eo("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&Qn("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),eo("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[Qn(Co,{type:r,value:a,name:t,id:t,placeholder:o,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&s(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&l&&l(t.target.value.trim())},onFocus:()=>{o&&i&&!(null==a?void 0:a.trim())&&s(o)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:_,disabled:f,prefix:!!n}),h&&eo("button",{type:"button",children:[Qn(To,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>h()})," "]})]})]}),d&&Qn("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&Qn("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),Po="asc",Ao="desc",Ro=e=>{var t,r;const[n,o]=ue(""),[i,a]=ue([]),[c,s]=ue(e.columns[0]),[l,u]=ue(Po),d=me((()=>c?[...e.data].sort(((e,t)=>{const r=c.sort?c.sort(e[c.field],t[c.field]):e[c.field].localeCompare(t[c.field]);return l===Ao?-1*r:r})):e.data),[e.data,c,l]),p=me((()=>{const t=i.reduce(((e,t)=>e.filter(t.filterFunction)),d);return n&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(n.toLowerCase()))):t}),[d,n,i,e.searchButton]),f=me((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),h=()=>{e.searchButton&&e.searchButton.onClick(n)},_=(e,t)=>{const r={name:e.name,filterFunction:r=>e.predicate(r[t.field])},n=i.filter((e=>e.name!==r.name));return()=>n.length<i.length?a([...n]):a([...n,r])};return Qn(Jn,{children:eo("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[eo("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[eo("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[Qn("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&Qn("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),eo("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[Qn(Eo,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:Qn(lo,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(r=e.searchButton)?void 0:r.error,onChange:e=>o(e),onEnter:h}),e.searchButton&&Qn("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:Qn("button",{type:"button",onClick:h,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&Qn("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:Qn("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),Qn("div",{css:{marginTop:"2rem",display:"flow-root"},children:Qn("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:Qn("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:Qn("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:eo("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[f&&Qn("thead",{children:Qn("tr",{children:eo("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[Qn(xo,{onClick:()=>a([]),isActive:0==i.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>Qn(xo,{onClick:_(t,e),isActive:!!i.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),Qn("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:Qn("tr",{children:e.columns.map((e=>Qn("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:eo("button",{disabled:!e.isSortable,onClick:()=>(e=>{c===e?u(l===Po?Ao:Po):(s(e),u(Po))})(e),css:{display:"inline-flex"},children:[Qn("span",{children:e.name}),eo("span",{css:{marginLeft:"0.5rem"},children:[c===e&&l===Po&&Qn(yo,{css:{height:"1.25rem",width:"1.25rem"}}),c===e&&l===Ao&&Qn(ko,{css:{height:"1.25rem",width:"1.25rem"}}),c!==e&&Qn("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),Qn("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,r)=>Qn("tr",{children:e.columns.map(((e,n)=>Qn(y,{children:vo(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},Lo=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}],$o=()=>{const[e,t]=ue([]),[r,n]=ue(),o=ve(oo);return Qn(Ro,{columns:Lo,data:e,title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:async e=>{try{n(void 0);const r=Ae(o.backend.url,o.backend.accessToken),i=await(async(e,t,r)=>await e(`/accounts/${t}/profile-search?search=${r}`,"GET"))(r,o.account.accountId,e);t(i)}catch(r){n(await io(r))}},text:"Search",error:r}})},Oo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],No=e=>{switch(e){case"search":return Qn($o,{});case"linkedProfiles":return Qn("div",{children:"Coming soon..."})}},Io=()=>{const[e,t]=ue("search");return eo(Jn,{children:[Qn(no,{tabs:Oo,currentTabId:e,onChange:t}),Qn("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:No(e)})]})},zo=e=>{const[t,r]=ue(),[n,o]=ue({status:"NotLinked",message:"Access Denied"}),[i]=ue(Oe.create(e.accessToken)),[a,c]=ue("Loading");var s;s={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},oo=B({...s,backend:{...s.backend,url:s.backend.url.replace(/\/?$/,"")}}),pe((()=>{(async()=>{if(i.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);o(r),c("Linked"===r.status?"Main":"Unlinked")}catch(t){r(await io(t)),c("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,i]),pe((()=>{i&&!i.isAuthorized&&(r("Access Denied"),c("Error"))}),[i]);const l=async()=>{try{const t=Ae(e.backendUrl,e.accessToken);return await(async e=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2),await e("/ingest/clients","POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)})(t),!0}catch(t){return r(await io(t)),c("Error"),!1}},u=async()=>{try{const t=Ae(e.backendUrl,e.accessToken),r=await Re(t,e.accountId);return"Linked"===r.status?(o(r),c("Main"),!0):(n.status!==r.status||n.message!==r.message)&&(o(r),!0)}catch{return!1}},d=()=>{r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),c("Error")};switch(a){case"Loading":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return Qn(Io,{});case"Error":return Qn("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return eo("div",{children:[Qn("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),Qn(to,{onClick:l,onCheck:u,onTimeout:d,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Ho=Bn({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),Mo=()=>eo(y,{children:[Qn(Un,{styles:Bn`
|
12
12
|
${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},'[hidden]:where(:not([hidden="until-found"]))':{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
|
13
|
-
`}),Qn(Un,{styles:
|
13
|
+
`}),Qn(Un,{styles:Ho})]});!function(e,t,r,n){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:n.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=V,o.prototype.attributeChangedCallback=G,o.prototype.disconnectedCallback=X,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const t=he(null),{EmotionProvider:r}=((e,t)=>{const[r,n]=ue();return pe((()=>{const r=e=>{t&&t.current?e():requestAnimationFrame((()=>r(e)))};r((()=>{n(Br({container:t.current,key:e}))}))}),[e,t]),{EmotionProvider:({children:e})=>r?Qn($n,{value:r,children:e}):Qn(Jn,{})}})("superhero-salpac-profile-admin",t);return eo(Jn,{children:[Qn("head",{ref:t}),eo(r,{children:[Qn(Mo,{}),Qn("body",{children:Qn(zo,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
|