PageSourceSearch

https://converso.app/assets/Update-BZWLr_B2.js

js converso.app collected 2026-10-09 00:21:36 UTC 10,539 bytes, 1 lines download raw bytes

vendor: 2,136 bytes, line 1
1import{K as N,k as H,p as J,u as W,L as X,m as T,M as h,N as $,O as q,P as ee,Q as te,z as ne,n as oe,R as le,S as ae,T as se,f as l,x as P,U as ie,a as u,_ as re,c as ue,g as i,b as F,l as me,e as ce,o as de,i as V,t as ve}from"./index-Dp6dPRWM.js";import{Z as fe}from"./main-JKeElw_3.js";import{V as pe}from"./VForm-B8zpme-k.js";import{u as Ve,b as ye,a as I}from"./VOverlay-CrZs2-El.js";import{f as ge}from"./VSelectionControl-DNClT80x.js";import{u as be,b as ke,c as Se,m as _e,d as we,e as xe,f as Te,g as he,h as Pe,i as Ue,V as B}from"./index-DzWOs6HW.js";import{u as Ce}from"./tag-6jQtMcJF.js";import{V as S}from"./VRow-CzQuMX7g.js";import{V as c}from"./VCol-DhZPjxQB.js";import{V as A}from"./VTextField-jxEQDwaW.js";import{V as R}from"./VTextarea-DbTaicgL.js";import{V as De}from"./VSelect-yD00L7RT.js";import{V as d}from"./VSwitch-dyYUf9Us.js";import"./VAvatar-Sp4T7Ofs.js";const O=Symbol.for("vuetify:layout");function Ee(){const n=N(O);if(!n)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:n.getLayoutItem,mainRect:n.mainRect,mainStyles:n.mainStyles}}function Me(n){const e=h(n());let s=-1;function a(){clearInterval(s)}function t(){a(),se(()=>e.value=n())}function v(m){const o=m?getComputedStyle(m):{transitionDuration:.2},f=parseFloat(o.transitionDuration)*1e3||200;if(a(),e.value<=0)return;const _=performance.now();s=window.setInterval(()=>{const w=performance.now()-_+f;e.value=Math.max(n()-w,0),e.value<=0&&a()},f)}return ae(a),{clear:a,time:e,start:v,reset:t}}const Le=J({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Te({location:"bottom"}),...xe(),...we(),..._e(),...le(),...oe(ye({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),qe=H()({name:"VSnackbar",props:Le(),emits:{"update:modelValue":n=>!0},setup(n,e){let{slots:s}=e;const a=W(n,"modelValue"),{positionClasses:t}=be(n),{scopeId:v}=Ve(),{themeClasses:m}=X(n),{colorClasses:o,colorStyles:f,variantClasses:_}
1=ke(n),{roundedClasses:w}=Se(n),y=Me(()=>Number(n.timeout)),U=T(),C=T(),g=h(!1),D=h(0),E=T(),z=N(O,void 0);$(()=>!!z,()=>{const r=Ee();ie(()=>{E.value=r.mainStyles.value})}),q(a,b),q(()=>n.timeout,b),ee(()=>{a.value&&b()});let x=-1;function b(){y.reset(),window.clearTimeout(x);const r=Number(n.timeout);if(!a.value||r===-1)return;const p=te(C.value);y.start(p),x=window.setTimeout(()=>{a.value=!1},r)}function Y(){y.reset(),window.clearTimeout(x)}function j(){g.value=!0,Y()}function M(){g.value=!1,b()}function Q(r){D.value=r.touches[0].clientY}function K(r){Math.abs(D.value-r.changedTouches[0].clientY)>50&&(a.value=!1)}function Z(){g.value&&M()}const G=ne(()=>n.location.split(" ").reduce((r,p)=>(r[`v-snackbar--${p}`]=!0,r),{}));return Ce(()=>{const r=I.filterProps(n),p=!!(s.default||s.text||n.text);return l(I,P({ref:U,class:["v-snackbar",{"v-snackbar--active":a.value,"v-snackbar--multi-line":n.multiLine&&!n.vertical,"v-snackbar--timer":!!n.timer,"v-snackbar--vertical":n.vertical},G.value,t.value,n.class],style:[E.value,n.style]},r,{modelValue:a.value,"onUpdate:modelValue":k=>a.value=k,contentProps:P({class:["v-snackbar__wrapper",m.value,o.value,w.value,_.value],style:[f.value],onPointerenter:j,onPointerleave:M},r.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:Q,onTouchend:K,onAfterLeave:Z},v),{default:()=>{var k,L;return[he(!1,"v-snackbar"),n.timer&&!g.value&&u("div",{key:"timer",class:"v-snackbar__timer"},[l(Pe,{ref:C,color:typeof n.timer=="string"?n.timer:"info",max:n.timeout,modelValue:y.time.value},null)]),p&&u("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[((k=s.text)==null?void 0:k.call(s))??n.text,(L=s.default)==null?void 0:L.call(s)]),s.actions&&l(Ue,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[u("div",{class:"v-snackbar__actions"},[s.actions({isActive:a})])]})]},activator:s.activator})}),ge({},U)}}),Fe={name:"admin-events-update",components:{Datepicker:fe},setup(){return{login:me()}},data(){return{snackbar:[{status:!1,text:"Success!",timeout:2e3}],valid:!0,validationErrors:"",event_id:null,access_types:["simple","event-token","event-auto","event-verified"],event:{title:"",description:"",start:new Date(Date.now()-new Date().getTimezoneOffset()*6e4).toISOString().substr(0,10),end:new Date(Date.now()-new Date().getTimezoneOffset()*6e4).toISOString().substr(0,10),status:!0,polls_active:!1,questions_active:!1,display_lang_selector:!0,blind_transcription:!1,force_only_one_interaction:!1,user_id:null,access_type:"",event_token:"",_method:"PUT"}}},mounted:function(){this.event_id=this.$route.params.id,this.getEvent()},methods:{validToken:function(){return this.login.token},validate(){this.$refs.form.validate()&&this.save()},reset(){this.$refs.form.reset()},getEvent(){let n={headers:{Authorization:"Bearer "+this.validToken()}};F.get("/event/"+this.$route.params.id,n).then(e=>{console.log("Event",e.data),this.event=e.data}).catch(e=>{console.log(e)})},save:function(){console.log("Save");let n={headers:{"Content-Type":"application/json",Authorization:"Bearer "+this.validToken()}};this.event.start=this.parseDateforSave(this.event.start),this.event.end=this.parseDateforSave(this.event.end),F.put("/event/"+this.event_id,this.event,n).then(e=>{this.$router.push({name:"events-index"})}).catch(e=>{e.response.status==422&&(console.log("Errors in save: "+e.response.data.errors),this.validationErrors=e.response.data.errors)})},parseDateforSave(n){const e=new Date(n),s=e.getDate().toString(),a=(e.getMonth()+1).toString();return`${e.getFullYear().toString()}-${a.padStart(2,"0")}-${s.padStart(2,"0")}`}}},Ie={class:"w-full mx-auto text-left"},Be={class:"mx-auto"},Ae={class:"table w-full"};function Re(n,e,s,a,t,v){const m=ce("Datepicker");return de(),ue("div",Ie,[e[19]||(e[19]=u("h1",{class:"text-3xl p-4"},"Events - Update",-1)),u("div",Be,[u("div",Ae,[l(pe,{ref:"form",modelValue:t.valid,"onUpdate:modelValue":e[13]||(e[13]=o=>t.valid=o),"lazy-validation":""},{default:i(()=>[l(S,null,{default:i(()=>[l(c,{cols:"12",md:"12"},{default:i(()=>[l(A,{name:"title",modelValue:t.event.title,"onUpdate:modelValue":e[0]||(e[0]=o=>t.event.title=o),label:"Title",required:""},null,8,["modelValue"])]),_:1}),l(c,{cols:"12",md:"12"},{default:i(()=>[l(R,{name:"description",modelValue:t.event.description,"onUpdate:modelValue":e[1]||(e[1]=o=>t.event.description=o),label:"Description",required:""},null,8,["modelValue"]),l(R,{class:"mt-4",name:"note",modelValue:t.event.note,"onUpdate:modelValue":e[2]||(e[2]=o=>t.event.note=o),label:"Note"},null,8,["modelValue"])]),_:1})]),_:1}),l(S,null,{default:i(()=>[l(c,{cols:"12",md:"6"},{default:i(()=>[l(De,{name:"access_type",items:t.access_types,modelValue:t.event.access_type,"onUpdate:modelValue":e[3]||(e[3]=o=>t.event.access_type=o),label:"Access type Event",required:"",rules:[o=>!!o||"Item is required"]},null,8,["items","modelValue","rules"])]),_:1}),l(c,{cols:"12",md:"6"},{default:i(()=>[l(A,{name:"event_token",modelValue:t.event.event_token,"onUpdate:modelValue":e[4]||(e[4]=o=>t.event.event_token=o),label:"Event Token",required:""},null,8,["modelValue"])]),_:1})]),_:1}),l(S,null,{default:i(()=>[l(c,{cols:"12",md:"6"},{default:i(()=>[l(m,{modelValue:t.event.start,"onUpdate:modelValue":e[5]||(e[5]=o=>t.event.start=o),format:"dd/MM/yyyy",previewFormat:"dd/MM/yyyy",locale:"it",placeholder:"Event Start",textInput:"",autoApply:"",enableTimePicker:!1},null,8,["modelValue"])]),_:1}),l(c,{cols:"12",md:"6"},{default:i(()=>[l(m,{modelValue:t.event.end,"onUpdate:modelValue":e[6]||(e[6]=o=>t.event.end=o),format:"dd/MM/yyyy",previewFormat:"dd/MM/yyyy",locale:"it",placeholder:"Event End",textInput:"",autoApply:"",enableTimePicker:!1},null,8,["modelValue"])]),_:1})]),_:1}),l(S,{class:"my-4"},{default:i(()=>[l(d,{class:"mx-4",modelValue:t.event.status,"onUpdate:modelValue":e[7]||
1(e[7]=o=>t.event.status=o),color:"green",inset:"",label:`Status: ${t.event.status.toString()}`},null,8,["modelValue","label"]),l(d,{class:"mx-4",modelValue:t.event.display_lang_selector,"onUpdate:modelValue":e[8]||(e[8]=o=>t.event.display_lang_selector=o),color:"green",inset:"",label:`Display lang selector?  ${t.event.display_lang_selector.toString()}`},null,8,["modelValue","label"]),l(d,{class:"mx-4",modelValue:t.event.polls_active,"onUpdate:modelValue":e[9]||(e[9]=o=>t.event.polls_active=o),color:"green",inset:"",label:`Force Polls view: ${t.event.polls_active.toString()}`},null,8,["modelValue","label"]),l(d,{class:"mx-4",modelValue:t.event.questions_active,"onUpdate:modelValue":e[10]||(e[10]=o=>t.event.questions_active=o),color:"green",inset:"",label:`Force Questions view: ${t.event.questions_active.toString()}`},null,8,["modelValue","label"]),l(d,{class:"mx-4",modelValue:t.event.force_only_one_interaction,"onUpdate:modelValue":e[11]||(e[11]=o=>t.event.force_only_one_interaction=o),color:"green",inset:"",label:`Limit one interaction?  ${t.event.force_only_one_interaction.toString()}`},null,8,["modelValue","label"]),l(d,{class:"mx-4",modelValue:t.event.blind_transcription,"onUpdate:modelValue":e[12]||(e[12]=o=>t.event.blind_transcription=o),color:"green",inset:"",label:`Blind mode selector?  ${t.event.blind_transcription.toString()}`},null,8,["modelValue","label"])]),_:1}),e[17]||(e[17]=u("div",{class:"mb-4"},[u("p",null,[V("NOTE: Set the trigger Polls e Questions "),u("strong",null,"(not at the same time!)"),V(" to force trigger the view at all the participants, without refresh.")]),u("p",null,"Ex: Polls starts: make questions false and polls true. --> at client side, all participant force the view poll tab."),u("p",null,"Ex: Polls ends: make questions true and polls false, all participant force the view question tab.")],-1)),l(B,{large:"",disabled:!t.valid,class:"mr-4",onClick:v.validate},{default:i(()=>[...e[16]||(e[16]=[V(" Update Event ",-1)])]),_:1},8,["disabled","onClick"])]),_:1},8,["modelValue"]),l(qe,{modelValue:t.snackbar[0].status,"onUpdate:modelValue":e[15]||(e[15]=o=>t.snackbar[0].status=o),timeout:t.snackbar[0].timeout,color:"success"},{action:i(({attrs:o})=>[l(B,P({text:""},o,{onClick:e[14]||(e[14]=f=>t.snackbar[0].status=!1)}),{default:i(()=>[...e[18]||(e[18]=[V(" Close ",-1)])]),_:1},16)]),default:i(()=>[V(ve(t.snackbar[0].text)+" ",1)]),_:1},8,["modelValue","timeout"])])])])}const et=re(Fe,[["render",Re]]);export{et 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.