1"use strict";(globalThis["webpackChunkinteract_place"]=globalThis["webpackChunkinteract_place"]||[]).push([[283],{30984(e,t,n){n.d(t,{A:()=>o});n(63746),n(58382),n(66771),n(78424),n(27605),n(26523),n(52167);var r=n(47863),s=n(91626);const o={components:{RewardsJourneyList:(0,s.$V)(()=>n.e(1471).then(n.bind(n,31471)))},data:()=>({emblemModel:!1,sortionInfo:!1}),computed:{...(0,r.L8)("auth",["isEnglish","isPortuguese","isSpanish","isFrench","isAnonimous"]),...(0,r.aH)("journey",["selectedJourney","showNextJourneyPointsDialog","journeyFeedbackPointId"]),...(0,r.aH)("interaction",["interactionsByUser"]),...(0,r.L8)("journey",["hasJourneyCompletedDoc"]),...(0,r.aH)("guide",["selectedGuide"]),...(0,r.aH)("reward",["emblemsByGuide"]),...(0,r.L8)("intPoint",["pointsByJourney"]),...(0,r.L8)("reward",["rewardsByJourneyAndDate","instantRewardsByJourneyAndDate","showRewardBtn","rewardsByJourney"]),showDialog:{get:function(){return this.showNextJourneyPointsDialog},set:function(e){this.setDialogVisibility(e)}},journeyRequired(){const e=this.pointsByJourney,t=e.filter(e=>e.journeyRequired);return t},requiredPointCount(){return this.journeyRequired.length},requiredPointIds(){return new Set(this.journeyRequired.map(e=>e?.id).filter(e=>void 0!==e&&null!==e).map(String))},accessedRequiredPointIds(){const e=new Set;this.journeyRequired.forEach(t=>{void 0===t?.id||null===t?.id||t.locked||e.add(String(t.id))});const t=Array.isArray(this.interactionsByUser)?this.interactionsByUser:[];return t.forEach(t=>{const n=t?.intPoint?.id;void 0!==n&&null!==n&&this.requiredPointIds.has(String(n))&&e.add(String(n))}),void 0!==this.journeyFeedbackPointId&&null!==this.journeyFeedbackPointId&&this.requiredPointIds.has(String(this.journeyFeedbackPointId))&&e.add(String(this.journeyFeedbackPointId)),e},accessedPointCount(){return this.accessedRequiredPointIds.size},progressRate(){return this.requiredPointCount?Math.max(0,Math.min(1,this.accessedPointCount/this.requiredPointCount)):0},journeyProgressPercent(){return Math.round(100*this.progressRate)},hasAccessedPoint(){return this.accessedPointCount>0},hasCompletedJourney(){return this.requiredPointCount>0&&this.accessedPointCount>=this.requiredPointCount},feedbackTitle(){return this.hasCompletedJourney||this.progressRate>=1?this.$t("journeyFeedbackCompletedTitle"):this.hasAccessedPoint?this.$t("journeyFeedbackUnlockedTitle"):this.$t("journeyFeedbackOverviewTitle")},progressSummary(){return this.requiredPointCount?this.hasAccessedPoint?this.$t("journeyFeedbackStartedSummary",{accessed:this.accessedPointCount,total:this.requiredPointCount}):this.$t("journeyFeedbackEmptySummary",{total:this.requiredPointCount}):this.$t("journeyFeedbackNoRequired")},nextStepText(){return this.requiredPointCount?this.hasCompletedJourney?this.$t("journeyFeedbackCompletedStep"):this.hasAccessedPoint?this.$t("journeyFeedbackKeepGoing"):this.$t("journeyFeedbackFirstStep"):this.$t("progressMsg")},nextStepIcon(){return this.hasCompletedJourney?"check_circle":"explore"},progressBarStyle(){return{color:this.journeyAccentColor}},journeyAccentColor(){return this.selectedJourney?.backgroundColor?`rgba(${this.selectedJourney.backgroundColor})`:"#111827"},journeyAccentStyle(){return{backgroundColor:this.journeyAccentColor}},journeyAccentTextStyle(){return{color:this.journeyAccentColor}},journeyAccentBorderStyle(){return{borderLeftColor:this.journeyAccentColor}},showRewardsList(){return Boolean(this.emblemsByGuide?.length||this.rewardsByJourneyAndDate?.length||this.instantRewardsByJourneyAndDate?.length)}},methods:{...(0,r.PY)("journey",["SET_SHOW_NEXT_JOURNEY_POINTS_DIALOG","SET_JOURNEY_FEEDBACK_POINT_ID","SET_PENDING_JOURNEY_FEEDBACK_POINT_ID"]),...(0,r.PY)("intPoint",["SET_SELECTED_INT_POINT"]),...(0,r.i0)("intPoint",["selectIntPoint"]),...(0,r.i0)("journey",["addJourneyCompleted"]),mRegisterEmail(){this.$store.dispatch("auth/setDialogAuth")},setDialogVisibility(e){this.SET_SHOW_NEXT_JOURNEY_POINTS_DIALOG(e),e||(this.SET_JOURNEY_FEEDBACK_POINT_ID(null),this.SET_PENDING_JOURNEY_FEEDBACK_POINT_ID(null))},closeFeedbackDialog(){this.setDialogVisibility(!1)}},watch:{showDialog(){this.$emit("dialogChange",this.showDialog)},progressRate(){this.selectedJourney&&!this.selectedJourney.fav&&this.progressRate>=.95&&!this.hasJourneyCompletedDoc.length&&this.addJourneyCompleted()}},mounted(){this.selectedJourney&&!this.selectedJourney.fav&&this.progressRate>=.95&&!this.hasJourneyCompletedDoc.length&&this.addJourneyCompleted()}}},38689(e,t,n){n.d(t,{A:()=>a});var r=n(47863),s=n(91626),o=n(10688),i=n.n(o);const a={data:()=>({rewardIcon:i(),showDialog:!1}),components:{RichTextRenderer:(0,s.$V)(()=>n.e(996).then(n.bind(n,99467)))},computed:{...(0,r.aH)("reward",["selectedReward","instantRewardAchieve"]),...(0,r.aH)("auth",["user"]),...(0,r.L8)("reward",["rewardsByJourneyAndDate","showRewardBtn","rewardsByJourney"]),...(0,r.L8)("interaction",["interactionRateByJourney"])},methods:{...(0,r.i0)("reward",["justUpdateInstantReward"])},watch:{},mounted(){const e={...this.instantRewardAchieve}
1,t={id:this.user.id,name:this.user.name,email:this.user.email};e.winner=t,e.enable=!1,this.justUpdateInstantReward({id:e.id,item:{...e}})}}},4787(e,t,n){n.d(t,{X:()=>p});var r=n(91626),s=n(71570);const o={class:"journey-feedback-card__header row items-start no-wrap"},i={class:"col q-ml-sm"},a={tabindex:"0",class:"journey-feedback-card__title text-weight-bold"},d={class:"journey-feedback-card__progress"},c={class:"row items-center justify-between q-mb-xs"},u={class:"text-caption text-weight-medium text-grey-8"},l={class:"journey-feedback-card__percent text-weight-bold"},h={tabindex:"0",class:"journey-feedback-card__summary text-body2 q-mt-sm"},y={class:"text-body2"},b={key:0,class:"journey-feedback-card__rewards"},m={key:1,class:"journey-feedback-card__register row items-center q-mt-md"},g={tabindex:"0",class:"col text-body2 text-weight-medium"};function p(e,t,n,p,w,k){const _=(0,r.g2)("q-icon"),A=(0,r.g2)("q-avatar"),v=(0,r.g2)("q-btn"),C=(0,r.g2)("q-linear-progress"),x=(0,r.g2)("RewardsJourneyList"),j=(0,r.g2)("q-card-section"),f=(0,r.g2)("q-card"),P=(0,r.g2)("q-dialog"),R=(0,r.gN)("close-popup");return(0,r.uX)(),(0,r.Wv)(P,{class:"journey-feedback-dialog",onHide:k.closeFeedbackDialog,position:k.progressRate<1?"top":"standard",modelValue:k.showDialog,"onUpdate:modelValue":t[1]||(t[1]=e=>k.showDialog=e)},{default:(0,r.k6)(()=>[(0,r.bF)(f,{class:"journey-feedback-card bg-white text-black"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",{class:"journey-feedback-card__accent",style:(0,s.Tr)(k.journeyAccentStyle)},null,4),(0,r.Lk)("div",o,[(0,r.bF)(A,{class:"journey-feedback-card__icon",size:"40px",style:(0,s.Tr)(k.journeyAccentTextStyle)},{default:(0,r.k6)(()=>[(0,r.bF)(_,{name:"emoji_events",size:"24px"})]),_:1},8,["style"]),(0,r.Lk)("div",i,[(0,r.Lk)("div",{class:"journey-feedback-card__eyebrow text-caption text-weight-medium",style:(0,s.Tr)(k.journeyAccentTextStyle)},(0,s.v_)(k.feedbackTitle),5),(0,r.Lk)("div",a,(0,s.v_)(e.selectedJourney?.name),1)]),(0,r.bo)((0,r.bF)(v,{tabindex:"0","aria-label":"fechar",icon:"close",dense:"",flat:"",round:""},null,512),[[R]])]),(0,r.bF)(j,{class:"journey-feedback-card__body q-pt-none"},{default:(0,r.k6)(()=>[(0,r.Lk)("div",d,[(0,r.Lk)("div",c,[(0,r.Lk)("div",u,(0,s.v_)(e.$t("journeyProgress")),1),(0,r.Lk)("div",l,(0,s.v_)(k.journeyProgressPercent)+"% ",1)]),(0,r.bF)(C,{tabindex:"0",role:"region","aria-label":"progresso no roteiro "+k.journeyProgressPercent+"%",value:k.progressRate,rounded:"",size:"10px",style:(0,s.Tr)(k.progressBarStyle)},null,8,["aria-label","value","style"]),(0,r.Lk)("div",h,(0,s.v_)(k.progressSummary),1)]),(0,r.Lk)("div",{tabindex:"0",class:"journey-feedback-card__next row no-wrap items-start",style:(0,s.Tr)(k.journeyAccentBorderStyle)},[(0,r.bF)(_,{name:k.nextStepIcon,size:"20px",class:"q-mr-sm q-mt-xs"},null,8,["name"]),(0,r.Lk)("div",y,(0,s.v_)(k.nextStepText),1)],4),k.showRewardsList?((0,r.uX)(),(0,r.CE)("div",b,[(0,r.bF)(x)])):(0,r.Q3)("",!0),e.isAnonimous?((0,r.uX)(),(0,r.CE)("div",m,[(0,r.Lk)("div",g,(0,s.v_)(e.$t("journeyFeedbackRegisterHint")),1),e.isAnonimous?(0,r.bo)(((0,r.uX)(),(0,r.Wv)(v,{key:0,tabindex:"0","aria-label":"registrar",label:e.$t("register"),unelevated:"",class:"journey-feedback-card__register-btn",onClick:t[0]||(t[0]=e=>k.mRegisterEmail())},null,8,["label"])),[[R]]):(0,r.Q3)("",!0)])):(0,r.Q3)("",!0)]),_:1})]),_:1})]),_:1},8,["onHide","position","modelValue"])}},34470(e,t,n){n.d(t,{X:()=>d});var r=n(91626),s=n(71570);const o=["src"],i={class:"col"},a={class:"text-center text-h6"};function d(e,t,n,d,c,u){const l=(0,r.g2)("q-btn"),h=(0,r.g2)("q-card-section"),y=(0,r.g2)("q-avatar"),b=(0,r.g2)("RichTextRenderer"),m=(0,r.g2)("q-card"),g=(0,r.gN)("close-popup");return(0,r.uX)(),(0,r.Wv)(m,{class:"bg-white text-black"},{default:(0,r.k6)(()=>[(0,r.bF)(h,{class:"row justify-end"},{default:(0,r.k6)(()=>[(0,r.bo)((0,r.bF)(l,{icon:"close",class:"q-px-sm",flat:"",dense:"",size:"17px"},null,512),[[g]])]),_:1}),(0,r.bF)(h,{class:"row q-ma-md"},{default:(0,r.k6)(()=>[(0,r.bF)(l,{disable:"",class:"col animated pulse animated infinite animated slower animated delay-1s",round:"",flat:"",onClick:t[0]||(t[0]=t=>e.showDialog=!1)},{default:(0,r.k6)(()=>[(0,r.bF)(y,{size:"100px"},{default:(0,r.k6)(()=>[(0,r.Lk)("img",{src:e.rewardIcon},null,8,o)]),_:1})]),_:1})]),_:1}),(0,r.bF)(h,null,{default:(0,r.k6)(()=>[(0,r.Lk)("div",i,[(0,r.Lk)("div",a,(0,s.v_)(e.instantRewardAchieve.name),1),(0,r.bF)(b,{class:"col text-left text-body1",html:e.instantRewardAchieve.description},null,8,["html"])])]),_:1})]),_:1})}}
1,35596(e,t,n){n.d(t,{A:()=>s});class r{constructor(){this.audioCtx=null,this.isUnlocked=!1}ensureContext(){return this.audioCtx||(this.audioCtx=new(window.AudioContext||window.webkitAudioContext)),this.audioCtx}unlockNowInGesture(){const e=this.ensureContext();if(this.isUnlocked)return;const t=e.createBuffer(1,1,e.sampleRate),n=e.createBufferSource();n.buffer=t,n.connect(e.destination);try{n.start(0)}catch(e){}if("suspended"===e.state)try{e.resume()}catch(e){}this.isUnlocked=!0}async initializeAudioContext(){const e=this.ensureContext();"suspended"===e.state&&await e.resume()}bindHardUnlock(){if(this._bound||this.isUnlocked)return;const e=()=>{const t=this.ensureContext();try{t.resume()}catch(e){}this._beepWA(),this._htmlMediaFallbackPlayOnce(),this.isUnlocked=!0,window.removeEventListener("pointerdown",e,!0),window.removeEventListener("touchstart",e,!0),window.removeEventListener("mousedown",e,!0)};window.addEventListener("pointerdown",e,!0),window.addEventListener("touchstart",e,!0),window.addEventListener("mousedown",e,!0),this._bound=!0}getContext(){return this.audioCtx}isAudioUnlocked(){return this.isUnlocked}async decodeAudioData(e){const t=this.ensureContext(),n=t.decodeAudioData(e);return n&&"function"===typeof n.then?n:new Promise((n,r)=>{t.decodeAudioData(e.slice(0),n,r)})}}const s=new r},70836(e,t,n){n.d(t,{A:()=>p});var r=n(87796),s=n(78311),o=n(50211),i=n(98062),a=n(438),d=n(73394),c=n(59670),u=n(88690),l=n(88555),h=n(90361),y=n(87474),b=n(29994),m=n.n(b);const g=(0,o.A)(s.A,[["render",r.X],["__scopeId","data-v-2563f092"]]),p=g;m()(s.A,"components",{QDialog:i.A,QCard:a.A,QAvatar:d.A,QIcon:c.A,QBtn:u.A,QCardSection:l.A,QLinearProgress:h.A}),m()(s.A,"directives",{ClosePopup:y.A})},22707(e,t,n){n.d(t,{A:()=>b});var r=n(16235),s=n(2859),o=n(50211),i=n(438),a=n(88555),d=n(88690),c=n(73394),u=n(87474),l=n(29994),h=n.n(l);const y=(0,o.A)(s.A,[["render",r.X]]),b=y;h()(s.A,"components",{QCard:i.A,QCardSection:a.A,QBtn:d.A,QAvatar:c.A}),h()(s.A,"directives",{ClosePopup:u.A})},78311(e,t,n){n.d(t,{A:()=>r.A});var r=n(30984)},2859(e,t,n){n.d(t,{A:()=>r.A});var r=n(38689)},87796(e,t,n){n.d(t,{X:()=>r.X});var r=n(4787)},16235(e,t,n){n.d(t,{X:()=>r.X});var r=n(34470)}}]);
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.