PageSourceSearch

https://mindpal.co/_next/static/chunks/7677-af08b7b29aba749c.js

js mindpal.co collected 2026-10-04 08:14:48 UTC 12,914 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7677],{34124:function(e,r,a){var t,n=a(67294);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}r.Z=function(e){return n.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 137 25"},e),t||(t=n.createElement("path",{d:"M.271 23.335a.957.957 0 0 0-.262.555.95.95 0 0 0 .116.602c.104.19.255.327.451.417.197.09.4.114.61.07l21.699-4.47 21.698 4.47c.21.044.414.02.61-.07a.96.96 0 0 0 .452-.417.95.95 0 0 0 .116-.602.968.968 0 0 0-.263-.555L23.601.308a.963.963 0 0 0-.328-.227.974.974 0 0 0-.778 0 .981.981 0 0 0-.328.227L.271 23.335ZM69.314 2.345h2.574v17.24h-2.552V6.355l-5.067 6.932h-1.99L57.18 6.354v13.232h-2.567V2.345h2.567l6.081 8.29 6.052-8.29ZM77.2 19.585h-2.375V7.94h2.352l.022 11.646ZM76 5.406a1.46 1.46 0 0 1-1.08-.448 1.485 1.485 0 0 1-.444-1.087c0-.42.148-.774.444-1.064.296-.294.655-.44 1.08-.44.423 0 .78.146 1.073.44.296.29.444.644.444 1.064 0 .426-.148.79-.444 1.087-.293.3-.65.448-1.073.448ZM82.198 19.585h-2.374V7.94h1.886l.489 1.02a4.808 4.808 0 0 1 1.42-.925 4.465 4.465 0 0 1 1.812-.367c.424 0 .905.066 1.443.198.542.129 1.045.371 1.51.727.467.358.86.852 1.175 1.483.32.632.481 1.452.481 2.46v7.05h-2.256v-7.08c0-.498-.08-.92-.237-1.27a2.25 2.25 0 0 0-.606-.844 2.272 2.272 0 0 0-.859-.448 3.73 3.73 0 0 0-.991-.132c-.263 0-.56.05-.895.147-.337.094-.651.25-.947.47-.292.22-.54.497-.747.83-.204.334-.303.741-.303 1.226v7.1ZM104.17 1.831v17.755h-1.887l-.488-1.219a5.37 5.37 0 0 1-1.62 1.109c-.603.268-1.295.404-2.08.404-.818 0-1.571-.158-2.255-.47a5.568 5.568 0 0 1-1.79-1.307 6.085 6.085 0 0 1-1.184-1.946 6.572 6.572 0 0 1-.43-2.386c0-.841.143-1.634.43-2.38a6.125 6.125 0 0 1 1.183-1.945 5.52 5.52 0 0 1 1.79-1.3 5.296 5.296 0 0 1 2.257-.477c.817 0 1.528.135 2.131.403a4.521 4.521 0 0 1 1.568 1.131V1.831h2.375Zm-5.882 15.956c.492 0 .947-.08 1.362-.242a2.982 2.982 0 0 0 1.102-.742c.32-.332.569-.749.747-1.248.181-.503.274-1.098.274-1.784 0-.73-.093-1.344-.274-1.844-.178-.502-.427-.912-.747-1.226a2.755 2.755 0 0 0-1.102-.683 4.353 4.353 0 0 0-1.362-.205c-.473 0-.923.1-1.346.3-.425.203-.792.482-1.102.838-.311.358-.559.782-.74 1.27a4.472 4.472 0 0 0-.267 1.55c0 .554.09 1.075.267 1.563.181.485.429.911.74 1.278.31.364.676.65 1.102.86a2.98 2.98 0 0 0 1.346.315ZM132.076 7.94v11.645h-2.005l-.37-1.336c-.411.534-.932.94-1.568 1.219a4.877 4.877 0 0 1-1.939.411 5.67 5.67 0 0 1-2.293-.47 5.89 5.89 0 0 1-1.864-1.307 6.272 6.272 0 0 1-1.258-1.946 6.118 6.118 0 0 1-.466-2.386c0-.84.155-1.634.466-2.38a6.315 6.315 0 0 1 1.258-1.945 5.84 5.84 0 0 1 1.864-1.3 5.584 5.584 0 0 1 2.293-.477c.655 0 1.284.128 1.887.382.606.25 1.146.642 1.62 1.175l.37-1.285h2.005Zm-5.882 9.846c.474 0 .921-.104 1.347-.315.429-.21.795-.496 1.102-.86.311-.367.555-.793.732-1.277.182-.488.274-1.01.274-1.564 0-.547-.092-1.065-.274-1.55a4.084 4.084 0 0 0-.732-1.277 3.344 3.344 0 0 0-1.102-.867 3.012 3.012 0 0 0-1.347-.315c-.473 0-.923.106-1.346.315-.425.211-.792.5-1.102.867a4.18 4.18 0 0 0-.74 1.277 4.463 4.463 0 0 0-.266 1.55c0 .554.088 1.076.266 1.564.181.485.429.91.74 1.277.31.364.677.65 1.102.86.423.21.873.315 1.346.315ZM137 1.831v17.755h-2.375V1.831H137ZM114.369 2.218c.691 0 1.341.13 1.949.392a5.031 5.031 0 0 1 1.58 1.055c.461.441.822.964 1.086 1.569.263.588.395 1.226.395 1.913 0 .686-.132 1.332-.395 1.937a4.808 4.808 0 0 1-1.086 1.57 5.03 5.03 0 0 1-1.58 1.054 5.16 5.16 0 0 1-1.949.368l-4.541.024v7.504h-2.566V2.218h7.107Zm0 7.479c.345 0 .666-.065.962-.196.313-.147.584-.335.815-.564.23-.23.411-.499.543-.81a2.744 2.744 0 0 0 0-2.035 2.518 2.518 0 0 0-.543-.809 2.353 2.353 0 0 0-.815-.564 2.132 2.132 0 0 0-.962-.22h-4.541v5.198h4.541Z"})))}},3476:function(e,r,a){var t=a(85893),n=a(47533),l=a(85945),s=a(48228),i=a(67294),o=a(87536),d=a(16310),c=a(27505),u=a(64147),b=a(32128),m=a(76902),x=a(18726),p=a(51491),f=a(90576);let h=e=>{let{candidatesId:r,dialogContentProps:a,dialogProps:d,dialogTriggerProps:h,children:y,onClear:j}=e,[g,w]=(0,i.useState)(!1),N=(0,l.NL)(),{control:Z,handleSubmit:C,setValue:k,watch:V}=(0,u.Z)({resolver:(0,n.X)(v)}),{data:S}=(0,c.P)(),E=null==S?void 0:S.results.map(e=>({value:e,label:e.title})),{mutate:z,isLoading:M}=(0,s.D)({mutationFn:m.nm,onSuccess:e=>{N.invalidateQueries(b.o.externalCandidates.collections.queryKey),k("collection",[...Array.isArray(V("c
1ollection"))?V("collection"):[],{label:e.title,value:e}])}}),{mutate:P,isLoading:O}=(0,s.D)({mutationKey:["addCandidateToCollection"],mutationFn:m.df,onSuccess:()=>{var e;N.invalidateQueries(b.o.externalCandidates.list._def),N.invalidateQueries(b.o.externalCandidates.collections.queryKey),Promise.all(r.map(e=>N.invalidateQueries(b.o.externalCandidates.detail(e).queryKey))),null==d||null===(e=d.onOpenChange)||void 0===e||e.call(d,!1),w(!1),null==j||j()}});return(0,t.jsxs)(f.Vq,{open:g,onOpenChange:w,...d,children:[y&&(0,t.jsx)(f.hg,{...h,children:y}),(0,t.jsxs)(f.cZ,{...a,children:[(0,t.jsx)(f.fK,{children:"Add candidate to collection"}),(0,t.jsxs)("form",{onSubmit:C(e=>P({data:e.collection.map(e=>{let{value:a}=e;return{id:a.id,data:{candidates:[...r,...a.candidates.map(e=>{let{id:r}=e;return r})]}}})})),className:"flex flex-col gap-10",children:[(0,t.jsx)(o.Qr,{control:Z,name:"collection",render:e=>{let{field:{name:r,onBlur:a,onChange:n,value:l}}=e;return(0,t.jsx)(p.P,{isMulti:!0,menuPortalTarget:document.querySelector("body"),isLoading:M,labelClassName:"text-neutral-1000",variant:"transparent",label:"Collection",options:E,name:r,classNames:{menu:()=>"!z-[9999] !pointer-events-auto",menuPortal:()=>"!z-[9999] !pointer-events-auto"},onBlur:a,onChange:n,value:l,isCreatable:!0,onCreateOption:e=>{z({title:e,description:""})}})}}),(0,t.jsx)(x.ZP,{isLoading:O,type:"submit",children:"Submit"})]})]})]})};r.Z=h;let v=(0,d.Ry)({collection:(0,d.IX)().of((0,d.Ry)({value:(0,d.Ry)({id:(0,d.Rx)().defined(),title:(0,d.Z_)().defined(),description:(0,d.Z_)().defined(),candidates:(0,d.IX)().defined()}),label:(0,d.Z_)().defined()})).defined()})},12564:function(e,r,a){var t=a(85893),n=a(59417),l=a(99603),s=a(53999),i=a(93967),o=a.n(i),d=a(67294),c=a(18726),u=a(45671);let b=(0,s.j)("",{variants:{textSize:{caption:"text-caption",xs:"text-xs",sm:"text-body-s",md:"text-body-m",lg:"text-body-l"}},defaultVariants:{textSize:"md"}}),m=(0,s.j)("transition-colors",{variants:{variant:{"white-background":"border-primary-800 bg-white peer-checked:bg-primary-800 peer-disabled:bg-neutral-500",transparent:"border-neutral-100 bg-transparent peer-checked:border-primary-800 peer-checked:bg-primary-800 peer-disabled:bg-neutral-500"}},defaultVariants:{variant:"white-background"}}),x=(e,r)=>{let{label:a="",error:s,required:i,textSize:x,className:p,children:f,labelProps:h,canHaveErrorMessage:v=!0,checkboxClassName:y,variant:j,errorClassName:g,...w}=e,[N,Z]=(0,d.useState)(!1),C=a.length>250;return(0,t.jsxs)("div",{className:o()("relative flex flex-col"),children:[(0,t.jsxs)("label",{htmlFor:w.name+a,className:o()("flex flex-1 cursor-pointer py-2 text-neutral-300",{"!cursor-not-allowed":w.disabled},p),...h,children:[(0,t.jsxs)("div",{className:"relative inline-flex h-5 items-center justify-center rounded-[0.25rem]",children:[(0,t.jsx)("input",{className:"peer absolute h-full w-full opacity-0 hover:cursor-pointer ",type:"checkbox",id:w.name+a,ref:r,...w}),(0,t.jsx)("span",{className:o()("flex h-5 w-5 aspect-square items-center justify-center rounded-[0.25rem] border peer-checked:[&>svg]:block [&>svg]:hidden peer-disabled:opacity-20 peer-disabled:[&>svg]:!hidden transition-colors",{"!border-error":s,"mr-4":a||f},y,m({variant:j})),children:(0,t.jsx)(l.G,{icon:n.LEp,color:"white"})})]}),(0,t.jsxs)("div",{className:o()("",{"after:px-1 after:text-red-500 after:content-['*'] after:absolute":i}),children:[a&&(0,t.jsxs)("span",{className:o()(b({textSize:x})),children:[a.slice(0,!0===N?void 0:250),!N&&C&&"..."]}),f]})]}),C&&(0,t.jsxs)(c.ZP,{className:"text-body-s self-end",onClick:()=>Z(e=>!e),size:null,variant:"unstyled",children:["Show ",N?"less":"more"]}),v&&(0,t.jsx)(u.Z,{errorTextClassName:g,error:null==s?void 0:s.message})]},w.name+a)};r.Z=(0,d.forwardRef)(x)},8817:function(e,r,a){a.d(r,{Z:function(){return h}});var t=a(85893),n=a(93967),l=a.n(n),s=a(67294),i=a(45671),o=a(27518),d=a(53999),c=a(71608);
1let u=(0,d.j)("flex flex-1 items-center gap-4 rounded-lg border px-4 transition-colors",{variants:{variant:{light:"border border-jb-neutral-500 bg-neutral-100 text-neutral-1000 focus-within:border-primary-500",primary:"border-transparent bg-primary-900 focus-within:border-primary-500 ","neutral-1000":"border-transparent bg-neutral-1000 focus-within:border-primary-500 ","neutral-900":"border-transparent bg-neutral-900 focus-within:border-primary-500 ",secondary:"border-transparent bg-secondary-500/20 focus-within:border-secondary-500 ",grayOutline:"border border-neutral-600 bg-neutral-1000 focus-within:border-neutral-100 hover:border-neutral-300",transparentNeutralBorder:"border border-neutral-500","jb-white":"border border-neutral-500 bg-jb-neutral-100 text-jb-neutral-1000 focus-within:border-jb-primary-500",transparent:"rounded-lg border-primary-600 bg-neutral-100 text-black placeholder:text-neutral-500 focus-within:border-neutral-300 hover:border-primary-900 active:bg-neutral-100 disabled:border-transparent",jobboardGrayBackgroud:"rounded-md !border border-jb-neutral-500 bg-jb-neutral-200 !placeholder-[#636363] focus-within:border-primary-500"},isError:{true:"!border-error  !text-error"}},compoundVariants:[{isError:!0,variant:"primary",className:"!bg-error-36%"},{isError:!0,variant:"neutral-1000",className:"!bg-error-36%"},{isError:!0,variant:"neutral-900",className:"!bg-error-36%"}],defaultVariants:{variant:"primary",isError:null}}),b=(0,d.j)("",{variants:{sizeVariant:{xs:"py-2 text-body-small",sm:"py-3 text-body-small",base:"py-3 text-body",builder:"py-1.5 text-body"}},defaultVariants:{sizeVariant:"base"}}),m=(e,r)=>{let{variant:a,isError:n,sizeVariant:s,prefixIcon:i,prefixText:d,prefixIconClassName:m,prefixIconSize:x,inputClassName:p,suffixIcon:f,suffixIconClassName:h,prefixElement:v,suffixElement:y,...j}=e;return(0,t.jsxs)("div",{className:l()("relative overflow-hidden ",u({variant:a,isError:n}),{[j.className]:void 0!==j.className,"cursor-not-allowed text-neutral-400 !border-neutral-800 !bg-neutral-900":j.disabled&&!n}
1),children:[v,i&&(0,t.jsx)(c.Z,{icon:i,fontSize:x,className:m}),d&&(0,t.jsx)(o.Z,{className:"text-neutral-500",variant:"body-small",children:d}),(0,t.jsx)("input",{type:"text",...j,className:l()(b({sizeVariant:s}),"peer w-full flex-1 autofill:z-10 bg-transparent outline-none disabled:cursor-not-allowed",p),ref:r}),f&&(0,t.jsx)(c.Z,{icon:f,className:h}),y,(0,t.jsx)("span",{className:"absolute left-0 top-0 z-0 hidden h-full w-full !shadow-[#e8f0fe] peer-autofill:block peer-autofill:shadow-full"})]})};var x=(0,s.forwardRef)(m),p=a(30940);let f=(e,r)=>{let{label:a,type:n,error:s,required:d=!1,canHaveErrorMessage:c=!0,description:u,containerClassName:b,labelClassName:m,variant:f,sizeVariant:h,containerId:v,errorClassName:y,children:j,wrapClassName:g,...w}=e,N=e=>{var r;"number"===n&&e.currentTarget.blur(),null===(r=w.onWheel)||void 0===r||r.call(w,e)};return(0,t.jsxs)("div",{id:v,className:l()("flex flex-1 flex-col",g),children:[(0,t.jsxs)("div",{className:l()("flex flex-1 flex-col gap-4",b),children:[(0,t.jsxs)("div",{className:l()("flex flex-row items-center justify-between",{hidden:!a&&!j}),children:[a&&(0,t.jsx)(p.Z,{className:m,required:d,children:a}),j&&(0,t.jsx)("div",{className:"flex justify-end",children:j})]}),u&&(0,t.jsx)(o.Z,{as:"span",className:"text-gray-300",children:u}),(0,t.jsx)(x,{type:n,variant:null!=f?f:"primary",sizeVariant:h,isError:!!s,...w,ref:r,onWheel:N})]}),c&&(0,t.jsx)(i.Z,{errorTextClassName:y,error:s})]})};var h=(0,s.forwardRef)(f)},71608:function(e,r,a){var t=a(85893),n=a(99603),l=a(1954),s=a(53999),i=a(93967),o=a.n(i);let d=(0,s.j)("",{variants:{variant:{unstyled:"",candidateSuccess:"rounded bg-jb-success-200 text-jb-success-400",candidateSuccessDark:"rounded bg-jb-success-200 text-jb-success-600",candidateError:"rounded bg-jb-alert-300 text-jb-alert-400",candidatePrimary:"rounded bg-jb-primary-200 text-jb-primary-500",candidateSecondary:"rounded bg-jb-secondary-200 text-jb-secondary-500",dark:"rounded bg-[#333345] text-jb-neutral-100"}},defaultVariants:{variant:"unstyled"}}),c=e=>{let{icon:r,className:a,variant:s,...i}=e;return"string"==typeof r?(0,t.jsx)(l.JO,{icon:r,className:o()(a,d({variant:s})),...i}):(0,t.jsx)(n.G,{icon:r,className:o()(a,d({variant:s})),...i})};r.Z=c},27505:function(e,r,a){a.d(r,{P:function(){return l}});var t=a(36492),n=a(32128);let l=e=>(0,t.a)({...n.o.externalCandidates.collections,staleTime:1/0,...e})}}]);
2//# sourceMappingURL=7677-af08b7b29aba749c.js.map

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.