1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6260],{7839:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/studio/edit/track/success/[trackId]",function(){return n(93883)}])},20237:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(85893),o=n(15512),i=n(11355),a=n(96087),l=n(68163),u=n(11163),s=n(67294),c=function(e){var t=e.confirm,n=e.closeModal,i=e.confirmText,a=void 0===i?"Confirm":i,l=e.isLoading;return(0,r.jsxs)("div",{className:"mt-4 flex justify-between",children:[(0,r.jsx)(o.zx,{height:10,className:"bg-brand-black-light text-black hover:bg-slate-200 focus-visible:ring-slate-200",onClick:n,children:"Cancel"}),(0,r.jsx)(o.zx,{height:10,onClick:t,isLoading:l,className:"px-4",children:a})]})},d=function(e){var t=e.closeModal;return(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(o.zx,{onClick:t,children:"Ok"})})};function f(e){var t=e.headline,n=e.showModal,c=e.setShowModal,d=e.children,f=e.message,h=e.continueUrl,m=e.description,v=e.width,g=void 0===v?"max-w-md":v,w=e.confirm,x=e.confirmText,b=e.isLoading,y=e.showButtons,E=void 0===y||y,T=function(){c(!1),h&&j.push(h)},j=(0,u.useRouter)();return(0,r.jsx)(i.u,{appear:!0,show:n,as:s.Fragment,children:(0,r.jsxs)(a.V,{as:"div",className:"relative z-40",onClose:T,children:[(0,r.jsx)(i.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),(0,r.jsx)("div",{className:"fixed inset-0 flex min-h-full items-center justify-center overflow-y-auto p-4 text-center",children:(0,r.jsx)(i.u.Child,{as:s.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,r.jsxs)(a.V.Panel,{className:"w-full ".concat(g," transform overflow-hidden rounded-2xl bg-white p-5 text-left align-middle shadow-xl transition-all"),children:[(0,r.jsxs)(a.V.Title,{as:"h3",className:"mb-4 flex items-center justify-between text-lg font-medium leading-6 text-gray-900",children:[t,(0,r.jsx)(o.Av,{onClick:T,children:(0,r.jsx)(l.Z,{className:"h-8"})})]}),m&&(0,r.jsx)(a.V.Description,{className:"text-base italic leading-6 text-gray-900",children:m}),f?(0,r.jsx)("p",{className:"mt-2 max-h-96 overflow-y-auto text-sm text-gray-500",children:f}):d,E&&(0,r.jsx)(p,{confirm:w,confirmText:x,isLoading:b,closeModal:T})]})})})]})})}var p=function(e){var t=e.confirm,n=e.closeModal,o=e.confirmText,i=e.isLoading;return t?(0,r.jsx)(c,{confirm:t,confirmText:o,closeModal:n,isLoading:i}):(0,r.jsx)(d,{closeModal:n})}},17712:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(85893),o=function(e){var t=e.error;return(0,r.jsx)("span",{className:"h-3 self-start pl-3 text-sm text-red-500",children:t})};t.Z=function(e){var t=e.error,n=e.title,i=e.children,a=e.fullHeight,l=void 0!==a&&a,u=e.hideSRLabel,s=void 0!==u&&u,c=e.showLabel,d=void 0!==c&&c,f=e.className,p=void 0===f?"":f;return(0,r.jsxs)("div",{className:p+" relative flex w-full flex-col px-1 pt-3 \n ".concat(l?" h-full":""),children:[!s&&(0,r.jsx)("label",{className:"sr-only",children:n}),d&&(0,r.jsx)("label",{className:"pl-1 text-sm font-light",children:n}),i,(0,r.jsx)(o,{error:t})]})}},81967:function(e,t,n){"use strict";n.d(t,{FC:function(){return u},T$:function(){return o},YQ:function(){return a},lR:function(){return i}});var r=n(85893),o=function(e){return"albumId"in e?{contentType:"track",parentId:e.albumId}:"podcastId"in e?{contentType:"episode",parentId:e.podcastId}:"artistId"in e?{contentType:"album"}:{contentType:"podcast"}},i=function(e){var t=e.isDraft,n=e.publishedAt;if(t)return"draft";var r=new Date;return new Date(n)>r?"scheduled":"published"},a=function(e){return"name"in e?e.name:e.title},l=function(e){var t=e.firstLine,n=e.secondLine;return(0,r.jsxs)("div",{className:"mb-10 flex flex-col gap-2",children:[(0,r.jsx)("span",{children:t}),n&&(0,r.jsx)("span",{children:n})]})}
1,u=function(e,t,n,o){if("isProcessing"in e&&e.isProcessing)return(0,r.jsx)(l,{firstLine:"Your content is still being processed. Please wait a few minutes and try again."});if("compressorError"in e&&e.compressorError)return(0,r.jsx)(l,{firstLine:"Oops looks like there was a processing error, please delete this ".concat(n," and try uploading again."),secondLine:"If the problem persists, please email [email protected] with your username and attach the file you're trying to upload."});var i="album"===n,a="podcast"===n,u="This will not affect any other ".concat(n,"s from the same ").concat(i?"release":"podcast","."),s={draft:"Are you sure you want to publish ".concat(o,"?"),published:"Are you sure you want to unpublish ".concat(o,"?"),scheduled:"Are you sure you want to unschedule ".concat(o,"?")},c=i||a?function(e,t,n){var r=t?"tracks":"episodes";return"This will ".concat("draft"===e?"publish":"published"===e?"unpublish":"unschedule"," all ").concat(r," associated with this ").concat(n,".")}(t,i,n):u;return(0,r.jsx)(l,{firstLine:s[t],secondLine:c})}},50947:function(e,t,n){"use strict";n.d(t,{V:function(){return d},Y:function(){return p}});var r=n(85893),o=n(81967),i=n(42225),a=n(20237),l=n(17712),u=n(15512),s=n(11163),c=n(67294),d={draft:"Publish",published:"Unpublish",scheduled:"Unschedule"},f={draft:"Yes, Go Live",published:"Yes, Unpublish",scheduled:"Yes, Unschedule"},p=function(e){var t=e.content,n=e.className,p=e.width,h=e.shouldNavigateToParentDetailPage,m=void 0!==h&&h,v=(0,o.lR)(t),g=(0,o.YQ)(t),w=(0,o.T$)(t),x=w.contentType,b=w.parentId,y=(0,c.useMemo)((function(){return{modalText:(0,o.FC)(t,v,x,g),userCallToAction:d[v]}}),[]),E=y.modalText,T=y.userCallToAction,j=(0,c.useState)(void 0),k=j[0],C=j[1],P=(0,c.useState)(!1),D=P[0],R=P[1],N=(0,s.useRouter)(),A=(0,i.dp)({onSuccess:function(){if(R(!1),m){var e="";e="track"===x?"/studio/albums/".concat(b):"episode"===x?"/studio/podcasts/".concat(b):"/studio/".concat(x,"s/").concat(t.id),N.push(e)}},onError:function(){C("Error, couldn't ".concat(T," ").concat(x))}}),F=A.mutateAsync,L=A.isLoading;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.Yz,{className:n,onClick:function(){R(!D)},isLoading:L,width:p,children:(0,r.jsx)(u.xv,{className:"font-semibold",children:T})}),(0,r.jsxs)(a.Z,{showModal:D,setShowModal:R,headline:"".concat(T," ").concat(g),confirm:function(){if(x){var e=!0;"Publish"===T&&(e=!1),"Unschedule"===T&&(e=!0),F({contentId:t.id,isDraft:e,contentType:x,parentId:b,publishedAt:void 0})}else C("Error, couldn't determine content type")},confirmText:f[v],children:[E,k&&(0,r.jsx)(l.X,{error:k})]})]})}},32655:function(e,t,n){"use strict";n.d(t,{M:function(){return i}});var r=n(85893),o=n(15512),i=function(e){var t=e.header,n=e.subHeader,i=e.buttons,a=e.customButton;return(0,r.jsxs)("div",{className:"flex h-full w-full flex-col items-center gap-6",children:[(0,r.jsx)("h1",{className:"mt-auto text-center text-3xl font-bold",children:t}),(0,r.jsx)("p",{className:"text-center text-lg",children:n}),(0,r.jsxs)("div",{className:"mb-auto mt-5 flex flex-col gap-1 text-white",children:[a,i.map((function(e,t){return(0,r.jsx)(o.Yz,{href:e.href,width:"w-72",children:e.label},t)}))]})]})}},93883:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return u}});var r=n(85893),o=n(50947),i=n(32655),a=n(63956),l=(n(67294),function(e){var t=e.track;return(0,r.jsx)(i.M,{header:"Track edited: ".concat(t.title),subHeader:t.isDraft?"This track is still in draft. It will not be live until you publish it. What would you like to do next?":"What would you like to do next?",buttons:[{label:"Add another track",href:"/studio/create/track/".concat(t.albumId)},{label:"View album in studio",href:"/studio/albums/".concat(t.albumId)},{label:"Back to Studio",href:"/studio"}],customButton:(0,r.jsx)(o.Y,{content:t,width:"w-full",shouldNavigateToParentDetailPage:!0})})});l.getLayout=function(e){return(0,r.jsx)(a.Z,{children:e})};var u=!0;t.default=l},39516:function(e,t,n){"use strict";n.d(t,{d:function(){return f},f:function(){return d}});var r=n(67294),o=n(19946),i=n(12351),a=n(16723),l=n(23784),u=n(73781);let s=(0,r.createContext)(null);function c(){let e=(0,r.useContext)(s);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,c),e}return e}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)((()=>function(e){let n=(0,u.z)((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),o=(0,r.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return r.createElement(s.Provider,{value:o},e.children)}),[t])]}let f=(0,i.yV)((function(e,t){let n=c(),r=`headlessui-description-${(0,o.M)()}`,u=(0,l.T)(t);(0,a.e)((()=>n.register(r)),[r,n.register]);let s=e,d={ref:u,...n.props,id:r};return(0,i.sY)({ourProps:d,theirProps:s,slot:n.slot||{},defaultTag:"p",name:n.name||"Description"})}))},96087:function(e,t,n){"use strict";n.d(t,{V:function(){return ue}});var r=n(67294),o=n(32984),i=n(12351),a=n(23784),l=n(61363),u=n(64103),s=n(19946),c=n(82180),d=n(46045),f=n(84575),p=n(73781),h=n(3855);var m=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(m||{});function v(){let e=(0,r.useRef)(0);return function(e,t,n){let o=(0,h.E)(t);(0,r.useEffect)((()=>{function t(e){o.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}var g=n(14879),w=n(51074);function x(e,t,n,o){let i=(0,h.E)(n);(0,r.useEffect)((()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}),[e,t,o])}var b=n(81021),y=n(96599);var E=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.Re
1storeFocus=16]="RestoreFocus",e[e.All=30]="All",e))(E||{});let T=Object.assign((0,i.yV)((function(e,t){let n=(0,r.useRef)(null),l=(0,a.T)(n,t),{initialFocus:u,containers:s,features:h=30,...E}=e;(0,c.H)()||(h=1);let T=(0,w.i)(n);!function({ownerDocument:e},t){let n=(0,r.useRef)(null);x(null==e?void 0:e.defaultView,"focusout",(e=>{!t||n.current||(n.current=e.target)}),!0),(0,y.q)((()=>{t||((null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,f.C5)(n.current),n.current=null)}),[t]);let o=(0,r.useRef)(!1);(0,r.useEffect)((()=>(o.current=!1,()=>{o.current=!0,(0,b.Y)((()=>{!o.current||((0,f.C5)(n.current),n.current=null)}))})),[])}({ownerDocument:T},Boolean(16&h));let j=function({ownerDocument:e,container:t,initialFocus:n},o){let i=(0,r.useRef)(null),a=(0,g.t)();return(0,y.q)((()=>{if(!o)return;let r=t.current;!r||(0,b.Y)((()=>{if(!a.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(i.current=t)}else if(r.contains(t))return void(i.current=t);null!=n&&n.current?(0,f.C5)(n.current):(0,f.jA)(r,f.TO.First)===f.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==e?void 0:e.activeElement}))}),[o]),i}({ownerDocument:T,container:n,initialFocus:u},Boolean(2&h));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=(0,g.t)();x(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let a=new Set(null==n?void 0:n.current);a.add(t);let l=r.current;if(!l)return;let u=e.target;u&&u instanceof HTMLElement?function(e,t){var n;for(let r of e)if(null!=(n=r.current)&&n.contains(t))return!0;return!1}(a,u)?(r.current=u,(0,f.C5)(u)):(e.preventDefault(),e.stopPropagation(),(0,f.C5)(l)):(0,f.C5)(r.current)}),!0)}({ownerDocument:T,container:n,containers:s,previousActiveElement:j},Boolean(8&h));let k=v(),C=(0,p.z)((()=>{let e=n.current;!e||(0,o.E)(k.current,{[m.Forwards]:()=>(0,f.jA)(e,f.TO.First),[m.Backwards]:()=>(0,f.jA)(e,f.TO.Last)})})),P={ref:l};return r.createElement(r.Fragment,null,Boolean(4&h)&&r.createElement(d._,{as:"button",type:"button",onFocus:C,features:d.A.Focusable}),(0,i.sY)({ourProps:P,theirProps:E,defaultTag:"div",name:"FocusTrap"}),Boolean(4&h)&&r.createElement(d._,{as:"button",type:"button",onFocus:C,features:d.A.Focusable}))})),{features:E});var j=n(15466),k=n(16723);let C=new Set,P=new Map;function D(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function R(e){let t=P.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function N(e,t=!0){(0,k.e)((()=>{if(!t||!e.current)return;let n=e.current,r=(0,j.r)(n);if(r){C.add(n);for(let e of P.keys())e.contains(n)&&(R(e),P.delete(e));return r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of C)if(e.contains(t))return;1===C.size&&(P.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),D(e))}})),()=>{if(C.delete(n),C.size>0)r.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!P.has(e)){for(let t of C)if(e.contains(t))return;P.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),D(e)}}));else for(let e of P.keys())R(e),P.delete(e)}}}),[t])}var A=n(73935);let F=(0,r.createContext)(!1);function L(){return(0,r.useContext)(F)}function M(e){return r.createElement(F.Provider,{value:e.force},e.children)}var S=n(43393);let Y=r.Fragment,I=(0,i.yV)((function(e,t){let n=e,o=(0,r.useRef)(null),l=(0,a.T)((0,a.h)((e=>{o.current=e})),t),u=(0,w.i)(o),s=function(e){let t=L(),n=(0,r.useContext)(V),o=(0,w.i)(e),[i,a]=(0,r.useState)((()=>{if(!t&&null!==n||S.s)return null;let e=null==o?void 0:o.getElementById("headlessui-portal-root");if(e)return e;if(null===o)return null;let r=o.createElement("div");return r.setAttribute("id","headlessui-portal-root"),o.body.appendChild(r)}));return(0,r.useEffect)((()=>{null!==i&&(null!=o&&o.body.contains(i)||null==o||o.body.appendChild(i))}),[i,o]),(0,r.useEffect)((()=>{t||null!==n&&a(n.current)}),[n,a,t]),i}(o),[d]=(0,r.useState)((()=>{var e;return S.s?null:null!=(e=null==u?void 0:u.createElement("div"))?e:null})),f=(0,c.H)(),p=(0,r.useRef)(!1);return(0,k.e)((()=>
1{if(p.current=!1,s&&d)return s.contains(d)||(d.setAttribute("data-headlessui-portal",""),s.appendChild(d)),()=>{p.current=!0,(0,b.Y)((()=>{var e;!p.current||!s||!d||(s.removeChild(d),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))}))}}),[s,d]),f&&s&&d?(0,A.createPortal)((0,i.sY)({ourProps:{ref:l},theirProps:n,defaultTag:Y,name:"Portal"}),d):null})),O=r.Fragment,V=(0,r.createContext)(null),_=(0,i.yV)((function(e,t){let{target:n,...o}=e,l={ref:(0,a.T)(t)};return r.createElement(V.Provider,{value:n},(0,i.sY)({ourProps:l,theirProps:o,defaultTag:O,name:"Popover.Group"}))})),z=Object.assign(I,{Group:_});var B=n(39516),$=n(16567);let H=(0,r.createContext)((()=>{}));H.displayName="StackContext";var U=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(U||{});function Z({children:e,onUpdate:t,type:n,element:o,enabled:i}){let a=(0,r.useContext)(H),l=(0,p.z)(((...e)=>{null==t||t(...e),a(...e)}));return(0,k.e)((()=>{let e=void 0===i||!0===i;return e&&l(0,n,o),()=>{e&&l(1,n,o)}}),[l,n,o,i]),r.createElement(H.Provider,{value:l},e)}var q=n(39650),W=n(9362);var G=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(G||{}),X=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(X||{});let Q={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},J=(0,r.createContext)(null);function K(e){let t=(0,r.useContext)(J);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}function ee(e,t){(0,r.useEffect)((()=>{var n;if(!t||!e)return;let r=(0,W.k)();function o(e,t,n){let o=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),r.add((()=>{Object.assign(e.style,{[t]:o})}))}let i=e.documentElement,a=(null!=(n=e.defaultView)?n:window).innerWidth-i.clientWidth;if(o(i,"overflow","hidden"),a>0){o(i,"paddingRight",`${a-(i.clientWidth-i.offsetWidth)}px`)}if(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0){let e=window.pageYOffset;o(i,"position","fixed"),o(i,"marginTop",`-${e}px`),o(i,"width","100%"),r.add((()=>window.scrollTo(0,e)))}return r.dispose}),[e,t])}function te(e,t){return(0,o.E)(t.type,Q,e,t)}J.displayName="DialogContext";let ne=i.AN.RenderStrategy|i.AN.Static,re=(0,i.yV)((function(e,t){let{open:n,onClose:u,initialFocus:f,__demoMode:h=!1,...m}=e,[v,g]=(0,r.useState)(0),b=(0,$.oJ)();void 0===n&&null!==b&&(n=(0,o.E)(b,{[$.ZM.Open]:!0,[$.ZM.Closed]:!1}));let y=(0,r.useRef)(new Set),E=(0,r.useRef)(null),j=(0,a.T)(E,t),k=(0,r.useRef)(null),C=(0,w.i)(E),P=e.hasOwnProperty("open")||null!==b,D=e.hasOwnProperty("onClose");if(!P&&!D)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!D)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof n)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${n}`);if("function"!=typeof u)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${u}`);let R=n?0:1,[A,F]=(0,r.useReducer)(te,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),L=(0,p.z)((()=>u(!1))),S=(0,p.z)((e=>F({type:0,id:e}))),Y=!!(0,c.H)()&&(!h&&0===R),I=v>1,O=null!==(0,r.useContext)(J),V=I?"parent":"leaf";N(E,!!I&&Y),(0,q.O)((()=>{var e,t;return[...Array.from(null!=(e=null==C?void 0:C.querySelectorAll("body > *, [data-headlessui-portal]"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(k.current)||A.panelRef.current&&e.contains(A.panelRef.current)))),null!=(t=A.panelRef.current)?t:E.current]}),L,Y&&!I),x(null==C?void 0:C.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===l.R.Escape&&0===R&&(I||(e.preventDefault(),e.stopPropagation(),L()))})),ee(C,0===R&&!O),(0,r.useEffect)((()=>{if(0!==R||!E.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&L()}));return e.observe(E.current),()=>e.disconnect()}),[R,E,L]);let[_,H]=(0,B.f)(),W=`headlessui-dialog-${(0,s.M)()}`,G=(0,r.useMemo)((()=>[{dialogState:R,close:L,setTitleId:S},A]),[R,A,L,S]),X=(0,r.useMemo)((()=>({open:0===R})),[R]),Q={ref:j,id:W,role:"dialog","aria-modal":0===R||void 0,"aria-labelledby":A.titleId,"aria-describedby":_};return r.createElement(Z,{type:"Dialog",enabled:0===R,element:E,onUpdate:(0,p.z)(((e,t,n)=>{"Dialog"===t&&(0,o.E)(e,{[U.Add](){y.current.add(n),g((e=>e+1))},[U.Remove](){y.current.add(n),g((e=>e-1))}})}))},r.createElement(M,{force:!0},r.createElement(z,null,r.createElement(J.Provider,{value:G},r.createElement(z.Group,{target:E},r.createElement(M,{force:!1},r.createElement(H,{slot:X,name:"Dialog.Description"},r.createElement(T,{initialFocus:f,containers:y,features:Y?(0,o.E)(V,{parent:T.features.RestoreFocus,leaf:T.features.All&~T.features.FocusLock}):T.features.None},(0,i.sY)({ourProps:Q,theirProps:m,slot:X,defaultTag:"div",features:ne,visible:0===R,name:"Dialog"})))))))),r.createElement(d._,{features:d.A.Hidden,ref:k}))})),oe=(0,i.yV)((function(e,t){let[{dialogState:n,close:o}]=K("Dialog.Overlay"),l=(0,a.T)(t),c=`headlessui-dialog-overlay-${(0,s.M)()}`,d=(0,p.z)((e=>{if(e.target===e.currentTarget){if((0,u.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}})),f=(0,r.useMemo)((()=>({open:0===n})),[n]);return(0,i.sY)({ourProps:{ref:l,id:c,"aria-hidden":!0,onClick:d},theirProps:e,slot:f,defaultTag:"div",name:"Dialog.Overlay"})})),ie=(0,i.yV)((function(e,t){let[{dialogState:n},o]=K("Dialog.Backdrop"),l=(0,a.T)(t),u=`headlessui-dialog-backdrop-${(0,s.M)()}`;(0,r.useEffect)((()=>
1{if(null===o.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[o.panelRef]);let c=(0,r.useMemo)((()=>({open:0===n})),[n]);return r.createElement(M,{force:!0},r.createElement(z,null,(0,i.sY)({ourProps:{ref:l,id:u,"aria-hidden":!0},theirProps:e,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),ae=(0,i.yV)((function(e,t){let[{dialogState:n},o]=K("Dialog.Panel"),l=(0,a.T)(t,o.panelRef),u=`headlessui-dialog-panel-${(0,s.M)()}`,c=(0,r.useMemo)((()=>({open:0===n})),[n]),d=(0,p.z)((e=>{e.stopPropagation()}));return(0,i.sY)({ourProps:{ref:l,id:u,onClick:d},theirProps:e,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),le=(0,i.yV)((function(e,t){let[{dialogState:n,setTitleId:o}]=K("Dialog.Title"),l=`headlessui-dialog-title-${(0,s.M)()}`,u=(0,a.T)(t);(0,r.useEffect)((()=>(o(l),()=>o(null))),[l,o]);let c=(0,r.useMemo)((()=>({open:0===n})),[n]);return(0,i.sY)({ourProps:{ref:u,id:l},theirProps:e,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),ue=Object.assign(re,{Backdrop:ie,Panel:ae,Overlay:oe,Title:le,Description:B.d})},96599:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(67294),o=n(73781);function i(e,t){let n=(0,r.useRef)([]),i=(0,o.z)(e);(0,r.useEffect)((()=>{let e=[...n.current];for(let[r,o]of t.entries())if(n.current[r]!==o){let r=i(t,e);return n.current=t,r}}),[i,...t])}},68163:function(e,t,n){"use strict";var r=n(67294);const o=r.forwardRef((function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))}));t.Z=o}},function(e){e.O(0,[9774,2888,179],(function(){return t=7839,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.