PageSourceSearch

https://www.dekitabi.com/_next/static/chunks/2783.687852e2f2b45dae.js

js dekitabi.com collected 2026-09-24 10:19:21 UTC 21,453 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2783],{44912:function(n,t){t.Z=n=>{let t=n.startTime,e=3600*t.split(":")[0],a=60*t.split(":")[1],i=Math.round(new Date(n.date).getTime()/1e3)+e+a-7200;return{time:i,isComingSoon:Math.ceil(Date.now()/1e3)+172800>i+7200}}},5006:function(n,t,e){e.d(t,{B:function(){return s},W:function(){return g}});let a="English",i={en:"English",ja:"日本語","zh-cn":"简体中文","zh-tw":"繁體中文(台湾)","zh-hk":"繁體中文(香港)",ko:"한국어",fil:"Filipino",id:"Bahasa-Indonesia",ms:"Bahasa-Melayu",th:"ไทย",vi:"Tiếng-Việt",fr:"Fran\xe7ais",es:"Espa\xf1ol",it:"Italiano",pt:"Portugu\xeas",ru:"русский",hi:"हिन्दी",de:"Deutsch",nl:"Dutch",da:"dansk",sv:"Svenska",ca:"Catal\xe0",lo:"ລາວ",my:"မြန်မာဘာသာ"},o={arabic:a,العربية:a,indonesian:"Bahasa-Indonesia",vietnamese:"Tiếng-Việt"},l=n=>"string"==typeof n?n.trim().toLowerCase().replace(/\s+/g," "):"",r=["Bahasa-Indonesia","Bahasa-Melayu","Catal\xe0","dansk","Deutsch","Dutch","English","Espa\xf1ol","Filipino","Fran\xe7ais","Italiano","Portugu\xeas","Svenska","Tiếng-Việt","русский","हिन्दी","ไทย","ລາວ","မြန်မာဘာသာ","日本語","简体中文","繁體中文(台湾)","繁體中文(香港)","한국어"].reduce((n,t)=>(n[l(t)]=t,n[l(t.replace(/-/g," "))]=t,n),{}),c=(n,t)=>{let e=l(n);if(e){if(o[e])return o[e];if(r[e])return r[e]}let c=l(t).replace(/_/g,"-");return c&&i[c]?i[c]:a},d=(n,t)=>"".concat(n,"/language-").concat(t,".").concat("svg"),s=(n,t)=>d("/img/languages",c(n,t)),g=(n,t)=>d("https://www.dekitabi.com/img/languages",c(n,t))},6136:function(n,t,e){var a=e(68856),i=e(27484),o=e.n(i);t.Z=()=>{let{t:n}=(0,a.$G)();return{formatGoogleTime:n=>{if(!n||"0000"===n)return!1;let t=n.split("");return t.splice(2,0,":"),t.join("")},formatComparingDate:n=>{let t=(n=new Date(n)).getFullYear(),e=n.getMonth()+1,a=n.getDate();return"".concat(t,"-").concat(e,"-").concat(a)},formatDate:n=>{var t;let e=(n=new Date(n)).getFullYear(),a=null===(t=n.toLocaleDateString("default",{month:"long"}))||void 0===t?void 0:t.substring(0,3),i=n.getDate();return"".concat(a," ").concat(i,", ").concat(e)},toMinutes:n=>60*parseInt(null==n?void 0:n.substring(0,2))+parseInt(null==n?void 0:n.substring(3,5)),toTime:n=>{if(isNaN(n))return"";let t=Math.trunc(n/60),e="".concat((t%24).toString().padStart(2,"0"),":").concat(Math.abs(n%60).toString().padStart(2,"0")),a="";return t>24&&(a=" (+".concat(Math.floor(t/24),")")),e+a},toTimeLength:(t,e)=>isNaN(t)?"":"".concat(Math.trunc(t/60).toString().padStart(2,"0")).concat(n("h")).concat(Math.abs(t%60).toString().padStart(2,"0")).concat(n("m")),getTimeFromDate:function(n){let t=n=>("0"+n).slice(-2),e=new Date(1e3*n),a=e.getHours(),i=e.getMinutes();return t(a)+":"+t(i)},createTourEndDate:function(n,t,e){let a=new Date(n);return new Date("".concat(a.getMonth()+1,"/").concat(a.getDate(),"/").concat(a.getFullYear())).getTime()/1e3+60*e+3600*t.split(":")[0]+60*t.split(":")[1]},removeAvailableDate:(n,t)=>{if(n){let e=[...n],a=null==n?void 0:n.indexOf(o()(t,"MM/DD/YYYY").format("MM/DD/YYYY"));return null==e||e.splice(a,1),e}},isGuideAvailable:(n,t)=>-1!==(null==n?void 0:n.indexOf(o()(t).format("MM/DD/YYYY")))}}},92783:function(n,t,e){var a=e(26462),i=e(67294),o=e(77004),l=e(68856),r=e(87066),c=e(6136),d=e(66106),s=e(44912),g=e(41248),u=e(24473),p=e(14318),m=e(5006);t.Z=()=>{let n,t,e,h,v,f;let{i18n:b,t:w}=(0,l.$G)(),y=(0,g.v9)(n=>n.itinerary.itineraries,g.wU),x=(0,g.I0)(),{toTimeLength:k}=(0,c.Z)(),{createChat:D,sendMessage:T}=(0,d.Z)(),{getItem:M}=(0,p.Z)(),[I,C]=(0,i.useState)(!1),[z,N]=(0,i.useState)(0);try{n=(0,a.getFirestore)(),t=(0,o.getFunctions)(void 0,"asia-northeast1"),(0,o.httpsCallable)(t,"pushNotification"),e=(0,o.httpsCallable)(t,"sendEmail"),h=(0,o.httpsCallable)(t,"sendTask"),v=(0,o.httpsCallable)(t,"confirmTour"),f=(0,o.httpsCallable)(t,"acceptTour")}catch(n){}return{progress:z,loading:I,createTour:async(t,i,o,l,r,c,d,g,p,v)=>{var f,I,z,N,S,_,Y,P,F,B,R,G,A,Z,q,E,U,j,L;C(!0);let O=(0,a.doc)((0,a.getFirestore)(),"users",null==r?void 0:r.guide),W=(await (0,a.getDoc)(O)).data();await b.loadLanguages((null==W?void 0:null===(f=W.language)||void 0===f?void 0:f.code)==="zh-TW"?"zh_tw":(null==W?void 0:null===(I=W.language)||void 0===I?void 0:I.code)==="zh-CN"?"zh_cn":(null==W?void 0:null===(z=W.language)||void 0===z?void 0:z.code)==="fil"?"tl":null==W?void 0:null===(N=W.language)||void 0===N?void 0:N.co
1de);let J=b.getFixedT((null==W?void 0:null===(S=W.language)||void 0===S?void 0:S.code)==="zh-TW"?"zh_tw":(null==W?void 0:null===(_=W.language)||void 0===_?void 0:_.code)==="zh-CN"?"zh_cn":(null==W?void 0:null===(Y=W.language)||void 0===Y?void 0:Y.code)==="fil"?"tl":null==W?void 0:null===(P=W.language)||void 0===P?void 0:P.code),V=(0,a.doc)((0,a.getFirestore)(),"itineraries",null==r?void 0:r.id),$=(await (0,a.getDoc)(V)).data(),H={...$,...r,url:"",attractions:null==$?void 0:$.attractions,id:l,status:"pending",...!(null==$?void 0:$.meetingPlace)&&{meetingPlace:{mapUrl:null==r?void 0:null===(F=r.attractions[0])||void 0===F?void 0:F.mapUrl,name:null==r?void 0:null===(B=r.attractions[0])||void 0===B?void 0:B.name,translatedName:null==r?void 0:null===(R=r.attractions[0])||void 0===R?void 0:R.translatedName}},...(null===(G=$.meetingPlace)||void 0===G?void 0:G.name)&&{meetingPlace:null==$?void 0:$.meetingPlace},createdBy:(null==c?void 0:c.uid)?null==c?void 0:c.uid:"Guest",travelerContact:d,...!r.tourBaseItinerary&&r.published&&{tourBaseItinerary:r.id},orderId:o,paymentMethod:g,customerId:p,createdAt:new Date().getTime(),language:t,currency:i,published:!1,reviewed:!1,...M("affiliateId")&&!(null==r?void 0:r.coupon)&&{affiliateId:M("affiliateId")}},K=[...y];for(let n=0;n<y.length;n++)if((null===(L=y[n])||void 0===L?void 0:L.id)===(null==H?void 0:H.id)){K[n]=H,x((0,u.Yl)(K));break}return e({to:null==W?void 0:W.email,sender:"[email protected]",subject:"dekitabi | ".concat(J("newTourRequest")),body:'<link rel="preconnect" href="https://fonts.googleapis.com" />\n<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="true" />\n<link\n  href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap"\n  rel="stylesheet"\n/>\n<div\n  style="\n    background: #f7f7f7;\n    font-family: \'Poppins\', sans-serif;\n    font-size: 15px;\n  "\n>\n  <div style="text-align: center; padding: 40px 0 20px 0">\n    <img\n      src="https://www.dekitabi.com/img/logo.png"\n      height="45"\n      width="141"\n      alt="dekitabi"\n    />\n  </div>\n  <section\n    style="\n      background: white;\n      max-width: 600px;\n      margin: 20px auto;
1\n      border-top: 4px solid #03c03c;\n      border-radius: 5px;\n      padding: 20px;\n      text-align: center;\n    "\n  >\n    <h1 style="color: #03c03c; margin: 0">'.concat(J("newTourRequest"),"</h1>\n    <h2>\n      ").concat(J("hello")," ").concat(W.firstname?"".concat(null==W?void 0:W.firstname,"\n      ").concat(null==W?void 0:W.lastname):J("guide"),',\n    </h2>\n    <p style="margin: 0 0 20px 0; text-align: left">\n      <b>').concat(J("thanksUsingDekitabi"),"</b> ").concat(J("newTourRequest"),". ").concat(J((0,s.Z)(H).isComingSoon?"newTourRequestGuideMsg1Soon":"newTourRequestGuideMsg1"),'\n    </p>\n    <p style="text-align: left">\n      ').concat(J("newTourRequestGuideMsg2")," <br />").concat(J("newTourRequestGuideMsg3"),"\n      <br /><br />").concat(J("orderIdMsg")," <b>").concat(o,"</b>.\n      <br /><br />").concat(J("goToDekitabiAccount"),'\n    </p>\n    <a\n      href="https://www.dekitabi.com/account/tours"\n      target="_blank"\n      rel="noreferrer"\n      style="\n        display: block;\n        margin: 10px 0;\n        padding: 15px;\n        font-size: 1.1em;\n        border-radius: 5px;\n        color: white;\n        background: #2186eb;\n        text-align: center;\n        text-decoration: none;\n      "\n      >').concat(J("myAccount"),'</a\n    >\n  </section>\n  <section\n  style="\n    background: white;\n    max-width: 600px;\n    margin: 20px auto;\n    padding: 20px;\n    border-radius: 5px;\n  "\n>\n  <h3 style="margin: 0 0 15px 0; padding: 0 0 15px 0">').concat(J("tourInformation"),'</h3>\n  <a\n    href="https://www.dekitabi.com/itinerary/').concat(H.id,'"\n    target="_blank"\n    rel="noreferrer"\n    style="\n      padding: 15px;\n      font-size: 1.1em;\n      border-radius: 5px;\n      color: white;\n      background: #2186eb;\n      text-decoration: none;\n    "\n    >').concat(J("viewItinerary"),'</a\n  >\n  <ul style="padding: 0; margin: 15px 0 0 0; list-style: none">\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("travelerContact"),':</p>\n      <p style="margin: 0">\n        <b\n          >').concat("Guest"===c?d:"dekitabi ".concat(J("chat"),":").concat((null==c?void 0:c.firstname)?"".concat(null==c?void 0:c.firstname," ").concat(null==c?void 0:c.lastname):null==c?void 0:c.username),'</b\n        >\n      </p>\n    </li>\n    <li\n      style="\n        border-bottom: 1px solid lightgray;\n        padding: 12px 0;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("transportationIncluded"),':</p>\n      <p style="margin: 0; font-weight: bold">\n        <span\n          style="\n            border-radius: 5px;\n            padding: 3px 5px;\n            background: #f3f3f3;\n            font-size: 0.9em;\n          "\n        >\n          ').concat((null==H?void 0:H.transportIncluded)?'<img\n            src="https://www.dekitabi.com/img/icon-car.png"\n            height="15px"\n            width="20px"\n            style="vertical-align: middle; margin-top: -3px"\n          />\n          '.concat(J("yes")," "):'<img\n            src="https://www.dekitabi.com/img/icon-close.png"\n            height="15px"\n            width="15px"\n            style="vertical-align: middle; margin-top: -3px"\n          />\n          '.concat(J("no")," "),'\n        </span>\n      </p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("primaryLanguage"),':</p>\n      <p style="margin: 0; font-weight: bold">\n        <span\n          style="\n            border-radius: 5px;\n            padding: 3px 5px;\n            background: #f3f3f3;\n            font-size: 0.9em;\n          "\n          ><img\n            src="').concat((0,m.W)(null==H?void 0:H.primaryLanguage),'"\n            height="15px"\n            width="20px"\n            style="vertical-align: middle; margin-top: -3px"\n          />\n          ').concat(null==H?void 0:H.primaryLanguage,'</span\n        >\n      </p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("date"),':</p>\n      <p style="margin: 0; font-weight: bold">\n        ').concat((new Date(H.date).getMonth()>8?new Date(H.date).getMonth()+1:"0"+(new Date(H.date).getMonth()+1))+"/"+(new Date(H.date).getDate()>9?new Date(H.date).getDate():"0"+new Date(H.date).getDate())+"/"+new Date(H.date).getFullYear(),'\n      </p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("startTime"),':</p>\n      <p style="margin: 0; font-weight: bold">').concat(H.startTime,'</p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("duration"),':</p>\n      <p style="margin: 0; font-weight: bold">\n        ').concat(k(H.duration,H.language.code),'\n      </p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("persons"),':</p>\n      <p style="margin: 0; font-weight: bold">').concat(H.person,'</p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("meetingPlace"),':</p>\n      <p style="margin: 0; font-weight: bold">\n        ').concat(H.meetingPlace?H.meetingPlace.translatedName?H.meetingPlace.translatedName[null==W?void 0:null===(A=W.language)||void 0===A?void 0:A.code]:H.meetingPlace.name:H.attractions[0].translatedName?H.attractions[0].translatedName[null==W?void 0:null===(Z=W.language)||void 0===Z?void 0:Z.code]:H.attractions[0].name,'\n        <a\n          href="').concat(H.meetingPlace?"".concat(null==H?void 0:null===(q=H.meetingPlace)||void 0===q?void 0:q.mapUrl,"&hl=").concat(null==W?void 0:null===(E=W.language)||void 0===E?void 0:E.
1code):"".concat(null==r?void 0:null===(U=r.attractions[0])||void 0===U?void 0:U.mapUrl,"&hl=").concat(null==W?void 0:null===(j=W.language)||void 0===j?void 0:j.code),'"\n          target="_blank"\n          rel="noreferrer"\n          style="color: #2186eb"\n          >').concat(J("viewWithGoogleMaps"),'</a\n        >\n      </p>\n    </li>\n    <li\n      style="\n        padding: 12px 0;\n        border-bottom: 1px solid lightgray;\n        margin-left: 0;\n      "\n    >\n      <p style="margin: 0 0 5px 0">').concat(J("price"),':</p>\n      <p style="font-size: 1.2em; margin: 0; font-weight: bold">\n        <b\n          >JPY').concat(H.price.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),'</b\n        >\n      </p>\n    </li>\n  </ul>\n  <div style="padding: 10px 0 20px 0">\n    <p style="margin: 0">\n      ').concat(J("acceptOrRejectMsg"),'\n      <a\n        href="https://www.dekitabi.com/account/tours"\n        target="_blank"\n        rel="noreferrer"\n        style="color: #2186eb"\n        >').concat(J("goToAccount"),"</a\n      >. ").concat(J("orButtonsBellow"),'\n    </p>\n    <div style="font-size: 0.9em; margin-top: 15px; padding-top: 10px">\n      <a\n        href="https://www.dekitabi.com/confirm-tour/').concat(H.id,'"\n        target="_blank"\n        rel="noreferrer"\n        style="\n          background: #03c03c;\n          padding: 15px;\n          border-radius: 5px;\n          color: white;\n          text-decoration: none;\n          font-size: 1.2em;\n        "\n        >').concat(J("accept"),'</a\n      >\n      <a\n        href="https://www.dekitabi.com/cancel-tour/').concat(H.id,'PyCaRABa"\n        target="_blank"\n        rel="noreferrer"\n        style="\n          background: red;\n          padding: 15px;\n          border-radius: 5px;\n          color: white;\n          text-decoration: none;\n          font-size: 1.2em;\n        "\n        >').concat(J("reject"),'</a\n      >\n    </div>\n  </div>\n</section>\n  <section\n    style="\n      max-width: 600px;\n      margin: 0 auto;\n      position: relative;\n      padding: 0 10px;\n    "\n  >\n    <div>\n      <img src="https://www.dekitabi.com/img/logo.png" height="30" width="90" />\n      <ul\n        style="\n          margin: 10px 0 0 0;\n          list-style: none;\n          float: right;\n          display: block;\n        "\n      >\n        <li style="display: inline; margin-left: 5px">\n          <a\n            href="https://www.instagram.com/dekitabi"\n            target="_blank"\n            rel="noreferrer"\n            style="text-decoration: none"\n          >\n            <img\n              src="https://www.dekitabi.com/img/icon-instagram.png"\n              alt="instagram"\n              height="20"\n              width="20"\n            />\n          </a>\n        </li>\n        <li style="display: inline; margin-left: 5px">\n          <a\n            href="https://www.facebook.com/dekitabi"\n            target="_blank"\n            rel="noreferrer"\n            style="text-decoration: none"\n          >\n            <img\n              src="https://www.dekitabi.com/img/icon-facebook.png"\n              alt="facebook"\n              height="20"\n              width="20"\n            />\n          </a>\n        </li>\n        <li style="display: inline; margin-left: 5px">\n          <a\n            href="https://www.threads.net/@dekitabi"\n            target="_blank"\n            rel="noreferrer"\n            style="text-decoration: none"\n          >\n            <img\n              src="https://www.dekitabi.com/img/icon-threads.png"\n              alt="threads"\n              height="20"\n              width="20"\n            />\n          </a>\n        </li>\n        <li style="display: inline; margin-left: 5px">\n          <a\n            href="https://www.twitter.com/dekitabi"\n            target="_blank"\n            rel="noreferrer"\n          >\n            <img\n              src="https://www.dekitabi.com/img/icon-twitter.png"\n              alt="twitter"\n              height="20"\n              width="20"\n            />\n          </a>\n        </li>\n      </ul>\n    </div>\n    <p style="font-size: 0.8em">\n      〒160-0023<br />\n      東京都新宿区西新宿三丁目3番13号 西新宿水間ビル6階.\n    </p>\n    <div>\n      <a\n        href="https://play.google.com/store/apps/details?id=com.dekitabi"\n        target="_blank"\n        rel="noreferrer"\n        style="margin-right: 5px; text-decoration: none"\n      >\n        <img\n          src="https://www.dekitabi.com/img/icon-googleplay.png"\n          alt="open"\n          width="100"\n          height="29"\n        />\n      </a>\n      <a\n        href="https://appgallery.huawei.com/#/app/C110443229"\n        target="_blank"\n        rel="noreferrer"\n      >\n        <img\n          src="https://www.dekitabi.com/img/icon-huawei.png"\n          alt="open"\n          width="100"\n          height="29"\n        />\n      </a>\n    </div>\n  </section>\n  <p\n    style="\n      margin: 25px 0 0 0;\n      color: #adadad;\n      padding: 20px 0;\n      border-top: 1px solid #adadad;\n      font-size: 10px;\n      background: white;\n      text-align: center;\n    "\n  >
1\n    ').concat(J("doNotReplyEmail"),"\n  </p>\n</div>\n")}),v(4),h({taskDate:(0,s.Z)(H).isComingSoon?(0,s.Z)(H).time:Math.ceil(Date.now()/1e3)+172800,firebaseFunctionUrl:"https://asia-northeast1-dekitabi.cloudfunctions.net/cancelTour",taskFunctionArgs:{user:H.createdBy,tour:H,reason:"auto-cancel",isGuide:!0,fromTask:!0}}).then(async t=>{var e,i;return(0,a.setDoc)((0,a.doc)(n,"itineraries",H.id),{...H,cancelTourTaskName:null==t?void 0:null===(i=t.data)||void 0===i?void 0:null===(e=i.response)||void 0===e?void 0:e.name},{merge:!0}).then(async()=>{let t="".concat(l).concat(H.guide).concat(new Date().getTime());return(0,a.setDoc)((0,a.doc)(n,"notifications","".concat(t)),{userId:H.guide,id:t,newItineraryId:H.id,createdAt:new Date().getTime(),type:"tour"}),(0,a.updateDoc)((0,a.doc)(n,"users",H.guide),{notificationsCounter:(0,a.increment)(1)}).then(async()=>{if(null==c||!c.uid)return C(!1),v(4),!0;{D(H.guide,null==c?void 0:c.uid,!1).then(()=>{var n;T(c,W,c,w("chatTourRequest",{itineraryId:H.id,itineraryName:H.name}),(null==W?void 0:null===(n=W.chats)||void 0===n?void 0:n.findIndex(n=>n.chatUser===(null==c?void 0:c.uid)))===-1?[null==H?void 0:H.guide]:[]).then(()=>console.log("msg sent"))});let t="".concat(l).concat(null==c?void 0:c.uid).concat(new Date().getTime());return(0,a.setDoc)((0,a.doc)(n,"notifications","".concat(t)),{userId:null==c?void 0:c.uid,id:t,message:'<a href="/itinerary/'.concat(H.id,'"><b>').concat(H.name,"</b></a><br/>
1\n                  ").concat(w((0,s.Z)(H).isComingSoon?"tourRequestNotificationTravelerSoon":"tourRequestNotificationTraveler")),createdAt:new Date().getTime(),type:"notification"}),(0,a.updateDoc)((0,a.doc)(n,"users",null==c?void 0:c.uid),{booked:(0,a.arrayUnion)(H.guide),notificationsCounter:(0,a.increment)(1),ordersCounter:(0,a.increment)(1)}).then(async()=>(C(!1),!0)).catch(n=>(C(!1),!0))}}).catch(n=>(C(!1),!1))})})},acceptTour:async(n,t)=>f({user:n,tour:t}).then(async n=>{var a;return(null==n?void 0:null===(a=n.data)||void 0===a?void 0:a.result)===!0||(await e({to:"[email protected]",sender:"[email protected]",subject:"dekitabi | Accept Tour error",body:"itineraryId: ".concat(null==t?void 0:t.id," error: ").concat(JSON.stringify(n)," time: ").concat(new Date)}),!1)}),confirmTour:async(n,t,a)=>v({user:n,tour:t,paymentIntent:a}).then(async n=>{var a;return(null==n?void 0:null===(a=n.data)||void 0===a?void 0:a.result)===!0||(await e({to:"[email protected]",sender:"[email protected]",subject:"dekitabi | Confirm error",body:"itineraryId: ".concat(null==t?void 0:t.id," error: ").concat(JSON.stringify(n)," time: ").concat(new Date)}),!1)}),cancelTour:async function(n,t){let e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return C(!0),(0,r.Z)({method:"post",url:"https://asia-northeast1-dekitabi.cloudfunctions.net/cancelTour",data:{tour:n,reason:t,isGuide:e}}).then(t=>{let e=[...y];for(let t=0;t<y.length;t++){var a;if((null===(a=e[t])||void 0===a?void 0:a.id)===(null==n?void 0:n.id)){e[t]={...e[t],status:!1},x((0,u.Yl)(e));break}}return C(!1),t}).catch(n=>(C(!1),!1))}}}}}]);

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.