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,UAAY,CAAC,EAC/BC,KAAKC,MACH,6yR,QCSJ9D,EAAAA,EAAMxB,O","sources":["webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/ sync _controller\\.js$","webpack://nara_city_portal/./app/javascript/controllers/ sync _controller\\.js$","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/iframe_auth.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/index.js","webpack://nara_city_portal/./app/javascript/controllers/index.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/auto_redirect_sns_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/export_mail_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/favorite_count_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/favorite_spot_button_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/iframe_token.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/jorudan_publish_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/load_user_controller.js","webpack://nara_city_portal/./app/javascript/controllers/japan_concierge/plan_spots_controller.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/en.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/fr.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/id.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/ja.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/ko.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/th.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/vi.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/zh-CN.js","webpack://nara_city_portal/./app/javascript/japan_concierge/i18n/zh-TW.js","webpack://nara_city_portal/./app/javascript/packs/japan_concierge.js"],"sourcesContent":["var map = {\n\t\"./auto_redirect_sns_controller.js\": 9427,\n\t\"./export_mail_controller.js\": 5973,\n\t\"./favorite_count_controller.js\": 3701,\n\t\"./favorite_spot_button_controller.js\": 4226,\n\t\"./jorudan_publish_controller.js\": 9549,\n\t\"./load_user_controller.js\": 7941,\n\t\"./plan_spots_controller.js\": 6318,\n\t\"controllers/japan_concierge/auto_redirect_sns_controller.js\": 9427,\n\t\"controllers/japan_concierge/export_mail_controller.js\": 5973,\n\t\"controllers/japan_concierge/favorite_count_controller.js\": 3701,\n\t\"controllers/japan_concierge/favorite_spot_button_controller.js\": 4226,\n\t\"controllers/japan_concierge/jorudan_publish_controller.js\": 9549,\n\t\"controllers/japan_concierge/load_user_controller.js\": 7941,\n\t\"controllers/japan_concierge/plan_spots_controller.js\": 6318\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 4811;","var map = {\n\t\"./japan_concierge/auto_redirect_sns_controller.js\": 9427,\n\t\"./japan_concierge/export_mail_controller.js\": 5973,\n\t\"./japan_concierge/favorite_count_controller.js\": 3701,\n\t\"./japan_concierge/favorite_spot_button_controller.js\": 4226,\n\t\"./japan_concierge/jorudan_publish_controller.js\": 9549,\n\t\"./japan_concierge/load_user_controller.js\": 7941,\n\t\"./japan_concierge/plan_spots_controller.js\": 6318,\n\t\"controllers/japan_concierge/auto_redirect_sns_controller.js\": 9427,\n\t\"controllers/japan_concierge/export_mail_controller.js\": 5973,\n\t\"controllers/japan_concierge/favorite_count_controller.js\": 3701,\n\t\"controllers/japan_concierge/favorite_spot_button_controller.js\": 4226,\n\t\"controllers/japan_concierge/jorudan_publish_controller.js\": 9549,\n\t\"controllers/japan_concierge/load_user_controller.js\": 7941,\n\t\"controllers/japan_concierge/plan_spots_controller.js\": 6318\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 7074;","import { getToken } from './iframe_token';\n\ndocument.addEventListener('ajax:beforeSend', ({ detail: [xhr] }) => {\n const token = getToken();\n\n if (token) {\n xhr.setRequestHeader('USER-TOKEN', token);\n }\n});\n\ndocument.addEventListener('turbolinks:request-start', ({ data: { xhr } }) => {\n const token = getToken();\n\n if (token) {\n xhr.setRequestHeader('USER-TOKEN', token);\n }\n});\n","import './iframe_auth';\nimport { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';\nimport planConfigureStore from '../../japan_concierge/active_plan/store';\nimport exportConfigureStore from '../../japan_concierge/export/store';\nimport { setClientHeight, setIframeTop } from '../../japan_concierge/slices/modalSlice';\n\n// eslint-disable-next-line no-undef\nconst context = require.context('controllers/japan_concierge', true, /_controller\\.js$/);\nexport default definitionsFromContext(context);\n\nwindow.iFrameResizer = {\n onMessage(message) {\n if (message.clientHeight) {\n planConfigureStore.dispatch(setClientHeight(message.clientHeight));\n exportConfigureStore.dispatch(setClientHeight(message.clientHeight));\n }\n if (message.iframeRect) {\n planConfigureStore.dispatch(setIframeTop(message.iframeRect));\n exportConfigureStore.dispatch(setIframeTop(message.iframeRect));\n }\n },\n};\n","// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\n\nimport { Application } from '@hotwired/stimulus';\nimport { definitionsFromContext } from '@hotwired/stimulus-webpack-helpers';\nimport controllers from './japan_concierge';\nimport planConfigureStore from '../japan_concierge/active_plan/store';\n\nconst application = Application.start();\nconst context = require.context('controllers', true, /_controller\\.js$/);\napplication.planStore = planConfigureStore;\napplication.load(definitionsFromContext(context));\napplication.load(controllers);\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['submitButton'];\n\n connect() {\n // 自動的にSNSログイン画面へ遷移させる為にformボタンのclickイベントを発火させる\n this.submitButtonTarget.click();\n }\n}\n","import { Controller } from '@hotwired/stimulus';\n\nexport default class extends Controller {\n static targets = ['message'];\n\n message(event) {\n const [message] = event.detail;\n\n this.messageTarget.innerHTML = message;\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport Rails from '@rails/ujs';\n\nconst UPDATE_EVENT = 'favorite-spot-updated';\nconst REQUEST_EVENT = 'favorite-spot-requested';\nexport const RECEIVE_EVENT = 'all-favorite-spots';\n\nexport function sendFavoriteSpotUpdated() {\n const event = new CustomEvent(UPDATE_EVENT);\n document.dispatchEvent(event);\n}\n\nexport function requestFavoriteSpots() {\n const event = new CustomEvent(REQUEST_EVENT);\n document.dispatchEvent(event);\n}\n\nexport default class extends Controller {\n connect() {\n this.getAll();\n document.addEventListener(UPDATE_EVENT, this.getAll, false);\n document.addEventListener(REQUEST_EVENT, this.sendAll, false);\n }\n\n disconnect() {\n document.removeEventListener(UPDATE_EVENT, this.getAll, false);\n document.removeEventListener(REQUEST_EVENT, this.sendAll, false);\n }\n\n getAll = () => {\n Rails.ajax({\n url: this.path,\n type: 'GET',\n beforeSend: (xhr, options) => {\n // Set user token for iframe case.\n Rails.fire(this.element, 'ajax:beforeSend', [xhr, options]);\n return true;\n },\n success: (ids) => {\n this.ids = ids;\n this.element.innerHTML = ids.length;\n this.sendAll();\n },\n });\n };\n\n sendAll = () => {\n const event = new CustomEvent(RECEIVE_EVENT, { detail: this.ids || [] });\n document.dispatchEvent(event);\n };\n\n get path() {\n return this.data.get('path');\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { requestFavoriteSpots, sendFavoriteSpotUpdated, RECEIVE_EVENT } from './favorite_count_controller';\n\nexport default class extends Controller {\n static targets = ['add', 'remove'];\n\n connect() {\n document.addEventListener(RECEIVE_EVENT, this.setState, false);\n requestFavoriteSpots();\n }\n\n disconnect() {\n document.removeEventListener(RECEIVE_EVENT, this.setState, false);\n }\n\n setState = ({ detail: ids }) => {\n if (ids.includes(this.id)) {\n this.addTarget.classList.add('d-none');\n this.removeTarget.classList.remove('d-none');\n } else {\n this.addTarget.classList.remove('d-none');\n this.removeTarget.classList.add('d-none');\n }\n };\n\n added() {\n this.addTarget.classList.add('d-none');\n this.removeTarget.classList.remove('d-none');\n sendFavoriteSpotUpdated();\n }\n\n removed() {\n this.addTarget.classList.remove('d-none');\n this.removeTarget.classList.add('d-none');\n sendFavoriteSpotUpdated();\n }\n\n get id() {\n return parseInt(this.data.get('id'), 10);\n }\n}\n","const TOKEN_IDENTIFIER = 'iframe-user-token';\n\nexport function getToken() {\n return localStorage.getItem(TOKEN_IDENTIFIER);\n}\n\nexport function setToken(token) {\n localStorage.setItem(TOKEN_IDENTIFIER, token);\n}\n","import { Controller } from '@hotwired/stimulus';\n\n// Jorudan VisitのTrip Blender連携が有効な場合にのみエクスポートページに表示されるボタン押下時に、\n// エクスポートプランをTrip Blenderのモデルコースとして公開するための情報を親フレームに送信する。\n\nexport default class extends Controller {\n static targets = ['courseInfo'];\n\n click() {\n this.postCourseInfoMessageToJorudan();\n }\n\n postCourseInfoMessageToJorudan() {\n // eslint-disable-next-line no-undef\n const receiverOrigin = process.env.JORUDAN_POST_MESSAGE_HOST || '*';\n window.parent.postMessage(\n {\n action: 'PostCourse',\n message: this.courseInfo,\n },\n receiverOrigin\n );\n }\n\n get courseInfo() {\n return this.courseInfoTarget.value;\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { setToken } from './iframe_token';\n\nexport default class extends Controller {\n connect() {\n window.addEventListener('message', this.tokenEvent, false);\n }\n\n disconnect() {\n window.removeEventListener('message', this.tokenEvent, false);\n }\n\n tokenEvent = (event) => {\n if (event.data.type === 'userToken') {\n setToken(event.data.token);\n window.Turbolinks.clearCache();\n window.Turbolinks.visit(this.loadUrl, { action: 'replace' });\n }\n };\n\n get loadUrl() {\n return this.data.get('url');\n }\n}\n","import { Controller } from '@hotwired/stimulus';\nimport { Sortable } from 'sortablejs';\nimport { sortToApi } from '../../japan_concierge/slices/planSpotSlice';\nimport { deleteTransit } from '../../japan_concierge/slices/transitSlice';\n\nexport default class extends Controller {\n connect() {\n Sortable.create(this.element, {\n handle: '.sort-handle',\n onEnd: ({ newIndex, oldIndex }) => {\n if (newIndex !== oldIndex) {\n // react+reduxへ処理を委託\n const planSpotIds = this.application.planStore.getState().planSpot.ids;\n const planSpotEntities = this.application.planStore.getState().planSpot.entities;\n const swapSourcePlanSpot = planSpotEntities[planSpotIds[oldIndex]];\n const swapTargetPlanSpot = planSpotEntities[planSpotIds[newIndex]];\n\n // planSpotが更新された場合、再レンダリングが走り、非同期で移動情報取得が行われるため正しいデータを削除してしまう可能性がある\n // 移動したplanSpotの移動情報を削除し、再取得する\n this.application.planStore.dispatch(deleteTransit(swapSourcePlanSpot.id));\n this.application.planStore.dispatch(deleteTransit(swapTargetPlanSpot.id));\n\n this.application.planStore.dispatch(sortToApi({ id: swapSourcePlanSpot.id, position: newIndex }));\n }\n },\n });\n }\n}\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['en'] = I18n.extend(\n I18n.translations['en'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"concierge_menu\":{\"concierge\":\"Concierge\"},\"map_menu\":{\"attraction_other\":\"Other\",\"drive\":\"Drive\",\"experience\":\"Experience\",\"history\":\"History\",\"hot_springs\":\"Hot Springs\",\"japanese_culture\":\"Japanese Culture\",\"map_menu_select_month_title\":\"choose a month\",\"map_menu_select_season_title\":\"choose the season\",\"museum\":\"Museum\",\"my_favorite\":\"MY FAVORITE\",\"nature\":\"Nature\",\"new_custom_spot\":\"Create your original spot\",\"play\":\"Play\",\"select_start_spot\":\"Insert spot as start point\",\"sport\":\"Sport\",\"view_other_spots\":\"View Other Spots\",\"walking_street\":\"Walking Street\"},\"map_menu_header\":{\"attraction\":\"Attractions\",\"event\":\"Events\"},\"show\":{\"add_spots_from_related_travel_website\":\"Add Tourist Spots from Related Travel Website\",\"add_spots_other_websites_to_your_favorites\":\"You can also add spots from other websites to your favorites list!\",\"add_trip_day\":\"Add Trip Day\",\"annotation_modifying_your_time\":\"Modifying your time of stay will update your departure time and subsequent schedule\",\"arrival_time\":\"Arrival time\",\"auto\":\"Auto\",\"auto_compute_enabled\":\"Auto-compute enabled.\",\"automatic_selection\":\"Automatic selection\",\"change_departure_time\":\"Change the departure time\",\"change_mean_time_transport\":\"Change mean/time of transport\",\"change_plan_name_memo\":\"Plan setting\",\"change_recommended_value\":\"Change to recommended value\",\"change_start_time\":\"Change Start Time\",\"changed_recommended_travel_time\":\"Changed to recommended travel time\",\"confirm\":\"Confirm\",\"create_a_new_plan\":\"Create a new plan\",\"create_an_itinerary\":\"Create an itinerary\",\"create_new_list\":\"Create an original spot\",\"create_new_plan\":\"Create New Plan\",\"departure_time\":\"Departure time\",\"edit\":\"Edit\",\"edit_plan\":\"Edit Plan\",\"edit_transit_duration\":\"Edit Transit Duration\",\"edit_visit_duration\":\"Edit Visit Duration\",\"error_message_half_width_numbers\":\"Please type using half-width numbers\",\"favorites_list\":\"Favorites List\",\"hour\":\"hour\",\"hour_short\":\"h\",\"hours\":\"hours\",\"link_nearby_travel_sites\":\"Link to Nearby Travel Sites\",\"login_sns_for_convenience\":\"Log in (for free) with your social media account for even more convenience!\",\"means_transport\":\"Means of transportation\",\"memo\":\"Memo\",\"minute\":\"minute\",\"minute_short\":\"m\",\"minutes\":\"minutes\",\"modify_time_of_stay\":\"Modify time of stay\",\"my_plan\":\"My Plan\",\"my_plans\":\"My Plans\",\"name\":\"title\",\"nearby_tourism_websites\":\"Nearby tourism websites\",\"no_favorite_spots\":\"You have no favorite spots. Add some!\",\"no_login\":\"No Login\",\"no_matching_spot_found\":\"No matching spots were found.\",\"optimize_route\":\"Optimize route\",\"remove_from_favorites_list\":\"Remove from Favorites List\",\"reset_all_settings\":\"Reset all settings to default\",\"return_favorite_list\":\"Return to favorites list\",\"return_plan_edit\":\"Return to plan edit screen\",\"save_favorites_list\":\"Save to Favorites List\",\"save_my_plan\":\"Save to My Plan\",\"saved_available_all_devices\":\"Permanently saved and available on all your devices.\",\"saved_to_plans\":\"This plan has been saved to {link}.\",\"saved_web_browser\":\"Temporarily saved on your web browser.\",\"scrollable_horizontally\":\"Scrollable horizontally\",\"settings_reset\":\"Settings reset to default.\",\"share\":\"Share\",\"specify_departure_date\":\"Specify departure date\",\"start_spot_placeholder\":\"Select a start spot\",\"stay_time\":\"Stay time in minutes\",\"successfully_added_plan\":\"Successfully added to current {link}.\",\"switched_preferred_mode_bicycle\":\"Switched preferred mode of transport to bicycle.\",\"switched_preferred_mode_car\":\"Switched preferred mode of transport to car.\",\"switched_preferred_mode_transport\":\"Switched preferred mode of transport to public transport.\",\"total\":\"Duration\",\"transportation_priority\":\"Transportation Priority\",\"travel_time\":\"Travel time\",\"username\":\"Username\",\"website_list_notice\":\"Please login to the link destination with the same account.\",\"with_login\":\"With Login\"},\"top_menu\":{\"delete_plan\":\"Delete Plan\",\"help_button\":\"How to use\",\"my_favorite_spots\":\"My favorite Spots\",\"my_plans\":\"My Plans\",\"new_plan\":\"New Plan\",\"website\":\"Nearby tourist sites\"}},\"auth_menus\":{\"show\":{\"sign_in\":\"Sign In\",\"sign_out\":\"Sign Out\"}},\"auths\":{\"show\":{\"modal_title\":\"SNS Sign In\",\"sign_in_with_facebook\":\"Sign in with Facebook\",\"sign_in_with_google\":\"Sign in with Google\",\"sign_in_with_twitter\":\"Sign in with Twitter\"}},\"custom_spots\":{\"initial_name\":\"Original Spot\",\"new\":{\"cancel\":\"Cancel\",\"contents_description\":\"This is a map tool for creating original spots. You can add your own spots to your plan by specifying the location on the map.\",\"contents_description_note\":\"You can get information such as latitude and longitude by clicking a marker on the map or any place.\",\"create\":\"Create spot and add it to your plan.\",\"definition_window_title\":\"Original spot definition\",\"lat\":\"Latitude\",\"lng\":\"Longitude\",\"map\":\"Map\",\"new_custom_spot\":\"Create your original spot\",\"required\":\"Input required\",\"spot_name\":\"Spot name\",\"spot_name_error\":\"Please fill out this field.\",\"stay_time\":\"Stay time in minutes\",\"stay_time_error\":\"Please fill out a number greater than 0.\"},\"spot_created\":\"Spot [ %{name} ] was created and added to your plan.\",\"top_menu\":{\"back\":\"Back to My Plan\"}},\"export_mailer\":{\"send\":{\"failure\":\"Please enter a valid email address.\",\"success\":\"An email has been sent to %{mail}\"},\"share_plan_mail\":{\"content\":\"You can access the course you created with the following URL:\",\"no_reply\":\"* Please do not reply to this email.\",\"subject\":\"JapanConcierge\",\"title\":\"Thank you very much for using JapanConcierge.\"}},\"exports\":{\"show\":{\"cannot_published_plan\":\"Plans that include original spots cannot be published.\",\"jorudan_publish\":\"Publish model course\",\"mail_submit\":\"Send\",\"more\":\"More Information\",\"my_plans\":\"My Plans\",\"no_data\":\"No information\",\"qrcode\":\"This plan page can be opened with scanning this matrix barcodes.\",\"revise_plan\":\"Revise this plan\",\"send_mail\":\"Send this my plan\",\"share_plan\":\"Share this my plan\",\"view_map\":\"View map\"},\"spots\":{\"apologize\":\"We apologize for the inconvenience.\",\"empty_alert\":\"All of the spots registered in this plan are deleted for some reasons. So nothing remains to be shown here.\",\"total_time\":\"Total: %{time}\"}},\"map_partials\":{\"common\":{\"add_to_course\":\"Add to Course\",\"detail\":\"Detail\",\"remove\":\"Remove\",\"set_goal\":\"GOAL\",\"set_start\":\"START\"},\"plan_spot_info_window\":null,\"spot_info_window\":null},\"plans\":{\"edit\":{\"update\":\"Update\"}},\"spot_modals\":{\"show\":{\"add_to_my_plan\":\"Add to My plan\",\"address\":\"Address\",\"closed\":\"Closed\",\"detail\":\"Detail\",\"images\":\"Images\",\"move_to_last\":\"move to last\",\"move_to_top\":\"move to top\",\"note\":\"Note\",\"open_hours\":\"Open Hours\",\"other_links\":\"Other links\",\"remove_from_my_plan\":\"Remove from My Plan\",\"tel\":\"Tel\",\"url\":\"URL\"}},\"spots\":{\"spot\":{\"add_to_my_plan\":\"Add to My plan\"}},\"transits\":{\"modes\":{\"auto\":\"Auto Select\",\"car\":\"Car\",\"train\":\"Train/Bus\",\"walk\":\"Walk\"},\"transit\":{\"direction\":\"Direction\"}}}}'\n )\n);\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['ja'] = I18n.extend(\n I18n.translations['ja'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"concierge_menu\":{\"concierge\":\"トラベルコンシェルジュ\"},\"map_menu\":{\"attraction_other\":\"その他\",\"drive\":\"ドライブ\",\"experience\":\"体験\",\"history\":\"歴史・文化\",\"hot_springs\":\"温泉\",\"japanese_culture\":\"日本文化\",\"map_menu_select_month_title\":\"月を選ぶ\",\"map_menu_select_season_title\":\"季節を選ぶ\",\"museum\":\"博物館/美術館\",\"my_favorite\":\"お気に入り\",\"nature\":\"自然\",\"new_custom_spot\":\"オリジナルスポットの作成\",\"play\":\"遊ぶ(楽しむ)\",\"select_start_spot\":\"スタート地点の追加\",\"sport\":\"スポーツ\",\"view_other_spots\":\"他のスポットの表示と追加\",\"walking_street\":\"街歩き\"},\"map_menu_header\":{\"attraction\":\"観光スポット\",\"event\":\"イベント\"},\"show\":{\"add_spots_from_related_travel_website\":\"近くの観光サイトでスポットを追加する\",\"add_spots_other_websites_to_your_favorites\":\"このサイト以外からもお気に入りに追加できる!\",\"add_trip_day\":\"新しい日程を追加\",\"annotation_modifying_your_time\":\"滞在時間を修正すると、出発時刻およびそれ以降のスケジュールが更新されます。\",\"arrival_time\":\"到着時刻\",\"auto\":\"自動\",\"auto_compute_enabled\":\"手動設定を解除します。\",\"automatic_selection\":\"自動選択\",\"change_departure_time\":\"スタート時間変更\",\"change_mean_time_transport\":\"移動方法・移動時間変更\",\"change_plan_name_memo\":\"プラン設定\",\"change_recommended_value\":\"推奨値に変更\",\"change_start_time\":\"スタート時刻を変更する\",\"changed_recommended_travel_time\":\"推奨値に変更しました\",\"confirm\":\"確定\",\"create_a_new_plan\":\"新しいプランを作成する\",\"create_an_itinerary\":\"このプランを共有する\",\"create_new_list\":\"オリジナルスポットを作成する\",\"create_new_plan\":\"別のプランを作成する(新規作成)\",\"departure_time\":\"出発時刻\",\"edit\":\"編集\",\"edit_plan\":\"プラン編集\",\"edit_transit_duration\":\"移動時間を編集する\",\"edit_visit_duration\":\"滞在時間を編集する\",\"error_message_half_width_numbers\":\"半角数値で入力してください\",\"favorites_list\":\"お気に入りリスト\",\"hour\":\"時間\",\"hour_short\":\"時間\",\"hours\":\"時間\",\"link_nearby_travel_sites\":\"近隣エリア観光サイトへのリンク\",\"login_sns_for_convenience\":\"SNSログイン(無料)すればもっと便利に!\",\"means_transport\":\"移動方法\",\"memo\":\"メモ\",\"minute\":\"分\",\"minute_short\":\"分\",\"minutes\":\"分\",\"modify_time_of_stay\":\"滞在時間変更\",\"my_plan\":\"マイプラン\",\"my_plans\":\"あなたのマイプラン\",\"name\":\"タイトル\",\"nearby_tourism_websites\":\"近隣の観光サイト\",\"no_favorite_spots\":\"まだお気に入りにスポットを登録していません。お気に入りスポットを追加してください。\",\"no_login\":\"ログインなし\",\"no_matching_spot_found\":\"該当するスポットが見つかりませんでした\",\"optimize_route\":\"ルートを最適化する\",\"remove_from_favorites_list\":\"お気に入りリストから削除\",\"reset_all_settings\":\"すべての設定を初期値に戻す\",\"return_favorite_list\":\"お気に入りリストに戻る\",\"return_plan_edit\":\"プラン編集画面に戻る\",\"save_favorites_list\":\"お気に入りの保存\",\"save_my_plan\":\"マイプランの保存\",\"saved_available_all_devices\":\"永久的に保存され、どの端末からでも同じ情報を見ることができます\",\"saved_to_plans\":\"このページのプランは{link}に保存されているよ\",\"saved_web_browser\":\"ブラウザに一時保存されます\",\"scrollable_horizontally\":\"スクロールできます\",\"settings_reset\":\"初期値に変更しました\",\"share\":\"共有\",\"specify_departure_date\":\"出発日指定\",\"start_spot_placeholder\":\"スタートポイントを選択\",\"stay_time\":\"滞在時間\",\"successfully_added_plan\":\"編集中の{link}に追加しました\",\"switched_preferred_mode_bicycle\":\"優先交通を自転車に切り替えました\",\"switched_preferred_mode_car\":\"優先交通を車に切り替えました\",\"switched_preferred_mode_transport\":\"優先交通を公共交通機関に切り替えました\",\"total\":\"所要時間\",\"transportation_priority\":\"優先する交通手段\",\"travel_time\":\"移動時間\",\"username\":\"ユーザー名\",\"website_list_notice\":\"遷移先の観光サイトでも同一のアカウントでログインをしてください。\",\"with_login\":\"ログインあり\"},\"top_menu\":{\"delete_plan\":\"プランを削除\",\"help_button\":\"ヘルプ\",\"my_favorite_spots\":\"お気に入り\",\"my_plans\":\"マイプラン\",\"new_plan\":\"新しいプラン\",\"website\":\"近くの観光サイト\"}},\"auth_menus\":{\"show\":{\"sign_in\":\"ログイン\",\"sign_out\":\"ログアウト\"}},\"auths\":{\"show\":{\"modal_title\":\"SNS ログイン\",\"sign_in_with_facebook\":\"Facebookでログイン\",\"sign_in_with_google\":\"Googleでログイン\",\"sign_in_with_twitter\":\"Twitterでログイン\"}},\"custom_spots\":{\"initial_name\":\"オリジナルスポット\",\"new\":{\"cancel\":\"キャンセル\",\"contents_description\":\"オリジナルスポット作成用 地図ツールです。地図上で場所を指定することで、あなた独自のスポットをプランに追加できます。\",\"contents_description_note\":\"地図上のマーカーや任意の場所をクリックすることにより、緯度経度等の情報を取得できます。\",\"create\":\"スポットを作成してプランに追加\",\"definition_window_title\":\"オリジナルスポット定義\",\"lat\":\"緯度\",\"lng\":\"経度\",\"map\":\"場所の指定\",\"new_custom_spot\":\"オリジナルスポットの作成\",\"required\":\"入力必須\",\"spot_name\":\"スポット名\",\"spot_name_error\":\"入力してください。\",\"stay_time\":\"滞在時間(単位:分)\",\"stay_time_error\":\"0より大きい数字を入力してください。\"},\"spot_created\":\"スポット「%{name}」の作成が完了し、あなたのプランに追加しました。\",\"top_menu\":{\"back\":\"\\\\\"プラン編集\\\\\"に戻る\"}},\"export_mailer\":{\"send\":{\"failure\":\"有効なメールアドレスを入力してください。\",\"success\":\"%{mail} 宛てにメールが送信されました\"},\"share_plan_mail\":{\"content\":\"こちらのURLから、あなたが作成した観光プランにアクセスできます。\",\"no_reply\":\"※このメールへの返信はご遠慮ください。\",\"subject\":\"JapanConcierge\",\"title\":\"JapanConciergeをご利用いただき、誠にありがとうございます。\"}},\"exports\":{\"show\":{\"cannot_published_plan\":\"オリジナルスポットが含まれるプランは公開できません\",\"jorudan_publish\":\"プランを公開\",\"mail_submit\":\"送信\",\"more\":\"もっと見る\",\"my_plans\":\"マイプラン\",\"no_data\":\"情報なし\",\"qrcode\":\"この二次元バーコードを読み取ると、このプランを開く事ができます。\",\"revise_plan\":\"再編集・前のページへ戻る\",\"send_mail\":\"プランを送る\",\"share_plan\":\"プランを共有する\",\"view_map\":\"地図を見る\"},\"spots\":{\"apologize\":\"ご迷惑をおかけして申し訳ございません。\",\"empty_alert\":\"このプランに含まれていた全てのスポットは何らかの理由により削除されました。表示できるスポットがありません。\",\"total_time\":\"合計: %{time}\"}},\"map_partials\":{\"common\":{\"add_to_course\":\"プランに追加\",\"detail\":\"詳細\",\"remove\":\"削除\",\"set_goal\":\"ゴール\",\"set_start\":\"スタート\"},\"plan_spot_info_window\":null,\"spot_info_window\":null},\"plans\":{\"edit\":{\"update\":\"更新\"}},\"spot_modals\":{\"show\":{\"add_to_my_plan\":\"マイプランに追加\",\"address\":\"住所\",\"closed\":\"休日\",\"detail\":\"詳細\",\"images\":\"画像\",\"move_to_last\":\"最後に移動\",\"move_to_top\":\"先頭に移動\",\"note\":\"備考\",\"open_hours\":\"営業時間\",\"other_links\":\"その他リンク\",\"remove_from_my_plan\":\"マイプランから削除\",\"tel\":\"電話番号\",\"url\":\"URL\"}},\"spots\":{\"spot\":{\"add_to_my_plan\":\"マイプランに追加する\"}},\"transits\":{\"modes\":{\"auto\":\"自動選択\",\"car\":\"車\",\"train\":\"電車・バス\",\"walk\":\"徒歩\"},\"transit\":{\"direction\":\"行き方\"}}}}'\n )\n);\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['ko'] = I18n.extend(\n I18n.translations['ko'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"concierge_menu\":{\"concierge\":\"컨시어지\"},\"map_menu\":{\"attraction_other\":\"Other\",\"drive\":\"Drive\",\"experience\":\"체험\",\"history\":\"History\",\"hot_springs\":\"온천\",\"japanese_culture\":\"일본 문화\",\"map_menu_select_month_title\":\"달을 선택\",\"map_menu_select_season_title\":\"계절을 선택\",\"museum\":\"박물관 / 미술관\",\"my_favorite\":\"즐겨찾기\",\"nature\":\"Nature\",\"new_custom_spot\":\"새로운 관광지 등록\",\"play\":\"레크리에이션\",\"select_start_spot\":\"시작 지점 추가\",\"sport\":\"Sport\",\"view_other_spots\":\"다른명소 보기 및 추가\",\"walking_street\":\"Walking Street\"},\"map_menu_header\":{\"attraction\":\"관광 명소\",\"event\":\"이벤트\"},\"show\":{\"add_spots_from_related_travel_website\":\"인근 관광 사이트에서 명소 추가하기\",\"add_spots_other_websites_to_your_favorites\":\"이 사이트 이외의 사이트도 즐겨찾기에 추가할 수 있어요!\",\"add_trip_day\":\"새로운 일정 추가\",\"annotation_modifying_your_time\":\"체류 시간을 수정하면 출발 시각 및 그 이후의 일정이 갱신됩니다.\",\"arrival_time\":\"도착 시각\",\"auto\":\"자동\",\"auto_compute_enabled\":\"수동 설정을 해제합니다.\",\"automatic_selection\":\"자동 선택\",\"change_departure_time\":\"출발 시간 변경\",\"change_mean_time_transport\":\"이동 방법, 이동 시간 변경\",\"change_plan_name_memo\":\"플랜 설정\",\"change_recommended_value\":\"권장치로 변경\",\"change_start_time\":\"출발 시간 변경하기\",\"changed_recommended_travel_time\":\"추천 이동 시간으로 변경했습니다.\",\"confirm\":\"확정\",\"create_a_new_plan\":\"새 플랜 만들기\",\"create_an_itinerary\":\"여정계획을 작성하기\",\"create_new_list\":\"새로운 명소 작성하기\",\"create_new_plan\":\"다른 플랜 만들기(신규 작성)\",\"departure_time\":\"출발 시각\",\"edit\":\"편집\",\"edit_plan\":\"플랜 편집\",\"edit_transit_duration\":\"이동 시간 편집하기\",\"edit_visit_duration\":\"체류 시간 편집하기\",\"favorites_list\":\"즐겨찾기 목록\",\"hour\":\"시간\",\"hour_short\":\"시간\",\"hours\":\"시간\",\"link_nearby_travel_sites\":\"인근 지역 관광 사이트 링크\",\"login_sns_for_convenience\":\"SNS 로그인(무료)으로 더욱 편리하게!\",\"means_transport\":\"이동 방법\",\"memo\":\"메모\",\"minute\":\"분\",\"minute_short\":\"분\",\"minutes\":\"분\",\"modify_time_of_stay\":\"인근 관광 웹 사이트\",\"my_plan\":\"마이플랜\",\"my_plans\":\"내 플랜\",\"name\":\"제목\",\"nearby_tourism_websites\":\"近隣の観光サイト\",\"no_favorite_spots\":\"즐겨찾기 장소를 등록하시지 않았습니다. 즐겨찾기 장소를 추가하여 주십시오.\",\"no_login\":\"로그인 없음\",\"no_matching_spot_found\":\"해당하는 장소를 찾을 수 없습니다.\",\"optimize_route\":\"재정렬\",\"remove_from_favorites_list\":\"즐겨찾기 목록에서 삭제\",\"reset_all_settings\":\"모든 설정을 초기값으로 되돌리기\",\"return_favorite_list\":\"즐겨찾기 목록 돌아가기\",\"return_plan_edit\":\"편집 화면으로 돌아가기\",\"save_favorites_list\":\"즐겨찾기 저장\",\"save_my_plan\":\"마이플랜 저장\",\"saved_available_all_devices\":\"영구적으로 저장되어 어느 기기에서나 동일한 정보를 볼 수 있습니다\",\"saved_to_plans\":\"이 페이지의 플랜은 {link}에 저장되어 있답니다\",\"saved_web_browser\":\"브라우저에 임시로 저장됩니다\",\"scrollable_horizontally\":\"옆으로 스크롤 가능\",\"settings_reset\":\"초기값으로 변경했습니다\",\"share\":\"공유\",\"specify_departure_date\":\"출발일 지정\",\"start_spot_placeholder\":\"출발점을 선택\",\"stay_time\":\"체류 시간\",\"successfully_added_plan\":\"편집 중인 {link}에 추가했습니다\",\"switched_preferred_mode_bicycle\":\"교통수단을 자전거로 변경해서 계산했습니다\",\"switched_preferred_mode_car\":\"우선 교통수단이 자동차로 설정되었습니다\",\"switched_preferred_mode_transport\":\"우선 교통수단이 대중교통으로 설정되었습니다\",\"total\":\"소요 시간\",\"transportation_priority\":\"교통 우선 순위\",\"travel_time\":\"이동 시간\",\"username\":\"사용자 이름\",\"website_list_notice\":\"링크로 이동한 관광 사이트에서도 같은 계정으로 로그인하시기 바랍니다.\",\"with_login\":\"로그인 있음\"},\"top_menu\":{\"delete_plan\":\"일정 삭제\",\"help_button\":\"사용법\",\"my_favorite_spots\":\"즐겨찾기 명소\",\"my_plans\":\"마이 플랜\",\"new_plan\":\"새일정 작성\",\"website\":\"인근 지역의 관광 웹 사이트\"}},\"auth_menus\":{\"show\":{\"sign_in\":\"Sign In\",\"sign_out\":\"Sign Out\"}},\"custom_spots\":{\"new\":{\"contents_description\":\"원래 명소를 만들기 위한 지도 도구입니다. 지도에서 위치를 지정하는 것으로, 당신 자신의 자리를 계획에 추가 할 수 있습니다.\",\"contents_description_note\":\"지도에서 마커 나 아무 곳이나 클릭하여 위도 경도 등의 정보를 얻을 수 있습니다.\",\"create\":\"관광지를 작성하여 플랜에 추가하기\",\"definition_window_title\":\"원래 장소 정의\",\"lat\":\"위도\",\"lng\":\"경도\",\"map\":\"장소 지정\",\"new_custom_spot\":\"새로운 관광지 등록\",\"required\":\"입력필수\",\"spot_name\":\"관광지명\",\"spot_name_error\":\"이 필드를 작성하십시오.\",\"stay_time\":\"체류 시간(단위:분)\",\"stay_time_error\":\"0보다 큰 숫자를 입력하세요.\"},\"top_menu\":{\"back\":\"\\\\\"플랜 편집\\\\\"으로 돌아가기\"}},\"export_mailer\":{\"send\":{\"failure\":\"올바른 이메일 주소를 입력하여 주십시오.\",\"success\":\"%{mail} 에게 이메일이 전송되었습니다\"},\"share_plan_mail\":{\"content\":\"이 URL을 통해 고객님이 작성하신 관광 플랜에 접속하실 수 있습니다.\",\"no_reply\":\"* 이 이메일 주소로 답장을 보내지 마시기 바랍니다.\",\"subject\":\"JapanConcierge\",\"title\":\"JapanConcierge를 이용하여 주셔서 대단히 감사드립니다.\"}},\"exports\":{\"show\":{\"cannot_published_plan\":\"오리지널 스팟이 포함된 플랜은 공개할 수 없습니다.\",\"jorudan_publish\":\"모델 코스 게시\",\"mail_submit\":\"송신\",\"more\":\"더보기\",\"my_plans\":\"마이 플랜\",\"no_data\":\"정보 없음\",\"qrcode\":\"이 2차원 바코드를 스캔하면 이 플랜이 열립니다.\",\"revise_plan\":\"다시 편집\",\"send_mail\":\"이 계획을 이메일로 보내기\",\"share_plan\":\"이 계획을 공유하는\",\"view_map\":\"지도 보기\"},\"spots\":{\"total_time\":\"총: %{time}\"}},\"map_partials\":{\"common\":{\"add_to_course\":\"코스에 추가\",\"detail\":\"자세한\",\"remove\":\"삭제\",\"set_goal\":\"골\",\"set_start\":\"스타트\"},\"plan_spot_info_window\":null,\"spot_info_window\":null},\"plans\":{\"edit\":{\"update\":\"업데이트\"}},\"spot_modals\":{\"show\":{\"address\":\"주소\",\"closed\":\"정규휴일\",\"detail\":\"자세한\",\"images\":\"이미지\",\"move_to_last\":\"마지막으로 이동\",\"move_to_top\":\"맨 위로 이동\",\"note\":\"비고\",\"open_hours\":\"영업시간\",\"other_links\":\"다른 링크\",\"remove_from_my_plan\":\"마이플랜에서 삭제\",\"tel\":\"전화번호\",\"url\":\"URL\"}},\"spots\":{\"spot\":{\"add_to_my_plan\":\"내 계획에 추가\"}},\"transits\":{\"modes\":{\"auto\":\"자동선택\",\"car\":\"차\",\"train\":\"전철・버스\",\"walk\":\"도보\"},\"transit\":{\"direction\":\"가는 방법\"}}}}'\n )\n);\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['th'] = I18n.extend(\n I18n.translations['th'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"map_menu\":{\"map_menu_select_month_title\":\"เลือกเดือน\",\"map_menu_select_season_title\":\"เลือกฤดูกาล\"},\"map_menu_header\":{\"attraction\":\"แหล่งท่องเที่ยว\",\"event\":\"เหตุการณ์ที่เกิดขึ้น\"}}}}'\n )\n);\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['zh-CN'] = I18n.extend(\n I18n.translations['zh-CN'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"concierge_menu\":{\"concierge\":\"自助旅行帮手\"},\"map_menu\":{\"attraction_other\":\"Other\",\"drive\":\"Drive\",\"experience\":\"体验\",\"history\":\"历史 文化\",\"hot_springs\":\"温泉\",\"japanese_culture\":\"日本文化\",\"map_menu_select_month_title\":\"选择一个月\",\"map_menu_select_season_title\":\"选择季节\",\"museum\":\"博物馆\",\"my_favorite\":\"收藏夹\",\"nature\":\"自然\",\"new_custom_spot\":\"注册新的景点\",\"play\":\"娱乐\",\"select_start_spot\":\"新增出发地点\",\"sport\":\"Sport\",\"view_other_spots\":\"显示和添加其他景点\",\"walking_street\":\"Walking Street\"},\"map_menu_header\":{\"attraction\":\"旅游胜地\",\"event\":\"大事记\"},\"show\":{\"add_spots_from_related_travel_website\":\"从附近的观光网站上添加景点\",\"add_spots_other_websites_to_your_favorites\":\"从其他网站也可以添加到收藏列表!\",\"add_trip_day\":\"新增日程\",\"annotation_modifying_your_time\":\"修改停留时间后将会更新出发时间及后续行程。\",\"arrival_time\":\"到达时间\",\"auto\":\"自动\",\"auto_compute_enabled\":\"取消手动设定。\",\"automatic_selection\":\"自动选择\",\"change_departure_time\":\"更改出发时间\",\"change_mean_time_transport\":\"更改移动方式及移动时间\",\"change_plan_name_memo\":\"プラン設定\",\"change_recommended_value\":\"计划设定\",\"change_start_time\":\"更改开始时间\",\"changed_recommended_travel_time\":\"更改为推荐旅行时间\",\"confirm\":\"确定\",\"create_a_new_plan\":\"制定新计划\",\"create_an_itinerary\":\"制作出行计划\",\"create_new_list\":\"新建原创景点\",\"create_new_plan\":\"制定其他计划(新建)\",\"departure_time\":\"出发时间\",\"edit\":\"编辑\",\"edit_plan\":\"编辑计划\",\"edit_transit_duration\":\"编辑路程时间\",\"edit_visit_duration\":\"编辑逗留时间\",\"favorites_list\":\"收藏列表\",\"hour\":\"小时\",\"hour_short\":\"小时\",\"hours\":\"小时\",\"link_nearby_travel_sites\":\"前往附近地区观光网站的链接\",\"login_sns_for_convenience\":\"使用SNS账号登录(免费),更加方便快捷!\",\"means_transport\":\"移动方式\",\"memo\":\"备注\",\"minute\":\"分\",\"minute_short\":\"分\",\"minutes\":\"分\",\"modify_time_of_stay\":\"修改停留时间\",\"my_plan\":\"个人计划\",\"my_plans\":\"你的个人计划\",\"name\":\"标题\",\"nearby_tourism_websites\":\"附近的旅游网站\",\"no_favorite_spots\":\"我的最爱中尚未登录任何地点。请新增我的最爱地点。\",\"no_login\":\"未登录\",\"no_matching_spot_found\":\"没有找到相应景点\",\"optimize_route\":\"重新排序\",\"remove_from_favorites_list\":\"从收藏列表中删除\",\"reset_all_settings\":\"将所有设置重置为默认值\",\"return_favorite_list\":\"返回收藏列表\",\"return_plan_edit\":\"返回编辑画面\",\"save_favorites_list\":\"保存至收藏列表\",\"save_my_plan\":\"保存至个人计划\",\"saved_available_all_devices\":\"数据将被永久保存,使用任何设备都能看到相同的信息\",\"saved_to_plans\":\"此页面的计划会保存在{link}中哦\",\"saved_web_browser\":\"数据将暂时保存在浏览器中\",\"scrollable_horizontally\":\"可水平滚动\",\"settings_reset\":\"已恢复至默认值\",\"share\":\"分享\",\"specify_departure_date\":\"指定出发日期\",\"start_spot_placeholder\":\"选择起点\",\"stay_time\":\"逗留时间\",\"successfully_added_plan\":\"已添加至正在编辑的{link}\",\"switched_preferred_mode_bicycle\":\"已将优先交通方式切换成骑单车。\",\"switched_preferred_mode_car\":\"优先交通方式已切换为驾车\",\"switched_preferred_mode_transport\":\"优先交通方式已切换为公共交通\",\"total\":\"所需时间\",\"transportation_priority\":\"交通优先\",\"travel_time\":\"移动时间\",\"username\":\"用户名\",\"website_list_notice\":\"在迁移的观光网站,请用同一个帐号登入。\",\"with_login\":\"已登录\"},\"top_menu\":{\"delete_plan\":\"删除计划\",\"help_button\":\"用法\",\"my_favorite_spots\":\"喜欢的景点\",\"my_plans\":\"我的计划\",\"new_plan\":\"制定新计划\",\"website\":\"附近地区的旅游网站\"}},\"auth_menus\":{\"show\":{\"sign_in\":\"Sign In\",\"sign_out\":\"Sign Out\"}},\"custom_spots\":{\"new\":{\"contents_description\":\"这是用于创建原始点的地图工具。您可以通过在地图上指定位置来将自己的景点添加到您的计划中。\",\"contents_description_note\":\"您可以通过单击地图上或任何地方的标记来获取纬度和经度等信息。\",\"create\":\"创建景点并追加至行程中\",\"definition_window_title\":\"原点定义\",\"lat\":\"纬度\",\"lng\":\"经度\",\"map\":\"指定地点\",\"new_custom_spot\":\"注册新的景点\",\"required\":\"必须记入\",\"spot_name\":\"景点名\",\"spot_name_error\":\"请填写此字段。\",\"stay_time\":\"逗留时间(单位:分钟)\",\"stay_time_error\":\"请填写一个大于 0 的数字。\"},\"top_menu\":{\"back\":\"返回\\\\\"编辑行程\\\\\"\"}},\"export_mailer\":{\"send\":{\"failure\":\"请输入有效的电子邮箱地址。\",\"success\":\"电子邮件已发送至 %{mail}\"},\"share_plan_mail\":{\"content\":\"可点击该URL访问您已创建的观光行程。\",\"no_reply\":\"* 请不要回复此邮件。\",\"subject\":\"JapanConcierge\",\"title\":\"衷心感谢您使用JapanConcierge。\"}},\"exports\":{\"show\":{\"cannot_published_plan\":\"无法发布包含原始景点的计划\",\"jorudan_publish\":\"发布模型课程\",\"mail_submit\":\"传送\",\"more\":\"見更多\",\"my_plans\":\"我的计划\",\"no_data\":\"无信息\",\"qrcode\":\"读取此二维码即可进入方案页面。\",\"revise_plan\":\"重新编辑\",\"send_mail\":\"用电子邮件转送此计划\",\"share_plan\":\"分享这个计划\",\"view_map\":\"查看地图\"},\"spots\":{\"total_time\":\"总量: %{time}\"}},\"map_partials\":{\"common\":{\"add_to_course\":\"添加到课程\",\"detail\":\"详细\",\"remove\":\"删除\",\"set_goal\":\"目标\",\"set_start\":\"开始\"},\"plan_spot_info_window\":null,\"spot_info_window\":null},\"plans\":{\"edit\":{\"update\":\"更新\"}},\"spot_modals\":{\"show\":{\"address\":\"地址\",\"closed\":\"休息日\",\"detail\":\"详细\",\"images\":\"图像\",\"move_to_last\":\"移至最后\",\"move_to_top\":\"移至顶部\",\"note\":\"备注\",\"open_hours\":\"营业时间\",\"other_links\":\"其他链接\",\"remove_from_my_plan\":\"从个人计划中删除\",\"tel\":\"电话号码\",\"url\":\"URL\"}},\"spots\":{\"spot\":{\"add_to_my_plan\":\"加入我的计划\"}},\"transits\":{\"modes\":{\"auto\":\"自动选择\",\"car\":\"车\",\"train\":\"电车·巴士\",\"walk\":\"步行\"},\"transit\":{\"direction\":\"走法\"}}}}'\n )\n);\n","import I18n from './i18n';\nI18n.translations || (I18n.translations = {});\nI18n.translations['zh-TW'] = I18n.extend(\n I18n.translations['zh-TW'] || {},\n JSON.parse(\n '{\"japan_concierge\":{\"active_plans\":{\"concierge_menu\":{\"concierge\":\"自助旅行幫手\"},\"map_menu\":{\"attraction_other\":\"Other\",\"drive\":\"Drive\",\"experience\":\"體驗\",\"history\":\"歷史 文化\",\"hot_springs\":\"溫泉\",\"japanese_culture\":\"日本文化\",\"map_menu_select_month_title\":\"選擇一個月\",\"map_menu_select_season_title\":\"選擇季節\",\"museum\":\"博物館\",\"my_favorite\":\"收藏夾\",\"nature\":\"自然\",\"new_custom_spot\":\"登錄新景點\",\"play\":\"娛樂\",\"select_start_spot\":\"新增出發地點\",\"sport\":\"Sport\",\"view_other_spots\":\"顯示和添加其他景點\",\"walking_street\":\"Walking Street\"},\"map_menu_header\":{\"attraction\":\"旅遊勝地\",\"event\":\"大事記\"},\"show\":{\"add_spots_from_related_travel_website\":\"於附近地區的觀光網站新增景點\",\"add_spots_other_websites_to_your_favorites\":\"除了這個網站外,也能從其他網站新增我的最愛!\",\"add_trip_day\":\"新增日程\",\"annotation_modifying_your_time\":\"修正停留時間時,會隨之更新出發時間及其後續行程。\",\"arrival_time\":\"抵達時間\",\"auto\":\"自動\",\"auto_compute_enabled\":\"關閉手動設定。\",\"automatic_selection\":\"自動選擇\",\"change_departure_time\":\"更改出發時間\",\"change_mean_time_transport\":\"更改移動方式或移動時間\",\"change_plan_name_memo\":\"計劃設定\",\"change_recommended_value\":\"更改為推薦值\",\"change_start_time\":\"更改出發時間\",\"changed_recommended_travel_time\":\"更改為推薦旅行時間\",\"confirm\":\"確定\",\"create_a_new_plan\":\"制定新計劃\",\"create_an_itinerary\":\"製作出行計劃\",\"create_new_list\":\"建立獨家景點\",\"create_new_plan\":\"建立其他計畫(建立新計畫)\",\"departure_time\":\"出發時間\",\"edit\":\"編輯\",\"edit_plan\":\"編輯計畫\",\"edit_transit_duration\":\"編輯移動時間\",\"edit_visit_duration\":\"編輯停留時間\",\"favorites_list\":\"我的最愛清單\",\"hour\":\"小時\",\"hour_short\":\"小時\",\"hours\":\"小時\",\"link_nearby_travel_sites\":\"附近地區觀光網站連結\",\"login_sns_for_convenience\":\"登入社群媒體(免費)會更加方便!\",\"means_transport\":\"移動方式\",\"memo\":\"備忘\",\"minute\":\"分鐘\",\"minute_short\":\"分鐘\",\"minutes\":\"分鐘\",\"modify_time_of_stay\":\"更改停留時間\",\"my_plan\":\"個人計畫\",\"my_plans\":\"您的個人計畫\",\"name\":\"標題\",\"nearby_tourism_websites\":\"附近的旅遊網站\",\"no_favorite_spots\":\"我的最愛中尚未登錄任何地點。請新增我的最愛地點。\",\"no_login\":\"未登入\",\"no_matching_spot_found\":\"找不到符合的景點\",\"optimize_route\":\"重新排序\",\"remove_from_favorites_list\":\"從我的最愛清單中刪除\",\"reset_all_settings\":\"將所有設置重置為默認值\",\"return_favorite_list\":\"返回我的最愛清單\",\"return_plan_edit\":\"返回編輯畫面\",\"save_favorites_list\":\"儲存至我的最愛\",\"save_my_plan\":\"儲存至個人計畫\",\"saved_available_all_devices\":\"永久儲存,從任何裝置均可查看相同資訊\",\"saved_to_plans\":\"此頁面之計畫已儲存至{link}\",\"saved_web_browser\":\"暫時儲存於瀏覽器中\",\"scrollable_horizontally\":\"可水平滾動\",\"settings_reset\":\"已更改為預設值\",\"share\":\"分享\",\"specify_departure_date\":\"指定出發日\",\"start_spot_placeholder\":\"選擇起點\",\"stay_time\":\"停留時間\",\"successfully_added_plan\":\"已新增至編輯中的{link}\",\"switched_preferred_mode_bicycle\":\"已將優先交通方式切換成騎單車\",\"switched_preferred_mode_car\":\"將首要交通方式切換成汽車\",\"switched_preferred_mode_transport\":\"將首要交通方式切換成大眾運輸\",\"total\":\"所需時間\",\"transportation_priority\":\"交通優先\",\"travel_time\":\"移動時間\",\"username\":\"使用者名稱\",\"website_list_notice\":\"在遷移的觀光網站,請用同一個帳號登入。\",\"with_login\":\"已登入\"},\"top_menu\":{\"delete_plan\":\"刪除計劃\",\"help_button\":\"用法\",\"my_favorite_spots\":\"喜歡的景點\",\"my_plans\":\"我的計劃\",\"new_plan\":\"制定新計劃\",\"website\":\"附近地區的旅遊網站\"}},\"auth_menus\":{\"show\":{\"sign_in\":\"Sign In\",\"sign_out\":\"Sign Out\"}},\"custom_spots\":{\"new\":{\"contents_description\":\"這是用於創建原始點的地圖工具。您可以通過在地圖上指定位置來將自己的景點添加到您的計劃中。\",\"contents_description_note\":\"您可以通過單擊地圖上或任何地方的標記來獲取緯度和經度等信息。\",\"create\":\"建立景點並加入計畫\",\"definition_window_title\":\"原點定義\",\"lat\":\"緯度\",\"lng\":\"經度\",\"map\":\"指定地點\",\"new_custom_spot\":\"登錄新景點\",\"required\":\"必須記入\",\"spot_name\":\"景點名稱\",\"spot_name_error\":\"請填寫此字段。\",\"stay_time\":\"停留時間(單位:分鐘)\",\"stay_time_error\":\"請填寫一個大於 0 的數字。\"},\"top_menu\":{\"back\":\"返回\\\\\"編輯方案\\\\\"\"}},\"export_mailer\":{\"send\":{\"failure\":\"請輸入有效的電子郵件地址。\",\"success\":\"電子郵件已發送至 %{mail}\"},\"share_plan_mail\":{\"content\":\"您可以從這串網址連結至您制定的觀光計畫。\",\"no_reply\":\"* 請勿回覆此郵件。\",\"subject\":\"JapanConcierge\",\"title\":\"感謝您使用 JapanConcierge。\"}},\"exports\":{\"show\":{\"cannot_published_plan\":\"無法發布包含原始景點的計劃\",\"jorudan_publish\":\"發布模型課程\",\"mail_submit\":\"傳送\",\"more\":\"見更多\",\"my_plans\":\"我的計劃\",\"no_data\":\"無信息\",\"qrcode\":\"掃描此 2D Code 即可打開這項方案。\",\"revise_plan\":\"重新編輯\",\"send_mail\":\"用電子郵件轉送此計畫\",\"share_plan\":\"分享這個計劃\",\"view_map\":\"查看地圖\"},\"spots\":{\"total_time\":\"總量: %{time}\"}},\"map_partials\":{\"common\":{\"add_to_course\":\"添加到課程\",\"detail\":\"詳細\",\"remove\":\"刪除\",\"set_goal\":\"目標\",\"set_start\":\"開始\"},\"plan_spot_info_window\":null,\"spot_info_window\":null},\"plans\":{\"edit\":{\"update\":\"更新\"}},\"spot_modals\":{\"show\":{\"address\":\"地址\",\"closed\":\"休息日\",\"detail\":\"詳細\",\"images\":\"圖像\",\"move_to_last\":\"移至最後\",\"move_to_top\":\"移至頂部\",\"note\":\"備註\",\"open_hours\":\"營業時間\",\"other_links\":\"其他鏈接\",\"remove_from_my_plan\":\"從個人計畫中刪除\",\"tel\":\"電話號碼\",\"url\":\"URL\"}},\"spots\":{\"spot\":{\"add_to_my_plan\":\"加入我的計劃\"}},\"transits\":{\"modes\":{\"auto\":\"自動選擇\",\"car\":\"車\",\"train\":\"電車·巴士\",\"walk\":\"步行\"},\"transit\":{\"direction\":\"走法\"}}}}'\n )\n);\n","import Rails from '@rails/ujs';\n\nimport 'controllers';\nimport '../japan_concierge/i18n/en';\nimport '../japan_concierge/i18n/fr';\nimport '../japan_concierge/i18n/id';\nimport '../japan_concierge/i18n/ja';\nimport '../japan_concierge/i18n/ko';\nimport '../japan_concierge/i18n/th';\nimport '../japan_concierge/i18n/vi';\nimport '../japan_concierge/i18n/zh-CN';\nimport '../japan_concierge/i18n/zh-TW';\nimport './server_rendering';\n\nRails.start();\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","document","addEventListener","detail","xhr","token","getToken","setRequestHeader","data","context","require","definitionsFromContext","window","iFrameResizer","onMessage","message","clientHeight","planConfigureStore","dispatch","setClientHeight","exportConfigureStore","iframeRect","setIframeTop","application","Application","start","planStore","load","controllers","Controller","static","connect","this","submitButtonTarget","click","event","messageTarget","innerHTML","UPDATE_EVENT","REQUEST_EVENT","RECEIVE_EVENT","sendFavoriteSpotUpdated","CustomEvent","dispatchEvent","requestFavoriteSpots","getAll","sendAll","disconnect","removeEventListener","Rails","ajax","url","path","type","beforeSend","options","fire","element","success","ids","length","get","setState","includes","addTarget","classList","add","removeTarget","remove","added","removed","parseInt","TOKEN_IDENTIFIER","localStorage","getItem","setToken","setItem","postCourseInfoMessageToJorudan","receiverOrigin","process","env","JORUDAN_POST_MESSAGE_HOST","parent","postMessage","action","courseInfo","courseInfoTarget","value","tokenEvent","Turbolinks","clearCache","visit","loadUrl","Sortable","create","handle","onEnd","newIndex","oldIndex","planSpotIds","getState","planSpot","planSpotEntities","entities","swapSourcePlanSpot","swapTargetPlanSpot","deleteTransit","sortToApi","position","I18n","JSON","parse"],"sourceRoot":""}