PageSourceSearch

https://lensflow.pro/_next/static/chunks/1174.d54ec1b6f9e93e40.js

js lensflow.pro collected 2026-10-02 02:07:39 UTC 16,062 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1174],{230:(e,t,r)=>{r.d(t,{B:()=>F});var n=r(13953),o=r(56811),a=r(69700),l=r(54232),i=r(79637),s=r(78428),c=r(2421),d=r(63655),u=r(24864),p=r(57100),h=r(56617),g=r(10283),m=r(48538),v=r(15249),x=r(63212),f=r(12115),b=r(86201);let y=e=>e.trim(),$=e=>{let{t}=(0,l._)(),{autoFocus:r}=(0,x.KP)().parsedOptions,{sx:n,placeholder:o,validate:a=()=>!0,value:i,onChange:s,autoFocus:c,validateUnsubmittedEmail:u=()=>null,...p}=e,h=i.split(",").map(y).filter(Boolean),g=new Set(h),$=f.useRef(!0),Y=f.useRef(null),[k,C]=f.useState(""),D=e=>{s({target:{value:e.join(",")}}),F(),u("")},S=e=>{let t=(Array.isArray(e)?[...e]:[e]).map(y).filter(Boolean).filter(a).filter(e=>!g.has(e));t.length&&(D([...h,...t]),C(""),F())},F=()=>{Y.current?.focus()};return(0,b.FD)(d.Flex,{elementDescriptor:v.$.tagInputContainer,align:"start",gap:2,wrap:"wrap",onClick:F,onFocus:F,sx:[e=>({maxWidth:"100%",padding:`${e.space.$1x5} ${e.space.$2}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,minHeight:e.sizes.$20,maxHeight:e.sizes.$60,overflowY:"auto",cursor:"text",justifyItems:"center",...m.s.borderVariants(e,{hoverStyles:!0}).normal}),n],...p,children:[h.map(e=>(0,b.Y)(w,{onRemoveClick:()=>{D(h.filter(t=>t!==e))},children:e},e)),(0,b.Y)(d.Input,{ref:Y,value:k,type:"email","data-testid":"tag-input",placeholder:h.length?void 0:t(o),onKeyDown:e=>{let{key:t}=e;(","===t||" "===t||"Enter"===t)&&k.length?(e.preventDefault(),S(k)):"Backspace"===t&&!k.length&&h.length&&$.current&&(e.preventDefault(),D(h.slice(0,-1))),$.current=!1},onKeyUp:()=>{$.current=!0},onChange:e=>{C(e.target.value),u(e.target.value)},onPaste:e=>{e.preventDefault(),S((e.clipboardData.getData("text")||"").split(/,| |\n|\t/).filter(Boolean).map(e=>e.trim()))},onBlur:e=>{e.preventDefault(),S(k)},focusRing:!1,autoFocus:r&&c,variant:"unstyled",sx:e=>({flexGrow:1,borderWidth:0,width:"initial",padding:0,lineHeight:e.space.$5,paddingInlineStart:e.space.$1,"::placeholder":{color:e.colors.$colorMutedForeground},boxShadow:"none",":hover":{boxShadow:"none"}})})]})},w=e=>{let{onRemoveClick:t,children:r,...n}=e;return(0,b.FD)(d.Flex,{elementDescriptor:v.$.tagPillContainer,onClick:t,gap:1,center:!0,...n,sx:e=>({padding:`${e.space.$0x5} ${e.space.$1x5}`,borderRadius:e.radii.$sm,color:e.colors.$primary500,backgroundColor:e.colors.$neutralAlpha50,boxShadow:e.shadows.$badge,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,display:"inline-flex",marginInlineEnd:"1px",cursor:"pointer",":hover":{backgroundColor:e.colors.$neutralAlpha100},":hover svg":{color:e.colors.$danger500},overflow:"hidden"}),children:[(0,b.Y)(d.Text,{truncate:!0,variant:"buttonSmall",children:r}),(0,b.Y)(d.Icon,{elementDescriptor:v.$.tagPillIcon,size:"md",icon:g.A,sx:e=>({color:e.colors.$colorMutedForeground,transform:"translateY(0px) rotate(45deg)"})})]})};var Y=r(85116),k=r(75062),C=r(29641),D=r(2663);let S=e=>/^\S+@\S+\.\S+$/.test(e),F=e=>{let{onSuccess:t,onReset:r,resetButtonLabel:n}=e,{organization:g,invitations:m}=(0,D.Z5)({invitations:{pageSize:10,keepPreviousData:!0}}),v=(0,c.useCardState)(),{t:x,locale:y}=(0,l._)(),[w,Y]=(0,f.useState)(!1),k=(0,s.tJ)("emailAddress","",{type:"text",label:(0,o.G)("formFieldLabel__emailAddresses")}),F=(0,s.tJ)("role","",{label:(0,o.G)("formFieldLabel__role")});if(!g)return null;let{props:{setError:z,setWarning:T,setSuccess:A,setInfo:I,isFocused:P,validatePassword:R,setHasPassedComplexity:B,hasPassedComplexity:E,feedback:j,feedbackType:K,clearFeedback:G,...M}}=k,O=(!!k.value.length||w)&&!!F.value;return(0,b.FD)(p.l.Root,{onSubmit:e=>{if(e.preventDefault(),!O)return;let r=new FormData(e.currentTarget);return g.inviteMembers({emailAddresses:k.value.split(","),role:r.get("role")}).then(async()=>(await m?.revalidate?.(),t?.())).catch(e=>{if(!(0,C.$R)(e))return void(0,u.H)(e,[],v.setError);switch((e=>{let t=new Set([...e.meta?.emailAddresses??[],...e.meta?.identifiers??[]]),r=k.value.split(",");k.setValue(r.filter(e=>!t.has(e)).join(","))})(e.errors[0]),e.errors?.[0]?.code){case"duplicate_record":{let t=e.errors[0].meta?.emailAddresses||[];v.setError(x((0,o.G)("organizationProfile.invitePage.detailsTitle__inviteFailed",{email_addresses:(0,a.kS)(t,y)})));break}case"already_a_member_in_organization":{let t=(e.errors[0].longMessage??"").match(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/)?.[0];(0,u.H)(e,[],e=>t?v.setError(x((0,o.G)("unstable__errors.already_a_member_in_organization",{email:t}))):v.setError(e));break}default:(0,u.H)(e,[],v.setError)}})},children:[(0,b.Y)(p.l.ControlRow,{elementId:k.id,children:(0,b.Y)($,{...M,autoFocus:!0,validate:S,sx:{width:"100%"}
1,validateUnsubmittedEmail:e=>Y(S(e)),placeholder:(0,o.G)("formFieldInputPlaceholder__emailAddresses")})}),(0,b.FD)(d.Flex,{align:"center",justify:"between",sx:e=>({marginTop:e.space.$2,gap:e.space.$4,flexWrap:"wrap",[i.g.sm]:{justifyContent:"center"}}),children:[(0,b.Y)(_,{...F}),(0,b.FD)(h.c,{sx:e=>({margin:e.space.$none,flexWrap:"wrap",justifyContent:"center"}),children:[(0,b.Y)(p.l.SubmitButton,{block:!1,isDisabled:!O,localizationKey:(0,o.G)("organizationProfile.invitePage.formButtonPrimary__continue")}),(0,b.Y)(p.l.ResetButton,{localizationKey:n||(0,o.G)("userProfile.formButtonReset"),block:!1,onClick:r})]})]})]})},_=e=>{let{options:t,isLoading:r,hasRoleSetMigration:n}=(0,Y.x)(),{t:a}=(0,l._)(),i=z();return(0,f.useEffect)(()=>{!e.value&&i&&t?.some(e=>e.value===i)&&e.setValue(i)},[i,t,e]),(0,b.Y)(p.l.ControlRow,{elementId:e.id,children:(0,b.Y)(d.Flex,{direction:"col",gap:2,children:(0,b.Y)(k.Vo,{...e.props,roles:t,isDisabled:r||n,onChange:t=>e.setValue(t),triggerSx:e=>({minWidth:e.sizes.$40,justifyContent:"space-between",display:"flex"}),optionListSx:e=>({minWidth:e.sizes.$48}),prefixLocalizationKey:`${a((0,o.G)("formFieldLabel__role"))}:`})})})},z=()=>{let{options:e}=(0,Y.x)(),{organizationSettings:t}=(0,n.O)(),r=t.domains.defaultRole;return r||e?.length!==1||(r=e[0].value),r}},1282:(e,t,r)=>{r.d(t,{B:()=>u});var n=r(37470),o=r(56811),a=r(15249),l=r(63212),i=r(63655),s=r(51130),c=r(56617);r(12115);var d=r(86201);let u=e=>{let{text:t,title:r,subtitle:u,finishLabel:p,onFinish:h,contents:g,finishButtonProps:m,headerBadgeText:v,...x}=e,{navigateToFlowStart:f}=(0,n.C)(),{autoFocus:b}=(0,l.KP)().parsedOptions;return(0,d.FD)(i.Col,{...x,gap:4,children:[(0,d.FD)(s.Y.Root,{badgeText:v,children:[r&&(0,d.Y)(s.Y.Title,{localizationKey:r,textVariant:u?void 0:"subtitle"}),u&&(0,d.Y)(s.Y.Subtitle,{localizationKey:u})]}),(0,d.Y)(i.Col,{gap:4,children:Array.isArray(t)?t.map(e=>(0,d.Y)(i.Text,{localizationKey:e,colorScheme:"secondary",sx:e=>({display:"inline",":not(:last-of-type)":{marginInlineEnd:e.sizes.$1}})},e.key)):(0,d.Y)(i.Text,{localizationKey:t,colorScheme:"secondary"})}),g,(0,d.Y)(c.c,{children:(0,d.Y)(i.Button,{autoFocus:b,localizationKey:p||(0,o.G)("userProfile.formButtonPrimary__finish"),elementDescriptor:a.$.formButtonPrimary,onClick:h||f,...m})})]})}},10283:(e,t,r)=>{r.d(t,{A:()=>l});var n,o=r(12115);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var l=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 3.75V8m0 0v4.25M8 8h4.25M8 8H3.75"})))}},16259:(e,t,r)=>{r.d(t,{A:()=>l});var n,o=r(12115);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var l=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m3 4.75 5 3.5 5-3.5m-8.25 7.5h6.5a2 2 0 0 0 2-2v-4.5a2 2 0 0 0-2-2h-6.5a2 2 0 0 0-2 2v4.5a2 2 0 0 0 2 2"})))}},19156:(e,t,r)=>{r.d(t,{A:()=>l});var n,o=r(12115);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var l=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.25 11.25 5.75 8l3.5-3.25"})))}},51817:(e,t,r)=>{r.d(t,{X:()=>l,s:()=>i});var n=r(85169),o=r(12115),a=r(86201);let l=(e={})=>{let{defaultStep:t=0,onNextStep:r}
1=e,[n,a]=o.useState(t);return{nextStep:o.useCallback(()=>{r?.(),a(e=>e+1)},[]),prevStep:o.useCallback(()=>a(e=>e-1),[]),goToStep:o.useCallback(e=>a(e),[]),props:{step:n}}},i=e=>{let{step:t,children:r,animate:l=!0}=e;return l?(0,a.Y)(n.k,{children:o.Children.toArray(r)[t]}):o.Children.toArray(r)[t]}},67773:(e,t,r)=>{r.d(t,{d:()=>g});var n=r(56811),o=r(19156),a=r(84925),l=r(54232),i=r(79637),s=r(15249),c=r(63655),d=r(86201);let u=e=>{let{sx:t,isActive:r,icon:n,children:o,...a}=e;return(0,d.FD)(c.Button,{size:"xs",variant:"outline",sx:e=>[{color:e.colors.$colorForeground,opacity:r?1:e.opacity.$inactive,padding:`${e.space.$0x5} ${e.space.$0x5}`},t],elementDescriptor:s.$.paginationButton,...a,children:[n&&(0,d.Y)(c.Icon,{size:"md",elementDescriptor:s.$.paginationButtonIcon,icon:e.icon}),o]})},p=e=>{let{rowInfo:{startingRow:t,endingRow:r,allRowsCount:o}}=e;return(0,d.FD)(c.Text,{children:[(0,d.Y)(c.Text,{as:"span",elementDescriptor:s.$.paginationRowText,elementId:s.$.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,n.G)("paginationRowText__displaying"),colorScheme:"secondary"})," ",(0,d.Y)(c.Text,{as:"span",elementDescriptor:s.$.paginationRowText,elementId:s.$.paginationRowText?.setId("rowsCount"),sx:e=>({fontWeight:e.fontWeights.$medium}),children:t===r&&[0,1].includes(t)?t:`${t} – ${r}`})," ",(0,d.Y)(c.Text,{as:"span",elementDescriptor:s.$.paginationRowText,elementId:s.$.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,n.G)("paginationRowText__of")})," ",(0,d.Y)(c.Text,{as:"span",elementDescriptor:s.$.paginationRowText,elementId:s.$.paginationRowText?.setId("allRowsCount"),children:o})]})},h=()=>(0,d.Y)(c.Flex,{center:!0,children:(0,d.Y)(c.Text,{colorScheme:"secondary",children:"..."})}),g=e=>{let{page:t,count:r,rowInfo:s,siblingCount:g=1,onChange:m}=e,{t:v}=(0,l._)();return(0,d.FD)(c.Flex,{justify:s?"between":"center",align:"center",sx:e=>({fontSize:e.fontSizes.$sm,"*":{fontSize:"inherit"},[i.g.sm]:{flexDirection:"column",gap:e.space.$2}}),children:[s&&(0,d.Y)(p,{rowInfo:s}),(0,d.FD)(c.Flex,{gap:2,align:"center",sx:{display:"inline-flex"},children:[(0,d.Y)(u,{isDisabled:t<=1,icon:o.A,"aria-label":v((0,n.G)("paginationButton__previous")),onClick:()=>{m?.(t-1)}}),((e,t)=>Array.from({length:t-e+1},(t,r)=>e+r))(1,r).map(e=>((e,t,r,n)=>Math.abs(e-t)<=r||t===n||1===t)(t,e,g,r)?(0,d.Y)(u,{isActive:e===t,variant:"ghost",onClick:()=>{m?.(e)},children:e},e):Math.abs(t-e)===g+1?(0,d.Y)(h,{},e):null),(0,d.Y)(u,{isDisabled:t>=r||t<1,icon:a.A,"aria-label":v((0,n.G)("paginationButton__next")),onClick:()=>{m?.(t+1)}})]})]})}},75062:(e,t,r)=>{r.d(t,{Vo:()=>m,Yq:()=>g,bQ:()=>p});var n=r(56811),o=r(54232),a=r(15249),l=r(63655),i=r(69598),s=r(67773),c=r(85116),d=r(12115),u=r(86201);let p=e=>{let{headers:t,page:r,onPageChange:n,rows:o,isLoading:i,itemCount:c,itemsPerPage:d,pageCount:p,emptyStateLocalizationKey:g}=e,m=c>0?Math.max(0,(r-1)*d)+1:0,v=Math.min(r*d,c);return(0,u.FD)(l.Col,{gap:4,sx:{width:"100%"},children:[(0,u.Y)(l.Flex,{sx:e=>({overflowX:"auto",padding:e.space.$1}),children:(0,u.FD)(l.Table,{children:[(0,u.Y)(l.Thead,{children:(0,u.Y)(l.Tr,{children:t.map((e,t)=>(0,u.Y)(l.Th,{elementDescriptor:a.$.tableHead,localizationKey:e.key,sx:e.align?{textAlign:e.align}:void 0},t))})}),(0,u.Y)(l.Tbody,{children:i?(0,u.Y)(l.Tr,{children:(0,u.Y)(l.Td,{colSpan:4,children:(0,u.Y)(l.Spinner,{colorScheme:"primary",sx:{margin:"auto",display:"block"},elementDescriptor:a.$.spinner})})}):o.length?o:(0,u.Y)(h,{localizationKey:g},"empty")})]})}),p>1&&(0,u.Y)(s.d,{count:p,page:r,onChange:n,siblingCount:1,rowInfo:{allRowsCount:c,startingRow:m,endingRow:v}})]})},h=e=>(0,u.Y)(l.Tr,{children:(0,u.Y)(l.Td,{colSpan:4,children:(0,u.Y)(l.Text,{localizationKey:e.localizationKey,sx:{margin:"auto",display:"block",width:"fit-content"}})})}),g=e=>(0,u.Y)(l.Tr,{...e,sx:e=>({":hover":{backgroundColor:e.colors.$neutralAlpha50}})}),m=e=>{let{value:t,fallbackLabel:r,roles:a,onChange:s,isDisabled:p,triggerSx:h,optionListSx:g,prefixLocalizationKey:m}=e,{localizeCustomRole:x}=(0,c.l)(),f=(0,d.useMemo)(()=>[...a||[]],[a]),b=(0,d.useMemo)(()=>f.find(e=>e.value===t),[f,t]),{t:y}=(0,o._)();return(0,u.FD)(i.l6,{elementId:"role",options:(0,d.useMemo)(()=>f.map(e=>({value:e.value,label:x(e.value)||e.label})),[f,x]),value:t,placeholder:y((0,n.G)("organizationProfile.invitePage.selectDropdown__role")),onChange:e=>s(e.value),renderOption:(e,t,r)=>(0,u.Y)(v,{isSelected:r,option:e}),children:[(0,u.Y)("input",{name:"role",type:"hidden",value:t}),(0,u.Y)(i.JC,{sx:h||(e=>({color:e.colors.$colorForeground,backgroundColor:"transparent",textWrap:"nowrap"})),isDisabled:p||!!t&&f.length>0&&!b,children:b?.label||b?.value?(0,u.FD)(l.Flex,{as:"span",gap:1,children:[m&&(0,u.Y)(l.Text,{as:"span",colorScheme:"secondary",localizationKey:m}),(0,u.Y)(l.Text,{as:"span",colorScheme:"body",children:x(b?.value)||b?.label})]}):r?(0,u.Y)(l.Text,{as:"span",colorScheme:"body",children:r}):null}),(0,u.Y)(i.UL,{sx:g})]})},v=(0,d.memo)(e=>{let{option:t,isSelected:r,sx:n,...o}=e;return(0,u.Y)(l.Flex,{sx:[e=>({width:"100%",padding:`${e.space.$2} ${e.space.$4}`,borderRadius:e.radii.$md,"&:hover":{backgroundColor:e.colors.$neutralAlpha100},'&[data-focused="true"]':{backgroundColor:e.colors.$neutralAlpha150}}),n],...o,children:(0,u.Y)(l.Text,{variant:"subtitle",children:t?.label})})})},81174:(e,t,r)=>{r.d(t,{k:()=>x,D:()=>v});var n=r(56811),o=r(16259),a=r(15249),l=r(2421),i=r(63655),s=r(86419),c=r(51817),d=r(67795),u=r(1282),p=r(230),h=r(86201);let g=e=>{let{icon:t,boxElementDescriptor:r,iconElementDescriptor:n,sx:o,...a}=e;return(0,h.Y)(i.Flex,{center:!0,elementDescriptor:r,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,width:e.sizes.$16,height:e.sizes.$16,borderRadius:e.radii.$circle}),o],...a,children:(0,h.Y)(i.Icon,{elementDescriptor:n,icon:t,size:"lg",sx:e=>({color:e.colors.$neutralAlpha600})})})};var m=r(2663);let v=(0,l.withCardStateProvider)(e=>{let{close:t}=(0,d.D)(),{onReset:r=t}=e,o=(0,n.G)("organizationProfile.invitePage.title"),a=(0,n.G)("organizationProfile.invitePage.subtitle"),i=(0,l.useCardState)(),g=(0,c.X)({onNextStep:()=>i.setError(void 0)}),{organization:v}=(0,m.Z5)();return v?(0,h.FD)(c.s,{...g.props,children:[(0,h.Y)(s.M,{headerTitle:o,headerSubtitle:a,children:(0,h.Y)(p.B,{onSuccess:g.nextStep,onReset:r})}),(0,h.Y)(u.B,{title:o,onFinish:t,contents:(0,h.Y)(x,{})})]}):null}),x=()=>(0,h.FD)(i.Flex,{direction:"col",center:!0,gap:4,children:[(0,h.Y)(g,{boxElementDescriptor:a.$.invitationsSentIconBox,iconElementDescriptor:a.$.invitationsSentIcon,icon:o.A}),(0,h.Y)(i.Text,{localizationKey:(0,n.G)("organizationProfile.invitePage.successMessage")})]})},84925:(e,t,r)=>{r.d(t,{A:()=>l});var n,o=r(12115);function a(){return(a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var l=function(e){return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M6.75 11.25 10.25 8l-3.5-3.25"})))}}}]);

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.