1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="28a4a837-336c-4799-b653-1c33a480c4eb",e._sentryDebugIdIdentifier="sentry-dbid-28a4a837-336c-4799-b653-1c33a480c4eb")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8753],{38753:function(e,t,n){n.d(t,{JR:function(){return $},e$:function(){return F},ZP:function(){return W}});var i=n(67862),o=n(52322),r=n(81548),l=n(33379),s=n(2784),d=n(82778),a=n(76235),c=n(12866),u=n(46448),p=n(10285),v=n(64827),f=n(54878),m=n(53663),E=n(31383);function h(e,t){switch(t.type){case"BUTTON_KEYBOARD_ENTER":return{...e,isOpen:!e.isOpen,ariaActiveDescendant:t.ariaActiveDescendant};case"BUTTON_CLICK":return{...e,isOpen:!e.isOpen,ariaActiveDescendant:void 0};case"UPDATE_ARIA_ACTIVE_DESCENDANT":return{...e,ariaActiveDescendant:t.ariaActiveDescendant};case"START_LOADING":return{...e,loadingId:t.loadingId};case"STOP_LOADING":return{...e,loadingId:void 0,isOpen:!1,ariaActiveDescendant:void 0};case"CLOSE":return{...e,isOpen:!1,ariaActiveDescendant:void 0};default:return e}}function _(e,t){return"".concat(t,"-").concat(e)}let g=c.ZP.div.withConfig({displayName:"listbox__List",componentId:"sc-914f42ec-0"})(["outline:none;padding:",";"],e=>{let{theme:t}=e;return t.spacing[2]});function y(e){let t=(0,s.useRef)(null);return(0,s.useEffect)(()=>{var e;null===(e=t.current)||void 0===e||e.focus({preventScroll:!0})},[]),(0,o.jsx)(g,{...e,role:"listbox",tabIndex:0,ref:t,children:e.children})}let T=c.ZP.div.withConfig({displayName:"listbox__Option",componentId:"sc-914f42ec-1"})(["",""],e=>{let{$isHighlighted:t,theme:n}=e;return t&&(0,E.iv)(["outline:1px solid ",";"],n.colors.outline.focus)});var I=n(31476);let S=(0,c.ZP)(function(e){return(0,o.jsx)(I.Z,{...e,url:"https://static.swapcard.com/public/images/e633b4a370004d618f33c59a6471cb03.svg"})}).withConfig({displayName:"high-priority__StyledIcon",componentId:"sc-81058c90-0"})([""]),b=(0,c.ZP)(function(e){return(0,o.jsx)(I.Z,{...e,url:"https://static.swapcard.com/public/images/5f372e5cce644ef1bd0d2d62e4ab1bc6.svg"})}).withConfig({displayName:"medium-priority__StyledIcon",componentId:"sc-1ba7ddc-0"})([""]);var A=n(89370),C=n(39394);let D={[C.SAt.MUST_MEET]:(0,o.jsx)(S,{}),[C.SAt.NICE_TO_MEET]:(0,o.jsx)(b,{}),[C.SAt.EXCLUDE_FROM_MEETINGS]:(0,o.jsx)(A.Z,{})};function w(){let e=(0,m.T_)();return{[C.SAt.MUST_MEET]:e.mustMeet,[C.SAt.NICE_TO_MEET]:e.niceToMeet,[C.SAt.EXCLUDE_FROM_MEETINGS]:e.exclude}}var x=n(62265),O=n(96413),N=n(70231);let M=(0,c.ZP)(N.Z).withConfig({displayName:"button-item__CheckMarkIcon",componentId:"sc-881124e3-0"})(["color:",";"],e=>{let{theme:t}=e;return t.colors.success.base}),P=c.ZP.div.withConfig({displayName:"button-item__OnDesktop",componentId:"sc-881124e3-1"})(["display:none;@media screen and (min-width:","px){display:initial;}"],e=>{let{theme:t}=e;return t.breakPoints.sm}),j=c.ZP.div.withConfig({displayName:"button-item__OnMobile",componentId:"sc-881124e3-2"})(["@media screen and (min-width:","px){display:none;}"],e=>{let{theme:t}=e;return t.breakPoints.sm}),B=(0,c.ZP)(function(e){let{isHighlighted:t,...n}=e;return(0,o.jsx)(T,{role:"option",$isHighlighted:t,...n})}).withConfig({displayName:"button-item__ActionButton",componentId:"sc-881124e3-3"})(["padding:",";color:",";font-size:0.875rem;cursor:pointer;display:grid;grid-template-columns:",";gap:",";align-items:center;border-radius:",';width:100%;box-sizing:border-box;&[aria-disabled="true"]{color:',";cursor:not-allowed;}","{font-size:1rem;}"],e=>{let{theme:t}=e;return t.spacing[2]},e=>{let{theme:t}=e;return t.colors.tertiary.base},e=>{let{$gridTemplate:t}=e;return t},e=>{let{theme:t}=e;return t.spacing[2]},e=>{let{theme:t}=e;return t.radius.sm},e=>{let{theme:t}=e;return t.colors.surface.onDisabled},I.Z);function L(e){let{node:t,children:n}=e;return(0,o.jsxs)("div",{children:[(0,o.jsx)(P,{children:(0,o.jsx)(x.ZP,{position:"LEFT",messageProps:{style:{maxWidth:360,textAlign:"center"}},node:t,children:n})}),(0,o.jsx)(j,{children:(0,o.jsx)(x.ZP,{position:"TOP",messageProps:{style:{maxWidth:280,textAlign:"center"}},node:t,children:n})})]})}var k=function(e){var t,n;let{value:i,personWithEvent:r,view:l,...d}=e,a=w(),c=(0,m.T_)(),u=null===(t=r.hostedBuyersSelection)||void 0===t?void 0:t.choice,p=[];i&&D[i]&&p.push({node:(0,o.jsx)(s.Fragment,{children:D[i]},"icon"),gridTemplate:"auto"}),p.push({node:(0,o.jsx)(s.Fragment,{children:null!==(n=i&&a[i])&&void 0!==n?n:c.clearSelection},"label"),gridTemplate:"1fr"}),d.isLoading?p.push({node:(0,o.jsx)(O.Z,{},"loading"),gridTemplate:"auto"}):u===i?p.push({node:(0,o.jsx)(M,{},"checkmark"),gridTemplate:"auto"}):p.push({node:(0,o.jsx)("span",{},"spacer"),gridTemplate:"1rem"});let v=p.map(e=>{let{gridTemplate:t}=e;return t}).join(" "),f=p.map(e=>{let{node:t}=e;return t});return d["aria-disabled"]?(0,o.jsx)(L,{node:(0,o.jsx)(B,{$gridTemplate:v,...d,children:f}),children:c.hostedBuyerLimitReached(l.condition.selectedCount)}):(0,o.jsx)(B,{$gridTemplate:v,...d,children:f})};function U(){let e=(0,i._)(["\n fragment PersonHostedBuyersSelectionFragment on Core_EventPersonWithEvent {\n id\n hostedBuyersSelection(viewId: $viewId) @include(if: $withHostedBuyerView) {\n choice\n }\n }\n"]);return U=function(){return e},e}function Z(){let e=(0,i._)(["\n fragment PersonHostedBuyersSelectionViewFragment on Core_EventHostedBuyersListView {\n id\n condition {\n maxToSelectLimit\n selectedCount\n status\n }\n }\n"]);return Z=function(){return e},e}function R(){let e=(0,i._)(["\n mutation SelectHostedMeetingConditionCandidate(\n $eventId: ID!\n $viewId: ID!\n $eventProfileId: ID!\n $selection: Core_HostedMeetingCandidateSelectionEnum\n $withHostedBuyerView: Boolean = true\n ) {\n payload: Core_selectHostedMeetingConditionCandidate(\n input: {\n viewId: $viewId\n selection: $selection\n eventProfileId: $eventProfileId\n }\n ) {\n errors {\n message\n }\n eventProfile {\n id\n withEvent(eventId: $eventId) {\n ...PersonHostedBuyersSelectionFragment\n }\n }\n }\n }\n ","\n"]);return R=function(){return e},e}let $=(0,r.Ps)(U()),F=(0,r.Ps)(Z()),H=(0,r.Ps)(R(),$),G=(0,c.ZP)(p.Z).withConfig({displayName:"hosted-buyers-selection__Chevron",componentId:"sc-dfa20685-0"})(["transition:150ms;transform:",";font-size:0.75rem;"],e=>{let{$open:t}=e;return t?"rotate(180deg)":""}),V={"must-meet":C.SAt.MUST_MEET,"nice-to-meet":C.SAt.NICE_TO_MEET,"exclude-from-meetings":C.SAt.EXCLUDE_FROM_MEETINGS,"clear-selection":null},K=Object.fromEntries(Object.entries(V).map(e=>{let[t,n]=e;return[n,t]}));function X(e){var t;return null!==(t=V[e])&&void 0!==t?t:null}function z(e,t,n){return!!t.condition.maxToSelectLimit&&t.condition.selectedCount>=t.condition.maxToSelectLimit&&n!==C.SAt.MUST_MEET&&n!==C.SAt.NICE_TO_MEET&&(e===C.SAt.MUST_MEET||e===C.SAt.NICE_TO_MEET)}var W=function(e){var t,n;let{personWithEvent:i,eventId:r,view:c,onSelected:p=()=>void 0}=e,E=(0,d.h)(),{showToast:g}=(0,a.pm)(),T=(0,m.T_)(),[I]=(0,l.D)(H,{onError:E,onCompleted:e=>{var t;let{payload:n}=e;if(null===(t=n.errors)||void 0===t?void 0:t.length)for(let e of n.errors)g(e.message,{type:a.wD.ERROR});else g(T.yourSelectionHasBeenSaved),p()}}),S=w(),b=(0,s.useMemo)(()=>{var e,t,n,o,r,l;let s=[{value:K[C.SAt.MUST_MEET],selected:(null===(e=i.hostedBuyersSelection)||void 0===e?void 0:e.choice)===C.SAt.MUST_MEET,disabled:z(C.SAt.MUST_MEET,c,null===(t=i.hostedBuyersSelection)||void 0===t?void 0:t.choice)},{value:K[C.SAt.NICE_TO_MEET],selected:(null===(n=i.hostedBuyersSelection)||void 0===n?void 0:n.choice)===C.SAt.NICE_TO_MEET,disabled:z(C.SAt.MUST_MEET,c,null===(o=i.hostedBuyersSelection)||void 0===o?void 0:o.choice)},{value:K[C.SAt.EXCLUDE_FROM_MEETINGS],selected:(null===(r=i.hostedBuyersSelection)||void 0===r?void 0:r.choice)===C.SAt.EXCLUDE_FROM_MEETINGS,disabled:!1}];return(null===(l=i.hostedBuyersSelection)||void 0===l?void 0:l.choice)&&s.push({value:"clear-selection",selected:!1,disabled:!1}),s},[null===(t=i.hostedBuyersSelection)||void 0===t?void 0:t.choice,c]),{buttonProps:A,popoverProps:x,listBoxProps:O,optionProps:N}=function(e){let{options:t,onSelect:n}=e,i=(0,s.useId)(),o=(0,s.useId)(),[{isOpen:r,ariaActiveDescendant:l,loadingId:d},a]=(0,s.useReducer)(h,{isOpen:!1,ariaActiveDescendant:void 0,loadingId:void 0}),{triggerProps:c,popoverProps:u}=(0,f.S)({placement:"bottom-end",triggers:[],open:r,onOpenChange:e=>{var t;e||(a({type:"CLOSE"}),null===(t=document.getElementById(o))||void 0===t||t.focus({preventScroll:!0}))}});return{buttonProps:(0,s.useMemo)(()=>({ref:c.ref,id:o,"aria-haspopup":"listbox","aria-expanded":r,"aria-controls":i,onClick:e=>{e.preventDefault(),e.stopPropagation(),a({type:"BUTTON_CLICK"})},onKeyDown:e=>{if("Enter"===e.key||" "===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){var n;e.preventDefault();let o=null===(n=t.find(e=>e.selected))||void 0===n?void 0:n.value;a({type:"BUTTON_KEYBOARD_ENTER",ariaActiveDescendant:o?_(o,i):_(t[0].value,i)})}}}),[r,i,o,t,c.ref]),popoverProps:u,listBoxProps:(0,s.useMemo)(()=>({id:i,"aria-labelledby":o,"aria-activedescendant":l,"aria-busy":!!d,onKeyDown:async e=>{var r,s,c;let u=t.findIndex(e=>_(e.value,i)===l);if("ArrowDown"===e.key){e.preventDefault();let n=(u+1)%t.length;a({type:"UPDATE_ARIA_ACTIVE_DESCENDANT",ariaActiveDescendant:_(t[n].value,i)})}else if("ArrowUp"===e.key){e.preventDefault();let n=(u-1+t.length)%t.length;a({type:"UPDATE_ARIA_ACTIVE_DESCENDANT",ariaActiveDescendant:_(t[n].value,i)})}else if("Escape"===e.key||"Tab"===e.key)e.preventDefault(),a({type:"CLOSE"}),null===(r=document.getElementById(o))||void 0===r||r.focus();else if("Enter"===e.key||" "===e.key){if(e.preventDefault(),d)return;let r=t.find(e=>_(e.value,i)===l);if(null==r?void 0:r.selected){a({type:"CLOSE"}),null===(s=document.getElementById(o))||void 0===s||s.focus();return}r&&!r.disabled&&(a({type:"START_LOADING",loadingId:r.value}),await n(r.value),a({type:"STOP_LOADING"}),null===(c=document.getElementById(o))||void 0===c||c.focus())}}}),[i,o,l,t,n,d]),optionProps:(0,s.useCallback)(e=>{let o=t.find(t=>t.value===e);if(!o)throw Error('Option with value "'.concat(e,'" not found'));
1return{id:_(e,i),"aria-selected":o.selected,"aria-disabled":o.disabled,isLoading:d===e,isHighlighted:l===_(e,i),onClick:async t=>{if(t.preventDefault(),t.stopPropagation(),o.selected){a({type:"CLOSE"});return}o.disabled||d||(a({type:"START_LOADING",loadingId:e}),await n(e),a({type:"STOP_LOADING"}))}}},[l,i,d,n,t])}}({options:b,onSelect:async e=>{let t=X(e);await I({variables:{eventProfileId:i.id,selection:t,eventId:r,viewId:c.id}})}});if(!i.hostedBuyersSelection)return null;let M=i.hostedBuyersSelection.choice;return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.ZP,{...A,variant:M?"OUTLINED_TONAL":"OUTLINED",icon:M&&D[M],secondaryIcon:(0,o.jsx)(G,{$open:A["aria-expanded"]}),disabled:c.condition.status!==C.jLg.SELECTION,children:null!==(n=M&&S[M])&&void 0!==n?n:T.selectPriority}),(0,o.jsx)(f.Z,{...x,children:(0,o.jsx)(y,{...O,children:b.map(e=>{let t=X(e.value),n=N(e.value);return(0,o.jsxs)(s.Fragment,{children:["clear-selection"===e.value&&(0,o.jsx)(v.Z,{margin:[2,"auto"]}),(0,o.jsx)(k,{...n,value:t,personWithEvent:i,view:c})]},n.id)})})})]})}},89370:function(e,t,n){var i=n(52322),o=n(12866),r=n(31476);let l=(0,o.ZP)(function(e){return(0,i.jsx)(r.Z,{...e,url:"https://static.swapcard.com/public/images/fc480c39984d46f3a1611461ac0c8a15.svg"})}).withConfig({displayName:"block__StyledIcon",componentId:"sc-71c01486-0"})([""]);t.Z=l}}]);
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.