1"use strict";(self.webpackChunkfacetalk=self.webpackChunkfacetalk||[]).push([["6197"],{722097(e,t,r){r.d(t,{A:()=>_});var s=r(683613),i=r(443510),a=r(996599),n=r(688991);class o extends i.A{generateSlug(e){n.A.dispatch({type:`${this.resource}_GENERATE_SLUG`,slug:e})}generateSlugError(e){n.A.dispatch({type:`${this.resource}_GENERATE_SLUG_ERROR`,error:e})}validateSlug(){n.A.dispatch({type:`${this.resource}_VALIDATE_SLUG`})}validateSlugError(e){n.A.dispatch({type:`${this.resource}_VALIDATE_SLUG_ERROR`,error:e})}constructor(){super("SHOW")}}let u=new o;var l=r(751455),d=r(965936),c=r(769762);class h extends c.A{constructor(){super("ShowChannel"),this._requireToken=!0}}let p=new h;class A extends s.A{subscribe(e){p.on("UPDATE",this.onUpdate),p.subscribe({account_token:e})}unsubscribe(){p.off("UPDATE",this.onUpdate),p.unsubscribe()}generateSlug(e){this.ServerActions.requestStarting(a.ovf);let t=e=>{this.ServerActions.generateSlug(e)},r=e=>{l.A.sendError(`${this.apiEndpoint}#generate_slug`,e),this.ServerActions.generateSlugError(e)};return d.A.putJSON(`${this.apiEndpoint}/generate_slug`,{name:e}).then(t,r).then(()=>this.ServerActions.requestDone(a.ovf))}validateSlug(e){this.ServerActions.requestStarting(a.zWK);let t=()=>{this.ServerActions.validateSlug()},r=e=>{422!==e.status&&l.A.sendError(`${this.apiEndpoint}#validate_slug`,e),this.ServerActions.validateSlugError(e)};return d.A.putJSON(`${this.apiEndpoint}/validate_slug`,{slug:e}).then(t,r).then(()=>this.ServerActions.requestDone(a.zWK))}uploadImage(e,t){this.ServerActions.requestStarting("UPDATE");let r=e=>{this.ServerActions.updateSuccess(e)},s=e=>{l.A.sendError(`${this.apiEndpoint}#uploadImage`,e),this.ServerActions.updateError(e.message)},i=new FormData;return i.append("image_file",t),d.A.put(`${this.apiEndpoint}/${e}`,i).then(r,s).then(()=>this.ServerActions.requestDone("UPDATE"))}show(e,t){let r=t=>{404!==t.status&&l.A.sendError(`${this.apiEndpoint}#show`,t,e),this.ServerActions.showError(t)};super.show(e,t,{onFailure:r})}constructor(){super("/shows",u),this.onUpdate=e=>{this.ServerActions.updateSuccess(e.data)}}}let g=new A;var S=r(859647),v=r(440913);class E extends S.A{subscribe(e){g.subscribe(e)}unsubscribe(){g.unsubscribe()}validateCreate(e){return this.validate(e)}validateUpdate(e,t){return this.validate(t)}validate(e){return v.A.hasEmoji(e.name)?"errors.validation.title_no_emoji":v.A.hasEmoji(e.description)?"errors.validation.description_no_emoji":e.name?e.status?e.rating?e.show_category_relationships_attributes?null:"errors.validation.required.category":"errors.validation.required.rating":"errors.validation.required.status":"errors.validation.required.title"}generateSlug(e){g.generateSlug(e)}validateSlug(e){g.validateSlug(e)}uploadImage(e,t){g.uploadImage(e,t)}constructor(){super(g,"SHOW")}}let _=new E},487961(e,t,r){r.r(t),r.d(t,{default:()=>a});var s=r(296540),i=r(722097);let a=({token:e})=>((0,s.useEffect)(()=>{if(e)return i.A.subscribe(e),()=>{i.A.unsubscribe()}},[e]),null)}}]); 2//# sourceMappingURL=6197-636eebea0eda5fee.chunk.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.