PageSourceSearch

https://booking.sanco-inn.co.jp/page-OtaView-OtaReservation-GuestDetail-vue.d363c1cc9edf50911259.js

js sanco-inn.co.jp collected 2026-09-30 11:44:51 UTC 147,818 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[54],{1015:function(e,t,a){"use strict";a(989)},1018:function(e,t,a){"use strict";var n=a(103),r=a.n(n),o=a(327),i=a.n(o),s=a(861),l=a.n(s),u={props:{state:{type:[String,Boolean],default:null}},computed:{computedState:function computedState(){var e=this.state;return""===e?null:!0===e||"valid"===e||!1!==e&&"invalid"!==e&&null},stateClass:function stateClass(){var e=this.computedState;return!0===e?"is-valid":!1===e?"is-invalid":null}}},c=a(33),d=Object(c.a)({},(function render(){var e=this._self._c;return e("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"}},this.$listeners),[e("path",{attrs:{fill:"#9A9A9A",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])}),[],!1,null,null,null).exports;function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h={name:"CheckboxDropdown",components:{IconClose:a(323).a,ImageDelete:d},mixins:[u],props:{id:{type:String,default:null},loading:Boolean,loadingValue:Boolean,useTags:Boolean,disabled:Boolean,value:{type:[Array,String,Number,Boolean],default:void 0},optionWrapperClass:{type:[String,Array],default:function _default(){return[]}},options:{type:Array,default:function _default(){return[]}},hiddenOptions:{type:Array,default:function _default(){return[]}},fullOptions:{type:Array,default:function _default(){return[]}},maxHeight:{type:String,default:null},collapseItems:Boolean,icon:{type:String,default:null},text:{type:String,default:null},clearable:Boolean,radio:Boolean,remoteSearch:{type:Boolean,default:!1},hasSearch:{type:Boolean,default:!1},selectedItemsOnTop:{type:Boolean,default:!1},valueField:{type:String,default:"value"},textField:{type:String,default:"text"},descriptionField:{type:String,default:"description"},width:{type:Number,default:null},forceShowDelete:{type:Boolean,default:!1},forceButtonText:{type:String,default:""},hasSelectAllOptions:{type:Boolean,required:!1,default:!1},selectAllLabel:{type:String,required:!1,default:""},allSelectedDefault:{type:Boolean,required:!1,default:!1},pagination:{type:Boolean,required:!1,default:!1},totalCount:{type:Number,required:!1,default:0},totalCountLabel:{type:String,required:!1,default:""},perPage:{type:Number,required:!1,default:30},limit:{type:Number,default:null},required:Boolean,zIndex:{type:String,default:null},dataCy:{type:String,default:void 0},iconMode:{type:Boolean,default:!1}},data:function data(){return{search:"",isOverflown:!1,selectedItem:this.value,currentPage:1,allSelected:!1,indeterminate:!1}},computed:{dropdownStyle:function dropdownStyle(){return{zIndex:this.zIndex}},showDelete:function showDelete(){return!this.disabled&&(!!this.forceShowDelete||!!this.clearable&&(Array.isArray(this.value)?this.value.length>0:null!==this.value&&void 0!==this.value&&""!==this.value))},mappedOptions:function mappedOptions(){var e=this;return _toConsumableArray(this.options).map((function(t){var a;i()(t)&&(_defineProperty(a={},e.valueField,t),_defineProperty(a,e.textField,t),t=a);return t}))},isGroupOptions:function isGroupOptions(){return this.options.some((function(e){return e.options}))},displayOptions:function displayOptions(){var e=this,t=_toConsumableArray(this.mappedOptions);if(this.search&&!this.remoteSearch){var a=this.search.toLowerCase(),n=function optionFilter(t){return(t[e.textField]||"").toLowerCase().includes(a)||(t[e.de
1scriptionField]||"").toLowerCase().includes(a)};t=(t=t.filter((function(e){return e.options?(e.options||[]).some(n):n(e)}))).map((function(e){return e.options?function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(a,!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},e,{options:(e.options||[]).filter(n)}):e}))}if(this.selectedItemsOnTop&&Array.isArray(this.value)&&!this.allSelectedDefault){var r=[],o=[];if(t.forEach((function(t){e.selectedItem.includes(t[e.valueField])?r.push(t):o.push(t)})),this.pagination){var i=this.fullOptions.filter((function(t){return e.selectedItem.includes(t[e.valueField])}));r=l()(r,i,(function(t){return t[e.valueField]}))}t=[].concat(_toConsumableArray(r),o)}return t},itemsByValue:function itemsByValue(){var e=[].concat(_toConsumableArray(this.hiddenOptions),_toConsumableArray(this.fullOptions),_toConsumableArray(this.mappedOptions)).reduce((function(e,t){return t.options&&t.options.length?[].concat(_toConsumableArray(e),_toConsumableArray(t.options)):[].concat(_toConsumableArray(e),[t])}),[]);return r()(e,this.valueField)},selectedItemList:function selectedItemList(){var e=this;return this.options.length||this.selectedItem?Array.isArray(this.selectedItem)?this.pagination?this.selectedItem.map((function(t){var a=e.fullOptions.find((function(a){return a[e.valueField]===t}));return a&&a[e.textField]})):this.selectedItem.filter((function(t){return e.itemsByValue[t]})).map((function(t){return e.itemsByValue[t][e.textField]})):null!==this.selectedItem&&void 0!==this.selectedItem?this.itemsByValue[this.selectedItem]?[this.itemsByValue[this.selectedItem][this.textField]]:[this.selectedItem]:[]:[]},isEmpty:function isEmpty(){return void 0===this.selectedItem||null===this.selectedItem||!this.selectedItemList.length},buttonText:function buttonText(){return this.forceButtonText?this.forceButtonText:this.isEmpty?this.text:this.isOverflown?this.selectedItemList[0]:this.selectedItemList.join(", ")}},watch:{search:function search(){this.currentPage=1},value:{immediate:!0,handler:function handler(e){this.radio||Array.isArray(e)?this.selectedItem=e:this.selectedItem=e?[e]:[]}},selectedItemList:function selectedItemList(){this.updateBadge()},allSelectedDefault:{handler:function handler(e){this.allSelected=e},immediate:!0}},mounted:function mounted(){this.updateBadge()},methods:{isOptionDisabled:function isOptionDisabled(e){return!(!Array.isArray(this.value)||!Number.isInteger(this.limit))&&(this.value.length>=this.limit&&!this.value.includes(e[this.valueField]))},updateBadge:function updateBadge(){var e=this;this.collapseItems&&!this.useTags&&(this.isOverflown=!1,this.$nextTick((function(){var t=e.$refs.buttonText;e.isOverflown=(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.clientWidth)})))},toggleAll:function toggleAll(e){var t=this;this.selectedItem=e?this.pagination?this.fullOptions.map((function(e){return e[t.valueField]})):this.options.map((function(e){return e[t.valueField]})):[],this.changeDropdown(this.selectedItem)},emitChange:function emitChange(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedItem;this.$emit("change",e),this.$emit("input",e)},removeItem:function removeItem(e){this.selectedItem=this.selectedItem.filter((function(t){return t!==e})),this.emitChange()},changeDropdown:function changeDropdown(e){0===(null==e?void 0:e.length)?(this.indeterminate=!1,this.allSelected=!1):(null==e?void 0:e.length)===this.fullOptions.length&&this.hasSelectAllOptions?(this.indeterminate=!1,this.allSelected=!0):(this.indeterminate=!0,this.allSelected=!1),this.emitChange(e),this.$emit("selected-all",this.allSelected)},clearValue:function clearValue(e){e.stopPropagation();var t=Array.isArray(this.value)?[]:null;this.$emit("change",t),this.$emit("input",t)},stopPropagation:function stopPropagation(e){e.stopPropagation()}}},m=(a(1015),Object(c.a)(h,(function render(){var e=this,t=e._self._c;return t("div",{class:["checkbox-dropdown-wrap",{"has-value":!e.isEmpty,"icon-mode":e.iconMode}]},[t("b-dropdown",{ref:"dropdown",staticClass:"w-100",class:["checkbox-dropdown",e.stateClass,{"has-icon":!!e.icon||e.$slots.icon,"hide-arrow":e.showDelete,disabled:e.disabled}],style:e.dropdownStyle,attrs:{id:e.id,disabled:e.disabled,variant:"outline","data-cy":e.dataCy},scopedSlots:e._u([{key:"button-content",fn:function fn(){return[e.icon||e.$slots.icon?t("i",{staticClass:"dropdown-icon"},[e._t("icon",(function(){return[t("img",{attrs:{src:e.icon}})]}))],2):e._e(),e._v(" "),e.useTags&&e.selectedItemList.length?t("ul",{staticClass:"selected-items"},e._l(e.selectedItem,(function(a){return t("li",{key:a},[t("span",[e._v(e._s(e.itemsByValue[a][e.textField]))]),e._v(" "),e.disabled?e._e():t("icon-close",{on:{click:function click(t){return t.stopPropagation(),e.removeItem(a)}}}
1)],1)})),0):e.loadingValue?t("div",[t("b-spinner",{directives:[{name:"theme-font-color",rawName:"v-theme-font-color"}],attrs:{small:""}})],1):t("span",{ref:"buttonText",class:["button-text max-w-100%",{placeholder:!e.selectedItemList.length,required:e.required}]},[e._t("button-text",(function(){return[e._v(e._s(e.buttonText||" "))]}),{buttonText:e.buttonText,selectedItem:e.selectedItem})],2),e._v(" "),!e.radio&&e.isOverflown&&e.selectedItemList.length>1?t("b-badge",{staticClass:"ml-2"},[e._v("+"+e._s(e.selectedItemList.length-1))]):e._e(),e._v(" "),e.showDelete?t("image-delete",{staticClass:"icon-delete",on:{click:function click(t){return t.stopPropagation(),t.preventDefault(),e.clearValue.apply(null,arguments)}}}):e._e()]},proxy:!0},{key:"default",fn:function fn(a){var n=a.hide;return[e._t("fixed-top"),e._v(" "),e.loading?t("div",{staticClass:"d-flex justify-content-center py-2"},[t("b-spinner",{directives:[{name:"theme-font-color",rawName:"v-theme-font-color"}],attrs:{small:""}})],1):e._e(),e._v(" "),e._t("top",null,{selectedItems:e.selectedItem}),e._v(" "),e._t("body",(function(){return[t("b-dropdown-text",{staticClass:"dropdown-wrap",style:{maxHeight:e.maxHeight,width:e.width}},[e._t("dropdown-content",(function(){return[e.hasSearch?t("div",{staticClass:"search-bar"},[t("b-input",{attrs:{type:"text",placeholder:e.$t("base.search")},on:{input:function input(t){return e.$emit("search",t)}},model:{value:e.search,callback:function callback(t){e.search=t},expression:"search"}})],1):e._e(),e._v(" "),e._t("below-search"),e._v(" "),e.options.length&&!e.loading?t("div",[e.radio?[e.isGroupOptions?e._l(e.displayOptions,(function(a,r){return t("div",{key:"".concat(a.value,"-").concat(r),staticClass:"option-group"},[t("b-form-group",{attrs:{label:a.text}},[t("b-form-radio-group",{attrs:{buttons:"",stacked:"",options:a.options,"value-field":e.valueField,"text-field":e.textField}
1,on:{input:n,change:e.changeDropdown},model:{value:e.selectedItem,callback:function callback(t){e.selectedItem=t},expression:"selectedItem"}})],1)],1)})):t("b-form-radio-group",{attrs:{stacked:"",buttons:"","value-field":e.valueField,"text-field":e.textField},on:{input:n,change:e.changeDropdown},model:{value:e.selectedItem,callback:function callback(t){e.selectedItem=t},expression:"selectedItem"}},e._l(e.displayOptions,(function(a){return t("b-form-radio",{key:a[e.valueField],attrs:{"data-cy":"dropdown-radio-".concat(a[e.valueField]),value:a[e.valueField]}},[t("div",{class:e.optionWrapperClass},[e._t("text",(function(){return[e._v(e._s(a[e.textField]))]}),null,a),e._v(" "),e._t("description",(function(){return[a[e.descriptionField]?t("div",{domProps:{textContent:e._s(a[e.descriptionField])}}):e._e()]}),null,a)],2)])})),1)]:[e.hasSelectAllOptions?t("b-form-checkbox",{staticClass:"select-all",attrs:{indeterminate:e.indeterminate},on:{change:e.toggleAll},model:{value:e.allSelected,callback:function callback(t){e.allSelected=t},expression:"allSelected"}},[e._v("\n                    "+e._s(e.allSelected?e.$t("base.cancelAll"):e.$t("base.selectAll"))+"\n                  ")]):e._e(),e._v(" "),t("b-form-checkbox-group",{staticClass:"checkbox-dropdown-group",attrs:{stacked:""},on:{change:e.changeDropdown},model:{value:e.selectedItem,callback:function callback(t){e.selectedItem=t},expression:"selectedItem"}},e._l(e.displayOptions,(function(a,n){return t("b-form-checkbox",{key:"".concat(a[e.valueField],"-").concat(n),attrs:{"data-cy":"dropdown-checkbox-".concat(a[e.valueField]),value:a[e.valueField],disabled:e.isOptionDisabled(a)}},[e._t("text",(function(){return[e._v("\n                        "+e._s(a[e.textField])+"\n                        "),a.open_link?t("a",{staticClass:"float-right",attrs:{href:a.open_link,target:"_blank"}},[t("svg-icon",{staticClass:"icon-xs t-theme-fill",attrs:{"icon-class":"launch"}})],1):e._e()]}),null,a),e._v(" "),e._t("description",(function(){return[a[e.descriptionField]?t("div",{domProps:{textContent:e._s(a[e.descriptionField])}}):e._e()]}),null,a)],2)})),1)]],2):e._e(),e._v(" "),e.options.length||e.loading?e._e():t("b-dropdown-text",{staticClass:"text-center"},[t("span",{staticClass:"gray-font"},[e._v(e._s(e.$t("base.noData")))])]),e._v(" "),e._t("footer"),e._v(" "),e.pagination&&e.totalCount>e.perPage?t("t-pagination",{staticClass:"mt-3 mb-3",attrs:{align:"center","record-text":e.totalCountLabel,"total-rows":e.totalCount,"per-page":e.perPage},on:{input:function input(t){return e.$emit("pagination-changed",t)}},nativeOn:{click:function click(t){return e.stopPropagation.apply(null,arguments)}},model:{value:e.currentPage,callback:function callback(t){e.currentPage=t},expression:"currentPage"}}):e._e()]}))],2)]}))]}}],null,!0)}),e._v(" "),e.iconMode?[e.isEmpty?t("svg-icon",{staticClass:"cursor-pointer w-20px mt--3px",attrs:{"icon-class":"filter-off"},on:{click:function click(t){return t.stopPropagation(),t.preventDefault(),e.$refs.dropdown.show()}}}):t("svg-icon",{staticClass:"cursor-pointer t-theme-fill w-20px mt--3px",attrs:{"icon-class":"filter-on"},on:{click:function click(t){return t.stopPropagation(),t.preventDefault(),e.$refs.dropdown.show()}}})]:e._e()],2)}),[],!1,null,"00c75e50",null));t.a=m.exports},1029:function(e,t,a){},1030:function(e,t,a){},1031:function(e,t,a){},1032:function(e,t,a){},1044:function(e,t,a){},1045:function(e,t,a){},1071:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return getAddressDetailByJAPostalCode}));var n=a(866),r=/^\d{3}-\d{4}$|^\d{7}$/;function getAddressDetailByJAPostalCode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r.test(e)&&Array.isArray(t)?new Promise((function(a){Object(n.get)(e,(function(e){var n;if(!e)return a(null);var r=e.prefecture,o=e.city,i=e.area,s=e.street,l=Array.isArray(t)?null===(n=t.find((function(e){return e.jaText===r||e.text===r})))||void 0===n?void 0:n.value:null;
1a({prefectureOrState:l,streetAddress:"".concat(o).concat(i).concat(s)})}))})):null}},1080:function(e,t,a){"use strict";var n=a(40),r=a(202),o=a.n(r),i=a(859),s=a.n(i),l=a(23),u=a(11);function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(a,!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var c={name:"PerRoomPeopleSelect",props:{additionalQuestion:{type:Object,required:!0},v:{type:Object,default:null}},data:function data(){return{isOta:l.t,isInit:!0}},computed:_objectSpread({},Object(n.d)({isUpdateMode:"booking/isUpdateMode"}),{optional:function optional(){return!this.additionalQuestion.required},isTitleBold:function isTitleBold(){return!this.isOta||this.isOta&&this.$route.name!==u.a.reservation.guestDetail}}),methods:_objectSpread({generateOptions:function generateOptions(e){return o()(0,Number(e)+1)},fieldState:function fieldState(e,t){var a,n;return this.v&&(null===(a=this.v)||void 0===a||null===(n=a.peoplePerRoomFilled)||void 0===n?void 0:n.$dirty)?!(this.v.peoplePerRoomFilled.$invalid&&!s()(e[t])):null},onCountChange:function onCountChange(e,t,a){this.isInit=!1,this.setPerRoomPeopleInRooms({roomIndex:e,attr:t,value:null===a?null:Number(a)})}},Object(n.c)({setPerRoomPeopleInRooms:"booking/setPerRoomPeopleInRooms"}))},d=(a(1107),a(33)),h=Object(d.a)(c,(function render(){var e=this,t=e._self._c;return t("div",[t("p",{staticClass:"mb-1",class:{"col-form-label p-0":e.isTitleBold}},[e._v("\n      "+e._s(e.additionalQuestion.question)+" ("+e._s(e.$t(e.optional?"base.optional":"base.required"))+")\n    ")]),e._v(" "),e._l(e.additionalQuestion.answer.rooms,(function(a,n){return t("div",{key:n},[t("label",{staticClass:"gray-font text-sm d-block"},[e._v(e._s(a.room_type_name)+" "+e._s(e.$t("reservationDetail.roomNb",[n+1])))]),e._v(" "),t("b-form-group",{staticClass:"people-input",attrs:{label:e.$t("additionalQuestion.adultMale"),"invalid-feedback":e.$t("base.requireMessage")}},[t("b-form-select",{attrs:{options:e.generateOptions(a.adults),value:a.men_count,state:e.fieldState(a,"men_count"),"data-cy":"room-".concat(n,"-question-").concat(e.additionalQuestion.id,"-men_count")},on:{input:function input(t){return e.onCountChange(n,"men_count",t)}}},[t("template",{slot:"first"},[t("option",{domProps:{value:null}},[e._v("-")])])],2)],1),e._v(" "),t("b-form-group",{staticClass:"people-input",attrs:{label:e.$t("additionalQuestion.adultFemale"),"invalid-feedback":e.$t("base.requireMessage")}},[t("b-form-select",{attrs:{options:e.generateOptions(a.adults),value:a.women_count,state:e.fieldState(a,"women_count"),"data-cy":"room-".concat(n,"-question-").concat(e.additionalQuestion.id,"-women_count")},on:{input:function input(t){return e.onCountChange(n,"women_count",t)}}},[t("template",{slot:"first"},[t("option",{domProps:{value:null}},[e._v("-")])])],2)],1)],1)}))],2)}),[],!1,null,"a0e3cd0a",null).exports,m=a(136),f={name:"PerRoomPeopleText",props:{additionalQuestion:{type:Object,required:!0}},methods:{_isFinite:a.n(m).a}},_=Object(d.a)(f,(function render(){var e=this,t=e._self._c;return t("div",e._l(e.additionalQuestion.answer.rooms,(function(a,n){return t("p",{key:n,staticClass:"mb-2",attrs:{"data-cy":"room-".concat(n,"-question-").concat(e.additionalQuestion.id,"-ppl-count")}},[t("strong",[e._v(e._s(a.room_type_name)+" "+e._s(e.$t("reservationDetail.roomNb",[n+1]))+":")]),e._v("\n      "+e._s(e._isFinite(a.men_count)?a.men_count:"-")+"\n      "+e._s(e.$t("additionalQuestion.adultMale"))+",\n      "+e._s(e._isFinite(a.women_count)?a.women_count:"-")+"\n      "+e._s(e.$t("additionalQuestion.adultFemale"))+"\n    ")])})),0)}),[],!1,null,null,null).exports,p=function _timePrefix(e){return e<10?"0".concat(e):e},g=function _hourPrefix(e){return p(e>=24?e-24:e)};var b=a(50),v=a(38),y=a.n(v);function CheckTimevue_type_script_lang_js_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function CheckTimevue_type_script_lang_js_defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var k={name:"CheckTime",props:{additionalQuestion:{type:Object,required:!0},value:{type:String,default:null},noPastTime:Boolean,defaultFirstOption:Boolean,endedAt:{type:String,default:"23:45"},setCheckTime:{type:Function,required:!0}},computed:{timeOptions:function timeOptions(){if(this.additionalQuestion.settings){var e=function createTimeList(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{started_at:"00:00",ended_at:"23:59",time_interval_value:30},t=e.started_at.split(":"),a=e.ended_at.split(":"),n=parseInt(t[0],10),r=parseInt(t[1],10),o=parseInt(a[0],10),i=parseInt(a[1],10);(o<n||o===n&&i<r)&&(o+=24);for(var s=[],l=n,u=r;l<o||l===o&&u<=i;){var c=g(l)+":"+p(u);s.push(c),(u+=e.time_interval_value)>=60&&(u-=60,l+=1)}return s}(function CheckTimevue_type_script_lang_js_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?CheckTimevue_type_script_lang_js_ownKeys(a,!0).forEach((function(t){CheckTimevue_type_script_lang_js_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):CheckTimevue_type_script_lang_js_ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},this.additionalQuestion.settings,{ended_at:this.endedAt}));if(this.noPastTime){var t=e.findIndex((function(t,a){return a>0&&t<e[a-1]})),a=Object(b.s)("HH:mm"),n=this.defaultFirstOption?null:this.value;e=e.filter((function(r,o){return t>-1&&o>=t||y()(r,"HH:mm").isAfter(y()(a,"HH:mm"),"minute")||r===n||o===e.length-1}))}return e}return[]},optional:function optional(){return!this.additionalQuestion.required}},created:function created(){this.defaultFirstOption&&this.setCheckTime({question:this.additionalQuestion,value:this.timeOptions[0]})}},j=Object(d.a)(k,(function render(){var e=this,t=e._self._c;return t("b-form-group",{attrs:{label:"".concat(e.additionalQuestion.question," (").concat(e.$t(e.optional?"base.optional":"base.required"),")")}},[t("b-form-select",{attrs:{"data-cy":"question-".concat(e.additionalQuestion.id,"-check-time"),options:e.timeOptions,value:e.value},on:{input:function input(t){return e.setCheckTime({question:e.additionalQuestion,value:t})}}},[e.optional?t("template",{slot:"first"},[t("option",{domProps:{value:null}},[e._v(e._s(e.$t("base.notSelected")))])]):e._e()],2)],1)}),[],!1,null,null,null).exports,H={name:"AnswerText",props:{label:{type:String,required:!0},value:{type:String,default:null},additionalQuestion:{type:Object,required:!0}}},z=Object(d.a)(H,(function render(){var e=this,t=e._self._c;return t("p",{staticClass:"mb-2"},[t("strong",{attrs:{"data-cy":"question-".concat(e.additionalQuestion.id,"-label")}},[e._v(e._s(e.label))]),e._v(": "),t("span",{attrs:{"data-cy":"question-".concat(e.additionalQuestion.id,"-value")}},[e._v(e._s(e.value||"-"))])])}),[],!1,null,null,null).exports,O={name:"AnswerText",props:{label:{type:String,required:!0},value:{type:String,default:null},additionalQuestion:{type:Object,required:!0}}},w=Object(d.a)(O,(function render(){var e=this,t=e._self._c;return t("div",[t("p",{staticClass:"mb-0 font-weight-bold",attrs:{"data-cy":"question-".concat(e.additionalQuestion.id,"-label")}},[e._v("\n      "+e._s(e.label)+"\n    ")]),e._v(" "),t("p",{staticClass:"mb-2",attrs:{"data-cy":"question-".concat(e.additionalQuestion.id,"-value")}},[e._v(e._s(e.value||"-"))])])}),[],!1,null,null,null).exports,C=a(20),P=a.n(C);function FreeQuestionvue_type_script_lang_js_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function FreeQuestionvue_type_script_lang_js_defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var x={name:"FreeQuestion",props:{additionalQuestion:{type:Object,required:!0},questionIndex:{type:Number,required:!0},v:{type:Object,required:!0}},computed:{optional:function optional(){return!this.additionalQuestion.required},selectOptions:function selectOptions(){return P()(this.additionalQuestion.settings,["answer_options",this.$i18n.locale],[]).map((function(e){var t=e.text;return{text:t,value:t}}))}},methods:function FreeQuestionvue_type_script_lang_js_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?FreeQuestionvue_type_script_lang_js_ownKeys(a,!0).forEach((function(t){FreeQuestionvue_type_script_lang_js_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):FreeQuestionvue_type_script_lang_js_ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.e)("booking",["setQuestionAnswerText"]),{_get:P.a,selectChange:function selectChange(e){this.v&&this.v.answer.text.$touch(),this.setQuestionAnswerText({index:this.questionIndex,value:e})}})},S=Object(d.a)(x,(function render(){var e=this,t=e._self._c;return t("b-form-group",{attrs:{label:"".concat(e.additionalQuestion.question," (").concat(e.$t(e.optional?"base.optional":"base.required"),")"),"invalid-feedback":e.$t("base.requireMessage")}},["text"===e.additionalQuestion.answer_type?t("b-form-textarea",{attrs:{value:e.additionalQuestion.answer.text,state:e.v&&e.v.answer.text.$dirty?!e.v.answer.text.$error:null,"max-length":e.additionalQuestion.settings.answer_length,"data-cy":"question-".concat(e.additionalQuestion.id,"-textarea")},on:{input:function input(t){e.setQuestionAnswerText({index:e.questionIndex,value:t.trim()})},blur:function blur(t){e.v&&e.v.answer.text.$touch()}}}):t("b-form-select",{attrs:{options:e.selectOptions,value:e.additionalQuestion.answer.text,state:e.v&&e.v.answer.text.$dirty?!e.v.answer.text.$error:null,"data-cy":"question-".concat(e.additionalQuestion.id,"-select")},on:{change:e.selectChange}},[t("template",{slot:"first"},[t("option",{domProps:{value:null}},[e._v(e._s(e.$t("base.notSelected")))])])],2)],1)}
1),[],!1,null,null,null).exports,$=a(1108),A=a.n($),I=a(1109),F=a.n(I),D=a(31),E=a(259),T=a(858),N={name:"ImageList",props:{images:{type:Array,default:function _default(){return[]}},deletable:{type:Boolean,default:!0}},data:function data(){return{modalId:"file-attachment-preview-modal-".concat(Object(E.v4)()),isMobile:Object(D.h)(),isSafari:Object(D.j)(),pdfIcon:A.a,closePreview:F.a,previewUrl:"",previewTransform:{acc:{x:0,y:0,scale:1},current:{x:0,y:0,scale:1}}}},computed:{previewStyle:function previewStyle(){var e=this.previewTransform,t=e.acc,a=e.current,n=t.x+a.x,r=t.y+a.y,o=t.scale*a.scale;return{transform:["translate(".concat(n,"px, ").concat(r,"px) scale(").concat(o)],transition:"transform 0.1s"}}},methods:{preview:function preview(e){this.resetTransform(),this.$bvModal.show(this.modalId),this.previewUrl=e},remove:function remove(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.previewUrl;this.$bvModal.hide(this.modalId),this.$emit("remove",e),this.previewUrl=""},handlePinch:a.n(T)()((function(e){var t=e.deltaX,a=e.deltaY,n=e.scale;"pinchend"===e.type?(this.previewTransform.acc.x+=t,this.previewTransform.acc.y+=a,this.previewTransform.acc.scale*=n,this.previewTransform.current={x:0,y:0,scale:1}):this.previewTransform.current={x:t,y:a,scale:n}}),50),resetTransform:function resetTransform(){this.previewTransform={acc:{x:0,y:0,scale:1},current:{x:0,y:0,scale:1}}}}},q=(a(1110),Object(d.a)(N,(function render(){var e=this,t=e._self._c;return t("ul",{staticClass:"m-0 p-0"},[e._l(e.images,(function(a){return t("li",{key:a.url,staticClass:"d-flex attachment align-items-center"},[a.pdf?t("img",{staticClass:"thumbnail",attrs:{src:e.pdfIcon}}):e._e(),e._v(" "),a.pdf?e._e():t("img",{staticClass:"thumbnail",attrs:{src:a.url}}),e._v(" "),t("p",{staticClass:"m-0 ml-1 mr-1 text-truncate"},[e._v(e._s(a.filename))]),e._v(" "),e.isMobile?t("div",{staticClass:"flex-fill"}):e._e(),e._v(" "),a.pdf?e._e():t("span",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"text-nowrap font-weight-bold cursor-pointer",on:{click:function click(t){return e.preview(a.url)}}},[e._v(e._s(e.$t("additionalQuestion.view")))]),e._v(" "),a.pdf?t("a",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"text-nowrap font-weight-bold cursor-pointer",attrs:{href:a.url,target:"_blank"}},[e._v(e._s(e.$t("additionalQuestion.view")))]):e._e(),e._v(" "),e.deletable?t("div",{staticClass:"delete text-nowrap ml-3 font-weight-bold cursor-pointer",on:{click:function click(t){return t.preventDefault(),e.remove(a.url)}}},[e._v("\n        "+e._s(e.$t("base.delete"))+"\n      ")]):e._e()])})),e._v(" "),t("b-modal",{attrs:{id:e.modalId,centered:"","modal
1-class":"file-attachment-preview-modal",size:"lg","hide-header":"","hide-footer":"","hide-backdrop":"",static:""}},[t("div",{staticClass:"position-relative"},[t("img",{staticClass:"close-preview",attrs:{src:e.closePreview},on:{click:function click(t){return e.$bvModal.hide(e.modalId)}}}),e._v(" "),!e.isSafari&&e.isMobile?t("img",{directives:[{name:"recognizer",rawName:"v-recognizer:pinch.move",value:e.handlePinch,expression:"handlePinch",arg:"pinch",modifiers:{move:!0}},{name:"recognizer",rawName:"v-recognizer:pinch.end",value:e.handlePinch,expression:"handlePinch",arg:"pinch",modifiers:{end:!0}}],staticClass:"w-100 preview-img",style:e.previewStyle,attrs:{src:e.previewUrl}}):t("img",{staticClass:"w-100 preview-img",attrs:{src:e.previewUrl}}),e._v(" "),e.deletable?t("div",{staticClass:"delete-btn font-weight-bold",on:{click:function click(t){return e.remove(e.previewUrl)}}},[e._v("\n          "+e._s(e.$t("base.delete"))+"\n        ")]):e._e()])])],2)}),[],!1,null,"eb9edeba",null).exports),B=a(205),M=a.n(B),R={name:"FileAnswer",components:{ImageList:q},props:{label:{type:String,required:!0},additionalQuestion:{type:Object,required:!0}},computed:{images:function images(){var e,t;return(null===(e=this.additionalQuestion)||void 0===e||null===(t=e.attachments)||void 0===t?void 0:t.map((function(e,t){var a,n,r;return{url:null==e?void 0:e.url,idx:t,filename:M()(null==e||null===(a=e.url)||void 0===a?void 0:a.split(/[?#]/)[0].split(/\//)),pdf:"pdf"===(null===(n=M()(null==e||null===(r=e.url)||void 0===r?void 0:r.split(/[?#]/)[0].split(/\./)))||void 0===n?void 0:n.toLowerCase())}})))||[]}}},L=Object(d.a)(R,(function render(){var e=this._self._c;return e("div",{staticClass:"mb-2"},[e("p",{staticClass:"mb-0 font-weight-bold",attrs:{"data-cy":"question-".concat(this.additionalQuestion.id,"-label")}},[this._v("\n      "+this._s(this.label)+"\n    ")]),this._v(" "),e("image-list",{attrs:{deletable:!1,images:this.images}})],1)}),[],!1,null,null,null).exports,G=a(206),K=a.n(G),Q=a(209),V=a.n(Q),U=a(470),J=a.n(U),W=Object(d.a)({},(function render(){var e=this._self._c;return e("svg",this._g({attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}},this.$listeners),[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}})])}),[],!1,null,null,null).exports,Y=a(17),Z=a(15),X={post:function post(e){var t=new FormData;return t.append("file",e,e.name),Y.a.postData(Object(Z.bb)(),t,"multipart")}};function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function asyncGeneratorStep(e,t,a,n,r,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(n,r)}function FileAttachmentQuestionvue_type_script_lang_js_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function FileAttachmentQuestionvue_type_script_lang_js_defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var ee={name:"FileQuestion",components:{AddIcon:W,ImageList:q},props:{additionalQuestion:{type:Object,required:!0},questionIndex:{type:Number,required:!0}},data:function data(){return{MAX_FILES_COUNT:30,remote_attachments_urls:void 0}},computed:{accept:function accept(){return Object(D.h)()?"image/png,image/jpeg,.pdf,.heic":"image/png,image/jpeg,.pdf"},required:function required(){return this.additionalQuestion.required},images:function images(){var e;return(null===(e=this.remote_attachments_urls)||void 0===e?void 0:e.map((function(e){var t;return"string"!=typeof e?e:{url:e,filename:M()(null==e?void 0:e.split(/[?#]/)[0].split(/\//)),pdf:"pdf"===(null===(t=M()(null==e?void 0:e.split(/[?#]/)[0].split(/\./)))||void 0===t?void 0:t.toLowerCase())}})))||[]},requiredText:function requiredText(){return" (".concat(this.$t(this.required?"base.required":"base.optional"),")")}},watch:{remote_attachments_urls:function remote_attachments_urls(e,t){void 0!==t&&void 0!==e&&(this.setQuestionAnswer({index:this.questionIndex,value:{}}),this.setQuestionAttachments({index:this.questionIndex,value:e}))}},created:function created(){var e;this.remote_attachments_urls=this.additionalQuestion.remote_attachments_urls||(null===(e=this.additionalQuestion.attachments)||void 0===e?void 0:e.map((function(e){return null==e?void 0:e.url})))||[]},methods:function FileAttachmentQuestionvue_type_script_lang_js_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?FileAttachmentQuestionvue_type_script_lang_js_ownKeys(a,!0).forEac
1h((function(t){FileAttachmentQuestionvue_type_script_lang_js_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):FileAttachmentQuestionvue_type_script_lang_js_ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.e)("booking",["setUploadingAttachment","setQuestionAttachments","setQuestionAnswer"]),{onFile:function onFile(e){var t,a=this;K()(null==e||null===(t=e.target)||void 0===t?void 0:t.files,function(){var e=function _asyncToGenerator(e){return function(){var t=this,a=arguments;return new Promise((function(n,r){var o=e.apply(t,a);function _next(e){asyncGeneratorStep(o,n,r,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,n,r,_next,_throw,"throw",e)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(e){var t,n,r,o,i,s,l,u;return regeneratorRuntime.wrap((function _callee$(c){for(;;)switch(c.prev=c.next){case 0:if(30!==a.remote_attachments_urls.length){c.next=3;break}return a.$store.dispatch("error/setGlobalError",a.$t("base.upTo30FilesError")),c.abrupt("return");case 3:if(!(e.size>83886080)){c.next=6;break}return a.$store.dispatch("error/setGlobalError",a.$t("base.fileLimit80MB")),c.abrupt("return");case 6:return o=URL.createObjectURL(e),a.remote_attachments_urls.push({url:o,filename:e.name,uploading:!0,pdf:"pdf"===(null===(t=M()(null===(n=e.name)||void 0===n?void 0:n.split(/\./)))||void 0===t?void 0:t.toLowerCase())}),i=X.post(e),a.setUploadingAttachment(i),c.next=12,i;case 12:s=c.sent,l=null==s||null===(r=s.data)||void 0===r?void 0:r.url,(u=J()(a.remote_attachments_urls,{url:o}))>=0&&l&&(a.remote_attachments_urls[u]=l,a.$set(a,"remote_attachments_urls",_toConsumableArray(a.remote_attachments_urls)));case 16:case"end":return c.stop()}}),_callee)})));return function(t){return e.apply(this,arguments)}}())},remove:function remove(e){this.remote_attachments_urls=V()(this.remote_attachments_urls,(function(t){return t===e||(null==t?void 0:t.url)===e}))}})},te=(a(1111),Object(d.a)(ee,(function render(){var e,t=this,a=t._self._c;return a("b-form-group",{attrs:{label:"".concat(t.additionalQuestion.question).concat(t.requiredText),"invalid-feedback":t.$t("base.requireMessage")}},[a("image-list",{attrs:{images:t.images},on:{remove:t.remove}}),t._v(" "),(null===(e=t.remote_attachments_urls)||void 0===e?void 0:e.length)<t.MAX_FILES_COUNT?a("label",{directives:[{name:"theme-font",rawName:"v-theme-font"}],staticClass:"mt-1 add-btn d-flex cursor-pointer",attrs:{"data-cy":"question-".concat(t.additionalQuestion.id,"-file-label")}},[a("add-icon",{staticClass:"icon"}),t._v("\n      "+t._s(t.$t("base.attachFile"))+" ("+t._s(t.$t("base.upTo30Files"))+")\n      "),a("input",{staticClass:"d-none",attrs:{multiple:"",type:"file",name:"file",accept:t.accept,"data-cy":"question-".concat(t.additionalQuestion.id,"-file")},on:{change:t.onFile}})],1):t._e()],1)}),[],!1,null,"6dc1cb0a",null).exports),ae=a(81);function AdditionalQuestionFormvue_type_script_lang_js_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function AdditionalQuestionFormvue_type_script_lang_js_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?AdditionalQuestionFormvue_type_script_lang_js_ownKeys(a,!0).forEach((function(t){AdditionalQuestionFormvue_type_script_lang_js_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):AdditionalQuestionFormvue_type_script_lang_js_ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function AdditionalQuestionFormvue_type_script_lang_js_defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var ne={name:"AdditionalQuestionForm",components:{PerRoomPeopleSelect:h,PerRoomPeopleText:_,CheckTime:j,AnswerText:z,FreeAnswerText:w,FreeQuestion:S,FileAttachmentAnswer:L,FileAttachmentQuestion:te},props:{additionalQuestions:{type:Array,required:!0},viewOnly:{type:Boolean,default:!1},displayMode:{type:Boolean,default:!1},checkinDate:{type:String,default:null},questionsV:{type:Object,default:function _default(){return{}}}},computed:AdditionalQuestionFormvue_type_script_lang_js_objectSpread({},Object(n.d)({defaultSearchSetings:"setting/getDefautSearch"})),methods:AdditionalQuestionFormvue_type_script_lang_js_objectSpread({},Object(n.c)({setCheckinTime:"booking/setCheckinTime",setCheckoutTime:"booking/setCheckoutTime"}),{questionMapping:function questionMapping(e){var t,a,n,r,o,i,s;return AdditionalQuestionFormvue_type_script_lang_js_defineProperty(s={},ae.c.PEOPLE_PER_ROOM,{answerElement:"PerRoomPeopleText",formElement:"PerRoomPeopleSelect"}),AdditionalQuestionFormvue_type_script_lang_js_defineProperty(s,ae.c.CHECKIN,{answerElement:"AnswerText",formElement:"CheckTime",props:{label:this.$t("additionalQuestion.checkinTime"),value:P()(e,["answer","rooms",0,"checkin_time"]),setCheckTime:this.setCheckinTime,noPastTime:Object(b.p)(this.checkinDate)||Object(b.o)(this.checkinDate,"YYYY/MM/DD","day"),endedAt:Object(b.o)(this.checkinDate,"YYYY/MM/DD","day")?this.defaultSearchSetings.max_late_booking_time:e.settings.ended_at,defaultFirstOption:e.required&&!(null===(t=e.answer)||void 0===t||null===(a=t.rooms)||void 0===a||null===(n=a[0])||void 0===n?void 0:n.checkin_time)}}),AdditionalQuestionFormvue_type_script_lang_js_defineProperty(s,ae.c.CHECKOUT,{answerElement:"AnswerText",formElement:"CheckTime",props:{label:this.$t("additionalQuestion.checkoutTime"),value:P()(e,["answer","rooms",0,"checkout_time"]),setCheckTime:this.setCheckoutTime,endedAt:e.settings.ended_at,defaultFirstOption:e.required&&!(null===(r=e.answer)||void 0===r||null===(o=r.rooms)||void 0===o||null===(i=o[0])||void 0===i?void 0:i.checkout_time)}}),AdditionalQuestionFormvue_type_script_lang_js_defineProperty(s,ae.c.FREE,{answerElement:"FreeAnswerText",formElement:"FreeQuestion",props:{label:e.question,value:e.answer&&e.answer.text}}),AdditionalQuestionFormvue_type_script_lang_js_defineProperty(s,ae.c.FILE_ATTACHMENT,{answerElement:"FileAttachmentAnswer",formElement:"FileAttachmentQuestion",props:{label:e.question,value:e.answer}}
1),s}})},re=Object(d.a)(ne,(function render(){var e=this,t=e._self._c;return e.viewOnly||e.displayMode?t("div",{staticClass:"text-sm"},[e._l(e.additionalQuestions,(function(a,n){return t(e.questionMapping(a)[a.question_type].answerElement,e._b({key:"answer-".concat(n),tag:"component",attrs:{"additional-question":a}},"component",e.questionMapping(a)[a.question_type].props,!1))})),e._v(" "),e.viewOnly?e._e():t("b-button",{staticClass:"w-100",attrs:{id:"additional-question-edit",variant:"outline-dark"},on:{click:function click(t){return e.$emit("toggleMode")}}},[e._v("\n      "+e._s(e.$t("base.edit"))+"\n    ")])],2):t("b-form",{on:{submit:function submit(t){return t.preventDefault(),e.$emit("submit")}}},[e._l(e.additionalQuestions,(function(a,n){return t(e.questionMapping(a)[a.question_type].formElement,e._b({key:"component-".concat(n),tag:"component",attrs:{"additional-question":a,"question-index":n,v:e.questionsV&&e.questionsV[n]}},"component",e.questionMapping(a)[a.question_type].props,!1))})),e._v(" "),e._t("default")],2)}),[],!1,null,null,null);t.a=re.exports},1107:function(e,t,a){"use strict";a(1029)},1108:function(e,t,a){e.exports=a.p+"pdf24.9e07eaba8f0bee282715aa253ae8bdaf.svg"},1109:function(e,t,a){e.exports=a.p+"close-preview.719247b4250220f88bc694652f921a93.svg"},1110:function(e,t,a){"use strict";a(1030)},1111:function(e,t,a){"use strict";a(1031)},1112:function(e,t,a){"use strict";a(1032)},1126:function(e,t,a){"use strict";a(1044)},1127:function(e,t,a){"use strict";a(1045)},1129:function(e,t,a){"use strict";var n=a(40),r=a(981),o=a(858),i=a.n(o),s=[{country:"AW",code:"+297",name:{en:"Aruba",ja:"アルバ",ko:"아루바",zh_Hans:"阿鲁巴",zh_Hant:"阿魯巴",id:"Aruba",th:"อารูบา",ar:"أروبا"},flag:"🇦🇼"},{country:"AF",code:"+93",name:{en:"Afghanistan",ja:"アフガニスタン",ko:"아프가니스탄",zh_Hans:"阿富汗",zh_Hant:"阿富汗",id:"Afganistan",th:"อัฟกานิสถาน",ar:"أفغانستان"},flag:"🇦🇫"},{country:"AO",code:"+244",name:{en:"Angola",ja:"アンゴラ",ko:"앙골라",zh_Hans:"安哥拉",zh_Hant:"安哥拉",id:"Angola",th:"แองโกลา",ar:"أنغولا"},flag:"🇦🇴"},{country:"AI",code:"+1264",name:{en:"Anguilla",ja:"アンギラ",ko:"앵귈라",zh_Hans:"安圭拉",zh_Hant:"安圭拉",id:"Anguilla",th:"แองกวิลา",ar:"أنغيلا"},flag:"🇦🇮"},{country:"AX",code:"+358",name:{en:"Åland Islands",ja:"オーランド諸島",ko:"올란드 제도",zh_Hans:"奥兰群岛",zh_Hant:"奧蘭群島",id:"Kepulauan Aland",th:"หมู่เกาะโอลันด์",ar:"جزر أولان"},flag:"🇦🇽"},{country:"AL",code:"+355",name:{en:"Albania",ja:"アルバニア",ko:"알바니아",zh_Hans:"阿尔巴尼亚",zh_Hant:"阿爾巴尼亞",id:"Albania",th:"แอลเบเนีย",ar:"ألبانيا"},flag:"🇦🇱"},{country:"AD",code:"+376",name:{en:"Andorra",ja:"アンドラ",ko:"안도라",zh_Hans:"安道尔",zh_Hant:"安道爾",id:"Andorra",th:"อันดอร์รา",ar:"أندورا"},flag:"🇦🇩"},{country:"AE",code:"+971",name:{en:"United Arab Emirates",ja:"アラブ首長国連邦",ko:"아랍에미리트",zh_Hans:"阿拉伯联合酋长国",zh_Hant:"阿拉伯聯合酋長國",id:"Uni Emirat Arab",th:"สหรัฐอาหรับเอมิเรตส์",ar:"الإمارات العربية المتحدة"},flag:"🇦🇪"},{country:"AR",code:"+54",name:{en:"Argentina",ja:"アルゼンチン",ko:"아르헨티나",zh_Hans:"阿根廷",zh_Hant:"阿根廷",id:"Argentina",th:"อาร์เจนตินา",ar:"الأرجنتين"},flag:"🇦🇷"},{country:"AM",code:"+374",name:{en:"Armenia",ja:"アルメニア",ko:"아르메니아",zh_Hans:"亚美尼亚",zh_Hant:"亞美尼亞",id:"Armenia",th:"อาร์เมเนีย",ar:"أرمينيا"},flag:"🇦🇲"},{country:"AS",code:"+1684",name:{en:"American Samoa",ja:"アメリカ領サモア",ko:"아메리칸사모아",zh_Hans:"美属萨摩亚",zh_Hant:"美屬薩摩亞",id:"Samoa Amerika",th:"อเมริกันซามัว",ar:"ساموا الأمريكية"},flag:"🇦🇸"},{country:"AQ",code:"",name:{en:"Antarctica",ja:"南極",ko:"남극",zh_Hans:"南极洲",zh_Hant:"南極洲",id:"Antarktika",th:"แอนตาร์กติกา",ar:"أنتاركتيكا"},flag:"🇦🇶"},{country:"TF",code:"+262",name:{en:"French Southern and Antarctic Lands",ja:"フランス領南方・
1南極地域",ko:"프랑스령 남부와 남극 지역",zh_Hans:"法国南部和南极土地",zh_Hant:"法國南部和南極土地",id:"Wilayah Selatan dan Antartika Prancis",th:"ดินแดนทางใต้ของฝรั่งเศสและแอนตาร์กติกา",ar:"الأقاليم الجنوبية الفرنسية"},flag:"🇹🇫"},{country:"AG",code:"+1268",name:{en:"Antigua and Barbuda",ja:"アンティグア・バーブーダ",ko:"앤티가 바부다",zh_Hans:"安提瓜和巴布达",zh_Hant:"安提瓜和巴布達",id:"Antigua dan Barbuda",th:"แอนติกาและบาร์บูดา",ar:"أنتيغوا وباربودا"},flag:"🇦🇬"},{country:"AU",code:"+61",name:{en:"Australia",ja:"オーストラリア",ko:"호주",zh_Hans:"澳大利亚",zh_Hant:"澳大利亞",id:"Australia",th:"ออสเตรเลีย",ar:"أستراليا"},flag:"🇦🇺"},{country:"AT",code:"+43",name:{en:"Austria",ja:"オーストリア",ko:"오스트리아",zh_Hans:"奥地利",zh_Hant:"奧地利",id:"Austria",th:"ออสเตรีย",ar:"النمسا"},flag:"🇦🇹"},{country:"AZ",code:"+994",name:{en:"Azerbaijan",ja:"アゼルバイジャン",ko:"아제르바이잔",zh_Hans:"阿塞拜疆",zh_Hant:"阿塞拜疆",id:"Azerbaijan",th:"อาเซอร์ไบจาน",ar:"أذربيجان"},flag:"🇦🇿"},{country:"BI",code:"+257",name:{en:"Burundi",ja:"ブルンジ",ko:"부룬디",zh_Hans:"布隆迪",zh_Hant:"布隆迪",id:"Burundi",th:"บุรุนดี",ar:"بوروندي"},flag:"🇧🇮"},{country:"BE",code:"+32",name:{en:"Belgium",ja:"ベルギー",ko:"벨기에",zh_Hans:"比利时",zh_Hant:"比利時",id:"Belgia",th:"เบลเยียม",ar:"بلجيكا"},flag:"🇧🇪"},{country:"BJ",code:"+229",name:{en:"Benin",ja:"ベナン",ko:"베냉",zh_Hans:"贝宁",zh_Hant:"貝寧",id:"Benin",th:"เบนิน",ar:"بنين"},flag:"🇧🇯"},{country:"BF",code:"+226",name:{en:"Burkina Faso",ja:"ブルキナファソ",ko:"부르키나파소",zh_Hans:"布基纳法索",zh_Hant:"布基納法索",id:"Burkina Faso",th:"บูร์กินาฟาโซ",ar:"بوركينا فاسو"},flag:"🇧🇫"},{country:"BD",code:"+880",name:{en:"Bangladesh",ja:"バングラデシュ",ko:"방글라데시",zh_Hans:"孟加拉国",zh_Hant:"孟加拉國",id:"Bangladesh",th:"บังกลาเทศ",ar:"بنغلاديش"},flag:"🇧🇩"},{country:"BG",code:"+359",name:{en:"Bulgaria",ja:"ブルガリア",ko:"불가리아",zh_Hans:"保加利亚",zh_Hant:"保加利亞",id:"Bulgaria",th:"บัลแกเรีย",ar:"بلغاريا"},flag:"🇧🇬"},{country:"BH",code:"+973",name:{en:"Bahrain",ja:"バーレーン",ko:"바레인",zh_Hans:"巴林",zh_Hant:"巴林",id:"Bahrain",th:"บาห์เรน",ar:"البحرين"},flag:"🇧🇭"},{country:"BS",code:"+1242",name:{en:"Bahamas",ja:"バハマ",ko:"바하마",zh_Hans:"巴哈马",zh_Hant:"巴哈馬",id:"Bahamas",th:"บาฮามาส",ar:"جزر البهاما"},flag:"🇧🇸"},{country:"BA",code:"+387",name:{en:"Bosnia and Herzegovina",ja:"ボスニア・ヘルツェゴビナ",ko:"보스니아 헤르체고비나",zh_Hans:"波斯尼亚和黑塞哥维那",zh_Hant:"波斯尼亞和黑塞哥維那",id:"Bosnia dan Herzegovina",th:"บอสเนียและเฮอร์เซโกวีนา",ar:"البوسنة والهرسك"},flag:"🇧🇦"},{country:"BL",code:"+590",name:{en:"Saint Barthélemy",ja:"サン・バルテルミー",ko:"생바르텔레미",zh_Hans:"圣巴泰勒米",zh_Hant:"聖巴泰勒米",id:"Saint Barthélemy",th:"แซ็งบาร์เตเลมี",ar:"سان بارتيليمي"},flag:"🇧🇱"},{country:"SH",code:"+290",name:{en:"Saint Helena, Ascension and Tristan da Cunha",ja:"セントヘレナ・アセンションおよびトリスタンダクーニャ",ko:"세인트헬레나",zh_Hans:"圣赫勒拿、阿森松和特里斯坦-达库尼亚",zh_Hant:"聖赫勒拿、阿森松和特里斯坦-達庫尼亞",id:"Saint Helena, Ascension dan Tristan da Cunha",th:"เซนต์เฮเลนา, แอสเซ็นชัน และทริสตันดาคูนยา",ar:"سانت هيلينا وأسنشن وتريستان دا كونها"},flag:"🇸🇭"},{country:"BY",code:"+375",name:{en:"Belarus",ja:"ベラルーシ",ko:"벨라루스",zh_Hans:"白俄罗斯",zh_Hant:"白俄羅斯",id:"Belarusia",th:"เบลารุส",ar:"بيلاروس"},flag:"🇧🇾"},{country:"BZ",code:"+501",name:{en:"Belize",ja:"ベリーズ",ko:"벨리즈",zh_Hans:"伯利兹",zh_Hant:"伯利茲",id:"Belize",th:"เบลีซ",ar:"بليز"},flag:"🇧🇿"},{country:"BM",code:"+1441",name:{en:"Bermuda",ja:"バミューダ",ko:"버뮤다",zh_Hans:"百慕大",zh_Hant:"百慕大",id:"Bermuda",th:"เบอร์มิวดา",ar:"برمودا"},flag:"🇧🇲"},{country:"BO",code:"+591",name:{en:"Bolivia",ja:"ボリビア多民族国",ko:"볼리비아",zh_Hans:"玻利维亚",zh_Hant:"玻利維亞",id:"Bolivia",th:"โบลิเวีย",ar:"بوليفيا"},flag:"🇧🇴"}
1,{country:"BQ",code:"+599",name:{en:"Caribbean Netherlands",ja:"ボネール、シント・ユースタティウスおよびサバ",ko:"카리브 네덜란드",zh_Hans:"荷蘭加勒比區",zh_Hant:"荷蘭加勒比區",id:"Belanda Karibia",th:"เนเธอร์แลนด์แคริบเบียน",ar:"هولندا الكاريبية"},flag:"🇧🇶"},{country:"BR",code:"+55",name:{en:"Brazil",ja:"ブラジル",ko:"브라질",zh_Hans:"巴西",zh_Hant:"巴西",id:"Brasil",th:"บราซิล",ar:"البرازيل"},flag:"🇧🇷"},{country:"BB",code:"+1246",name:{en:"Barbados",ja:"バルバドス",ko:"바베이도스",zh_Hans:"巴巴多斯",zh_Hant:"巴巴多斯",id:"Barbados",th:"บาร์เบโดส",ar:"بربادوس"},flag:"🇧🇧"},{country:"BN",code:"+673",name:{en:"Brunei",ja:"ブルネイ・ダルサラーム",ko:"브루나이",zh_Hans:"文莱",zh_Hant:"文萊",id:"Brunei",th:"บรูไน",ar:"بروناي"},flag:"🇧🇳"},{country:"BT",code:"+975",name:{en:"Bhutan",ja:"ブータン",ko:"부탄",zh_Hans:"不丹",zh_Hant:"不丹",id:"Bhutan",th:"ภูฏาน",ar:"بوتان"},flag:"🇧🇹"},{country:"BV",code:"+47",name:{en:"Bouvet Island",ja:"ブーベ島",ko:"부베 섬",zh_Hans:"布维岛",zh_Hant:"布維島",id:"Pulau Bouvet",th:"เกาะบูเวต",ar:"جزيرة بوفيه"},flag:"🇧🇻"},{country:"BW",code:"+267",name:{en:"Botswana",ja:"ボツワナ",ko:"보츠와나",zh_Hans:"博茨瓦纳",zh_Hant:"博茨瓦納",id:"Botswana",th:"บอตสวานา",ar:"بوتسوانا"},flag:"🇧🇼"},{country:"CF",code:"+236",name:{en:"Central African Republic",ja:"中央アフリカ共和国",ko:"중앙아프리카 공화국",zh_Hans:"中非共和国",zh_Hant:"中非共和國",id:"Republik Afrika Tengah",th:"สาธารณรัฐแอฟริกากลาง",ar:"جمهورية أفريقيا الوسطى"},flag:"🇨🇫"},{country:"CA",code:"+1",name:{en:"Canada",ja:"カナダ",ko:"캐나다",zh_Hans:"加拿大",zh_Hant:"加拿大",id:"Kanada",th:"แคนาดา",ar:"كندا"},flag:"🇨🇦"},{country:"CC",code:"+61",name:{en:"Cocos (Keeling) Islands",ja:"ココス(キーリング)諸島",ko:"코코스 제도",zh_Hans:"科科斯",zh_Hant:"科科斯",id:"Kepulauan Cocos (Keeling)",th:"หมู่เกาะโคโคส (คีลิง)",ar:"جزر كوكوس"},flag:"🇨🇨"},{country:"CH",code:"+41",name:{en:"Switzerland",ja:"スイス",ko:"스위스",zh_Hans:"瑞士",zh_Hant:"瑞士",id:"Swiss",th:"สวิตเซอร์แลนด์",ar:"سويسرا"},flag:"🇨🇭"},{country:"CL",code:"+56",name:{en:"Chile",ja:"チリ",ko:"칠레",zh_Hans:"智利",zh_Hant:"智利",id:"Chili",th:"ชิลี",ar:"تشيلي"},flag:"🇨🇱"},{country:"CN",code:"+86",name:{en:"China",ja:"中国",ko:"중국",zh_Hans:"中国",zh_Hant:"中國",id:"Tiongkok",th:"จีน",ar:"الصين"},flag:"🇨🇳"},{country:"CI",code:"+225",name:{en:"Ivory Coast",ja:"コートジボワール",ko:"코트디부아르",zh_Hans:"科特迪瓦",zh_Hant:"科特迪瓦",id:"Pantai Gading",th:"โกตดิวัวร์",ar:"ساحل العاج"},flag:"🇨🇮"},{country:"CM",code:"+237",name:{en:"Cameroon",ja:"カメルーン",ko:"카메룬",zh_Hans:"喀麦隆",zh_Hant:"喀麥隆",id:"Kamerun",th:"แคเมอรูน",ar:"الكاميرون"},flag:"🇨🇲"},{country:"CD",code:"+243",name:{en:"DR Congo",ja:"コンゴ民主共和国",ko:"콩고 민주 공화국",zh_Hans:"民主刚果",zh_Hant:"民主剛果",id:"Republik Demokratik Kongo",th:"สาธารณรัฐประชาธิปไตยคองโก",ar:"جمهورية الكونغو الديمقراطية"},flag:"🇨🇩"},{country:"CG",code:"+242",name:{en:"Republic of the Congo",ja:"コンゴ共和国",ko:"콩고",zh_Hans:"刚果",zh_Hant:"剛果",id:"Republik Kongo",th:"สาธารณรัฐคองโก",ar:"جمهورية الكونغو"},flag:"🇨🇬"},{country:"CK",code:"+682",name:{en:"Cook Islands",ja:"クック諸島",ko:"ì¿¡ 제도",zh_Hans:"库克群岛",zh_Hant:"庫克群島",id:"Kepulauan Cook",th:"หมู่เกาะคุà¸
1",ar:"جزر كوك"},flag:"🇨🇰"},{country:"CO",code:"+57",name:{en:"Colombia",ja:"コロンビア",ko:"콜롬비아",zh_Hans:"哥伦比亚",zh_Hant:"哥倫比亞",id:"Kolombia",th:"โคลอมเบีย",ar:"كولومبيا"},flag:"🇨🇴"},{country:"KM",code:"+269",name:{en:"Comoros",ja:"コモロ",ko:"코모로",zh_Hans:"科摩罗",zh_Hant:"科摩羅",id:"Komoro",th:"คอโมโรส",ar:"جزر القمر"},flag:"🇰🇲"},{country:"CV",code:"+238",name:{en:"Cape Verde",ja:"カーボベルデ",ko:"카보베르데",zh_Hans:"佛得角",zh_Hant:"佛得角",id:"Cape Verde",th:"เคปเวิร์ด",ar:"الرأس الأخضر"},flag:"🇨🇻"},{country:"CR",code:"+506",name:{en:"Costa Rica",ja:"コスタリカ",ko:"코스타리카",zh_Hans:"哥斯达黎加",zh_Hant:"哥斯達黎加",id:"Kosta Rika",th:"คอสตาริกา",ar:"كوستاريكا"},flag:"🇨🇷"},{country:"CU",code:"+53",name:{en:"Cuba",ja:"キューバ",ko:"쿠바",zh_Hans:"古巴",zh_Hant:"古巴",id:"Kuba",th:"คิวบา",ar:"كوبا"},flag:"🇨🇺"},{country:"CW",code:"+599",name:{en:"Curaçao",ja:"Curaçao",ko:"퀴라소",zh_Hans:"库拉索",zh_Hant:"庫拉索",id:"Curaçao",th:"กูราเซา",ar:"كوراساو"},flag:"🇨🇼"},{country:"CX",code:"+61",name:{en:"Christmas Island",ja:"クリスマス島",ko:"크리스마스 섬",zh_Hans:"圣诞岛",zh_Hant:"聖誕島",id:"Pulau Christmas",th:"เกาะคริสต์มาส",ar:"جزيرة الكريسماس"},flag:"🇨🇽"},{country:"KY",code:"+1345",name:{en:"Cayman Islands",ja:"ケイマン諸島",ko:"케이맨 제도",zh_Hans:"开曼群岛",zh_Hant:"開曼群島",id:"Kepulauan Cayman",th:"หมู่เกาะเคย์แมน",ar:"جزر الكايمان"},flag:"🇰🇾"},{country:"CY",code:"+357",name:{en:"Cyprus",ja:"キプロス",ko:"키프로스",zh_Hans:"塞浦路斯",zh_Hant:"塞浦路斯",id:"Siprus",th:"ไซปรัส",ar:"قبرص"},flag:"🇨🇾"},{country:"CZ",code:"+420",name:{en:"Czechia",ja:"チェコ",ko:"체코",zh_Hans:"捷克",zh_Hant:"捷克",id:"Ceko",th:"เช็กเกีย",ar:"التشيك"},flag:"🇨🇿"},{country:"DE",code:"+49",name:{en:"Germany",ja:"ドイツ",ko:"독일",zh_Hans:"德国",zh_Hant:"德國",id:"Jerman",th:"เยอรมนี",ar:"ألمانيا"},flag:"🇩🇪"},{country:"DJ",code:"+253",name:{en:"Djibouti",ja:"ジブチ",ko:"지부티",zh_Hans:"吉布提",zh_Hant:"吉布提",id:"Djibouti",th:"จิบูตี",ar:"جيبوتي"},flag:"🇩🇯"},{country:"DM",code:"+1767",name:{en:"Dominica",ja:"ドミニカ国",ko:"도미니카 공화국",zh_Hans:"多米尼加",zh_Hant:"多米尼加",id:"Dominika",th:"โดมินิกา",ar:"دومينيكا"},flag:"🇩🇲"},{country:"DK",code:"+45",name:{en:"Denmark",ja:"デンマーク",ko:"덴마크",zh_Hans:"丹麦",zh_Hant:"丹麥",id:"Denmark",th:"เดนมาร์ก",ar:"الدانمارك"},flag:"🇩🇰"},{country:"DO",code:"+1809",name:{en:"Dominican Republic",ja:"ドミニカ共和国",ko:"도미니카 공화국",zh_Hans:"多明尼加",zh_Hant:"多明尼加",id:"Republik Dominika",th:"สาธารณรัฐโดมินิกัน",ar:"جمهورية الدومينيكان"},flag:"🇩🇴"},{country:"DZ",code:"+213",name:{en:"Algeria",ja:"アルジェリア",ko:"알제리",zh_Hans:"阿尔及利亚",zh_Hant:"阿爾及利亞",id:"Aljazair",th:"แอลจีเรีย",ar:"الجزائر"},flag:"🇩🇿"},{country:"EC",code:"+593",name:{en:"Ecuador",ja:"エクアドル",ko:"에콰도르",zh_Hans:"厄瓜多尔",zh_Hant:"厄瓜多爾",id:"Ekuador",th:"เอกวาดอร์",ar:"الإكوادور"},flag:"🇪🇨"},{country:"EG",code:"+20",name:{en:"Egypt",ja:"エジプト",ko:"이집트",zh_Hans:"埃及",zh_Hant:"埃及",id:"Mesir",th:"อียิปต์",ar:"مصر"},flag:"🇪🇬"},{country:"ER",code:"+291",name:{en:"Eritrea",ja:"エリトリア",ko:"에리트레아",zh_Hans:"厄立特里亚",zh_Hant:"厄立特里亞",id:"Eritrea",th:"เอริเทรีย",ar:"إريتريا"},flag:"🇪🇷"},{country:"EH",code:"+212",name:{en:"Western Sahara",ja:"西サハラ",ko:"서사하라",zh_Hans:"西撒哈拉",zh_Hant:"西撒哈拉",id:"Sahara Barat",th:"เวสเทิร์นสะฮารา",ar:"الصحراء الغربية"},flag:"🇪🇭"},{country:"ES",code:"+34",name:{en:"Spain",ja:"スペイン",ko:"스페인",zh_Hans:"西班牙",zh_Hant:"西班牙",id:"Spanyol",th:"สเปน",ar:"إسبانيا"},flag:"🇪🇸"},{country:"EE",code:"+372",name:{en:"Estonia",ja:"エストニア",ko:"에스토니아",zh_Hans:"爱沙尼亚",zh_Hant:"愛沙尼亞",id:"Estonia",th:"เอสโตเนีย",ar:"إستونيا"},flag:"🇪🇪"},{country:"ET",code:"+251",name:{en:"Ethiopia",ja:"エチオピア",ko:"에티오피아",zh_Hans:"埃塞俄比亚",zh_Hant:"埃塞俄比亞",id:"Etiopia",th:"เอธิโอเปีย",ar:"إثيوبيا"},flag:"🇪🇹"}
1,{country:"FI",code:"+358",name:{en:"Finland",ja:"フィンランド",ko:"핀란드",zh_Hans:"芬兰",zh_Hant:"芬蘭",id:"Finlandia",th:"ฟินแลนด์",ar:"فنلندا"},flag:"🇫🇮"},{country:"FJ",code:"+679",name:{en:"Fiji",ja:"フィジー",ko:"피지",zh_Hans:"斐济",zh_Hant:"斐濟",id:"Fiji",th:"ฟิจิ",ar:"فيجي"},flag:"🇫🇯"},{country:"FK",code:"+500",name:{en:"Falkland Islands",ja:"フォークランド(マルビナス)諸島",ko:"포클랜드 제도",zh_Hans:"福克兰群岛",zh_Hant:"福克蘭群島",id:"Kepulauan Falkland",th:"หมู่เกาะฟอล์กแลนด์",ar:"جزر فوكلاند"},flag:"🇫🇰"},{country:"FR",code:"+33",name:{en:"France",ja:"フランス",ko:"프랑스",zh_Hans:"法国",zh_Hant:"法國",id:"Perancis",th:"ฝรั่งเศส",ar:"فرنسا"},flag:"🇫🇷"},{country:"FO",code:"+298",name:{en:"Faroe Islands",ja:"フェロー諸島",ko:"페로 제도",zh_Hans:"法罗群岛",zh_Hant:"法羅群島",id:"Kepulauan Faroe",th:"หมู่เกาะแฟโร",ar:"جزر فارو"},flag:"🇫🇴"},{country:"FM",code:"+691",name:{en:"Micronesia",ja:"ミクロネシア連邦",ko:"미크로네시아",zh_Hans:"密克罗尼西亚",zh_Hant:"密克羅尼西亞",id:"Mikronesia",th:"ไมโครนีเซีย",ar:"ميكرونيسيا"},flag:"🇫🇲"},{country:"GA",code:"+241",name:{en:"Gabon",ja:"ガボン",ko:"가봉",zh_Hans:"加蓬",zh_Hant:"加蓬",id:"Gabon",th:"กาบอง",ar:"الغابون"},flag:"🇬🇦"},{country:"GB",code:"+44",name:{en:"United Kingdom",ja:"イギリス",ko:"영국",zh_Hans:"英国",zh_Hant:"英國",id:"Inggris Raya",th:"สหราชอาณาจักร",ar:"المملكة المتحدة"},flag:"🇬🇧"},{country:"GE",code:"+995",name:{en:"Georgia",ja:"グルジア",ko:"조지아",zh_Hans:"格鲁吉亚",zh_Hant:"格魯吉亞",id:"Georgia",th:"จอร์เจีย",ar:"جورجيا"},flag:"🇬🇪"},{country:"GG",code:"+44",name:{en:"Guernsey",ja:"ガーンジー",ko:"건지 섬",zh_Hans:"根西岛",zh_Hant:"根西島",id:"Guernsey",th:"เกิร์นซีย์",ar:"غيرنزي"},flag:"🇬🇬"},{country:"GH",code:"+233",name:{en:"Ghana",ja:"ガーナ",ko:"가나",zh_Hans:"加纳",zh_Hant:"加納",id:"Ghana",th:"กานา",ar:"غانا"},flag:"🇬🇭"},{country:"GI",code:"+350",name:{en:"Gibraltar",ja:"ジブラルタル",ko:"지브롤터",zh_Hans:"直布罗陀",zh_Hant:"直布羅陀",id:"Gibraltar",th:"ยิบรอลตาร์",ar:"جبل طارق"},flag:"🇬🇮"},{country:"GN",code:"+224",name:{en:"Guinea",ja:"ギニア",ko:"기니",zh_Hans:"几内亚",zh_Hant:"幾內亞",id:"Guinea",th:"กินี",ar:"غينيا"},flag:"🇬🇳"},{country:"GP",code:"+590",name:{en:"Guadeloupe",ja:"グアドループ",ko:"과들루프",zh_Hans:"瓜德罗普岛",zh_Hant:"瓜德羅普島",id:"Guadeloupe",th:"กวาเดอลูป",ar:"جوادلوب"},flag:"🇬🇵"},{country:"GM",code:"+220",name:{en:"Gambia",ja:"ガンビア",ko:"감비아",zh_Hans:"冈比亚",zh_Hant:"岡比亞",id:"Gambia",th:"แกมเบีย",ar:"غامبيا"},flag:"🇬🇲"},{country:"GW",code:"+245",name:{en:"Guinea-Bissau",ja:"ギニアビサウ",ko:"기니비사우",zh_Hans:"几内亚比绍",zh_Hant:"幾內亞比紹",id:"Guinea-Bissau",th:"กินี-บิสเซา",ar:"غينيا بيساو"},flag:"🇬🇼"},{country:"GQ",code:"+240",name:{en:"Equatorial Guinea",ja:"赤道ギニア",ko:"적도 기니",zh_Hans:"赤道几内亚",zh_Hant:"赤道幾內亞",id:"Guinea Ekuatorial",th:"อิเควทอเรียลกินี",ar:"غينيا الاستوائية"},flag:"🇬🇶"},{country:"GR",code:"+30",name:{en:"Greece",ja:"ギリシャ",ko:"그리스",zh_Hans:"希腊",zh_Hant:"希臘",id:"Yunani",th:"กรีซ",ar:"اليونان"},flag:"🇬🇷"},{country:"GD",code:"+1473",name:{en:"Grenada",ja:"グレナダ",ko:"그레나다",zh_Hans:"格林纳达",zh_Hant:"格林納達",id:"Grenada",th:"เกรเนดา",ar:"غرينادا"},flag:"🇬🇩"},{country:"GL",code:"+299",name:{en:"Greenland",ja:"グリーンランド",ko:"그린란드",zh_Hans:"格陵兰",zh_Hant:"格陵蘭",id:"Greenland",th:"กรีนแลนด์",ar:"جرينلاند"},flag:"🇬🇱"},{country:"GT",code:"+502",name:{en:"Guatemala",ja:"グアテマラ",ko:"과테말라",zh_Hans:"危地马拉",zh_Hant:"危地馬拉",id:"Guatemala",th:"กัวเตมาลา",ar:"غواتيمالا"},flag:"🇬🇹"},{country:"GF",code:"+594",name:{en:"French Guiana",ja:"フランス領ギアナ",ko:"프랑스령 기아나",zh_Hans:"法属圭亚那",zh_Hant:"法屬圭亞那",id:"Guyana Prancis",th:"เฟรนช์เกียนา",ar:"غويانا الفرنسية"},flag:"🇬🇫"},{country:"GU",code:"+1671",name:{en:"Guam",ja:"グアム",ko:"괌",zh_Hans:"关岛",zh_Hant:"關島",id:"Guam",th:"กวม",ar:"غوام"},flag:"🇬🇺"},{country:"GY",code:"+592",name:{en:"Guyana",ja:"ガイアナ",ko:"가이아나",zh_Hans:"圭亚那",zh_Hant:"圭亞那",id:"Guyana",th:"กายอานา",ar:"غيانا"},flag:"🇬🇾"},{country:"HK",code:"+852",name:{en:"Hong Kong",ja:"香港",ko:"홍콩",zh_Hans:"香港",zh_Hant:"香港",id:"Hong Kong",th:"ฮ่องกง",ar:"هونغ كونغ"},flag:"🇭🇰"},{country:"HM",code:"+672",name:{en:"Heard Island and McDonald Islands",ja:"ハード島とマクドナルド諸島",ko:"허드 맥도널드 제도",zh_Hans:"赫德岛和麦当劳群岛",zh_Hant:"赫德島和麥當勞群島",id:"Pulau Heard dan Kepulauan McDonald",th:"หมู่เกาะเฮิร์ดและหมู่เกาะแมกดอนัลด์",ar:"جزيرة هيرد وجزر ماكدونالد"},flag:"🇭🇲"},{country:"HN",code:"+504",name:{en:"Honduras",ja:"ホンジュラス",ko:"온두라스",zh_Hans:"洪都拉斯",zh_Hant:"洪都拉斯",id:"Honduras",th:"ฮอนดูรัส",ar:"هندوراس"},flag:"🇭🇳"},{country:"HR",code:"+385",name:{en:"Croatia",ja:"クロアチア",ko:"크로아티아",zh_Hans:"克罗地亚",zh_Hant:"克羅地亞",id:"Kroasia",th:"โครเอเชีย",ar:"كرواتيا"},flag:"🇭🇷"},{country:"HT",code:"+509",name:{en:"Haiti",ja:"ハイチ",ko:"아이티",zh_Hans:"海地",zh_Hant:"海地",id:"Haiti",th:"เฮติ",ar:"هايتي"},flag:"🇭🇹"},{country:"HU",code:"+36",name:{en:"Hungary",ja:"ハンガリー",ko:"헝가리",zh_Hans:"匈牙利",zh_Hant:"匈牙利",id:"Hungaria",th:"ฮังการี",ar:"المجر"},flag:"🇭🇺"},{country:"ID",code:"+62",name:{en:"Indonesia",ja:"インドネシア",ko:"인도네시아",zh_Hans:"印度尼西亚",zh_Hant:"印度尼西亞",id:"Indonesia",th:"อินโดนีเซีย",ar:"إندونيسيا"},flag:"🇮🇩"},{country:"IM",code:"+44",name:{en:"Isle of Man",ja:"マン島",ko:"맨섬",zh_Hans:"马恩岛",zh_Hant:"馬恩島",id:"Isle of Man",th:"เกาะแมน",ar:"جزيرة مان"},flag:"🇮🇲"},{country:"IN",code:"+91",name:{en:"India",ja:"インド",ko:"인도",zh_Hans:"印度",zh_Hant:"印度",id:"India",th:"อินเดีย",ar:"الهند"},flag:"🇮🇳"},{country:"IO",code:"+246",name:{en:"British Indian Ocean Territory",ja:"イギリス領インド洋地域",ko:"인도",zh_Hans:"英属印度洋领地",zh_Hant:"英屬印度洋領地",id:"Wilayah Samudra Hindia Britania Raya",th:"บริติชอินเดียนโอเชียนเทร์ริทอรี",ar:"إقليم المحيط الهندي البريطاني"},flag:"🇮🇴"},{country:"IE",code:"+353",name:{en:"Ireland",ja:"アイルランド",ko:"아일랜드",zh_Hans:"爱尔兰",zh_Hant:"愛爾蘭",id:"Irlandia",th:"ไอร์แลนด์",ar:"أيرلندا"},flag:"🇮🇪"},{country:"IR",code:"+98",name:{en:"Iran",ja:"イラン・イスラム共和国",ko:"이란",zh_Hans:"伊朗",zh_Hant:"伊朗",id:"Iran",th:"อิหร่าน",ar:"إيران"},flag:"🇮🇷"},{country:"IQ",code:"+964",name:{en:"Iraq",ja:"イラク",ko:"이라크",zh_Hans:"伊拉克",zh_Hant:"伊拉克",id:"Irak",th:"อิรัก",ar:"العراق"},flag:"🇮🇶"},{country:"IS",code:"+354",name:{en:"Iceland",ja:"アイスランド",ko:"아이슬란드",zh_Hans:"冰岛",zh_Hant:"冰島",id:"Islandia",th:"ไอซ์แลนด์",ar:"آيسلندا"},flag:"🇮🇸"},{country:"IL",code:"+972",name:{en:"Israel",ja:"イスラエル",ko:"이스라엘",zh_Hans:"以色列",zh_Hant:"以色列",id:"Israel",th:"อิสราเอล",ar:"إسرائيل"},flag:"🇮🇱"},{country:"IT",code:"+39",name:{en:"Italy",ja:"イタリア",ko:"이탈리아",zh_Hans:"意大利",zh_Hant:"意大利",id:"Italia",th:"อิตาลี",ar:"إيطاليا"},flag:"🇮🇹"},{country:"JM",code:"+1876",name:{en:"Jamaica",ja:"ジャマイカ",ko:"자메이카",zh_Hans:"牙买加",zh_Hant:"牙買加",id:"Jamaika",th:"จาเมกา",ar:"جامايكا"},flag:"🇯🇲"},{country:"JE",code:"+44",name:{en:"Jersey",ja:"ジャージー",ko:"저지 섬",zh_Hans:"泽西岛",zh_Hant:"澤西島",id:"Jersey",th:"เจอร์ซีย์",ar:"جيرزي"},flag:"🇯🇪"},{country:"JO",code:"+962",name:{en:"Jordan",ja:"ヨルダン",ko:"요르단",zh_Hans:"约旦",zh_Hant:"約旦",id:"Yordania",th:"จอร์แดน",ar:"الأردن"},flag:"🇯🇴"},{country:"JP",code:"+81",name:{en:"Japan",ja:"日本",ko:"일본",zh_Hans:"日本",zh_Hant:"日本",id:"Jepang",th:"ญี่ปุ่น",ar:"اليابان"},flag:"🇯🇵"},{country:"KZ",code:"+7",name:{en:"Kazakhstan",ja:"カザフスタン",ko:"카자흐스탄",zh_Hans:"哈萨克斯坦",zh_Hant:"哈薩克斯坦",id:"Kazakhstan",th:"คาซัคสถาน",ar:"كازاخستان"},flag:"🇰🇿"},{country:"KE",code:"+254",name:{en:"Kenya",ja:"ケニア",ko:"케냐",zh_Hans:"肯尼亚",zh_Hant:"肯尼亞",id:"Kenya",th:"เคนยา",ar:"كينيا"},flag:"🇰🇪"},{country:"KG",code:"+996",name:{en:"Kyrgyzstan",ja:"キルギス",ko:"키르기스스탄",zh_Hans:"吉尔吉斯斯坦",zh_Hant:"吉爾吉斯斯坦",id:"Kirgizstan",th:"คีร์กีซสถาน",ar:"قيرغيزستان"},flag:"🇰🇬"},{country:"KH",code:"+855",name:{en:"Cambodia",ja:"カンボジア",ko:"캄보디아",zh_Hans:"柬埔寨",zh_Hant:"柬埔寨",id:"Kamboja",th:"กัมพูชา",ar:"كمبوديا"},flag:"🇰🇭"},{country:"KI",code:"+686",name:{en:"Kiribati",ja:"キリバス",ko:"키리바시",zh_Hans:"基里巴斯",zh_Hant:"基里巴斯",id:"Kiribati",th:"คิริบาส",ar:"كيريباس"},flag:"🇰🇮"}
1,{country:"KN",code:"+1869",name:{en:"Saint Kitts and Nevis",ja:"セントクリストファー・ネイビス",ko:"세인트키츠 네비스",zh_Hans:"圣基茨和尼维斯",zh_Hant:"聖基茨和尼維斯",id:"Saint Kitts dan Nevis",th:"เซนต์คิตส์และเนวิส",ar:"سانت كيتس ونيفيس"},flag:"🇰🇳"},{country:"KR",code:"+82",name:{en:"South Korea",ja:"韓国",ko:"한국",zh_Hans:"韩国",zh_Hant:"韓國",id:"Korea Selatan",th:"เกาหลีใต้",ar:"كوريا الجنوبية"},flag:"🇰🇷"},{country:"XK",code:"+383",name:{en:"Kosovo",ja:"Kosovo",ko:"코소보",zh_Hans:"科索沃",zh_Hant:"科索沃",id:"Kosovo",th:"คอซอวอ",ar:"كوسوفو"},flag:"🇽🇰"},{country:"KW",code:"+965",name:{en:"Kuwait",ja:"クウェート",ko:"쿠웨이트",zh_Hans:"科威特",zh_Hant:"科威特",id:"Kuwait",th:"คูเวต",ar:"الكويت"},flag:"🇰🇼"},{country:"LA",code:"+856",name:{en:"Laos",ja:"ラオス人民民主共和国",ko:"라오스",zh_Hans:"老挝",zh_Hant:"老撾",id:"Laos",th:"ลาว",ar:"لاوس"},flag:"🇱🇦"},{country:"LB",code:"+961",name:{en:"Lebanon",ja:"レバノン",ko:"레바논",zh_Hans:"黎巴嫩",zh_Hant:"黎巴嫩",id:"Lebanon",th:"เลบานอน",ar:"لبنان"},flag:"🇱🇧"},{country:"LR",code:"+231",name:{en:"Liberia",ja:"リベリア",ko:"라이베리아",zh_Hans:"利比里亚",zh_Hant:"利比里亞",id:"Liberia",th:"ไลบีเรีย",ar:"ليبيريا"},flag:"🇱🇷"},{country:"LY",code:"+218",name:{en:"Libya",ja:"リビア",ko:"리비아",zh_Hans:"利比亚",zh_Hant:"利比亞",id:"Libya",th:"ลิเบีย",ar:"ليبيا"},flag:"🇱🇾"},{country:"LC",code:"+1758",name:{en:"Saint Lucia",ja:"セントルシア",ko:"세인트루시아",zh_Hans:"圣卢西亚",zh_Hant:"聖盧西亞",id:"Saint Lucia",th:"เซนต์ลูเซีย",ar:"سانت لوسيا"},flag:"🇱🇨"},{country:"LI",code:"+423",name:{en:"Liechtenstein",ja:"リヒテンシュタイン",ko:"리히텐슈타인",zh_Hans:"列支敦士登",zh_Hant:"列支敦士登",id:"Liechtenstein",th:"ลิกเตนสไตน์",ar:"ليختنشتاين"},flag:"🇱🇮"},{country:"LK",code:"+94",name:{en:"Sri Lanka",ja:"スリランカ",ko:"스리랑카",zh_Hans:"斯里兰卡",zh_Hant:"斯里蘭卡",id:"Sri Lanka",th:"ศรีลังกา",ar:"سريلانكا"},flag:"🇱🇰"},{country:"LS",code:"+266",name:{en:"Lesotho",ja:"レソト",ko:"레소토",zh_Hans:"莱索托",zh_Hant:"萊索托",id:"Lesotho",th:"เลโซโท",ar:"ليسوتو"},flag:"🇱🇸"},{country:"LT",code:"+370",name:{en:"Lithuania",ja:"リトアニア",ko:"리투아니아",zh_Hans:"立陶宛",zh_Hant:"立陶宛",id:"Lituania",th:"ลิทัวเนีย",ar:"ليتوانيا"},flag:"🇱🇹"},{country:"LU",code:"+352",name:{en:"Luxembourg",ja:"ルクセンブルク",ko:"룩셈부르크",zh_Hans:"卢森堡",zh_Hant:"盧森堡",id:"Luksemburg",th:"ลักเซมเบิร์ก",ar:"لوكسمبورغ"},flag:"🇱🇺"},{country:"LV",code:"+371",name:{en:"Latvia",ja:"ラトビア",ko:"라트비아",zh_Hans:"拉脱维亚",zh_Hant:"拉脫維亞",id:"Latvia",th:"ลัตเวีย",ar:"لاتفيا"},flag:"🇱🇻"},{country:"MO",code:"+853",name:{en:"Macau",ja:"マカオ",ko:"마카오",zh_Hans:"澳门",zh_Hant:"澳門",id:"Makau",th:"มาเก๊า",ar:"ماكاو"},flag:"🇲🇴"},{country:"MF",code:"+590",name:{en:"Saint Martin",ja:"サン・マルタン(フランス領)",ko:"생마르탱",zh_Hans:"圣马丁",zh_Hant:"聖馬丁",id:"Saint Martin",th:"แซ็งมาร์แต็ง",ar:"سانت مارتن"},flag:"🇲🇫"},{country:"MA",code:"+212",name:{en:"Morocco",ja:"モロッコ",ko:"모로코",zh_Hans:"摩洛哥",zh_Hant:"摩洛哥",id:"Maroko",th:"โมร็อกโก",ar:"المغرب"},flag:"🇲🇦"},{country:"MC",code:"+377",name:{en:"Monaco",ja:"モナコ",ko:"모나코",zh_Hans:"摩纳哥",zh_Hant:"摩納哥",id:"Monako",th:"โมนาโก",ar:"موناكو"},flag:"🇲🇨"},{country:"MD",code:"+373",name:{en:"Moldova",ja:"モルドバ共和国",ko:"몰도바",zh_Hans:"摩尔多瓦",zh_Hant:"摩爾多瓦",id:"Moldova",th:"มอลโดวา",ar:"مولدوفا"},flag:"🇲🇩"},{country:"MG",code:"+261",name:{en:"Madagascar",ja:"マダガスカル",ko:"마다가스카르",zh_Hans:"马达加斯加",zh_Hant:"馬達加斯加",id:"Madagaskar",th:"มาดากัสการ์",ar:"مدغشقر"},flag:"🇲🇬"},{country:"MV",code:"+960",name:{en:"Maldives",ja:"モルディブ",ko:"몰디브",zh_Hans:"马尔代夫",zh_Hant:"馬爾代夫",id:"Maladewa",th:"มัลดีฟส์",ar:"جزر المالديف"},flag:"🇲🇻"},{country:"MX",code:"+52",name:{en:"Mexico",ja:"メキシコ",ko:"멕시코",zh_Hans:"墨西
1哥",zh_Hant:"墨西哥",id:"Meksiko",th:"เม็กซิโก",ar:"المكسيك"},flag:"🇲🇽"},{country:"MH",code:"+692",name:{en:"Marshall Islands",ja:"マーシャル諸島",ko:"마셜 제도",zh_Hans:"马绍尔群岛",zh_Hant:"馬紹爾群島",id:"Kepulauan Marshall",th:"หมู่เกาะมาร์แชลล์",ar:"جزر مارشال"},flag:"🇲🇭"},{country:"MK",code:"+389",name:{en:"North Macedonia",ja:"北マケドニア ",ko:"북마케도니아",zh_Hans:"北馬其頓",zh_Hant:"北馬其頓",id:"Makedonia Utara",th:"มาซิโดเนียเหนือ",ar:"مقدونيا الشمالية"},flag:"🇲🇰"},{country:"ML",code:"+223",name:{en:"Mali",ja:"マリ",ko:"말리",zh_Hans:"马里",zh_Hant:"馬裏",id:"Mali",th:"มาลี",ar:"مالي"},flag:"🇲🇱"},{country:"MT",code:"+356",name:{en:"Malta",ja:"マルタ",ko:"몰타",zh_Hans:"马耳他",zh_Hant:"馬耳他",id:"Malta",th:"มอลตา",ar:"مالطا"},flag:"🇲🇹"},{country:"MM",code:"+95",name:{en:"Myanmar",ja:"ミャンマー",ko:"미얀마",zh_Hans:"缅甸",zh_Hant:"緬甸",id:"Myanmar",th:"เมียนมา",ar:"ميانمار"},flag:"🇲🇲"},{country:"ME",code:"+382",name:{en:"Montenegro",ja:"モンテネグロ",ko:"몬테네그로",zh_Hans:"黑山",zh_Hant:"黑山",id:"Montenegro",th:"มอนเตเนโกร",ar:"الجبل الأسود"},flag:"🇲🇪"},{country:"MN",code:"+976",name:{en:"Mongolia",ja:"モンゴル",ko:"몽골국",zh_Hans:"蒙古",zh_Hant:"蒙古",id:"Mongolia",th:"มองโกเลีย",ar:"منغوليا"},flag:"🇲🇳"},{country:"MP",code:"+1670",name:{en:"Northern Mariana Islands",ja:"北マリアナ諸島",ko:"북마리아나 제도",zh_Hans:"北马里亚纳群岛",zh_Hant:"北馬里亞納群島",id:"Kepulauan Mariana Utara",th:"หมู่เกาะมาเรียนาเหนือ",ar:"جزر ماريانا الشمالية"},flag:"🇲🇵"},{country:"MZ",code:"+258",name:{en:"Mozambique",ja:"モザンビーク",ko:"모잠비크",zh_Hans:"莫桑比克",zh_Hant:"莫桑比克",id:"Mozambik",th:"โมซัมบิก",ar:"موزمبيق"},flag:"🇲🇿"},{country:"MR",code:"+222",name:{en:"Mauritania",ja:"モーリタニア",ko:"모리타니",zh_Hans:"毛里塔尼亚",zh_Hant:"毛里塔尼亞",id:"Mauritania",th:"มอริเตเนีย",ar:"موريتانيا"},flag:"🇲🇷"},{country:"MS",code:"+1664",name:{en:"Montserrat",ja:"モントセラト",ko:"몬트세랫",zh_Hans:"蒙特塞拉特",zh_Hant:"蒙特塞拉特",id:"Montserrat",th:"มอนต์เซอร์รัต",ar:"مونتسيرات"},flag:"🇲🇸"},{country:"MQ",code:"+596",name:{en:"Martinique",ja:"マルティニーク",ko:"마르티니크",zh_Hans:"马提尼克",zh_Hant:"馬提尼克",id:"Martinique",th:"มาร์ตีนิก",ar:"مارتينيك"},flag:"🇲🇶"},{country:"MU",code:"+230",name:{en:"Mauritius",ja:"モーリシャス",ko:"모리셔스",zh_Hans:"毛里求斯",zh_Hant:"毛里求斯",id:"Mauritius",th:"มอริเชียส",ar:"موريشيوس"},flag:"🇲🇺"},{country:"MW",code:"+265",name:{en:"Malawi",ja:"マラウイ",ko:"말라위",zh_Hans:"马拉维",zh_Hant:"馬拉維",id:"Malawi",th:"มาลาวี",ar:"مالاوي"},flag:"🇲🇼"},{country:"MY",code:"+60",name:{en:"Malaysia",ja:"マレーシア",ko:"말레이시아",zh_Hans:"马来西亚",zh_Hant:"馬來西亞",id:"Malaysia",th:"มาเลเซีย",ar:"ماليزيا"},flag:"🇲🇾"},{country:"YT",code:"+262",name:{en:"Mayotte",ja:"マヨット",ko:"마요트",zh_Hans:"马约特",zh_Hant:"馬約特",id:"Mayotte",th:"มายอต",ar:"مايوت"},flag:"🇾🇹"},{country:"NA",code:"+264",name:{en:"Namibia",ja:"ナミビア",ko:"나미비아",zh_Hans:"纳米比亚",zh_Hant:"納米比亞",id:"Namibia",th:"นามิเบีย",ar:"ناميبيا"},flag:"🇳🇦"},{country:"NC",code:"+687",name:{en:"New Caledonia",ja:"ニューカレドニア",ko:"누벨칼레도니",zh_Hans:"新喀里多尼亚",zh_Hant:"新喀里多尼亞",id:"Kaledonia Baru",th:"นิวแคลิโดเนีย",ar:"كاليدونيا الجديدة"},flag:"🇳🇨"}
1,{country:"NE",code:"+227",name:{en:"Niger",ja:"ニジェール",ko:"니제르",zh_Hans:"尼日尔",zh_Hant:"尼日爾",id:"Niger",th:"ไนเจอร์",ar:"النيجر"},flag:"🇳🇪"},{country:"NF",code:"+672",name:{en:"Norfolk Island",ja:"ノーフォーク島",ko:"노퍽 섬",zh_Hans:"诺福克岛",zh_Hant:"諾福克島",id:"Pulau Norfolk",th:"เกาะนอร์ฟอล์ก",ar:"جزيرة نورفولك"},flag:"🇳🇫"},{country:"NG",code:"+234",name:{en:"Nigeria",ja:"ナイジェリア",ko:"나이지리아",zh_Hans:"尼日利亚",zh_Hant:"尼日利亞",id:"Nigeria",th:"ไนจีเรีย",ar:"نيجيريا"},flag:"🇳🇬"},{country:"NI",code:"+505",name:{en:"Nicaragua",ja:"ニカラグア",ko:"니카라과",zh_Hans:"尼加拉瓜",zh_Hant:"尼加拉瓜",id:"Nikaragua",th:"นิการากัว",ar:"نيكاراغوا"},flag:"🇳🇮"},{country:"NU",code:"+683",name:{en:"Niue",ja:"ニウエ",ko:"니우에",zh_Hans:"纽埃",zh_Hant:"紐埃",id:"Niue",th:"นีวเว",ar:"نييوي"},flag:"🇳🇺"},{country:"NL",code:"+31",name:{en:"Netherlands",ja:"オランダ",ko:"네덜란드",zh_Hans:"荷兰",zh_Hant:"荷蘭",id:"Belanda",th:"เนเธอร์แลนด์",ar:"هولندا"},flag:"🇳🇱"},{country:"NO",code:"+47",name:{en:"Norway",ja:"ノルウェー",ko:"노르웨이",zh_Hans:"挪威",zh_Hant:"挪威",id:"Norwegia",th:"นอร์เวย์",ar:"النرويج"},flag:"🇳🇴"},{country:"NP",code:"+977",name:{en:"Nepal",ja:"ネパール",ko:"네팔",zh_Hans:"尼泊尔",zh_Hant:"尼泊爾",id:"Nepal",th:"เนปาล",ar:"نيبال"},flag:"🇳🇵"},{country:"NR",code:"+674",name:{en:"Nauru",ja:"ナウル",ko:"나우루",zh_Hans:"瑙鲁",zh_Hant:"瑙魯",id:"Nauru",th:"นาอูรู",ar:"ناورو"},flag:"🇳🇷"},{country:"NZ",code:"+64",name:{en:"New Zealand",ja:"ニュージーランド",ko:"뉴질랜드",zh_Hans:"新西兰",zh_Hant:"新西蘭",id:"Selandia Baru",th:"นิวซีแลนด์",ar:"نيوزيلندا"},flag:"🇳🇿"},{country:"OM",code:"+968",name:{en:"Oman",ja:"オマーン",ko:"오만",zh_Hans:"阿曼",zh_Hant:"阿曼",id:"Oman",th:"โอมาน",ar:"عُمان"},flag:"🇴🇲"},{country:"PK",code:"+92",name:{en:"Pakistan",ja:"パキスタン",ko:"파키스탄",zh_Hans:"巴基斯坦",zh_Hant:"巴基斯坦",id:"Pakistan",th:"ปากีสถาน",ar:"باكستان"},flag:"🇵🇰"},{country:"PA",code:"+507",name:{en:"Panama",ja:"パナマ",ko:"파나마",zh_Hans:"巴拿马",zh_Hant:"巴拿馬",id:"Panama",th:"ปานามา",ar:"بنما"},flag:"🇵🇦"},{country:"PN",code:"+64",name:{en:"Pitcairn Islands",ja:"ピトケアン",ko:"핏케언 제도",zh_Hans:"皮特凯恩群岛",zh_Hant:"皮特凱恩群島",id:"Kepulauan Pitcairn",th:"หมู่เกาะพิตแคร์น",ar:"جزر بيتكيرن"},flag:"🇵🇳"},{country:"PE",code:"+51",name:{en:"Peru",ja:"ペルー",ko:"페루",zh_Hans:"秘鲁",zh_Hant:"祕魯",id:"Peru",th:"เปรู",ar:"بيرو"},flag:"🇵🇪"},{country:"PH",code:"+63",name:{en:"Philippines",ja:"フィリピン",ko:"필리핀",zh_Hans:"菲律宾",zh_Hant:"菲律賓",id:"Filipina",th:"ฟิลิปปินส์",ar:"الفلبين"},flag:"🇵🇭"},{country:"PW",code:"+680",name:{en:"Palau",ja:"パラオ",ko:"팔라우",zh_Hans:"帕劳",zh_Hant:"帕勞",id:"Palau",th:"ปาเลา",ar:"بالاو"},flag:"🇵🇼"},{country:"PG",code:"+675",name:{en:"Papua New Guinea",ja:"パプアニューギニア",ko:"파푸아뉴기니",zh_Hans:"巴布亚新几内亚",zh_Hant:"巴布亞新幾內亞",id:"Papua Nugini",th:"ปาปัวนิวกินี",ar:"بابوا غينيا الجديدة"},flag:"🇵🇬"},{country:"PL",code:"+48",name:{en:"Poland",ja:"ポーランド",ko:"폴란드",zh_Hans:"波兰",zh_Hant:"波蘭",id:"Polandia",th:"โปแลนด์",ar:"بولندا"},flag:"🇵🇱"},{country:"PR",code:"+1787",name:{en:"Puerto Rico",ja:"プエルトリコ",ko:"푸에르토리코",zh_Hans:"波多黎各",zh_Hant:"波多黎各",id:"Puerto Rico",th:"เปอร์โตริโก",ar:"بورتو ريكو"},flag:"🇵🇷"},{country:"KP",code:"+850",name:{en:"North Korea",ja:"朝鮮民主主義人民共和国",ko:"조선",zh_Hans:"朝鲜",zh_Hant:"朝鮮",id:"Korea Utara",th:"เกาหลีเหนือ",ar:"كوريا الشمالية"},flag:"🇰🇵"},{country:"PT",code:"+351",name:{en:"Portugal",ja:"ポルトガル",ko:"포르투갈",zh_Hans:"葡萄牙",zh_Hant:"葡萄牙",id:"Portugal",th:"โปรตุเกส",ar:"البرتغال"},flag:"🇵🇹"},{country:"PY",code:"+595",name:{en:"Paraguay",ja:"パラグアイ",ko:"파라과이",zh_Hans:"巴拉圭",zh_Hant:"巴拉圭",id:"Paraguay",th:"ปารากวัย",ar:"باراغواي"},flag:"🇵🇾"},{country:"PS",code:"+970",name:{en:"Palestine",ja:"パレスチナ",ko:"팔레스타인",zh_Hans:"巴勒斯坦",zh_Hant:"巴勒斯坦",id:"Palestina",th:"ปาเลสไตน์",ar:"فلسطين"},flag:"🇵🇸"},{country:"PF",code:"+689",name:{en:"French Polynesia",ja:"フランス領ポリネシア",ko:"프랑스령 폴리네시아",zh_Hans:"法属波利尼西亚",zh_Hant:"法屬波利尼西亞",id:"Polinesia Prancis",th:"เฟรนช์โปลินีเซีย",ar:"بولينيزيا الفرنسية"},flag:"🇵🇫"},{country:"QA",code:"+974",name:{en:"Qatar",ja:"カタール",ko:"카타르",zh_Hans:"卡塔尔",zh_Hant:"卡塔爾",id:"Qatar",th:"กาตาร์",ar:"قطر"},flag:"🇶🇦"},{country:"RE",code:"+262",name:{en:"Réunion",ja:"レユニオン",ko:"레위니옹",zh_Hans:"留尼旺岛",zh_Hant:"留尼旺島",id:"Réunion",th:"เรอูว์นียง",ar:"ريونيون"},flag:"🇷🇪"},{country:"RO",code:"+40",name:{en:"Romania",ja:"ルーマニア",ko:"루마니아",zh_Hans:"罗马尼亚",zh_Hant:"羅馬尼亞",id:"Rumania",th:"โรมาเนีย",ar:"رومانيا"},flag:"🇷🇴"},{country:"RU",code:"+7",name:{en:"Russia",ja:"ロシア連邦",ko:"러시아",zh_Hans:"俄罗斯",zh_Hant:"俄羅斯",id:"Rusia",th:"รัสเซีย",ar:"روسيا"},flag:"🇷🇺"},{country:"RW",code:"+250",name:{en:"Rwanda",ja:"ルワンダ",ko:"르완다",zh_Hans:"卢旺达",zh_Hant:"盧旺達",id:"Rwanda",th:"รวันดา",ar:"رواندا"},flag:"🇷🇼"},{country:"SA",code:"+966",name:{en:"Saudi Arabia",ja:"サウジアラビア",ko:"사우디아라비아",zh_Hans:"沙特阿拉伯",zh_Hant:"沙特阿拉伯",id:"Arab Saudi",th:"ซาอุดีอาระเบีย",ar:"المملكة العربية السعودية"},flag:"🇸🇦"},{country:"SD",code:"+249",name:{en:"Sudan",ja:"スーダン",ko:"수단",zh_Hans:"苏丹",zh_Hant:"蘇丹",id:"Sudan",th:"ซูดาน",ar:"السودان"},flag:"🇸🇩"}
1,{country:"SN",code:"+221",name:{en:"Senegal",ja:"セネガル",ko:"세네갈",zh_Hans:"塞内加尔",zh_Hant:"塞內加爾",id:"Senegal",th:"เซเนกัล",ar:"السنغال"},flag:"🇸🇳"},{country:"SG",code:"+65",name:{en:"Singapore",ja:"シンガポール",ko:"싱가포르",zh_Hans:"新加坡",zh_Hant:"新加坡",id:"Singapura",th:"สิงคโปร์",ar:"سنغافورة"},flag:"🇸🇬"},{country:"GS",code:"+500",name:{en:"South Georgia",ja:"サウスジョージア・サウスサンドウィッチ諸島",ko:"조지아",zh_Hans:"南乔治亚",zh_Hant:"南喬治亞",id:"Georgia Selatan",th:"เซาท์จอร์เจียและหมู่เกาะเซาท์แซนด์วิช",ar:"جورجيا الجنوبية"},flag:"🇬🇸"},{country:"SJ",code:"+47",name:{en:"Svalbard and Jan Mayen",ja:"スヴァールバル諸島およびヤンマイエン島",ko:"스발바르 얀마옌 제도",zh_Hans:"斯瓦尔巴特",zh_Hant:"斯瓦爾巴特",id:"Svalbard dan Jan Mayen",th:"สฟาลบาร์และยานไมเอน",ar:"سفالبارد ويان ماين"},flag:"🇸🇯"},{country:"SB",code:"+677",name:{en:"Solomon Islands",ja:"ソロモン諸島",ko:"솔로몬 제도",zh_Hans:"所罗门群岛",zh_Hant:"所羅門群島",id:"Kepulauan Solomon",th:"หมู่เกาะโซโลมอน",ar:"جزر سليمان"},flag:"🇸🇧"},{country:"SL",code:"+232",name:{en:"Sierra Leone",ja:"シエラレオネ",ko:"시에라리온",zh_Hans:"塞拉利昂",zh_Hant:"塞拉利昂",id:"Sierra Leone",th:"เซียร์ราลีโอน",ar:"سيراليون"},flag:"🇸🇱"},{country:"SV",code:"+503",name:{en:"El Salvador",ja:"エルサルバドル",ko:"엘살바도르",zh_Hans:"萨尔瓦多",zh_Hant:"薩爾瓦多",id:"El Salvador",th:"เอลซัลวาดอร์",ar:"السلفادور"},flag:"🇸🇻"},{country:"SM",code:"+378",name:{en:"San Marino",ja:"サンマリノ",ko:"산마리노",zh_Hans:"圣马力诺",zh_Hant:"聖馬力諾",id:"San Marino",th:"ซานมารีโน",ar:"سان مارينو"},flag:"🇸🇲"},{country:"SO",code:"+252",name:{en:"Somalia",ja:"ソマリア",ko:"소말리아",zh_Hans:"索马里",zh_Hant:"索馬里",id:"Somalia",th:"โซมาเลีย",ar:"الصومال"},flag:"🇸🇴"},{country:"PM",code:"+508",name:{en:"Saint Pierre and Miquelon",ja:"サンピエール島・ミクロン島",ko:"생피에르 미클롱",zh_Hans:"圣皮埃尔和密克隆",zh_Hant:"聖皮埃爾和密克隆",id:"Saint Pierre dan Miquelon",th:"แซงปีแยร์และมีเกอลง",ar:"سان بيير وميكلون"},flag:"🇵🇲"},{country:"RS",code:"+381",name:{en:"Serbia",ja:"セルビア",ko:"세르비아",zh_Hans:"塞尔维亚",zh_Hant:"塞爾維亞",id:"Serbia",th:"เซอร์เบีย",ar:"صربيا"},flag:"🇷🇸"},{country:"SS",code:"+211",name:{en:"South Sudan",ja:"南スーダン",ko:"남수단",zh_Hans:"南苏丹",zh_Hant:"南蘇丹",id:"Sudan Selatan",th:"เซาท์ซูดาน",ar:"جنوب السودان"},flag:"🇸🇸"},{country:"ST",code:"+239",name:{en:"São Tomé and Príncipe",ja:"サントメ・プリンシペ",ko:"상투메 프린시페",zh_Hans:"圣多美和普林西比",zh_Hant:"聖多美和普林西比",id:"Sao Tome dan Principe",th:"เซาตูเมและปรินซิปี",ar:"ساو تومي وبرينسيب"},flag:"🇸🇹"},{country:"SR",code:"+597",name:{en:"Suriname",ja:"スリナム",ko:"수리남",zh_Hans:"苏里南",zh_Hant:"蘇里南",id:"Suriname",th:"ซูรินาม",ar:"سورينام"},flag:"🇸🇷"},{country:"SK",code:"+421",name:{en:"Slovakia",ja:"スロバキア",ko:"슬로바키아",zh_Hans:"斯洛伐克",zh_Hant:"斯洛伐克",id:"Slovakia",th:"สโลวาเกีย",ar:"سلوفاكيا"},flag:"🇸🇰"},{country:"SI",code:"+386",name:{en:"Slovenia",ja:"スロベニア",ko:"슬로베니아",zh_Hans:"斯洛文尼亚",zh_Hant:"斯洛文尼亞",id:"Slovenia",th:"สโลวีเนีย",ar:"سلوفينيا"},flag:"🇸🇮"},{country:"SE",code:"+46",name:{en:"Sweden",ja:"スウェーデン",ko:"스웨덴",zh_Hans:"瑞典",zh_Hant:"瑞典",id:"Swedia",th:"สวีเดน",ar:"السويد"},flag:"🇸🇪"},{country:"SZ",code:"+268",name:{en:"Eswatini",ja:"スワジランド",ko:"에스와티니",zh_Hans:"斯威士兰",zh_Hant:"斯威士蘭",id:"Eswatini",th:"เอสวาตินี",ar:"إسواتيني"},flag:"🇸🇿"}
1,{country:"SX",code:"+1721",name:{en:"Sint Maarten",ja:"シント・マールテン",ko:"신트마르턴",zh_Hans:"圣马丁岛",zh_Hant:"聖馬丁島",id:"Sint Maarten",th:"ซินต์มาร์เติน",ar:"سينت مارتن"},flag:"🇸🇽"},{country:"SC",code:"+248",name:{en:"Seychelles",ja:"セーシェル",ko:"세이셸",zh_Hans:"塞舌尔",zh_Hant:"塞舌爾",id:"Seychelles",th:"เซเชลส์",ar:"سيشل"},flag:"🇸🇨"},{country:"SY",code:"+963",name:{en:"Syria",ja:"シリア・アラブ共和国",ko:"시리아",zh_Hans:"叙利亚",zh_Hant:"敘利亞",id:"Suriah",th:"ซีเรีย",ar:"سوريا"},flag:"🇸🇾"},{country:"TC",code:"+1649",name:{en:"Turks and Caicos Islands",ja:"タークス・カイコス諸島",ko:"터크스 케이커스 제도",zh_Hans:"特克斯和凯科斯群岛",zh_Hant:"特克斯和凱科斯群島",id:"Kepulauan Turks dan Caicos",th:"หมู่เกาะเติกส์และหมู่เกาะเคคอส",ar:"جزر توركس وكايكوس"},flag:"🇹🇨"},{country:"TD",code:"+235",name:{en:"Chad",ja:"チャド",ko:"차드",zh_Hans:"乍得",zh_Hant:"乍得",id:"Chad",th:"ชาด",ar:"تشاد"},flag:"🇹🇩"},{country:"TG",code:"+228",name:{en:"Togo",ja:"トーゴ",ko:"토고",zh_Hans:"多哥",zh_Hant:"多哥",id:"Togo",th:"โตโก",ar:"توجو"},flag:"🇹🇬"},{country:"TH",code:"+66",name:{en:"Thailand",ja:"タイ",ko:"태국",zh_Hans:"泰国",zh_Hant:"泰國",id:"Thailand",th:"ประเทศไทย",ar:"تايلاند"},flag:"🇹🇭"},{country:"TJ",code:"+992",name:{en:"Tajikistan",ja:"タジキスタン",ko:"타지키스탄",zh_Hans:"塔吉克斯坦",zh_Hant:"塔吉克斯坦",id:"Tajikistan",th:"ทาจิกิสถาน",ar:"طاجيكستان"},flag:"🇹🇯"},{country:"TK",code:"+690",name:{en:"Tokelau",ja:"トケラウ",ko:"토켈라우",zh_Hans:"托克劳",zh_Hant:"托克勞",id:"Tokelau",th:"โตเกเลา",ar:"توكيلاو"},flag:"🇹🇰"},{country:"TM",code:"+993",name:{en:"Turkmenistan",ja:"トルクメニスタン",ko:"투르크메니스탄",zh_Hans:"土库曼斯坦",zh_Hant:"土庫曼斯坦",id:"Turkmenistan",th:"เติร์กเมนิสถาน",ar:"تركمانستان"},flag:"🇹🇲"},{country:"TL",code:"+670",name:{en:"Timor-Leste",ja:"東ティモール",ko:"동티모르",zh_Hans:"东帝汶",zh_Hant:"東帝汶",id:"Timor Leste",th:"ติมอร์-เลสเต",ar:"تيمور الشرقية"},flag:"🇹🇱"},{country:"TO",code:"+676",name:{en:"Tonga",ja:"トンガ",ko:"통가",zh_Hans:"汤加",zh_Hant:"湯加",id:"Tonga",th:"ตองกา",ar:"تونغا"},flag:"🇹🇴"},{country:"TT",code:"+1868",name:{en:"Trinidad and Tobago",ja:"トリニダード・トバゴ",ko:"트리니다드 토바고",zh_Hans:"特立尼达和多巴哥",zh_Hant:"特立尼達和多巴哥",id:"Trinidad dan Tobago",th:"ตรินิแดดและโตเบโก",ar:"ترينيداد وتوباغو"},flag:"🇹🇹"},{country:"TN",code:"+216",name:{en:"Tunisia",ja:"チュニジア",ko:"튀니지",zh_Hans:"突尼斯",zh_Hant:"突尼斯",id:"Tunisia",th:"ตูนิเซีย",ar:"تونس"},flag:"🇹🇳"},{country:"TR",code:"+90",name:{en:"Turkey",ja:"トルコ",ko:"터키",zh_Hans:"土耳其",zh_Hant:"土耳其",id:"Turki",th:"ตุรกี",ar:"تركيا"},flag:"🇹🇷"},{country:"TV",code:"+688",name:{en:"Tuvalu",ja:"ツバル",ko:"투발루",zh_Hans:"图瓦卢",zh_Hant:"圖瓦盧",id:"Tuvalu",th:"ตูวาลู",ar:"توفالو"},flag:"🇹🇻"},{country:"TW",code:"+886",name:{en:"Taiwan",ja:"台湾",ko:"대만",zh_Hans:"台灣",zh_Hant:"台灣",id:"Taiwan",th:"ไต้หวัน",ar:"تايوان"},flag:"🇹🇼"},{country:"TZ",code:"+255",name:{en:"Tanzania",ja:"タンザニア",ko:"탄자니아",zh_Hans:"坦桑尼亚",zh_Hant:"坦桑尼亞",id:"Tanzania",th:"แทนซาเนีย",ar:"تنزانيا"},flag:"🇹🇿"},{country:"UG",code:"+256",name:{en:"Uganda",ja:"ウガンダ",ko:"우간다",zh_Hans:"乌干达",zh_Hant:"烏干達",id:"Uganda",th:"ยูกันดา",ar:"أوغندا"},flag:"🇺🇬"}
1,{country:"UA",code:"+380",name:{en:"Ukraine",ja:"ウクライナ",ko:"우크라이나",zh_Hans:"乌克兰",zh_Hant:"烏克蘭",id:"Ukraina",th:"ยูเครน",ar:"أوكرانيا"},flag:"🇺🇦"},{country:"UM",code:"+268",name:{en:"United States Minor Outlying Islands",ja:"合衆国領有小離島",ko:"미국령 군소 제도",zh_Hans:"美国本土外小岛屿",zh_Hant:"美國本土外小島嶼",id:"Kepulauan Terluar Kecil Amerika Serikat",th:"หมู่เกาะรอบนอกสหรัฐเล็ก",ar:"جزر الولايات المتحدة الصغيرة النائية"},flag:"🇺🇲"},{country:"UY",code:"+598",name:{en:"Uruguay",ja:"ウルグアイ",ko:"우루과이",zh_Hans:"乌拉圭",zh_Hant:"烏拉圭",id:"Uruguay",th:"อุรุกวัย",ar:"أوروغواي"},flag:"🇺🇾"},{country:"US",code:"+1",name:{en:"United States",ja:"アメリカ合衆国",ko:"미국",zh_Hans:"美国",zh_Hant:"美國",id:"Amerika Serikat",th:"สหรัฐอเมริกา",ar:"الولايات المتحدة"},flag:"🇺🇸"},{country:"UZ",code:"+998",name:{en:"Uzbekistan",ja:"ウズベキスタン",ko:"우즈베키스탄",zh_Hans:"乌兹别克斯坦",zh_Hant:"烏茲別克斯坦",id:"Uzbekistan",th:"อุซเบกิสถาน",ar:"أوزبكستان"},flag:"🇺🇿"},{country:"VA",code:"+39",name:{en:"Vatican City",ja:"バチカン市国",ko:"바티칸",zh_Hans:"梵蒂冈",zh_Hant:"梵蒂岡",id:"Kota Vatikan",th:"นครวาติกัน",ar:"مدينة الفاتيكان"},flag:"🇻🇦"},{country:"VC",code:"+1784",name:{en:"Saint Vincent and the Grenadines",ja:"セントビンセントおよびグレナディーン諸島",ko:"세인트빈센트 그레나딘",zh_Hans:"圣文森特和格林纳丁斯",zh_Hant:"聖文森特和格林納丁斯",id:"Saint Vincent dan Grenadines",th:"เซนต์วินเซนต์และเกรนาดีนส์",ar:"سانت فنسنت والغرينادين"},flag:"🇻🇨"},{country:"VE",code:"+58",name:{en:"Venezuela",ja:"ベネズエラ・ボリバル共和国",ko:"베네수엘라",zh_Hans:"委内瑞拉",zh_Hant:"委內瑞拉",id:"Venezuela",th:"เวเนซุเอลา",ar:"فنزويلا"},flag:"🇻🇪"},{country:"VG",code:"+1284",name:{en:"British Virgin Islands",ja:"イギリス領ヴァージン諸島",ko:"영국령 버진아일랜드",zh_Hans:"英属维尔京群岛",zh_Hant:"英屬維爾京群島",id:"Kepulauan Virgin Inggris",th:"หมู่เกาะบริติชเวอร์จิน",ar:"جزر العذراء البريطانية"},flag:"🇻🇬"},{country:"VI",code:"+1340",name:{en:"United States Virgin Islands",ja:"アメリカ領ヴァージン諸島",ko:"미국령 버진아일랜드",zh_Hans:"美属维尔京群岛",zh_Hant:"美屬維爾京群島",id:"Kepulauan Virgin Amerika Serikat",th:"หมู่เกาะเวอร์จินของสหรัฐอเมริกา",ar:"جزر العذراء الأمريكية"},flag:"🇻🇮"},{country:"VN",code:"+84",name:{en:"Vietnam",ja:"ベトナム",ko:"베트남",zh_Hans:"越南",zh_Hant:"越南",id:"Vietnam",th:"เวียดนาม",ar:"فيتنام"},flag:"🇻🇳"},{country:"VU",code:"+678",name:{en:"Vanuatu",ja:"バヌアツ",ko:"바누아투",zh_Hans:"瓦努阿图",zh_Hant:"瓦努阿圖",id:"Vanuatu",th:"วานูอาตู",ar:"فانواتو"},flag:"🇻🇺"},{country:"WF",code:"+681",name:{en:"Wallis and Futuna",ja:"ウォリス・フツナ",ko:"왈리스 퓌튀나",zh_Hans:"瓦利斯和富图纳群岛",zh_Hant:"瓦利斯和富圖納群島",id:"Wallis dan Futuna",th:"วาลลิสและฟุตูนา",ar:"واليس وفوتونا"},flag:"🇼🇫"},{country:"WS",code:"+685",name:{en:"Samoa",ja:"サモア",ko:"사모아",zh_Hans:"萨摩亚",zh_Hant:"薩摩亞",id:"Samoa",th:"ซามัว",ar:"ساموا"},flag:"🇼🇸"},{country:"YE",code:"+967",name:{en:"Yemen",ja:"イエメン",ko:"예멘",zh_Hans:"也门",zh_Hant:"也門",id:"Yaman",th:"เยเมน",ar:"اليمن"},flag:"🇾🇪"},{country:"ZA",code:"+27",name:{en:"South Africa",ja:"南アフリカ",ko:"남아프리카",zh_Hans:"南非",zh_Hant:"南非",id:"Afrika 
1Selatan",th:"แอฟริกาใต้",ar:"جنوب أفريقيا"},flag:"🇿🇦"},{country:"ZM",code:"+260",name:{en:"Zambia",ja:"ザンビア",ko:"잠비아",zh_Hans:"赞比亚",zh_Hant:"贊比亞",id:"Zambia",th:"แซมเบีย",ar:"زامبيا"},flag:"🇿🇲"},{country:"ZW",code:"+263",name:{en:"Zimbabwe",ja:"ジンバブエ",ko:"짐바브웨",zh_Hans:"津巴布韦",zh_Hant:"津巴布韋",id:"Zimbabwe",th:"ซิมบับเว",ar:"زيمبابوي"},flag:"🇿🇼"}],l={JPY:"JP",ARS:"AR",AUD:"AU",BRL:"BR",CAD:"CA",CNY:"CN",CZK:"CZ",DKK:"DK",EUR:"DE",HKD:"HK",INR:"IN",IDR:"ID",ILS:"IL",MOP:"MO",MYR:"MY",MXN:"MX",TWD:"TW",NZD:"NZ",NOK:"NO",PHP:"PH",GBP:"GB",QAR:"QA",SAR:"SA",SGD:"SG",ZAR:"ZA",KRW:"KR",LKR:"LK",SEK:"SE",CHF:"CH",THB:"TH",AED:"AE",USD:"US",VND:"VN",KWD:"KW",BHD:"BH"};function getSuggestedCountry(e){var t=l[e]||null;if(t){var a=s.find((function(e){return e.country===t}));if(a)return a}return s[0]}var u=a(181);function asyncGeneratorStep(e,t,a,n,r,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(n,r)}var c,d={name:"TCountryCodeDropdown",props:{value:{type:String,default:null},state:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function data(){return{search:"",chunkIndex:0,chunkSize:50,suggestedCountry:null,selectedCountry:null,observer:null}},computed:{locale:function locale(){return this.$i18n.locale},selectedOption:function selectedOption(){var e=this;return s.find((function(t){return t.country===e.selectedCountry}))},showClear:function showClear(){return!!this.value&&!this.disabled},displayOptions:function displayOptions(){var e=this;if(this.search){var t=this.search.toLowerCase();return s.filter((function(a){return(a.name[e.locale]||a.name.en).toLowerCase().includes(t)||a.code.toLowerCase().includes(t)||a.country.toLowerCase().includes(t)}))}return s.slice(0,(this.chunkIndex+1)*this.chunkSize)}},watch:{search:function search(){this.throttledUpdatePopper()},value:{immediate:!0,handler:function handler(e){if(!this.selectedOption||this.selectedOption.code!==e){var t=s.find((function(t){return t.code===e}));this.selectedCountry=t?t.country:null}}}},mounted:(c=function _asyncToGenerator(e){return function(){var t=this,a=arguments;return new Promise((function(n,r){var o=e.apply(t,a);function _next(e){asyncGeneratorStep(o,n,r,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,n,r,_next,_throw,"throw",e)}_next(void 0)}))}}(regeneratorRuntime.mark((function _callee(){var e,t,a;return regeneratorRuntime.wrap((function _callee$(n){for(;;)switch(n.prev=n.next){case 0:if(this.setupIntersectionObserver(),this.value){n.next=8;break}return n.next=4,u.a.getCurrencyByIP();case 4:e=n.sent,t=e.currency,(a=getSuggestedCountry(t))&&(this.suggestedCountry=a,this.selectedCountry=a.country,this.$emit("input",a.code));case 8:case"end":return n.stop()}}),_callee,this)}))),function mounted(){return c.apply(this,arguments)}),beforeDestroy:function beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{throttledUpdatePopper:i()((function(){this.$refs.bDropdown&&this.$refs.bDropdown.updatePopper&&this.$refs.bDropdown.updatePopper()}),200),onSelect:function onSelect(e){this.selectedCountry=e.country,this.$emit("input",e.code),this.$refs.bDropdown.hide()},isSelected:function isSelected(e){return e.country&&this.selectedCountry===e.country},handleShown:function handleShown(){0===this.displayOptions.length&&(this.search="")},loadMore:function loadMore(){(this.chunkIndex+1)*this.chunkSize<s.length&&this.chunkIndex++},setupIntersectionObserver:function setupIntersectionObserver(){var e=this;this.observer=new IntersectionObserver((function(t){t.forEach((function(t){t.isIntersecting&&e.loadMore()}))}),{root:null,rootMargin:"0px",threshold:.5});var t=this.$refs.observerElement;t&&this.observer.observe(t)}}},h=(a(1126),a(33));function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var m={name:"GuestFormPhone",components:{TCountryCodeDropdown:Object(h.a)(d,(function render(){var e=this,t=e._self._c;return t("div",{staticClass:"country-code-dropdown-wrapper",class:{disabled:e.disabled,"is-invalid":!1===e.state}},[t("b-dropdown",{ref:"bDropdown",staticClass:"country-code-dropdown",class:{"has-value":!!e.value},attrs:{variant:"outline",disabled:e.disabled},on:{shown:e.handleShown},scopedSlots:e._u([{key:"button-content",fn:function fn(){return[e._v("\n        "+e._s(e.selectedOption?e.selectedOption.flag:"")+"\n        "+e._s(e.selectedOption?e.selectedOption.code:e.placeholder||e.$t("base.notSelected"))+"\n      ")]},proxy:!0}])},[e._v(" "),t("b-dropdown-text",{staticClass:"country-code-dropdown-menu-content"},[t("div",{staticClass:"search-container"},[t("b-form-input",{staticClass:"search-input",attrs:{placeholder:e.$t("guestDetail.searchCountries"),size:"sm",autocomplete:"off"}
1,model:{value:e.search,callback:function callback(t){e.search=t},expression:"search"}})],1),e._v(" "),e.suggestedCountry?t("div",{staticClass:"location-suggestion"},[t("p",{staticClass:"suggestion-label mb-0"},[e._v("\n            "+e._s(e.$t("guestDetail.basedOnYourLocation"))+"\n          ")]),e._v(" "),t("div",{staticClass:"country-item",class:{selected:e.isSelected(e.suggestedCountry)},on:{click:function click(t){return e.onSelect(e.suggestedCountry)}}},[e._v("\n            "+e._s(e.suggestedCountry.flag)+"\n            "+e._s(e.suggestedCountry.name[e.locale])+"\n            "+e._s(e.suggestedCountry.code)+"\n          ")])]):e._e(),e._v(" "),e._l(e.displayOptions,(function(a,n){return t("div",{key:n,staticClass:"country-item",class:{selected:e.isSelected(a)},on:{click:function click(t){return e.onSelect(a)}}},[e._v("\n          "+e._s(a.flag)+" "+e._s(a.name[e.locale])+" "+e._s(a.code)+"\n        ")])})),e._v(" "),t("div",{ref:"observerElement"})],2)],1),e._v(" "),e.showClear?t("i",{staticClass:"icon-delete dropdown-close-icon",on:{click:function click(t){return e.$emit("input",null)}}}):t("i",{staticClass:"icon-arrow-chevron-down dropdown-arrow-icon"})],1)}),[],!1,null,"74a72fbe",null).exports,TCheckboxDropdown:a(1018).a},props:{phone:{type:String,default:null},phoneCountryCode:{type:String,default:null},phoneCategory:{type:String,default:"mobile"},phoneValidation:{type:Object,default:function _default(){return{}}}
1,phoneCountryCodeValidation:{type:Object,default:function _default(){return{}}},invalidPhone:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data:function data(){return{isPasting:!1,phoneErrorType:null}},computed:function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(a,!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},Object(n.d)({isExtendedPhoneFormatEnabled:"setting/isExtendedPhoneFormatEnabled"}),{localPhone:{get:function get(){return this.phone},set:function set(e){this.$emit("update:phone",e)}},localPhoneCountryCode:{get:function get(){return this.phoneCountryCode},set:function set(e){this.$emit("update:phoneCountryCode",e)}},localPhoneCategory:{get:function get(){return this.phoneCategory},set:function set(e){this.$emit("update:phoneCategory",e)}},phoneCategoryOptions:function phoneCategoryOptions(){return[{value:"mobile",text:this.$t("guestDetail.phoneCategory.mobile")},{value:"home",text:this.$t("guestDetail.phoneCategory.home")},{value:"work",text:this.$t("guestDetail.phoneCategory.work")}]},extendedPhoneState:function extendedPhoneState(){return!this.phoneErrorType&&(this.phoneValidation.$dirty?!this.phoneValidation.$error:null)},extendedPhoneErrorMessage:function extendedPhoneErrorMessage(){return"invalidChars"===this.phoneErrorType?this.$t("guestDetail.phoneNumberInvalidChars"):this.phoneValidation.$dirty&&this.phoneValidation.$error?this.localPhone?this.$t("guestDetail.phoneNumberInvalidLength"):this.$t("base.isRequired",{field:this.$t("guestDetail.phoneNumber")}):""}}),methods:{formatPhone:r.a.formatPhone,normalizePhone:function normalizePhone(e){var t=e.replace(/\D/g,""),a=(this.localPhoneCountryCode||"").replace(/\D/g,"");return a&&t?t.startsWith("00"+a)&&t.length>2+a.length?t.slice(2+a.length):t.startsWith(a)&&t.length>a.length?t.slice(a.length):t.startsWith("0")?t.slice(1):t:t},onPhonePaste:function onPhonePaste(e){var t=this;e.preventDefault(),this.isPasting=!0;var a=e.clipboardData&&e.clipboardData.getData("text")||"",n=this.normalizePhone(a);e.target.value=n,this.localPhone=n,this.$nextTick((function(){t.isPasting=!1}))},onPhoneInput:function onPhoneInput(e){var t=/[^\d+]/.test(e);this.localPhone=e,!t||this.isPasting?"invalidChars"!==this.phoneErrorType||t||(this.phoneErrorType=null):this.phoneErrorType="invalidChars"},onPhoneBlur:function onPhoneBlur(){var e=this.normalizePhone(this.localPhone||"");e!==this.localPhone&&(this.localPhone=e),this.$emit("phone-blur")}}},f=(a(1127),Object(h.a)(m,(function render(){var e=this,t=e._self._c;return t("fieldset",{attrs:{disabled:e.disabled}},[e.isExtendedPhoneFormatEnabled?t("b-form-group",{staticClass:"required-info mt-3",attrs:{label:e.$t("guestDetail.phoneNumber")}},[t("div",{staticClass:"extended-phone-row"},[t("t-checkbox-dropdown",{staticClass:"extended-phone-category",attrs:{value:e.localPhoneCategory,options:e.phoneCategoryOptions,radio:"","data-cy":"phone-category"},on:{input:function input(t){e.localPhoneCategory=t}}}),e._v(" "),t("t-country-code-dropdown",{staticClass:"extended-phone-country-code",attrs:{value:e.localPhoneCountryCode,state:e.phoneCountryCodeValidation.$dirty?!e.phoneCountryCodeValidation.$error:null,"data-cy":"phone-country-code"},on:{input:function input(t){e.localPhoneCountryCode=t}}}),e._v(" "),t("div",{staticClass:"extended-phone-number"},[t("t-input",{attrs:{id:"phone",value:e.localPhone,trim:"","data-cy":"phone-number",placeholder:e.$t("guestDetail.phoneNumber"),state:e.extendedPhoneState},on:{paste:e.onPhonePaste,input:e.onPhoneInput,blur:e.onPhoneBlur}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{state:e.extendedPhoneState}},[e._v("\n            "+e._s(e.extendedPhoneErrorMessage)+"\n          ")])],1)],1)]):t("b-form-group",{staticClass:"required-info mt-3",attrs:{label:e.$t("guestDetail.phone")}},[t("t-input",{attrs:{id:"phone",placeholder:e.$t("guestDetail.phoneHelp"),formatter:e.formatPhone,"aria-describedby":"input-phone-feedback",state:e.phoneValidation.$dirty?!e.phoneValidation.$error:null,trim:"","data-cy":"phone-number",maxlength:255},on:{blur:function blur(t){return e.$emit("phone-blur")}},model:{value:e.localPhone,callback:function callback(t){e.localPhone=t},expression:"localPhone"}}
1),e._v(" "),e.invalidPhone?t("b-form-invalid-feedback",[e._v("\n        "+e._s(e.$t("guestDetail.phoneConfirm"))+"\n      ")]):e._e()],1)],1)}),[],!1,null,"2d20b60e",null));t.a=f.exports},1133:function(e,t,a){"use strict";var n=a(856),r=a(985),o=a(259),i={name:"GuestFormNames",props:{language:{type:String,default:"en"},hotelLocale:{type:String,default:"ja"},enableKanjiNames:{type:Boolean,default:!1},isEnglishNameRequired:{type:Boolean,default:!1},first_name:{type:String,default:""},last_name:{type:String,default:""},first_name_kana:{type:String,default:""},last_name_kana:{type:String,default:""},first_name_en:{type:String,default:""},last_name_en:{type:String,default:""},roomIndex:{type:Number,default:0},lockedFields:{type:Array,default:function _default(){return[]}}},data:function data(){return{firstNameSlotName:Object(o.v4)(),lastNameSlotName:Object(o.v4)(),form:{first_name:null,last_name:null,first_name_kana:null,last_name_kana:null,first_name_en:null,last_name_en:null}}},computed:{hiraganaRequired:function hiraganaRequired(){return"ja"===this.hotelLocale&&"ja"===this.language}},watch:{first_name:{handler:function handler(e){this.form.first_name=e},immediate:!0},last_name:{handler:function handler(e){this.form.last_name=e},immediate:!0},first_name_kana:{handler:function handler(e){this.form.first_name_kana=e},immediate:!0},last_name_kana:{handler:function handler(e){this.form.last_name_kana=e},immediate:!0},first_name_en:{handler:function handler(e){this.form.first_name_en=e},immediate:!0},last_name_en:{handler:function handler(e){this.form.last_name_en=e},immediate:!0}},created:function created(){},methods:{handleBlur:function handleBlur(e){this.form[e]=(this.form[e]||"").trim(),this.$emit("update:".concat(e),this.form[e]),this.$v.form[e].$touch()},handleFirstNameChange:function handleFirstNameChange(e){this.$emit("update:first_name",e)},handleLastNameChange:function handleLastNameChange(e){this.$emit("update:last_name",e)}},validations:function validations(){var e=this,t={zh_Hant:r.a,ja:"ja"===this.language?r.h:r.f,ko:r.i}[this.hotelLocale];return{form:{first_name:{required:Object(n.requiredIf)((function(){return"ja"!==e.hotelLocale||"ja"!==e.language||e.hiraganaRequired&&e.enableKanjiNames})),characters:function characters(e){return this.isEnglishNameRequired?"ja"===this.language?t(e):Object(r.k)(e):!(!this.hiraganaRequired||this.enableKanjiNames)||t(e)}},last_name:{required:Object(n.requiredIf)((function(){return"ja"!==e.hotelLocale||"ja"!==e.language||e.hiraganaRequired&&e.enableKanjiNames})),characters:function characters(e){return this.isEnglishNameRequired?"ja"===this.language?t(e):Object(r.k)(e):!(!this.hiraganaRequired||this.enableKanjiNames)||t(e)}},first_name_kana:{required:Object(n.requiredIf)((function(){return e.hiraganaRequired&&!e.isEnglishNameRequired})),hiragana:Object(r.g)((function(){return e.hiraganaRequired}))},last_name_kana:{required:Object(n.requiredIf)((function(){return e.hiraganaRequired&&!e.isEnglishNameRequired})),hiragana:Object(r.g)((function(){return e.hiraganaRequired}))},first_name_en:{required:Object(n.requiredIf)((function(){return e.isEnglishNameRequired})),characters:r.k},last_name_en:{required:Object(n.requiredIf)((function(){return e.isEnglishNameRequired})),characters:r.k}}}}},s=(a(1112),a(33)),l=Object(s.a)(i,(function render(){var e=this,t=e._self._c;return t("div",{staticClass:"required-info"},["ja"!==e.hotelLocale||"ja"!==e.language?t("b-form-row",{staticClass:"d-flex"},["en"===e.language?[t("b-col",{attrs:{sm:"12",md:"6"}},[t("portal-target",{attrs:{name:e.firstNameSlotName}})],1),e._v(" "),t("b-col",{attrs:{sm:"12",md:"6"}},[t("portal-target",{attrs:{name:e.lastNameSlotName}})],1)]:[t("b-col",{attrs:{sm:"12",md:"6"}},[t("portal-target",{attrs:{name:e.lastNameSlotName}})],1),e._v(" "),t("b-col",{attrs:{sm:"12",md:"6"}},[t("portal-target",{attrs:{name:e.firstNameSlotName}})],1)],e._v(" "),t("portal",{attrs:{to:e.lastNameSlotName}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.isEnglishNameRequired?e.$t("membershipForm.guest_last_name_english"):e.$t("membershipForm.lastNameLocales.".concat(e.hotelLocale))))]),e._v(" "),t("t-input",{attrs:{id:"last-name-".concat(e.roomIndex),disabled:e.lockedFields.includes("last_name"),type:"text",trim:"",placeholder:e.isEnglishNameRequired?e.$t("membershipForm.nameEnPlaceholder"):e.$t("membershipForm.namePlaceholder.".concat(e.hotelLocale)),state:e.$v.form.last_name.$dirty?!e.$v.form.last_name.$error:null,"data-cy":"last-name",maxlength:255},on:{blur:function blur(t){return e.handleBlur("last_name")}
1,input:e.handleLastNameChange},model:{value:e.form.last_name,callback:function callback(t){e.$set(e.form,"last_name",t)},expression:"form.last_name"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"first_name-feedback"}},[e._v("\n          "+e._s(e.isEnglishNameRequired?e.$t("membershipForm.nameEnValidation"):e.$v.form.last_name.characters?e.$t("membershipForm.nameValidation.".concat(e.hotelLocale)):e.$t("membershipForm.nameInvalidCharMessage"))+"\n        ")])],1),e._v(" "),t("portal",{attrs:{to:e.firstNameSlotName}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.isEnglishNameRequired?e.$t("membershipForm.guest_first_name_english"):e.$t("membershipForm.firstNameLocales.".concat(e.hotelLocale))))]),e._v(" "),t("t-input",{attrs:{id:"first-name-".concat(e.roomIndex),disabled:e.lockedFields.includes("first_name"),type:"text",trim:"",state:e.$v.form.first_name.$dirty?!e.$v.form.first_name.$error:null,placeholder:e.isEnglishNameRequired?e.$t("membershipForm.nameEnPlaceholder"):e.$t("membershipForm.namePlaceholder.".concat(e.hotelLocale)),"data-cy":"first-name",maxlength:255},on:{blur:function blur(t){return e.handleBlur("first_name")},input:e.handleFirstNameChange},model:{value:e.form.first_name,callback:function callback(t){e.$set(e.form,"first_name",t)},expression:"form.first_name"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"first_name-feedback"}},[e._v("\n          "+e._s(e.isEnglishNameRequired?e.$t("membershipForm.nameEnValidation"):e.$v.form.first_name.characters?e.$t("membershipForm.nameValidation.".concat(e.hotelLocale)):e.$t("membershipForm.nameInvalidCharMessage"))+"\n        ")])],1)],2):e._e(),e._v(" "),"ja"===e.hotelLocale&&"ja"===e.language&&(e.enableKanjiNames||e.isEnglishNameRequired)?t("b-form-row",{staticClass:"d-flex"},[t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{class:e.isEnglishNameRequired?"form-guest-name":"form-label"},[e._v(e._s(e.isEnglishNameRequired?e.$t("membershipForm.guest_last_name_kanji"):e.$t("membershipForm.lastName")))]),e._v(" "),t("t-input",{attrs:{id:"last-name-kanji-".concat(e.roomIndex),disabled:e.lockedFields.includes("last_name"),type:"text",trim:"",placeholder:e.isEnglishNameRequired?e.$t("membershipForm.nameJaKanjiPlaceholder"):e.$t("membershipForm.nameJaPlaceholder"),state:e.$v.form.last_name.$dirty?!e.$v.form.last_name.$error:null,"data-cy":"last-name",maxlength:255},on:{blur:function blur(t){return e.handleBlur("last_name")},input:e.handleLastNameChange},model:{value:e.form.last_name,callback:function callback(t){e.$set(e.form,"last_name",t)},expression:"form.last_name"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"last_name-feedback"}},[e._v("\n          "+e._s(e.isEnglishNameRequired?e.$t("membershipForm.nameJaKanjiValidation"):e.$v.form.last_name.characters?e.$t("membershipForm.nameJaValidation"):e.$t("membershipForm.nameInvalidCharMessage"))+"\n        ")])],1),e._v(" "),t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{class:e.isEnglishNameRequired?"form-guest-name":"form-label"},[e._v(e._s(e.isEnglishNameRequired?e.$t("membershipForm.guest_first_name_kanji"):e.$t("membershipForm.firstName")))]),e._v(" "),t("t-input",{attrs:{id:"first-name-kanji-".concat(e.roomIndex),disabled:e.lockedFields.includes("first_name"),type:"text",trim:"",state:e.$v.form.first_name.$dirty?!e.$v.form.first_name.$error:null,placeholder:e.isEnglishNameRequired?e.$t("membershipForm.nameJaKanjiPlaceholder"):e.$t("membershipForm.nameJaPlaceholder"),"data-cy":"first-name",maxlength:255},on:{blur:function blur(t){return e.handleBlur("first_name")},input:e.handleFirstNameChange},model:{value:e.form.first_name,callback:function callback(t){e.$set(e.form,"first_name",t)},expression:"form.first_name"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"first_name-feedback"}},[e._v("\n          "+e._s(e.isEnglishNameRequired?e.$t("membershipForm.nameJaKanjiValidation"):e.$v.form.first_name.characters?e.$t("membershipForm.nameJaValidation"):e.$t("membershipForm.nameInvalidCharMessage"))+"\n        ")])],1)],1):e._e(),e._v(" "),"ja"===e.hotelLocale&&"ja"===e.language&&e.isEnglishNameRequired?t("b-form-row",[t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.$t("membershipForm.guest_last_name_english")))]),e._v(" "),t("t-input",{attrs:{id:"last-name-en-".concat(e.roomIndex),disabled:e.lockedFields.includes("last_name_en"),trim:"",type:"text",placeholder:e.$t("membershipForm.nameEnPlaceholder"),state:e.$v.form.last_name_en.$dirty?!e.$v.form.last_name_en.$error:null,maxlength:255},on:{blur:function blur(t){return e.handleBlur("last_name_en")}
1,input:function input(t){return e.$emit("update:last_name_en",t)}},model:{value:e.form.last_name_en,callback:function callback(t){e.$set(e.form,"last_name_en",t)},expression:"form.last_name_en"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"last_name_en-feedback"}},[e._v("\n          "+e._s(e.$t("membershipForm.nameEnValidation"))+"\n        ")])],1),e._v(" "),t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.$t("membershipForm.guest_first_name_english")))]),e._v(" "),t("t-input",{attrs:{id:"first-name-en-".concat(e.roomIndex),disabled:e.lockedFields.includes("first_name_en"),type:"text",trim:"",placeholder:e.$t("membershipForm.nameEnPlaceholder"),state:e.$v.form.first_name_en.$dirty?!e.$v.form.first_name_en.$error:null,maxlength:255},on:{blur:function blur(t){return e.handleBlur("first_name_en")},input:function input(t){return e.$emit("update:first_name_en",t)}},model:{value:e.form.first_name_en,callback:function callback(t){e.$set(e.form,"first_name_en",t)},expression:"form.first_name_en"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"first_name_en-feedback"}},[e._v("\n          "+e._s(e.$t("membershipForm.nameEnValidation"))+"\n        ")])],1)],1):"ja"===e.hotelLocale&&"ja"===e.language?t("b-form-row",[t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.$t("membershipForm.lastNameKana")))]),e._v(" "),t("t-input",{attrs:{id:"last-name-kana-".concat(e.roomIndex),disabled:e.lockedFields.includes("last_name_kana"),trim:"",type:"text",placeholder:e.$t("membershipForm.nameKanaJaPlaceholder"),state:e.$v.form.last_name_kana.$dirty?!e.$v.form.last_name_kana.$error:null,maxlength:255},on:{blur:function blur(t){return e.handleBlur("last_name_kana")},input:function input(t){return e.$emit("update:last_name_kana",t)}},model:{value:e.form.last_name_kana,callback:function callback(t){e.$set(e.form,"last_name_kana",t)},expression:"form.last_name_kana"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"last_name_kana-feedback"}},[e._v("\n          "+e._s(e.$t("membershipForm.hiragana_error"))+"\n        ")])],1),e._v(" "),t("b-col",{attrs:{sm:"12",md:"6"}},[t("label",{staticClass:"form-label"},[e._v(e._s(e.$t("membershipForm.firstNameKana")))]),e._v(" "),t("t-input",{attrs:{id:"first-name-kana-".concat(e.roomIndex),disabled:e.lockedFields.includes("first_name_kana"),type:"text",trim:"",placeholder:e.$t("membershipForm.nameKanaJaPlaceholder"),state:e.$v.form.first_name_kana.$dirty?!e.$v.form.first_name_kana.$error:null,maxlength:255},on:{blur:function blur(t){return e.handleBlur("first_name_kana")},input:function input(t){return e.$emit("update:first_name_kana",t)}},model:{value:e.form.first_name_kana,callback:function callback(t){e.$set(e.form,"first_name_kana",t)},expression:"form.first_name_kana"}}),e._v(" "),t("b-form-invalid-feedback",{attrs:{id:"first_name_kana-feedback"}},[e._v("\n          "+e._s(e.$t("membershipForm.hiragana_error"))+"\n        ")])],1)],1):e._e()],1)}),[],!1,null,null,null);t.a=l.exports},1134:function(e,t,a){"use strict";var n={name:"GuestDetailConfirmationCheckbox",props:{value:{type:Boolean,default:!1},valueValidate:{type:Object,default:function _default(){return{}}}}},r=a(33),o=Object(r.a)(n,(function render(){var e=this,t=e._self._c;return t("b-form-checkbox",{staticClass:"t-checkbox",attrs:{checked:e.value,state:e.valueValidate.$dirty?!e.valueValidate.$error:null,"data-cy":"lock-guest-update-confirmation-checkbox"},on:{change:function change(t){return e.$emit("input",t)}}},[t("span",{attrs:{"data-cy":"lock-guest-update-confirmation-description"}},[e._v(e._s(e.$t("guestDetail.confirmation.description")))])])}),[],!1,null,null,null);t.a=o.exports},1535:function(e,t,a){},1542:function(e,t,a){},1663:function(e,t,a){"use strict";a(1535)},1670:function(e,t,a){"use strict";a(1542)},909:function(e,t,a){"use strict";a.r(t);var n=a(9),r=a(320),o=a(8),i=a(11),s=a(322),l=a(207),u=a(204),c=a(72),d=a(856),h=a(40),m=a(954),f=a(23),_=a(113),p=a(985),g=a(981),b=a(1080),v=a(1133),y=a(31),k=a(1583),j=a(1071),H=a(1134),z=a(1129),O=a(181),w=a(58);function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(a,!0).forEach((function(t){_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function _defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function asyncGeneratorStep(e,t,a,n,r,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(n,r)}function _asyncToGenerator(e){return function(){var t=this,a=arguments;return new Promise((function(n,r){var o=e.apply(t,a);function _next(e){asyncGeneratorStep(o,n,r,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,n,r,_next,_throw,"throw",e)}_next(void 0)}))}}var C=Object(n.defineComponent)({components:{GoBackConfirmationModal:k.a,AdditionalQuestionForm:b.a,GuestFormNames:v.a,GuestDetailConfirmationCheckbox:H.a,GuestFormPhone:z.a},props:{bookingDetails:{type:Object,default:function _default(){return{}}},additionalQuestions:{type:Array,default:function _default(){return[]}},defaultFormData:{type:Object,default:null}},setup:function setup(e,t){var a=Object(n.getCurrentInstance)().proxy,r=a.$t,i=a.$i18n,s=Object(n.getCurrentInstance)().proxy,l=Object(n.ref)(),u=Object(n.ref)(),c=Object(n.ref)(!1),d=Object(n.ref)(!1),h=Object(n.ref)(null),m=Object(n.ref)(!1),p=Object(n.ref)(!1),b=Object(n.ref)(null),v=Object(n.ref)(!1),k=Object(n.ref)(!1),H=Object(n.ref)(!1),z=Object(n.ref)({first_name_kana:"",last_name_kana:"",first_name:"",last_name:"",email:"",emailConfirm:"",phone:"",ph
1one_country_code:null,phone_category:"mobile",postal_code:"",prefecture_or_state:null,street_address:"",building_name_and_number:"",promotion_email_preference:!1,updateUserInformation:!1,guests:[],lock_guest_update:!1}),C=Object(n.computed)((function(){return o.a.getters["setting/getInit"]})),P=Object(n.computed)((function(){return o.a.getters["setting/isExtendedPhoneFormatEnabled"]})),x=Object(n.computed)((function(){return o.a.getters["membership/isUserSignedIn"]})),S=Object(n.computed)((function(){return s.$v.form.email.$dirty&&s.$v.form.email.$error||!!h.value&&v.value})),$=Object(n.computed)((function(){return v.value})),A=Object(n.computed)((function(){return!x.value&&C.value.email_verification_enabled}));function _fillAddressDetailByJAPostalCode(){return(_fillAddressDetailByJAPostalCode=_asyncToGenerator(regeneratorRuntime.mark((function _callee(e){var t;return regeneratorRuntime.wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:if(C.value.customer_address_required){a.next=2;break}return a.abrupt("return");case 2:if("ja"===i.locale){a.next=4;break}return a.abrupt("return");case 4:if(j.b.test(e)){a.next=6;break}return a.abrupt("return");case 6:return a.next=8,Object(j.a)(e,I.value);case 8:if(t=a.sent){a.next=11;break}return a.abrupt("return");case 11:z.value.prefecture_or_state=t.prefectureOrState,z.value.street_address=t.streetAddress;case 13:case"end":return a.stop()}}),_callee)})))).apply(this,arguments)}function resetEmailInput(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isConfirmation,a=void 0!==t&&t;a?d.value=!1:c.value=!1}function resetEmailState(){h.value=null,m.value=!1,p.value=!1,b.value=null,v.value=!1}function tryCallEmailAPI(){(c.value||d.value)&&!v.value&&z.value.email&&!s.$v.form.email.$error&&z.value.emailConfirm&&z.value.email===z.value.emailConfirm&&(b.value=function callEmailAPI(){return _callEmailAPI.apply(this,arguments)}())}function _callEmailAPI(){return(_callEmailAPI=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var e,t,a,n,r,o,i,s,l,u;return regeneratorRuntime.wrap((function _callee2$(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,O.a.enqueueEmailVerification({email:this.form.email});case 3:if("OK"!==c.sent.status){c.next=16;break}e=!0,t=3e3;case 7:if(!e||k.value){c.next=16;break}return c.next=10,Object(w.g)(t);case 10:return c.next=12,O.a.verifyGuestEmail(this.form.email);case 12:("verification_done"===(null==(a=c.sent)?void 0:a.status)||(null==a?void 0:a.errors))&&(e=!1,(null==a?void 0:a.ok_to_proceed)?this.emailApiErrorCode=null:(e=!1,(l=null==a||null===(n=a.errors)||void 0===n||null===(r=n[0])||void 0===r||null===(o=r.details)||void 0===o||null===(i=o.system)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.code)!==_.b.EMAIL_INVALID_ERROR&&l!==_.b.EMAIL_ABSENT_ERROR||(this.emailApiErrorCode=l))),c.next=7;break;case 16:c.next=21;break;case 18:c.prev=18,c.t0=c.catch(0),(c.t0 instanceof Error||c.t0 instanceof String)&&(u=(null===c.t0||void 0===c.t0?void 0:c.t0.message)||c.t0||"There was an error",console.error("[Email Verification] ".concat(u)));case 21:return c.prev=21,m.value=!0,p.value=!0,c.finish(21);case 25:case"end":return c.stop()}}),_callee2,this,[[0,18,21,25]])})))).apply(this,arguments)}Object(n.watch)((function(){return e.bookingDetails.room_count}),(function(e){if(!(z.value.guests.length>0))for(var t=0;t<e;t++)z.value.guests.push({first_name:"",last_name:"",first_name_kana:"",last_name_kana:""})}),{immediate:!0}),Object(n.watch)((function(){return e.defaultFormData}),(function(e){e&&(z.value=e)})),Object(n.watch)((function(){return z.value.email}),(function(){A.value&&(resetEmailInput(),resetEmailState())})),Object(n.watch)((function(){return z.value.emailConfirm}),(function(){A.value&&(resetEmailInput({isConfirmation:!0}),resetEmailState())}));var I=Object(n.computed)((function(){var e="not_applicable"!==z.value.prefecture_or_state?z.value.prefecture_or_state:null;return[{value:null,text:r("base.notSelected")}].concat(_toConsumableArray(Object(f.s)(i.locale,e)),[{value:"not_applicable",text:r("membershipForm.notApplicable")}])}));function _submit(){return(_submit=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var e;return regeneratorRuntime.wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:if(!H.value){a.next=2;break}return a.abrupt("return");case 2:if(H.value=!0,e=!1,!A.value||!b.value||p.value){a.next=7;break}return a.next=7,Promise.race([b.value,new Promise((function(t){return setTimeout((function(){e=!0,t()}),1e3)}))]);case 7:if(!checkIsFormValid(e)){a.next=12;break}return Object(n.nextTick)((function(){Object(y.m)()})),H.value=!1,a.abrupt("return");case 12:t.emit("submit",z.value);case 13:case"end":return a.stop()}}),_callee3)})))).apply(this,arguments)}function checkIsFormValid(e){A.value&&h.value&&!p.value&&(v.value=!0,s.$v.form.email.$touch());var t=!1;return l.value.$v.$touch(),s.$v.$touch(),z.value.guests.length>1&&(u.value.forEach((function(e){return e.$v.$touch()}
1)),t=u.value.some((function(e){return e.$v.$invalid}))),l.value.$v.$invalid||s.$v.$invalid||t||!e&&!!h.value}var F=Object(n.ref)(!1),D=Object(n.computed)((function(){var t;return null===(t=e.bookingDetails.hotel_reservation_update_setting)||void 0===t?void 0:t.update_guest_detail})),E=Object(n.computed)((function(){return!e.isModal&&!D.value}));return{reservedPersonForm:l,guestNamesForm:u,form:z,isLoading:H,maxLength:255,prefecturesList:I,submit:function submit(){return _submit.apply(this,arguments)},formatEmail:g.a.convertFullToHalf,fillAddressDetailByJAPostalCode:function fillAddressDetailByJAPostalCode(e){return _fillAddressDetailByJAPostalCode.apply(this,arguments)},guestDetailConfirmationCheck:F,shouldRenderLockGuestUpdateCheckbox:E,emailHasError:S,emailApiErrorCode:h,handleEmailInput:function handleEmailInput(){s.$v.form.email.$touch(),!s.$v.form.email.$error&&A.value&&(resetEmailState(),c.value=!0,tryCallEmailAPI())},handleEmailConfirmInput:function handleEmailConfirmInput(){s.$v.form.emailConfirm.$touch(),A.value&&(d.value=!0,tryCallEmailAPI())},isNextButtonTriggered:$,isExtendedPhoneFormatEnabled:P}},computed:_objectSpread({},Object(h.d)({hotelLocale:"setting/getHotelLocale",enableKanjiNames:"setting/kanjiNameForGuests",initialSetting:"setting/getInit",spinnerVariant:"setting/getSpinnerVariant"})),validations:function validations(){var e=this,t=this.shouldRenderLockGuestUpdateCheckbox;return{form:_objectSpread({phone:_objectSpread({required:d.required},this.isExtendedPhoneFormatEnabled?{digitsOnly:function digitsOnly(e){return!/[^\d+]/.test(e)},validPhoneNumber:function validPhoneNumber(t){return!(e.form.phone_country_code&&!Object(m.a)(e.form.phone_country_code+t))}}:{}),phone_country_code:this.isExtendedPhoneFormatEnabled?{required:d.required}:{}},this.initialSetting.customer_address_required?{postal_code:{required:d.required,postalCode:p.n},prefecture_or_state:{required:d.required},street_address:{required:d.required}}:{},{email:{required:d.required,email:d.email,emailAscii:p.d},emailConfirm:{required:d.required,matchText:Object(d.sameAs)("email")},lock_guest_update:t?{mustBeTrue:p.j}:{}}),additionalQuestions:{$each:{answer:{text:{required:Object(d.requiredIf)((function(e){return e&&!!e.required}))}}}}}}}),P=(a(1663),a(33)),x=Object(P.a)(C,(function render(){var e,t=this,a=t._self._c;t._self._setupProxy;return a("section",{staticClass:"form-container"},[a("div",{staticClass:"title"},[t._v(t._s(t.$t("guestDetail.guestDetails")))]),t._v(" "),a("form",{on:{submit:function submit(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[a("i18n",{staticClass:"mb-19px",attrs:{tag:"div",path:"guestDetail.confirmation.title","data-cy":"guest-detail-confirmation-title"}},[a("span",{staticClass:"red-font"},[t._v("*")])]),t._v(" "),t.shouldRenderLockGuestUpdateCheckbox?a("guest-detail-confirmation-checkbox",{staticClass:"mb-6px",class:{"is-invalid":null===(e=t.$v.form.lock_guest_update)||void 0===e?void 0:e.$error},attrs:{"value-validate":t.$v.form.lock_guest_update},model:{value:t.form.lock_guest_update,callback:function callback(e){t.$set(t.form,"lock_guest_update",e)},expression:"form.lock_guest_update"}}):t._e(),t._v(" "),a("b-form-group",{staticClass:"required-info",attrs:{label:t.$t("guestDetail.email",{email:t.initialSetting.email_send_from})}},[a("t-input",{attrs:{id:"email",trim:"",type:"email","data-cy":"email",maxlength:t.maxLength,formatter:t.formatEmail,placeholder:t.$t("guestDetail.emailHelp"),state:!t.emailHasError},on:{input:t.handleEmailInput,paste:function paste(e){e.preventDefault()}},model:{value:t.form.email,callback:function callback(e){t.$set(t.form,"email",e)},expression:"form.email"}}),t._v(" "),t.emailHasError?a("b-form-invalid-feedback",[t._v("\n          "+t._s(t.isNextButtonTriggered?t.$t("base.errorCode.".concat(t.emailApiErrorCode)):t.$t("guestDetail.emailConfirm"))+"\n        ")]):t._e()],1),t._v(" "),a("b-form-group",{staticClass:"required-info",attrs:{label:t.$t("guestDetail.emailAgain")}},[a("t-input",{attrs:{id:"email-confirm",trim:"",type:"email","data-cy":"email-confirm",autocomplete:"chrome-off",maxlength:t.maxLength,formatter:t.formatEmail,placeholder:t.$t("guestDetail.emailAgainHelp"),state:t.$v.form.emailConfirm.$dirty?!t.$v.form.emailConfirm.$error:null},on:{input:t.handleEmailConfirmInput,paste:function paste(e){e.preventDefault()}},model:{value:t.form.emailConfirm,callback:function callback(e){t.$set(t.form,"emailConfirm",e)},expression:"form.emailConfirm"}}),t._v(" "),t.$v.form.emailConfirm.$dirty&&!t.$v.form.emailConfirm.matchText?a("b-form-invalid-feedback",[t._v("\n          "+t._s(t.$t("guestDetail.emailAgainConfirm"))+"\n        ")]):t._e()],1),t._v(" "),a("b-form-group",[a("guest-form-names",{ref:"reservedPersonForm",attrs:{language:t.$i18n.locale,"hotel-locale":t.hotelLocale,"enable-kanji-names":t.enableKanjiNames,first_name:t.form.first_name,last_name:t.form.last_name,first_name_kana:t.form.first_name_kana,last_name_kana:t.form.last_name_kana},on:{"update:first_name":function updateFirst_name(e){return t.$
1set(t.form,"first_name",e)},"update:last_name":function updateLast_name(e){return t.$set(t.form,"last_name",e)},"update:first_name_kana":function updateFirst_name_kana(e){return t.$set(t.form,"first_name_kana",e)},"update:last_name_kana":function updateLast_name_kana(e){return t.$set(t.form,"last_name_kana",e)}}})],1),t._v(" "),a("guest-form-phone",{attrs:{phone:t.form.phone,"phone-country-code":t.form.phone_country_code,"phone-category":t.form.phone_category,"phone-validation":t.$v.form.phone,"phone-country-code-validation":t.$v.form.phone_country_code,"invalid-phone":t.$v.form.phone.$dirty&&t.$v.form.phone.$error},on:{"update:phone":function updatePhone(e){return t.$set(t.form,"phone",e)},"update:phoneCountryCode":function updatePhoneCountryCode(e){return t.$set(t.form,"phone_country_code",e)},"update:phone-country-code":function updatePhoneCountryCode(e){return t.$set(t.form,"phone_country_code",e)},"update:phoneCategory":function updatePhoneCategory(e){return t.$set(t.form,"phone_category",e)},"update:phone-category":function updatePhoneCategory(e){return t.$set(t.form,"phone_category",e)},"phone-blur":function phoneBlur(e){return t.$v.form.phone.$touch()}}}),t._v(" "),t.initialSetting.customer_address_required?[a("b-form-group",{staticClass:"required-info",attrs:{label:t.$t("membershipForm.postCode")}},[a("t-input",{attrs:{id:"postal-code","data-cy":"postal-code",maxlength:t.maxLength,state:t.$v.form.postal_code.$dirty?!t.$v.form.postal_code.$error:null},on:{input:t.fillAddressDetailByJAPostalCode,blur:function blur(e){return t.$v.form.postal_code.$touch()}},model:{value:t.form.postal_code,callback:function callback(e){t.$set(t.form,"postal_code",e)},expression:"form.postal_code"}}),t._v(" "),t.$v.form.postal_code.postalCode?t._e():a("b-form-invalid-feedback",[t._v("\n            "+t._s(t.$t("membershipForm.postCodeError"))+"\n          ")])],1),t._v(" "),a("b-form-group",{staticClass:"required-info",attrs:{label:t.$t("membershipForm.prefecture")}},[a("b-form-select",{attrs:{id:"prefecture",state:t.$v.form.prefecture_or_state.$dirty?!t.$v.form.prefecture_or_state.$error:null,"data-cy":"prefecture",options:t.prefecturesList},model:{value:t.form.prefecture_or_state,callback:function callback(e){t.$set(t.form,"prefecture_or_state",e)},expression:"form.prefecture_or_state"}})],1),t._v(" "),a("b-form-group",{staticClass:"required-info",attrs:{label:t.$t("membershipForm.address")}},[a("t-input",{attrs:{id:"street-address","data-cy":"street-address",maxlength:t.maxLength,state:t.$v.form.street_address.$dirty?!t.$v.form.street_address.$error:null},on:{blur:function blur(e){return t.$v.form.street_address.$touch()}},model:{value:t.form.street_address,callback:function callback(e){t.$set(t.form,"street_address",e)},expression:"form.street_address"}})],1),t._v(" "),a("b-form-group",{attrs:{label:t.$t("membershipForm.buildingName")}},[a("t-input",{attrs:{id:"building",maxlength:t.maxLength},model:{value:t.form.building_name_and_number,callback:function callback(e){t.$set(t.form,"building_name_and_number",e)},expression:"form.building_name_and_number"}})],1)]:t._e(),t._v(" "),t.form.guests&&t.form.guests.length>1?t._l(t.form.guests,(function(e,n){return a("b-form-group",{key:"guest-".concat(n)},[a("div",{staticClass:"room-guest-name mb-1"},[t._v(t._s(t.$t("guestDetail.roomGuestName",[n+1])))]),t._v(" "),a("guest-form-names",{ref:"guestNamesForm",refInFor:!0,attrs:{"room-index":n+1,"hotel-locale":t.hotelLocale,language:t.$i18n.locale,"enable-kanji-names":t.enableKanjiNames,first_name:e.first_name,last_name:e.last_name,first_name_kana:e.first_name_kana,last_name_kana:e.last_name_kana},on:{"update:first_name":function updateFirst_name(a){return t.$set(e,"first_name",a)},"update:last_name":function updateLast_name(a){return t.$set(e,"last_name",a)},"update:first_name_kana":function updateFirst_name_kana(a){return t.$set(e,"first_name_kana",a)},"update:last_name_kana":function updateLast_name_kana(a){return t.$set(e,"last_name_kana",a)}}})],1)})):t._e(),t._v(" "),t.additionalQuestions.length>0?a("b-form-group",[a("additional-question-form",{attrs:{"additional-questions":t.additionalQuestions,"questions-v":t.$v.additionalQuestions&&t.$v.additionalQuestions.$each.$iter,"checkin-date":t.bookingDetails.checkin_date}})],1):t._e(),t._v(" "),a("div",{staticClass:"action-button"},[a("b-button",{directives:[{name:"b-modal",rawName:"v-b-modal.previous-modal",modifiers:{"previous-modal":!0}}],staticClass:"cancel-btn",attrs:{variant:"outline-secondary","data-cy":"cancel-guest-detail"}},[t._v("\n          "+t._s(t.$t("base.previous"))+"\n        ")]),t._v(" "),a("b-button",{directives:[{name:"theme-btn",rawName:"v-theme-btn"}],attrs:{type:"submit","data-cy":"submit-guest-detail"}},[a("b-spinner",{directives:[{name:"show",rawName:"v-show",value:t.isLoading,expression:"isLoading"}],staticClass:"btn-spinner",attrs:{variant:t.spinnerVariant,small:""}}),t._v("\n          "+t._s(t.$t("base.next"))+"\n        ")],1)],1),t._v(" "),a("go-back-confirmation-modal",{on:{continue:function _continue(e){return t.$emit("goPreviousPage")}}})],2)])}
1),[],!1,null,"a83c1c06",null).exports,S=a(1582),$=a(157);function GuestDetailvue_type_script_lang_js_ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function GuestDetailvue_type_script_lang_js_objectSpread(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?GuestDetailvue_type_script_lang_js_ownKeys(a,!0).forEach((function(t){GuestDetailvue_type_script_lang_js_defineProperty(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):GuestDetailvue_type_script_lang_js_ownKeys(a).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function GuestDetailvue_type_script_lang_js_defineProperty(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function GuestDetailvue_type_script_lang_js_asyncGeneratorStep(e,t,a,n,r,o,i){try{var s=e[o](i),l=s.value}catch(u){return void a(u)}s.done?t(l):Promise.resolve(l).then(n,r)}function GuestDetailvue_type_script_lang_js_asyncToGenerator(e){return function(){var t=this,a=arguments;return new Promise((function(n,r){var o=e.apply(t,a);function _next(e){GuestDetailvue_type_script_lang_js_asyncGeneratorStep(o,n,r,_next,_throw,"next",e)}function _throw(e){GuestDetailvue_type_script_lang_js_asyncGeneratorStep(o,n,r,_next,_throw,"throw",e)}_next(void 0)}))}}function _objectWithoutProperties(e,t){if(null==e)return{};var a,n,r=function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var a,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var A=Object(n.defineComponent)({name:"OtaReservationGuestDetail",components:{GuestDetailForm:x,ReservationPanel:S.a},beforeRouteEnter:function beforeRouteEnter(e,t,a){var n=t.name===i.a.ota.reservation.payment;a((function(e){var t;n&&(null===(t=e.bookingDetails)||void 0===t?void 0:t.guest)&&(e.defaultFormData=e.bookingDetails.guest)}))},setup:function setup(){var e=Object(r.useRoute)(),t=Object(r.useRouter)(),a=Object(r.useRoute)().query,d=Object(n.getCurrentInstance)().proxy.$i18n,h=a.code,m=_objectWithoutProperties(a,["code"]),f=Object(n.ref)(),_=Object(n.ref)(),p=Object(n.computed)((function(){return o.a.getters["booking/getBookingDetails"]})),g=Object(n.computed)((function(){return o.a.getters["booking/getAdditionalQuestions"]})),b=Object(n.computed)((function(){return o.a.getters["setting/kanjiNameForGuests"]})),v=Object(n.computed)((function(){return"ja"===o.a.getters["setting/getHotelLocale"]&&"ja"===d.locale})),k=Object(n.computed)((function(){return o.a.getters["search/getSearchForm"]})),j=Object(n.computed)((function(){return o.a.getters["booking/getFacilityNotifications"]})),H=Object(n.computed)((function(){return o.a.getters["booking/brandNotifications"]})),z=0===(p.value.rooms||[]).length,O=e.query.rooms&&z;function getHotelInfo(e){return _getHotelInfo.apply(this,arguments)}function _getHotelInfo(){return(_getHotelInfo=GuestDetailvue_type_script_lang_js_asyncToGenerator(regeneratorRuntime.mark((function _callee2(e){var t;return regeneratorRuntime.wrap((function _callee2$(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,l.a.getInfo(e);case 3:t=a.sent,f.value=t.data,o.a.dispatch("booking/setHotelInfo",f.value),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),console.info("error ".concat(JSON.stringify(a.t0)));case 11:case"end":return a.stop()}}),_callee2,null,[[0,8]])})))).apply(this,arguments)}function getBookingDetails(e){return _getBookingDetails.apply(this,arguments)}function _getBookingDetails(){return(_getBookingDetails=GuestDetailvue_type_script_lang_js_asyncToGenerator(regeneratorRuntime.mark((function _callee3(e){var t,a;return regeneratorRuntime.wrap((function _callee3$(n){for(;;)switch(n.prev=n.next){case 0:return t=formatRoomsParams(e),n.prev=1,n.next=4,u.a.getPrice(h,t);case 4:a=n.sent,o.a.dispatch("booking/setBookingDetails",a),o.a.dispatch("booking/setInitAdditionalQuestions",{additional_questions:a.additional_questions,rooms:a.rooms}),o.a.dispatch("search/setTotalPriceFromSearch",a.total_price),fetchNotifications(),n.next=15;break;case 11:n.prev=11,n.t0=n.catch(1),console.info("error ".concat(JSON.stringify(n.t0))),console.info("payload ".concat(JSON.stringify(t)));case 15:case"end":return n.stop()}}),_callee3,null,[[1,11]])})))).apply(this,arguments)}function fetchNotifications(){var e;o.a.dispatch("search/fetchNotifications",{pageLabel:"place_booking_process",roomPlanCodes:(e=p.value.rooms,(e||[]).map((function(e){return e.room_plan_code})))}),o.a.dispatch("booking/fetchBrandNotifications",{pageLabel:"place_booking_process"})}function formatRoomsParams(t){var a=GuestDetailvue_type_script_lang_js_objectSpread({},t,{rooms:JSON.parse(t.rooms).map((function(e){return GuestDetailvue_type_script_lang_js_objectSpread({},e,{checkin_date:t.checkin_date,checkout_date:t.checkout_date})}))});return e.params.country&&(a.mcp_currency=$.b[e.params.country]),a}return Object(n.onMounted)(GuestDetailvue_type_script_lang_js_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){for(;;)switch(e.prev=e.next){case 0:Object(y.n)(),getHotelInfo(h),O?getBookingDetails(m):fetchNotifications(),o.a.dispatch("search/setSearchForm",{checkin:a.checkin_date,checkout:a.checkout_date,mode:a.mode});case 4:case"end":return e.stop()}}),_callee)})))),{defaultFormData:_,hotelInfo:f,bookingDetails:p,additionalQuestions:g,handleFormSubmit:function handleFormSubmit(n){!function updateGuest(e){var t=function formatFormData(e){var t=v.value&&!b.value,a=t?e.first_name_kana:e.first_name,n=t?e.last_name_kana:e.last_name;
1return e.first_name=a,e.last_name=n,e.guests.forEach((function(r){var o=t?r.first_name_kana:r.first_name,i=t?r.last_name_kana:r.last_name;r.first_name=o||a,r.last_name=i||n,r.first_name_kana=r.first_name_kana||e.first_name_kana,r.last_name_kana=r.last_name_kana||e.last_name_kana})),e}(e);o.a.dispatch("booking/setGuest",t),o.a.dispatch("booking/setGuestsInRooms",t.guests)}(n);var r=e.params.country;r&&(a.resident_of_us="true"),t.push({name:Object(s.c)(i.a.ota.reservation.payment,r),params:Object(s.b)(r),query:a})},handleGoPreviousPage:function handleGoPreviousPage(){var a=Object(c.f)(k.value,!1),n=e.params.country;t.push({name:Object(s.c)(i.a.ota.searchRooms,n),params:Object(s.b)(n,{code:h}),query:a})},facilityNotifications:j,brandNotifications:H}}}),I=(a(1670),Object(P.a)(A,(function render(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"guest-detail-container"},[t("guest-detail-form",{staticClass:"section-left",attrs:{"booking-details":e.bookingDetails,"additional-questions":e.additionalQuestions,"default-form-data":e.defaultFormData},on:{submit:e.handleFormSubmit,goPreviousPage:e.handleGoPreviousPage}}),e._v(" "),t("reservation-panel",{staticClass:"section-right",attrs:{"hotel-info":e.hotelInfo,"booking-details":e.bookingDetails,"facility-notifications":e.facilityNotifications,"brand-notifications":e.brandNotifications}})],1)}),[],!1,null,"bd09553a",null));t.default=I.exports},989:function(e,t,a){}}]);
2//# sourceMappingURL=page-OtaView-OtaReservation-GuestDetail-vue.d363c1cc9edf50911259.js.map

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.