1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[549],{6196:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/employer-profile",function(){return r(9612)}])},9612:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return b}});var a=r(7568),i=r(4051),s=r.n(i),o=r(5893),n=r(9008),l=r.n(n),c=r(9238),d=r.n(c),u=r(3208),p=r(1664),f=r.n(p),m=r(6501),h=r(7294),b=!0;t.default=function(e){var t=e.employer,r=e.job_posts,i=(0,h.useState)(new Set(r.filter((function(e){return e.filled})).map((function(e){return e.id})))),n=i[0],c=i[1],p=function(){var e=(0,a.Z)(s().mark((function e(t,r){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/mark-job-as-filled",{method:"POST",body:JSON.stringify({jobPostId:t,filled:r})});case 2:e.sent.ok?(m.ZP.success("Saved"),c(r?function(e){var r=new Set(e);return r.add(t),r}:function(e){var r=new Set(e);return r.delete(t),r})):m.ZP.error("Save failed");case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}();return(0,o.jsxs)("div",{className:"",children:[(0,o.jsx)(m.x7,{}),(0,o.jsxs)(l(),{children:[(0,o.jsx)("title",{children:"Sports Medicine Jobs"}),(0,o.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,o.jsx)(u.Z,{}),(0,o.jsxs)("main",{className:"flex flex-col items-center",children:[(0,o.jsxs)("h1",{className:"text-2xl md:text-6xl font-bold text-center text-primary",children:["Welcome, ",(0,o.jsx)("span",{className:"heading",children:t.name})]}),(0,o.jsxs)("div",{className:"grid grid-cols-4 mx-4 px-4 gap-4",children:[(0,o.jsx)("div",{className:"space-y-2 mt-4 font-semibold",children:"Website"}),(0,o.jsx)("div",{className:"col-span-3 space-y-2 mt-4 link",children:t.website}),(0,o.jsx)("div",{className:"space-y-2 mt-4 font-semibold",children:"About"}),(0,o.jsx)("div",{className:"col-span-3 space-y-2 mt-4",children:(0,o.jsx)("div",{className:"customDescription",dangerouslySetInnerHTML:{__html:d().sanitize(t.about)}})}),(0,o.jsx)("div",{className:"space-y-2 mt-4 font-semibold",children:"Your job posts"}),(0,o.jsx)("div",{className:"col-span-3 space-y-2 mt-4",children:r.map((function(e){return(0,o.jsxs)("div",{className:"flex flex-row space-x-2 items-center rounded-md",children:[n.has(e.id)?(0,o.jsx)("button",{className:"text-xs text-white items-center tracking-tight py-1 px-2 rounded-md bg-blue-800 hover:bg-blue-900 cursor-pointer whitespace-nowrap",onClick:function(){return p(e.id,!1)},children:"Mark as unfilled"}):(0,o.jsx)("button",{className:"text-xs text-white items-center tracking-tight py-1 px-2 rounded-md bg-blue-400 hover:bg-blue-500 cursor-pointer whitespace-nowrap",onClick:function(){return p(e.id,!0)},children:"Mark as filled"}),(0,o.jsx)("div",{className:"link whitespace-nowrap",children:(0,o.jsx)(f(),{href:"/job/".concat(e.title.replaceAll(" ","-"),"-job-at-").concat(t.name.replaceAll(" ","-"),"-").concat(e.id),children:(0,o.jsxs)("div",{children:[e.title," (",e.city,e.city&&", ",e.state,")"]})})})]})}))})]})]})]})}},7568:function(e,t,r){"use strict";function a(e,t,r,a,i,s,o){try{var n=e[s](o),l=n.value}catch(c){return void r(c)}n.done?t(l):Promise.resolve(l).then(a,i)}function i(e){return function(){var t=this,r=arguments;return new Promise((function(i,s){var o=e.apply(t,r);function n(e){a(o,i,s,n,l,"next",e)}function l(e){a(o,i,s,n,l,"throw",e)}n(void 0)}))}}r.d(t,{Z:function(){return i}})},6501:function(e,t,r){"use strict";r.d(t,{x7:function(){return re},ZP:function(){return ae}});var a=r(7294);let i={data:""},s=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||i,o=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,n=/\/\*[^]*?\*\/| +/g,l=/\n+/g,c=(e,t)=>{let r="",a="",i="";for(let s in e){let o=e[s];"@"==s[0]?"i"==s[1]?r=s+" "+o+";":a+="f"==s[1]?c(o,s):s+"{"+c(o,"k"==s[1]?"":t)+"}":"object"==typeof o?a+=c(o,t?t.replace(/([^,])+/g,(e=>s.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):s):null!=o&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=c.p?c.p(s,o):s+":"+o+";")}return r+(t&&i?t+"{"+i+"}":i)+a},d={},u=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+u(e[r]);return t}return e},p=(e,t,r,a,i)=>{let s=u(e),p=d[s]||(d[s]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(s));if(!d[p]){let t=s!==e?e:(e=>{let t,r,a=[{}];for(;t=o.exec(e.replace(n,""));)t[4]?a.shift():t[3]?(r=t[3].replace(l," ").trim(),a.unshift(a[0][r]=a[0][r]||{})):a[0][t[1]]=t[2].replace(l," ").trim();return a[0]})(e);d[p]=c(i?{["@keyframes "+p]:t}:t,r?"":"."+p)}let f=r&&d.g?d.g:null;return r&&(d.g=d[p]),((e,t,r,a)=>{a?t.data=t.data.replace(a,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(d[p],t,a,f),p},f=(e,t,r)=>e.reduce(((e,a,i)=>{let s=t[i];if(s&&s.call){let e=s(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;s=t?"."+t:e&&"object"==typeof e?e.props?"":c(e,""):!1===e?"":e}return e+a+(null==s?"":s)}),"");function m(e){let t=this||{},r=e.call?e(t.p):e;
vendor: 5,313 bytes, lines 1-96
1return p(r.unshift?r.raw?f(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,s(t.target),t.g,t.o,t.k)}m.bind({g:1});let h,b,g,y=m.bind({k:1});function x(e,t){let r=this||{};return function(){let a=arguments;function i(s,o){let n=Object.assign({},s),l=n.className||i.className;r.p=Object.assign({theme:b&&b()},n),r.o=/ *go\d+/.test(l),n.className=m.apply(r,a)+(l?" "+l:""),t&&(n.ref=o);let c=e;return e[0]&&(c=n.as||e,delete n.as),g&&c[0]&&g(n),h(c,n)}return t?t(i):i}}var v=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,w=(()=>{let e=0;return()=>(++e).toString()})(),j=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),N=new Map,k=e=>{if(N.has(e))return;let t=setTimeout((()=>{N.delete(e),P({type:4,toastId:e})}),1e3);N.set(e,t)},E=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=N.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?E(e,{type:1,toast:r}):E(e,{type:0,toast:r});case 3:let{toastId:a}=t;return a?k(a):e.toasts.forEach((e=>{k(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===a||void 0===a?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},_=[],$={toasts:[],pausedAt:void 0},P=e=>{$=E($,e),_.forEach((e=>{e($)}))},O={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},S=e=>(t,r)=>{let a=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||w()}))(t,e,r);return P({type:2,toast:a}),a.id},C=(e,t)=>S("blank")(e,t);C.error=S("error"),C.success=S("success"),C.loading=S("loading"),C.custom=S("custom"),C.dismiss=e=>{P({type:3,toastId:e})},C.remove=e=>P({type:4,toastId:e}),C.promise=(e,t,r)=>{let a=C.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(C.success(v(t.success,e),{id:a,...r,...null==r?void 0:r.success}),e))).catch((e=>{C.error(v(t.error,e),{id:a,...r,...null==r?void 0:r.error})})),e};var A=(e,t)=>{P({type:1,toast:{id:e,height:t}})},z=()=>{P({type:5,time:Date.now()})},D=e=>{let{toasts:t,pausedAt:r}=((e={})=>{let[t,r]=(0,a.useState)($);(0,a.useEffect)((()=>(_.push(r),()=>{let e=_.indexOf(r);e>-1&&_.splice(e,1)})),[t]);let i=t.toasts.map((t=>{var r,a;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||O[t.type],style:{...e.style,...null==(a=e[t.type])?void 0:a.style,...t.style}}}));return{...t,toasts:i}})(e);(0,a.useEffect)((()=>{if(r)return;let e=Date.now(),a=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>C.dismiss(t.id)),r);t.visible&&C.dismiss(t.id)}));return()=>{a.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let i=(0,a.useCallback)((()=>{r&&P({type:6,time:Date.now()})}),[r]),s=(0,a.useCallback)(((e,r)=>{let{reverseOrder:a=!1,gutter:i=8,defaultPosition:s}=r||{},o=t.filter((t=>(t.position||s)===(e.position||s)&&t.height)),n=o.findIndex((t=>t.id===e.id)),l=o.filter(((e,t)=>t<n&&e.visible)).length;return o.filter((e=>e.visible)).slice(...a?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[t]);return{toasts:t,handlers:{updateHeight:A,startPause:z,endPause:i,calculateOffset:s}}},I=y` 2from { 3 transform: scale(0) rotate(45deg); 4 opacity: 0; 5} 6to { 7 transform: scale(1) rotate(45deg); 8 opacity: 1; 9}`,M=y` 10from { 11 transform: scale(0); 12 opacity: 0; 13} 14to { 15 transform: scale(1); 16 opacity: 1; 17}`,T=y` 18from { 19 transform: scale(0) rotate(90deg); 20 opacity: 0; 21} 22to { 23 transform: scale(1) rotate(90deg); 24 opacity: 1; 25}`,Z=x("div")` 26 width: 20px; 27 opacity: 0; 28 height: 20px; 29 border-radius: 10px; 30 background: ${e=>e.primary||"#ff4b4b"}; 31 position: relative; 32 transform: rotate(45deg); 33 34 animation: ${I} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 35 forwards; 36 animation-delay: 100ms; 37 38 &:after, 39 &:before { 40 content: ''; 41 animation: ${M} 0.15s ease-out forwards; 42 animation-delay: 150ms; 43 position: absolute; 44 border-radius: 3px; 45 opacity: 0; 46 background: ${e=>e.secondary||"#fff"}; 47 bottom: 9px; 48 left: 4px; 49 height: 2px; 50 width: 12px; 51 } 52 53 &:before { 54 animation: ${T} 0.15s ease-out forwards; 55 animation-delay: 180ms; 56 transform: rotate(90deg); 57 } 58`,H=y` 59 from { 60 transform: rotate(0deg); 61 } 62 to { 63 transform: rotate(360deg); 64 } 65`,F=x("div")` 66 width: 12px; 67 height: 12px; 68 box-sizing: border-box; 69 border: 2px solid; 70 border-radius: 100%; 71 border-color: ${e=>e.secondary||"#e0e0e0"}; 72 border-right-color: ${e=>e.primary||"#616161"}; 73 animation: ${H} 1s linear infinite; 74`,L=y` 75from { 76 transform: scale(0) rotate(45deg); 77 opacity: 0; 78} 79to { 80 transform: scale(1) rotate(45deg); 81 opacity: 1; 82}`,J=y` 830% { 84 height: 0; 85 width: 0; 86 opacity: 0; 87} 8840% { 89 height: 0; 90 width: 6px; 91 opacity: 1; 92} 93100% { 94 opacity: 1; 95 height: 10px; 96}`,U=x("div")`
97 width: 20px; 98 opacity: 0; 99 height: 20px; 100 border-radius: 10px; 101 background: ${e=>e.primary||"#61d345"}; 102 position: relative; 103 transform: rotate(45deg); 104 105 animation: ${L} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 106 forwards; 107 animation-delay: 100ms; 108 &:after { 109 content: ''; 110 box-sizing: border-box; 111 animation: ${J} 0.2s ease-out forwards; 112 opacity: 0; 113 animation-delay: 200ms; 114 position: absolute; 115 border-right: 2px solid; 116 border-bottom: 2px solid; 117 border-color: ${e=>e.secondary||"#fff"}; 118 bottom: 6px; 119 left: 6px; 120 height: 10px; 121 width: 6px; 122 } 123`,W=x("div")` 124 position: absolute; 125`,X=x("div")` 126 position: relative; 127 display: flex; 128 justify-content: center; 129 align-items: center; 130 min-width: 20px; 131 min-height: 20px; 132`,Y=y` 133from { 134 transform: scale(0.6); 135 opacity: 0.4; 136} 137to { 138 transform: scale(1); 139 opacity: 1; 140}`,q=x("div")` 141 position: relative; 142 transform: scale(0.6); 143 opacity: 0.4; 144 min-width: 20px; 145 animation: ${Y} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 146 forwards; 147`,B=({toast:e})=>{let{icon:t,type:r,iconTheme:i}=e;return void 0!==t?"string"==typeof t?a.createElement(q,null,t):t:"blank"===r?null:a.createElement(X,null,a.createElement(F,{...i}),"loading"!==r&&a.createElement(W,null,"error"===r?a.createElement(Z,{...i}):a.createElement(U,{...i})))},R=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,G=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,K=x("div")` 148 display: flex; 149 align-items: center; 150 background: #fff; 151 color: #363636; 152 line-height: 1.3; 153 will-change: transform; 154 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 155 max-width: 350px; 156 pointer-events: auto; 157 padding: 8px 10px; 158 border-radius: 8px; 159`,Q=x("div")` 160 display: flex; 161 justify-content: center; 162 margin: 4px 10px; 163 color: inherit; 164 flex: 1 1 auto; 165 white-space: pre-line; 166`,V=a.memo((({toast:e,position:t,style:r,children:i})=>{let s=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[a,i]=j()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[R(r),G(r)];return{animation:t?`${y(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${y(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},o=a.createElement(B,{toast:e}),n=a.createElement(Q,{...e.ariaProps},v(e.message,e));return a.createElement(K,{className:e.className,style:{...s,...r,...e.style}},"function"==typeof i?i({icon:o,message:n}):a.createElement(a.Fragment,null,o,n))}));!function(e,t,r,a){c.p=t,h=e,b=r,g=a}(a.createElement);var ee=({id:e,className:t,style:r,onHeightUpdate:i,children:s})=>{let o=a.useCallback((t=>{if(t){let r=()=>{let r=t.getBoundingClientRect().height;i(e,r)};r(),new MutationObserver(r).observe(t,{subtree:!0,childList:!0,characterData:!0})}}),[e,i]);return a.createElement("div",{ref:o,className:t,style:r},s)},te=m` 167 z-index: 9999; 168 > * { 169 pointer-events: auto; 170 } 171`,re=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:i,children:s,containerStyle:o,containerClassName:n})=>{let{toasts:l,handlers:c}=D(r);return a.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...o},className:n,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map((r=>{let o=r.position||t,n=((e,t)=>{let r=e.includes("top"),a=r?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:j()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...a,...i}})(o,c.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:t}));return a.createElement(ee,{id:r.id,key:r.id,onHeightUpdate:c.updateHeight,className:r.visible?te:"",style:n},"custom"===r.type?v(r.message,r):s?s(r):a.createElement(V,{toast:r,position:o}))})))},ae=C}},function(e){e.O(0,[409,238,208,774,888,179],(function(){return t=6196,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.