1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1486,7550],{46851:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ai-studio",function(){return n(58225)}])},92981:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(85893),s=n(76455);let i=(0,n(45139).j)("rounded-full",{variants:{size:{sm:"w-1 h-1",md:"w-2 h-2",lg:"w-4 h-4"},color:{black:"bg-black",white:"bg-white",gray:"bg-gray-300",primary:"bg-primary-300",secondary:"bg-secondary-300",success:"bg-success-300",caution:"bg-caution-300",danger:"bg-danger-300"}},defaultVariants:{size:"sm",color:"black"}});function l(e){let{size:t,color:n,className:l}=e;return(0,a.jsx)("div",{className:(0,s.cn)("flex flex-row items-center justify-center",l),children:(0,a.jsx)("div",{className:i({size:t,color:n})})})}},39505:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(85893),s=n(42392),i=n(76455);function l(e){let{title:t,content:n,isLoading:l,useParentWidth:r=!1,className:o}=e;return(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col justify-center items-center gap-4 h-full",r&&"w-full",o),children:[(0,a.jsx)(s.Z,{size:"lg",variant:"horizontal",isLoading:l}),l?(0,a.jsx)("div",{className:"flex flex-col items-center gap-2",children:(0,a.jsx)("span",{children:"Loading ..."})}):(0,a.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[t&&(0,a.jsx)("span",{className:"font-bold",children:t}),(0,a.jsx)("span",{children:n})]})]})}},9101:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(76455);function i(e){let{children:t,size:n="xl",as:i="h2",className:l="",title:r}=e,o=(0,s.cn)("font-bold text-black-500",{sm:"text-sm font-normal",base:"text-base",lg:"text-lg lg:text-xl",xl:"text-xl lg:text-2xl","2xl":"text-2xl lg:text-3xl","3xl":"text-3xl lg:text-4xl"}[n],l);return(0,a.jsx)(i,{className:o,title:r,children:t})}},1032:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(85893),s=n(13411),i=n(67294);function l(e){let{type:t="image",customIcon:n,variant:l="primary",fillParent:r=!1,fullHeight:o=!1,width:c=64,height:d=64,isRounded:u=!0,isVisible:f=!0,isLoading:m=!1}=e,[h,x]=(0,i.useState)(""),[p,g]=(0,i.useState)(void 0);return(0,i.useEffect)(()=>{switch(t){case"image":g("heroicons:photo");break;case"video":g("heroicons:video-camera-solid")}},[t]),(0,i.useEffect)(()=>{switch(l){case"primary":x("bg-gray-300");break;case"secondary":x("bg-gray-700")}},[l]),(0,a.jsx)("output",{className:"\n items-center justify-center text-white ".concat(u&&"rounded-2xl","\n select-none pointer-events-none p-4\n ").concat(o?"h-full":"","\n ").concat(f?"flex":"hidden","\n ").concat(r?"w-full h-full":"!w-[".concat(c,"px] !h-[").concat(d,"px]"),"\n ").concat(h,"\n ").concat(m?"animate-pulse":"","\n "),children:(0,a.jsx)(s.Z,{icon:n||p,size:"xl"})})}},88609:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(85893),s=n(76455),i=n(45139),l=n(67294);let r=(0,i.j)("appearance-none shrink-0 peer pointer-events-none rounded-full border",{variants:{variant:{primary:"outline outline-0 outline-neutral-800 border-gray-300 bg-white hover:bg-primary-100 checked:outline-1 checked:border-[2px] checked:bg-primary-200 hover:checked:bg-primary-300 hover:checked:outline-black",secondary:"outline outline-0 outline-neutral-600 border-gray-200 bg-white hover:bg-gray-200 checked:outline-1 checked:border-[2px] checked:bg-neutral-700 hover:checked:bg-neutral-800 hover:checked:outline-neutral-800"},size:{sm:"size-4",md:"size-5",lg:"size-6"},isDisabled:{true:"bg-gray-300 checked:bg-gray-500 checked:border-[3px] cursor-not-allowed hover:bg-gray-300"},align:{start:"mt-1",center:"",end:""}},defaultVariants:{variant:"primary",size:"md",align:"center"}}),o=(0,i.j)("relative flex",{variants:{variant:{primary:"text-gray-700 hover:text-black",secondary:"text-white hover:text-gray-200"},size:{sm:"text-sm",md:"text-base",lg:"text-lg"},fontWeight:{normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold"},isDisabled:{true:"cursor-not-allowed text-gray-400 hover:text-gray-400",false:"cursor-pointer"},justify:{start:"justify-start",center:"justify-center",end:"justify-end"},align:{start:"items-start",center:"items-center",end:"items-end"}},defaultVariants:{variant:"primary",size:"md",fontWeight:"normal",justify:"center",align:"center"}}),c=(0,i.j)("flex",{variants:{justify:{start:"justify-start",center:"justify-center",end:"justify-end"},align:{start:"items-start",center:"items-center",end:"items-end"}},defaultVariants:{justify:"center",align:"center"}});function d(e){let{label:t,title:n,description:i,variant:d="primary",size:u="md",fontWeight:f="normal",justify:m="center",align:h="center",value:x,isCheckedByDefault:p=!1,isDisabled:g=!1,preventSelectIfSelected:j=!1,className:v,onCh
1ange:b}=e,[y,N]=(0,l.useState)(p);return(0,l.useEffect)(()=>{void 0!==x&&N(x)},[x]),(0,a.jsx)("div",{title:n,className:(0,s.cn)(c({justify:m,align:h}),v),children:(0,a.jsxs)("label",{className:(0,s.cn)(o({variant:d,size:u,fontWeight:f,isDisabled:g,justify:m,align:h}),y&&j&&"pointer-events-none"),children:[(0,a.jsx)("input",{type:"radio",checked:y,disabled:null!=g&&g,onChange:e=>{g||(null==b||b(!y,e),N(!y))},className:(0,s.cn)(r({variant:d,size:u,isDisabled:g,align:h}))}),(t||i)&&(0,a.jsxs)("div",{className:"flex flex-col justify-start text-left ml-2",children:[t&&(0,a.jsx)("span",{className:"select-none text-inherit",children:t}),i&&(0,a.jsx)("span",{className:"select-none text-sm font-normal",children:i})]})]})})}},57550:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var a=n(85893),s=n(13411),i=n(76455),l=n(11414),r=n(67294);let o=l.zt,c=l.fC,d=l.xz,u=r.forwardRef((e,t)=>{let{className:n,sideOffset:s=4,...r}=e;return(0,a.jsx)(l.VY,{ref:t,sideOffset:s,className:(0,i.cn)("z-50 overflow-hidden rounded-md border bg-black px-3 py-1.5 text-sm text-white shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n),...r})});function f(e){let{trigger:t=(0,a.jsx)(s.Z,{icon:"heroicons:information-circle",size:"sm",className:"text-secondary-300 cursor-pointer"}),content:n="Tooltip",parentStyle:i="",onClick:l}=e;return(0,a.jsx)(o,{delayDuration:300,children:(0,a.jsxs)(c,{children:[(0,a.jsx)(d,{onClick:l,children:t}),(0,a.jsx)(u,{className:i,children:n})]})})}u.displayName=l.VY.displayName},7234:function(e,t,n){"use strict";n.d(t,{Z:function(){return m},f:function(){return f}});var a=n(85893),s=n(70121),i=n(92718),l=n(88609),r=n(13766),o=n(54778),c=n(70385),d=n(11163),u=n(67294);let f=[{id:c.DeploymentType.NFT_GENERATOR,title:"NFT Drop",description:"Create NFT drops. Prepare a prompt system, fix the number of artworks in this collection, the price and the timeframe."},{id:c.DeploymentType.SHOWCASE,title:"AI Model",description:"Make your Alias visible. Create a page where it can be prompted and that you can share to the world. You will be able to make images purchasable."}];function m(e){let{alias:t}=e,[n,s]=(0,u.useState)(c.DeploymentType.NFT_GENERATOR),l=(0,d.useRouter)(),m=async()=>{let e=await (0,r.Pv)({type:n,title:t?"Deploy of '".concat(null==t?void 0:t.name,"'"):"",description:(null==t?void 0:t.description)||"",aliasId:(null==t?void 0:t.id)||void 0});if(e.success){if(n===c.DeploymentType.SHOWCASE){let n=(0,o.R)(e.data,o.t.SHOWCASE,t);await (0,r.Wl)(e.data.id,{generator:n,thumbnailsUrls:(null==t?void 0:t.thumbnailsUrls)||[],paymentMethod:c.PaymentMethod.CARD})}l.push("/deployments/finalize/".concat(e.data.id))}};return(0,a.jsxs)("div",{className:"overflow-auto flex flex-col gap-8 pl-1 scrollbar-track-transparent",children:[(0,a.jsxs)("div",{className:"text-base",children:["Your Alias has been trained, it is a base model that has learned from your style.",(0,a.jsx)("br",{}),"A collection is an instance of an alias that you can open to the world. It allows you to set additional control on your model before releasing it."]}),(0,a.jsx)("div",{className:"grid grid-cols-2 gap-4",children:f.map(e=>(0,a.jsx)(h,{option:e,isSelected:n===e.id,onSelect:()=>s(e.id)},e.id))}),(0,a.jsx)("div",{className:"flex justify-center mt-6",children:(0,a.jsx)(i.Z,{onClick:m,label:"Continue"})})]})}function h(e){let{option:t,isSelected:n,onSelect:i}=e;return(0,a.jsx)(s.Z,{onClick:t.isDisabled?void 0:i,className:"\n flex flex-col items-center justify-between p-6 rounded-lg border cursor-pointer transition-all h-full\n ".concat(n?"border-primary-500":"border-gray-200 hover:border-gray-300","\n "),children:(0,a.jsx)(l.Z,{justify:"start",align:"start",fontWeight:"bold",preventSelectIfSelected:!0,value:n,label:t.title,isDisabled:t.isDisabled,description:t.description,onChange:e=>e&&i()})})}},38209:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(85893),s=n(92981),i=n(13411),l=n(57550);let r=[{id:"model",getValue:e=>({icon:"hugeicons:brain",label:e.model,tooltip:"Model used"})},{id:"createdAt",getValue:e=>({icon:"hugeicons:calendar-03",label:new Date(e.createdAt).toLocaleDateString(void 0,{month:"2-digit",year:"2-digit"}),tooltip:"The date you first started working on this Alias."})}];function o(e){let{alias:t,isAdminCard:n}=e;return(0,a.jsx)("div",{className:"flex flex-row gap-1.5",children:null==r?void 0:r.filter(e=>n||"model"===e.id).map((e,n)=>{let{id:r,getValue:o}=e,{icon:c,label:d,tooltip:u}=o(t);return(0,a.jsxs)("div",{className:"flex flex-row gap-1.5",children:[n>0&&(0,a.jsx)(s.Z,{color:"gray",className:""}),(0,a.jsxs)("div",{className:"flex gap-1 justify-center items-center",children:[(0,a.jsx)(l.default,{trigger:(0,a.jsx)(i.Z,{icon:c,size:"xs",className:"text-gray-500"}),content:u}),(0,a.jsx)("span",{className:"text-sm font-light",children:d})]})]},r)})})}},3744:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var a=n(85893),s=n(13411),i=n(9344),l=n(20967),r=n(30609),o=n(51737),c=n(18311),d=n(84399),u=n(94373),f=n(35090),m=n(14658),h=n(25675),x=n.n(h),p=n(67294);function g(e){let{patternId:t=4,thumbnails:n,offset:h=0,onEditFrame:g,isModalOpened:j,setIsModalOpen:v,onOpenModal:b,onCloseModal:y,images:N,onSelectImage:w,isLoading:k,onLoadMore:E,hasReachedEnd:Z,loaderIsLoading:C}=e,[A,S]=(0,p.useState)();(0,p.useEffect)(()=>{let e={thumbnails:n,offset:h,onEditFrame:g,isModalOpened:j,onOpenModal:b,onCloseModal:y};switch(t){case 1:S((0,a.jsx)(o.Z,{...e}));break;case 2:S((0,a.jsx)(c.Z,{...e}));break;case 3:S((0,a.jsx)(d.Z,{...e}));break;case 4:S((0,a.jsx)(u.Z,{...e}));break;default:S((0,a.jsx)(r.Z,{...e}))}},[h,t,n,g,j,b,y]);let F=(0,p.useCallback)((e,t)=>{w(e,t)},[w]);return(0,a.jsxs)(a.Fragment,{children:[A,(0,a.jsx)(l.Z,{isOpen:j,onClose:y,size:"lg",children:(null==N?void 0:N.length)>0&&(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("button",{className:"flex flex-col w-full items-end justify-end",onClick:()=>v(!1),children:(0,a.jsx)(s.Z,{icon:"material-symbols:close",className:"hover:text-gray-400"})}),k&&0===N.length?(0,a.jsx)("div",{className:"flex justify-center items-center h-64",children:(0,a.jsx)(s.Z,{icon:"eos-icons:loading",className:"size-8 animate-spin"})}):N.length>0?(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-6",children:N.map(e=>{let t=null==n?void 0:n.some(t=>t===e.url);return(0,a.jsxs)("div",{className:"relative aspect-square group ".concat(t?"opacity-90":""),children:[(0,a.jsx)(x(),{src:e.url,alt:"Alias Thumbnail",fill:!0,sizes:m.Z.IMG_SIZES_BASE_QUALITY,className:"object-cover rounded-2xl",loading:"eager",priority:!0}),t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute inset-0 rounded-2xl bg-gradient-to-t from-black to-transparent"}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsx)(s.Z,{icon:"hugeicons:checkmark-circle-02",className:"text-success-200 size-8"})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"hidden group-hover:flex absolute inset-0 rounded-2xl bg-gradient-to-t from-black to-transparent"}),(0,a.jsx)("div",{className:"absolute inset-0 flex-col items-center justify-center hidden h-full gap-2 p-4 group-hover:flex",children:(0,a.jsx)(i.Z,{variant:"senary",icon:"heroicons:plus",onClick:()=>F(e,-1)})})]})]},e.id)})}):(0,a.jsx)("div",{className:"flex justify-center items-center h-64 text-gray-500",children:"No images found for this page"}),(0,a.jsx)(f.Z,{isEnabled:N.length>0,isLoading:C,hasReachedEndOfList:Z,onLoadMore:()=>E()})]})})]})}},19537:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(85893),s=n(9344),i=n(1032),l=n(25675),r=n.n(l);function o(e){let{variant:t,thumbnails:n,offset:l,onEditFrame:o,onOpenModal:c}=e,d=e=>(0,a.jsxs)("div",{className:"relative w-full overflow-hidden aspect-square rounded-xl group",children:[(null==n?void 0:n[e])?(0,a.jsx)(r(),{src:n[e],fill:!0,alt:"Alias Thumbnail",sizes:"50vw",className:"object-cover rounded-2xl"}):(0,a.jsx)(i.Z,{fillParent:!0}),o&&c&&(0,a.jsx)("div",{className:"absolute inset-0 bg-black bg-opacity-50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center",children:(0,a.jsx)(s.Z,{variant:"senary",icon:"heroicons:pencil",onClick:()=>{null==o||o(e),null==c||c(e)}})})]});return(0,a.jsxs)(a.Fragment,{children:["full"===t&&d(l),(null==t?void 0:t.includes("half"))&&(0,a.jsxs)("div",{className:"flex w-full space-x-2 lg:space-x-6",children:[("half-left"===t||"half-both"===t)&&d(l),("half-right"===t||"half-both"===t)&&d("half-right"===t?l:l+1)]})]})}},30609:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(19537);function i(e){let{thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}=e;return(0,a.jsxs)("div",{className:"flex justify-center w-full gap-2 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-both",thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+2,onEditFrame:i,onOpenModal:l})]}),(0,a.jsx)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+3,onEditFrame:i,onOpenModal:l})}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-left",thumbnails:t,offset:n+4,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+5,onEditFrame:i,onOpenModal:l})]})]})}},51737:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(19537);function i(e){let{thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}=e;return(0,a.jsxs)("div",{className:"flex justify-center w-full gap-2 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-both",thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+2,onEditFrame:i,onOpenModal:l})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+3,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n+4,onEditFrame:i,onOpenModal:l})]}),(0,a.jsx)("div",{className:"flex flex-col justify-end w-1/3 gap-2 lg:gap-6",children:(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+5,onEditFrame:i,onOpenModal:l})})]})}},18311:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(19537);function i(e){let{thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}=e;return(0,a.jsxs)("div",{className:"flex justify-center w-full gap-2 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"half-both",thumbnails:t,offset:n+1,onEditFrame:i,onOpenModal:l})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n+3,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+4,onEditFrame:i,onOpenModal:l})]}),(0,a.jsx)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+5,onEditFrame:i,onOpenModal:l})})]})}},84399:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(19537);function i(e){let{thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}=e;return(0,a.jsxs)("div",{className:"flex justify-center w-full gap-2 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+1,onEditFrame:i,onOpenModal:l})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+2,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"half-both",thumbnails:t,offset:n+3,onEditFrame:i,onOpenModal:l})]}),(0,a.jsx)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+5,onEditFrame:i,onOpenModal:l})})]})}},94373:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(85893),s=n(19537);function i(e){let{thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}=e;return(0,a.jsxs)("div",{className:"flex justify-center w-full gap-2 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+1,onEditFrame:i,onOpenModal:l})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n+2,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+3,onEditFrame:i,onOpenModal:l})]}),(0,a.jsxs)("div",{className:"flex flex-col w-1/3 gap-2 lg:gap-6",children:[(0,a.jsx)(s.Z,{variant:"half-right",thumbnails:t,offset:n+4,onEditFrame:i,onOpenModal:l}),(0,a.jsx)(s.Z,{variant:"full",thumbnails:t,offset:n+5,onEditFrame:i,onOpenModal:l})]})]})}},91579:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var a=n(85893),s=n(92718),i=n(20967);function l(e){let{title:t,content:n,isDanger:l,isOpen:r,newModal:o,onClose:c}=e,d=(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)("h3",{children:t||"Are you sure?"}),(0,a.jsx)("span",{className:"py-2",children:n||"If you wish to continue click continue"}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsx)(s.Z,{label:"Cancel",variant:"secondary",onClick:()=>c(!1)}),(0,a.jsx)(s.Z,{label:"Confirm",variant:l?"destructive":"primary",onClick:()=>c(!0)})]})]});return o?d:(0,a.jsx)(i.Z,{isOpen:null!=r&&r,onClose:()=>c(!1),size:"md",children:d})}},35090:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var a=n(85893),s=n(92718),i=n(39505),l=n(76455),r=n(67294),o=n(18357);function c(e){let{isEnabled:t,isLoading:n,rootMargin:c="64px",onAutoLoadMoreDelay:d=128,showEndOfListMessage:u=!1,topPadding:f="large",hasReachedEndOfList:m,onLoadMore:h}=e,[x,p]=(0,r.useState)(!1),{ref:g,inView:j}=(0,o.YD)({threshold:0,rootMargin:c});(0,r.useEffect)(()=>
1{if(j){p(!0);let e=setTimeout(()=>{p(!1)},1e3);return()=>clearTimeout(e)}},[j]),(0,r.useEffect)(()=>{if(x){let e=setTimeout(()=>{p(!1)},1e3);return()=>clearTimeout(e)}},[x]),(0,r.useEffect)(()=>{if(!n&&!m&&j){let e=setTimeout(()=>{h(!1)},d);return()=>clearTimeout(e)}},[m,j,n,d,h]);let v=(0,r.useCallback)(()=>{m||(h(!0),p(!0))},[m,h]);return(0,a.jsx)("div",{children:t&&(m?u&&(0,a.jsx)("div",{className:(0,l.cn)("flex flex-row items-center justify-center w-full px-4 mb-4","large"===f?"pt-12":"pt-4"),children:(0,a.jsx)(i.Z,{content:"You've reached the end of the list."})}):(0,a.jsx)("div",{ref:g,className:(0,l.cn)("flex flex-row items-center justify-center w-full px-4 mb-4","large"===f?"pt-12":"pt-4"),children:(0,a.jsx)(s.Z,{variant:"secondary",label:"Load more",size:"sm",isLoading:x||n,onClick:v})}))})}},54778:function(e,t,n){"use strict";n.d(t,{R:function(){return u},t:function(){return s}});var a,s,i=n(14658);(a=s||(s={})).DEFAULT="DEFAULT",a.VIRTUAL_ZOO="VIRTUAL_ZOO",a.PORTRAIT_MAKER="PORTRAIT_MAKER",a.LANDSCAPE_MAKER="LANDSCAPE_MAKER",a.SHOWCASE="SHOWCASE";let l={influence:i.Z.DEFAULT_INFLUENCE,tool:"txt2img",promptType:"maker",openFormat:!0,imageCount:3,positivePrompt:"",storyPrompt:"",story:"",prompt:"",promptItems:[],controlnetPreprocess:!0},r={influence:i.Z.DEFAULT_INFLUENCE,tool:"txt2img",promptType:"open",openFormat:!1,imageCount:3,positivePrompt:"",storyPrompt:"",story:"",prompt:"",promptItems:[],controlnetPreprocess:!0},o={influence:i.Z.DEFAULT_INFLUENCE,tool:"txt2img",promptType:"maker",openFormat:!0,controlnetPreprocess:!0,imageCount:3,positivePrompt:"A painting with a [[color]] sky, a forest full of [[color]] trees, and a big [[animal]] with [[color]] eyes.",storyPrompt:"A painting of an [[animal]], the main color is [[color]]",story:"",prompt:"",promptItems:[{id:"animal",text:"Animal",type:"choices",strength:1.5,choices:[{id:"1",name:"Dog",injection:"happy dog"},{id:"2",name:"Cat",injection:"happy cat"},{id:"3",name:"Bird",injection:"happy bird"}]},{id:"color",text:"Color",type:"choices",strength:1,choices:[{id:"1",name:"Red",injection:"vivid red"},{id:"2",name:"Blue",injection:"vivid blue"},{id:"3",name:"Green",injection:"vivid green"}]}]},c={influence:i.Z.DEFAULT_INFLUENCE,tool:"txt2img",promptType:"maker",openFormat:!0,controlnetPreprocess:!0,imageCount:3,positivePrompt:"Studio portrait of a person with [[hair_color]] hair, wearing a [[clothing_style]] outfit, background is [[background_setting]].",storyPrompt:"Portrait featuring a person with [[hair_color]] hair and [[clothing_style]] clothing in [[background_setting]].",story:"",prompt:"",promptItems:[{id:"hair_color",text:"Hair Color",type:"choices",strength:1.2,choices:[{id:"1",name:"Blonde",injection:"blonde"},{id:"2",name:"Brown",injection:"brown"},{id:"3",name:"Black",injection:"black"},{id:"4",name:"Red",injection:"red"}]},{id:"clothing_style",text:"Clothing",type:"choices",strength:1,choices:[{id:"1",name:"Casual",injection:"casual clothing"},{id:"2",name:"Formal",injection:"formal suit"},{id:"3",name:"Fantasy",injection:"fantasy armor"}]},{id:"background_setting",text:"Background",type:"choices",strength:.8,choices:[{id:"2",name:"Outdoor Forest",injection:"forest background"},{id:"3",name:"Sci-fi City",injection:"futuristic cityscape background"},{id:"1",name:"A studio",injection:"plain gray studio background"}]}]},d={influence:i.Z.DEFAULT_INFLUENCE,tool:"txt2img",promptType:"maker",openFormat:!0,controlnetPreprocess:!0,imageCount:3,positivePrompt:"Expansive landscape painting of [[terrain_type]] during [[time_of_day]], the weather is [[weather_condition]].",storyPrompt:"Landscape showing [[terrain_type]] at [[time_of_day]] in [[weather_condition]] weather.",story:"",prompt:"",promptItems:[{id:"terrain_type",text:"Terrain",type:"choices",strength:1.3,choices:[{id:"1",name:"Mountains",injection:"majestic mountains"},{id:"2",name:"Beach",injection:"sandy beach"},{id:"3",name:"Forest",injection:"dense forest"},{id:"4",name:"Desert",injection:"vast desert"}]},{id:"time_of_day",text:"Time",type:"choices",strength:1,choices:[{id:"1",name:"Sunrise",injection:"golden sunrise"},{id:"2",name:"Midday",injection:"bright midday sun"},{id:"3",name:"Sunset",injection:"colorful sunset"},{id:"4",name:"Night",injection:"starry night sky"}]},{id:"weather_condition",text:"Weather",type:"choices",strength:.9,choices:[{id:"1",name:"Clear",injection:"clear sky"},{id:"2",name:"Cloudy",injection:"overcast clouds"},{id:"3",name:"Rainy",injection:"gentle rain"},{id:"4",name:"Stormy",injection:"dramatic storm clouds"}]}]};function u(e){var t,n,a;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"DEFAULT",u=arguments.length>2?arguments[2]:void 0,f={aliasId:(null==e?void 0:e.aliasId)||(null===(t=e.generator)||void 0===t?void 0:t.aliasId)||"",epochId:(null==e?void 0:null===(n=e.alias)||void 0===n?void 0:n.selectedEpochId)||(null===(a=e.generator)||void 0===a?void 0:a.epochId)||(null==u?void 0:u.selectedEpochId)||"",cfg:i.Z.DEFAULT_CFG};switch(s){case"VIRTUAL_ZOO":return{...f,...o};case"PORTRAIT_MAKER":return{...f,...c};case"LANDSCAPE_MAKER":return{...f,...d};case"SHOWCASE":return{...f,...r};default:return"DEFAULT"!==s&&console.warn("Unknown generator template type: ".concat(s,", returning default.")),{...f,...l}}}},58225:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return P},default:function(){return U}});var a=n(85893),s=n(9101),i=n(13411),l=n(75873),r=n(70121),o=n(92718),c=n(84190),d=n(57550),u=n(96696),f=n(7234),m=e=>{let{status:t}=e;return(0,a.jsx)("div",{className:"rounded-lg px-2 py-[6px] cursor-default font-semibold text-xs lowercase first-letter:uppercase ".concat({PUBLISHED:"bg-green-100 text-green-600",DRAFT:"bg-caution-50 text-caution-300",PREVIEW:"bg-purple-50 text-black-500",HIDDEN:"bg-purple-50 text-black-500"}[t]),children:"PUBLISHED"===t?"Ready to deploy":t})},h=n(38209),x=n(43374),p=n(61114),g=n(3744),j=n(22989),v=n(56282),b=n(67294),y=n(64712),N=n(76607);function w(e){let{alias:t,onClose:n,onSuccess:s}=e,[i,r]=(0,b.useState)(!1),[c,d]=(0,b.useState)(t.name),[u,f]=(0,b.useState)(t.thumbnailsUrls||[]),[m,h]=(0,b.useState)(!t.hidden),[w,k]=(0,b.useState)(null),[E,Z]=(0,b.useState)(!1),C=(0,b.useRef)(t.name),A=(0,b.useRef)(t.thumbnailsUrls||[]),S=(0,b.useRef)(!t.hidden);(0,b.useEffect)(()=>{d(t.name),C.current=t.name},[t.name]),(0,b.useEffect)(()=>{let e=t.thumbnailsUrls||[];f(e),A.current=e},[t.thumbnailsUrls]),(0,b.useEffect)(()=>{let e=!t.hidden;h(e),S.current=e},[t.hidden]);let F=async e=>{try{let n=await (0,v.e6)({aliasId:t.id,page:e,take:12});return n.success?n.data:[]}catch(e){return console.error("Error fetching alias images:",e),[]}},I=(0,b.useCallback)((e,n)=>n&&!n.length?null:{aliasId:t.id,page:e+1,take:12},[t.id]),{data:O,setSize:M,isLoading:_,isValidating:T}=(0,N.ZP)(I,e=>{let{page:t}=e;return F(t)},{revalidateOnFocus:!1,dedupingInterval:5e3,revalidateIfStale:!1}),D=(0,b.useMemo)(()=>O?O.flat():[],[O]),R=(0,b.useMemo)(()=>{let e=null==O?void 0:O[O.length-1];return!e||e.length<12},[O]),z=(0,b.useCallback)(()=>{var e;O&&(null===(e=O[O.length-1])||void 0===e?void 0:e.length)===12&&M(O.length+1)},[O,M]),L=(0,b.useCallback)(e=>{let t=e.trim();return t?t.length>100?{isValid:!1,error:"Name cannot exceed 100 characters"}:{isValid:!0}:{isValid:!1,error:"Name cannot be empty"}},[]),P=(0,b.useCallback)(async()=>{let e=C.current,a=A.current,i=S.current,l=L(e);if(!l.isValid){y.A.error(l.error);return}let o=e.trim();r(!0),(await (0,j.xJ)(t.id,{name:o,thumbnailsUrls:a,hidden:!i}
1)).success?(y.A.success("Alias updated successfully"),null==s||s(),n()):y.A.error("Failed to update alias"),r(!1)},[t.id,n,s,L]),U=(0,b.useCallback)(()=>{let e=t.name,a=t.thumbnailsUrls||[],s=!t.hidden;d(e),f(a),h(s),C.current=e,A.current=a,S.current=s,n()},[t.name,t.thumbnailsUrls,t.hidden,n]),V=(0,b.useCallback)(e=>{d(e),C.current=e},[]),H=(0,b.useCallback)(e=>{h(e),S.current=e},[]),B=(0,b.useCallback)((e,t)=>{let n=[...u];n[t]=e.url,f(n),A.current=n,k(null),Z(!1)},[u]),W=(0,b.useCallback)(e=>{k(e)},[]),Y=(0,b.useCallback)(e=>{k(e),Z(!0)},[]),K=(0,b.useCallback)(()=>{Z(!1),k(null)},[]);return(0,a.jsxs)("div",{className:"flex flex-col gap-6 p-6 h-full",children:[(0,a.jsxs)("div",{className:"flex-1 flex flex-col gap-6 overflow-y-auto",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Alias Name"}),(0,a.jsx)(x.Z,{value:c,onChange:V,placeholder:"Enter new alias name",useParentWidth:!0,autoFocus:!0,onEnter:P})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Thumbnails"}),(0,a.jsx)(g.Z,{patternId:4,thumbnails:u,offset:0,onEditFrame:W,isModalOpened:E,setIsModalOpen:Z,onOpenModal:Y,onCloseModal:K,images:D,onSelectImage:(e,t)=>B(e,-1!==t?t:w),isLoading:!D.length&&_,loaderIsLoading:T,onLoadMore:z,hasReachedEnd:R})]}),t.hidden&&(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)("h3",{className:"text-lg font-semibold",children:"Visibility"}),(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("p",{className:"text-sm text-gray-600",children:"You made this alias hidden before a change we made. Now all aliases are public by default so you can't hide them. You can choose to unhide it once and for all here."}),(0,a.jsx)(p.Z,{label:"Make alias visible",value:m,onChange:H,position:"left",alignText:"right",isDisabled:i,className:"ml-1"})]})]})]}),(0,a.jsxs)("div",{className:"flex justify-end gap-2 pt-4 border-t",children:[(0,a.jsx)(o.Z,{label:"Cancel",variant:"secondary",onClick:U,disabled:i}),(0,a.jsx)(o.Z,{label:i?(0,a.jsx)(l.Z,{}):"Save",variant:"primary",onClick:P,disabled:i||!L(C.current).isValid})]})]})}var k=n(91579),E=n(20119),Z=n(43115),C=n(76455),A=n(70385),S=n(25675),F=n.n(S),I=n(11163);function O(e){let{alias:t,mutate:n}=e,{id:x,status:p,thumbnailsUrls:g,hidden:v}=t,N=(0,I.useRouter)(),[S,O]=(0,b.useState)(!1),[M,_]=(0,b.useState)(!1),[T,D]=(0,b.useState)(!1),{showModal:R,closeModal:z}=(0,u.dd)(),L=t.name,P=(0,b.useCallback)(async()=>{O(!0),(await (0,j.Ps)(x)).success&&(y.A.success("Your alias was successfully deleted"),null==n||n(),O(!1))},[x,n]),U=(0,b.useCallback)(()=>{_(!1),null==n||n()},[n]),V=(0,b.useCallback)(()=>{_(!1)},[]),H=(0,b.useCallback)(()=>{N.push("/create-alias?injectedAliasId=".concat(x))},[x,N]),B=()=>{R({children:(0,a.jsx)(k.Z,{title:"Are you sure?",content:(0,a.jsx)("span",{children:"You are about to delete this alias. This action is irreversible."}),isDanger:!0,newModal:!0,onClose:e=>{e&&P(),z()}})})},W=()=>{R({title:"New collection",children:(0,a.jsx)(f.Z,{alias:t})})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 h-full",children:[(0,a.jsxs)("div",{className:(0,C.cn)("relative rounded-lg aspect-square group overflow-hidden text-left flex-shrink-0",v?"opacity-80":""),children:[(0,a.jsx)(F(),{src:(null==g?void 0:g[0])||"/static/images/bg-image.png",alt:L,fill:!0,sizes:"(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw",className:"object-cover"}),(0,a.jsx)("div",{className:"absolute top-0 left-0 p-3 md:p-6 select-none",children:(0,a.jsx)("div",{className:"flex gap-2",children:(0,a.jsx)(m,{status:v?"HIDDEN":p})})}),(0,a.jsxs)("div",{className:"absolute inset-0 flex items-center justify-center md:opacity-0 group-hover:opacity-100 transition-opacity duration-200",children:[p===A.AliasStatus.DRAFT&&(0,a.jsx)(o.Z,{label:"Finalize",size:"sm",className:"h-9 items-center",rightIcon:"hugeicons:edit-01",onClick:e=>{null==e||e.stopPropagation(),H()}}),t.status===A.AliasStatus.PUBLISHED&&!v&&(0,a.jsx)(o.Z,{label:"Deploy",size:"sm",className:"h-9 items-center",rightIcon:"hugeicons:arrow-right-02",onClick:e=>{null==e||e.stopPropagation(),W()}})]})]}),(0,a.jsxs)("div",{className:"flex flex-col flex-grow",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-between gap-2 items-start w-full",children:[(0,a.jsx)(d.default,{content:L,trigger:(0,a.jsx)(s.Z,{size:"lg",as:"h3",className:"font-semibold line-clamp-4 text-left",title:L,children:L})}),(0,a.jsxs)(E.h_,{open:T,onOpenChange:D,children:[(0,a.jsx)(E.$F,{children:(0,a.jsx)(r.Z,{className:"border border-gray-200 rounded-full cursor-pointer size-8 flex items-center justify-center bg-white hover:bg-gray-100 dropdown-menu",onClick:e=>null==e?void 0:e.stopPropagation(),"aria-label":"Open menu",children:(0,a.jsx)(i.Z,{icon:"hugeicons:more-vertical-circle-01",size:"sm",className:"text-black-500"})})}),(0,a.jsx)(E.AW,{children:(0,a.jsxs)(E.Qk,{children:[(0,a.jsx)(E.Xi,{onSelect:e=>{e.preventDefault(),D(!1),setTimeout(()=>_(!0),50)},children:(0,a.jsx)(c.Z,{leftIcon:"hugeicons:edit-01",label:"Quick edit",size:"sm"})}),(0,a.jsx)(E.Xi,{onSelect:e=>{e.preventDefault(),D(!1),H()},children:(0,a.jsx)(c.Z,{leftIcon:"hugeicons:settings-05",label:"Refine",size:"sm"})}),t.status!==A.AliasStatus.PUBLISHED&&(0,a.jsx)(E.Xi,{disabled:S,onSelect:e=>{e.preventDefault(),D(!1),B()},children:(0,a.jsx)(c.Z,{leftIcon:"hugeicons:delete-02",label:S?(0,a.jsx)(l.Z,{}):"Delete",size:"sm"})}),t.status===A.AliasStatus.PUBLISHED&&!v&&(0,a.jsx)(E.Xi,{disabled:S,onSelect:e=>{e.preventDefault(),D(!1),W()},children:(0,a.jsx)(c.Z,{leftIcon:"hugeicons:arrow-right-02",label:"Deploy",size:"sm"})})]})})]})]}),(0,a.jsx)(h.Z,{alias:t,isAdminCard:!0})]})]}),M&&(0,a.jsx)(Z.yo,{open:M,onOpenChange:V,children:(0,a.jsx)(Z.ue,{side:"right",className:"w-full sm:max-w-lg p-0 overflow-y-auto",children:(0,a.jsx)(w,{alias:t,onClose:V,onSuccess:U})})})]})}var M=n(35090),_=n(33299),T=n(41664),D=n.n(T),R=n(5068);function z(e){let{isGloballyLoading:t=!1}=e,{data:n}=(0,_.useSession)(),s=(0,b.useCallback)((e,t)=>t&&!t.length?null:{id:"aliases-fetcher",artistId:null==n?void 0:n.user.id,pageIndex:e,pageSize:16},[n]),r=(0,b.useCallback)(async e=>{let{pageIndex:t,pageSize:a}=e;if(n){let e=await (0,j.KR)({authorId:n.user.id,showPreview:!0,showHidden:!0,page:t+1,take:a});if(e.success)return e.data}return[]},[n]),{data:o,error:c,mutate:d,isLoading:u,isValidating:f,size:m,setSize:h}=(0,N.ZP)(s,r),x=(0,b.useMemo)(()=>o?[].concat(...o):[],[o]),p=(0,b.useMemo)(()=>{var e;return o&&(null===(e=o[o.length-1])||void 0===e?void 0:e.length)<16},[o]);(0,b.useEffect)(()=>{c&&console.error("Error getting user's aliases",c)},[c]);let g=async()=>{let e=await (0,j.Dn)({take:3});return e.success?e.data:[]},{data:v,mutate:y}=(0,R.ZP)("id",g),w=(0,b.useCallback)(()=>{h(m+1)},[h,m]);return t?(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center h-full gap-2 my-auto",children:[(0,a.jsx)(l.Z,{size:"lg"}),(0,a.jsx)("p",{className:"text-base",children:"Loading..."})]}):(0,a.jsxs)("div",{className:"h-full max-h-full overflow-y-auto w-full",children:[(0,a.jsxs)("div",{className:"w-full h-full gap-6 md:gap-8 overflow-y-auto justify-start items-center grid grid-cols-1 xs:grid-cols-2 md:grid-cols-3 2xl:grid-cols-4",children:[(0,a.jsx)(D(),{href:"/create-alias",passHref:!0,className:"h-full",children:(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center w-full p-6 bg-primary-50 border-[1px] border-dashed border-primary-300 rounded-lg transition-all duration-300 hover:bg-primary-100/30 h-full",children:[(0,a.jsx)(i.Z,{icon:"hugeicons:plus-sign",size:"md",className:"text-primary-300 mb
1-1"}),(0,a.jsx)("span",{className:"text-sm font-semibold text-primary-300",children:"Create Alias"})]})}),v?(null==v?void 0:v.length)>0&&[...v].reverse().map(e=>(0,a.jsx)(O,{alias:e,mutate:y},e.id)):(0,a.jsx)(l.Z,{size:"lg"}),x?x.length>0&&x.map(e=>(0,a.jsx)(O,{alias:e,mutate:d},e.id)):(0,a.jsx)(l.Z,{size:"lg"})]}),(0,a.jsx)(M.Z,{isEnabled:x.length>0,isLoading:u||f,hasReachedEndOfList:p,onLoadMore:w})]})}var L=n(11726),P=!0;function U(){return(0,a.jsx)(L.Z,{title:"My studio",noIndex:!0,children:(0,a.jsxs)("div",{className:"flex flex-col w-full",children:[(0,a.jsx)(s.Z,{size:"2xl",as:"h1",className:"mb-6",children:"My aliases"}),(0,a.jsx)(z,{isGloballyLoading:!1})]})})}},18357:function(e,t,n){"use strict";n.d(t,{YD:function(){return c}});var a=n(67294),s=Object.defineProperty,i=new Map,l=new WeakMap,r=0,o=void 0;function c({threshold:e,delay:t,trackVisibility:n,rootMargin:s,root:c,triggerOnce:d,skip:u,initialInView:f,fallbackInView:m,onChange:h}={}){var x;let[p,g]=a.useState(null),j=a.useRef(h),[v,b]=a.useState({inView:!!f,entry:void 0});j.current=h,a.useEffect(()=>{let a;if(!u&&p)return a=function(e,t,n={},a=o){if(void 0===window.IntersectionObserver&&void 0!==a){let s=e.getBoundingClientRect();return t(a,{isIntersecting:a,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}let{id:s,observer:c,elements:d}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var n;return`${t}_${"root"===t?(n=e.root)?(l.has(n)||(r+=1,l.set(n,r.toString())),l.get(n)):"0":e[t]}`}).toString(),n=i.get(t);if(!n){let a;let s=new Map,l=new IntersectionObserver(t=>{t.forEach(t=>{var n;let i=t.isIntersecting&&a.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(n=s.get(t.target))||n.forEach(e=>{e(i,t)})})},e);a=l.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:l,elements:s},i.set(t,n)}return n}(n),u=d.get(e)||[];return d.has(e)||d.set(e,u),u.push(t),c.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(d.delete(e),c.unobserve(e)),0===d.size&&(c.disconnect(),i.delete(s))}}(p,(e,t)=>{b({inView:e,entry:t}),j.current&&j.current(e,t),t.isIntersecting&&d&&a&&(a(),a=void 0)},{root:c,rootMargin:s,threshold:e,trackVisibility:n,delay:t},m),()=>{a&&a()}},[Array.isArray(e)?e.toString():e,p,c,s,d,u,n,m,t]);let y=null==(x=v.entry)?void 0:x.target,N=a.useRef(void 0);p||!y||d||u||N.current===y||(N.current=y,b({inView:!!f,entry:void 0}));let w=[g,v.inView,v.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}a.Component}},function(e){e.O(0,[3061,9445,5704,7309,6704,1414,3507,1726,2888,9774,179],function(){return e(e.s=46851)}),_N_E=e.O()}]);
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.