1"use strict";(self["webpackChunkrudy_demo"]=self["webpackChunkrudy_demo"]||[]).push([[3932,4588,4748],{57712:function(t,e,i){i.d(e,{c:function(){return c}});var s=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M4.126 20q-.234 0-.414-.111t-.28-.293q-.108-.179-.12-.387q-.01-.209.118-.421L11.3 5.212q.128-.212.308-.308T12 4.808t.391.096t.308.308l7.871 13.576q.128.212.117.42q-.01.21-.12.388q-.1.182-.28.293t-.413.111zm.324-1h15.1L12 6zM12 17.616q.262 0 .439-.177t.176-.439t-.177-.438t-.438-.178t-.438.177t-.177.439t.177.439t.438.177m0-2.231q.214 0 .357-.144t.143-.356v-4q0-.213-.144-.357t-.357-.143t-.356.143t-.143.357v4q0 .212.144.356t.357.144M12 12.5"}})])},n=[],l={name:"exclamationIcon"},o=l,r=i(82528),a=(0,r.c)(o,s,n,!1,null,null,null),c=a.exports},66896:function(t,e,i){i.d(e,{c:function(){return p}});var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form"},["checkbox"===t.inputType?e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",staticClass:"form-control",class:{"is-invalid":t.error},attrs:{disabled:t.disabled,type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.onEnter.apply(null,arguments))},blur:function(e){return e.stopPropagation(),e.preventDefault(),t.onBlur.apply(null,arguments)},input:t.onInput,change:function(e){var i=t.model,s=e.target,n=!!s.checked;if(Array.isArray(i)){var l=null,o=t._i(i,l);s.checked?o<0&&(t.model=i.concat([l])):o>-1&&(t.model=i.slice(0,o).concat(i.slice(o+1)))}else t.model=n}}},"input",t.$attrs,!1)):"radio"===t.inputType?e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",staticClass:"form-control",class:{"is-invalid":t.error},attrs:{disabled:t.disabled,type:"radio"},domProps:{checked:t._q(t.model,null)},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.onEnter.apply(null,arguments))},blur:function(e){return e.stopPropagation(),e.preventDefault(),t.onBlur.apply(null,arguments)},input:t.onInput,change:function(e){t.model=null}}},"input",t.$attrs,!1)):e("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],ref:"input",staticClass:"form-control",class:{"is-invalid":t.error},attrs:{disabled:t.disabled,type:t.inputType},domProps:{value:t.model},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.stopPropagation(),e.preventDefault(),t.onEnter.apply(null,arguments))},blur:function(e){return e.stopPropagation(),e.preventDefault(),t.onBlur.apply(null,arguments)},input:[function(e){e.target.composing||(t.model=e.target.value)},t.onInput]}},"input",t.$attrs,!1)),e("span",{staticClass:"field-icon",class:{error:t.error,password:t.isPassword,"visible-password":t.passwordIsVisible}},[e("img",{directives:[{name:"show",rawName:"v-show",value:t.isPassword,expression:"isPassword"}],staticClass:"toggle-password-visibility-icon",attrs:{src:i(32829),alt:""},on:{click:t.togglePasswordVisibility}})]),e("small",{directives:[{name:"show",rawName:"v-show",value:t.error,expression:"error"}],staticClass:"text-danger"},[t._v(t._s(t.$t(t.error)))])])},n=[],l=(i(9624),i(12478)),o={name:"BaseInput",inheritAttrs:!1,data(){return{passwordIsVisible:!1}},props:{value:{type:[String,Number],default:""},error:{type:String,default:""},type:{type:String,default:"text"},disabled:{type:Boolean,default:!1}},computed:{model:{get(){return this.value},set(t){const e="string"===typeof t?t.trim():t;this.$emit("input",e)}},isPassword(){return this.type===l.iW.PASSWORD},inputType(){return this.isPassword?this.passwordIsVisible?l.iW.TEXT:l.iW.PASSWORD:this.type}},methods:{togglePasswordVisibility(){this.passwordIsVisible=!this.passwordIsVisible,this.$refs.input.focus()},onEnter(t){this.$emit("enter",t)},onBlur(){this.$emit("blur",this.model)},onInput(t){("input"!==t.type||t instanceof InputEvent)&&"insertFromPaste"!==t.inputType||this.$nextTick(this.onAutoFill)},onAutoFill(){this.$emit("blur",this.model)},focus(){this.$refs.input.focus()}},mounted(){this.$emit("interface",{focus:this.focus,blur:this.onBlur})},beforeDestroy(){this.$emit("interface",null)}},r=o,a=i(82528),c=(0,a.c)(r,s,n,!1,null,"79edbb3c",null),p=c.exports}
1,99472:function(t,e,i){i.d(e,{c:function(){return c}});var s=function(){var t=this,e=t._self._c;return e("div",[t._t("default")],2)},n=[],l={name:"emptyDiv"},o=l,r=i(82528),a=(0,r.c)(o,s,n,!1,null,null,null),c=a.exports},74588:function(t,e,i){i.r(e),i.d(e,{default:function(){return d}});var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.cancel,expression:"cancel"}],staticClass:"popup-element clip-delete",on:{click:function(t){t.stopPropagation()}}},[e("p",[t._v(t._s(t.$t("CLIP.WantToDelete")))]),e("button-component",{staticClass:"popup-element__close",attrs:{variant:"icon",title:"Close"},on:{"btn-click":t.cancel}},[e("x-mark-icon")],1),e("p",{staticClass:"remove-name"},[t._v(" "+t._s(t.clip.name)+" ")]),e("p",{staticClass:"remove-subName"},[t._v(" "+t._s(t.eventTitle)+" ( "+t._s(t.eventTime)+" ) ")]),e("div",{staticClass:"remove-buttons d-flex gap-1 justify-content-end"},[e("button-component",{attrs:{variant:"transparent",title:"No"},on:{"btn-click":t.cancel}},[t._v(" "+t._s(t.$t("No"))+" ")]),e("button-component",{attrs:{title:"Yes"},on:{"btn-click":t.ok}},[t._v(" "+t._s(t.$t("Yes"))+" ")])],1)],1)},n=[],l=i(54904),o=i(85596),r=i(41972),a={name:"DeleteClipPopup",components:{XMarkIcon:o.c,ButtonComponent:l.c},props:{clip:{type:Object,required:!0},cancel:{type:Function,required:!0},ok:{type:Function,required:!0}},computed:{event(){return this.clip.event},teams(){return(0,r.YF)(this.event)},eventTime(){return`${this.time.month} ${this.time.day} ${this.time.hh}`},eventTitle(){return(0,r.c3)(this.event)},time(){return(0,r.Ws)(this.event)}}},c=a,p=i(82528),u=(0,p.c)(c,s,n,!1,null,"b10418e8",null),d=u.exports},24748:function(t,e,i){i.r(e),i.d(e,{default:function(){return m}});var s=function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.ok,expression:"ok"}],staticClass:"popup-element",on:{click:function(t){t.stopPropagation()}}},[e("h2",{staticClass:"mb-3"},[t._v(t._s(t.$t("CLIP.ShareClip")))]),e("button-component",{staticClass:"popup-element__close",attrs:{variant:"icon",title:"Close"},on:{"btn-click":t.ok}},[e("x-mark-icon")],1),e("div",{staticClass:"d-flex gap-1 flex-wrap share-buttons",on:{click:t.onLinkClick}},[e("app-link",{attrs:{to:t.shareEmail}},[e("img",{attrs:{src:"/image/share/icon_email.png",alt:"Email"}})]),e("app-link",{attrs:{to:t.shareFacebook}},[e("img",{attrs:{src:"/image/share/icon_facebook.png",alt:"Facebook"}})]),e("app-link",{attrs:{to:t.shareTwitter}},[e("img",{attrs:{src:"/image/share/icon_x.png",alt:"X"}})]),e("app-link",{attrs:{to:t.shareWhatsApp}},[e("img",{attrs:{src:"/image/share/icon_WhatsApp.png",alt:"WhatsApp"}})])],1),e("div",{staticClass:"d-flex flex-column gap-1 mt-5 w-100"},[e("base-input",{ref:"urlInput",staticClass:"input-style",attrs:{type:"text",value:t.url,readonly:""}}),e("button-component",{staticClass:"align-self-end",attrs:{title:"Copy Link"},on:{"btn-click":t.copyUrl}},[t._v(" "+t._s(t.$t("Copy Link"))+" ")])],1)],1)},n=[],l=i(54904),o=i(85596),r=i(65684),a=i(66896),c=i(23872),p={name:"ShareClipPopup",components:{BaseInput:a.c,AppLink:r.c,XMarkIcon:o.c,ButtonComponent:l.c},props:{clip:{type:Object,required:!0},eventId:{type:[String,Number],required:!0},ok:{type:Function,required:!0}},computed:{url(){return`${window.location.origin}/share/${this.eventId}/${this.clip.uuid}`},shareEmail(){return`mailto:?subject=Check%20this%20out!&body=${encodeURIComponent(this.url)}`},shareFacebook(){return`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(this.url)}`},shareTwitter(){return`https://twitter.com/intent/tweet?url=${encodeURIComponent(this.url)}`},shareWhatsApp(){return`https://api.whatsapp.com/send?text=${encodeURIComponent(this.url)}`}},methods:{copyUrl(){var t;const e=null===(t=this.$refs.urlInput)||void 0===t||null===(t=t.$refs)||void 0===t?void 0:t.input;e.select(),document.execCommand("copy"),this.onInputSelect()},onLinkClick(t){null===t||void 0===t||t.preventDefault();const e=t.target.closest("a"),i=null===e||void 0===e?void 0:e.href,s=t.target.getAttribute("alt");this.triggerEvent({method:s,href:i})},onInputSelect(){this.triggerEvent({method:"copy",href:this.url})},triggerEvent({method:t,href:e}){c.c.event({event:"share_clip",share_method:t,share_link:e,clip_uuid:this.clip.uuid,clip_id:this.clip.id,event_id:this.clip.event_id,is_owner:this.clip.is_owner,timestamp:Math.floor(Date.now()/1e3)})}},mounted(){var t;
1null===(t=this.$refs.urlInput)||void 0===t||null===(t=t.$refs)||void 0===t||t.input.addEventListener("copy",this.onInputSelect)},beforeDestroy(){var t;null===(t=this.$refs.urlInput)||void 0===t||null===(t=t.$refs)||void 0===t||t.input.removeEventListener("copy",this.onInputSelect)}},u=p,d=i(82528),h=(0,d.c)(u,s,n,!1,null,null,null),m=h.exports},49048:function(t,e,i){i.d(e,{c:function(){return b}});var s=function(){var t=this,e=t._self._c;return e("div",[t.failed?e("div",{staticClass:"info",attrs:{"data-title":t.$t("CLIP.wentWrong")}},[e("exclamation-icon")],1):t._e(),t.processing?e("div",{staticClass:"info processing",attrs:{"data-title":t.$t("CLIP.notReady")}},[e("info-icon")],1):t._e(),t.locked?e("div",{staticClass:"info locked",attrs:{"data-title":t.$t("CLIP.locked")}},[e("lock-eye-icon")],1):t._e()])},n=[],l=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M12 16.5q.214 0 .357-.144T12.5 16v-4.5q0-.213-.144-.356T11.999 11t-.356.144t-.143.356V16q0 .213.144.356t.357.144M12 9.577q.262 0 .439-.177t.176-.438t-.177-.439T12 8.346t-.438.177t-.177.439t.177.438t.438.177M12.003 21q-1.867 0-3.51-.708q-1.643-.709-2.859-1.924t-1.925-2.856T3 12.003t.709-3.51Q4.417 6.85 5.63 5.634t2.857-1.925T11.997 3t3.51.709q1.643.708 2.859 1.922t1.925 2.857t.709 3.509t-.708 3.51t-1.924 2.859t-2.856 1.925t-3.509.709M12 20q3.35 0 5.675-2.325T20 12t-2.325-5.675T12 4T6.325 6.325T4 12t2.325 5.675T12 20m0-8"}})])},o=[],r={name:"infoIcon"},a=r,c=i(82528),p=(0,c.c)(a,l,o,!1,null,null,null),u=p.exports,d=i(57712),h=i(12478),m=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"}},[e("path",{attrs:{fill:"currentColor",d:"M12 14.2q-1.125 0-1.912-.787T9.3 11.5t.788-1.912T12 8.8t1.913.788t.787 1.912t-.787 1.913T12 14.2m.006 3.8q-3.252 0-5.925-1.768T2.077 11.5q1.33-2.964 4.002-4.732T12 5q3.102 0 5.688 1.621T21.685 11h-1.16q-1.3-2.325-3.575-3.662T12 6Q9.175 6 6.813 7.488T3.2 11.5q1.25 2.525 3.613 4.013T12 17q.442 0 .891-.04t.898-.122v1.006q-.446.067-.892.111q-.445.045-.89.045M12 15.154q.523 0 1.01-.144q.488-.144.9-.408q.182-.827.614-1.5t1.092-1.158q.019-.108.028-.222t.01-.222q0-1.522-1.067-2.588t-2.591-1.066t-2.587 1.067t-1.063 2.592t1.066 2.586q1.065 1.063 2.588 1.063m4.596 4.865q-.343 0-.575-.232t-.233-.575V16.5q0-.348.269-.568t.635-.22v-1q0-.707.504-1.21t1.21-.502t1.199.503t.491 1.209v1q.368 0 .636.22T21 16.5v2.712q0 .343-.232.575t-.576.232zm.866-4.307h1.865v-1q0-.426-.249-.684q-.25-.259-.674-.259t-.684.259q-.258.258-.258.683z"}})])},v=[],g={name:"lockEyeIcon"},f=g,C=(0,c.c)(f,m,v,!1,null,null,null),_=C.exports,w={name:"clipTooltip",components:{LockEyeIcon:_,exclamationIcon:d.c,InfoIcon:u},props:{status:{type:String,default:h.WY.success},access:{type:Boolean,default:!1}},computed:{failed(){return this.status===h.WY.error},processing(){return this.status===h.WY.processing},locked(){return!this.access}}},k=w,y=(0,c.c)(k,s,n,!1,null,"6cdac288",null),b=y.exports},52516:function(t,e,i){i.r(e),i.d(e,{default:function(){return Z}});var s=function(){var t=this,e=t._self._c;return e("blocked-content-wrapper",{staticClass:"watch-clip mb-5",attrs:{blocked:t.blocked}},[e("static-block-component",{attrs:{page:"event",position:"top"}}),e("div",[e("hr"),e("div",{staticClass:"wide-container max-content-wrapper d-flex align-items-center gap-1"},[e("app-link",{staticClass:"back-link d-flex align-items-center gap-05",attrs:{to:t.CLIPS_PAGE}}
1,[e("arrow-icon",{attrs:{width:"1rem",height:"1rem"}}),e("p",[t._v("Back to all clips")])],1)],1),e("hr"),!t.playerOptions&&t.loadingClip?e("div",{staticClass:"processing"},[e("loader-component")],1):t._e(),e("div",{staticClass:"player_wrapper"},[e("div",{staticClass:"player-container"},[t.playerOptions?e("player-controller",{attrs:{options:t.playerOptions,"analytics-allowed":!1},on:{interface:t.onInterfaceGet,play:t.onPlayChange}}):t._e(),t.error?e("div",{staticClass:"error h3 font-weight-normal"},[t._v(" "+t._s(t.$t(t.error))+" ")]):t._e()],1),e("div",{staticClass:"text-left clips-list d-flex flex-column"},[e("p",{staticClass:"mb-0"},[t._v(" Up Next "),t.clipCount?[t._v("("+t._s(t.clipCount)+")")]:t._e()],2),e("div",{staticClass:"scrolled-list"},[t.logged&&!t.clipsListProcessing?e("div",[t.sortedClips.length?t._l(t.sortedClips,(function(i){return e("clip-list-item",{key:i.id,attrs:{clip:i,selected:Boolean(i.id===t.clip.id)}})})):[e("span",{staticClass:"skeleton-message"},[t._v(" "+t._s(t.$t("CLIP.NoClips"))+" ")])]],2):e("div",[t.clipsListProcessing?t._e():e("div",{staticClass:"skeleton-message flex-column gap-1"},[e("span",[t._v(" "+t._s(t.$t("CLIP.needLogin"))+" ")]),e("app-link",{staticClass:"clip_screen_button login",attrs:{to:t.LOGIN}},[t._v(" "+t._s(t.$t("Login"))+" ")])],1),t._l(4,(function(t){return e("clip-list-item-skeleton",{key:t})}))],2)])]),e("div",{staticClass:"clip-description wide-container max-content-wrapper text-left pt-4"},[e(t.eventLinkComponent,{tag:"component",staticClass:"sub mb-2 text-decoration-none",attrs:{to:t.eventLink}},[t._v(" "+t._s(t.eventName)+" ")]),e("div",{staticClass:"d-flex align-items-center gap-2"},[e("div",{staticClass:"sub"},[t._v("Created: "+t._s(t.created))]),t.clip.clipTimes?e("div",{staticClass:"sub"},[t._v(" "+t._s(t.clip.clipTimes.start)+" - "+t._s(t.clip.clipTimes.end)+" ")]):t._e(),e("div",{staticClass:"sub"},[t._v(t._s(t.clip.tagsList))]),t.isAutoGenerated?e("div",{staticClass:"agc-label"},[t._v("Auto")]):t._e()]),t.logged?e("div",{staticClass:"d-flex gap-1 buttons flex-wrap mt-4"},[t.isOwner&&t.clip.download_url&&t.hasAccess?e("download-button",{staticClass:"clip-button",attrs:{btnVariant:"icon",url:t.clip.download_url,title:"CLIP.download",name:t.clip.downloadName}},[e("div",{staticClass:"d-flex gap-1 align-items-center"},[e("download-icon"),t._v(" Download")],1)]):t._e(),t.failedClip?t._e():e("button-component",{staticClass:"clip-button",attrs:{variant:"icon",title:"CLIP.share"},on:{"btn-click":function(e){return t.showPopup(t.clip.event_id)}}},[e("div",{staticClass:"d-flex gap-1 align-items-center"},[e("share-icon"),t._v(" Share")],1)]),t.isOwner&&t.hasAccess?e("button-component",{staticClass:"clip-button delete",attrs:{variant:"icon",title:"CLIP.delete"},on:{"btn-click":t.deleteClip}},[e("div",{staticClass:"d-flex gap-1 align-items-center"},[e("trash-icon"),t._v(" Delete")],1)]):t._e(),t.showAddAgcButton?e("button-component",{staticClass:"clip-button add",attrs:{variant:"icon",title:"CLIP.add",disabled:t.addClipProcessing},on:{"btn-click":t.addToUserList}},[e("div",{staticClass:"d-flex gap-1 align-items-center"},[e("add-icon"),t._v(" Add to My Clips")],1)]):t._e()],1):t._e()],1)])]),e("static-block-component",{attrs:{page:"event",position:"bottom"}})],1)},n=[],l=i(92588),o=(i(41960),i(25960),i(21992),i(5004),i(39952),i(93152)),r=i(90996),a=function(){var t=this,e=t._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"}},[e("path",{attrs:{d:"m12 19-7-7 7-7"}}),e("path",{attrs:{d:"M19 12H5"}})])},c=[],p={name:"arrowIcon"},u=p,d=i(82528),h=(0,d.c)(u,a,c,!1,null,null,null),m=h.exports,v=i(65684),g=i(48416),f=i(66128),C=i(2976),_=function(){var t=this,e=t._self._c;return e(t.componentToRender,{tag:"component",staticClass:"clip-list-item",class:{selected:t.selected},attrs:{to:t.playPath}},[e("div",[e("div",{staticClass:"position-relative"},[e("clip-item-poster",{attrs:{clip:t.clip}}),t.duration?e("span",{staticClass:"duration"},[t._v(t._s(t.duration))]):t._e()],1)]),e("div",{staticClass:"clip-description flex-grow-1"},[e("p",{staticClass:"title"},[t._v(t._s(t.clip.tagsList)+" ("+t._s(t.clip.clipTimes.start)+" - "+t._s(t.clip.clipTimes.end)+")")]),e("p",{staticClass:"small"},[t._v(t._s(t.clip.clipEventTitle))]),e("p",{staticClass:"small"},[t._v(t._s(t.clip.clipEventDate))])]),e("clip-tooltip",{attrs:{status:t.clip.status,access:t.hasAccess}})],1)},w=[],k=i(54384),y=i(97684),b=i(49048),I=i(99472),x=i(14752),A={name:"clipListItem",computed:{componentToRender(){return this.hasAccess?v.c:I.c}},components:{ClipItemPoster:x.c,ClipTooltip:b.c,ImageComponent:y.c},extends:k.c,props:{selected:{type:Boolean,default:!1}}},T=A,P=(0,d.c)(T,_,w,!1,null,"3808e1f8",null),L=P.exports,q=i(41972),E=i(89676),R=i(19864),O=i(8236),$=i(74588),S=i(24748),D=i(12478),W=function(){var t=this;t._self._c;return t._m(0)},B=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"d-flex gap-1 p-3 skeleton-clip-item"},[e("div",{staticClass:"image"}),e("div",{staticClass:"d-flex flex-column gap-1 flex-grow-1"},[e("div",{staticClass:"line"}),e("div",{staticClass:"line subtitle"})])])}],Y={name:"clipListItemSkeleton"},N=Y,U=(0,d.c)(N,W,B,!1,null,"01cf8558",null),M=U.exports,z=i(70400),F=i(56488),j=i(6600),V=i(38184),G={name:"WatchShareScreen",components:{AddIcon:V.c,ClipListItemSkeleton:M,TrashIcon:O.c,shareIcon:R.c,DownloadIcon:E.c,ClipListItem:L,AppLink:v.c,ArrowIcon:m},extends:o.c,data(){return{clip:{},loadingClip:!1,error:"",clipsListProcessing:!1,addClipProcessing:!1,attemptToAdd:!1}},computed:(0,l.c)((0,l.c)({LOGIN(){return r.EV},CLIPS_PAGE(){return r.YF}},(0,g.gV)({clips:C.ALL_CLIPS,logged:C.IS_LOGGED})),{},{sortedClips(){return[...this.clips].sort(((t,e)=>{const i="created_at";return t[i]>e[i]?-1:t[i]<e[i]?1:0}))},failedClip(){return this.clip.status===D.WY.error},clipCount(){return this.clips.length},clipEvent(){var t;return null===(t=this.clip)||void 0===t?void 0:t.event},isOwner(){var t;return null===(t=this.clip)||void 0===t?void 0:t.is_owner},eventName(){return this.clipEvent?(0,q.c3)(this.clipEvent):""},eventLink(){var t;const e=null===(t=this.clipEvent)||void 0===t?void 0:t.id;return e&&this.clipEvent.is_active?(0,l.c)((0,l.c)({},r.u0),{},{params:{id:e}}):null},eventLinkComponent(){return this.eventLink?v.c:I.c},duration(){return this.clip.duration?this.clip.duration.split(":").splice(1,2).join(":"):""},created(){var t;if(!this.clip.created_at)return"";const{y:e,m:i,d:s,hh:n}=(0,z.O)({ts:(0,z.m)(null===(t=this.clip)||void 0===t?void 0:t.created_at),formatsOptions:{y:{year:"numeric"},m:{month:"long"},d:{day:"2-digit"},hh:{hour:"2-digit",hour12:!0,minute:"2-digit"}}});return`${i} ${s}, ${e} at ${n}`},playerOptions(){if(!this.clip.out_url)return null;const t=(0,l.c)({},this.videoOptions);return t.file=this.clip.out_url,t.event=this.clipEvent,t},playerEventInfo(){return this.clipEvent||this.clip},hasAccess(){return this.clip.has_access},isAutoGenerated(){return this.isOwner?this.clip.original_id:this.clip.is_auto_clip},inUserClipList(){var t;return null===(t=this.clips)||void 0===t?void 0:t.find((t=>t.original_id===this.clip.id))},showAddAgcButton(){return!(!this.logged||!this.isAutoGenerated||this.isOwner)&&!this.inUserClipList}}),watch:{"$route.params.uuid"(){this.getClipInfo()},inUserClipList(t){if(this.attemptToAdd&&t){const e=t.event_id,i=t.uuid;e&&i&&this.$router.push((0,l.c)((0,l.c)({},r.gB),{},{params:{id:e,uuid:i}}))}}},methods:(0,l.c)((0,l.c)((0,l.c)({},(0,g.ae)({getAllClips:f.Ed,addPopup:f.YR,deleteClipRequest:f.kT,addAutoClipToUser:f.oF})),(0,g.sR)({addToast:F.SI})),{},{errorToast(t,e){const i=`<div>\n <p>Deleting: "${e.name}"</p>\n <p>${t||this.$t("ERRORS.somethingWrong")}</p>\n </div>`;this.addToast({html:i,time:7e3,type:"error"})},showPopup(){const t=this.clip.event_id;t&&this.addPopup({component:()=>S["default"],clip:this.clip,eventId:t})}
1,getClipInfo(){this.loadingClip=!0,this.error="",this.getSharedClip(this.$route.params.uuid).then((({data:t})=>{this.clip=(0,j.O)(t),this.clip.status===D.WY.processing?this.error="CLIP.notReady":this.clip.status===D.WY.error?this.error="CLIP.wentWrong":this.clip.out_url||(this.error="ERRORS.somethingWrong")})).catch((t=>{Number(t.status)===D.ic.NOT_FOUND?this.$router.push(r._b):this.error="ERRORS.somethingWrong"})).finally((()=>{this.loadingClip=!1}))},deleteClip(){const t=this.clip,e=this.addPopup({component:()=>$["default"],clip:t});e.then((async()=>{await this.deleteClipRequest({id:this.clip.id}),String(this.$route.params.uuid)===String(this.clip.uuid)?await this.$router.push(r.YF):this.getClipsList()})).catch((({message:e}={})=>{e!==D.ow.ABORT&&this.errorToast(e,t)}))},addToUserList(){this.addClipProcessing=!0,this.addAutoClipToUser({id:this.clip.id}).then((()=>{this.addToast({text:"Clip successfully added to your list",time:5e3,type:"success"})})).catch((t=>{this.addToast({text:t.message||this.$t("ERRORS.CLIP_ADD_OTHER_ERROR"),time:5e3,type:"info"})})).finally((()=>{this.attemptToAdd=!0,this.getClipsList()}))},getClipsList(){this.logged&&(this.clipsListProcessing=!0,this.getAllClips().finally((()=>{this.clipsListProcessing=!1,this.addClipProcessing=!1})))}}),mounted(){this.getClipInfo(),this.getClipsList()}},K=G,H=(0,d.c)(K,s,n,!1,null,"770bc40b",null),Z=H.exports},32829:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAOCAYAAADE84fzAAABS2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIi8+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgo8P3hwYWNrZXQgZW5kPSJyIj8+IEmuOgAAAiJJREFUOI191E+IV1UUwPHP/Fz0xyDpjw1Fm5IRS0smSMS7aOMijEiGLuqARLURdFAz1Hqk0KXETTGkxmCbFgO+YEBaNDiiI75NOdRmlhUik0KRgUzMyDj8XLw7w2P6TXdz73n3nO/58865Xe1223KrKKsV2ISt2ICHMIUruJxiuLWsMbo6wYuy6sUA+vDIMrZt/IxvMZRimP1feFFWT+AU3sZdPIhf8TV+wAzWYnfWmccDOZuDKYbvOsKLslqP79GdQdtxGgMphvkO2b2KUfyJafTiJI6mGNrQyorPYwxdCHgFPy4HhhTDT3g3Z3IGgziMzxcj//jc1Ycz6ElswTPqH9aXYhhpRHkWT6HMTtv5bhK3Ugxbi7L6AvvRn2IYbuEDvIgdKYbf8HJ2PN4I9Ky6W1ZjL95q3I1jYz4fyvJgUVaPtrAZtzGRFVbm/d8G4NklVWnK0ws2uYQX8Th6WvgEq/BlVr6Z9zUNwDeN8z8Yacg9+AOKsnoBH2EkxXCtlWKYwKd4ryirz3BJ3cP9DcCHeBP78FKKYSrDVqsHbKwoqx5cyM73kFuxKKsuDOF9nFf37+vYkmL4RYeVbc6p638ExzCH11IMk4vwhvIBnMBsdtDGrhTD6BLwY/gKO/E7nsM1xBTD9QW9/4x/UVbr1MPwRuPzHdxQT2g3nsaKfPcXjqufgHtNVse3JTvpwTa8kyNbqR6yOfyt7ophjKcYZjox7gO7RMC15nhDegAAAABJRU5ErkJggg=="}}]); 2//# sourceMappingURL=share-view.c2e8443e.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.