1/*! For license information please see HotelReview.db856456.bundle.js.LICENSE.txt */ 2"use strict";(self.webpackChunkroxana=self.webpackChunkroxana||[]).push([[8699],{31813(e,r,t){t.d(r,{A:()=>i});var n,a=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(null,arguments)}const i=function(e){return a.createElement("svg",o({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),n||(n=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.70711 17.7071C7.31658 18.0976 6.68342 18.0976 6.29289 17.7071C5.90237 17.3166 5.90237 16.6834 6.29289 16.2929L10.5858 12L6.29289 7.70711C5.90237 7.31658 5.90237 6.68342 6.29289 6.29289C6.68342 5.90237 7.31658 5.90237 7.70711 6.29289L12 10.5858L16.2929 6.29289C16.6834 5.90237 17.3166 5.90237 17.7071 6.29289C18.0976 6.68342 18.0976 7.31658 17.7071 7.70711L13.4142 12L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L12 13.4142L7.70711 17.7071Z",fill:"currentColor"})))}},77264(e,r,t){t.d(r,{Z:()=>u});var n=t(72505),a=t.n(n),o=t(71468),i=t(72935),l=t(96102),s=t(24375),u=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=(0,o.d4)(s.MS);return(0,l.w)({queryKey:["hotelBooking",e,t],queryFn:function(r){var n=r.signal,o=a().CancelToken.source();return null==n||n.addEventListener("abort",function(){return o.cancel("Query cancelled")}),(0,i.U6)(e,t,o.token)},enabled:!!e,staleTime:0,refetchInterval:function(e){return!(!r||"PENDING"!==(null==e?void 0:e.data.status))&&1e4},refetchIntervalInBackground:!1,refetchOnWindowFocus:function(e){var r;return"PENDING"===(null===(r=e.state.data)||void 0===r?void 0:r.data.status)}})}},25147(e,r,t){t.r(r),t.d(r,{default:()=>ze}),t(52675),t(89463),t(2259),t(45700),t(16280),t(76918),t(2008),t(50113),t(51629),t(23418),t(64346),t(23792),t(48598),t(44114),t(34782),t(89572),t(23288),t(94170),t(62010),t(2892),t(59904),t(67945),t(84185),t(83851),t(81278),t(40875),t(79432),t(10287),t(26099),t(3362),t(27495),t(90906),t(38781),t(47764),t(98992),t(54520),t(72577),t(3949),t(23500),t(62953);var n=t(31277),a=t(44016),o=t(96540),i=t(49785),l=t(71468),s=t(28651),u=t(72935),c=t(52129),d=(t(28706),t(74423),t(62062),t(21699),t(81454),t(10619));var f=t(74848);function v(e,r){if(e){if("string"==typeof e)return m(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?m(e,r):void 0}}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const h=function(e){var r,t,n=e.className,a=e.dataTestId,i=e.multipleSelect,l=e.onChange,s=e.options,u=(r=(0,o.useState)([]),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(r,t)||v(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=u[0],h=u[1],p=function(e){return c.includes(e)};return(0,f.jsx)("div",{className:(0,d.$)("IRMyJrmmGGWnIgs1S0jg",n),"data-testid":a,children:s.map(function(e){return(0,f.jsx)("div",{className:(0,d.$)("ACvPJWEbzr3vV_FvCjKg",p(e.value)&&"HKXhRY8K_sb3fCB5f0g7"),onClick:function(){return function(e){if(i){var r=c.includes(e)?c.filter(function(r){return r!==e}):[].concat(function(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(c),[e]);h(r),l(r)}else h([e]),l([e])}(e.value)},role:i?"checkbox":"radio","aria-checked":p(e.value),children:e.label},e.value)})})};var p,g=t(49922),b=t(77264),y=t(24375),j=t(46549),x=t(20053);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},w.apply(null,arguments)}const _=function(e){return o.createElement("svg",w({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),p||(p=o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 6H10L8.5 8H4V19H20V8H15.5L14 6ZM4 6H7.5L8.7 4.4C8.88885 4.14819 9.18524 4 9.5 4H14.5C14.8148 4 15.1111 4.14819 15.3 4.4L16.5 6H20C21.1046 6 22 6.89543 22 8V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19V8C2 6.89543 2.89543 6 4 6ZM12 15C13.1046 15 14 14.1046 14 13C14 11.8954 13.1046 11 12 11C10.8954 11 10 11.8954 10 13C10 14.1046 10.8954 15 12 15ZM12 17C9.79086 17 8 15.2091 8 13C8
210.7909 9.79086 9 12 9C14.2091 9 16 10.7909 16 13C16 15.2091 14.2091 17 12 17ZM18 18C17.4477 18 17 17.5523 17 17C17 16.4477 17.4477 16 18 16C18.5523 16 19 16.4477 19 17C19 17.5523 18.5523 18 18 18Z",fill:"currentColor"})))};var S=t(31813),N=(t(15086),t(99449),[".jpg",".jpeg",".png",".webp",".heic"]),A=["image/jpeg","image/png","image/webp","image/heic"],C=function(e){return new Promise(function(r,t){if("image/heic"===e.type||e.name.toLowerCase().endsWith(".heic"))r("https://zen.wego.com/cms/images/no_preview_available_349953394.png");else{var n=new FileReader;n.onloadend=function(){return r(n.result)},n.onerror=function(){return t(new Error("Failed to create preview"))},n.readAsDataURL(e)}})},k=function(e){var r=[],t=[];return e.forEach(function(e){var n=function(e){var r=A.includes(e.type),t=N.some(function(r){return e.name.toLowerCase().endsWith(r)});return r||t?e.size>5242880?{isValid:!1,error:"file_too_large"}:{isValid:!0}:{isValid:!1,error:"invalid_file_type"}}(e);n.isValid?r.push(e):t.push({file:e,error:n.error})}),{valid:r,invalid:t}},O=(t(25276),t(59089),t(60739),t(33110),t(5506),t(72505)),I=t.n(O);function T(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function E(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var s=n&&n.prototype instanceof l?n:l,u=Object.create(s.prototype);return P(u,"_invoke",function(t,n,a){var o,l,s,u=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,l=0,s=e,f.n=t,i}};function v(t,n){for(l=t,s=n,r=0;!d&&u&&!a&&r<c.length;r++){var a,o=c[r],v=f.p,m=o[2];t>3?(a=m===n)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(l=0,f.v=n,f.n=o[1]):v<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,f.n=m,l=0))}if(a||t>1)return i;throw d=!0,n}return function(a,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,m),l=c,s=m;(r=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,o){if(l||(a="next"),r=o[a]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,l<2&&(l=0)}else 1===l&&(r=o.return)&&r.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((r=(d=f.n<0)?s:t.call(n,f))!==i)break}catch(r){o=e,l=1,s=r}finally{u=1}}return{value:r,done:d}}}(t,a,o),!0),u}var i={};function l(){}function s(){}function u(){}r=Object.getPrototypeOf;var c=[][n]?r(r([][n]())):(P(r={},n,function(){return this}),r),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,P(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,P(d,"constructor",u),P(u,"constructor",s),s.displayName="GeneratorFunction",P(u,a,"GeneratorFunction"),P(d),P(d,a,"Generator"),P(d,n,function(){return this}),P(d,"toString",function(){return"[object Generator]"}),(E=function(){return{w:o,m:f}})()}function P(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}P=function(e,r,t,n){function o(r,t){P(e,r,function(e){return this._invoke(r,t,e)})}r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(o("next",0),o("throw",1),o("return",2))},P(e,r,t,n)}function M(e,r,t,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void t(e)}l.done?r(s):Promise.resolve(s).then(n,a)}function R(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var o=e.apply(r,t);function i(e){M(o,n,a,i,l,"next",e)}function l(e){M(o,n,a,i,l,"throw",e)}i(void 0)})}}var L=function(){var e=R(E().m(function e(r,t){var n,a,o,i,l;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,n=decodeURIComponent(t),e.n=1,I().get("".concat("https://srv.wego.com","/yorktown/reviews/presigned-upload?booking_id=").concat(encodeURIComponent(n),"&number_of_images=").concat(r));case 1:return a=e.v,e.a(2,a.data.data);case 2:if(e.p=2,l=e.v,!I().isAxiosError(l)){e.n=3;break}if(40068!==(null===(o=(i=l).response)||void 0===o||null===(o=o.data)||void 0===o||null===(o=o.error)||void 0===o?void 0:o.code)){e.n=3;break}throw new Error(i.response.data.error.message);case 3:throw l;case 4:return e.a(2)}},e,null,[[0,2]])}));return function(r,t){return e.apply(this,arguments)}}(),F=function(){var e=R(E().m(function e(r,t){var n;return E().w(function(e){for(;;)if(0===e.n)return n=r.map(function(){var e=R(E().m(function e(r,n){var a,o;return E().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t[n]){e.n=1;break}return e.a(2,{fileId:r.name,imageId:"",success:!1});case 1:return e.p=1,o=new FormData,a.fields&&Object.entries(a.fields).forEac
vendor: 4,108 bytes, line 2
2h(function(e){var r,t,n=(t=2,function(e){if(Array.isArray(e))return e}(r=e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(r,t)||function(e,r){if(e){if("string"==typeof e)return T(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(e,r):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=n[0],i=n[1];return o.append(a,i)}),o.append("Content-Type",r.type),o.append("file",r),e.n=2,I().post(a.url,o);case 2:return e.a(2,{fileId:r.name,imageId:a.imageId,success:!0});case 3:return e.p=3,e.v,e.a(2,{fileId:r.name,imageId:a.imageId,success:!1})}},e,null,[[1,3]])}));return function(r,t){return e.apply(this,arguments)}}()),e.a(2,Promise.all(n))},e)}));return function(r,t){return e.apply(this,arguments)}}();function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function V(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var s=n&&n.prototype instanceof l?n:l,u=Object.create(s.prototype);return D(u,"_invoke",function(t,n,a){var o,l,s,u=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,l=0,s=e,f.n=t,i}};function v(t,n){for(l=t,s=n,r=0;!d&&u&&!a&&r<c.length;r++){var a,o=c[r],v=f.p,m=o[2];t>3?(a=m===n)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(l=0,f.v=n,f.n=o[1]):v<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,f.n=m,l=0))}if(a||t>1)return i;throw d=!0,n}return function(a,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,m),l=c,s=m;(r=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,o){if(l||(a="next"),r=o[a]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,l<2&&(l=0)}else 1===l&&(r=o.return)&&r.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((r=(d=f.n<0)?s:t.call(n,f))!==i)break}catch(r){o=e,l=1,s=r}finally{u=1}}return{value:r,done:d}}}(t,a,o),!0),u}var i={};function l(){}function s(){}function u(){}r=Object.getPrototypeOf;var c=[][n]?r(r([][n]())):(D(r={},n,function(){return this}),r),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,D(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,D(d,"constructor",u),D(u,"constructor",s),s.displayName="GeneratorFunction",D(u,a,"GeneratorFunction"),D(d),D(d,a,"Generator"),D(d,n,function(){return this}),D(d,"toString",function(){return"[object Generator]"}),(V=function(){return{w:o,m:f}})()}function D(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}D=function(e,r,t,n){function o(r,t){D(e,r,function(e){return this._invoke(r,t,e)})}r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(o("next",0),o("throw",1),o("return",2))},D(e,r,t,n)}function G(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function H(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?G(Object(t),!0).forEach(function(r){W(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEac
2h(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function W(e,r,t){return(r=function(e){var r=function(e){if("object"!=U(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=U(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function B(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=q(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){l=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(l)throw o}}}}function Z(e,r,t,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void t(e)}l.done?r(s):Promise.resolve(s).then(n,a)}function J(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,r)||q(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,r){if(e){if("string"==typeof e)return Y(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,r):void 0}}function Y(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}t(37550);const X="Uy6xB9RTww1ZhgJTZSUL",Q="YL1siODMmVAqw0OMyGpP",K="zcENFJAgXn1A6CuEuQT9",$=function(e){var r=e.files,t=e.translations,n=e.locale,o=e.error,i=r.some(function(e){return e.isLoading}),l=r.filter(function(e){return e.isUploaded}).length,s=10===r.length;if(i)return(0,f.jsx)("div",{className:X,children:(0,f.jsxs)("div",{className:"nQp8Aqlmi1plO6CS_Sxf",children:[(0,f.jsx)(j.A,{className:"lZNGK123oSrxmVdEHD4k"}),(0,f.jsx)("p",{className:(0,x.A)(Q,"rMs3C1tCcDY1M1if1PrP"),children:t.uploading_images})]})});if(null!=o&&o.message)return(0,f.jsx)("div",{className:X,children:(0,f.jsx)("p",{className:(0,x.A)(Q,K),children:o.message})});var u=[];if(l>0&&u.push((0,f.jsx)("div",{className:"HbKdc67oVUt1T0Tui8c4",children:(0,f.jsxs)("p",{className:(0,x.A)(Q,"lVTrnmQNLLG87Hd8HVYE"),children:["â
"," ",(0,a.sS)(t.image_upload_count_helper,n,l,10)]})},"success")),null!=o&&o.hasError&&(null==o?void 0:o.failedCount)>0)if(o.allFailed)u.push((0,f.jsx)("p",{className:(0,x.A)(Q,K),children:t.image_upload_all_failed_error},"error"));else{var c=s?t.image_upload_limit_reached_error:(0,a.sS)(t.image_upload_some_failed_error,n,o.failedCount);u.push((0,f.jsx)("p",{className:(0,x.A)(Q,"W4V2kb1abgtQ2LKphRmX"),children:c},"error"))}return u.length>0?(0,f.jsx)("div",{className:X,children:u}):null},ee={container:"wgT_v9QT1H2CNnC2ZtzF",title:"nSzw5F4Wd5yBjF3XMXdd",description:"tg91cieTcPjcXkQFk90I",initialUploadArea:"NVHW6n6hHm5wrxaRxQLP",initialIconPlaceholder:"PGD0CCAFWp6MZHUFIj2g",initialUploadText:"sMREJ8uCojjbRNqXfHeZ",addMoreUploadArea:"GN40HJZOr1bsBqzwvT3N",hiddenInput:"e_F4so1fGaK3UWFN_qu5",cameraIcon:"ZLpFo9fEANGBktjI7I72",addMoreUploadText:"_CZhLpJHXTHUOB4mfNQG",thumbnailsOuterContainer:"loIV0dqZFrrmx5FwLjY4",scrollPane:"q0H7alHBz9eWXoHz0ymX",thumbnailItem:"fG_ohyNlTz0KV705bV5r",thumbnailImage:"aEHlx902h19mP9maGNfA",thumbnailImageLoading:"A2BiIACrVIyg9kZuxT6x",loadingOverlay:"YJeYnj9FEktZB0kpSVFS",errorOverlay:"UK5ac3PnNiUZwr17UywW",errorIcon:"zT3ZcA_gWbN8BXZAbiTg",removeButton:"Q6gfRMJxzZtpuZ0vsIXg",errorMessages:"U2TlDoQAoXF8BodfWIwi",errorText:"FAnywyQB35q76SHFERZE",dropActive:"c4v08GQiIyAdq8o8jyw7",spinner:"y5WNazmev6Ql4oiXnwt5",spin:"ExRtSOrIJJajvLKvVB93"};function re(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}
2finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return te(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?te(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const ne=function(e){var r=e.selectedFiles,t=void 0===r?[]:r,n=e.onChange,i=re((0,o.useState)(!1),2),u=i[0],c=i[1],d=(0,o.useRef)(null),v=re((0,s.ok)(),1)[0].get("booking_id")||"",m=(0,l.d4)(y.YH),h=(0,l.d4)(y.MS),p=function(e){var r=e.bookingIdSearchParam,t=e.onChange,n=e.selectedFiles,a=J((0,o.useState)([]),2),i=a[0],l=a[1],s=J((0,o.useState)(!1),2),u=s[0],c=s[1],d=J((0,o.useState)(null),2),f=d[0],v=d[1];(0,o.useEffect)(function(){var e=i.filter(function(e){return e.isUploaded&&e.imageId}).map(function(e){return e.imageId});JSON.stringify(e)!==JSON.stringify(n)&&t(e)},[i,t,n]);var m=(0,o.useCallback)(function(){v(null)},[]),h=(0,o.useCallback)(function(e){l(function(r){return r.filter(function(r){return r.id!==e})}),v(null)},[]),p=(0,o.useCallback)(function(){var e,t=(e=V().m(function e(t){var n,a,o,s,u,d,f,m,h,p,g,b,y,j,x,w,_,S,N,A,O,I,T,E,P;return V().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=Array.from(t),!((a=10-i.length)<=0)){e.n=1;break}return v({hasError:!0,failedCount:n.length,allFailed:!0}),e.a(2);case 1:if(c(!0),v(null),l(function(e){return e.filter(function(e){return e.isUploaded})}),o=[],e.p=2,s=k(n),u=s.valid,d=s.invalid,f=u.slice(0,a),m=u.length-f.length,0!==f.length){e.n=3;break}return v({hasError:!0,failedCount:d.length+m,allFailed:!0}),c(!1),e.a(2);case 3:o=[],h=z(f),e.p=4,h.s();case 5:if((p=h.n()).done){e.n=11;break}return g=p.value,b={id:"".concat(g.name,"-").concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,15)),file:g,previewUrl:"",isLoading:!0,isUploaded:!1},e.p=6,e.n=7,C(g);case 7:y=e.v,b.previewUrl=y,e.n=9;break;case 8:e.p=8,I=e.v,console.log("! Preview creation failed:",I);case 9:o.push(b);case 10:e.n=5;break;case 11:e.n=13;break;case 12:e.p=12,T=e.v,h.e(T);case 13:return e.p=13,h.f(),e.f(13);case 14:return l(function(e){return[].concat(B(e),B(o))}),j=[],e.p=15,e.n=16,L(f.length,r);case 16:j=e.v,e.n=18;break;case 17:throw e.p=17,E=e.v,x=o.map(function(e){return e.id}),l(function(e){return e.filter(function(e){return!x.includes(e.id)})}),E;case 18:return e.n=19,F(f,j);case 19:w=e.v,l(function(e){var r=e.map(function(e){var r=o.find(function(r){return r.id===e.id});if(!r)return e;var t=o.indexOf(r),n=w[t];return H(H({},e),{},{imageId:(null==n?void 0:n.imageId)||"",isLoading:!1,isUploaded:(null==n?void 0:n.success)||!1})}),t=r.filter(function(e){var r=o.find(function(r){return r.id===e.id});if(!r)return!0;var t=o.indexOf(r),n=w[t];return(null==n?void 0:n.success)||!1});return t}),_=w.filter(function(e){return!e.success}).length,(S=d.length+m+_)>0&&(N=S===n.length,v({hasError:!0,failedCount:S,allFailed:N})),e.n=21;break;case 20:e.p=20,P=e.v,A=P instanceof Error?P.message:"Upload failed",console.log("! File upload error:",A),O=o.map(function(e){return e.id}),l(function(e){return e.filter(function(e){return!O.includes(e.id)})}),v({hasError:!0,failedCount:n.length,message:A,allFailed:!0});case 21:return e.p=21,c(!1),e.f(21);case 22:return e.a(2)}},e,null,[[15,17],[6,8],[4,12,13,14],[2,20,21,22]])}),function(){var r=this,t=arguments;return new Promise(function(n,a){var o=e.apply(r,t);function i(e){Z(o,n,a,i,l,"next",e)}function l(e){Z(o,n,a,i,l,"throw",e)}i(void 0)})});return function(e){return t.apply(this,arguments)}}(),[i.length,r]);return{files:i,isUploading:u,error:f,uploadFiles:p,removeFile:h,resetUploadState:m}}({bookingIdSearchParam:v,onChange:n,selectedFiles:t}),g=p.files,b=p.isUploading,w=p.error,A=p.uploadFiles,O=p.removeFile,I=g.length>0,T=g.length<10,E=(0,o.useCallback)(function(e){e.target.files&&(A(e.target.files),e.target.value="")},[A]),P=(0,o.useCallback)(function(e){e.preventDefault(),c(!0)},[]),M=(0,o.useCallback)(function(e){e.preventDefault(),c(!1)},[]),R=(0,o.useCallback)(function(e){e.preventDefault(),c(!1),A(e.dataTransfer.files)},[A]),U=(0,o.useCallback)(function(){var e;null===(e=d.current)||void 0===e||e.click()},[]),D=(0,o.useCallback)(function(e){O(e)},[O]);return(0,f.jsxs)("div",{className:ee.container,children:[(0,f.jsx)("h5",{className:ee.title,children:m.add_photos}
2),(0,f.jsx)("p",{className:ee.description,children:(0,a.sS)(m.upload_x_images_to_review,h,10)}),(0,f.jsx)("input",{type:"file",multiple:!0,accept:N.join(","),ref:d,onChange:E,className:ee.hiddenInput,disabled:b}),I||b?(0,f.jsx)("div",{className:ee.thumbnailsOuterContainer,children:(0,f.jsxs)("div",{className:ee.scrollPane,children:[g.map(function(e){return(0,f.jsxs)("div",{className:ee.thumbnailItem,children:[e.previewUrl?(0,f.jsx)("img",{src:e.previewUrl,alt:e.file.name,className:(0,x.A)(ee.thumbnailImage,e.isLoading&&ee.thumbnailImageLoading)}):(0,f.jsx)("div",{className:ee.fileNamePreview,children:(0,f.jsx)("span",{className:ee.fileName,children:e.file.name})}),e.isLoading&&(0,f.jsx)("div",{className:ee.loadingOverlay,children:(0,f.jsx)(j.A,{className:ee.spinner})}),!e.isLoading&&(0,f.jsx)("button",{type:"button",className:ee.removeButton,onClick:function(){return D(e.id)},"aria-label":"Remove image",children:(0,f.jsx)(S.A,{})})]},e.id)}),T&&(0,f.jsxs)("div",{className:(0,x.A)(ee.addMoreUploadArea,u&&ee.dropActive),onClick:U,onDragOver:P,onDragLeave:M,onDrop:R,role:"button",tabIndex:0,children:[(0,f.jsx)(_,{className:ee.cameraIcon}),(0,f.jsx)("p",{className:ee.addMoreUploadText,children:m.tap_to_add_photos})]})]})}):(0,f.jsxs)("div",{className:(0,x.A)(ee.initialUploadArea,u&&ee.dropActive),onClick:U,onDragOver:P,onDragLeave:M,onDrop:R,role:"button",tabIndex:0,children:[(0,f.jsx)(_,{className:ee.initialIconPlaceholder}),(0,f.jsx)("p",{className:ee.initialUploadText,children:m.tap_to_add_photos})]}),(0,f.jsx)($,{files:g,translations:m,locale:h,error:w})]})};var ae=t(7502),oe=t(67857);const ie="nYgoRn_V6T426jUlzgSD";function le(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const se=function(e){var r,t,n=e.isOpen,a=e.isSubmitting,i=e.onClose,s=e.onSubmit,u=e.overallRating,d=(r=(0,o.useState)(),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(r,t)||function(e,r){if(e){if("string"==typeof e)return le(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?le(e,r):void 0}}(r,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v=d[0],m=d[1],p=(0,l.d4)(y.YH);return(0,f.jsxs)(ae.A,{isOpen:n,onClose:i,dataTestId:"blank-review-dialog",children:[(0,f.jsx)(oe.A,{"data-testid":"x-close-big",className:"vZuvf88LxCrKBChIPpHn",onClick:i}),(0,f.jsxs)("div",{className:"ODOaWNbPvUVnumikSJmS",children:[(0,f.jsx)("img",{className:"Fl4dGkXTElc9t7AQTp4M",src:"https://zen.wego.com/cdn-cgi/image/width=320/web/illustrations/unable-to-load.png",alt:"unable to load data"}),(0,f.jsx)("h2",{className:"rKjhDau8UeHUgtqzKNuP",children:p.looks_like_review_blank}),(0,f.jsx)("p",{className:"zxAYGOiT41sXIxRzRxDt",children:p.unsure_what_to_write_choices}),u>5?(0,f.jsx)(h,{className:ie,options:[{value:p.fast_wifi,label:p.fast_wifi},{value:p.family_friendly_facilities,label:p.family_friendly_facilities},{value:p.clean_rooms,label:p.clean_rooms},{value:p.great_view,label:p.great_view},{value:p.free_breakfast,label:p.free_breakfast},{value:p.convenient_location,label:p.convenient_location},{value:p.quiet_room,label:p.quiet_room}],multipleSelect:!0,onChange:function(e){return m(e)}}):(0,f.jsx)(h,{className:ie,options:[{value:p.wifi_speed,label:p.wifi_speed},{value:p.pillow_selection,label:p.pillow_selection},{value:p.bed_comfort,label:p.bed_comfort},{value:p.noise_levels,label:p.noise_levels},{value:p.breakfast_options,label:p.breakfast_options},{value:p.bathroom_amenities,label:p.bathroom_amenities}],multipleSelect:!0,onChange:function(e){return m(e)}}),v&&v.length>0?(0,f.jsx)(c.A,{disabled:a,onClick:function(){return s(v)},isLoading:a,fullWidth:!0,children:a?p.submitting:p.submit_review}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"aM7kaEVHZW9VmM3rnOqG",children:p.or}),(0,f.jsx)("button",{type:"submit",className:(0,x.A)("uVNz_AXhQBvN9sl3QRXU",a&&"AedKx7VglDOCC9z_JuFv"),onClick:function(){return s(v)},children:a?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(j.A,{className:"QHRAVOHIm1o9V6VRLRBq"}),p.submitting]}):p.submit_without_review})]})]})]})};var ue=t(78106);const ce=function(e){var r=e.isOpen,t=e.reviewCode,n=e.onClose,a=(0,ue.Zp)(),o=(0,l.d4)(y.YH),i={title:o.Oops_error,description:o.hotel_review_already_submitted_short_message,action:o.back_to_wego_title,onAction:function(){return a("/")}},s={400:i,500:{title:o.please_try_again_transaction_failed,description:o.hotel_review_submit_error,action:o.try_again_no_results,onAction:n},200:{title:o.thank_you,description:o.hotel_review_submit_success_message,action:o.back_to_wego_title,onAction:function(){return a("/")}}}[t]||i,u=s.title,d=s.description,v=s.action,m=s.onAction;return(0,f.jsx)(ae.A,{dataTestId:"dialog-submit-review",isOpen:r,onClose:n,children:(0,f.jsxs)("div",{className:"BJWdVdYZybUc5IEPnJFk",children:[(0,f.jsx)("h2",{className:"UsTnO65gOMBP_bSPM6Am",children:u}),(0,f.jsx)("p",{className:"Snc9_ADq3MEJQAWKa9RA",children:d}),(0,f.jsx)(c.A,{className:"kpeliqFjQ3nrSLHGmQ3W",onClick:m,children:v})]})})};var de=t(38411),fe=t(37957),ve=t(48009);const me="h3Y_uUb2qklPA3q1rtqh",he="r_Wxhle62b9mDGlNytOg",pe="X4YTvCPz7YQbnZ5GgNxD",ge=function(e){var r=e.bookingCheckInDate,t=e.bookingCheckOutDate,n=e.bookingHotelImages,o=e.bookingHotelName,i=(0,l.d4)(y.YH),s=(0,l.d4)(y.MS),u=(0,ve.k1)("https://edge.wego.com/image/upload/v1639463186/web/misc/hotel-image-placeholder.png","h_240","c_fill","f_auto","fl_lossy","q_auto:low","g_auto"),c=(0,de.E)((0,de.sg)(r).getTime(),(0,de.sg)(t).getTime()),v=n&&n.length>0?n[0].image_url:"";return(0,f.jsxs)("div",{"data-testid":"hotel-review-card",className:"doXGiMw_iIYPU_ecO8y9",children:[(0,f.jsx)(fe.A,{alt:o,className:"jSWGBE_RTX1SL8Dd4n0f",noImagePlaceholderSrc:u,placeholderSrc:(0,ve.bq)(v),src:(0,ve.bq)(v)}),(0,f.jsxs)("div",{className:"jGTnfEyRt45VlFEyhVbr",children:[(0,f.jsx)("h1",{className:"wNBancEJdxRhQ5Az9a6A",children:o}),(0,f.jsxs)("div",{className:"Ci6YkEFkjSqvZChdQ8Ei",children:[(0,f.jsxs)("div",{className:me,children:[(0,f.jsx)("div",{className:he,children:i.check_in}),(0,f.jsx)("div",{className:pe,children:(0,de.S1)((0,de.sg)(r),i.short_months,void 0,1,s)})]}),(0,f.jsxs)("div",{className:me,children:[(0,f.jsx)("div",{className:he,children:i.check_out}),(0,f.jsx)("div",{className:pe,children:(0,de.S1)((0,de.sg)(t),i.short_months,void 0,1,s)})]}),(0,f.jsxs)("div",{className:(0,d.$)(me,"Xsfw1GJmY6FU1MqNSCgA"),children:[(0,f.jsx)("div",{className:he,children:i.stay}),(0,f.jsx)("div",{className:pe,children:(0,a.sS)(i.night_count,s,c)})]})]})]})]})};var be=function(e,r,t){if(!e)return"";for(var n=arguments.length,o=new Array(n>3?n-3:0),i=3;i<n;i++)o[i-3]=arguments[i];if("string"!=typeof e){var l=[e.zero,e.one],s=o[t],u=Number(s);e=l[0===u?0:u<1?1:u]||e.other||""}return a.$P.apply(void 0,[e,r].concat(o))},ye=(t(94490),t(46818));const je={starRatingContainer:"pjwMDGK4TK6e3OJtFkez",stars:"KDxFG0BWMehB_afmYP3d",starForegroundWrapper:"fvDjj2aL3xGfGrHcuk_N",small:"PS59Eg9vIJgHqgISGh85",star:"wjsY02YMKsA430niJeew",labels:"zeX_0mDhXKhFlExV31Ug",big:"FKCtWN7uVf1CpNqgfZtn",starBackgroun
2d:"OP6rN4HuDRhpqTYejKLb",starForeground:"txh26LAwbNv5T1auSfnN"};function xe(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,r)||we(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(e,r){if(e){if("string"==typeof e)return _e(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_e(e,r):void 0}}function _e(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const Se=function(e){var r=e.value,t=e.onChange,n=e.maxValue,a=void 0===n?5:n,i=e.starLabels,s=e.enableHalfStar,u=void 0===s||s,c=e.size,d=void 0===c?"big":c,v=e.starStyle,m=e.className,h=(0,o.useRef)(null),p=xe((0,o.useState)(!1),2),g=p[0],b=p[1],j=xe((0,o.useState)(!1),2),w=j[0],_=j[1],S=xe((0,o.useState)(r),2),N=S[0],A=S[1],C=(0,l.d4)(y.GY);(0,o.useEffect)(function(){A(r)},[r]);var k=(0,o.useCallback)(function(e){if(!h.current)return null;var r=function(e,r,t){var n,a=r.getBoundingClientRect();if("touches"in e||"changedTouches"in e){var o,i,l,s=e,u=null!==(o=null===(i=s.touches)||void 0===i?void 0:i[0])&&void 0!==o?o:null===(l=s.changedTouches)||void 0===l?void 0:l[0];n=u?u.clientX:a.left}else n=e.clientX;var c=Math.max(0,Math.min(a.width,n-a.left)),d=a.width>0?c/a.width:0;return t?1-d:d}(e,h.current,C),t=function(e,r){return e*(r/5)}(function(e,r){if(r){var t=e%1,n=Math.floor(e);return 0===n?t<=.3?0:t<=.5?.5:1:t<=.5?n+.5:n+1}return Math.ceil(e)}(5*r,u),a),n=Math.min(a,Math.max(0,t));return u?function(e,r){var t=r/5/2;return 0===t?0:Math.round(e/t)*t}(n,a):Math.round(n)},[a,C,u]),O=(0,o.useCallback)(function(e){if("clientX"in e&&g&&t){e.preventDefault();var r=k(e);null!==r&&(A(r),t(r))}},[g,t,k]),I=(0,o.useCallback)(function(e){if(t){b(!0);var r=k(e);null!==r&&(A(r),t(r)),e.preventDefault()}},[t,k]),T=(0,o.useCallback)(function(){b(!1)},[]);(0,o.useEffect)(function(){var e=function(){b(!1)};return window.addEventListener("mouseup",e),window.addEventListener("mouseleave",e),function(){window.removeEventListener("mouseup",e),window.removeEventListener("mouseleave",e)}},[]);var E=(0,o.useCallback)(function(e){if(t){_(!0),e.preventDefault();var r=k(e);null!==r&&(A(r),t(r))}},[t,k]),P=(0,o.useCallback)(function(e){if(w&&t){e.preventDefault();var r=k(e);null!==r&&(A(r),t(r))}},[w,t,k]),M=(0,o.useCallback)(function(e){_(!1),e.preventDefault()},[]);(0,o.useEffect)(function(){var e=h.current;if(e){var r=function(e){w&&e.preventDefault()};return e.addEventListener("touchmove",r,{passive:!1}),function(){e.removeEventListener("touchmove",r)}}},[w]);var R,L=(R=Array(5),function(e){if(Array.isArray(e))return _e(e)}(R)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(R)||we(R)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(e,r){return r});return C&&L.reverse(),(0,f.jsx)("div",{className:(0,x.A)(je.starRatingContainer,m),children:(0,f.jsx)("div",{ref:h,className:(0,x.A)(je.stars,N>0&&je.hasValue,je[d]),onMouseDown:I,onMouseMove:O,onMouseUp:T,onTouchStart:E,onTouchMove:P,onTouchEnd:M,onTouchCancel:function(){return _(!1)},role:"slider","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":a,"aria-label":"Star Rating",tabIndex:0,"data-testid":"star-rating-container",children:L.map(function(e){var r=function(e,r,t,n){var a=t/5,o=Math.min(5,Math.max(0,r/a))-(n?4-e:e);return o>=1?100:o>0?Math.round(100*o):0}(e,N,a,C),t={"--star-border-color":0===N?(null==v?void 0:v.emptyInternalRatingStarBorderColor)||"#767676":r>0?(null==v?void 0:v.filledStarBorderColor)||"#FF9800":(null==v?void 0:v.emptyStarBorderColor)||"#9E9E9E"},n={WebkitMaskImage:C?"linear-gradient(to left, black ".concat(r,"%, transparent ").concat(r,"%)"):"linear-gradient(to right, black ".concat(r,"%, transparent ").concat(r,"%)"),maskImage:C?"linear-gradient(to left, black ".concat(r,"%, transparent ").concat(r,"%)"):"linear-gradient(to right, black ".concat(r,"%, transparent ").concat(r,"%)")};return(0,f.jsxs)("div",{className:je.star,style:t,"data-testid":"star-".concat(e+1),children:[(0,f.jsx)(ye.A,{className:je.starBackgroun
2d,"aria-hidden":"true"}),(0,f.jsx)("div",{className:je.starForegroundWrapper,children:(0,f.jsx)(ye.A,{className:je.starForeground,"aria-hidden":"true",style:n})}),i&&i[e]&&(0,f.jsx)("span",{className:je.labels,children:i[e]})]},e)})})})},Ne="LufcIocobIa4hmjH0i0t",Ae=function(e){var r,t=e.values,n=e.onRatingChange,a=e.errorMessage,o=(0,l.d4)(y.YH),i=(0,l.d4)(y.MS);return(0,f.jsxs)("div",{className:"GUikbR1YgATT0W1YS0JA","data-testid":"hotel-review-rating",children:[(0,f.jsxs)("div",{className:"CrQjaevM8pdaIGIuGyd8",children:[(0,f.jsx)("p",{className:"TIglEe9QBfV8GL51BMW1",children:t.overallRating?be(o.star_selected_helper,i,1,(r=t.overallRating,r>=9?o.fabulous:r>=7?o.great:r>=5?o.review_score_good:r>=3?o.review_score_poor:o.terrible),t.overallRating/2):o.review_feedback_helper}),(0,f.jsx)(Se,{value:t.overallRating,maxValue:10,onChange:function(e){return n("overallRating",e)},starLabels:[o.terrible,o.review_score_fair,o.review_score_good,o.great,o.fabulous],enableHalfStar:!0}),a&&(0,f.jsx)("p",{className:"T1f_wx7KPx9j0vwi3Yj4",children:a})]}),(0,f.jsx)("div",{className:(0,x.A)("Fj4fM_P2TVe15dCOwsn6",a&&"S7bhADgb35OpqW2Qs95k")}),(0,f.jsxs)("div",{className:Ne,children:[(0,f.jsx)("h6",{children:o.cleanliness}),(0,f.jsx)(Se,{value:t.cleanliness,maxValue:10,onChange:function(e){return n("cleanliness",e)},size:"small",enableHalfStar:!0})]}),(0,f.jsxs)("div",{className:Ne,children:[(0,f.jsx)("h6",{children:o.service}),(0,f.jsx)(Se,{value:t.service,maxValue:10,onChange:function(e){return n("service",e)},size:"small",enableHalfStar:!0})]}),(0,f.jsxs)("div",{className:Ne,children:[(0,f.jsx)("h6",{children:o.location}),(0,f.jsx)(Se,{value:t.location,maxValue:10,onChange:function(e){return n("location",e)},size:"small",enableHalfStar:!0})]}),(0,f.jsxs)("div",{className:Ne,children:[(0,f.jsx)("h6",{children:o.value_for_money}),(0,f.jsx)(Se,{value:t.valueForMoney,maxValue:10,onChange:function(e){return n("valueForMoney",e)},size:"small",enableHalfStar:!0})]}),(0,f.jsxs)("div",{className:Ne,children:[(0,f.jsx)("h6",{children:o.room_comfort}),(0,f.jsx)(Se,{value:t.roomComfort,maxValue:10,onChange:function(e){return n("roomComfort",e)},size:"small",enableHalfStar:!0})]})]})};var Ce=t(75993);const ke={hotelReviewForm:"kqJB7la_JomKNS17WC1q",hotelCard:"uKJ3DS0p5GRx1uNWw6EV",hotelImage:"IbEe3uEa96LWjRahUZQB",hotelDetail:"q0bXpQLUWpzbTvAW4jez",bookingInfo:"wG5xzM07UXWh_xrMcN9k",infoGroup:"z2MZj3ZGInW2qpMI7IM8",infoValue:"Jzz2xAJvJyUpHyzjPbSb",stay:"oWINfs_Q93BZW53JU7YD",reviewSection:"tu_IWsTJU_zmWvJdxwyf",howWasYourStayLabel:"mCAuu4aq861LUDSD2Mg1",subHeading:"PdHIwzPs7AOU_dWvU8EQ",writeYourReviewLabel:"ZLK1eQJefBvj3PS8M1pw",overallRating:"xRxGFltb_oAMCmUUZVID",stars:"oTxXzPwzIM0ApW7Z79b6",starLabel:"Jg7X6bleWXNPcKH2j0ek",reviewSeparator:"r1eWOrNDH4mjCXRNEypr",rating:"lKYmu4gXvbauJ_0tR1X2",whoDidYouTravelWithLabel:"terA3U5ehhfSPPMcUVGf",travelWith:"mqLD9HJoYcUSm90CIve0"};function Oe(e){return function(e){if(Array.isArray(e))return Ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return Ie(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ie(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const Te=function(){return(0,f.jsxs)("div",{className:ke.hotelReviewForm,children:[(0,f.jsx)(Ce.A,{className:ke.reviewLabel,height:28,width:165,borderRadius:4}),(0,f.jsxs)("div",{className:ke.hotelCard,children:[(0,f.jsx)(Ce.A,{className:ke.hotelImage,height:162,width:162,borderRadius:16}),(0,f.jsxs)("div",{className:ke.hotelDetail,children:[(0,f.jsx)(Ce.A,{className:ke.hotelName,height:20,width:323,borderRadius:4}),(0,f.jsxs)("div",{className:ke.bookingInfo,children:[(0,f.jsxs)("div",{className:ke.infoGroup,children:[(0,f.jsx)(Ce.A,{className:ke.infoLabel,height:20,width:57,borderRadius:4}),(0,f.jsx)(Ce.A,{className:ke.infoValue,height:24,width:91,borderRadius:4})]}),(0,f.jsxs)("div",{className:ke.infoGroup,children:[(0,f.jsx)(Ce.A,{className:ke.infoLabel,height:20,width:57,borderRadius:4}),(0,f.jsx)(Ce.A,{className:ke.infoValue,height:24,width:91,borderRadius:4})]}),(0,f.jsxs)("div",{className:(0,x.A)(ke.infoGroup,ke.stay),children:[(0,f.jsx)(Ce.A,{className:ke.infoLabel,height:20,width:29,borderRadius:4}),(0,f.jsx)(Ce.A,{className:ke.infoValue,height:24,width:91,borderRadius:4})]})]})]})]}),(0,f.jsxs)("div",{className:ke.reviewSection,children:[(0,f.jsx)(Ce.A,{className:ke.howWasYourStayLabel,height:24,width:193,borderRadius:4}),(0,f.jsxs)("div",{className:ke.overallRating,children:[(0,f.jsx)(Ce.A,{className:ke.subHeading,height:18,width:88,borderRadius:4}),(0,f.jsx)("div",{className:ke.stars,children:Oe(Array(5)).map(function(e,r){return(0,f.jsx)(Ce.A,{className:ke.star,height:32,width:32,borderRadius:4},r)})}),(0,f.jsxs)("div",{className:ke.starLabel,children:[(0,f.jsx)(Ce.A,{height:16,width:64,borderRadius:4}),(0,f.jsx)(Ce.A,{height:16,width:64,borderRadius:4})]})]}),(0,f.jsx)("div",{className:ke.reviewSeparator}),Oe(Array(5)).map(function(e,r){return(0,f.jsxs)("div",{className:ke.rating,children:[(0,f.jsx)(Ce.A,{height:16,width:160,borderRadius:4}),(0,f.jsx)("div",{className:ke.stars,children:Oe(Array(5)).map(function(e,r){return(0,f.jsx)(Ce.A,{height:24,width:24,borderRadius:4},r)})})]},r)})]}),(0,f.jsxs)("div",{className:ke.reviewSection,children:[(0,f.jsx)(Ce.A,{className:ke.whoDidYouTravelWithLabel,height:24,width:237,borderRadius:4}),(0,f.jsx)("div",{className:ke.travelWith,children:Oe(Array(4)).map(function(e,r){return(0,f.jsx)(Ce.A,{height:36,width:66,borderRadius:4},r)})})]})]})};t(42762);const Ee={container:"SvObgEOt3Or7JFexMVnw",textAreaContainer:"yEaT77MT5BBpcuD3abB5",reviewTitle:"tS5xpjOAw274TzsS_c1e",validation:"laYETRS5hXaVmYpEfEqQ",messageContainer:"zZCRkeSrmBeAgOoA7C94",validated:"MmCqAgLFE4jTuUsqnNK3",error:"GZQZxzGKp41XmWbe6xPU"},Pe=function(e){var r=e.className,t=e.dataTestId,n=e.hasError,a=e.id,i=e.isValidated,l=e.maxLength,s=e.message,u=e.n
2ame,c=e.onBlur,v=e.onChange,m=e.placeholder,h=e.reviewTitle,p=e.rows,g=e.value,b=(0,o.useRef)(null),y=(0,o.useState)(!1)[1];return(0,o.useEffect)(function(){if(null!=b&&b.current){b.current.style.height=54*p+"px";var e=b.current.scrollHeight;b.current.style.height=e+"px"}},[b,g]),(0,f.jsxs)("div",{"data-testid":t,className:(0,d.$)(Ee.container,r,i&&Ee.validated,n&&Ee.error),children:[(0,f.jsxs)("div",{className:Ee.textAreaContainer,children:[(0,f.jsx)("h4",{className:Ee.reviewTitle,children:h}),(0,f.jsx)("textarea",{id:null!=a?a:"textAreaId",name:u,onBlur:function(){y(!1),c&&c()},onChange:function(e){function r(r){return e.apply(this,arguments)}return r.toString=function(){return e.toString()},r}(function(e){return v(e.target.value)}),onFocus:function(){return y(!0)},ref:b,spellCheck:!1,value:g,placeholder:m,rows:p})]}),(0,f.jsxs)("div",{className:Ee.messageContainer,children:[(0,f.jsx)("div",{className:Ee.message,children:s}),l&&l>0?(0,f.jsxs)("span",{children:[g?g.toString().trim().length:0,"/",l]}):null]})]})},Me="JToXgNEj7jVmVnYaji8A";function Re(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,n)}return t}function Le(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?Re(Object(t),!0).forEach(function(r){Fe(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Fe(e,r,t){return(r=function(e){var r=function(e){if("object"!=De(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var t=r.call(e,"string");if("object"!=De(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(r)?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ue(){var e,r,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function o(t,n,a,o){var s=n&&n.prototype instanceof l?n:l,u=Object.create(s.prototype);return Ve(u,"_invoke",function(t,n,a){var o,l,s,u=0,c=a||[],d=!1,f={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(r,t){return o=r,l=0,s=e,f.n=t,i}};function v(t,n){for(l=t,s=n,r=0;!d&&u&&!a&&r<c.length;r++){var a,o=c[r],v=f.p,m=o[2];t>3?(a=m===n)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):o[0]<=v&&((a=t<2&&v<o[1])?(l=0,f.v=n,f.n=o[1]):v<m&&(a=t<3||o[0]>n||n>m)&&(o[4]=t,o[5]=n,f.n=m,l=0))}if(a||t>1)return i;throw d=!0,n}return function(a,c,m){if(u>1)throw TypeError("Generator is already running");for(d&&1===c&&v(c,m),l=c,s=m;(r=l<2?e:s)||!d;){o||(l?l<3?(l>1&&(f.n=-1),v(l,s)):f.n=s:f.v=s);try{if(u=2,o){if(l||(a="next"),r=o[a]){if(!(r=r.call(o,s)))throw TypeError("iterator result is not an object");if(!r.done)return r;s=r.value,l<2&&(l=0)}else 1===l&&(r=o.return)&&r.call(o),l<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),l=1);o=e}else if((r=(d=f.n<0)?s:t.call(n,f))!==i)break}catch(r){o=e,l=1,s=r}finally{u=1}}return{value:r,done:d}}}(t,a,o),!0),u}var i={};function l(){}function s(){}function u(){}r=Object.getPrototypeOf;var c=[][n]?r(r([][n]())):(Ve(r={},n,function(){return this}),r),d=u.prototype=l.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,Ve(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=u,Ve(d,"constructor",u),Ve(u,"constructor",s),s.displayName="GeneratorFunction",Ve(u,a,"GeneratorFunction"),Ve(d),Ve(d,a,"Generator"),Ve(d,n,function(){return this}),Ve(d,"toString",function(){return"[object Generator]"}),(Ue=function(){return{w:o,m:f}})()}function Ve(e,r,t,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}Ve=function(e,r,t,n){function o(r,t){Ve(e,r,function(e){return this._invoke(r,t,e)})}r?a?a(e,r,{value:t,enumerable:!n,configurable:!n,writable:!n}):e[r]=t:(o("next",0),o("throw",1),o("return",2))},Ve(e,r,t,n)}function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ge(e,r,t,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void t(e)}l.done?r(s):Promise.resolve(s).then(n,a)}function He(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var o=e.apply(r,t);function i(e){Ge(o,n,a,i,l,"next",e)}function l(e){Ge(o,n,a,i,l,"throw",e)}i(void 0)})}}function We(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===r){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==r);s=!0);}catch(e){u=!0,a=e}
2finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(u)throw a}}return l}}(e,r)||function(e,r){if(e){if("string"==typeof e)return Be(e,r);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Be(e,r):void 0}}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}const ze=function(){var e,r=We((0,o.useState)(!1),2),t=r[0],d=r[1],v=We((0,o.useState)(!1),2),m=v[0],p=v[1],j=We((0,o.useState)(!1),2),x=j[0],w=j[1],_=We((0,o.useState)(null),2),S=_[0],N=_[1],A=We((0,s.ok)(),1)[0],C=A.get("booking_id"),k=Number(A.get("rating"))||0,O=(0,l.d4)(y.YH),I=(0,l.d4)(y.MS),T=(0,o.useContext)(g.F).userCentricCoreConfigs,E="1"===(null==T||null===(e=T.find(function(e){return"hotel_image_upload_user_reviews"===e.key}))||void 0===e?void 0:e.value),P=(0,b.Z)(C).data,M=(0,l.d4)(y.h2),R=(0,i.mN)({mode:"all",defaultValues:{ratings:{overallRating:k,cleanliness:0,service:0,location:0,valueForMoney:0,roomComfort:0},travelWith:"",title:"",propertyLikes:"",propertyImprovement:"",isPostAnonymously:!1,imageIds:[]}}),L=R.control,F=R.handleSubmit,U=R.setValue,V=R.getValues,D=R.watch,G=R.trigger;(0,o.useEffect)(function(){null!=P&&P.data.reviewed_at&&d(!0)},[P]);var H=function(e,r){U("ratings.".concat(e),r,{shouldValidate:!0}),G("ratings")},W=function(){var e=He(Ue().m(function e(r){var t,n,a;return Ue().w(function(e){for(;;)switch(e.p=e.n){case 0:if(N(null),r.propertyLikes||r.propertyImprovement){e.n=1;break}p(!0),e.n=6;break;case 1:return w(!0),e.p=2,e.n=3,(0,u.VE)(C,r);case 3:N(200),d(!0),e.n=5;break;case 4:e.p=4,(a=e.v)&&"object"===De(a)&&"response"in a&&(N(null!==(t=null===(n=a.response)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.error_code)&&void 0!==t?t:null),d(!0));case 5:return e.p=5,w(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(r){return e.apply(this,arguments)}}(),B=function(){var e=He(Ue().m(function e(r){var t,n,a,o,i,l;return Ue().w(function(e){for(;;)switch(e.p=e.n){case 0:return w(!0),e.p=1,t=V(),n=D("ratings.overallRating")>5,a=null!=r&&r.length?Le(Le({},t),n?{propertyLikes:r.join(", ")}:{propertyImprovement:r.join(", ")}):t,e.n=2,(0,u.VE)(C,a);case 2:N(200),d(!0),e.n=4;break;case 3:e.p=3,(l=e.v)&&"object"===De(l)&&"response"in l&&(N(null!==(o=null===(i=l.response)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.error_code)&&void 0!==o?o:null),d(!0));case 4:return e.p=4,p(!1),w(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(r){return e.apply(this,arguments)}}();return(0,f.jsxs)("div",{className:"vlmwnzP1H6MXjob4KVkg",children:[P&&null==P.data.reviewed_at?(0,f.jsxs)("form",{className:"bPHWpstqifOwfvvvosvj",onSubmit:F(W,function(e){e.ratings&&window.scrollTo({top:0,behavior:"smooth"})}),children:[(0,f.jsx)("h1",{className:"Dn51VJxrSF1GRl98Sk6g",children:O.write_a_review}),(0,f.jsx)(ge,{bookingHotelName:P.data.hotel.name,bookingHotelImages:P.data.hotel.images,bookingCheckInDate:P.data.check_in_date,bookingCheckOutDate:P.data.check_out_date}),(0,f.jsxs)("div",{className:Me,children:[(0,f.jsx)("h2",{className:"lH4gEYdZOKTptHUd1Cu1",children:O.choose_a_rating}),(0,f.jsx)(i.xI,{control:L,name:"ratings",rules:{validate:function(e){return 0!==e.overallRating||O.overall_rating_error_message}},render:function(e){var r,t=e.field,n=e.fieldState;return(0,f.jsx)(Ae,{values:t.value,onRatingChange:H,errorMessage:null===(r=n.error)||void 0===r?void 0:r.message})}})]}),(0,f.jsxs)("div",{className:Me,children:[(0,f.jsx)("h5",{className:"quE1mJWZ53djZpCqYr4i",children:O.who_did_you_travel_with}),(0,f.jsx)(i.xI,{name:"travelWith",control:L,render:function(e){var r=e.field;return(0,f.jsx)(h,{dataTestId:"travel-with-selector",options:[{value:"Family",label:O.family},{value:"Friends",label:O.friends},{value:"Couple",label:O.couple},{value:"Solo",label:O.solo}],onChange:r.onChange,multipleSelect:!1})}})]}),(0,f.jsxs)("div",{className:Me,children:[(0,f.jsx)("h2",{className:"fwXPDyu0Z6GOTIHtocFB",children:O.write_your_review}),(0,f.jsx)(i.xI,{name:"title",control:L,rules:{maxLength:{value:200,message:(0,a.sS)(O.title_long_text_error,I,200)}},render:function(e){var r,t=e.field,n=e.fieldState;return(0,f.jsx)(Pe,{dataTestId:"review-text",id:"review-text",name:"review-text",placeholder:O.summarise_your_stay,hasError:!!n.error,isValidated:!!n.error,onBlur:t.onBlur,onChange:t.onChange,reviewTitle:O.act_web_Title,value:t.value,message:null===(r=n.error)||void 0===r?void 0:r.message,maxLength:200,rows:1})}}),(0,f.jsx)("div",{className:"pWmSIz2yvhGfhB1bpCnD"}),(0,f.jsx)(i.xI,{name:"propertyLikes",control:L,rules:{maxLength:{value:700,message:(0,a.sS)(O.review_long_text_error,I,700)}},render:function(e){var r,t=e.field,n=e.fieldState;return(0,f.jsx)(Pe,{dataTestId:"property-likes",id:"property-likes",name:"property-likes",placeholder:O.tell_us_about_your_experience,hasError:!!n.error,isValidated:!!n.error,onBlur:t.onBlur,onChange:t.onChange,reviewTitle:O.what_did_you_like_about_property,value:t.value,message:null===(r=n.error)||void 0===r?void 0:r.message,maxLength:700,rows:2})}}),(0,f.jsx)(i.xI,{name:"propertyImprovement",control:L,rules:{maxLength:{value:700,message:(0,a.sS)(O.review_long_text_error,I,700)}},render:function(e){var r,t,n,a=e.field,o=e.fieldState;return(0,f.jsx)(Pe,{dataTestId:"property-improvement",className:"cjjcJjGkpd0VRvPNBwaJ",id:"property-improvement",name:"property-improvement",placeholder:O.tell_us_about_your_experience,hasError:!(null===(r=o.error)||void 0===r||!r.message),isValidated:!(null===(t=o.error)||void 0===t||!t.message),onBlur:a.onBlur,onChange:a.onChange,reviewTitle:O.what_could_be_improved_property,value:a.value,message:null===(n=o.error)||void 0===n?void 0:n.message,maxLength:700,rows:2})}}),E?(0,f.jsx)(i.xI,{name:"imageIds",control:L,render:function(e){var r=e.field;return(0,f.jsx)(ne,{selectedFiles:r.value,onChange:r.onChange})}}):void 0,M?(0,f.jsx)(i.xI,{name:"isPostAnonymously",control:L,render:function(e){var r=e.field;return(0,f.jsxs)("div",{"data-testid":"post-anonymously",className:"A_jnqXK9hODs_E_x8d4w",onClick:function(){return r.onChange(!r.value)},children:[(0,f.jsx)(n.A,{className:"Shn9yZIr0jUcyNuWM10A",isChecked:r.value,onClick:function(){return r.onChange(!r.value)}}),(0,f.jsxs)("div",{children:[(0,f.jsx)("p",{className:"KyQTTxgh5mzrzmU2wE7v",children:O.post_anonymously}),(0,f.jsx)("span",{className:"WLiCkgF2ws16WsPE6Qxs",children:O.post_anonymously_helper})]})]})}}):null]}),(0,f.jsx)("p",{className:"jn61j6vUdox5TMQnEJZ4",children:O.submit_review_helper}),(0,f.jsx)(c.A,{type:"submit",disabled:x,isLoading:x,"data-testid":"submit-review-button",children:x?O.submitting:O.submit_review})]}):(0,f.jsx)(Te,{}),(0,f.jsx)(se,{isOpen:m,isSubmitting:x,onClose:function(){return p(!1)},onSubmit:B,overallRating:D("ratings.overallRating")}),(0,f.jsx)(ce,{isOpen:t,reviewCode:S,onClose:function(){return d(!1)}})]})}},20053(e,r,t){function n(e){var r,t,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;
2r++)e[r]&&(t=n(e[r]))&&(a&&(a+=" "),a+=t);else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function a(){for(var e,r,t=0,a="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(a&&(a+=" "),a+=r);return a}t.d(r,{A:()=>o,clsx:()=>a});const o=a},94490(e,r,t){var n=t(46518),a=t(79504),o=t(34376),i=a([].reverse),l=[1,2];n({target:"Array",proto:!0,forced:String(l)===String(l.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i(this)}})},23860(e,r,t){var n=t(46518),a=t(68183).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return a(this,e)}})}}]);
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.