1var Z=Object.defineProperty;var ee=(t,r,n)=>r in t?Z(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n;var l=(t,r,n)=>ee(t,typeof r!="symbol"?r+"":r,n);import{m as K,b9 as E,ap as te,l as ie,ay as x,b8 as i,i as v,a6 as $,o as g,f as b,k as P,D as re,u as se,R as T,aB as z,ci as q,j as e,am as S,F as y,s as X,ae as j,d as V,b_ as ae,a as o,aC as ne,E as R,C as N,ao as O,av as oe,cq as le}from"./index-gMe9H88Y.js";import{B as G,L as de}from"./Layout-DlAsL32I.js";import{A as ce}from"./ArtistAutoComplete-Ep57U86W.js";import{E as ue,a as pe}from"./EntryPictureFileListEditStore-5RfQQj6G.js";import{N as he,a as me}from"./NamesEditStore-OKnUHrgJ.js";import{A as ye}from"./ArtistLink-ctkVIaf-.js";import{A as ve}from"./ArtistTypesDropdownKnockout-TLM7N7CZ.js";import{E as ge,a as fe,b as be}from"./EnglishTranslatedStringEditStore-Cu1SvVe7.js";import{u as Ae,C as we,S as Q,E as Ve}from"./useConflictingEditor-DaElQemI.js";import{A as I}from"./ArtistLockingAutoComplete-Du64RV7O.js";import{b as Ce,L as Ne,c as W,U as ke,E as Le}from"./DropdownList-CiILYt3d.js";import{W as Re,a as Te}from"./WebLinksEditStore-D4Bqfct2.js";import{H as C}from"./HelpLabel-DmO0PB3V.js";import{M as Ee}from"./MarkdownNotice-x84HFuU6.js";import{R as Ie}from"./RequiredField-DISpXC4a.js";import{V as U}from"./ValidationErrorIcon-CV3qe3lb.js";import{V as Pe}from"./ValidationSummaryPanel-B0-SR33a.js";import{a as B}from"./ui-DbMe5zwn.js";import{I as w}from"./ImageHelper-BpAsC3w4.js";import{J as M}from"./JQueryUIButton-_V0TZG2a.js";import{J as De}from"./JQueryUIDatepicker-yeCcQCez.js";import{J}from"./JQueryUITab-BjHtRPPI.js";import{a as _e}from"./JQueryUITabs-D-tkCajb.js";import{W as xe}from"./WebLinkCategory-DyINc-9m.js";import{D as Oe}from"./DeleteEntryStore-CVuRC_m1.js";import{C as Ue}from"./CultureCodesEditStore-D7AB1Hm2.js";import{m as Me}from"./map-6r_R7H6R.js";import{g as Be}from"./utils-functions-Bh68SegF.js";import"./EntryAutoComplete-8EfM9cl2.js";import"./ContentLanguageSelection-iqORDso9.js";import"./EntryToolTip-BigGEChL.js";import"./QTipToolTip-BpO7xCMj.js";import"./useWillUnmount-DtH49aY0.js";import"./useEventCallback-Bh-wTfTs.js";import"./UrlHelper-BVd1y15x.js";import"./Markdown-C9rHC8pJ.js";import"./EventCategory-Oz7AF5r9.js";import"./ArtistTypeLabel-CXdTI52A.js";import"./NotificationIcon-DJ1nRmu8.js";import"./LockingAutoComplete-HYsl-YYA.js";import"./useRegionNames-DhhjBNOm.js";import"./UserKnownLanguageContract-BtVDpNfN.js";import"./SongListFeaturedCategory-C71n0qTw.js";import"./WebLinkEditStore-DSVQEjAr.js";import"./JQueryUIDialog-BAFRlDw4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};t.__faroBundleId_vocadb_frontend="1774128384054d7495f5124"}catch{}})();var He=Object.defineProperty,Se=Object.getOwnPropertyDescriptor,u=(t,r,n,s)=>{for(var a=s>1?void 0:s?Se(r,n):r,h=t.length-1,m;h>=0;h--)(m=t[h])&&(a=(s?m(r,n,a):m(a))||a);return s&&a&&He(r,n,a),a};class H{constructor(r){l(this,"linkType");l(this,"parent");l(this,"toContract",()=>({linkType:this.linkType,parent:this.parent}));K(this),this.linkType=r.linkType,this.parent=r.parent}}u([g],H.prototype,"linkType",2);class p{constructor(r,n,s,a){l(this,"artistType");l(this,"associatedArtists");l(this,"baseVoicebank");l(this,"defaultNameLanguage");l(this,"deleteStore");l(this,"description");l(this,"errors");l(this,"groups");l(this,"illustrator");l(this,"names");l(this,"newAssociatedArtist");l(this,"newAssociatedArtistType",Ce.CharacterDesigner);l(this,"pictures");l(this,"releaseDate");l(this,"status");l(this,"submitting",!1);l(this,"updateNotes","");l(this,"validationExpanded",!1);l(this,"voiceProvider");l(this,"webLinks");l(this,"cultureCodes");l(this,"selectedCoverFile");l(this,"canHaveBaseVoicebank",r=>(x.isVocalistType(r)||r===i.OtherIndividual)&&r!==i.Vocalist);l(this,"canHaveCultureCodes",r=>x.isVoiceSynthesizerType(r)||r===i.Unknown);l(this,"addAssociatedArtist",()=>{this.newAssociatedArtist.entry&&(this.associatedArtists.push(new H({parent:this.newAssociatedArtist.entry,linkType:this.newAssociatedArtistType})),this.newAssociatedArtist.clear())});l(this,"setSelectedCoverFile",r=>{this.selectedCoverFile=r});l(this,"addGroup",async r=>{if(!r)return;const n=await this.artistRepo.getOne({id:r,lang:this.values.languagePreference});v(()=>{this.groups.push({id:0,parent:n})})});l(this,"removeGroup",r=>{$(this.groups,r)});l(this,"submit",async(r,n,s)=>{var a;this.submitting=!0;try{return await this.artistRepo.edit(r,{artistType:this.artistType,associatedArtists:this.associatedArtists.map(m=>m.toContract()),baseVoicebank:this.baseVoicebank.entry,defaultNameLanguage:this.defaultNameLanguage,de
1scription:this.description.toContract(),id:this.contract.id,illustrator:this.illustrator.entry,groups:this.groups,names:this.names.toContracts(),pictures:this.pictures.toContracts(),releaseDate:(a=this.releaseDate)==null?void 0:a.toISOString(),status:this.status,updateNotes:this.updateNotes,voiceProvider:this.voiceProvider.entry,webLinks:this.webLinks.toContracts(),cultureCodes:this.cultureCodes.toContracts().map(m=>m.toString())},n,s)}catch(h){throw h.response&&v(()=>{this.errors=void 0,h.response.status===400&&(this.errors=h.response.data.errors)}),h}finally{v(()=>{this.submitting=!1})}});var h,m,d;this.values=r,this.artistRepo=s,this.contract=a,K(this),this.deleteStore=new Oe(n,(c,f)=>s.delete(c,{id:a.id,notes:f})),this.baseVoicebank=new E(c=>s.getOne({id:c,lang:r.languagePreference})),this.illustrator=new E(c=>s.getOne({id:c,lang:r.languagePreference})),this.newAssociatedArtist=new E(c=>s.getOne({id:c,lang:r.languagePreference})),this.voiceProvider=new E(c=>s.getOne({id:c,lang:r.languagePreference})),this.artistType=a.artistType,this.associatedArtists=a.associatedArtists.map(c=>new H(c)),this.baseVoicebank.id=(h=a.baseVoicebank)==null?void 0:h.id,this.defaultNameLanguage=a.defaultNameLanguage,this.description=new ge(a.description),this.groups=a.groups,this.illustrator.id=(m=a.illustrator)==null?void 0:m.id,this.names=he.fromContracts(a.names),this.pictures=new ue(a.pictures),this.releaseDate=a.releaseDate?te(a.releaseDate).toDate():void 0,this.status=a.status,this.voiceProvider.id=(d=a.voiceProvider)==null?void 0:d.id,this.webLinks=new Re(a.webLinks,Object.values(xe)),this.cultureCodes=new Ue(a.cultureCodes),ie(()=>this.newAssociatedArtist.entry,this.addAssociatedArtist)}get allowBaseVoicebank(){return this.canHaveBaseVoicebank(this.artistType)}get allowCultureCodes(){return this.canHaveCultureCodes(this.artistType)}get canHaveCircles(){return this.artistType!==i.Label}get canHaveRelatedArtists(){return x.canHaveChildVoicebanks(this.artistType)}get canHaveReleaseDate(){return[i.Vocaloid,i.UTAU,i.CeVIO,i.OtherVoiceSynthesizer,i.SynthesizerV,i.NEUTRINO,i.VoiSona,i.NewType,i.Voiceroid,i.VOICEVOX,i.ACEVirtualSinger,i.AIVOICE].includes(this.artistType)}get validationError_needReferences(){return(!this.description.original||this.description.original.length===0)&&this.webLinks.items.length===0}get validationError_needType(){return this.artistType===i.Unknown}get validationError_unspecifiedNames(){return!this.names.hasPrimaryName()}get validationError_unnecessaryPName(){const r=this.names.getAllNames();return r.some(n=>r.some(s=>n!==s&&(n.value===s.value+"P"||n.value===s.value+"-P"||n.value===s.value+"p"||n.value===s.value+"-p")))}get hasValidationErrors(){return this.validationError_needReferences||this.validationError_needType||this.validationError_unspecifiedNames||this.validationError_unnecessaryPName}}u([g],p.prototype,"artistType",2);u([g],p.prototype,"associatedArtists",2);u([g],p.prototype,"defaultNameLanguage",2);u([g],p.prototype,"errors",2);u([g],p.prototype,"groups",2);u([g],p.prototype,"newAssociatedArtistType",2);u([g],p.prototype,"releaseDate",2);u([g],p.prototype,"status",2);u([g],p.prototype,"submitting",2);u([g],p.prototype,"updateNotes",2);u([g],p.prototype,"validationExpanded",2);u([g],p.prototype,"selectedCoverFile",2);u([b],p.prototype,"allowBaseVoicebank",1);u([b],p.prototype,"allowCultureCodes",1);u([b],p.prototype,"canHaveCircles",1);u([b],p.prototype,"canHaveRelatedArtists",1);u([b],p.prototype,"canHaveReleaseDate",1);u([b],p.prototype,"validationError_needReferences",1);u([b],p.prototype,"validationError_needType",1);u([b],p.prototype,"validationError_unspecifiedNames",1);u([b],p.prototype,"validationError_unnecessaryPName",1);u([b],p.prototype,"hasValidationErrors",1);u([P],p.prototype,"addAssociatedArtist",2);u([P],p.prototype,"setSelectedCoverFile",2);u([P],p.prototype,"removeGroup",2);u([P],p.prototype,"submit",2);const je=S(({artistEditStore:t,coverPicUploadRef:r})=>{const n=X(),{t:s}=j(["Resources","ViewRes","ViewRes.Artist","VocaDb.Web.Resources.Domain.Globalization"]),a=t.contract,[h,m]=T.useState(void 0);return T.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]),o("div",{children:[e("div",{className:"editor-label",children:e("label",{children:s("ViewRes:EntryEdit.DefaultLanguageSelection")})}),e("div",{className:"editor-field",children:e(Ne,{value:t.defaultNameLanguage,onChange:d=>v(()=>{t.defaultNameLanguage=d.target.value})})}),o("div",{className:"editor-label",children:[e(C,{label:s("ViewRes.Artist:Edit.BaNames"),dangerouslySetInnerHTML:{__html:s("ViewRes:EntryEdit.NameHelp")}})," ",e(Ie,{}),t.validationError_unspecifiedNames&&o(y,{children:[" ",e(U,{dangerouslySetInnerHTML:{__html:s("VocaDb.Model.Resources:ArtistValidationErrors.UnspecifiedNames")}})]})]}),e("div",{className:"editor-field",children:e(me,{namesEditStore:t.names})}),n.canViewCoverArtImages&&o(y,{children:[e("div",{className:"editor-label",children:e("label",{children:s("ViewRes.Artist:Edit.BaMainPicture")})}),e("div",{className:"editor-field",children:e("table",{children:e("tbody",{children:o("tr",{children:[e("td",{children:e("img",{src:h||`/Artist/PictureThumb/${a.id}`,alt:"Artist picture",className:"coverPic"})}),o("td",{children:[e("p",{children:s("ViewRes.Artist:Edit.BaPictureInfo",{0:w.allowedExtensions.join(", "),1:w.maxImageSizeMB})}),e("input",{type:"file",id:"coverPicUpload",name:"coverPicUpload",ref:r,onChange:d=>{var f,k;const c=(f=d.target.files)==null?void 0:f[0];if(h&&URL.revokeObjectURL(h),c){const A="."+((k=c.name.split(".").pop())==null?void 0:k.toLowerCase());if(!w.allowedExtensions.includes(A)){B(`Invalid format. Allowed: ${w.allowedExtensions.join(", ")}`),d.target.value="";return}const D=w.maxImageSizeMB*1024*1024;if(c.size>D){B(`Image too large. Maximum size: ${w.maxImageSizeMB}MB`),d.target.value="";return}const _=URL.createObjectURL(c);m(_),v(()=>{t.setSelectedCoverFile(c)})}else m(void 0),v(()=>{t.setSelectedCoverFile(void 0)})}})]})]})})})})]}),o("div",{className:"editor-label",children:[e("label",{className:"inline-block",children:s("ViewRes.Artist:Edit.BaDescription")})," ",e(Ee,{}),t.validationError_needReferences&&o(y,{children:[" ",e(U,{dangerouslySetInnerHTML:{__html:s("VocaDb.Model.Resources:ArtistValidationErrors.NeedReferences")}})]})]}),e("div",{className:"editor-field entry-edit-description",children:e(be,{englishTranslatedStringEditStore:t.description})}),e("div",{className:"editor-label",children:e("label",{children:s("ViewRes.Artist:Edit.BaArtistType")})}),o("div",{className:"editor-field",children:[e(ve,{value:t.artistType,onCh
1ange:d=>v(()=>{t.artistType=d.target.value})}),t.validationError_needType&&o(y,{children:[" ",e(U,{dangerouslySetInnerHTML:{__html:s("VocaDb.Model.Resources:ArtistValidationErrors.NeedType")}})]})]}),t.canHaveRelatedArtists&&o(y,{children:[e("div",{className:"editor-label",children:e(C,{label:"Associated artists",dangerouslySetInnerHTML:{__html:"Artists related to this voicebank. These are inherited to derived voicebanks. Character designer only needs to be specified if it's different from the illustrator and manager only needs to be specified if it's different from the voice provider."}})}),e("div",{className:"editor-field",children:o("table",{children:[e("thead",{children:o("tr",{children:[e("th",{children:"Role"}),e("th",{children:"Artist"}),e("th",{})]})}),o("tbody",{children:[o("tr",{children:[e("td",{children:e(C,{label:"Illustrator",dangerouslySetInnerHTML:{__html:"Person who illustrated the character design. This is inherited to derived voicebanks."}})}),e("td",{children:e(I,{basicEntryLinkStore:t.illustrator,properties:{extraQueryParams:{artistTypes:[i.Unknown,i.Circle,i.Producer,i.Illustrator,i.Animator,i.Lyricist,i.OtherVocalist,i.OtherGroup,i.OtherIndividual,i.CoverArtist,i.Instrumentalist,i.Designer].join(",")}}})}),e("td",{})]}),o("tr",{children:[e("td",{children:e(C,{label:"Voice provider",dangerouslySetInnerHTML:{__html:"Person who provided their voice for this voicebank. This is inherited to derived voicebanks."}})}),e("td",{children:e(I,{basicEntryLinkStore:t.voiceProvider,properties:{extraQueryParams:{artistTypes:[i.Unknown,i.Producer,i.Illustrator,i.Animator,i.Lyricist,i.OtherVocalist,i.OtherIndividual,i.CoverArtist,i.Instrumentalist,i.Designer,i.Utaite].join(",")}}})})]}),t.associatedArtists.map((d,c)=>o("tr",{children:[e("td",{children:e(W,{value:d.linkType,onChange:f=>v(()=>{d.linkType=f.target.value})})}),e("td",{children:o("div",{className:"input-append",children:[e("input",{type:"text",readOnly:!0,value:d.parent.name}),e(oe,{variant:"danger",onClick:()=>v(()=>{$(t.associatedArtists,d)}),children:"Remove"})]})})]},c)),o("tr",{children:[e("td",{children:e(W,{value:t.newAssociatedArtistType,onChange:d=>v(()=>{t.newAssociatedArtistType=d.target.value})})}),e("td",{children:e(I,{basicEntryLinkStore:t.newAssociatedArtist,properties:{extraQueryParams:{artistTypes:[i.Unknown,i.Circle,i.Producer,i.Illustrator,i.Animator,i.Lyricist,i.OtherVocalist,i.OtherGroup,i.OtherIndividual,i.CoverArtist,i.Instrumentalist,i.Designer].join(",")}}})})]})]})]})})]}),t.canHaveCircles&&o(y,{children:[e("div",{className:"editor-label",children:e("label",{children:s("ViewRes.Artist:Edit.BaGroups")})}),o("div",{className:"editor-field",children:[e("table",{children:e("tbody",{children:t.groups.map((d,c)=>o("tr",{children:[e("td",{children:e(ye,{artist:d.parent,tooltip:!0})}),e("td",{children:e(N,{onClick:()=>t.removeGroup(d),href:"#",className:"textLink removeLink",children:s("ViewRes:Shared.Remove")})})]},c))})}),e(ce,{type:"text",properties:{acceptSelection:t.addGroup,extraQueryParams:{artistTypes:[i.Label,i.Circle,i.OtherGroup,i.Band].join(",")},height:300},maxLength:128,placeholder:s("ViewRes:Shared.Search"),className:"input-xlarge"})]})]}),t.allowBaseVoicebank&&o(y,{children:[e("div",{className:"editor-label",children:e("label",{children:s("ViewRes.Artist:Edit.BaBaseVoicebank")})}),e("div",{className:"editor-field",children:e(I,{basicEntryLinkStore:t.baseVoicebank,properties:{extraQueryParams:{artistTypes:[i.Vocaloid,i.UTAU,i.CeVIO,i.SynthesizerV,i.OtherVocalist,i.OtherVoiceSynthesizer,i.Unknown,i.NEUTRINO,i.VoiSona,i.NewType,i.Voiceroid,i.VOICEVOX,i.ACEVirtualSinger,i.AIVOICE].join(",")},ignoreId:t.contract.id}})})]}),t.canHaveReleaseDate&&o(y,{children:[e("div",{className:"editor-label",children:e("label",{children:s("ViewRes.Artist:Edit.BaReleaseDate")})}),e("div",{className:"editor-field",children:e(De,{type:"text",value:t.releaseDate,onSelect:d=>v(()=>{t.releaseDate=d}),dateFormat:"yy-mm-dd",maxLength:10})})]}),e("div",{className:"editor-label",children:e(C,{label:s("ViewRes:EntryEdit.WebLinks"),dangerouslySetInnerHTML:{__html:s("ViewRes:EntryEdit.ExternalLinksQuickHelp")}})}),e("div",{className:"editor-field",children:e(Te,{webLinksEditStore:t.webLinks})}),t.allowCultureCodes&&o(y,{children:[e("div",{className:"editor-label",children:e("label",{children:"Language(s)"})}),o("div",{className:"editor-field",children:[e("tbody",{children:t.cultureCodes.items.map((d,c
1)=>o("tr",{children:[e(ke,{value:d.toString(),placeholder:s("VocaDb.Web.Resources.Domain.Globalization:InterfaceLanguage.Other"),extended:t.cultureCodes.extended,onChange:f=>{t.cultureCodes.items[c]=f.target.value}},c),e(N,{onClick:()=>t.cultureCodes.remove(d),href:"#",className:"nameDelete textLink deleteLink",children:s("ViewRes:Shared.Delete")}),e("br",{})]},c))}),(t.cultureCodes.items.length<5||n.canApproveEntries)&&e(N,{href:"#",className:"textLink addLink",onClick:()=>t.cultureCodes.items.push(le),children:s("ViewRes:Shared.Add")}),!t.cultureCodes.extended&&t.cultureCodes.items.length>0&&o(N,{href:"#",className:"textLink addLink",onClick:()=>{t.cultureCodes.extended=!0},children:[s("ViewRes:EntryEdit.LyExtendLanguages")," "]})]})]}),e("div",{className:"editor-label",children:e(C,{label:s("ViewRes:EntryEdit.Status"),dangerouslySetInnerHTML:{__html:s("Resources:CommonMessages.EntryStatusExplanation")}})}),e("div",{className:"editor-field",children:e(Le,{allowedEntryStatuses:n.allowedEntryStatuses(),value:t.status,onChange:d=>v(()=>{t.status=d.target.value})})})]})}),Fe=S(({artistEditStore:t})=>{const{t:r}=j(["ViewRes.Artist","VocaDb.Model.Resources"]);return o(y,{children:[e("p",{children:r("ViewRes.Artist:Edit.PiPicturesNote")}),e("p",{children:r("ViewRes.Artist:Edit.BaPictureInfo",{0:w.allowedExtensions.join(", "),1:w.maxImageSizeMB})}),e("table",{children:e("tbody",{children:t.pictures.pictures.map((n,s)=>e(pe,{entryPictureFileListEditStore:t.pictures,entryPictureFileEditStore:n},s))})}),e(N,{onClick:t.pictures.add,href:"#",className:"addLink textLink",children:r("ViewRes.Artist:Edit.PiAdd")})]})}),ze=S(({artistEditStore:t})=>{const r=X(),{t:n,ready:s}=j(["Resources","ViewRes","ViewRes.Artist","VocaDb.Model.Resources"]),a=t.contract,h=n("ViewRes.Artist:Edit.EditTitle",{0:a.name}),m=Ae(V.Artist),d=ae(),c=T.useRef(void 0);return o(de,{pageTitle:h,ready:s,title:h,parents:o(y,{children:[e(G.Item,{linkAs:O,linkProps:{to:"/Artist"},divider:!0,children:n("ViewRes:Shared.Artists")}),e(G.Item,{linkAs:O,linkProps:{to:R.details(V.Artist,a.id)},children:a.name})]}),toolbar:o(y,{children:[a.canDelete&&(a.deleted?e(M,{as:"a",href:`/Artist/Restore/${a.id}`,icons:{primary:"ui-icon-trash"},children:n("ViewRes:EntryEdit.Restore")}):e(M,{as:N,href:"#",onClick:t.deleteStore.show,icons:{primary:"ui-icon-trash"},children:n("ViewRes:Shared.Delete")})),r.canMergeEntries&&o(y,{children:[" ","Â "," ",e(M,{as:O,to:`/Artist/Merge/${a.id}`,children:n("ViewRes:EntryEdit.Merge")})]})]}),children:[m&&m.userId!==0&&e(we,{conflictingEditor:m}),t.errors&&e(Pe,{message:"Unable to save properties.",errors:t.errors}),e(fe,{draft:a.status===ne.Draft,validationMessages:[].concat(t.validationError_unnecessaryPName?n("VocaDb.Model.Resources:ArtistValidationErrors.UnnecessaryPName"):[]).concat(t.validationError_unspecifiedNames?n("VocaDb.Model.Resources:ArtistValidationErrors.UnspecifiedNames"):[]).concat(t.validationError_needReferences?n("VocaDb.Model.Resources:ArtistValidationErrors.NeedReferences"):[]).concat(t.validationError_needType?n("VocaDb.Model.Resources:ArtistValidationErrors.NeedType"):[])}),e("br",{}),o("form",{onSubmit:async f=>{var k;f.preventDefault();try{const A=await q.getToken(),D=r.canViewCoverArtImages?((k=c.current.files)==null?void 0:k.item(0))??void 0:void 0,_=Me(document.getElementsByName("pictureUpload"),L=>{var F;return(F=L.files)==null?void 0:F[0]}).filter(L=>L!==void 0).map(L=>L),Y=await t.submit(A,D,_);d(R.details(V.Artist,Y))}catch(A){throw B(A.response&&A.response.status?Be(A.response.status):"Unable to save properties."),A}},children:[e(Q,{backAction:R.details(V.Artist,a.id),submitting:t.submitting}),o(_e,{children:[e(J,{eventKey:"basicInfo",title:n("ViewRes:EntryEdit.BasicInfo"),children:e(je,{artistEditStore:t,coverPicUploadRef:c})}),r.canViewCoverArtImages&&e(J,{eventKey:"pics",title:n("ViewRes.Artist:Edit.TabAdditionalPictures"),children:e(Fe,{artistEditStore:t})})]}),e("br",{}),e("p",{children:n("ViewRes:EntryEdit.UpdateNotes")}),e("textarea",{value:t.updateNotes,onChange:f=>v(()=>{t.updateNotes=f.target.value}),className:"input-xxlarge",rows:4,maxLength:200}),e("br",{}),e(Q,{backAction:R.details(V.Artist,a.id),submitting:t.submitting})]}),e(Ve,{confirmText:n("ViewRes:EntryEdit.ConfirmDelete"),deleteEntryStore:t.deleteStore,onDelete:()=>d(R.details(V.Artist,a.id))})]})}),Ut=()=>{const t=re(),{id:r}=se(),[n,s]=T.useState();return T.useEffect(()=>{z.getForEdit({id:Number(r)}).then(a=>s({artistEditStore:new p(t.values,q,z,a)})).catch(a=>{throw a.response&&a.response.status===404&&(window.location.href="/Error/NotFound"),a})},[t,r]),n?e(ze,{artistEditStore:n.artistEditStore}):e(y,{})};export{Ut as default};
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.