1import{o as a,c as r,a as s,k as p,b as S,e as C,m as h,s as v,l as u,q as b,F as w,p as P,N as G,O as W,r as x,w as Ut,n as I,z as rt,R as Vt,v as St,C as Nt,g as tt,A as et,G as Ct}from"./vendor-vue-DQs-uj5w.js";import{dj as Gt,fz as Wt,a9 as Rt,M as pt,dm as Ht,dr as jt,b9 as vt,fA as qt,B as ot,b2 as Q,b4 as nt,H as bt,bL as Qt,I as $t,aI as mt,aj as z,b5 as Kt,af as _,fB as ht,dA as Jt,a0 as U,fC as E,J as Yt,cd as Xt,U as H,fD as st,at as wt,R as Zt,ad as xt,bB as lt,am as te,fE as ee,bC as se,fF as Tt,eV as yt,fG as it,fH as ft,fI as ie,fJ as ae,bf as oe,z as Dt,b0 as ne,fK as le,aB as re,fL as pe,eb as me,bw as ue,dQ as de,cj as ce,cL as he,a as gt,fM as ye,cJ as fe,fN as ge,bV as _e,fO as ke,fP as Se,eL as ut,eO as Pt,fQ as Ce,a3 as Re,fR as ve,fS as be,d9 as $e,fT as we,ep as Te,eJ as De}from"../platinumaps.vue--P4ABRYg.min.js";import{_ as y}from"./scroll-view-DRo0W6hA.js";import{S as Pe,r as Ie}from"./stamp-base-icon-B5ckUvX5.js";import{A as It}from"./audio-player-DXaqINjR.js";import{u as Be}from"./stamp-rally-spot-reward-D3s8Z-MF.js";import{D as Ae}from"./description-CKVB7TOM.js";import{u as Oe}from"./stamp-rally-quiz-description-composition-DBn-uN8k.js";import Me from"./stamp-rally-event-sample-photo-ImAYsXes.js";import{u as Le}from"./stamp-rally-checkin-control-CO6ycnDh.js";import{C as ze}from"./crowd-status-DPvp-aGu.js";import{P as K}from"./poi-detail-comment-item-CwMNcOJ_.js";import{S as Bt}from"./spot-thumbnail-image-80bObPX6.js";import{S as Ee}from"./survey-view-type-CJru7tO9.js";import"./vendor-turf-B-Y8JY86.js";import"./vendor-ui-CZomPyE5.js";import"./vendor-firebase-CqnpAwj_.js";import"./pillar-effect-banner-CeWL66sV.js";import"./user-profile-icon-BythHKna.js";const Fe=C({name:"UserPostButton",components:{},props:{title:String,spotId:Number,disabled:Boolean},setup(){const{cropAsync:t}=Ht(),{openManholeBook:e}=jt();return{cropAsync:t,openManholeBook:e}},methods:{onClick(){this.disabled||(this.$refs.fileElement.value="",this.$refs.fileElement.click())},onChange(){const t=this.$refs.fileElement.files[0];t&&this.cropAsync({file:t,guideType:Gt.Circle,okButtonTitle:this.$r("common.register"),helpText:this.$r("manhole.crophelp"),onCrop:(e=>{const i=this.spotId,o=this.$store.dispatch(Wt,{spotId:i,file:e});return Rt(o),o.then(m=>{const n=m.id,l=this.openManholeBook({itemId:n}),d=pt(this.$r("manhole.register.done"));return Promise.all([l,d])})})})}}});function Ue(t,e,i,o,m,n){return a(),r("div",{class:S(["userpost",{"-disabled":t.disabled}])},[s("div",{class:"userpost__button",onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},p(t.title),1),s("input",{type:"file",ref:"fileElement",onChange:e[1]||(e[1]=(...l)=>t.onChange&&t.onChange(...l)),style:{display:"none !important"}},null,544)],2)}const Ve=y(Fe,[["render",Ue],["__scopeId","data-v-e4867f55"]]),Ne=C({name:"StampRallyRewardAudioImageCombo",components:{AudioPlayer:It},props:{spot:Object,stampRally:Object,stampRallySpot:Object},setup(){},data(){return{audioPlayCount:0}},computed:{isCheckedIn(){return!!this.$store.getters.checkinData(this.stampRallySpot.stampRallyId,this.stampRallySpot.spotId)},spotRewards(){return this.stampRallySpot.spotRewards&&this.stampRallySpot.spotRewards.length?this.stampRallySpot.spotRewards:[]},audioReward(){return this.spotRewards.find(t=>t.rewardPointType===Q.DigitalContent&&t.rewardPointSubType===nt.AudioFile)},imageReward(){return this.spotRewards.find(t=>t.rewardPointType===Q.DigitalContent&&t.rewardPointSubType===nt.Normal)},imageRewardClass(){const t=[];return!this.isCheckedIn||!this.imageReward.downloadContentsUrl?t.push("-disabled"):t.push("waves-effect waves-light"),t},imageDownloadButtonLabel(){return this.imageReward.title}},methods:{onAudioPlayerPlayButtonClick(t){t.isPlaying&&(this.audioPlayCount===0&&this.recordRewardUse(this.audioReward),this.audioPlayCount+=1)},audioPlayEnded(){this.audioPlayCount=0},onImageDownloadButtonClick(){this.imageReward.downloadContentsUrl&&(this.recordRewardUse(this.imageReward),ot(this.imageReward.downloadContentsUrl,"_blank"))},recordRewardUse(t){this.$store.dispatch(vt,{stampRallyId:this.stampRallySpot.stampRallyId,recordType:t.recordType,recordId:t.recordId}).then(()=>{this.$store.dispatch(qt,t)})}},mounted(){}}),Ge={class:"srraic"},We=["innerHTML"];function He(t,e,i,o,m,n){const l=h("audio-player");return a(),r("div",Ge,[t.audioReward?(a(),v(l,{key:0,class:"srraic__audio",disabled:!t.isCheckedIn,"audio-title":t.audioReward.title,"audio-file":t.audioReward.downloadContentsUrl,onPlaybuttonclick:t.onAudioPlayerPlayButtonClick,onPlayended:t.audioPlayEnded},null,8,["disabled","audio-title","audio-file","onPlaybuttonclick","onPlayended"])):u("",!0),e[1]||(e[1]=s("div",{class:"srraic__line"},null,-1)),t.imageReward?(a(),r("div",{key:1,class:S(["srraic__image",t.imageRewardClass])},[s("div",{class:"srraic__imagebutton",onClick:e[0]||(e[0]=(...d)=>t.onImageDownloadButtonClick&&t.onImageDownloadButtonClick(...d))},[s("span",null,p(t.imageDownloadButtonLabel),1)]),s("div",{class:"srraic__imagehelp",innerHTML:t.$r("stamprally.audioimagecombo.help.html")},null,8,We)],2)):u("",!0)])}const je=y(Ne,[["render",He],["__scopeId","data-v-af510f67"]]),qe=C({name:"PoiDetailStampRallySpotReward",components:{AudioPlayer:It,AudioImageCombo:je,ActionButtons:bt},props:{spot:Object,stampRally:Object,stampRallySpot:Object,stampRallyEntryIsActive:Boolean},setup(){const{isDocumentVisible:t}
1=Kt(),{getStampRallySpotRewards:e,useStampRallySpotRewards:i}=Be();return{isDocumentVisible:t,getStampRallySpotRewards:e,useStampRallySpotRewards:i}},data(){return{hasRequestExternalUrl:!1,audioPlayedIds:[]}},computed:{useAudioImageCombo(){return this.mapCustomizeType===z.MeguroLegenders},rewards(){return this.stampRallySpot.spotRewards&&this.stampRallySpot.spotRewards.length?this.stampRallySpot.spotRewards.map(t=>{const e=Object.assign({key:`${t.recordType}-${t.recordId}`,bannerStyle:mt(t.bannerUrl)},t);return e.buttonTitle||(t.rewardPointType===Q.DigitalContent&&(e.buttonTitle=this.$r("common.download")),t.rewardPointType===Q.ExternalLink&&(e.buttonTitle=this.$r("common.learnmore"))),e}):[]}},methods:{isAudioReward(t){return t.rewardPointSubType===nt.AudioFile},useRewardButtons(t){return[{type:$t.PRIMARY,label:t.buttonTitle,action:()=>this.onUseButtonClick(t)}]},onAudioPlayButtonClick(t,e){e.isPlaying&&this.audioPlayedIds.indexOf(t.recordId)===-1&&(this.audioPlayedIds.push(t.recordId),this.$store.dispatch(vt,{stampRallyId:this.stampRally.stampRallyId,recordType:t.recordType,recordId:t.recordId}))},onUseButtonClick(t){setTimeout(()=>{this.useSpotReward(t)},120)},useSpotReward(t){this.useStampRallySpotRewards(this.stampRally.stampRallyId,t),this.hasRequestExternalUrl=!0},loadSpotRewardStatus(){const t={stampRallyId:this.stampRally.stampRallyId,spotId:this.spot.id};this.$store.dispatch(Qt,t)}},watch:{isDocumentVisible(t){t&&(this.hasRequestExternalUrl&&this.loadSpotRewardStatus(),this.hasRequestExternalUrl=!1)}},mounted(){this.loadSpotRewardStatus()}}),Qe={class:"pdsrsr"},Ke={key:0,class:"pdsrsr__item"},Je={key:1,class:"pdsrsr__rewards"},Ye={class:"stamprallyspotreward__bannerimage"},Xe=["src"],Ze={class:"stamprallyspotreward__body"},xe={class:"stamprallyspotreward__title bold"},ts={class:"stamprallyspotreward__description"},es={key:0,class:"stamprallyspotreward__buttons"};
1function ss(t,e,i,o,m,n){const l=h("audio-image-combo"),d=h("audio-player"),c=h("action-buttons");return a(),r("div",Qe,[t.useAudioImageCombo?(a(),r("div",Ke,[b(l,{spot:t.spot,"stamp-rally":t.stampRally,"stamp-rally-spot":t.stampRallySpot},null,8,["spot","stamp-rally","stamp-rally-spot"])])):(a(),r("div",Je,[(a(!0),r(w,null,P(t.rewards,f=>(a(),r("div",{class:"stamprallyspotreward__card",key:f.key},[s("div",Ye,[s("img",{src:f.bannerUrl,alt:""},null,8,Xe)]),s("div",Ze,[s("div",xe,p(f.title),1),s("div",ts,p(f.description),1)]),t.stampRallyEntryIsActive?(a(),r("div",es,[t.isAudioReward(f)?(a(),r(w,{key:0},[f.downloadContentsUrl?(a(),v(d,{key:0,class:"stamprallyspotreward__audio","audio-title":f.title,"audio-file":f.downloadContentsUrl,onPlaybuttonclick:F=>t.onAudioPlayButtonClick(f,F)},null,8,["audio-title","audio-file","onPlaybuttonclick"])):u("",!0)],64)):(a(),v(c,{key:1,buttons:t.useRewardButtons(f)},null,8,["buttons"]))])):u("",!0)]))),128))]))])}const is=y(qe,[["render",ss],["__scopeId","data-v-9803df43"]]),as=C({name:"PoiDetailStampRallyQuizDescription",components:{ActionButtons:bt,Description:Ae},props:{spotId:Number,stampRallyData:Object,hasStampRallyCheckin:Boolean,stampTypes:Array},setup(){const{openStampRallyQuizDescriptionDialog:t}=Oe();return{openStampRallyQuizDescriptionDialog:t}},data(){return{isDialogVisible:!1}},computed:{isOnSpotDetail(){return this.stampRallyData.quizDescriptionDisplayType===ht.OnSpotDetail},isDialogSpotDetail(){return this.stampRallyData.quizDescriptionDisplayType===ht.DialogSpotDetail},quizDescription(){if(this.hasStampRallyCheckin&&this.stampTypes.some(t=>_.isQuiz(t))&&(this.isOnSpotDetail||this.isDialogSpotDetail)&&this.stampRallyData.quizDescriptions&&this.stampRallyData.quizDescriptions.length){const t=this.stampRallyData.quizDescriptions.find(e=>e.spotId===this.spotId);if(t&&t.quizDescription)return t}},descriptionHtml(){if(this.quizDescription)return this.quizDescription.isHtml?this.quizDescription.quizDescription:$.textWithUrl(this.quizDescription.quizDescription)},openDialogButtons(){return[{type:$t.PRIMARY,label:this.$r("stamprally.quiz.description.button"),minWidth:"50%",action:this.openDialog}]}},methods:{openDialog(){this.openStampRallyQuizDescriptionDialog(this.quizDescription)}}}),os={key:0,class:"pdsrquiz"};function ns(t,e,i,o,m,n){const l=h("description"),d=h("action-buttons");return t.quizDescription?(a(),r("div",os,[t.isOnSpotDetail?(a(),v(l,{key:0,class:"pdsrquiz__body","is-html":t.quizDescription.isHtml,description:t.quizDescription.quizDescription,"line-clamp":5,"has-read-more":!0},null,8,["is-html","description"])):(a(),v(d,{key:1,class:"pdsrquiz__button",buttons:t.openDialogButtons},null,8,["buttons"]))])):u("",!0)}const ls=y(as,[["render",ns],["__scopeId","data-v-853fbada"]]),rs=C({name:"PoiDetailStampRallyTooltip",components:{MapTooltip:Jt},props:{visible:Boolean,message:String},data(){return{displayedAt:0,viewStatus:U.CLOSE}},computed:{},methods:{closeTooltip(){this.visible&&(this.$emit("update:visible",!1),setTimeout(()=>{this.displayedAt=+new Date},320))}},mounted(){},created(){}});function ps(t,e,i,o,m,n){const l=h("map-tooltip");return a(),v(l,{class:"poistamprallytooltip",visible:t.visible,message:t.message,onClosetooltip:t.closeTooltip},null,8,["visible","message","onClosetooltip"])}const ms=y(rs,[["render",ps],["__scopeId","data-v-7d424be0"]]),us=C({name:"PoiDetailStampRallyButton",components:{StampRallyTooltip:ms},props:{spotId:Number,stampRallyId:Number,stampRallySpot:Object,stampTypes:Array,usePoint:Boolean,spotPointRule:Object,spotStampRallyCheckins:Array,isStampRallyReadyPlatform:Boolean,isStampRallyCheckinButtonVisible:Boolean,checkinButtonClass:Array,checkinButtonLabel:String,stampRallyCheckinButtonClass:Array,stampRallyCheckinDisableMessage:String,isStampRallyGpsNoticeVisible:Boolean,isOkazakiHintSpot:Boolean,canStampRallyCheckin:Boolean},setup(){const{isAudioGuideVisible:t}=Xt(),{loadAiCheckinProcessingVideo:e}=H();return{isAudioGuideVisible:t,loadAiCheckinProcessingVideo:e}},data(){return{viewStatus:U.CLOSE,tooltipVisible:!1,tooltipMessage:void 0,checkinKey:E.Normal}},computed:{useRogaining(){return this.$store.getters.useRogaining},isToyStory5Family(){return this.$store.getters.isToyStory5Family},visible(){return this.$store.getters.isSpSize},checkinPoints(){if(!this.useRogaining&&this.usePoint){let t=this.stampRallySpot.checkinPoints||0;return this.spotStampRallyCheckins.length===0&&this.stampRallySpot.firstCheckinPoints>0?t=this.stampRallySpot.firstCheckinPoints:this.spotPointRule&&(t=this.spotPointRule.points),t===1?`${t}pt`:`${t}pts`}},mainClass(){const t=[this.viewStatus];return this.mapOptions.spotDetailStampRallyCheckinButtonStyle&&t.push(this.mapOptions.spotDetailStampRallyCheckinButtonStyle),this.isAudioGuideVisible&&t.push("-audioguidevisible"),t},stampRallyData(){return this.$store.getters.stampRallyData()},stampRallyMember(){const t=this.stampRallyData;return t?t.member:null},hasPhotoCheckin(){return this.stampTypes.some(t=>/Photo/.test(t))},hasAudioCheckin(){return this.stampTypes.some(t=>/Audio/.test(t))},permissionUpdatedAt(){return this.$store.getters.permissionUpdatedAt},buttonLabel(){return this.useRogaining?this.checkinKey===E.Start?this.$r("rogaining.checkinbutton.start"):this.checkinKey===E.Finish?this.$r("rogaining.checkinbutton.goal"):this.$r("rogaining.checkinbutton.normal"):this.checkinButtonLabel}},methods:{onStampRallyCheckinButtonClick(){if(this.checkinKey===E.Finish){const t=this.$r("rogaining.confirmgoal");Yt(t).then(()=>{this.$emit("onstamprallycheckinbuttonclick")});return}this.$emit("onstamprallycheckinbuttonclick")},openOkazakiHintDialog(){this.$emit("openokazakihintdialog")},getPermission(t){return navigator.permissions&&typeof navigator.permissions.query=="function"?navigator.permissions.query({name:t}):Promise.resolve({name:t})},updateTooltipMessage(){if(!this.stampRallyMember){this.tooltipMessage=this.$r("stamprallyevent.noentry");return}if(this.stampRallyCheckinDisableMessage)this.tooltipMessage=this.stampRallyCheckinDisableMessage;else{const t=[Promise.resolve("")];if(!this.$store.getters.isAllowedGps&&this.isStampRallyGpsNoticeVisible){const e=this.getPermission("geolocation").then(i=>i.state!=="granted"?"geolocation":"");t.push(e)}if(!this.$store.getters.isAllowedCamera&&(this.stampTypes.some(e=>e===_.QRCode)||this.hasPhotoCheckin)){const e=this.getPermission("camera").then(i=>i.state!=="granted"?"camera":"");t.push(e)}if(!this.$store.getters.isAllowedMic&&this.hasAudioCheckin){const e=this.getPermission("microphone").then(i=>i.state!=="granted"?"microphone":"");t.push(e)}t.length&&this.canStampRallyCheckin&&Promise.all(t).then(e=>{const i=e.filter(n=>!!n);let o=[];const m=this.useRogaining?"rogaining":"stamprally";i.includes("geolocation")&&o.push(this.$r(`${m}.noticegps`)),i.includes("camera")&&o.push(this.$r(`${m}.noticecamera`)),this.hasPhotoCheckin&&i.length===2&&(o=[this.$r("stamprally.noticephoto")]),i.includes("microphone")&&o.push(this.$r(`${m}.noticemic`)),i.includes("microphone")&&i.includes("geolocation")&&i.length===2&&(o=[this.$r("stamprally.noticeaudio")]),this.tooltipMessage=o.join("<br/>")})}}},watch:{permissionUpdatedAt(){this.updateTooltipMessage()},"stampRallySpot.checkinKey"(t){t!==this.checkinKey&&(this.viewStatus=U.CLOSE)},stampRallyMember(){this.updateTooltipMessage()}},mounted(){setTimeout(()=>{this.viewStatus=U.OPEN,setTimeout(()=>{this.tooltipVisible=!0},320)},320)},created(){this.updateTooltipMessage(),this.checkinKey=this.stampRallySpot.checkinKey,(this.hasPhotoCheckin||this.hasAudioCheckin)&&this.loadAiCheckinProcessingVideo()}}),ds={class:"poistamprallybutton__container"},cs={class:"poistamprallybutton__tooltipcontainer"},hs={class:"poistamprallybutton__label"},ys={key:0,class:"poistamprallybutton__point"};function fs(t,e,i,o,m,n){const l=h("stamp-rally-tooltip");return t.visible?(a(),r("div",{key:0,class:S(["poistamprallybutton",t.mainClass])},[s("div",ds,[s("div",cs,[t.tooltipMessage?(a(),v(l,{key:0,class:"poistamprallybutton__tooltip",visible:t.tooltipVisible,"onUpdate:visible":e[0]||(e[0]=d=>t.tooltipVisible=d),message:t.tooltipMessage},null,8,["visible","message"])):u("",!0)]),t.isOkazakiHintSpot?G((a(),r("div",{key:0,class:S(["poistamprallybutton__base -checkin",t.checkinButtonClass])},[s("div",{class:"poistamprallybutton__body waves-effect waves-light",ref:"hintButton",onClick:e[1]||(e[1]=(...d)=>t.openOkazakiHintDialog&&t.openOkazakiHintDialog(...d))},p(t.checkinButtonLabel),513)],2)),[[W,t.isStampRallyReadyPlatform]]):G((a(),r("div",{key:1,class:S(["poistamprallybutton__base -checkin",t.checkinButtonClass]),onClick:e[2]||(e[2]=(...d)=>t.onStampRallyCheckinButtonClick&&t.onStampRallyCheckinButtonClick(...d))},[s("div",{class:S(["poistamprallybutton__body",t.stampRallyCheckinButtonClass]),ref:"checkinButton"},[s("div",hs,p(t.buttonLabel),1),t.checkinPoints?(a(),r("div",ys,p(t.checkinPoints),1)):u("",!0)],2)],2)),[[W,t.isStampRallyReadyPlatform]])])],2)):u("",!0)}const gs=y(us,[["render",fs],["__scopeId","data-v-62f27130"]]),_s=C({name:"PoiDetailRogainingEventCard",components:{SamplePhoto:Me},props:{spotId:Number,stampRallyId:Number,checkinConfig:Object,stampTypes:Array,usePoint:Boolean,isStampRallyReadyPlatform:Boolean,isStampRallyCheckinButtonVisible:Boolean,checkinButtonClass:Array,checkinButtonLabel:String,stampRallyCheckinButtonClass:Array,stampRallyCheckinDisableMessage:String,isStampRallyGpsNoticeVisible:Boolean,isOkazakiHintSpot:Boolean,pointLogs:Array},setup(){const{stampRallyEventOpenPhotoDialog:t}=H();return{stampRallyEventOpenPhotoDialog:t}},data(){return{}},computed:{mainClass(){const t=[];return this.checkinConfig._checkinResult&&t.push("-hasresult"),t},checkinKeyText(){if(this.checkinConfig.checkinKey===E.Start)return this.$r("rogaining.startspot");if(this.checkinConfig.checkinKey===E.Finish)return this.$r("rogaining.goalspot")},labelText(){return this.$r("stamprallyevent.checkinpoint")},stampType(){return this.stampTypes[0]},checkinCondition(){const t={label:this.$r("stamprallyevent.checkincondition"),type:"",text:"",usePhotoCheckin:!1}
1,e=this.stampType;if(/Photo/.test(e)?(t.type="photo",t.usePhotoCheckin=!0,t.samplePhotoUrl=void 0):e==="QRCode"?t.type="qrcode":e==="GPS"?t.type="gps":e==="Keyword"?t.type="keyword":/Quiz/.test(e)&&(t.type="quiz"),t.text=this.$r(`stamprallyevent.checkintype.${t.type}`),this.checkinConfig._checkinResult){const i=this.checkinConfig._checkinResult;t.label=this.$r("stamprallyevent.pointacquisitiondate");const o=moment.utc(i.checkinAt);o.local(),t.text=o.format("lll")}return t},pointResultData(){const t={hasResult:!1,points:0,pointStatus:void 0,pointStatusClass:void 0};if(this.checkinConfig._checkinResult){const e=this.pointLogs.find(i=>i.checkinId===this.checkinConfig._checkinResult.id);e&&(t.hasResult=!0,typeof e.rawPoints=="number"&&(t.points=e.rawPoints),t.pointStatus=e.pointStatus,e.pointStatus===st.Fixed?t.pointStatusClass="-fixed":e.pointStatus===st.Reject?t.pointStatusClass="-reject":t.pointStatusClass="-pending")}return t},checkinPoint(){let t=this.checkinConfig.checkinPoints;return this.pointResultData.hasResult&&(t=this.pointResultData.points),`${t}${t===1?"pt":"pts"}`},photoButtons(){const t={},e=this.stampType;return/Photo/.test(e)&&((this.checkinConfig.samplePhotoUrl||this.checkinConfig.samplePhotoDescription)&&(t.samplePhoto={label:this.$r("stamprallyevent.samplephoto")}),this.checkinConfig._checkinResult&&this.checkinConfig._checkinResult.photoCheckinOriginalUrl&&(t.checkinPhoto={label:this.$r("stamprallyevent.checkinphoto")})),t},checkinDescription(){if(!Object.keys(this.photoButtons).length)return this.checkinConfig.samplePhotoDescription},photoRejectMessage(){if(this.pointResultData.pointStatus===st.Reject)return this.$r("rogaining.photoreject")},hasNotice(){return!!this.photoRejectMessage}},methods:{openSamplePhoto(){this.stampRallyEventOpenPhotoDialog({type:"SamplePhoto",url:this.checkinConfig.samplePhotoUrl,description:this.checkinConfig.samplePhotoDescription})},openCheckinPhoto(){this.stampRallyEventOpenPhotoDialog({type:"CheckinPhoto",url:this.checkinConfig._checkinResult.photoCheckinOriginalUrl})}}}),ks={class:"poidetailrogainingeventcard__row"},Ss={class:"poidetailrogainingeventcard__cell -left"},Cs={class:"poidetailrogainingeventcard__label"},Rs={key:0,class:"-checkinkey"},vs={class:"poidetailrogainingeventcard__subtext"},bs={class:"-label"},$s={class:"-type"},ws={class:"poidetailrogainingeventcard__cell -right"},Ts={key:0,class:"poidetailrogainingeventcard__photos"},Ds=["innerHTML"],Ps=["innerHTML"],Is={key:1,class:"poidetailrogainingeventcard__description"},Bs={key:2,class:"poidetailrogainingeventcard__notice"},As={key:0,class:"poidetailrogainingeventcard__photoreject"},Os={class:"poidetailrogainingeventcard__photorejectmessage"};function Ms(t,e,i,o,m,n){return a(),r("div",{class:S(["poidetailrogainingeventcard",t.mainClass])},[s("div",ks,[s("div",Ss,[s("div",Cs,[t.checkinKeyText?(a(),r("div",Rs,p(t.checkinKeyText),1)):u("",!0),s("div",null,p(t.labelText),1)]),s("div",vs,[s("span",bs,p(t.checkinCondition.label),1),s("span",$s,p(t.checkinCondition.text),1)])]),s("div",ws,[s("div",{class:S(["poidetailrogainingeventcard__points",t.pointResultData.pointStatusClass])},[s("span",null,p(t.checkinPoint),1)],2)])]),Object.keys(t.photoButtons).length?(a(),r("div",Ts,[t.photoButtons.samplePhoto?(a(),r("div",{key:0,class:"poidetailrogainingeventcard__photobutton waves-effect",innerHTML:t.photoButtons.samplePhoto.label,onClick:e[0]||(e[0]=(...l)=>t.openSamplePhoto&&t.openSamplePhoto(...l))},null,8,Ds)):u("",!0),t.photoButtons.checkinPhoto?(a(),r("div",{key:1,class:"poidetailrogainingeventcard__photobutton waves-effect",innerHTML:t.photoButtons.checkinPhoto.label,onClick:e[1]||(e[1]=(...l)=>t.openCheckinPhoto&&t.openCheckinPhoto(...l))},null,8,Ps)):u("",!0)])):u("",!0),t.checkinDescription?(a(),r("div",Is,p(t.checkinDescription),1)):u("",!0),t.hasNotice?(a(),r("div",Bs,[t.photoRejectMessage?(a(),r("div",As,[e[2]||(e[2]=s("div",{class:"poidetailrogainingeventcard__photorejecticon"},null,-1)),s("div",Os,p(t.photoRejectMessage),1)])):u("",!0)])):u("",!0)],2)}const Ls=y(_s,[["render",Ms],["__scopeId","data-v-d55f5659"]]),zs=C({name:"PoiDetailRogainingEvent",components:{EventCard:Ls},props:{spotId:Number,stampRallyId:Number,stampRallySpot:Object,stampTypes:Array,usePoint:Boolean,isStampRallyReadyPlatform:Boolean,isStampRallyCheckinButtonVisible:Boolean,checkinButtonClass:Array,checkinButtonLabel:String,stampRallyCheckinButtonClass:Array,stampRallyCheckinDisableMessage:String,isStampRallyGpsNoticeVisible:Boolean,isOkazakiHintSpot:Boolean},setup(){const{getSpotCheckinConfigs:t}=H();return{getSpotCheckinConfigs:t}},data(){return{}}
1,computed:{checkinConfigs(){return this.getSpotCheckinConfigs(this.stampRallyId,this.spotId)},pointLogs(){const t=this.$store.getters.stampRallyPointData(this.stampRallyId);return t&&t.logs&&t.logs.length>0?t.logs:[]}},methods:{}}),Es={class:"poidetailrogainingevent"};function Fs(t,e,i,o,m,n){const l=h("event-card");return a(),r("div",Es,[(a(!0),r(w,null,P(t.checkinConfigs,d=>(a(),v(l,{key:d.id,"spot-id":t.spotId,"stamp-rally-id":t.stampRallyId,"checkin-config":d,"stamp-types":d._checkinTypes,"use-point":t.usePoint,"is-stamp-rally-ready-platform":t.isStampRallyReadyPlatform,"is-stamp-rally-checkin-button-visible":t.isStampRallyCheckinButtonVisible,"checkin-button-class":t.checkinButtonClass,"checkin-button-label":t.checkinButtonLabel,"stamp-rally-checkin-button-class":t.stampRallyCheckinButtonClass,"is-stamp-rally-gps-notice-visible":t.isStampRallyGpsNoticeVisible,"stamp-rally-checkin-disable-message":t.stampRallyCheckinDisableMessage,"is-okazaki-hint-spot":t.isOkazakiHintSpot,"point-logs":t.pointLogs},null,8,["spot-id","stamp-rally-id","checkin-config","stamp-types","use-point","is-stamp-rally-ready-platform","is-stamp-rally-checkin-button-visible","checkin-button-class","checkin-button-label","stamp-rally-checkin-button-class","is-stamp-rally-gps-notice-visible","stamp-rally-checkin-disable-message","is-okazaki-hint-spot","point-logs"]))),128))])}const Us=y(zs,[["render",Fs],["__scopeId","data-v-6fa61a55"]]),Vs=C({name:"PoiDetailStampRallyInformation",components:{},props:{isResult:!1,stampRallyData:Object,stampRallySpot:Object,stampRallyMiniBanner:String,stampSpotLabel:String,stampRallyPeriodUntil:String,isStampRallyCheckinButtonVisible:Boolean,usePoint:Boolean,checkinData:Object},setup(){const{stampRallyEventOpenPhotoDialog:t,stampRallyEventOpenAudioDialog:e}=H();return{stampRallyEventOpenPhotoDialog:t,stampRallyEventOpenAudioDialog:e}},data(){return{isCheckinPhotoVisible:!0,isCheckinAudioVisible:!0,stampCondition:"",samplePhoto:{isVisible:!1,label:this.$r("stamprallyevent.takepicture"),button:this.$r("stamprallyevent.sample"),order:""},sampleAudio:{isVisible:!1,label:this.$r("stamprallyevent.recordaudio"),button:this.$r("stamprallyevent.sampleaudio"),order:""},checkinPhoto:{button:this.$r("stamprallyevent.checkinphoto")},checkinAudio:{button:this.$r("stamprallyevent.checkinaudio")},aiStampTypeData:{type:"",labelText:"",descriptionText:"",buttonLabel:"",hasSample:!1}}},computed:{isToyStory5Family(){return this.$store.getters.isToyStory5Family}},methods:{onMiniBannerClick(){this.$emit("openstamprally")},openAiStampTypeSample(){this.aiStampTypeData.type==="Photo"?this.stampRallyEventOpenPhotoDialog({type:"SamplePhoto",url:this.stampRallySpot.samplePhotoUrl,description:this.stampRallySpot.samplePhotoDescription}):this.aiStampTypeData.type==="Audio"&&this.stampRallyEventOpenAudioDialog({type:"SampleAudio",url:this.stampRallySpot.sampleAudioUrl,description:this.stampRallySpot.sampleAudioDescription})},onCheckinPhotoButtonClick(){this.stampRallyEventOpenPhotoDialog({type:"CheckinPhoto",url:this.checkinData.photoCheckinOriginalUrl})},onCheckinAudioButtonClick(){this.stampRallyEventOpenAudioDialog({type:"CheckinAudio",url:this.checkinData.audioCheckinUrl})}},created(){const t=this.stampRallyData.stampRallyId,e=this.stampRallySpot.spotId;let i=this.$store.getters.spotStampTypes(t,e)||[];i.length||(i=_.breakDownTypes(this.stampRallyData.stampType)),this.stampRallyData.useStampTypesCombination||(this.stampRallyData.useGps&&(i.includes(_.GPS)||i.splice(0,0,_.GPS)),this.stampRallyData.qrCodeProcessingType===wt.Preprocess&&(i.includes(_.QRCode)||i.splice(0,0,_.QRCode)),this.stampRallyData.stampType===_.FaceQRCodeOrGps&&i.includes(_.QRCode)&&i.push(_.FaceRecognition));const o=i.includes(_.Photo),m=i.includes(_.Audio);if(this.isResult)this.isCheckinPhotoVisible=o,this.isCheckinAudioVisible=m;else{const l=[];i.forEach(d=>{const c=this.$r(`stamprallyevent.checkintype.${d.toLowerCase()}`);_.useFaceRecognition(d)?l.push(this.$r("stamprallyevent.checkintype.face")):_.isQuiz(d)?l.push(this.$r("stamprallyevent.checkintype.quiz")):c&&l.push(c)}),this.stampCondition=this.$r("stamprallyevent.stampcontition",{types:l.join(",")}),this.samplePhoto.isVisible=o,this.sampleAudio.isVisible=m}let n=this.$r("stamprallyevent.label.stamp");if(this.usePoint&&(n=this.$r("stamprallyevent.label.point")),this.aiStampTypeData.labelText=this.$r("stamprallyevent.aistamptype.label",{target:n}),o){if(this.aiStampTypeData.type="Photo",this.aiStampTypeData.descriptionText=this.stampRallySpot.samplePhotoDescription,this.aiStampTypeData.buttonLabel=this.$r("stamprallyevent.aistamptype.samplephoto"),!this.stampRallySpot.hideSamplePhoto&&this.stampRallySpot.samplePhotoUrl){const l=new Image;l.src=this.stampRallySpot.samplePhotoUrl,this.aiStampTypeData.hasSample=!0}}else m&&(this.aiStampTypeData.type="Audio",this.aiStampTypeData.descriptionText=this.stampRallySpot.sampleAudioDescription,this.aiStampTypeData.buttonLabel=this.$r("stamprallyevent.aistamptype.sampleaudio"),!this.stampRallySpot.hideSampleAudio&&this.stampRallySpot.sampleAudioUrl&&(fetch(this.stampRallySpot.sampleAudioUrl).cat
1ch(()=>{}),this.aiStampTypeData.hasSample=!0))}}),Ns={key:0,class:"poistamprallyinfo__result"},Gs={key:1,class:"poistamprallyinfo__base"},Ws={class:"poistamprallyinfo__row"},Hs=["src"],js={class:"poistamprallyinfo__text"},qs={class:"detail__stamprallydetaillabel"},Qs={class:"detail__stamprallydetailschedule"},Ks={class:"poistamprallyinfo__checkins"},Js={key:0,class:"poistamprallyinfo__aistamp"},Ys={class:"poistamprallyinfo__aistamplabel"},Xs={class:"poistamprallyinfo__aistampbody"},Zs={class:"poistamprallyinfo__aistampdescription"},xs={key:0,class:"poistamprallyinfo__aistampright"},ti=["innerHTML"];function ei(t,e,i,o,m,n){return a(),r("div",{class:"poistamprallyinfo",onClick:e[4]||(e[4]=Ut(()=>{},["stop"]))},[t.isToyStory5Family?x(t.$slots,"checkins",{key:0},void 0,!0):(a(),r(w,{key:1},[t.isResult?(a(),r("div",Ns,[t.isCheckinPhotoVisible?(a(),r("div",{key:0,class:"poistamprallyinfo__photobutton -result waves-effect",onClick:e[0]||(e[0]=(...l)=>t.onCheckinPhotoButtonClick&&t.onCheckinPhotoButtonClick(...l))},p(t.checkinPhoto.button),1)):t.isCheckinAudioVisible?(a(),r("div",{key:1,class:"poistamprallyinfo__audiobutton -result waves-effect",onClick:e[1]||(e[1]=(...l)=>t.onCheckinAudioButtonClick&&t.onCheckinAudioButtonClick(...l))},p(t.checkinAudio.button),1)):u("",!0)])):(a(),r("div",Gs,[s("div",Ws,[s("div",{class:"poistamprallyinfo__minibanner",onClick:e[2]||(e[2]=(...l)=>t.onMiniBannerClick&&t.onMiniBannerClick(...l))},[s("img",{class:"detail__stamprallyminibanner stamprally__minibanner btn-stamprallydetail waves-effect",src:t.stampRallyMiniBanner,alt:""},null,8,Hs)]),s("div",js,[s("div",qs,p(t.stampSpotLabel),1),s("div",Qs,[s("span",null,p(t.$r("Period"))+":",1),s("span",null,p(t.stampRallyPeriodUntil),1)]),s("div",Ks,p(t.stampCondition),1)])]),t.aiStampTypeData.type?(a(),r("div",Js,[s("div",Ys,p(t.aiStampTypeData.labelText),1),s("div",Xs,[s("div",Zs,p(t.aiStampTypeData.descriptionText),1),t.aiStampTypeData.hasSample&&t.isStampRallyCheckinButtonVisible?(a(),r("div",xs,[s("div",{class:"poistamprallyinfo__aistampbutton waves-effect waves-light",innerHTML:t.aiStampTypeData.buttonLabel,onClick:e[3]||(e[3]=(...l)=>t.openAiStampTypeSample&&t.openAiStampTypeSample(...l))},null,8,ti)])):u("",!0),x(t.$slots,"checkins",{},void 0,!0)]),e[5]||(e[5]=s("div",{class:"poistamprallyinfo__aistampicon"},[s("img",{src:"/map/images/stamprallyevent/aievaluation/direction.webp",alt:""})],-1))])):x(t.$slots,"checkins",{key:1},void 0,!0)]))],64))])}const si=y(Vs,[["render",ei],["__scopeId","data-v-24a94daf"]]),ii=C({name:"PoiDetailStampRallyPointLogs",props:{logs:{type:Array,required:!0},usePoint:{type:Boolean,default:!1},stampStyle:{type:Object,default:null}},data(){return{expanded:!1,moreHeight:0}},computed:{logsDesc(){return[...this.logs].reverse()},latestLog(){return this.logsDesc[0]||{}},olderLogs(){return this.logsDesc.slice(1)},hasMore(){return this.olderLogs.length>0},iconClass(){const t=[];return this.usePoint&&t.push("-point"),t},iconStyle(){let t=null;return this.usePoint||(t=this.stampStyle),t},historyLabel(){return Zt.get("stamprally.spot.loghistory")},moreStyle(){const t={};return t.height=`${this.moreHeight}px`,t}},methods:{toggle(){this.expanded?(this.moreHeight=0,this.expanded=!1):(this.moreHeight=this.$refs.more.scrollHeight,this.expanded=!0)}}}),ai={class:"pointlogs"},oi={class:"pointlogs__row"},ni={class:"pointlogs__message"},li=["aria-expanded"],ri={class:"pointlogs__message"};function pi(t,e,i,o,m,n){return a(),r("div",ai,[s("div",oi,[s("span",{class:S(["pointlogs__icon",t.iconClass]),style:I(t.iconStyle)},null,6),s("span",ni,p(t.latestLog.message),1),t.hasMore?(a(),r("button",{key:0,type:"button",class:"pointlogs__historybtn","aria-expanded":t.expanded,onClick:e[0]||(e[0]=(...l)=>t.toggle&&t.toggle(...l))},p(t.historyLabel),9,li)):u("",!0)]),s("div",{ref:"more",class:"pointlogs__more",style:I(t.moreStyle)},[(a(!0),r(w,null,P(t.olderLogs,l=>(a(),r("div",{key:l.id,class:"pointlogs__row"},[s("span",{class:S(["pointlogs__icon",t.iconClass]),style:I(t.iconStyle)},null,6),s("span",ri,p(l.message),1)]))),128))],4)])}const mi=y(ii,[["render",pi],["__scopeId","data-v-e8361ee5"]]),ui=C({name:"PoiDetailStampRally",components:{PoiDetailStampRallyInformation:si,PoiDetailStampRallyPointLogs:mi,UserPostButton:Ve,SpotReward:is,QuizDescription:ls,StampRallyButton:gs,RogainingEvent:Us,StampOverlay:Pe},props:{spotId:Number,stampRallyId:Number,viewType:String},setup(){const{alwaysShowStampRally:t,stampRallyEventSelectCommand:e,isStampRallyEventEndEventTime:i,hasStampRallyEventFinishCheckin:o,getCurrentStampRallySpotPointRule:m}=H(),{resetCameraFacingMode:n}=se(),{getTwitterPostUrl:l}=Le();return{alwaysShowStampRally:t,stampRallyEventSelectCommand:e,isStampRallyEventEndEventTime:i,hasStampRallyEventFinishCheckin:o,getCurrentStampRallySpotPointRule:m,resetCameraFacingMode:n,getTwitterPostUrl:l}},data(){return{checkinButtonWidth:0,viewStatus:U.CLOSE}},computed:{...St(["userPosts","spotGroups","isStampRallyReadyPlatform"]),mapIsConCierGeKiNo
1Bi(){return this.mapCustomizeType==="ConCierGeKiNoBi"},mapCustomizeTypeIsTokyoManhole(){return this.mapCustomizeType===z.TokyoManhole},mapCustomizeTypeIsRealTreasureOkazaki(){return this.mapCustomizeType===z.RealTreasureOkazaki},useMaterialStyle(){return this.mapOptions.spotDetailStampRallyCheckinButtonStyle==="-material"},spot(){return this.$store.getters.getSpot(this.spotId)},spotHasGroups(){if(this.spot.spotGroups&&this.spot.spotGroups.length){const t=[];this.stampRallyData.checkinSpotGroups&&this.stampRallyData.checkinSpotGroups.length&&t.push(...this.stampRallyData.checkinSpotGroups);let e=[];return t.length?t.forEach(i=>{const o=this.$store.getters.spotGroup(i.spotGroupId);o&&this.spot.spotGroups.some(m=>m.spotGroupId===o.spotGroupId)&&e.push(Object.assign({checkinOptions:i},o))}):this.spotGroups.forEach(i=>{this.spot.spotGroups.some(o=>o.spotGroupId===i.spotGroupId)&&e.push(i)}),e}return[]},stampRallyData(){return this.$store.getters.stampRallyData(this.stampRallyId)},stampRallySessionStatus(){return window.pm.util.stampRallySessionStatus(this.stampRallyData)},stampRallyMember(){return this.stampRallyData?this.stampRallyData.member||{}:{}},stampRallyCheckinSpotGroups(){const t={},e=this.$store.getters.checkinSpotGroupData();return this.spot.spotGroups&&this.spot.spotGroups.length&&this.spot.spotGroups.forEach(i=>{const o=i.spotGroupId,m=e[o];m&&(t[o]=m)}),t},stampRallyCheckins(){return this.stampRallyData?this.$store.getters.stampRallyCheckins(this.stampRallyData.stampRallyId):[]},miniBannerUrl(){if(this.stampRallyData)return this.mapIsConCierGeKiNoBi?"https://cdn.platinumaps.jp/maps/145/kinobi/stamprally_banner.png":this.stampRallyData.miniBanner},stampRallyMiniBanner(){let t={};const e=this.miniBannerUrl;return e&&(t["background-image"]=`url("${e}")`),t},stampRallyPeriodUntil(){if(this.stampRallyData&&this.stampRallyData.heldToUtcISO){const t=moment(this.stampRallyData.heldToUtcISO);if(t.isValid()){const e=ee(t);return this.$r("PeriodUntil").replace("{0}",e)}}},stampRallyEntryIsActive(){return this.stampRallyMember.entryStatusText==="Active"},stampRallySpot(){return this.$store.getters.stampRallySpot(this.spotId,this.stampRallyId)||{}},stampTypes(){const t=this.stampRallyData.stampRallyId,e=this.stampRallySpot.spotId;let i=this.$store.getters.spotStampTypes(t,e)||[];return i.length||(i=_.breakDownTypes(this.stampRallyData.stampType)),this.stampRallyData.useStampTypesCombination||(this.stampRallyData.useGps&&(i.includes(_.GPS)||i.splice(0,0,_.GPS)),this.stampRallyData.qrCodeProcessingType===wt.Preprocess&&(i.includes(_.QRCode)||i.splice(0,0,_.QRCode)),this.stampRallyData.stampType===_.FaceQRCodeOrGps&&i.includes(_.QRCode)&&i.push(_.FaceRecognition)),i},stampType(){return(this.stampRallySpot.stampTypeText||"").toLowerCase()},hasQuizCheckin(){return this.stampTypes.some(t=>_.isQuiz(t))},hasSpotReward(){return this.stampRallySpot.hasSpotReward},useSpotRewardAudioImageCombo(){if(this.stampRallySpot){const t=this.stampRallySpot.spotRewards;if(t&&t.length)return this.mapCustomizeType===z.MeguroLegenders}return!1},stampRallySpotRewards(){return this.stampRallySpot.spotRewards&&this.stampRallySpot.spotRewards.length?this.stampRallySpot.spotRewards:[]},isSpotRewardCardVisible(){return!this.hasSpotReward||this.useSpotRewardAudioImageCombo?!1:this.stampRallyData.displaySpotRewardOnSpotDetail},usePoint(){return this.stampRallyData?!!this.stampRallyData.usePoint:!1},checkinPointsClass(){let t=[];return this.mapCustomizeTypeIsTokyoManhole&&t.push("-noicon"),t},spotPointRule(){return this.usePoint&&!(this.viewType==="MiniBanner"||this.viewType==="RogainingEvent")?this.getCurrentStampRallySpotPointRule(this.spotId):null},checkinPoints(){if(this.usePoint){let t=this.stampRallySpot.checkinPoints||0;return this.spotStampRallyCheckins.length===0&&this.stampRallySpot.firstCheckinPoints>0?t=this.stampRallySpot.firstCheckinPoints:this.spotPointRule&&(t=this.spotPointRule.points),this.mapCustomizeTypeIsTokyoManhole?t===1?`${t}pt`:`${t}pts`:t}return 0},checkinButtonLabel(){let t=this.$r("stamprallyevent.label.stamp");return this.usePoint&&(t=this.$r("stamprallyevent.label.point")),this.mapCustomizeType==="TokiwaPark"?"è§£çãå
¥åãã":this.mapCustomizeType===z.Saikoku33?"é§
ã§ã¹ã¿ã³ããå
¥æãã":this.mapCustomizeTypeIsRealTreasureOkazaki?this.isOkazakiHintSpot?"ãã³ããè¦ã":"è¬è§£ãã«ææ¦":this.stampRallyData.useBingo?R.get("stamprally.bingo.button"):this.$store.getters.useRogaining?this.$r("stamprallyevent.checkin"):this.stampTypes.some(e=>/Photo/.test(e))?this.$r("stamprallyevent.photocheckin",{target:t}):this.stampTypes.some(e=>/Audio/.test(e))?this.$r("stamprallyevent.audiocheckin",{target:t}):this.$r("StampRallyStamp")},stampSpotLabel(){return this.mapCustomizeTypeIsRealTreasureOkazaki&&this.isOkazakiHintSpot?"ãã³ãã¹ããã":this.$r("StampRallyPoint")},isStampRallyGpsNoticeVisible(){return!!(this.stampRallyData&&(this.stampRallyData.useGps||this.stampType==="gps"||this.stampTypes.some(t=>t===_.GPS))&&this.$store.getters.stampRallyCheckins(this.stampRallyId).length<3)},spotStampRallyCheckins(){let t=this.$store.getters.spotCheckins(this.spotId);if(this.mapOptions.useStampRallyIntegrationQrCode&&(t&&t.length||(t=[]),this.stampRallyCheckins.forEach(e
1=>{if(!e.spotGroupId||t.some(o=>o.id===e.id))return;if(this.stampRallyCheckinSpotGroups[e.spotGroupId]){const o=this.$store.getters.stampRallyData(e.stampRallyId);t.push(Object.assign({stampRallyTitle:o.title,stampRallyIcon:this.stampRallySpot.stampRallyIcon},e))}})),t&&t.length){const e=R.get("stamprally.history"),i=R.get("stamprally.history.timestampformat");let o=this.$store.getters.isManholeSpot(this.spotId),m=JSON.parse(JSON.stringify(t));return m.sort(function(n,l){var d=moment.utc(n.checkinAt),c=moment.utc(l.checkinAt);return c.diff(d)}),m.forEach(n=>{let l=n.stampRallyIcon;this.mapCustomizeTypeIsRealTreasureOkazaki&&(l=n.icons.stampRally),n.style={},l&&(n.style["background-image"]=`url("${l}")`),o&&(n.style.borderRadius="50%"),n.iconUrl=l,n.baseIconUrl=Ie(this.stampRallyData,this.stampRallySpot),n.isManhole=o,n.baseIconUrl?n.iconContainerStyle={}:n.iconContainerStyle=n.style;const d=moment.utc(n.checkinAt).local();if(n.checkinAtLocal=d,d.isValid()){let c=d.format(i);this.$store.getters.isToyStory5Family&&R.locale()==="en"&&(c=c.replace(/AM$/,"a.m.").replace(/PM$/,"p.m.")),n.checkinAtText=e.replace("${timestamp}",c)}}),m}return[]},visibleCheckins(){if(!this.spotStampRallyCheckins.length)return[];if(this.stampRallyData.useOneStampForOneSpot){let t=this.spotStampRallyCheckins[this.spotStampRallyCheckins.length-1];const e=this.$store.getters.stampRallyPointData(t.stampRallyId);if(e&&e.logs&&e.logs.length){const i=JSON.parse(JSON.stringify(e.logs.filter(m=>m.spotId===this.spotId))),o=R.get("stamprally.spot.logtimestampformat");i.forEach(m=>{const n=moment.utc(m.updatedAt).local(),l={timestamp:n.format(o)};m.message=R.get("stamprally.spot.stamplog",l),this.usePoint&&(m.message=R.getWithPointCount("stamprally.spot.pointlog",l,m.points)),m.updatedAtLocale=n}),i.sort((m,n)=>m.updatedAtLocale.diff(n.updatedAtLocale)),t.pointLogs=i}return[].concat(t)}return this.spotStampRallyCheckins},hasStampRallyCheckin(){if(this.$store.getters.useRogaining)return this.$store.getters.stampRallyEventSpotConfigs(this.spot.id,this.stampRallyData.stampRallyId).length<=this.spotStampRallyCheckins.length;let t=!1;return this.spotStampRallyCheckins.forEach(e=>{!t&&e.stampRallyId===this.stampRallyId&&(t=!0)}),t},canStampRallyGroupCheckin(){if(!this.mapOptions.useStampRallyIntegrationQrCode){if(!this.stampRallyData.useGroupCheckin&&!this.stampRallyData.useMaxCheckinsForSpotGroups)return!0}if(!this.spotHasGroups.length)return!0;const t=this.stampRallyCheckins;let e=0;for(let i=0;i<this.spotHasGroups.length;i++){const o=this.spotHasGroups[i];if(this.mapOptions.useStampRallyIntegrationQrCode&&o.spotGroupType===te.StampRallyIntegrationQrCode&&t.some(l=>l.spotGroupId===o.spotGroupId)){e+=1;break}const m=t.filter(n=>o.spots.some(l=>l.spotId===n.spotId));if(m.length)if(o.checkinOptions){if(o.checkinOptions.useMaxCheckins&&o.checkinOptions.maxCheckins<=m.length)return!1;this.stampRallyData.useMaxCheckinsForSpotGroups||(e+=1)}else e+=1}return e!==this.spotHasGroups.length},canQuizGroupCheckin(){const t=this.stampRallyData.quizGroupConfig?.spots;if(!t||!t.length)return!0;const e=t.find(o=>o.id===this.spotId);if(!e||!e.isLast)return!0;const i=new Set(this.stampRallyCheckins.map(o=>o.spotId));return t.every(o=>o.id===this.spotId||i.has(o.id))},maxCheckinCountForUser(){return this.stampRallyData.useMaxCheckinsForSpot?this.stampRallySpot.maxCheckinCountForUser:0},remainingCheckInCountForUser(){if(this.maxCheckinCountForUser){const t=this.$store.getters.checkedInCountForUser(this.stampRallyData.stampRallyId,this.spotId),e=this.maxCheckinCountForUser-t;if(0<e)return e}return 0},isStampRallyCheckinButtonVisible(){return!this.stampRallyData||this.stampRallySessionStatus!=="inSession"||typeof this.mapOptions.isStampRallyCheckinButtonVisible=="boolean"&&!this.mapOptions.isStampRallyCheckinButtonVisible||this.spotId===this.stampRallyData.startSpotId||this.$store.getters.useRogaining&&(this.isStampRallyEventEndEventTime||this.hasStampRallyEventFinishCheckin)?!1:this.hasStampRallyCheckin?!!(this.stampRallyData.allowMultipleCheckinsF
1orSameSpot||this.stampRallyData.useHiddenStampRewardUsed):!0},checkinButtonClass(){const t=[];return this.mapOptions.spotDetailStampRallyCheckinButtonStyle&&(t.push(this.viewStatus),t.push(this.mapOptions.spotDetailStampRallyCheckinButtonStyle),this.stampRallyCheckinStatus==="CanCheckin"?t.push("waves-effect waves-light"):t.push("-disabled")),t},stampRallyCheckinStatus(){if(!this.isStampRallyCheckinButtonVisible)return"Inactive";if(this.stampRallySpot.isCheckinDisabled||this.mapOptions.useStampRallyAvailabilityPeriodForSpot&&!this.isStampAvailablePeriod)return"Disabled";if(!this.canStampRallyGroupCheckin)return"CanNotGroupCheckin";if(!this.canQuizGroupCheckin)return"QuizGroupPrerequisite";if(this.maxCheckinCountForUser&&this.remainingCheckInCountForUser<=0)return"OverSpotCheckinsForUser";if(!this.mapOptions.query.preview){const t=+new Date,e=this.stampRallyData;if(e._heldFrom&&t<e._heldFrom)return"OutsideCheckinPeriodBefore";if(e._heldTo&&e._heldTo<t)return"OutsideCheckinPeriodAfter"}if(this.hasQuizCheckin&&this.stampRallySpot.quizTryAnswerLimit&&this.$store.getters.getQuizRemainingAnswerCount(this.stampRallySpot)<=0)return"QuizAnswerLimitOver";if(this.$store.getters.useRogaining){if(!this.stampRallyEntryIsActive)return"NotStarted";if(this.hasStampRallyEventFinishCheckin)return"HasFinishCheckin"}if(this.hasStampRallyCheckin){if(this.stampRallyData.useHiddenStampRewardUsed)return this.spotStampRallyCheckins.some(t=>!t.isUsedReward)?"Checkin":"CanCheckin";
1if(!this.stampRallyData.allowMultipleCheckinsForSameSpot)return"Checkin"}else return"CanCheckin";if(this.stampRallyData.maxDailyCheckins&&0<this.stampRallyData.maxDailyCheckins){const t=window.vue.$store.getters.todayCheckinCount(this.stampRallyId);return this.stampRallyData.maxDailyCheckins<=t?"DailyLimit":"CanCheckin"}if(this.stampRallyData.maxDailyCheckinsForSpot&&0<this.stampRallyData.maxDailyCheckinsForSpot){const t=moment().local().startOf("day"),e=this.spotStampRallyCheckins.filter(i=>t<=i.checkinAtLocal);if(this.stampRallyData.maxDailyCheckinsForSpot<=e.length)return"DailySpotLimit"}return"CanCheckin"},isStampAvailablePeriod(){var t=moment.utc(this.stampRallySpot.stampAvailableFrom),e=moment.utc(this.stampRallySpot.stampAvailableTo),i=+t,o=+e,m=+new Date;return!(this.stampRallySpot.useStampRallyAvailabilityPeriod&&(i&&i>m||o&&o<m))},stampRallyCheckinButtonClass(){let t=[];return this.stampRallyCheckinStatus==="CanCheckin"?this.mapOptions.spotDetailStampRallyCheckinButtonStyle||(t.push("waves-effect"),t.push("waves-light")):t.push("-disabled"),this.usePoint&&t.push("-point"),this.stampRallyData.useBingo&&t.push("-bingo"),t.push(this.stampRallyCheckinStatus),t},stampRallyCheckinButtonStyle(){let t={};return 0<this.checkinButtonWidth&&(t.width=`${this.checkinButtonWidth}px`,t["justify-content"]="space-between"),t},stampRallyCheckinDisableMessage(){if(this.stampRallyCheckinStatus.startsWith("OutsideCheckinPeriod"))return this.$r(`stamprally.error.${this.stampRallyCheckinStatus.toLowerCase()}`);if(this.stampRallyCheckinStatus==="CanNotGroupCheckin"){const e=this.spotHasGroups[0];return this.$r("stamprally.error.cannotgroupcheckin",{groupName:e.spotGroupTitle})}if(this.stampRallyCheckinStatus==="QuizGroupPrerequisite")return this.$r("stamprally.error.quizgroupprerequisite");if(this.stampRallyCheckinStatus==="OverSpotCheckins")return this.$r("stamprally.error.overspotcheckins");
1if(this.stampRallyCheckinStatus==="OverSpotCheckinsForUser"){if(1<this.maxCheckinCountForUser){const e=R.get("common.times").replace("${times}",this.maxCheckinCountForUser);return this.$r("stamprally.error.overdailycheckinsforuser",{times:e})}return this.$r("stamprally.error.overspotcheckins")}let t=0;if(this.stampRallyCheckinStatus==="DailyLimit"&&(t=this.stampRallyData.maxDailyCheckins),this.stampRallyCheckinStatus==="DailySpotLimit"&&(t=this.stampRallyData.maxDailyCheckinsForSpot),t){let e="";return t===1?e=R.get("common.times.once"):e=R.get("common.times").replace("${times}",t),R.get("stamprally.error.overdailycheckins").replace("${times}",e)}if(this.stampRallyCheckinStatus==="QuizAnswerLimitOver")return this.$r("stamprallyevent.quizanswerlimitover");if(this.stampRallyCheckinStatus==="NotStarted")return this.$r("rogaining.notstarted")},spotRewardBannerStyle(){if(this.stampRallySpot.spotRewardBannerUrl)return{backgroundImage:`url("${this.stampRallySpot.spotRewardBannerUrl}")`}},manholeBookItem(){const t=this.userPosts.items.find(e=>e.spotId===this.spotId);if(t){const e=mt(t.thumbnailImage),i=moment.utc(t.postedAt).local(),o=R.get("stamprally.history.timestampformat"),m=i.format(o);return{itemId:t.id,iconStyle:e,postedAtText:this.$r("manhole.postedat",{timestamp:m})}}},isManholeBookVisible(){if(!this.mapCustomizeTypeIsTokyoManhole)return!1;const t=this.$store.getters.getSpot(this.spotId);return t&&t.featureType!==lt.Manhole?!1:this.userPosts.isDataLoaded},isAddPhotoManholeBookButtonVisible(){return!this.manholeBookItem},canAddPhotoToManholeBook(){return this.hasStampRallyCheckin},manholeBookButtonStyle(){let t={};return!this.useMaterialStyle&&0<this.checkinButtonWidth&&(t.width=`${this.checkinButtonWidth}px`),t},isAddPhotoManholeBookDescriptionVisible(){return!this.canAddPhotoToManholeBook&&this.userPosts.totalCount<3},isAddPhotoManholeBookDescription2Visible(){return this.mapCustomizeTypeIsTokyoManhole&&this.isManholeBookVisible},isOkazakiHintSpot(){return this.mapCustomizeTypeIsRealTreasureOkazaki?this.stampRallySpot.isCheckinDisabled:!1},canStampRallyCheckin(){return this.stampRallyCheckinStatus==="CanCheckin"}},methods:{onStampRallyCheckinAreaClick(){if(!this.mapOptions.spotDetailStampRallyCheckinButtonStyle)return!1;this.onStampRallyCheckinButtonClick()},onStampRallyCheckinButtonClick(){if(this.stampRallyCheckinStatus==="CanCheckin"){if(this.stampType==="facerecognition"){pt("ã¹ã¿ã³ããåå¾ããã«ã¯ãé¡èªè¨¼ãè¡ã£ã¦ãã ããã");return}this.stampTypes.length===1&&this.stampTypes.indexOf(_.SNS)!==-1&&this.spot.featureType===lt.Metaverse&&ot(this.getTwitterPostUrl(this.stampRallyData.stampRallyId,this.spot.id),"_blank"),pm.vue&&pm.vue.openStampRally("checkin",this.stampRallyId)}},onStampRallyItemClick(t){if(this.stampRallyEventSelectCommand(xt.Home),this.alwaysShowStampRally){this.$emit("closeaction");return}pm.vue&&pm.vue.openStampRally("detail",t)},onStampRallyRewardButtonClick(){var t={stampRallyId:this.stampRallyId,recordType:"SpotForStampRally",recordId:this.stampRallySpot.id};const e=this;this.$loadingStart(),$.ajax({url:"/map/api/maps/stamprally/recordrewarduse",method:"POST",dataType:"json",data:JSON.stringify(t),processData:!1,contentType:"application/json"}).then(function(){e.$loadingStop()}).fail(function(o){if(e.$loadingStop(),pm.vue){var m=R.get("stamprally.error.usereward");pm.vue.$showAlertDialog(m)}});var i="/map/api/maps/stamprally/spotreward/"+t.recordId;ot(i,"_blank",{sharedCookie:!0})},onClickRegisteredManholeBookItem(){pm.vue.openManholeBook({itemId:this.manholeBookItem.itemId})},updateCheckinButtonWidth(){if(this.$refs.checkinButton&&(this.checkinButtonWidth=Math.floor(this.$refs.checkinButton.offsetWidth)+1,this.$refs.stamprallygpsnotice)){const t=Math.floor(this.$refs.stamprallygpsnotice.offsetWidth)+1;this.checkinButtonWidth<t&&(this.checkinButtonWidth=t)}},openOkazakiHintDialog(){pm.vue.openOkazakiHintDialog({spotId:this.spotId,stampRallyId:this.stampRallyId})}},mounted(){this.mapCustomizeTypeIsTokyoManhole&&this.$nextTick(()=>{this.updateCheckinButtonWidth()}),this.mapOptions.spotDetailStampRallyCheckinButtonStyle?setTimeout(()=>{this.viewStatus=U.OPEN},320):this.viewStatus=U.OPEN}
1,created(){(this.viewType==="MiniBanner"||this.viewType==="RogainingEvent")&&this.resetCameraFacingMode()}}),di={key:0,class:"poistamprally"},ci={key:0,class:"poistamprally__card -minibanner"},hi={key:0,class:"poistamprally__minibanner"},yi=["src"],fi={key:1,class:"detail__stamprallystamp poistamprally__stamps"},gi=["onClick"],_i={class:"stamp__data poistamprally__stampdata"},ki={class:"stamp__at poistamprally__stampat"},Si={key:1,class:"stamprallyspotreward"},Ci={key:1,class:"stamprallyspotreward__card"},Ri={class:"stamprallyspotreward__banner"},vi={class:"stamprallyspotreward__body"},bi={class:"stamprallyspotreward__title bold"},$i={class:"stamprallyspotreward__description"};const wi={key:0,class:"stamprallyspotreward__buttons"};const Ti={key:2,class:"poistamprally__card"},Di={key:1,class:"detail__stamprallynotice poistamprally__notice -disablemessage"},Pi={key:3,class:"poistamprally__manholebook -sp"},Ii={key:0,class:"poistamprally__manholebookbuttondescription detail__stamprallynotice"},Bi={key:1,class:"poistamprally__manholebookbuttondescription detail__stamprallynotice"},Ai={class:"poistamprally__manholebookitemtext"},Oi={class:"poistamprally__manholebookitemtextposted"},Mi={class:"poistamprally__manholebookitemtextpostedat"};function Li(t,e,i,o,m,n){const l=h("spot-reward"),d=h("stamp-overlay"),c=h("poi-detail-stamp-rally-point-logs"),f=h("poi-detail-stamp-rally-information"),F=h("quiz-description"),N=h("rogaining-event"),J=h("stamp-rally-button"),Y=h("user-post-button");return t.stampRallySpot.spotId===t.spotId?(a(),r("div",di,[t.viewType==="MiniBanner"?(a(),r("div",ci,[t.mapIsConCierGeKiNoBi?(a(),r("div",hi,[s("img",{class:"detail__stamprallyminibanner stamprally__minibanner btn-stamprallydetail waves-effect",src:t.miniBannerUrl,onClick:e[0]||(e[0]=k=>t.onStampRallyItemClick(t.stampRallyId))},null,8,yi)])):(a(),v(f,{key:1,"stamp-rally-data":t.stampRallyData,"stamp-rally-spot":t.stampRallySpot,"stamp-rally-mini-banner":t.miniBannerUrl,"stamp-s
1pot-label":t.stampSpotLabel,"stamp-rally-period-until":t.stampRallyPeriodUntil,"is-stamp-rally-checkin-button-visible":t.isStampRallyCheckinButtonVisible,"use-point":t.usePoint,onOpenstamprally:e[2]||(e[2]=k=>t.onStampRallyItemClick(t.stampRallyId))},{checkins:rt(()=>[t.useSpotRewardAudioImageCombo?(a(),v(l,{key:0,class:"poistamprally__reward",spot:t.spot,"stamp-rally":t.stampRallyData,"stamp-rally-spot":t.stampRallySpot},null,8,["spot","stamp-rally","stamp-rally-spot"])):u("",!0),t.visibleCheckins.length?G((a(),r("div",fi,[(a(!0),r(w,null,P(t.visibleCheckins,k=>(a(),r("div",{key:k.id,class:"stamprallycheckin poistamprally__checkins"},[s("div",{class:"stamp__base poistamprally__stampbase",onClick:L=>t.onStampRallyItemClick(k.stampRallyId)},[s("div",{class:"stamp__icon poistamprally__stampicon",style:I(k.iconContainerStyle)},[k.baseIconUrl?(a(),v(d,{key:0,"base-icon-url":k.baseIconUrl,"icon-url":k.iconUrl,"is-manhole":k.isManhole},null,8,["base-icon-url","icon-url","is-manhole"])):u("",!0)],4),s("div",_i,[s("div",ki,p(k.checkinAtText),1)])],8,gi),k.pointLogs&&k.pointLogs.length?(a(),v(c,{key:0,logs:k.pointLogs,"use-point":t.usePoint,"stamp-style":k.style},null,8,["logs","use-point","stamp-style"])):u("",!0),t.isSpotRewardCardVisible?(a(),r("div",Si,[t.stampRallySpotRewards.length?(a(),v(l,{key:0,spot:t.spot,"stamp-rally":t.stampRallyData,"stamp-rally-spot":t.stampRallySpot,"stamp-rally-entry-is-active":t.stampRallyEntryIsActive},null,8,["spot","stamp-rally","stamp-rally-spot","stamp-rally-entry-is-active"])):(a(),r("div",Ci,[s("div",Ri,[s("div",{class:"stamprallyspotreward__bannerimage",style:I(t.spotRewardBannerStyle)},null,4)]),s("div",vi,[s("div",bi,p(t.stampRallySpot.spotRewardTitle),
11),s("div",$i,p(t.stampRallySpot.spotRewardDescription),1),u("",!0)]),t.stampRallyEntryIsActive?(a(),r("div",wi,[s("div",{class:"stamprallyspotreward__button waves-effect waves-light",onClick:e[1]||(e[1]=(...L)=>t.onStampRallyRewardButtonClick&&t.onStampRallyRewardButtonClick(...L))},p(t.$r("common.download")),1)])):u("",!0),u("",!0)]))])):u("",!0)]))),128))],512)),[[W,t.isStampRallyReadyPlatform]]):u("",!0)]),_:1},8,["stamp-rally-data","stamp-rally-spot","stamp-rally-mini-banner","stamp-spot-label","stamp-rally-period-until","is-stamp-rally-checkin-button-visible","use-point"])),b(F,{class:"poistamprally__quizdescription","spot-id":t.spotId,"stamp-rally-data":t.stampRallyData,"has-stamp-rally-checkin":t.hasStampRallyCheckin,"stamp-types":t.stampTypes},null,8,["spot-id","stamp-rally-data","has-stamp-rally-checkin","stamp-types"])])):t.viewType==="RogainingEvent"?(a(),v(N,{key:1,"spot-id":t.spotId,"stamp-rally-id":t.stampRallyId,"stamp-rally-spot":t.stampRallySpot,"stamp-types":t.stampTypes,"use-point":t.usePoint,"is-stamp-rally-ready-platform":t.isStampRallyReadyPlatform,"is-stamp-rally-checkin-button-visible":t.isStampRallyCheckinButtonVisible,"checkin-button-class":t.checkinButtonClass,"checkin-button-label":t.checkinButtonLabel,"stamp-rally-checkin-button-class":t.stampRallyCheckinButtonClass,"is-stamp-rally-gps-notice-visible":t.isStampRallyGpsNoticeVisible,"stamp-rally-checkin-disable-message":t.stampRallyCheckinDisableMessage,"is-okazaki-hint-spot":t.isOkazakiHintSpot,onOnstamprallycheckinbuttonclick:t.onStampRallyCheckinButtonClick,onOpenokazakihintdialog:t.openOkazakiHintDialog},null,8,["spot-id","stamp-rally-id","stamp-rally-spot","stamp-types","use-point","is-stamp-rally-ready-platform","is-stamp-rally-checkin-button-visible","checkin-button-class","checkin-button-label","stamp-rally-checkin-button-class","is-stamp-rally-gps-notice-visible","stamp-rally-checkin-disable-message","is-okazaki-hint-spot","onOnstamprallycheckinbuttonclick","onOpenokazakihintdialog"])):(a(),r("div",Ti,[t.viewType==="Material"?(a(),r(w,{key:0},[t.isStampRallyCheckinButtonVisible&&t.useMaterialStyle?(a(),v(J,{key:0,"spot-id":t.spotId,"stamp-rally-id":t.stampRallyId,"stamp-rally-spot":t.stampRallySpot,"stamp-types":t.stampTypes,"use-point":t.usePoint,"spot-point-rule":t.spotPointRule,"spot-stamp-rally-checkins":t.spotStampRallyCheckins,"is-stamp-rally-ready-platform":t.isStampRallyReadyPlatform,"is-stamp-rally-checkin-button-visible":t.isStampRallyCheckinButtonVisible,"checkin-button-class":t.checkinButtonClass,"checkin-button-label":t.checkinButtonLabel,"stamp-rally-checkin-button-class":t.stampRallyCheckinButtonClass,"is-stamp-rally-gps-notice-visible":t.isStampRallyGpsNoticeVisible,"stamp-rally-checkin-disable-message":t.stampRallyCheckinDisableMessage,"is-okazaki-hint-spot":t.isOkazakiHintSpot,"can-stamp-rally-checkin":t.canStampRallyCheckin,onOnstamprallycheckinbuttonclick:t.onStampRallyCheckinButtonClick,onOpenokazakihintdialog:t.openOkazakiHintDialog},null,8,["spot-id","stamp-rally-id","stamp-rally-spot","stamp-types","use-point","spot-point-rule","spot-stamp-rally-checkins","is-stamp-rally-ready-platform","is-stamp-rally-checkin-button-visible","checkin-button-class","checkin-button-label","stamp-rally-checkin-button-class","is-stamp-rally-gps-notice-visible","stamp-rally-checkin-disable-message","is-okazaki-hint-spot","can-stamp-rally-checkin","onOnstamprallycheckinbuttonclick","onOpenokazakihintdialog"])):u("",!0)],64)):u("",!0),t.isOkazakiHintSpot&&t.isStampRallyCheckinButtonVisible?G((a(),r("div",{key:1,class:S(["detail__stamprally poistamprally__checkin -checkin",t.checkinButtonClass])},[s("div",{class:"btn-stamprallycheckin poistamprally__checkinbutton waves-effect waves-light",ref:"hintButton",style:I(t.stampRallyCheckinButtonStyle),onClick:e[3]||(e[3]=(...k)=>t.openOkazakiHintDialog&&t.openOkazakiHintDialog(...k))},p(t.checkinButtonLabel),5)],2)),[[W,t.isStampRallyReadyPlatform]]):t.isStampRallyCheckinButtonVisible?G((a(),r("div",{key:2,class:S(["detail__stamprally poistamprally__checkin -checkin",t.checkinButtonClass]),onClick:e[5]||(e[5]=(...k)=>t.onStampRallyCheckinAreaClick&&t.onStampRallyCheckinAreaClick(...k))},[s("div",{class:S(["btn-stamprallycheckin poistamprally__checkinbutton",t.stampRallyCheckinButtonClass]),ref:"checkinButton",style:I(t.stampRallyCheckinButtonStyle),onClick:e[4]||(e[4]=(...k)=>t.onStampRallyCheckinButtonClick&&t.onStampRallyCheckinButtonClick(...k))},[Vt(p(t.checkinButtonLabel)+" ",1),t.usePoint?(a(),r("div",{key:0,class:S(["btn-stamprallycheckin__point",t.checkinPointsClass])},p(t.checkinPoints),3)):u("",!0)],6),t.isStampRallyGpsNoticeVisible?(a(),r("div",{key:0,class:"detail__stamprallynotice poistamprally__notice -gpsnotice",ref:"stamprallygpsnotice"},p(t.$r("StampRallyStampGpsNotice")),513)):u("",!0),t.stampRallyCheckinDisableMessage?(a(),r("div",Di,p(t.stampRallyCheckinDisableMessage),1)):u("",!0)],2)),[[W,t.isStampRallyReadyPlatform]]):u("",!0),t.isManholeBookVisible?(a(),r("div",Pi,[t.isAddPhotoManholeBookButtonVisible?(a(),r("div",{key:0,class:"poistamprally__manholebookbutton",ref:"manholeButton",style:I(t.manholeBookButtonStyle)},[b(Y,{class:"poistamprally__button",title:t.$r("manhole.addphoto"),disabled:!t.canAddPhotoToManholeBook,"spot-id":t.
1spotId},null,8,["title","disabled","spot-id"]),t.isAddPhotoManholeBookDescriptionVisible?(a(),r("div",Ii,p(t.$r("manhole.addphoto.description")),1)):u("",!0),t.isAddPhotoManholeBookDescription2Visible?(a(),r("div",Bi,p(t.$r("manhole.addphoto.description2")),1)):u("",!0)],4)):u("",!0),t.manholeBookItem?(a(),r("div",{key:1,class:"poistamprally__manholebookitem",onClick:e[6]||(e[6]=(...k)=>t.onClickRegisteredManholeBookItem&&t.onClickRegisteredManholeBookItem(...k))},[s("div",{class:"poistamprally__manholebookitemicon",style:I(t.manholeBookItem.iconStyle)},null,4),s("div",Ai,[s("div",Oi,p(t.$r("manhole.book")),1),s("div",Mi,p(t.manholeBookItem.postedAtText),1)])])):u("",!0)])):u("",!0)]))])):u("",!0)}const hl=y(ui,[["render",Li],["__scopeId","data-v-aecfa696"]]),zi={name:"PoiCrowdStatus",components:{MetaPinRealTime:Tt},props:{spotId:Number},computed:{spot(){return this.$store.getters.getSpot(this.spotId)||{}},isMetaPin(){return this.$store.getters.useMetaPin&&this.$store.getters.isMetaPinSpot(this.spotId)},spotCrowdStatus(){return window.pm.util.getVisibleCrowdStatus(this.mapOptions,this.spot,"long")},style(){if(this.spotCrowdStatus)return this.spotCrowdStatus.style}},methods:{}},Ei={key:0,class:"poicrowdstatus"},Fi={key:0,class:"detail__crowdstatus"},Ui=["data-crowdstatus"],Vi={class:"detail__crowdstatusupdatedat"};function Ni(t,e,i,o,m,n){const l=h("meta-pin-real-time");return t.mapOptions.useCrowdStatus?(a(),r("div",Ei,[n.spotCrowdStatus?(a(),r("div",Fi,[n.isMetaPin?(a(),v(l,{key:0,"spot-id":i.spotId,"no-shadow":!0},null,8,["spot-id"])):(a(),r("div",{key:1,class:"detail__crowdstatustext","data-crowdstatus":n.spotCrowdStatus.code,style:I(n.style)},p(n.spotCrowdStatus.text),13,Ui)),s("div",Vi,p(n.spotCrowdStatus.updatedAt),1)])):u("",!0)])):u("",!0)}const yl=y(zi,[["render",Ni],["__scopeId","data-v-76598f1b"]]),Gi=C({name:"PoiDetailStatusCustomText",props:{source:Object},setup(){},computed:{updatedAt(){const t=moment(this.source.updatedAt),e=R.get("common.updatedat.format"),i=t.tz("Asia/Tokyo").format(e);return this.$r("common.updatedat",{time:i})}}}),Wi={class:"pdsct"},Hi={class:"pdsct__text"},ji={class:"pdsct__updatedat"};function qi(t,e,i,o,m,n){return a(),r("div",Wi,[s("div",Hi,[s("span",null,p(t.source.text),1)]),s("div",ji,[s("span",null,p(t.updatedAt),1)])])}const Qi=y(Gi,[["render",qi],["__scopeId","data-v-8fd7b901"]]),Ki=/^([^ï¼\(]+)([ï¼\(][^ï¼\)]+[ï¼)])$/,Ji=C({name:"PoiDetailStatus",components:{PoiDetailStatusCustomText:Qi,CrowdStatus:ze},props:{spot:Object},setup(){const{spotOperationalStatusInService:t}=ie();return{spotOperationalStatusInService:t}},data(){return{}},computed:{...St(["spotOperationalStatusOptions"]),spotSpotOperationalStatusType(){const t=this.$store.getters.spotCrowdStatus(this.spot.id);let e=0;if(t&&t.crowdStatusUpdatedAt&&(e=+new Date(t.crowdStatusUpdatedAt)),this.mapOptions.useWaitingTime){const i=this.spotWaitingTime;let o=0;if(i&&i.waitingTimeUpdatedAt&&(o=+new Date(i.waitingTimeUpdatedAt)),e<o&&i.statusType)return i.statusType}return t&&typeof t.statusType=="number"&&t.statusType?t.statusType:this.spot.spotOperationalStatusType},crowdStatusConfig(){let t;const e=this.$store.getters.spotCrowdStatus(this.spot.id);return e&&(t=this.$store.getters.getCrowdStatusConfig(e.configId)),t||this.mapOptions.crowdStatusConfig},crowdStatusValidHours(){return this.crowdStatusConfig&&typeof this.crowdStatusConfig.crowdStatusValidHours=="number"?this.crowdStatusConfig.crowdStatusValidHours:3},crowdStatusOptions(){let t={1:{color:"#0D7FEC",iconFile:"1_kansan.png",text:this.$r("connect.crowdstatus.detail.1")},2:{color:"#EBD30C",iconFile:"2_littlekonzatsu.png",text:this.$r("connect.crowdstatus.detail.2")},3:{color:"#EBD30C",iconFile:"2_littlekonzatsu.png",text:this.$r("connect.crowdstatus.detail.3")},4:{color:"#EB0A60",iconFile:"3_konzatsu.png",text:this.$r("connect.crowdstatus.detail.4")},5:{color:"#EB0A60",iconFile:"3_konzatsu.png",text:this.$r("connect.crowdstatus.detail.5")},6:{color:"#333",iconFile:null,text:"Level6"},7:{color:"#333",iconFile:null,text:"Level7"},8:{color:"#333",iconFile:null,text:"Level8"},9:{color:"#333",iconFile:null,text:"å¶æ¥æéå¤"}};this.$store.getters.isNomachiCameraCaptureTargetSpot(this.spot.id)&&Object.values(t).forEach(i=>
1i.iconFile=null);const e=this.crowdStatusConfig;if(e){let i=e.crowdStatusLabels;e.spotCrowdStatusLabels&&e.spotCrowdStatusLabels[this.spot.id]&&(i=e.spotCrowdStatusLabels[this.spot.id]),i&&(Object.keys(t).forEach(o=>{let m=i.find(n=>+n.crowdStatusValue==+o);m&&(m.long||m.longName)&&(t[o].text=m.long||m.longName)}),this.mapOptions.useNomachi&&i.forEach(o=>{if(!(o.crowdStatusValue in t)){const m=o.textColor||this.$store.getters.themeTextColor;t[o.crowdStatusValue]={color:m,iconFile:o.icon,text:o.long||o.longName||o.short||o.shortName,style:{backgroundColor:o.backgroundColor||this.$store.getters.themeSubColor,color:m}}}}))}return t},spotCrowdStatus(){const t=window.pm.util.getVisibleCrowdStatus(this.mapOptions,this.spot,"long");if(t){const e=this.crowdStatusOptions[t.code];if(e)return Object.assign({},t,e)}if(this.mapOptions.useMarkerTooltipTextInput){const e=this.$store.getters.spotCrowdStatus(this.spot.id);if(e&&e.crowdStatusVisible&&e.tooltipContent)return e}},isCrowdStatusVisible(){return this.spotSpotOperationalStatusType!==ft.CrowdStatus?!1:!!this.spotCrowdStatus},crowdStatusClass(){let t=[];return this.isCrowdStatusVisible&&t.push(`-status${this.spotCrowdStatus.code}`),t},crowdStatusStyle(){let t={};return this.isCrowdStatusVisible&&(t["border-color"]=this.spotCrowdStatus.color),t},crowdStatusIcon(){if(this.isCrowdStatusVisible&&this.spotCrowdStatus.iconFile)return`/map/images/crowd/${this.spotCrowdStatus.iconFile}`},spotWaitingTime(){return this.$store.getters.spotWaitingTime(this.spot.id)},isWaitingTimeVisible(){return!this.$store.getters.waitingTimeLastUpdatedAt||!this.spotOperationalStatusOptions||this.spotSpotOperationalStatusType!==ft.WaitingTime||!this.spotWaitingTime||!this.spotWaitingTime.waitingTimeVisible||!this.waitingTimeUpdatedAt||this.crowdStatusValidHours>0&&moment().diff(this.waitingTimeUpdatedAt,"hours",!0)>this.crowdStatusValidHours&&!this.spotWaitingTime.isTemporallyClosed&&!this.spotWaitingTime.isTemporallyPaused?!1:this.spotOperationalStatusInService},waitingTimeClass(){let t=[];return this.isJoypolis?(it.isUnavailableKind(this.spotWaitingTime.type)&&t.push("-waitingtime--unavailable"),!this.waitingTimePrefix&&!this.waitingTimeUnitText&&this.waitingTimeValue!=null&&t.push("-joypolis--valueonly"),t):this.isPuroland?(pm.custom.PurolandWaitingDisplay.isUnavailable(this.spotWaitingTime)&&t.push("-waitingtime--unavailable"),t):this.isSagamiko?(this.sagamikoBusinessHours&&t.push("-sidebadge"),pm.custom.SagamikoWaitingDisplay.isUnavailable(this.spotWaitingTime)&&t.push("-waitingtime--unavailable"),t):(this.spotOperationalStatusInService?this.spotWaitingTime&&this.spotWaitingTime.isTemporallyClosed&&t.push("-temporallyclosed"):t.push("-outofservice"),t)},waitingTimeTemporallyClosedText(){return this.spot.featureType===lt.AmusementRide?this.$r("waitingtime.temporallyclosed.ride"):this.spotCrowdStatus&&this.spotCrowdStatus.code===9?"å¶æ¥æéå¤":this.$r("waitingtime.temporallyclosed")},waitingTimeTemporallyPausedText(){return this.$r("waitingtime.temporallypaused")},waitingTimePrefix(){return this.isJoypolis?this.$r(`joypolis.type${this.spotWaitingTime.type}.prefix`):this.isPuroland?this.purolandDisplayData?this.purolandDisplayData.prefix:"":this.isSagamiko?this.sagamikoDisplayData?this.sagamikoDisplayData.prefix:"":this.$r("waitingtime.detail.label")},waitingTimeValue(){if(this.isWaitingTimeVisible){if(this.isJoypolis){if(it.hasWaitingTime(this.spotWaitingTime.type)&&this.spotWaitingTime.waitingTime!=null)return this.spotWaitingTime.waitingTime;if(it.hasNextStartAt(this.spotWaitingTime.type)&&this.spotWaitingTime.nextStartAt){const t=moment.tz(this.spotWaitingTime.nextStartAt,"Asia/Tokyo");if(t.isValid())return t.format("HH:mm")}return this.$r(`joypolis.type${this.spotWaitingTime.type}.value`)}return this.isPuroland?this.purolandDisplayData?this.purolandDisplayData.value:void 0:this.isSagamiko?this.sagamikoDisplayData?this.sagamikoDisplayData.value:void 0:this.spotWaitingTime.waitingTime}},waitingTimeUnitText(){if(this.spotWaitingTime)return this.isJoypolis?this.$r(`joypolis.type${this.spotWaitingTime.type}.suffix`):this.isPuroland?this.purolandDisplayData?[this.purolandDisplayData.suffix,this.purolandDisplayData.note].filter(
1Boolean).join(" "):"":this.isSagamiko?this.sagamikoDisplayData?this.sagamikoDisplayData.suffix:"":this.spotWaitingTime.waitingTimeType===yt.AtMost?this.$r("waitingtime.unit.less"):this.spotWaitingTime.waitingTimeType===yt.AtLeast?this.$r("waitingtime.unit.more"):this.$r("waitingtime.unit.wait")},waitingTimeUpdatedAt(){if(!(!this.spotWaitingTime||!this.spotWaitingTime.waitingTimeUpdatedAt))return moment.utc(this.spotWaitingTime.waitingTimeUpdatedAt)},waitingTimeUpdatedAtText(){if(!this.waitingTimeUpdatedAt)return;const t=R.get("common.updatedat.format"),e=this.waitingTimeUpdatedAt.tz("Asia/Tokyo").format(t);return R.get("common.updatedat",{time:e})},hasItems(){return!!(this.spotOperationalStatusInService&&(this.isCrowdStatusVisible||this.isWaitingTimeVisible))},isTemporallyClosed(){if(this.hasItems){if(this.isCrowdStatusVisible)return this.spotCrowdStatus.isTemporallyClosed;if(this.isWaitingTimeVisible)return this.spotWaitingTime.isTemporallyClosed}return!1},isTemporallyPaused(){if(this.hasItems){if(this.isCrowdStatusVisible)return this.spotCrowdStatus.isTemporallyPaused;if(this.isWaitingTimeVisible)return this.spotWaitingTime.isTemporallyPaused}return!1},spotCrowdStatusHtml(){const t=this.spotCrowdStatus&&this.spotCrowdStatus.text;if(!t)return;const e=Ki.exec(t);return e&&e.length?`${e[1]}<span class="-sub">${e[2]}</span>`:t},isJoypolis(){return this.mapCustomizeType===z.Joypolis},isPuroland(){return this.mapCustomizeType===z.Puroland},purolandDisplayData(){return!this.isPuroland||!this.spotWaitingTime?null:pm.custom.PurolandWaitingDisplay.getDisplayData(this.spotWaitingTime)},isSagamiko(){return this.mapCustomizeType===z.SagamikoResort},sagamikoDisplayData(){return!this.isSagamiko||!this.spotWaitingTime?null:pm.custom.SagamikoWaitingDisplay.getDisplayData(this.spotWaitingTime)},sagamikoBusinessHours(){return this.sagamikoDisplayData?this.sagamikoDisplayData.businessHours:""},markerTooltipContent(){const t={text:void 0,updatedAt:void 0};if(this.isCrowdStatusVisible&&(t.text=this.spotCrowdStatus.tooltipContent,t.updatedAt=this.spotCrowdStatus.updatedAtValue),this.isWaitingTimeVisible&&(t.text=this.spotWaitingTime.tooltipContent,t.updatedAt=this.spotWaitingTime.waitingTimeUpdatedAt),t.text)return t}},mounted(){}}),Yi={key:0,class:"poidetailstatus"},Xi={key:0,class:"poidetailstatus__section poidetailstatus__waitingtime -temporallyclosed"},Zi={key:0,class:"poidetailstatus__waitingtimeitem"},xi={class:"poidetailstatus__temporallyclosed"},ta={key:1,class:"poidetailstatus__waitingtimeitem"},ea={class:"poidetailstatus__temporallyclosed"},sa={class:"poidetailstatus__waitingtimeitem"},ia={key:0,class:"poidetailstatus__waitingtimelabel"},aa={class:"poidetailstatus__waitingtimecontent"},oa={key:0,class:"poidetailstatus__waitingtimevalue"},na={key:1,class:"poidetailstatus__waitingtimeunit"},la={key:0,class:"poidetailstatus__businesshours"},ra={class:"poidetailstatus__businesshourslabel"},pa={class:"poidetailstatus__businesshoursvalue"},ma={class:"poidetailstatus__waitingtimeupdatedat"};
1function ua(t,e,i,o,m,n){const l=h("poi-detail-status-custom-text"),d=h("crowd-status");return t.hasItems?(a(),r("div",Yi,[t.markerTooltipContent?(a(),v(l,{key:0,source:t.markerTooltipContent},null,8,["source"])):(a(),r(w,{key:1},[t.isTemporallyClosed||t.isTemporallyPaused?(a(),r("div",Xi,[t.isTemporallyClosed?(a(),r("div",Zi,[s("div",xi,p(t.waitingTimeTemporallyClosedText),1)])):t.isTemporallyPaused?(a(),r("div",ta,[s("div",ea,p(t.waitingTimeTemporallyPausedText),1)])):u("",!0)])):t.isCrowdStatusVisible?(a(),r("div",{key:1,class:S(["poidetailstatus__section",t.crowdStatusClass])},[b(d,{source:t.spotCrowdStatus,"record-type":"Spot","record-id":t.spot.id},null,8,["source","record-id"])],2)):t.isWaitingTimeVisible?(a(),r("div",{key:2,class:S(["poidetailstatus__section poidetailstatus__waitingtime",t.waitingTimeClass])},[s("div",sa,[t.waitingTimePrefix?(a(),r("div",ia,p(t.waitingTimePrefix),1)):u("",!0),s("div",aa,[t.waitingTimeValue!=null?(a(),r("div",oa,p(t.waitingTimeValue),1)):u("",!0),t.waitingTimeUnitText?(a(),r("div",na,p(t.
1waitingTimeUnitText),1)):u("",!0)])]),t.sagamikoBusinessHours?(a(),r("div",la,[s("span",ra,p(t.$r("sagamiko.businesshours.label")),1),s("span",pa,p(t.sagamikoBusinessHours),1)])):u("",!0),s("div",ma,p(t.waitingTimeUpdatedAtText),1)],2)):u("",!0)],64))])):u("",!0)}const fl=y(Ji,[["render",ua],["__scopeId","data-v-c0d4e0b2"]]),da=C({name:"PoiDetailToiletStatus",props:{spotId:Number},computed:{location(){return this.$store.getters.getToiletStatus(this.spotId)},groupedPlacements(){if(!this.location||!this.location.placements)return{};const t={};return this.location.placements.forEach(e=>{const i=e.floorName||"null";t[i]||(t[i]=[]),t[i].push(e)}),t}},methods:{getTitle(t){if(this.$store.state.mapOptions.locale==="ja")return t.placementName;const e=t.raw.gender;return e==="FEMALE"?this.$r("toilet.placement.female"):e==="MALE"?this.$r("toilet.placement.male"):this.isForChild(t)?this.$r("toilet.placement.child"):t.raw.isMultiPurpose?this.$r("toilet.placement.multipurpose"):this.$r("toilet.placement.general")},getIcon(t){const e="https://cdn.platinumaps.jp/static/icon/wc/",i=t.raw.gender;let o;return i==="FEMALE"?o="wc_woman.svg?v=2":i==="MALE"?o="wc_men.svg?v=2":this.isForChild(t)?o="wc_baby.svg":t.raw.isMultiPurpose?o="wc_multi.svg":o="wc.svg",e+o},getIconStyle(t){return mt(this.getIcon(t))},isForChild(t){return["DIAPER_CHANGE_TABLE","BABY_CHAIR"].some(e=>t.raw.options.some(i=>i===e))},getNumbers(t){if(t.vacantBoxCount)return`${t.privateBoxCapacity-t.vacantBoxCount}/${t.privateBoxCapacity}`},getSuffix(t){return this.isFull(t)?this.$r("toilet.status.full"):this.$r("toilet.status.inuse")},getCssClass(t){if(this.isFull(t))return"-full"},isFull(t){return t.vacantBoxCount<=0}}}),ca={class:"toilet"},ha={class:"toilet__header"},ya={key:0,class:"toilet__floor-name"},fa={class:"toilet__left"},ga={class:"toilet__name"},_a={class:"toilet__status"},ka={class:"toilet__numbers"},Sa={class:"toilet__suffix"};function Ca(t,e,i,o,m,n){return a(),r("div",ca,[s("div",ha,p(t.$r("toilet.header.title")),1),(a(!0),r(w,null,P(t.groupedPlacements,(l,d)=>(a(),r("div",{key:d,class:"toilet__floor-group"},[d&&d!=="null"?(a(),r("div",ya,p(d),1)):u("",!0),(a(!0),r(w,null,P(l,c=>(a(),r("div",{class:S(["toilet__placement",t.getCssClass(c)]),key:c.placementName},[s("div",fa,[s("div",{class:"toilet__icon",style:I(t.getIconStyle(c))},null,4),s("div",ga,p(t.getTitle(c)),1)]),s("div",_a,[s("span",ka,p(t.getNumbers(c)),1),s("span",Sa,p(t.getSuffix(c)),1)])],2))),128))]))),128))])}const gl=y(da,[["render",Ca],["__scopeId","data-v-bc58bae2"]]),Ra=C({name:"PoiDetailEnvironmentalSensorData",props:{spotId:Number},computed:{sensor(){return this.$store.getters.getEnvironmentalSensorData(this.spotId)},panelsData(){return[{label:"æ°æ¸©",data:this.sensor.temp,unit:"â",digits:1},{label:"湿度",data:this.sensor.humi,unit:"%",digits:1},{label:"天æ°",data:this.weather,unit:null},{label:"æãææ°",data:this.sensor.wbgt,unit:"WBGTâ"},{label:"風é",data:this.windData,unit:null,wind:!0,noData:this.windData.normalSpeed==null},{label:"é¨é",data:this.sensor.rain_f,unit:"mm/h",digits:1},{label:"é£ç¶é¨é",data:this.sensor.rain_c,unit:"mm",digits:1},{label:"éæ°´å¼·åº¦",data:this.sensor.rain_i,unit:"mm/h",digits:1},{label:"æ¥å°",data:this.sensor.solar,unit:"W/ã¡"},{label:"ç¾å°æ°å§",data:this.sensor.press_l,unit:"hPa"},{label:"æµ·é¢æ°å§",data:this.sensor.press_s,unit:"hPa"}]},weather(){let t=this.sensor.weather;if(t)return t=t.toLowerCase().replace(/[^a-z]/g,""),{sunny:"æ´ã",sunnyorcloudy:`æ´ã 2æã æã`,cloudy:"æã",rainy:"é¨",rainyorsnowy:"é¨ãéª",snowy:"éª",night:"å¤"}[t]||this.sensor.weather},windData(){return{normalSpeed:this.sensor.wind_s,maxSpeed:this.sensor.wind_s_max,dir:this.sensor.wind_d,dirLabel:(()=>{const t=["å","ååæ±","åæ±","æ±åæ±","æ±","æ±åæ±","åæ±","ååæ±","å","åå西","å西","西å西","西","西å西","å西","åå西","å"],e=Math.round(this.sensor.wind_d/22.5);return t[e]})()}},timestampLabel(){return`è¨æ¸¬æ¥æ: ${moment.tz(this.sensor.datetime,"Asia/Tokyo").format("YYYY/M/D HH:mm")}`}},methods:{format(t,e){return t==null?"-":typeof t=="number"?(+t).toFixed(e||0):t}}}),va={class:"envdata"},ba={class:"envdata__header"},$a={class:"envdata__headertime"},wa={class:"envdata__panels"},Ta={class:"envdata__aspect"},Da={key:0,class:"envdata__row"},Pa={class:"envdata__col"},Ia={class:"envdata__panelhead"},Ba={class:"envdata__panelbody"},Aa={class:"envdata__value"},Oa={class:"envdata__valuenum"},Ma={class:"envdata__value"},La={class:"envdata__valuenum"},za={class:"envdata__col"},Ea={class:"envdata__winddir"},Fa={class:"envdata__panelhead"},Ua={class:"envdata__panelbody"},Va={class:"envdata__value"},Na={class:"envdata__valueunit"};function Ga(t,e,i,o,m,n){return a(),r("div",va,[s("div",ba,[e[0]||(e[0]=s("div",{class:"envdata__headertitle"}
2,"ç°å¢ã»ã³ãµã¼æ
å ±",-1)),s("div",$a,p(t.timestampLabel),1)]),s("div",wa,[(a(!0),r(w,null,P(t.panelsData,l=>(a(),r("div",{class:S(["envdata__panel",{"-col2":l.wind,"-disabled":l.data==null||l.noData}]),key:l.label},[s("div",Ta,[l.wind?(a(),r("div",Da,[s("div",Pa,[s("div",Ia,p(l.label),1),s("div",Ba,[s("div",null,[s("div",Aa,[s("div",Oa,p(t.format(l.data.normalSpeed,0)),1),e[1]||(e[1]=s("div",{class:"envdata__valueunit"},p("m/s 風"),-1))]),s("div",Ma,[s("div",La,p(t.format(l.data.maxSpeed,0)),1),e[2]||(e[2]=s("div",{class:"envdata__valueunit"},p("m/s çªé¢¨"),-1))])])])]),s("div",za,[s("div",Ea,p(l.data.dirLabel),1)])])):(a(),r(w,{key:1},[s("div",Fa,p(l.label),1),s("div",Ua,[s("div",Va,[s("div",{class:S(["envdata__valuenum",`-chars${t.format(l.data,l.digits).length}`])},p(t.format(l.data,l.digits)),3),s("div",Na,p(l.unit),1)])])],64))])],2))),128))])])}const _l=y(Ra,[["render",Ga],["__scopeId","data-v-2b82f8b0"]]),Wa=C({name:"PoiDetailTitleRogaining",props:{spot:Object},setup(){},computed:{stampRallyData(){return this.$store.getters.stampRallyData()},stampRallyEventSpotConfigs(){return this.$store.getters.stampRallyEventSpotConfigs(this.spot.id,this.stampRallyData.stampRallyId)},checkinKeyText(){const t=[];return this.stampRallyEventSpotConfigs.forEach(e=>{e.checkinKey===E.Start&&t.push(this.$r("rogaining.startspot")),e.checkinKey===E.Finish&&t.push(this.$r("rogaining.goalspot"))}),t.join(" / ")}}}),Ha={key:0,class:"pdtrogaining"};function ja(t,e,i,o,m,n){return t.checkinKeyText?(a(),r("div",Ha,p(t.checkinKeyText),1)):u("",!0)}const kl=y(Wa,[["render",ja],["__scopeId","data-v-6cff91de"]]),qa=C({name:"PoiDetailMapTransfer",props:{mapTransfer:Object},setup(){},methods:{transferMap(){window.mapEvent.trigger("transfermap",{mapUrl:this.mapTransfer.mapUrl,transferChildMapOptions:this.mapTransfer.transferChildMapOptions,transitionType:1,markerType:0,visibleCategories:[],spotId:this.mapTransfer.spotId})}}}),Qa={class:"poidetailmaptransfer__icon"},Ka={key:0,class:"poidetailmaptransfer__iconimage"},Ja=["src"],Ya={class:"poidetailmaptransfer__info"},Xa={class:"poidetailmaptransfer__title"},Za={key:0,class:"poidetailmaptransfer__description"};function xa(t,e,i,o,m,n){return a(),r("div",{class:"poidetailmaptransfer waves-effect",onClick:e[0]||(e[0]=(...l)=>t.transferMap&&t.transferMap(...l))},[s("div",Qa,[t.mapTransfer.iconUrl?(a(),r("div",Ka,[s("img",{src:t.mapTransfer.iconUrl,alt:""},null,8,Ja)])):u("",!0)]),s("div",Ya,[s("div",Xa,p(t.mapTransfer.title),1),t.mapTransfer.description?(a(),r("div",Za,p(t.mapTransfer.description),1)):u("",!0)])])}const Sl=y(qa,[["render",xa],["__scopeId","data-v-0e24fe8d"]]);function to(t){const{store:e}=Dt();let i;e.getters.useSpotSearchApi?i=e.getters.getAllSpotMarkers2():i=e.getters.spots;const o=e.getters.getSpot(t),m=[];return i.filter(n=>n.metaPinMasterId>0&&n.id!==t&&(!o.graphicMapFloorId||o.graphicMapFloorId===n.graphicMapFloorId)).forEach(n=>{const l=e.getters.getMetaPinOfSpot(n.id);if(!l||!l.isNearbyTarget)return;const d=l.nearbyThreshold||1e3,c=pm.util.getDistance(o,n);if(c<d){const f=e.getters.getMetaPinMaster(n.metaPinMasterId);m.push({spotId:n.id,spot:n,title:n.title,metaPin:f,distance:c,status:f.useStatus?pm.util.getVisibleCrowdStatus(mapper.mapImpl.options,n,"short"):null})}}),m.sort((n,l)=>n.distance-l.distance),m}const eo=C({name:"PoiDetailMetaPinList",components:{MetaPinRealTime:Tt,PartialBlocker:oe,MetaPinPreview:ae},props:{spotId:Number},data(){return{items:null}},computed:{isLoading(){return this.items==null}},methods:{initData(){this.items=to(this.spotId),this.items.length===0&&this.$emit("nodata")},getDistanceText(t){return Math.ceil(t.distance)+"m"}},mounted(){setTimeout(()=>{this.initData()},0)}}),so={class:"pdmpl"},io={class:"pdmpl__sectiontitle"},ao={key:0,class:"pdmpl__items"},oo={class:"pdmpl__title"},no={class:"pdmpl__distance"},lo={key:1,class:"pdmpl__empty"};function ro(t,e,i,o,m,n){const l=h("meta-pin-real-time"),d=h("partial-blocker");return a(),r("div",so,[s("div",io,p(t.$r("metapin.nearby")),1),t.isLoading?u("",!0):(a(),r("div",ao,[t.items.length?(a(!0),r(w,{key:0},P(t.items,c=>(a(),r("div",{key:c.id,class:"pdmpl__item"},[b(l,{"spot-id":c.spotId,"no-shadow":!0},null,8,["spot-id"]),s("div",oo,p(c.title),1),s("div",no,p(t.getDistanceText(c)),1)]))),128)):u("",!0),t.items.length===0?(a(),r("div",lo,p(t.$r("metapin.nearby.empty")),1)):u("",!0)])),t.isLoading?(a(),v(d,{key:1})):u("",!0)])}const Cl=y(eo,[["render",ro],["__scopeId","data-v-64991a10"]]),po=5;function mo(t){return t==null||Number.isNaN(t)?"":t<1e3?`${Math.round(t)}m`:`${(t/1e3).toFixed(1)}km`}function _t(t){return t&&(t.id||t.recordId)}const uo=C({name:"PoiDetailNearbySpots",components:{Skeleton:ne},props:{spotId:Number},emits:["nodata"],setup(t,{emit:e}){const{store:i}
2=Dt(),{setNearbyAnchor:o,withAnchorGuard:m}=le(),{selectTheAllCategory:n,clearSelectedParentCategoryId:l}=re(),{clearMapSearch:d}=pe(),{changeSelectTags:c}=me(),{setFloatingTabBarListPosition:f,changeFloatingTabBarListMode:F}=ue(),{activeTimeSegmentPeriod:N}=de(),{isTsugitsugi:J,hotelSearchCriteria:Y,callApiAsyncWithHandlingSearchToken:k}=ce(),L=tt(!0),V=tt([]),j=tt(0),X=et(()=>i.getters.getSpot(t.spotId)||null),Ot=et(()=>i.getters.mapOptions.defaultThumbUri||""),Mt=et(()=>j.value>0),Lt=()=>{const T=X.value;if(!T)return null;const B=i.getters.stampRallyData(),g=B?B.stampRallyId:void 0,D=i.getters.scheduleQuery,A=i.getters.mapOptions,M={mapId:A.mapId,stampRallyId:g,keyword:"",categoryIds:[],groupIds:[],order:ye.Near,offset:0,limit:po,fields:"list",canRecordLog:!1,listMarkerId:0,latitude:T.lat,longitude:T.lng,excludeSpotId:T.id,scheduleKey:D.scheduleKey,scheduleDateTime:D.datetime,dateTimePeriod:N.value};return"mappreview"in A.query&&(M.mapPreviewToken=A.query.mappreview),"poipreview"in A.query&&(M.poiPreviewToken=A.query.poipreview),M},zt=()=>{const T=Lt();if(!T){L.value=!1,V.value=[],j.value=0,Z();return}L.value=!0;let B;J?B=()=>k(()=>(T.tsugitsugi=JSON.parse(JSON.stringify(Y.value)),T.tsugitsugi.skipOrderByPickup=!0,gt.searchSpots(T))):B=()=>gt.searchSpots(T),B().then(g=>{const D=g&&g.items?g.items:[],A=X.value;V.value=D.map(M=>{const q=A?pm.util.getDistance(A,M):null,O=_t(M);return{...M,id:O,distance:q,distanceText:mo(q)}}),j.value=g&&typeof g.count=="number"?g.count:V.value.length,L.value=!1,V.value.length===0&&Z()}).catch(()=>{V.value=[],j.value=0,L.value=!1,Z()})};let ct=!1;const Z=()=>{ct||(ct=!0,e("nodata"))},Et=T=>{const B=_t(T);if(!B)return;let g=i.getters.getSpot(B);g&&g.id||(g={...T,id:B});const D=window.pm&&window.pm.vue,A=i.state.mapOptions.useSpotDetailMapInteraction||i.getters.useSpotDetailNearbySpots;if(D&&A){const O=D.selectedSpotId;O!==g.id&&(D.selectableSpotIds=[g.id],D.selectedSpot=Object.assign({id:g.id},i.getters.getSpot(g.id)),D.selectedSpotId=g.id,typeof D.switchSpotCallback=="function"&&D.switchSpotCallback(g.id,O))}const M=`spot-${g.id}`;document.querySelectorAll(".popup__container.-spotselected").forEach(O=>{O.id!==M&&O.classList.remove("-spotselected")});const q=i.getters.shouldUseCategoryImageMarker(g)?i.getters.getCategoryImageMarkerUrl(g):void 0;if(i.getters.isPcSize)i.getters.useSymbolLayer||window.mapEvent.trigger("movetofront",{spotId:g.id,selected:!0});else{const O=document.getElementById("spot-"+g.id);O&&O.classList.add("-spotselected")}window.mapEvent.trigger("openspot",{spot:Object.assign({_markerImageUrl:q},g),panTo:!0}),D&&!A&&typeof D.openSpotDetailOverSpotList=="function"&&D.openSpotDetailOverSpotList(g)},Ft=()=>{const T=X.value;if(T){if(m(()=>{d(),c([]),l(),n(),o(T.id)}),window.mapper&&window.mapper.mapImpl&&typeof window.mapper.mapImpl.flyTo=="function")try{window.mapper.mapImpl.flyTo({center:[T.lng,T.lat]})}catch{}window.mapDetail&&typeof window.mapDetail.close=="function"&&window.mapDetail.close({trigger:"nearby-viewall"}),i.getters.isSpSize?f(he.Middle,!0):F({isListMode:!0,skipMapAdjustment:!0})}};return Nt(()=>{zt()}),{isLoading:L,items:V,hasViewAllButton:Mt,defaultThumbUri:Ot,onSpotClick:Et,showAll:Ft}}}),co={class:"pdns"},ho={class:"pdns__sectiontitle"},yo={key:0,class:"pdns__items"},fo={class:"pdns__thumb"},go={class:"pdns__loadingbody"},_o={class:"pdns__loadingline -primary"},ko={class:"pdns__loadingline -secondary"},So={key:1,class:"pdns__items"},Co=["onClick"],Ro={class:"pdns__thumb"},vo=["src","alt"],bo={class:"pdns__title"},$o={class:"pdns__distance"};function wo(t,e,i,o,m,n){const l=h("skeleton");return a(),r("div",co,[s("div",ho,p(t.$r("spotdetail.nearby")),1),t.isLoading?(a(),r("div",yo,[(a(),r(w,null,P(5,d=>s("div",{key:d,class:"pdns__item -loading"},[s("div",fo,[b(l)]),s("div",go,[s("div",_o,[b(l)]),s("div",ko,[b(l)])])])),64))])):(a(),r("div",So,[(a(!0),r(w,null,P(t.items,d=>(a(),r("div",{key:d.id,class:"pdns__item waves-effect",onClick:c=>t.onSpotClick(d)},[s("div",Ro,[d.thumbUri||t.defaultThumbUri?(a(),r("img",{key:0,src:d.thumbUri||t.defaultThumbUri,alt:d.title},null,8,vo)):u("",!0)]),s("div",bo,p(d.title),1),s("div",$o,p(d.distanceText),
21)],8,Co))),128))])),!t.isLoading&&t.hasViewAllButton?(a(),r("button",{key:2,class:"pdns__viewall waves-effect",type:"button",onClick:e[0]||(e[0]=(...d)=>t.showAll&&t.showAll(...d))},p(t.$r("spotdetail.nearby.viewall")),1)):u("",!0)])}const Rl=y(uo,[["render",wo],["__scopeId","data-v-ca3bb6ac"]]),To=C({name:"PoiDetailRecommendedCourses",props:{spotId:{type:Number,required:!0}},setup(){const{enterCourseMode:t,exitCourseMode:e,isCourseModeActive:i,getCoursesForSpot:o,activeCourseShape:m}=fe(),{enterCourseDisplay:n}=ge();return{enterCourseMode:t,exitCourseMode:e,isCourseModeActive:i,getCoursesForSpot:o,activeCourseShape:m,enterCourseDisplay:n}},computed:{courses(){return this.getCoursesForSpot(this.spotId)}},watch:{courses:{immediate:!0,handler(t){(!t||t.length===0)&&this.$emit("nodata")}}},methods:{cellStyle(t){return t.color?{"--course-color":t.color}:{}},isSelected(t){const e=this.activeCourseShape;return e&&e.categoryShapeId===t.categoryShapeId},onSelectCourse(t){t.isPerLegRoute?(this.isCourseModeActive&&this.exitCourseMode(),this.enterCourseDisplay(t.categoryShapeId)):this.enterCourseMode(t,this.spotId),this.$emit("selectcourse")}}}),Do={key:0,class:"pdrc"},Po={class:"pdrc__sectiontitle"},Io={class:"pdrc__items"},Bo=["onClick"],Ao={class:"pdrc__info"},Oo={class:"pdrc__name"},Mo={key:0,class:"pdrc__desc"};function Lo(t,e,i,o,m,n){return t.courses.length>0?(a(),r("div",Do,[s("div",Po,p(t.$r("course.recommended")),1),s("div",Io,[(a(!0),r(w,null,P(t.courses,l=>(a(),r("div",{key:l.categoryShapeId,class:S(["pdrc__item",{"-selected":t.isSelected(l)}]),style:I(t.cellStyle(l)),onClick:d=>t.onSelectCourse(l)},[e[0]||(e[0]=s("div",{class:"pdrc__vline"},null,-1)),s("div",Ao,[s("div",Oo,p(l.name),1),l.description?(a(),r("div",Mo,p(l.description),1)):u("",!0)]),e[1]||(e[1]=s("div",{class:"pdrc__arrow"},[s("svg",{viewBox:"0 0 8 12",width:"8",height:"12"},[s("polyline",{points:"1,1 7,6 1,11",fill:"none",stroke:"currentColor","stroke-width":"1.5"})])],-1))],14,Bo))),128))])])):u("",!0)}const vl=y(To,[["render",Lo],["__scopeId","data-v-3ec2f08e"]]),zo={name:"PoiDetailCommentSummary",props:{rating:{type:Number,required:!1,default:null},count:{type:Number,required:!1,default:null}},computed:{computedRating(){return this.rating==null?"-":this.rating.toFixed(1)},computedCount(){return this.count||0}}},Eo={key:0,class:"detail__comments__summary"},Fo={class:"detail__comments__summary-text"},Uo={class:"detail__comments__summary-text-average"},Vo={class:"detail__comments__summary-text-count"};function No(t,e,i,o,m,n){return n.computedCount?(a(),r("div",Eo,[e[0]||(e[0]=s("i",{class:"detail__comments__summary-star-icon"},null,-1)),s("div",Fo,[s("span",Uo,p(n.computedRating),1),s("span",Vo,"("+p(n.computedCount)+")",1)])])):u("",!0)}const dt=y(zo,[["render",No],["__scopeId","data-v-df41f048"]]),Go=C({name:"PoiDetailCommentButton",props:{type:String,isDisabled:{type:Boolean,default:!1}},setup(){},data(){return{buttonLabel:"",buttonClass:["waves-effect"]}},computed:{isVisible(){return!(this.$store.getters.isSignageMode&&this.type==="-post")}},methods:{onButtonClick(){this.$emit("clickaction")}},created(){this.buttonClass.push(this.type),this.type==="-post"?this.buttonLabel=this.$r("comment.post"):this.type==="-showall"&&(this.buttonLabel=this.$r("comment.show.all"),this.buttonClass.push("waves-light")),this.isDisabled&&this.buttonClass.push("-disabled")}});function Wo(t,e,i,o,m,n){return t.buttonLabel&&t.isVisible?(a(),r("div",{key:0,class:S(["poidetailcommentbutton",t.buttonClass]),onClick:e[0]||(e[0]=(...l)=>t.onButtonClick&&t.onButtonClick(...l))},p(t.buttonLabel),3)):u("",!0)}const At=y(Go,[["render",Wo],["__scopeId","data-v-9c7eb8e8"]]),Ho={name:"PoiDetailCommentAll",components:{ItemSelector:ke,PmVirtualList:_e,PoiDetailCommentButton:At,PoiDetailCommentSummary:dt,SpotThumbnailImage:Bt,PoiDetailCommentItem:K},props:{spotId:{type:Number,required:!0},focusCommentId:{type:Number,required:!1},showRepliesFunc:{type:Function,required:!0}},setup(){const{openPostCommentAsync:t}=ut(),{closePageDialog:e}=Pt();return{openPostCommentAsync:t,closePageDialog:e}},data(){return{isFetching:!1,sortKey:void 0,isReloading:!1,commentDataCreatedAt:void 0}},computed:{PoiDetailCommentItem(){return K},spot(){return this.$store.getters.getSpot(this.spotId)||{}},commentData(){return this.spot.comment||{}},hasNext(){return this.commentData.hasNext},currentComments(){return this.commentData.items||[]},summaryRating(){return this.commentData.rating},summaryCount(){return this.commentData.count},commentItemExtraProps(){return{spotId:this.spot.id,isExpanded:!0,showRepliesFunc:this.showRepliesFunc}},sortKeyOptions(){return[{value:"default",text:this.$r("comment.sort.default")},{value:"-rating",text:this.$r("comment.sort.rating.desc")},{value:"rating",text:this.$r("comment.sort.rating.asc")},{value:"-date",text:this.$r("comment.sort.date.desc")},{value:"date",text:this.$r("comment.sort.date.asc")}]}}
2,methods:{postComment(){this.openPostCommentAsync(this.spotId,null,null,this.$refs.keyboardControlInput).then(t=>{t&&t.commentId&&this.showRepliesFunc(t.commentId)})},onPageDialogOpened(){if(!this.focusCommentId)return;const t=()=>{const e=this.currentComments.findIndex(i=>i.commentId===this.focusCommentId);if(e>-1){this.$nextTick(()=>{this.$refs.virtualList&&this.$refs.virtualList.scrollToIndex(e,!0)});return}this.hasNext&&this.loadNextComments().then(t)};t()},loadNextComments(){return this.isFetching||!this.hasNext?Promise.resolve():this.fetchComments(!1)},fetchComments(t){return this.isFetching=!0,this.$store.dispatch(Se,{spotId:this.spotId,limit:50,offset:t?0:this.currentComments.length,sortKey:this.sortKey}).finally(()=>{this.isFetching=!1})},atTop(t){this.$emit("setswipeclose",t)}},watch:{sortKey(){this.commentData.sortKey!==this.sortKey&&(this.isReloading=!0,this.fetchComments(!0).finally(()=>{this.isReloading=!1}))},commentData(){if(this.commentDataCreatedAt==null){this.commentDataCreatedAt=this.commentData.createdAt;return}this.commentDataCreatedAt!==this.commentData.createdAt&&(this.commentDataCreatedAt=this.commentData.createdAt,this.$refs.virtualList.scrollToOffset(0,!0))}},created(){this.sortKey=this.commentData.sortKey||"default",this.commentDataCreatedAt=this.commentData.createdAt,pm.vue.setQuery({comment:1},{push:!0}),this._unwatchComment=pm.vue.$watch("urlQuery",t=>{t.comment||this.closePageDialog()})},beforeUnmount(){this._unwatchComment&&this._unwatchComment(),pm.vue.setQuery({comment:void 0})}},jo={class:"comment-all"},qo={class:"comment-all__header"},Qo={class:"comment-all__title"},Ko={class:"comment-all__content"},Jo={class:"comment-all__spot-header"},Yo={class:"comment-all__spot-thumbnail"},Xo={class:"comment-all__spot-info"},Zo={class:"comment-all__spot-name"},xo={class:"comment-all__row"},tn={class:"comment-all__rowcell"},en={class:"comment-all__rowcell"},sn={class:"comment-all__listheader"},an={class:"comment-all__sort"},on={class:"comment-all__sorttitle"},nn={class:"comment-all__input"},ln={type:"text",ref:"keyboardControlInput"};function rn(t,e,i,o,m,n){const l=h("spot-thumbnail-image"),d=h("poi-detail-comment-summary"),c=h("poi-detail-comment-button"),f=h("item-selector"),F=h("pm-virtual-list");return a(),r("div",jo,[b(F,{ref:"virtualList",items:n.currentComments,"item-key":"commentId","item-component":n.PoiDetailCommentItem,"extra-props":n.commentItemExtraProps,"is-loading":m.isReloading,"has-next":n.hasNext,"use-api":!0,"use-header":!0,"item-class":"comment-item-cell","total-count":9999,"keep-factor":9999,onTobottom:n.loadNextComments,onAttop:n.atTop},{listHeader:rt(()=>[s("div",qo,[s("h1",Qo,p(t.$r("comment.title")),1)]),s("div",Ko,[s("div",Jo,[s("div",Yo,[b(l,{spot:n.spot},null,8,["spot"])]),s("div",Xo,[s("div",Zo,p(n.spot.title),1),s("div",xo,[s("div",tn,[b(d,{rating:n.summaryRating,count:n.summaryCount},null,8,["rating","count"])]),s("div",en,[b(c,{type:"-post",onClickaction:n.postComment},null,8,["onClickaction"])])])])])]),e[1]||(e[1]=s("hr",null,null,-1)),s("div",sn,[s("div",an,[s("div",on,p(t.$r("comment.sort.title"))+": ",1),b(f,{class:"comment-all__sortselector",items:n.sortKeyOptions,value:m.sortKey,"onUpdate:value":e[0]||(e[0]=N=>m.sortKey=N),"align-left":!1},null,8,["items","value"])])])]),_:1},8,["items","item-component","extra-props","is-loading","has-next","onTobottom","onAttop"]),s("div",nn,[s("input",ln,null,512)])])}const at=y(Ho,[["render",rn],["__scopeId","data-v-35556c13"]]),pn={name:"PoiDetailCommentReplies",components:{PoiDetailCommentItem:K,PoiDetailCommentSummary:dt,SpotThumbnailImage:Bt},props:{spotId:{type:Number,required:!0},parentCommentId:{type:Number,required:!0}},setup(){const{openPostCommentAsync:t}=ut();return{openPostCommentAsync:t}},data(){return{isFetching:!1}},computed:{spot(){return this.$store.getters.getSpot(this.spotId)||{}},commentData(){return this.spot.comment||{}},parentComment(){return this.commentData.items.find(t=>t.commentId===this.parentCommentId)},summaryRating(){return this.commentData.rating},summaryCount(){return this.commentData.count},replies(){return this.parentComment.replies}},methods:{onShowReplies(){this.replies||this.fetchReplies()},fetchReplies(){return this.isFetching=!0,this.$store.dispatch(Ce,{spotId:this.spotId,parentCommentId:this.parentComment.commentId}).finally(()=>{this.isFetching=!1})}},watch:{parentComment(){this.parentComment||this.$emit("close")}},created(){this.replies||this.fetchReplies()}},mn={class:"comment-replies"},un={class:"comment-replies__header"},dn={class:"comment-replies__title"},cn={class:"comment-replies__content"},hn={class:"comment-replies__spot-header"},yn={class:"comment-replies__spot-thumbnail"},fn={class:"comment-replies__spot-info"},gn={class:"comment-replies__spot-name"},_n={class:"comment-replies__row"},kn={class:"comment-replies__rowcell"},Sn={key:0,class:"comment-replies__replies"},Cn={class:"comment-replies__input"},Rn={type:"text",ref:"keyboardControlInput"};function vn(t,e,i,o,m,n){const l=h("spot-thumbnail-image"),d=h("poi-detail-comment-summary"),c=h("poi-detail-comment-item");return a(),r("div",mn,[s("div",un,[s("h1",dn,p(t.$r("comment.title")),1)]),s("div",cn,[s("div",hn,[s("div",yn,[b(l,{spot:n.spot}
2,null,8,["spot"])]),s("div",fn,[s("div",gn,p(n.spot.title),1),s("div",_n,[s("div",kn,[b(d,{rating:n.summaryRating,count:n.summaryCount},null,8,["rating","count"])])])])])]),b(c,{class:"comment-replies__parent","is-expanded":!0,source:n.parentComment,"spot-id":i.spotId,"show-replies-func":n.onShowReplies},{replies:rt(()=>[n.replies&&n.replies.length>0?(a(),r("div",Sn,[(a(!0),r(w,null,P(n.replies,f=>(a(),v(c,{key:f.commentId,source:f,spotId:i.spotId,"is-expanded":!0,"parent-comment":n.parentComment,"show-replies-func":()=>{}},null,8,["source","spotId","parent-comment"]))),128))])):u("",!0)]),_:1},8,["source","spot-id","show-replies-func"]),s("div",Cn,[s("input",Rn,null,512)])])}const kt=y(pn,[["render",vn],["__scopeId","data-v-63642bc7"]]),bn={name:"PoiDetailComment",components:{PoiDetailCommentButton:At,PoiDetailCommentItem:K,PoiDetailCommentSummary:dt},setup(){const{openPostCommentAsync:t,cancelPostComment:e}=ut(),{openPageDialog:i,closePageDialog:o}=Pt();return Ct(()=>{e(),o({targetComponent:at}),o({targetComponent:kt})}),{openPostCommentAsync:t,openPageDialog:i}},props:{spotId:Number},data:function(){return{}},computed:{spot(){return this.$store.getters.getSpot(this.spotId)||{}},commentData(){return this.spot.comment},useSpotComment(){return this.commentData&&this.commentData.useComment&&this.mapOptions.query.reviews!=="0"},summaryRating(){return this.commentData.rating},summaryCount(){return this.commentData.count},commentList(){return(this.commentData.items||[]).slice(0,3)}},methods:{showAllComments(t){this.summaryCount===0&&!t||this.openPageDialog(at,{spotId:this.spotId,showRepliesFunc:this.showReplies})},showReplies(t){this.openPageDialog(kt,{spotId:this.spotId,parentCommentId:t})},onClickPostButton(){this.openPostCommentAsync(this.spotId,null,null,this.$refs.keyboardControlInput).then(t=>{t&&t.commentId&&this.showReplies(t.commentId)})},onClickComment(t){this.openPageDialog(at,{spotId:this.spotId,focusCommentId:t,showRepliesFunc:this.showReplies})}},mounted(){}},$n={key:0,class:"detail__comment"},wn={class:"detail__comment__header"},Tn={class:"detail__comment__title"},Dn={key:0,class:"detail__comment__list"},Pn={key:1,class:"detail__comment__nodata"},In={class:"detail__comment__actions"},Bn={class:"detail__comment__input"},An={type:"text",ref:"keyboardControlInput"};function On(t,e,i,o,m,n){const l=h("poi-detail-comment-summary"),d=h("poi-detail-comment-item"),c=h("poi-detail-comment-button");return n.useSpotComment?(a(),r("div",$n,[e[1]||(e[1]=s("hr",null,null,-1)),s("div",wn,[s("h2",Tn,p(t.$r("comment.title")),1),b(l,{rating:n.summaryRating,count:n.summaryCount},null,8,["rating","count"])]),n.commentList.length>0?(a(),r("div",Dn,[(a(!0),r(w,null,P(n.commentList,f=>(a(),v(d,{key:f.commentId,source:f,spotId:i.spotId,"is-expanded":!1,"show-replies-func":n.showReplies,onClick:n.onClickComment},null,8,["source","spotId","show-replies-func","onClick"]))),128))])):(a(),r("div",Pn,p(t.$r("comment.none")),1)),s("div",In,[b(c,{type:"-showall","is-disabled":n.summaryCount===0,onClickaction:e[0]||(e[0]=f=>n.showAllComments(!1))},null,8,["is-disabled"]),b(c,{type:"-post",onClickaction:n.onClickPostButton},null,8,["onClickaction"])]),s("div",Bn,[s("input",An,null,512)])])):u("",!0)}const bl=y(bn,[["render",On],["__scopeId","data-v-0f6d944a"]]),Mn={name:"PoiDetailCommentStarRating",props:{spotId:Number},computed:{spot(){return this.$store.getters.getSpot(this.spotId)||{}},commentData(){return this.spot.comment},useSpotComment(){return this.commentData&&this.commentData.useComment&&this.mapOptions.query.reviews!=="0"},summaryRating(){return this.commentData.rating},commentCount(){return this.commentData.count||0},summaryRatingText(){return this.summaryRating==null?R.get("comment.rating.none"):this.summaryRating.toFixed(1)},ratingData(){const t=[];for(let i=0;i<5;i++){let o={value:i+1,class:[]};o.value<=this.summaryRating&&o.class.push("-selected"),t.push(o)}return t}}},Ln={key:0,class:"detail__star-rating"},zn={class:"detail__star-rating-items"},En={class:"detail__star-rating-text"},Fn={key:0,class:"detail__star-rating-text-count"};
2function Un(t,e,i,o,m,n){return n.useSpotComment?(a(),r("div",Ln,[s("div",zn,[(a(!0),r(w,null,P(n.ratingData,l=>(a(),r("div",{class:"detail__star-rating-item",key:l.value},[s("div",{class:S(["detail__star-rating-image",l.class])},null,2)]))),128))]),s("div",En,[s("div",{class:S(["detail__star-rating-text-average",{"-no-rating":!n.summaryRating}])},p(n.summaryRatingText),3),n.commentCount>=3?(a(),r("div",Fn,"("+p(n.commentCount)+")",1)):u("",!0)])])):u("",!0)}const $l=y(Mn,[["render",Un],["__scopeId","data-v-ddc7b740"]]),Vn=C({components:{ActionButton:Re},props:{spot:Object},setup(){const{openSurveyDialog:t,closeSurveyDialog:e}=Te();return{openSurveyDialog:t,closeSurveyDialog:e}},data(){return{isLoading:!0,hasSurvey:!1,spotSurvey:void 0,answerData:void 0,buttonLabel:null,noticeText:null,taskRunner:new TaskRunner}},methods:{openSurvey(){const t=this.spotSurvey;this.openSurveyDialog({isVisible:!0,mapId:this.mapOptions.mapId,mapCustomizeType:this.customizeType,viewType:Ee.SpotDetail,surveyRecordType:t.recordTypeText,surveyRecordId:t.recordId,surveyId:t.surveyId,survey:t,answerRecordType:$e.Spot,answerRecordId:this.spot.id,prevAnswerData:this.answerData,canCancel:!0,buttons:[],onSave:(e,i)=>{const o=this.$store.dispatch(we,e),m=this.taskRunner.runAsyncWithMinDelay(o,1200).then(()=>{this.answerData={surveyAnswer:e},typeof i=="function"?i():this.closeSurveyDialog()}).catch(n=>{pt(this.$r("common.error.surveysave"))});Rt(m)}})}},created(){const t={mapId:this.mapOptions.mapId,recordType:"SpotDetail",recordId:this.mapOptions.mapId},e=()=>this.$store.state.surveys.find(o=>o.recordTypeText===t.recordType);let i;this.spotSurvey=e(),this.spotSurvey?i=Promise.resolve(this.spotSurvey):i=this.$store.dispatch(ve,t).then(()=>(this.spotSurvey=e(),this.spotSurvey)),i.then(o=>{if(!o)return Promise.resolve();const m=o.surveyId,n=this.$store.state.surveyAnswers[m];return n?Promise.resolve(n):this.$store.dispatch(be,t)}).then(o=>{o&&(this.answerData={surveyAnswer:o}),this.hasSurvey=!!this.spotSurvey}).catch(o=>{this.hasSurvey=!1}),this.mapOptions.locale==="ja"?(this.buttonLabel="åºå±è
ã«ååãï¼åè«ç³è¾¼",this.noticeText="ãååãã®éã«ãå
¥åããã ããå人æ
å ±ã¯ãå½è©²åºå±è
ã«æä¾ããã¾ããäºããäºæ¿ãã ããã"):(this.buttonLabel="Inquire / Request a meeting",this.noticeText="Please be aware that the personal information you provide in your inquiry will be shared with the respective exhibitor.")}}),Nn={key:0,class:"pdsurvey"},Gn={class:"pdsurvey__notice"};function Wn(t,e,i,o,m,n){return t.hasSurvey?(a(),r("div",Nn,[s("div",{class:"detail__customwidebutton",onClick:e[0]||(e[0]=(...l)=>t.openSurvey&&t.openSurvey(...l))},p(t.buttonLabel),1),s("div",Gn,p(t.noticeText),1)])):u("",!0)}const wl=y(Vn,[["render",Wn],["__scopeId","data-v-f2ee590e"]]),Hn=C({name:"PoiCustomerFeedbackButton",props:{spot:Object},setup(){const{openCustomerFeedback:t,closeCustomerFeedback:e}=De();return Ct(()=>{e()}),{openCustomerFeedback:t,closeCustomerFeedback:e}},methods:{onFeedbackButtonClick(t){return this.openCustomerFeedback({target:"spot",source:this.spot}),this.$refs.inputTest.focus(),t.stopPropagation(),t.preventDefault(),!1}}}),jn={class:"poicustomerfeedbackbutton"},qn={class:"poicustomerfeedbackbutton__input"},Qn={type:"text",ref:"inputTest"};function Kn(t,e,i,o,m,n){return a(),r("div",jn,[s("a",{class:"poicustomerfeedbackbutton__button waves-effect -url -ellipsis",href:"#",onClick:e[0]||(e[0]=(...l)=>t.onFeedbackButtonClick&&t.onFeedbackButtonClick(...l))},p(t.$r("customerfeedback.title")),1),s("div",qn,[s("input",Qn,null,512)])])}const Tl=y(Hn,[["render",Kn],["__scopeId","data-v-5dd5ad7e"]]);export{yl as PoiCrowdStatus,bl as PoiDetailComment,$l as PoiDetailCommentStarRating,Tl as PoiDetailCustomerFeedbackButton,_l as PoiDetailEnvironmentalSensorData,Sl as PoiDetailMapTransfer,Cl as PoiDetailMetaPinList,Rl as PoiDetailNearbySpots,vl as PoiDetailRecommendedCourses,fl as PoiDetailStatus,wl as PoiDetailSurvey,kl as PoiDetailTitleRogaining,gl as PoiDetailToiletStatus,hl as PoiStampRally};
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.