PageSourceSearch

https://wrangle.ai/_next/static/chunks/617.cca69f67e7986550.js

js wrangle.ai collected 2026-10-05 13:19:48 UTC 66,800 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[617],{197:()=>{},1547:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var l=r(46972);r(34992);let i=e=>{let{className:t=""}=e;return(0,l.jsxs)("a",{href:"https://wrangle.ai",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-neutral-400 hover:text-text-primary transition-all duration-200 group ".concat(t),children:[(0,l.jsx)("span",{className:"text-sm",children:"Powered by"}),(0,l.jsxs)("svg",{width:"87",height:"22",viewBox:"0 0 63 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M6.79228 5.37007L6.78423 8.58718C6.7835 8.87825 7.03317 9.10693 7.32306 9.08072L10.3498 8.80697C11.274 8.7234 11.9707 7.93056 11.9348 7.00335C11.903 6.18196 11.3017 5.49439 10.4919 5.35337L7.44474 4.82279C7.10464 4.76357 6.79315 5.02485 6.79228 5.37007Z",className:"fill-[#C7C7C7] group-hover:fill-[#4FA678] transition-all duration-200"}),(0,l.jsx)("path",{d:"M11.9448 7.45253L11.9329 7.14616C11.7551 6.28315 10.2224 5.31005 3.50334 4.98772C3.06433 4.96666 2.71133 4.61484 2.69414 4.17566C2.64979 3.04267 2.61236 2.09785 2.58209 1.31998C2.56355 0.843918 2.94573 0.446799 3.42204 0.457432C8.64533 0.574035 11.6361 1.83219 11.7653 2.82845L11.9329 7.14616C11.9544 7.25034 11.9561 7.3529 11.9448 7.45253Z",className:"fill-[#DDDDDD] group-hover:fill-[#5BC68D] transition-all duration-200"}),(0,l.jsx)("path",{d:"M5.20943 10.2862L5.21748 7.06906C5.21821 6.77799 4.96854 6.5493 4.67865 6.57552L1.65187 6.84926C0.727739 6.93284 0.0310347 7.72567 0.0669324 8.65288C0.0987337 9.47428 0.700014 10.1618 1.50984 10.3029L4.55697 10.8334C4.89707 10.8927 5.20856 10.6314 5.20943 10.2862Z",className:"fill-[#C7C7C7] group-hover:fill-[#4FA678] transition-all duration-200"}),(0,l.jsx)("path",{d:"M0.0569264 8.20371L0.0688168 8.51007C0.246597 9.37308 1.77934 10.3462 8.49836 10.6685C8.93737 10.6896 9.29038 11.0414 9.30757 11.4806C9.35191 12.6136 9.38934 13.5584 9.41962 14.3363C9.43815 14.8123 9.05598 15.2094 8.57967 15.1988C3.35638 15.0822 0.365583 13.824 0.236397 12.8278L0.0688168 8.51007C0.0473578 8.4059 0.0456405 8.30333 0.0569264 8.20371Z",className:"fill-[#DDDDDD] group-hover:fill-[#5BC68D] transition-all duration-200"}),(0,l.jsxs)("g",{transform:"translate(-1, 0)",children:[(0,l.jsx)("path",{d:"M21.249 12.1096C20.7382 12.1096 20.2885 11.7732 20.1442 11.2832L18.343 5.16501C18.1717 4.58312 18.6079 4 19.2144 4V4C19.6329 4 19.9972 4.28579 20.0968 4.69218L21.2999 9.60072C21.3048 9.62071 21.3228 9.63477 21.3433 9.63477V9.63477C21.3635 9.63477 21.3812 9.62124 21.3865 9.60175L22.6861 4.79593C22.8131 4.32622 23.2392 4 23.7258 4V4C24.2129 4 24.6393 4.32686 24.7659 4.79718L26.0617 9.61166C26.0672 9.63231 26.0859 9.64665 26.1073 9.64665V9.64665C26.1291 9.64665 26.148 9.63177 26.1532 9.61061L27.3562 4.69248C27.4556 4.28596 27.82 4 28.2385 4V4C28.8449 4 29.281 4.58301 29.1098 5.1648L27.3086 11.2829C27.1643 11.7731 26.7143 12.1096 26.2033 12.1096V12.1096C25.6944 12.1096 25.2458 11.7757 25.0997 11.2882L23.7663 6.8387C23.7607 6.82017 23.7437 6.80749 23.7243 6.80749V6.80749C23.705 6.80749 23.6879 6.82019 23.6824 6.83873L22.3525 11.2878C22.2067 11.7755 21.7581 12.1096 21.249 12.1096V12.1096Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M30.6105 12.1096C30.1312 12.1096 29.7427 11.7211 29.7427 11.2418V6.86874C29.7427 6.40408 30.1194 6.02741 30.584 6.02741H30.8947C31.1878 6.02741 31.4254 6.26497 31.4254 6.55802V7.05122C31.4254 7.07188 31.4421 7.08863 31.4628 7.08863V7.08863C31.4793 7.08863 31.4938 7.07779 31.4987 7.06206C31.6137 6.69773 31.8025 6.42148 32.065 6.23332C32.3265 6.04334 32.6266 5.94573 32.9651 5.94051C32.9843 5.94022 32.9786 5.93894 32.9977 5.94062V5.94062C33.302 5.96733 33.5399 6.21475 33.5399 6.52024V6.70603C33.5399 7.07163 33.1721 7.40995 32.8066 7.40541V7.40541C32.8043 7.40539 32.8054 7.40541 32.8031 7.40542C32.5492 7.40589 32.3222 7.46001 32.122 7.56776C31.9238 7.67336 31.7662 7.82119 31.6494 8.01126C31.5354 8.20133 31.4783 8.42044 31.4783 8.66858V11.2418C31.4783 11.7211 31.0898 12.1096 30.6105 12.1096V12.1096Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M35.813 12.2245C35.4137 12.2245 35.0579 12.1572 34.7456 12.0225C34.4332 11.8852 34.186 11.6833 34.0041 11.4167C33.8248 11.1474 33.7352 10.8121 33.7352 10.4109C33.7352 10.
1073 33.799 9.7892 33.9267 9.55954C34.0543 9.32987 34.2281 9.14508 34.4482 9.00517C34.6682 8.86525 34.918 8.75966 35.1978 8.68838C35.4803 8.61711 35.7764 8.56695 36.086 8.53791C36.45 8.50095 36.7433 8.46664 36.966 8.43496C37.1888 8.40064 37.3504 8.35048 37.4509 8.28449C37.5514 8.21849 37.6016 8.12081 37.6016 7.99146V7.9677C37.6016 7.71692 37.5201 7.52289 37.3572 7.38561C37.1969 7.24834 36.9688 7.17971 36.6727 7.17971C36.3603 7.17971 36.1118 7.24702 35.9271 7.38165V7.38165C35.6276 7.59566 35.2982 7.85989 34.9313 7.83093L34.8972 7.82824C34.3994 7.78894 34.0413 7.2974 34.3471 6.90262C34.3754 6.86611 34.405 6.83044 34.4359 6.79561C34.675 6.5237 34.9832 6.31515 35.3608 6.16996C35.741 6.02213 36.1811 5.94821 36.6808 5.94821C37.0285 5.94821 37.3612 5.98781 37.679 6.06701C37.9995 6.1462 38.2834 6.26896 38.5305 6.43527C38.7804 6.60158 38.9773 6.81541 39.1213 7.07675C39.2653 7.33546 39.3372 7.64564 39.3372 8.0073V11.2866C39.3372 11.7412 38.9688 12.1096 38.5142 12.1096H38.113C37.8801 12.1096 37.6912 11.9208 37.6912 11.6879V11.2967C37.6912 11.2799 37.6776 11.2662 37.6607 11.2662V11.2662C37.6494 11.2662 37.6391 11.2725 37.6337 11.2824C37.5342 11.4658 37.4026 11.628 37.239 11.7691C37.0706 11.9116 36.8683 12.0238 36.6319 12.1057C36.3956 12.1849 36.1227 12.2245 35.813 12.2245ZM36.3101 11.0603C36.5654 11.0603 36.7908 11.0115 36.9864 10.9138C37.182 10.8135 37.3354 10.6788 37.4468 10.5099C37.5582 10.3409 37.6138 10.1495 37.6138 9.93571V9.53435C37.6138 9.42841 37.4911 9.35436 37.3898 9.3853V9.3853C37.2974 9.4117 37.1928 9.43678 37.076 9.46054C36.9592 9.48166 36.8424 9.50146 36.7257 9.51994C36.6089 9.53578 36.5029 9.5503 36.4079 9.5635C36.2042 9.59253 36.0262 9.63873 35.8741 9.70209C35.722 9.76544 35.6039 9.85124 35.5197 9.95947C35.4355 10.0651 35.3934 10.1971 35.3934 10.3555C35.3934 10.5851 35.4789 10.7607 35.6501 10.8821C35.8239 11.0009 36.0439 11.0603 36.3101 11.0603Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M42.1899 8.59335V11.2418C42.1899 11.7211 41.8014 12.1096 41.3221 12.1096V12.1096C40.8428 12.1096 40.4543 11.7211 40.4543 11.2418V6.85448C40.4543 6.3977 40.8246 6.02741 41.2814 6.02741H41.5719C41.8682 6.02741 42.1085 6.26763 42.1085 6.56396V7.05692C42.1085 7.08099 42.128 7.10051 42.152 7.10051V7.10051C42.17 7.10051 42.1861 7.08949 42.1929 7.07289C42.3325 6.73217 42.5611 6.46156 42.8785 6.26104C43.2044 6.05249 43.5996 5.94821 44.0641 5.94821C44.4987 5.94821 44.8776 6.04061 45.2008 6.2254C45.524 6.41019 45.7753 6.67417 45.9545 7.01735C46.1338 7.3579 46.2234 7.76443 46.2234 8.23697V11.2418C46.2234 11.7211 45.8349 12.1096 45.3556 12.1096V12.1096C44.8763 12.1096 44.4878 11.7211 44.4878 11.2418V8.53791C44.4905 8.16569 44.3927 7.87531 44.1945 7.66676C43.9962 7.45557 43.7232 7.34998 43.3755 7.34998C43.142 7.34998 42.9355 7.39881 42.7563 7.49649C42.5797 7.59416 42.4412 7.73672 42.3407 7.92414C42.2429 8.10893 42.1927 8.332 42.1899 8.59335Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M50.1813 14.5172C49.619 14.5172 49.1369 14.4419 48.7349 14.2915C48.3356 14.1436 48.0179 13.9417 47.7816 13.6856C47.7718 13.675 47.7621 13.6644 47.7526 13.6537C47.4149 13.2728 47.7554 12.7656 48.2602 12.6996L48.5149 12.6663C48.7571 12.6347 48.9856 12.7806 49.1586 12.9531V12.9531C49.2646 13.0587 49.4045 13.1431 49.5783 13.2065C49.7548 13.2725 49.9694 13.3055 50.222 13.3055C50.5996 13.3055 50.9106 13.2157 51.155 13.0362C51.4022 12.8594 51.5258 12.5624 51.5258 12.1453V11.0771C51.5258 11.0525 51.5058 11.0326 51.4812 11.0326V11.0326C51.4637 11.0326 51.4479 11.0429 51.4403 11.0587C51.3645 11.218 51.2544 11.369 51.1102 11.5117C50.9581 11.6622 50.7625 11.7849 50.5235 11.88C50.2845 11.975 49.9993 12.0225 49.6679 12.0225C49.198 12.0225 48.7702 11.9169 48.3845 11.7057C48.0016 11.4919 47.696 11.1659 47.4678 10.7277C47.2424 10.2868 47.1297 9.72981 47.1297 9.05664C47.1297 8.36764 47.2451 7.79215 47.476 7.33018C47.7069 6.8682 48.0138 6.52238 48.3968 6.29271C48.7825 6.06305 49.2048 5.94821 49.6638 5.94821C50.0142 5.94821 50.3076 6.00629 50.5439 6.12244C50.7802 6.23596 50.9703 6.37851 51.1143 6.5501C51.2542 6.71129 51.3632 6.87007 51.4414 7.02645C51.4482 7.04021 51.4622 7.04903 51.4776 7.04903V7.04903C51.4997 7.04903 51.5176 7.03111 51.5176 7.009V6.53822C51.5176 6.25611 51.7463 6.02741 52.0284 6.02741H52.3793C52.8552 6.02741 53.241 6.41321 53.241 6.88911V12.169C53.241 12.6864 53.1107 13.1194 52.8499 13.4678C52.5892 13.8163 52.2279 14.0776 51.7662 14.2519C51.3071 14.4287 50.7788 14.5172 50.1813 14.5172ZM50.2179 10.7554C50.4977 10.7554 50.734 10.6881 50.9269 10.5534C51.1224 10.4162 51.2718 10.2208 51.375 9.96739C51.481 9.71133 51.5339 9.4051 51.5339 9.04872C51.5339 8.69234 51.4823 8.38348 51.3791 8.12213C51.2759 7.85815 51.1265 7.65356 50.9309 7.50837C50.7354 7.36318 50.4977 7.29058 50.2179 7.29058C49.9328 7.29058 49.6924 7.36582 49.4968 7.51629C49.3012 7.66412 49.1532 7.87003 49.0527 8.13401C48.9522 8.398 48.902 8.7029 48.902 9.04872C48.902 9.39982 48.9522 9.70341 49.0527 9.95947C49.1559 10.2129 49.304 10.4096 49.4968 10.5495C49.6924 10.6868 49.9328 10.7554 50.2179 10.7554Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M55.2605 4C55.7398 4 56.1284 4.38853 56.1284 4.86781V11.2418C56.1284 11.7211 55.7398 12.1096 55.2605 12.1096V12.1096C54.7813 12.1096 54.3927 11.7211 54.3927 11.2418V4.86781C54.3927 4.38853 54.7813 4 55.2605 4V4Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"}),(0,l.jsx)("path",{d:"M60.1412 12.2284C59.4975 12.2284 58.9434 12.1017 58.4789 11.8483
1C58.0172 11.5922 57.6614 11.2306 57.4115 10.7633C57.1616 10.2934 57.0366 9.73773 57.0366 9.09624C57.0366 8.4706 57.1616 7.92151 57.4115 7.44897C57.6614 6.97644 58.0131 6.60818 58.4667 6.34419C58.923 6.08021 59.4581 5.94821 60.0719 5.94821C60.4848 5.94821 60.8691 6.01289 61.225 6.14224C61.5835 6.26896 61.8958 6.46035 62.162 6.71641C62.4309 6.97248 62.6401 7.29454 62.7895 7.6826C62.9388 8.06802 63.0135 8.51943 63.0135 9.03684V9.03684C63.0135 9.29271 62.8061 9.50014 62.5502 9.50014H58.2519C57.9633 9.50014 57.7293 9.26612 57.7293 8.97745V8.97745C57.7293 8.68877 57.9633 8.45476 58.2519 8.45476H60.7062C61.0782 8.45476 61.4034 8.13116 61.2168 7.80931V7.80931C61.1082 7.62188 60.9574 7.47537 60.7646 7.36978C60.5744 7.26154 60.3531 7.20742 60.1005 7.20742C59.837 7.20742 59.6034 7.26682 59.3997 7.38561C59.1987 7.50177 59.0412 7.65884 58.9271 7.85683C58.813 8.05218 58.7546 8.26997 58.7519 8.51019V9.5041C58.7519 9.80504 58.8089 10.0651 58.923 10.2842C59.0398 10.5033 59.2041 10.6722 59.416 10.791C59.6279 10.9098 59.8791 10.9692 60.1697 10.9692C60.3626 10.9692 60.5391 10.9428 60.6994 10.89C60.8596 10.8372 60.9968 10.758 61.1109 10.6524V10.6524C61.317 10.4616 61.562 10.2766 61.8423 10.2946L61.9915 10.3041C62.5101 10.3374 62.8838 10.8466 62.5587 11.252C62.5321 11.285 62.5045 11.3175 62.4757 11.3494C62.2259 11.6265 61.9026 11.843 61.5061 11.9988C61.1122 12.1519 60.6573 12.2284 60.1412 12.2284Z",className:"fill-[#BCBCBC] group-hover:fill-[#4A4A4A] transition-all duration-200"})]})]})]})}},4821:(e,t,r)=>{"use strict";let l=r(55656),i=["description","requirements"],s=["a","b","blockquote","br","code","del","em","h2","h3","h4","hr","i","li","ol","p","pre","s","strong","u","ul"];function a(e){return"string"!=typeof e?"":l(e,{allowedTags:s,allowedAttributes:{a:["href","rel","title"]},allowedSchemes:["http","https","mailto"],allowProtocolRelative:!1,disallowedTagsMode:"discard",enforceHtmlBoundary:!0,transformTags:{a:l.simpleTransform("a",{rel:"noopener noreferrer"},!0)}})}e.exports={ALLOWED_JOB_TAGS:s,JOB_RICH_TEXT_FIELDS:i,MAX_JOB_RICH_TEXT_LENGTH:2e5,getJobRichTextValidationError:function(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;for(let t of i)if(Object.prototype.hasOwnProperty.call(e,t)){if("string"!=typeof e[t])return"".concat(t," must be a string");if(e[t].length>2e5)return"".concat(t," must be ").concat(2e5," characters or fewer")}return null},sanitizeJobHtml:a,sanitizeJobRichTextFields:function(e){if(!e||"object"!=typeof e||Array.isArray(e))return e;let t={...e};return i.forEach(e=>{Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=a(t[e]))}),t}}},19977:()=>{},21866:()=>{},34607:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>L});var l=r(46972),i=r(34992),s=r(25419),a=r(18564),n=r(89291),o=r(48717),d=r(1547),c=r(94553),u=r(16712),m=r(87231),x=r(33069),h=r(39664),p=r(74990),b=r(4821);let{sanitizeJobHtml:f}=r.n(b)(),g={type:"spring",stiffness:420,damping:38,mass:.9},y=()=>(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)("div",{className:"w-6 h-6 border-2 border-gray-300 border-t-gray-600 rounded-full animate-spin"})}),v=e=>{let{message:t,onRetry:r}=e;return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center pt-16 pb-12 text-center",children:[(0,l.jsx)("div",{className:"w-12 h-12 rounded-full bg-red-50 text-red-500 flex items-center justify-center mb-4",children:(0,l.jsx)("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01M12 3.75a8.25 8.25 0 100 16.5 8.25 8.25 0 000-16.5z"})})}),(0,l.jsx)("p",{className:"text-base font-medium text-text-primary",children:"Could not submit application"}),(0,l.jsx)("p",{className:"text-sm text-text-secondary mt-1 max-w-sm",children:t||"Please check your details and try again."}),(0,l.jsx)("button",{onClick:r,className:"mt-5 px-3 py-1.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Back to form"})]})},C=e=>{let{isComplete:t,size:r=40}=e,i=r/40*3,s="#DDDDDD",a="#C7C7C7",n="#5BC68D",o="#4FA678";return(0,l.jsxs)(c.P.div,{className:"relative",style:{width:.8*r,height:r},animate:{rotate:t?180:[0,180,180,360,360]},transition:t?{duration:.4,ease:[.25,.46,.45,.94]}:{duration:2,ease:[.76,0,.24,1],times:[0,.3,.5,.8,1],repeat:1/0},children:[(0,l.jsxs)(c.P.svg,{viewBox:"0 0 102 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute inset-0 w-full h-full",animate:t?{x:0,y:0}:{x:[0,i,i,0,0],y:[0,-i,-i,0,0]},transition:t?{duration:.3,ease:"easeOut"}:{duration:2,ease:[.76,0,.24,1],times:[0,.3,.5,.8,1],repeat:1/0},children:[(0,l.jsx)(c.P.path,{d:"M57.7829 42.6572L57.7139 70.5908C57.7076 73.1181 59.8474 75.1037 62.3318 74.8761L88.272 72.4992C96.1921 71.7735 102.163 64.8895 101.855 56.8387C101.583 49.7067 96.4297 43.7367 89.4892 42.5123L63.3746 37.9
1054C60.4599 37.3912 57.7903 39.6598 57.7829 42.6572Z",animate:{fill:t?o:a},transition:{duration:.3,ease:"easeInOut"}}),(0,l.jsx)(c.P.path,{d:"M101.941 60.7388L101.839 58.0787C100.316 50.5854 87.1796 42.1361 29.5959 39.3374C25.8334 39.1545 22.8081 36.0998 22.6608 32.2865C22.2807 22.4489 21.96 14.2452 21.7005 7.49118C21.5416 3.35759 24.817 -0.0905158 28.899 0.00181218C73.664 1.01425 99.2958 11.9385 100.403 20.5889L101.839 58.0787C102.023 58.9832 102.038 59.8738 101.941 60.7388Z",animate:{fill:t?n:s},transition:{duration:.3,ease:"easeInOut"}})]}),(0,l.jsxs)(c.P.svg,{viewBox:"0 0 102 128",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute inset-0 w-full h-full",animate:t?{x:0,y:0}:{x:[0,-i,-i,0,0],y:[0,i,i,0,0]},transition:t?{duration:.3,ease:"easeOut"}:{duration:2,ease:[.76,0,.24,1],times:[0,.3,.5,.8,1],repeat:1/0},children:[(0,l.jsx)(c.P.path,{d:"M44.2171 85.3428L44.2861 57.4092C44.2924 54.8819 42.1526 52.8963 39.6682 53.1239L13.728 55.5008C5.80793 56.2265 -0.163004 63.1105 0.144649 71.1613C0.417194 78.2933 5.57032 84.2633 12.5108 85.4877L38.6254 90.0946C41.5401 90.6088 44.2097 88.3402 44.2171 85.3428Z",animate:{fill:t?o:a},transition:{duration:.3,ease:"easeInOut"}}),(0,l.jsx)(c.P.path,{d:"M0.0588962 67.2612L0.160797 69.9213C1.68442 77.4146 14.8204 85.8639 72.4041 88.6626C76.1666 88.8455 79.1919 91.9002 79.3392 95.7135C79.7193 105.551 80.0401 113.755 80.2996 120.509C80.4584 124.642 77.183 128.091 73.101 127.998C28.336 126.986 2.70416 116.061 1.59701 107.411L0.160797 69.9213C-0.0231109 69.0168 -0.0378267 68.1262 0.0588962 67.2612Z",animate:{fill:t?n:s},transition:{duration:.3,ease:"easeInOut"}})]})]})},j=()=>(0,l.jsx)("div",{className:"bg-white border border-border-default shadow-sm rounded-lg p-3 pr-4",children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex-shrink-0 w-11 h-11 rounded-lg bg-neutral-100 animate-pulse"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 space-y-2",children:[(0,l.jsx)("div",{className:"h-5 bg-neutral-100 rounded animate-pulse w-48"}),(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"h-4 bg-neutral-100 rounded animate-pulse w-24"}),(0,l.jsx)("div",{className:"h-4 bg-neutral-100 rounded animate-pulse w-20"}),(0,l.jsx)("div",{className:"h-4 bg-neutral-100 rounded animate-pulse w-16"})]})]})]})}),(0,l.jsx)("div",{className:"flex-shrink-0 h-9 w-14 bg-neutral-100 rounded-md animate-pulse"})]})}),w=e=>{let{className:t}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M8 4.25C7.68617 4.25 7.40552 4.4454 7.29661 4.73972L6.78077 6.13378C6.08054 8.0261 5.79598 8.7489 5.27245 9.2725C4.74893 9.796 4.02612 10.0805 2.13378 10.7808L0.73972 11.2966C0.4454 11.4055 0.25 11.6862 0.25 12C0.25 12.3138 0.4454 12.5945 0.73972 12.7034L2.13378 13.2192C4.02612 13.9195 4.74893 14.204 5.27245 14.7275C5.79598 15.2511 6.08054 15.9739 6.78077 17.8662L7.29661 19.2603C7.40552 19.5546 7.68617 19.75 8 19.75C8.3138 19.75 8.5945 19.5546 8.7034 19.2603L9.2192 17.8662C9.9195 15.9739 10.204 15.2511 10.7275 14.7275C11.2511 14.204 11.9739 13.9195 13.8662 13.2192L15.2603 12.7034C15.5546 12.5945 15.75 12.3138 15.75 12C15.75 11.6862 15.5546 11.4055 15.2603 11.2966L13.8662 10.7808C11.9739 10.0805 11.2511 9.796 10.7275 9.2725C10.204 8.7489 9.9195 8.0261 9.2192 6.13378L8.7034 4.73972C8.5945 4.4454 8.3138 4.25 8 4.25Z",fill:"url(#paint0_linear_1599_7)"}),(0,l.jsx)("path",{d:"M16 0.25C15.6862 0.25 15.4055 0.4454 15.2966 0.73972L15.0755 1.33717C14.7618 2.18495 14.6705 2.38548 14.528 2.528C14.3855 2.67053 14.185 2.76183 13.3372 3.07553L12.7397 3.29661C12.4454 3.40552 12.25 3.68617 12.25 4C12.25 4.3138 12.4454 4.5945 12.7397 4.7034L13.3372 4.92447C14.185 5.23817 14.3855 5.32947 14.528 5.47199C14.6705 5.61452 14.7618 5.81505 15.0755 6.66283L15.2966 7.26028C15.4055 7.5546 15.6862 7.75 16 7.75C16.3138 7.75 16.5945 7.5546 16.7034 7.26028L16.9245 6.66283C17.2382 5.81505 17.3295 5.61452 17.472 5.47199C17.6145 5.32947 17.8151 5.23817 18.6628 4.92447L19.2603 4.7034C19.5546 4.5945 19.75 4.3138 19.75 4C19.75 3.68617 19.5546 3.40552 19.2603 3.29661L18.6628 3.07553C17.8151 2.76183 17.6145 2.67053 17.472 2.528C17.3295 2.38548 17.2382 2.18495 16.9245 1.33717L16.7034 
10.73972C16.5945 0.4454 16.3138 0.25 16 0.25Z",fill:"url(#paint1_linear_1599_7)"}),(0,l.jsxs)("defs",{children:[(0,l.jsxs)("linearGradient",{id:"paint0_linear_1599_7",x1:"16",y1:"0.249999",x2:"7.5",y2:"16",children:[(0,l.jsx)("stop",{stopColor:"#64E9A2"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB169"})]}),(0,l.jsxs)("linearGradient",{id:"paint1_linear_1599_7",x1:"16",y1:"0.249999",x2:"7.5",y2:"16",children:[(0,l.jsx)("stop",{stopColor:"#64E9A2"}),(0,l.jsx)("stop",{offset:"1",stopColor:"#2AB169"})]})]})]})},N=e=>{let{className:t}=e;return(0,l.jsx)("svg",{className:t,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})},k=e=>{let{className:t}=e;return(0,l.jsx)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C7.58172 2 4 5.58172 4 10C4 12.4912 5.23569 14.7284 6.87121 16.5102C7.68116 17.3925 8.5726 18.1576 9.37221 18.8016C9.77269 19.1241 10.1497 19.4138 10.4815 19.662C10.8132 19.9103 11.1452 20.1564 11.4284 20.3608C11.7709 20.6072 12.2291 20.6072 12.5716 20.3608C12.8548 20.1564 13.1868 19.9103 13.5185 19.662C13.8503 19.4138 14.2273 19.1241 14.6278 18.8016C15.4274 18.1576 16.3188 17.3925 17.1288 16.5102C18.7643 14.7284 20 12.4912 20 10C20 5.58172 16.4183 2 12 2ZM12 12.5C13.3807 12.5 14.5 11.3807 14.5 10C14.5 8.61929 13.3807 7.5 12 7.5C10.6193 7.5 9.5 8.61929 9.5 10C9.5 11.3807 10.6193 12.5 12 12.5Z"})})},L=e=>{var t,r;let{companySlug:b}=e,L=(0,n.g)(),A=b||L.companySlug||(0,o.x)(),[_,S]=(0,i.useState)([]),[E,V]=(0,i.useState)(null),[M,B]=(0,i.useState)(!0),[P,D]=(0,i.useState)(null),[q,F]=(0,i.useState)(""),[O,T]=(0,i.useState)(!1),[R,z]=(0,i.useState)(""),[I,H]=(0,i.useState)(null),[U,Z]=(0,i.useState)(!1),[W,J]=(0,i.useState)(!1),[Q,G]=(0,i.useState)(!1),[Y,$]=(0,i.useState)({}),[X,K]=(0,i.useState)({}),[ee,et]=(0,i.useState)("idle"),[er,el]=(0,i.useState)(""),[ei,es]=(0,i.useState)("idle"),[ea,en]=(0,i.useState)(null),[eo,ed]=(0,i.useState)({}),[ec,eu]=(0,i.useState)(!1),[em,ex]=(0,i.useState)(!1),[eh,ep]=(0,i.useState)(null),[eb,ef]=(0,i.useState)(!1),eg=(0,i.useRef)(null),ey=(0,i.useRef)(null),ev=(0,i.useRef)(null),eC=(0,i.useRef)(null),ej=(0,i.useRef)(null),ew=(0,i.useRef)(null),eN=(0,i.useMemo)(()=>f(null==I?void 0:I.description),[null==I?void 0:I.description]);(0,i.useEffect)(()=>{let e=window.matchMedia("(min-width: 1024px)"),t=()=>ex(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,i.useEffect)(()=>{I&&ef(!0)},[I]),(0,i.useEffect)(()=>{if(!I||!em)return void ep(null);let e=null,t=()=>{var e,t;let r=(null==(e=ej.current)?void 0:e.getBoundingClientRect())||(null==(t=ew.current)?void 0:t.getBoundingClientRect());r&&ep({top:r.top,left:r.left,width:r.width,height:window.innerHeight-r.top-12})};return e=requestAnimationFrame(t),window.addEventListener("resize",t),()=>{e&&cancelAnimationFrame(e),window.removeEventListener("resize",t)}},[I,em,_.length,q,ei]),(0,i.useEffect)(()=>{let e=e=>{eg.current&&!eg.current.contains(e.target)&&T(!1)},t=e=>{"Escape"===e.key&&(I?H(null):O&&(T(!1),z("")))};return O&&document.addEventListener("mousedown",e),document.addEventListener("keydown",t),O&&setTimeout(()=>{var e;return null==(e=ey.current)?void 0:e.focus()},50),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[O,I]),(0,i.useEffect)(()=>{let e=ew.current;if(M)return;let t=null,r=()=>{if(!window.matchMedia("(min-width: 1024px)").matches){let e=document.scrollingElement||document.documentElement,t=window.scrollY||e.scrollTop||0;eu(e.scrollHeight>window.innerHeight+50&&e.scrollHeight-t-window.innerHeight<50);return}if(!e)return void eu(!1);eu(e.scrollHeight>e.clientHeight+50&&e.scrollHeight-e.scrollTop-e.clientHeight<50)},l=()=>{t&&cancelAnimationFrame(t),t=requestAnimationFrame(r)};return r(),null==e||e.addEventListener("scroll",l),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",r),()=>{t&&cancelAnimationFrame(t),null==e||e.removeEventListener("scroll",l),window.removeEventListener("scroll",l),window.removeEventListener("resize",r)}},[M,_.length,q,ei,eo]),(0,i.useEffect)(()=>{Z(!1),J(!1),G(!1),$({}),K({}),et("idle"),el("");
1let e=[ev.current,eC.current].filter(Boolean);if(0===e.length)return;let t=()=>Z(e.some(e=>e.scrollTop>0));return e.forEach(e=>e.addEventListener("scroll",t)),()=>e.forEach(e=>e.removeEventListener("scroll",t))},[I]);let ek=async()=>{if(I)try{let e=new URL(window.location.href);e.searchParams.set("job",I.id),await navigator.clipboard.writeText(e.toString()),G(!0),setTimeout(()=>G(!1),1800)}catch(e){console.error("Failed to copy job link:",e)}};(0,i.useEffect)(()=>{if(!(null==E?void 0:E.companyName))return;let e=document.title;return document.title=(null==I?void 0:I.title)?"".concat(I.title," – ").concat(E.companyName):"Jobs – ".concat(E.companyName),()=>{document.title=e}},[null==E?void 0:E.companyName,null==I?void 0:I.title]),(0,i.useEffect)(()=>{let e=Array.from(document.querySelectorAll("link[rel~='icon'], link[rel='apple-touch-icon']")),t=e.map(e=>({el:e,href:e.getAttribute("href"),type:e.getAttribute("type"),sizes:e.getAttribute("sizes")})),r=null;(null==E?void 0:E.logoUrl)&&(0===e.length&&((r=document.createElement("link")).rel="icon",document.head.appendChild(r),e=[r]),e.forEach(e=>{e.setAttribute("href",E.logoUrl),e.removeAttribute("type"),e.removeAttribute("sizes")}));let l=(e,t)=>{let r=document.querySelector('meta[property="'.concat(e,'"]'));return r||((r=document.createElement("meta")).setAttribute("property",e),document.head.appendChild(r)),r.setAttribute("content",t),r},i=[];return(null==E?void 0:E.companyName)&&i.push(l("og:title","Jobs – ".concat(E.companyName))),(null==E?void 0:E.headline)&&i.push(l("og:description",E.headline)),(null==E?void 0:E.ogImageUrl)&&i.push(l("og:image",E.ogImageUrl)),()=>{t.forEach(e=>{let{el:t,href:r,type:l,sizes:i}=e;r&&t.setAttribute("href",r),l&&t.setAttribute("type",l),i&&t.setAttribute("sizes",i)}),r&&r.remove(),i.forEach(e=>null==e?void 0:e.remove())}},[null==E?void 0:E.companyName,null==E?void 0:E.logoUrl,null==E?void 0:E.headline,null==E?void 0:E.ogImageUrl]);let eL=async()=>{if(!I)return;et("loading"),el("");let e=Date.now();try{let t=await fetch("/api/jobs/submitApplication",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jobId:I.id,companyId:I.companyId,applicationData:{name:Y._name,email:Y._email,linkedinUrl:Y._linkedin,answers:Y,questionsVersion:I.questionsVersion}})}),r=Date.now()-e;if(r<2e3&&await new Promise(e=>setTimeout(e,2e3-r)),!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.message||e.error||"Failed to submit application")}et("success")}catch(e){console.error("Error submitting application:",e),el(e.message||"Failed to submit application. Please try again."),et("error")}},eA=async()=>{if(!R.trim())return;T(!1),es("loading"),en(null);let e=Date.now();try{let t=await fetch("/api/jobs/matchLinkedInProfile",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({linkedinUrl:R.trim(),jobs:_.map(e=>({id:e.id,title:e.title,description:e.description,location:e.location,employmentType:e.employmentType,salaryRange:e.salaryRange}))})}),r=Date.now()-e;if(r<2e3&&await new Promise(e=>setTimeout(e,2e3-r)),!t.ok){let e=await t.json().catch(()=>({}));throw Error(e.message||"Failed to match profile")}let l=(await t.json()).matches||{},i=_.some(e=>{var t;return(null==(t=l[e.id])?void 0:t.score)>=70});ed(l),es(i?"results":"no-matches")}catch(r){console.error("Error matching profile:",r);let t=Date.now()-e;t<2e3&&await new Promise(e=>setTimeout(e,2e3-t)),en("Couldn't match profile"),es("error")}},e_=()=>{es("idle"),ed({}),z(""),en(null)},eS=(0,i.useMemo)(()=>{var e,t,r;let l=(null==(e=Y._name)?void 0:e.trim().length)>0,i=(null==(t=Y._email)?void 0:t.trim().length)>0,s=(null==(r=Y._linkedin)?void 0:r.trim().length)>0;return!!l&&!!i&&!!s&&(null==I||!I.applicationQuestions||I.applicationQuestions.filter(e=>e.required&&!e.isDefault).every(e=>{var t;return(null==(t=Y[e.id])?void 0:t.trim().length)>0}))},[I,Y]),eE=e=>{var t;!e.required||(null==(t=Y[e.id])?void 0:t.trim())?K(t=>({...t,[e.id]:null})):K(t=>({...t,[e.id]:"This field is required"}))},eV=(0,i.useMemo)(()=>"results"===ei&&Object.keys(eo).length>0?_.filter(e=>{var t;
1return(null==(t=eo[e.id])?void 0:t.score)>=70}).sort((e,t)=>{var r,l;return((null==(r=eo[t.id])?void 0:r.score)||0)-((null==(l=eo[e.id])?void 0:l.score)||0)}):((e,t)=>{if(!t.trim())return e;let r=t.toLowerCase().trim();return e.filter(e=>{let t=(e.title||"").toLowerCase(),l=(0,p.ud)(e).toLowerCase(),i="".concat(t," ").concat(l).trim();if(i.includes(r))return!0;let s=r.split(/\s+/).filter(e=>e.length>0);if(s.every(e=>i.includes(e)))return!0;let a=i.split(/\s+/);return!!s.every(e=>a.some(t=>t.startsWith(e)))})})(_,q),[_,q,ei,eo]),eM=(0,i.useMemo)(()=>(0,p.qV)(eV,{enabled:"results"!==ei}),[eV,ei]);(0,i.useEffect)(()=>{if(!A){D("No company specified."),B(!1);return}(async()=>{B(!0),D(null);try{let[e,t]=await Promise.all([(async()=>{let e=(0,a.collection)(s.db,"Jobs"),t=(0,a.P)(e,(0,a._M)("companySlug","==",A),(0,a._M)("status","==","Published")),r=(await (0,a.GG)(t)).docs.map(e=>{let t=e.data(),r=(0,p.lp)(t).map(e=>({id:e.id,question:e.text,subheading:e.subheading,placeholder:e.placeholder,required:e.required,isDefault:e.isDefault}));return{id:e.id,...t,applicationQuestions:r,questionsVersion:(0,p.PR)(t)}});return(0,p.bU)(r)})(),(async()=>{let e=(0,a.doc)(s.db,"Companies",A),t=await (0,a.x7)(e);return t.exists()?t.data():null})()]);S(e),V(t)}catch(e){console.error("Error fetching job board data:",e),D("Failed to load job board. Please try again later.")}finally{B(!1)}})()},[A]),(0,i.useEffect)(()=>{if(_.length>0){let e=new URLSearchParams(window.location.search).get("job");if(e){let t=_.find(t=>t.id===e);t&&H(t)}}},[_]),(0,i.useEffect)(()=>{let e=new URLSearchParams(window.location.search),t=e.get("job");if(I)t!==I.id&&(e.set("job",I.id),window.history.replaceState(null,"","?".concat(e.toString())));else if(t&&!M){e.delete("job");let t=e.toString()?"?".concat(e.toString()):window.location.pathname;window.history.replaceState(null,"",t)}},[I,M]);let eB=(null==E?void 0:E.primaryColor)||"#5FC890",eP=(null==E?void 0:E.secondaryColor)||"#4A4A4A";return M?(0,l.jsx)("div",{className:"fixed inset-0 flex flex-col bg-white",children:(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"text-center",children:[(0,l.jsx)(y,{}),(0,l.jsx)("p",{className:"mt-4 text-gray-500",children:"Loading job board..."})]})})}):P?(0,l.jsx)("div",{className:"fixed inset-0 flex flex-col bg-white",children:(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"text-center max-w-md px-4",children:[(0,l.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-red-100 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,l.jsx)("h1",{className:"text-xl font-semibold text-gray-700 mb-2",children:"Something went wrong"}),(0,l.jsx)("p",{className:"text-gray-500 mb-6",children:P}),(0,l.jsx)("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 bg-gray-800 text-white rounded-md hover:bg-gray-700 transition-colors",children:"Try Again"})]})})}):E?(0,l.jsxs)("div",{className:"min-h-screen flex justify-center bg-white lg:fixed lg:inset-0 lg:overflow-hidden lg:overscroll-none",style:{"--brand":eB},children:[(0,l.jsxs)("div",{className:"flex min-h-screen w-full lg:h-full lg:min-h-0 lg:w-auto",children:[(0,l.jsxs)(c.P.div,{className:"flex min-h-screen w-full flex-col lg:h-full lg:min-h-0 lg:w-[50vw] lg:min-w-[600px] lg:overflow-hidden lg:will-change-transform",style:{cursor:I&&em?"pointer":"default",transformOrigin:"center top"},animate:I&&em?{opacity:.28,scale:.97,y:-10}:{opacity:1,scale:1,y:0},transition:g,onClick:()=>I&&em&&H(null),children:[(0,l.jsx)("div",{className:"bg-white pt-4 px-4 lg:pt-8 lg:px-8 flex-shrink-0",children:(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{ref:ej,className:"border border-border-default shadow-sm rounded-lg overflow-hidden",children:[(0,l.jsxs)("div",{className:"relative",children:[(null==E?void 0:E.heroImageUrl)?(0,l.jsx)("div",{className:"h-24 md:h-28 w-full bg-cover bg-center relative",style:{backgroundImage:"url(".concat(E.heroImageUrl,")")}}):(0,l.jsx)("div",{className:"h-24 md:h-28 w-full",style:{backgroundColor:eB,opacity:.2}}),(null==E?void 0:E.logoUrl)&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute bottom-0 w-2 h-2",style:{left:"calc(1.5rem - 8px)",background:"radial-gradient(circle at 0% 0%, transparent 8px, white 8px)"}}),(0,l.jsx)("div",{className:"absolute bottom-0 w-2 h-2",style:{left:"calc(1.5rem + 80px)",background:"radial-gradient(circle at 100% 0%, transparent 8px, white 8px)"}}),(0,l.jsx)("div",{className:"absolute left-6 -bottom-10 z-10",children:(0,l.jsx)("div",{className:"bg-white rounded-xl p-2",children:(0,l.jsx)("img",{src:E.logoUrl,alt:"".concat(E.companyName||A," logo"),className:"h-16 w-16 object-contain rounded-lg"})})})]})]}),(null==E?void 0:E.website)&&(0,l.jsx)("div",{className:"flex justify-end pl-6 pr-4 pt-4 bg-white",children:(0,l.jsx)("a",{href:E.website.startsWith("http")?E.website:"https://".concat(E.website),target:"_blank",rel:"noopener noreferrer",className:"shadow-sm border border-border-default text-text-primary rounded-md px-3 py-1.5 text-sm font-medium hover:bg-gray-50 transition-colors",children:E.website.replace(/^https?:\/\/(www\.)?/,"").replace(/\/$/,"")})}),(0,l.jsxs)("header",{className:"pb-6 px-6 pl-8 bg-white",children:[(0,l.jsx)("h1",{className:"text-2xl font-semibold",style:{color:eP}
1,children:(null==E?void 0:E.companyName)||A}),(null==E?void 0:E.headline)&&(0,l.jsx)("p",{className:"mt-1 text-base text-gray-600 max-w-2xl",children:E.headline})]})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-2 my-4",children:[(0,l.jsx)("div",{className:"relative flex-1 lg:flex-none lg:w-48",children:(0,l.jsx)("div",{className:"border border-border-default rounded-sm bg-white transition-all duration-200 ".concat("idle"!==ei?"opacity-50":"hover:border-primary-green focus-within:border-primary-green"),children:(0,l.jsxs)("div",{className:"flex items-center px-2",children:[(0,l.jsx)(N,{className:"w-4 h-4 text-text-secondary"}),(0,l.jsx)("input",{type:"text",placeholder:"Search jobs...",value:q,onChange:e=>F(e.target.value),disabled:"idle"!==ei,className:"w-full pl-2 pr-2 py-1.5 text-text-primary text-sm focus:outline-none bg-transparent disabled:cursor-not-allowed"})]})})}),(0,l.jsx)("div",{className:"hidden lg:flex items-center border border-border-default bg-bg-default rounded-md px-3 py-1.5",children:(0,l.jsx)("span",{className:"text-xs text-neutral-500",children:"results"===ei?"".concat(eV.length," match").concat(1!==eV.length?"es":""," found"):"loading"===ei?"Finding matches...":"".concat(_.length," open position").concat(1!==_.length?"s":"")})}),(0,l.jsxs)("div",{className:"relative",ref:eg,children:["results"===ei?(0,l.jsxs)("button",{onClick:e_,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-text-primary bg-white border border-border-default rounded-md hover:bg-bg-hover transition-colors shadow-sm",children:[(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Show all jobs"]}):"error"===ei?(0,l.jsxs)("button",{onClick:e_,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-text-secondary bg-bg-default border border-border-default rounded-md hover:bg-bg-hover transition-colors shadow-sm",children:[(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"Couldn't match profile"]}):"no-matches"===ei?(0,l.jsxs)("button",{onClick:e_,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-text-secondary bg-bg-default border border-border-default rounded-md hover:bg-bg-hover transition-colors shadow-sm",children:[(0,l.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),"No matches found"]}):"loading"===ei?(0,l.jsxs)("button",{disabled:!0,className:"flex items-center gap-2 px-3 py-1.5 text-sm text-text-secondary bg-bg-default border border-border-default rounded-md shadow-sm cursor-not-allowed",children:[(0,l.jsx)("div",{className:"w-4 h-4 border-2 border-neutral-300 border-t-neutral-500 rounded-full animate-spin"}),"Finding matches..."]}):(0,l.jsxs)("button",{onClick:()=>T(!O),className:"flex items-center gap-2 px-3 py-1.5 text-sm text-text-primary bg-white border border-border-default rounded-md hover:bg-bg-hover transition-colors shadow-sm",children:[(0,l.jsx)(w,{className:"w-4 h-4"}),"Find the best fits"]}),(0,l.jsx)(u.N,{children:O&&(0,l.jsxs)(c.P.div,{initial:{opacity:0,y:-4,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-4,scale:.95},transition:{duration:.15,ease:[.4,0,.2,1]},className:"absolute right-0 top-full mt-2 z-20 min-w-[280px] shadow-sm bg-bg-default border border-border-default rounded-md",children:[(0,l.jsx)("div",{className:"bg-white rounded-md outline outline-1 outline-border-default shadow-sm",children:(0,l.jsx)("div",{className:"p-2",children:(0,l.jsx)("input",{ref:ey,type:"text",placeholder:"Paste your LinkedIn URL...",value:R,onChange:e=>z(e.target.value),className:"w-full pl-2 pr-1 py-1.5 text-text-primary text-sm focus:outline-none border border-border-default rounded-sm duration-200 transition-all focus:border-primary-green",onKeyDown:e=>{"Enter"===e.key&&R.trim()&&(e.preventDefault(),eA())}})})}),(0,l.jsx)("div",{className:"py-2 px-2",children:(0,l.jsx)("div",{className:"flex justify-end items-center",children:(0,l.jsx)("button",{onClick:eA,disabled:!R.trim(),className:"text-xs cursor-pointer py-1.5 px-2.5 rounded-sm duration-200 shadow-sm bg-white border border-border-default text-text-primary hover:bg-bg-default disabled:opacity-50 disabled:cursor-not-allowed",children:"Find"})})})]})})]})]})]})}),(0,l.jsx)("main",{className:"w-full bg-white px-4 pb-28 lg:flex lg:flex-1 lg:flex-col lg:min-h-0 lg:overflow-hidden lg:px-8 lg:pb-0",children:(0,l.jsx)("div",{className:"w-full lg:flex lg:flex-1 lg:min-h-0 lg:flex-col lg:overflow-hidden",children:(0,l.jsx)("div",{ref:ew,className:"bg-bg-default border border-border-default rounded-lg p-3 pb-4 shadow-sm space-y-3 lg:flex-1 lg:overflow-y-auto lg:overscroll-none lg:rou
1nded-b-none lg:border-b-0 lg:pb-28",children:(0,l.jsx)(u.N,{mode:"wait",children:"loading"===ei?(0,l.jsx)(c.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"space-y-3",children:[1,2,3].map(e=>(0,l.jsx)(j,{},"skeleton-".concat(e)))},"skeletons"):0===eV.length?(0,l.jsx)(c.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"flex items-center justify-center pt-48",children:(0,l.jsx)("p",{className:"text-sm text-text-secondary",children:"results"===ei?"No matching jobs found for your profile":q?"No matches found":"No jobs active"})},"empty-state"):(0,l.jsx)(c.P.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"space-y-5",children:eM.map(e=>(0,l.jsxs)("div",{className:"space-y-3",children:[e.label&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-1 pt-1",children:[(0,l.jsx)("h2",{className:"text-sm font-medium text-text-secondary",children:e.label}),(0,l.jsx)("span",{className:"text-xs text-text-secondary",children:e.jobs.length})]}),e.jobs.map(e=>{let t=e.iconBgColor||(e.iconColor?(e=>{try{let t=parseInt(e.slice(1,3),16),r=parseInt(e.slice(3,5),16),l=parseInt(e.slice(5,7),16),i=Math.round(t+(255-t)*.85),s=Math.round(r+(255-r)*.85),a=Math.round(l+(255-l)*.85);return"rgb(".concat(i,", ").concat(s,", ").concat(a,")")}catch(e){return"#EAF7ED"}})(e.iconColor):"#EAF7ED"),r=e.iconColor||"#5BC68D";return(0,l.jsx)("div",{onClick:()=>H(e),className:"bg-white border border-border-default shadow-sm rounded-lg p-3 pr-4 hover:bg-bg-default transition-colors cursor-pointer",children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex-1 min-w-0",children:(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"flex-shrink-0 w-11 h-11 rounded-lg flex items-center justify-center",style:{backgroundColor:t},children:(0,l.jsx)("div",{className:"w-6 h-6 [&>svg]:w-full [&>svg]:h-full",children:e.iconId?(0,m.oE)(e.iconId,r):(0,l.jsxs)("svg",{style:{color:r},fill:"currentColor",viewBox:"0 0 20 20",children:[(0,l.jsx)("path",{fillRule:"evenodd",d:"M6 6V5a3 3 0 013-3h2a3 3 0 013 3v1h2a2 2 0 012 2v3.57A22.952 22.952 0 0110 13a22.95 22.95 0 01-8-1.43V8a2 2 0 012-2h2zm2-1a1 1 0 011-1h2a1 1 0 011 1v1H8V5zm1 5a1 1 0 011-1h.01a1 1 0 110 2H10a1 1 0 01-1-1z",clipRule:"evenodd"}),(0,l.jsx)("path",{d:"M2 13.692V16a2 2 0 002 2h12a2 2 0 002-2v-2.308A24.974 24.974 0 0110 15c-2.796 0-5.487-.46-8-1.308z"})]})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:e.title}),"results"===ei&&eo[e.id]&&(0,l.jsxs)("span",{className:"flex items-center gap-1 px-1.5 py-0.5 bg-green-50 rounded-sm",children:[(0,l.jsx)(w,{className:"w-3 h-3"}),(0,l.jsxs)("span",{className:"text-[11px] font-medium text-primary-green",children:[eo[e.id].score,"%"]})]})]}),(0,l.jsx)("div",{className:"mt-1 text-sm text-text-secondary overflow-hidden",children:(0,l.jsxs)("div",{className:"flex items-center gap-3 whitespace-nowrap",style:{WebkitMaskImage:"linear-gradient(to right, black calc(100% - 24px), transparent 100%)",maskImage:"linear-gradient(to right, black calc(100% - 24px), transparent 100%)"},children:[e.location&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)(k,{className:"w-4 h-4 text-neutral-400 flex-shrink-0"}),e.location]}),e.salaryRange&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full flex-shrink-0",children:(0,m.oE)(25,"currentColor")}),e.salaryRange]}),(0,l.jsxs)("span",{className:"hidden lg:flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full flex-shrink-0",children:(0,m.oE)(12,"currentColor")}),e.employmentType||"Full-time"]})]})})]})]})}),(0,l.jsx)("div",{className:"hidden lg:block flex-shrink-0 px-4 py-2 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm",children:"View"})]})},e.id)})]},e.key))},"results"===ei?"results":"jobs")})})})})]}),(0,l.jsx)(u.N,{onExitComplete:()=>ef(!1),children:I&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"lg:hidden fixed inset-0 z-50 bg-white flex flex-col overscroll-none",children:[(0,l.jsxs)("div",{className:"flex-shrink-0 bg-white p-4 flex items-center justify-between z-10 border-b transition-colors duration-200 ".concat(U?"border-border-default":"border-transparent"),children:[(0,l.jsx)("button",{onClick:()=>H(null),className:"px-3 py-1.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Back"}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(0,l.jsx)("button",{type:"button",onClick:ek,className:"border border-border-default bg-white rounded-md p-2 flex items-center justify-center text-text-secondary hover:bg-bg-hover hover:text-text-primary transition-colors duration-200 ".concat(e),"aria-label":Q?"Job link copied":"Copy job link",children:(0,l.jsxs)("span",{className:"relative inline-flex w-4 h-4 items-center justify-center",children:[(0,l.jsx)(x.A,{size:16,variant:"solid",color:"currentColor",className:"absolute inset-0 flex items-center justify-center transition-all duration-200 ".concat(Q?"opacity-0 blur-sm scale-75":"opacity-100 blur-0 scale-100")}),(0,l.jsx)(h.A,{size:16,variant:"solid",color:"currentColor",className:"absolute inset-0 flex items-center justify-center transition-all duration-200 ".concat(Q?"opacity-100 blur-0 scale-100":"opacity-0 blur-sm scale-75")})]})})}()]}),(0,l.jsxs)("div",{ref:ev,onScroll:e=>Z(e.currentTarget.scrollTop>0),className:"flex-1 overflow-y-auto overscroll-none no-scrollbar px-4 pb-8 pt-2",children:[(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)("h2",{className:"text-xl font-semibold mb-2",style:{color:eP},children:I.title}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-2 text-sm text-text-secondary",children:[I.location&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)(k,{className:"w-4 h-4 text-neutral-400"}),I.location]}),I.salaryRange&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full",children:(0,m.oE)(25,"currentColor")}),I.salaryRange]}),(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full",children:(0,m.oE)(12,"currentColor")}),I.employmentType||"Full-time"]})]})]}),(0,l.jsx)(u.N,{mode:"wait",children:W?(0,l.jsx)(c.P.div,{initial:{opacity:0,x:12},animate:{opacity:1,x:0,transition:{duration:.18,ease:[.4,0,.2,1]}},exit:{opacity:0,x:12,transition:{duration:.12,ease:[.4,0,1,1]}},children:(0,l.jsx)(u.N,{mode:"wait",children:"idle"===ee?(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["Full Name",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"text",value:Y._name||"",onChange:e=>$(t=>({...t,_name:e.target.value})),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border border-border-default rounded-md focus:outline-none focus:border-primary-green",placeholder:"John Doe"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["Email",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"email",value:Y._email||"",onChange:e=>$(t=>({...t,_email:e.target.value})),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border border-border-default rounded-md focus:outline-none focus:border-primary-green",placeholder:"[email protected]"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["LinkedIn URL",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"url",value:Y._linkedin||"",onChange:e=>$(t=>({...t,_linkedin:e.target.value})),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border border-border-default rounded-md focus:outline-none focus:border-primary-green",placeholder:"https://linkedin.com/in/johndoe"})]}),null==(t=I.applicationQuestions)?void 0:t.filter(e=>!e.isDefault).map((e,t)=>{var r;let i=null==(r=e.question)?void 0:r.toLowerCase().includes("url");return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:[e.question,e.required&&(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),e.subheading&&(0,l.jsx)("p",{className:"text-xs text-text-secondary mb-2",children:e.subheading}),i?(0,l.jsx)("input",{type:"url",value:Y[e.id]||"",onChange:t=>$(r=>({...r,[e.id]:t.target.value})),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border border-border-default rounded-md focus:outline-none focus:border-primary-green",placeholder:e.placeholder||"https://..."}):(0,l.jsx)("textarea",{value:Y[e.id]||"",onChange:t=>$(r=>({...r,[e.id]:t.target.value})),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border border-border-default rounded-md focus:outline-none focus:border-primary-green resize-none",rows:3,placeholder:e.placeholder||"Your answer..."})]},e.id||t)}),(0,l.jsxs)("div",{className:"pt-4 pb-12 flex gap-3",children:[(0,l.jsx)("button",{onClick:()=>J(!1),className:"flex-1 py-2.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm",children:"Back"}),(0,l.jsx)("button",{disabled:!eS,onClick:eL,className:"flex-1 py-2.5 text-sm font-medium rounded-md bg-primary-green text-white disabled:bg-bg-default disabled:border disabled:border-border-default disabled:text-text-secondary disabled:cursor-not-allowed",children:"Submit"})]})]})},"form"):"error"===ee?(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},children:(0,l.jsx)(v,{message:er,onRetry:()=>et("idle")})},"submit-error"):(0,l.jsxs)(c.P.div,{initial:{opacity:0},animate:{opacity:1},className:"flex flex-col items-center justify-center pt-16 pb-8",children:[(0,l.jsx)(C,{isComplete:"success"===ee,size:48}),(0,l.jsx)(c.P.p,{initial:{opacity:0},animate:{opacity:+("success"===ee)},className:"text-base text-text-secondary mt-5",children:"Application submitted successfully"})]},"loading-success")})},"application"):(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:-12},animate:{opacity:1,x:0,transition:{duration:.18,ease:[.4,0,.2,1]}},exit:{opacity:0,x:-12,transition:{duration:.12,ease:[.4,0,1,1]}},children:[I.description&&(0,l.jsx)("div",{className:"prose prose-sm max-w-none text-gray-600 [&>p]:mb-4 [&>ul]:mb-4 [&>ol]:mb-4 [&>h1]:mb-3 [&>h2]:mb-3 [&>h3]:mb-2 [&>h4]:mb-2 [&>ul]:list-disc [&>ul]:pl-5 [&>ol]:list-decimal [&>ol]:pl-5 [&_li]:mb-1",dangerouslySetInnerHTML:{__html:eN}}),(0,l.jsx)("div",{className:"mt-6 pb-12",children:(0,l.jsx)("button",{onClick:()=>J(!0),className:"w-full py-2.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Apply for this position"})})]},"description")})]})]}),(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.16,ease:[.4,0,.2,1]},className:"hidden lg:block fixed inset-0 z-40 bg-white/70",onMouseDown:()=>H(null),children:eh&&(0,l.jsx)(c.P.div,{initial:{opacity:.92,scale:.985,y:64},animate:{opacity:1,scale:1,y:0},exit:{opacity:.88,scale:.985,y:48},transition:g,className:"fixed flex flex-col overflow-hidden rounded-t-lg border border-b-0 border-border-default bg-white shadow-none",style:{top:eh.top,left:eh.left,width:eh.width,height:eh.height},onMouseDown:e=>e.stopPropagation(),children:(0,l.jsxs)("div",{ref:eC,onScroll:e=>Z(e.currentTarget.scrollTop>0),className:"flex-1 bg-white overflow-y-auto no-scrollbar",children:[(0,l.jsxs)("div",{className:"sticky top-0 bg-white p-4 flex items-center justify-between z-10 rounded-t-lg border-b transition-colors duration-200 ".concat(U?"border-border-default":"border-transparent"),children:[(0,l.jsx)("button",{onClick:()=>H(null),className:"px-3 py-1.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Back"}),!W&&(0,l.jsx)("button",{type:"button",onClick:()=>J(!0),className:"px-3 py-1.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Apply"})]}),(0,l.jsxs)("div",{className:"px-6 pb-6 pt-2",children:[(0,l.jsxs)("div",{className:"mb-6",children:[(0,l.jsx)("h2",{id:"job-detail-title",className:"text-2xl font-semibold mb-2",style:{color:eP},children:I.title}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3 text-sm text-text-secondary",children:[I.location&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)(k,{className:"w-4 h-4 text-neutral-400"}),I.location]}),I.salaryRange&&(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full",children:(0,m.oE)(25,"currentColor")}),I.salaryRange]}),(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsx)("span",{className:"w-4 h-4 text-neutral-400 [&>svg]:w-full [&>svg]:h-full",children:(0,m.oE)(12,"currentColor")}),I.employmentType||"Full-time"]})]}),"results"===ei&&eo[I.id]&&(0,l.jsxs)("div",{className:"mt-4 px-3 py-1.5 bg-green-50 rounded-md flex items-start gap-2",children:[(0,l.jsx)(w,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),(0,l.jsx)("p",{className:"text-sm text-primary-green",children:eo[I.id].reason})]})]}),(0,l.jsx)(u.N,{mode:"wait",children:W?(0,l.jsx)(c.P.div,{initial:{opacity:0,x:12},animate:{opacity:1,x:0,transition:{duration:.18,ease:[.4,0,.2,1]}},exit:{opacity:0,x:12,transition:{duration:.12,ease:[.4,0,1,1]}},children:(0,l.jsx)(u.N,{mode:"wait",children:"idle"===ee?(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0,transition:{duration:.15}},children:(0,l.jsxs)("div",{className:"space-y-4",children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["Full Name",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"text",value:Y._name||"",onChange:e=>{$(t=>({...t,_name:e.target.value})),X._name&&K(e=>({...e,_name:null}))},className:"w-full px-3 py-2 text-sm text-text-primary bg-white border rounded-md focus:outline-none transition-all duration-200 ".concat(X._name?"border-red-500 focus:border-red-500":"border-border-default focus:border-primary-green hover:border-primary-green"),placeholder:"John Doe"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["Email",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"email",value:Y._email||"",onChange:e=>{$(t=>({...t,_email:e.target.value})),X._email&&K(e=>({...e,_email:null}))},className:"w-full px-3 py-2 text-sm text-text-primary bg-white border rounded-md focus:outline-none transition-all duration-200 ".concat(X._email?"border-red-500 focus:border-red-500":"border-border-default focus:border-primary-green hover:border-primary-green"),placeholder:"[email protected]"})]}),(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:["LinkedIn URL",(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),(0,l.jsx)("input",{type:"url",value:Y._linkedin||"",onChange:e=>{$(t=>({...t,_linkedin:e.target.value})),X._linkedin&&K(e=>({...e,_linkedin:null}))},className:"w-full px-3 py-2 text-sm text-text-primary bg-white border rounded-md focus:outline-none transition-all duration-200 ".concat(X._linkedin?"border-red-500 focus:border-red-500":"border-border-default focus:border-primary-green hover:border-primary-green"),placeholder:"https://linkedin.com/in/johndoe"})]}),null==(r=I.applicationQuestions)?void 0:r.filter(e=>!e.isDefault).map((e,t)=>{var r;let i=null==(r=e.question)?void 0:r.toLowerCase().includes("url");return(0,l.jsxs)("div",{children:[(0,l.jsxs)("label",{className:"block text-sm font-medium text-text-primary mb-1",children:[e.question,e.required&&(0,l.jsx)("span",{className:"text-red-500 ml-1",children:"*"})]}),e.subheading&&(0,l.jsx)("p",{className:"text-xs text-text-secondary mb-2",children:e.subheading}),i?(0,l.jsx)("input",{type:"url",value:Y[e.id]||"",onChange:t=>{$(r=>({...r,[e.id]:t.target.value})),X[e.id]&&K(t=>({...t,[e.id]:null}))},onBlur:()=>eE(e),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border rounded-md focus:outline-none transition-all duration-200 ".concat(X[e.id]?"border-red-500 focus:border-red-500":"border-border-default focus:border-primary-green hover:border-primary-green"),placeholder:e.placeholder||"https://..."}):(0,l.jsx)("textarea",{value:Y[e.id]||"",onChange:t=>{$(r=>({...r,[e.id]:t.target.value})),X[e.id]&&K(t=>({...t,[e.id]:null}))},onBlur:()=>eE(e),className:"w-full px-3 py-2 text-sm text-text-primary bg-white border rounded-md focus:outline-none transition-all duration-200 resize-none ".concat(X[e.id]?"border-red-500 focus:border-red-500":"border-border-default focus:border-primary-green hover:border-primary-green"),rows:3,placeholder:e.placeholder||"Your answer..."}),(0,l.jsx)("div",{className:"grid transition-all duration-200 ease-out",style:{gridTemplateRows:X[e.id]?"1fr":"0fr"},children:(0,l.jsx)("div",{className:"overflow-hidden",children:(0,l.jsx)("p",{className:"text-red-500 text-sm pt-1",children:X[e.id]})})})]},e.id||t)}),(0,l.jsxs)("div",{className:"pt-4 flex gap-3",children:[(0,l.jsx)("button",{onClick:()=>J(!1),className:"flex-1 py-2.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Back to description"}),(0,l.jsx)("button",{disabled:!eS,onClick:eL,className:"flex-1 py-2.5 text-sm font-medium rounded-md transition-all duration-200 bg-primary-green text-white hover:bg-primary-green-hover disabled:bg-bg-default disabled:border disabled:border-border-default disabled:text-text-secondary disabled:cursor-not-allowed",children:"Submit application"})]})]})},"form"):"error"===ee?(0,l.jsx)(c.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0,transition:{duration:.15}},children:(0,l.jsx)(v,{message:er,onRetry:()=>et("idle")})},"submit-error"):(0,l.jsxs)(c.P.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},className:"flex flex-col items-center justify-center pt-24 pb-16",children:[(0,l.jsx)(C,{isComplete:"success"===ee,size:48}),(0,l.jsx)(c.P.p,{initial:{opacity:0,y:8},animate:{opacity:+("success"===ee),y:8*("success"!==ee)},transition:{duration:.3,delay:.2},className:"text-base text-text-secondary mt-5",children:"Application submitted successfully"})]},"loading-success")})},"application"):(0,l.jsxs)(c.P.div,{initial:{opacity:0,x:-12},animate:{opacity:1,x:0,transition:{duration:.18,ease:[.4,0,.2,1]}},exit:{opacity:0,x:-12,transition:{duration:.12,ease:[.4,0,1,1]}},children:[I.description&&(0,l.jsx)("div",{className:"prose prose-sm max-w-none text-gray-600 [&>p]:mb-4 [&>ul]:mb-4 [&>ol]:mb-4 [&>h1]:mb-3 [&>h2]:mb-3 [&>h3]:mb-2 [&>h4]:mb-2 [&>ul]:list-disc [&>ul]:pl-5 [&>ol]:list-decimal [&>ol]:pl-5 [&_li]:mb-1",dangerouslySetInnerHTML:{__html:eN}}),(0,l.jsx)("div",{className:"mt-6 pb-24",children:(0,l.jsx)("button",{onClick:()=>J(!0),className:"w-full py-2.5 text-sm font-medium text-text-primary bg-white border border-border-default rounded-md shadow-sm hover:bg-bg-hover transition-colors",children:"Apply for this position"})})]},"description")})]})]})})})]})})]}),(0,l.jsxs)("footer",{className:"fixed bottom-0 left-0 right-0 z-0 pointer-events-none transition-opacity duration-300 ".concat(eb&&em?"lg:z-50":""," ").concat(ec?"lg:opacity-100 opacity-0":"opacity-100"),children:[(0,l.jsx)("div",{className:"h-16 bg-gradient-to-t from-white to-transparent"}),(0,l.jsx)("div",{className:"py-4 flex justify-center bg-white pointer-events-auto",children:(0,l.jsx)(d.A,{})})]})]}):(0,l.jsx)("div",{className:"fixed inset-0 flex flex-col bg-white",children:(0,l.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,l.jsxs)("div",{className:"text-center max-w-md px-4",children:[(0,l.jsx)("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-gray-100 flex items-center justify-center",children:(0,l.jsx)("svg",{className:"w-8 h-8 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})}),(0,l.jsx)("h1",{className:"text-xl font-semibold text-gray-700 mb-2",children:"Company Not Found"}),(0,l.jsxs)("p",{className:"text-gray-500",children:["We couldn't find a job board for \"",A,'". Please check the URL and try again.']})]})})})}},49746:()=>{},74990:(e,t,r)=>{"use strict";r.d(t,{AA:()=>f,Bs:()=>i,PR:()=>m,WB:()=>d,bU:()=>b,dr:()=>o,l2:()=>n,lp:()=>u,nA:()=>x,qV:()=>g,ud:()=>p,vf:()=>h});let l=Object.freeze(["www","app","api","admin","dashboard","login","logout","signup","auth","help","support","blog","docs","status","jobs","careers","settings","about","contact","pricing","terms","privacy","security","billing","plans","postings","apply","candidates","dev","test","talent","wrangle","book","booking","calendar","meetings","interviews","team"]),i=function(e){let{allowEmpty:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)return"Slug must be a string.";let r=e.trim();return r?r.length>63?"Slug must be 63 characters or fewer.":l.includes(r.toLowerCase())?"This slug is reserved and cannot be used.":r!==r.toLowerCase()||!/^[a-z0-9-]+$/.test(r)||r.startsWith("-")||r.endsWith("-")||r.includes("--")?"Slug can only contain lowercase letters, numbers, and single hyphens between characters.":"":t?"":"Please enter a company slug."},s=e=>String(null!=e?e:"").trim().replace(/\s+/g," "),a=function(){var e,t,r,l,i;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.createdAt||s.created_at||0,n=null==a||null==(e=a.toMillis)?void 0:e.call(a);if(Number.isFinite(n))return n;let o=Number(null!=(r=null==a?void 0:a.seconds)?r:null==a?void 0:a._seconds);if(Number.isFinite(o)){let e=Number(null!=(i=null!=(l=null==a?void 0:a.nanoseconds)?l:null==a?void 0:a._nanoseconds)?i:0);return 1e3*o+(Number.isFinite(e)?e/1e6:0)}let d=((null==a||null==(t=a.toDate)?void 0:t.call(a))||new Date(a)).getTime();return Number.isFinite(d)?d:0},n=()=>({text:"",subheading:"",placeholder:"",required:!1}),o=function(){var e,t,r,l,i;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a="string"==typeof s?{text:s}:s||{},n={text:String(null!=(r=null!=(t=null!=(e=a.text)?e:a.question)?t:a.label)?r:""),subheading:String(null!=(l=a.subheading)?l:""),placeholder:String(null!=(i=a.placeholder)?i:""),required:!!a.required};return null!=a.id&&String(a.id).trim()&&(n.id=String(a.id).trim()),n},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o(e),r=t.text.trim();return r?{...t.id?{id:t.id}:{},text:r,subheading:t.subheading.trim(),placeholder:t.placeholder.trim(),required:t.required}:null},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Number(e.questionsSchemaVersion||0)>=1?[["questions",e.questions]]:[["questions",e.questions],["applicationQuestions",e.applicationQuestions],["applicationFields",e.applicationFields]],r=[],l=new Map;return t.forEach((e,t)=>{let[i,s]=e;
1Array.isArray(s)&&s.forEach(e=>{let s="string"==typeof e?{text:e}:e||{},a=o(s).text.trim().toLocaleLowerCase();if(!a)return;let n=l.get(a);null!=n&&n<t||(null==n&&l.set(a,t),r.push({kind:i,question:s}))})}),r},u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c(e),r=new Set,l=new Set(["_name","_email","_linkedin","__proto__","constructor","prototype"]);return t.map((e,t)=>{let{kind:i,question:s}=e,a="string"==typeof s?{text:s}:s||{},n=o(a),d=((e,t)=>{for(let i of[e,"q_".concat(t),"question_".concat(t)]){let e=String(null!=i?i:"").trim();if(e&&e.length<=100&&!e.startsWith("_")&&!l.has(e)&&!Object.prototype.hasOwnProperty.call(Object.prototype,e)&&!r.has(e))return r.add(e),e}let i=1;for(;r.has("question_".concat(t,"_").concat(i));)i+=1;let s="question_".concat(t,"_").concat(i);return r.add(s),s})("applicationFields"===i?a.id||a.key||a.name||a.label||a.question||a.text:a.id,t);return{...n,id:d,isDefault:!!a.isDefault}}).filter(e=>e.text.trim())},m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.stringify(u(e).map(e=>({id:e.id,text:e.text.trim(),required:e.required,isDefault:e.isDefault,subheading:e.subheading.trim(),placeholder:e.placeholder.trim()}))),r=0x811c9dc5;for(let e=0;e<t.length;e+=1)r^=t.charCodeAt(e),r=Math.imul(r,0x1000193);return"v1_".concat((r>>>0).toString(36))},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=String(t||""),l=Array.isArray(e)?e:[],i=l.find(e=>e&&"object"==typeof e&&String(e.id||"")===r),s=/^q_(\d+)$/.exec(r),a=i||(s?l[Number(s[1])]:null);return"string"==typeof a?a:(null==a?void 0:a.text)||(null==a?void 0:a.question)||(null==a?void 0:a.label)||r.replace(/^q_/,"Question ")},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.map(e=>({...o(e),required:!0,isDefault:!0})),l=new Set(r.map(e=>e.text.toLocaleLowerCase()));return[...r,...(Array.isArray(e)?e:[]).map(e=>({...o(e),isDefault:!!(e&&"object"==typeof e&&e.isDefault)})).filter(e=>e.text&&!e.isDefault&&!l.has(e.text.toLocaleLowerCase())).map(e=>{let{isDefault:t,...r}=e;return r})]},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.prototype.hasOwnProperty.call(e,"jobFunction")?s(e.jobFunction):s(e.department||e.industry)},b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[],r=new Map(t.filter(e=>!Number.isFinite(e.displayOrder)).sort((e,t)=>{let r=a(t)-a(e);return 0!==r?r:String(e.id||"").localeCompare(String(t.id||""))}).map((e,t)=>[e.id,t]));return[...t].sort((e,t)=>{let l=Number.isFinite(e.displayOrder),i=Number.isFinite(t.displayOrder),s=Number.isFinite(e.displayOrder)?e.displayOrder:r.get(e.id),n=Number.isFinite(t.displayOrder)?t.displayOrder:r.get(t.id);if(s!==n)return s-n;if(l!==i)return l?-1:1;let o=a(t)-a(e);return 0!==o?o:String(e.id||"").localeCompare(String(t.id||""))})},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,l=[...Array.isArray(e)?e:[]];if(!Number.isInteger(t)||!Number.isInteger(r)||t<0||r<0||t>=l.length||r>=l.length||t===r)return l.map((e,t)=>({...e,displayOrder:t}));let[i]=l.splice(t,1);return l.splice(r,0,i),l.map((e,t)=>({...e,displayOrder:t}))},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{enabled:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Array.isArray(e)?e:[];if(!(t&&r.some(e=>p(e))))return[{key:"all",label:null,jobs:r}];let l=new Map;return r.forEach(e=>{let t=p(e),r=t?t.toLocaleLowerCase():"__other__";l.has(r)||l.set(r,{key:r,label:t||"Other roles",jobs:[],isOther:!t}),l.get(r).jobs.push(e)}),[...l.values()].sort((e,t)=>e.isOther!==t.isOther?e.isOther?1:-1:0)}}}]);

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.