1function e(e,t,r,a){Object.defineProperty(e,t,{get:r,set:a,enumerable:!0,configurable:!0})}var t=globalThis,r=t.parcelRequire94c2,a=r.register;a("3kK7t",function(t,a){Object.defineProperty(t.exports,"__esModule",{value:!0,configurable:!0}),e(t.exports,"default",()=>v);var l=r("ayMG0"),n=r("acw62"),o=r("36IHg"),s=r("aACZr"),i=r("li9Zg"),u=r("kG3Fh"),c=r("gJPE6"),d=r("lqeyk"),f=r("iL5oi"),x=r("dklJA"),m=r("dtKoB"),h=r("5aE2v"),p=r("2IoLL"),g=r("hW7sX"),b=r("7xuAh");function v(){(0,s.default)((0,m.default)("Transfer quote"));let{quotePublicKey:e}=(0,o.useParams)(),{confirm:t}=(0,h.useModal)(),r=(0,p.useToast)(),a=(0,b.default)(),{call:v,isLoading:y}=(0,g.useApi)("hq.quotes.team.update",{publicKey:e}),{call:w}=(0,g.useApi)("hq.quotes.transfer.teams.list"),[j,k]=(0,n.useState)(null);async function N(t){let{teams:r}=await w({quotePublicKey:e,search:t});return r.map(e=>({id:e.id,name:e.domain}))}async function C(){if(!await t({cancelText:"Cancel",content:`Do you want to transfer this quote to ${j}`,title:"Are you sure?",type:"warning"}))return;let l=await v({teamId:j});l.success?(r({message:"The quote has been transferred to the selected team",title:"Quote transferred",type:"success"}),a(["hq.quotes.index"])):(r({message:l.error,title:"Something went wrong",type:"error"}),a(["hq.quotes.show",{quotePublicKey:e}]))}return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(d.default,{children:[(0,l.jsx)(d.default.BackButton,{to:["hq.quotes.show",{quotePublicKey:e}],children:"Quote"}),(0,l.jsxs)(d.default.Title,{children:["Transfer Quote ",e]})]}),(0,l.jsx)(c.default,{narrow:!0,children:(0,l.jsx)(x.default,{children:(0,l.jsxs)(x.default.Content,{children:[(0,l.jsx)(u.default,{label:(0,m.default)("Search for the team you want to transfer this quote to"),children:(0,l.jsx)(i.default,{disabled:y,getOptions:N,onChange:k,placeholder:(0,m.default)("Search team"),value:j})}),(0,l.jsx)(f.default,{disabled:!j,loading:y,onClick:C,children:(0,m.default)("Transfer")})]})})})]})}}),a("aACZr",function(t,a){e(t.exports,"default",()=>o);var l=r("acw62"),n={restoreOnUnmount:!1},o="u">typeof document?function(e,t){void 0===t&&(t=n);var r=(0,l.useRef)(document.title);document.title!==e&&(document.title=e),(0,l.useEffect)(function(){return t&&t.restoreOnUnmount?function(){document.title=r.current}:void 0},[])}:function(e){}}),a("li9Zg",function(t,a){e(t.exports,"default",()=>p),e(t.exports,"ControlledAutocompleteInput",()=>g);var l=r("ayMG0"),n=r("kausY"),o=r("ckP3P"),s=r("8kHHN"),i=r("6i6lD"),u=r("2bwVh"),c=r("3L9mY"),d=r("7QGb5"),f=r("acw62"),x=r("1u0KT"),m=r("22i8b"),h=r("01O3F");function p({autoSelectOnBlur:e,disabled:t,getOptions:r,nullable:a,onChange:c,options:m,placeholder:g,required:v,value:y}){let[w,j]=(0,f.useState)(y??""),k=(0,f.useRef)(w),[N,C]=(0,f.useState)(y??null),[E,q]=(0,f.useState)(m??[]),[O,L]=(0,f.useState)(!1),S=(0,f.useRef)(null),[T,R]=(0,f.useState)({height:0,left:0,top:0,width:0});a??=!1;let P=(0,f.useRef)(r);(0,f.useEffect)(()=>{k.current=w},[w]),(0,f.useEffect)(()=>{P.current=r},[r]);let M=(0,f.useCallback)(()=>{let e=S.current?.getBoundingClientRect();e&&R({height:e.height,left:e.left,top:e.top,width:e.width})},[S]);(0,f.useEffect)(M,[w,M]),(0,f.useEffect)(()=>{if(!O)return;M();let e=()=>{M()};return document.addEventListener("scroll",e,!0),()=>{document.removeEventListener("scroll",e)}},[O,M]),(0,f.useEffect)(()=>{c(N??null)},[c,N]),(0,f.useEffect)(()=>{C(y??null)},[y]),(0,f.useEffect)(()=>{j(y??"")},[y]),(0,f.useEffect)(()=>{m&&q(m)},[m]),(0,u.useDebouncedEffect)(()=>{P.current?.(w).then(e=>{k.current===w&&q((d&&d.__esModule?d.default:d)([...e,...b(E.filter(e=>!e.noCache),w)],"id"))})},[w],200);let A=(0,f.useCallback)(()=>{L(!0)},[]),B=(0,f.useCallback)(()=>{if(L(!1),!e)return;let t=E.find(e=>e.name===w);t&&C(t.id)},[e,E,w]),I=(0,f.useMemo)(()=>b(E,w),[w,E]);return(0,l.jsx)(n.Combobox,{disabled:t,nullable:a,onChange:C,value:N,children:(0,l.jsxs)("div",{ref:S,children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(n.ComboboxInput,{className:"dark:focus:ring-secondary focus:border-primary dark:focus:border-secondary focus:ring-primary block w-full grow rounded-md border border-gray-200 bg-white p-2 px-4 text-sm transition duration-100 ease-in-out focus:ring-1 disabled:cursor-not-allowed disabled:border-gray-300 disabled:bg-gray-50 group-[.has-error]:border-red-300 group-[.has-error]:pr-10 group-[.has-error]:text-red-900 group-[.has-error]:placeholder:text-red-300 group-[.has-error]:focus:border-red-500 group-[.has-error]:focus:outline-none group-[.has-error]:focus:ring-red-500 dark:border-gray-700 dark:bg-gray-800 dark:text-white group-[.has-error]:dark:border-red-500 group-[.has-error]:dark:text-red-200 group-[.has-error]:dark:focus:border-red-500",displayValue:e=>E.find(t=>
1t.id===e)?.name??"",onBlur:B,onChange:e=>{j(e.target.value)},onFocus:A,placeholder:g,required:v}),(0,l.jsx)(n.ComboboxButton,{className:"absolute inset-y-0 right-0 flex items-center rounded-r-md px-2 focus:outline-none",onClick:M,children:a&&null!==N?(0,l.jsx)(i.default,{"aria-hidden":"true",className:"size-5 text-gray-400",onClick:function(e){e.preventDefault(),e.stopPropagation(),C(null)}}):(0,l.jsx)(s.default,{"aria-hidden":"true",className:"size-5 text-gray-400"})})]}),I.length>0&&(0,x.createPortal)((0,l.jsx)(n.ComboboxOptions,{className:"fixed mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-gray-800",style:{left:T.left,top:T.top+T.height,width:T.width,zIndex:(0,h.totalZIndex)(S.current)+1},children:I.map(e=>(0,l.jsx)(n.ComboboxOption,{className:({focus:e})=>(0,h.classNames)("flex gap-2 items-center cursor-default select-none py-2 px-4",e?"bg-primary-600 text-white":"text-gray-900 dark:text-white"),value:e.id,children:({focus:t,selected:r})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:(0,h.classNames)("flex-1 block truncate",r&&"font-semibold"),children:e.name}),r&&(0,l.jsx)("span",{className:(0,h.classNames)("-mr-2",t?"text-white":"text-primary-600 dark:text-primary-100"),children:(0,l.jsx)(o.default,{"aria-hidden":"true",className:"size-5"})})]})},e.id))}),document.body)]})})}function g({control:e,name:t,...r}){return(0,l.jsx)(m.Controller,{control:e,name:t,render:({field:{onChange:e,value:t}})=>(0,l.jsx)(p,{onChange:e,value:t??null,...r})})}function b(e,t){return t?e.map(e=>[e,(0,c.fuzzy)(t,e.name)]).filter(([e,t])=>t>.3).sort((e,t)=>t[1]-e[1]).map(([e])=>e):e}}),a("ckP3P",function(t,a){e(t.exports,"default",()=>n);var l=r("acw62"),n=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))})}),a("8kHHN",function(t,a){e(t.exports,"default",()=>n);var l=r("acw62"),n=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",clipRule:"evenodd"}))})}),a("6i6lD",function(t,a){e(t.exports,"default",()=>n);var l=r("acw62"),n=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z",clipRule:"evenodd"}))})}),a("gJPE6",function(t,a){e(t.exports,"default",()=>u);var l=r("ayMG0"),n=r("acw62"),o=r("01O3F"),s=r("bsRud"),i=r("jFdmN");function u({children:e,narrow:t}){return(0,l.jsx)("div",{className:"px-4 py-8 sm:px-6 lg:px-8 text-black dark:text-white relative",children:(0,l.jsx)("div",{className:(0,o.classNames)("space-y-6",t&&"max-w-4xl mx-auto"),children:(0,l.jsx)(n.Suspense,{fallback:(0,l.jsx)(s.default,{children:(0,l.jsx)(i.default,{})}),children:e})})})}u.Title=({children:e,right:t})=>(0,l.jsxs)("div",{className:"mt-10 mb-6 flex items-center",children:[(0,l.jsx)("h1",{className:"text-3xl font-semibold flex-1",children:e}),t]}),u.Heading=({children:e,right:t})=>(0,l.jsxs)("div",{className:"mt-10 mb-6 flex items-center",children:[(0,l.jsx)("h2",{className:"text-lg font-semibold flex-1",children:e}),t]})}),a("lqeyk",function(t,a){e(t.exports,"default",()=>c);var l=r("ayMG0"),n=r("jLakY"),o=r("7WpdU"),s=r("01O3F"),i=r("5goL7");function u({allowOverflow:e=!1,children:t}){return(0,l.jsx)("header",{className:(0,s.classNames)(`whitespace-nowrap lg:sticky top-0 bg-gray-50 dark:bg-slate-900 drop-shadow-sm z-20 text-sm font-semibold text-gray-800 2 dark:text-white shrink-0`,(0,s.matchAllChildren)(t,u.Title)&&"hidden lg:block",!e&&"overflow-x-auto"),children:(0,l.jsx)("div",{className:(0,s.classNames)("min-h-[3rem] bg-white/60 dark:bg-black/20 px-4 lg:px-8 flex items-center space-y-0",!e&&"overflow-x-auto"),children:t})})}u.Navigation=({items:e})=>(0,l.jsx)("ul",{className:"flex flex-1 gap-x-6 text-gray-400",role:"list",children:e.map(e=>(0,l.jsx)("li",{className:(0,s.classNames)(e.right&&"ml-auto"),children:(0,l.jsxs)(i.NavLink,{className:({isActive:e})=>(0,s.classNames)(e?"text-primary-400 dark:text-white":"hover:text-primary-400 dark:hover:text-white"),newTab:e.newTab,to:e.to,children:[e.name,void 0!==e.count&&(0,l.jsx)("span",{className:(0,s.classNames)("ml-2 roun
2ded-full px-2 text-xs font-semibold border dark:border-none","red"===e.countColor?"bg-red-100 dark:bg-red-700 text-red-800 dark:text-red-100 border-red-700/50":"bg-gray-100 dark:bg-gray-600 text-gray-600 dark:text-gray-100 border-gray-700/50"),children:e.count.toLocaleString()})]})},e.name))}),u.Title=({children:e,className:t})=>{let{configureLayout:r}=(0,o.useApplicationLayout)();return"string"==typeof e&&r({currentTitle:e}),(0,l.jsx)("h2",{className:(0,s.classNames)("mr-8",t),children:e})},u.Left=({children:e,className:t,scroll:r})=>(0,l.jsx)("div",{className:(0,s.classNames)("flex-grow flex gap-x-2 items-center",r&&"overflow-x-scroll",t),children:e}),u.Right=({children:e,className:t})=>(0,l.jsx)("div",{className:(0,s.classNames)("ml-4",t),children:e}),u.BackButton=({children:e,to:t})=>(0,l.jsx)(i.default,{to:t,children:(0,l.jsxs)("span",{className:"hover:text-primary-400 mr-3 flex flex-row items-center gap-1 font-normal dark:hover:text-white",children:[(0,l.jsx)(n.default,{className:"h-5"}),e]})});var c=u}),a("jLakY",function(t,a){e(t.exports,"default",()=>n);var l=r("acw62"),n=l.forwardRef(function({title:e,titleId:t,...r},a){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",d:"M11.78 5.22a.75.75 0 0 1 0 1.06L8.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06l-4.25-4.25a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.06 0Z",clipRule:"evenodd"}))})}),a("eq6CV",function(e,t){var a=r("57wYk"),l=r("iMn5C"),n=r("5tDQy"),o=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?l(e):n(e)}}),a("57wYk",function(e,t){e.exports=r("23YZo").Symbol}),a("23YZo",function(e,t){var a=r("ljJ8G"),l="object"==typeof self&&self&&self.Object===Object&&self;e.exports=a||l||Function("return this")()}),a("ljJ8G",function(e,r){e.exports="object"==typeof t&&t&&t.Object===Object&&t}),a("iMn5C",function(e,t){var a=r("57wYk"),l=Object.prototype,n=l.hasOwnProperty,o=l.toString,s=a?a.toStringTag:void 0;e.exports=function(e){var t=n.call(e,s),r=e[s];try{e[s]=void 0;var a=!0}catch(e){}var l=o.call(e);return a&&(t?e[s]=r:delete e[s]),l}}),a("5tDQy",function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}}),a("lsJ54",function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}),a("o8HxT",function(e,t){e.exports=Array.isArray}),a("8l89S",function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}}),a("91Qdd",function(e,t){e.exports=function(e){return function(t){return e(t)}}}),a("jIny1",function(e,t){var a=r("ljJ8G"),l=t&&!t.nodeType&&t,n=l&&e&&!e.nodeType&&e,o=n&&n.exports===l&&a.process;e.exports=function(){try{var e=n&&n.require&&n.require("util").types;if(e)return e;return o&&o.binding&&o.binding("util")}catch(e){}}()}),a("9dr3u",function(e,t){var a=r("eq6CV"),l=r("8l89S");e.exports=function(e){return"symbol"==typeof e||l(e)&&"[object Symbol]"==a(e)}}),a("l6E2L",function(e,t){var a=r("kJ9w3");e.exports=function(e){return null==e?"":a(e)}}),a("kJ9w3",function(e,t){var a=r("57wYk"),l=r("i46jW"),n=r("o8HxT"),o=r("9dr3u"),s=1/0,i=a?a.prototype:void 0,u=i?i.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(n(t))return l(t,e)+"";if(o(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}}),a("i46jW",function(e,t){e.exports=function(e,t){for(var r=-1,a=null==e?0:e.length,l=Array(a);++r<a;)l[r]=t(e[r],r,e);return l}}),a("ielIK",function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}}); 3//# sourceMappingURL=Transfer.2173c622.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.