PageSourceSearch

https://www.e-hotels-lyon.com/site/files/default/build/9798.5fcbf4c97e102880f339.js

js e-hotels-lyon.com collected 2026-10-10 00:32:25 UTC 5,296 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklib=self.webpackChunklib||[]).push([[9798,7742],{49798:(t,e,i)=>{i.r(e);i(30816),i(78472),i(87737),i(88748),i(41547);var r=i(7742),s=i(69024);function o(t,e,i,r,s,o,n){try{var a=t[o](n),c=a.value}catch(t){return void i(t)}a.done?e(c):Promise.resolve(c).then(r,s)}function n(t){return function(){var e=this,i=arguments;return new Promise((function(r,s){var n=t.apply(e,i);function a(t){o(n,r,s,a,c,"next",t)}function c(t){o(n,r,s,a,c,"throw",t)}a(void 0)}))}}var a="/static.php",c={upd_about_us:"about_us_text",upd_our_story:"our_story_text",upd_mission:"mission_text",upd_cooperation:"cooperation_text",copyright:"copyright_notice_text",faq:"faq_page",privacy:"privacy_policy_text",upd_refund_policy:"refund_policy_text",upd_terms_and_conditions:"terms_and_conditions_text"};function h(){return(h=n((function*(){var t={page:c[travel.options.page],LanguageCode:travel.options.language,r:Math.random()},e=(0,s.Z)(t),i=yield fetch("".concat(a,"?").concat(e));return yield i.text()}))).apply(this,arguments)}var l=i(75644),u={required:t=>!!t&&!!t.toString().trim().length,email:t=>/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)i/.test(t)};class d extends l.Z{constructor(t){if(super(),this.form=t instanceof HTMLElement?t:document.querySelector(t),!this.form)throw new Error("ValidateForm: param form(element or selector) is required");this.touch=!1,this.form.addEventListener("input",this.revalidation.bind(this),{passive:!0}),this.form.addEventListener("change",this.revalidation.bind(this),{passive:!0})}validation(){this.touch=!0;var t=Object.keys(this.rules).reduce(((t,e)=>(t[e]=this.rules[e](this.form[e].value),t)),{});return this.showErrors(t),!Object.values(t).filter((t=>!t)).length}showErrors(t){Object.keys(t).forEach((e=>{var i=this.form[e]instanceof NodeList?[...this.form[e]]:[this.form[e]];t[e]?i.forEach((t=>t.classList.remove("invalid"))):i.forEach((t=>t.classList.add("invalid")))}))}revalidation(t){if(this.touch){var e=t.target;if(this.rules[e.name]){var i=this.rules[e.name](e.value);this.showErrors({[e.name]:i})}}}}const v=d;const f=class extends v{constructor(t){super(t),this.rules={f_name:u.required,f_email:t=>u.required(t)&&u.email(t),f_subject:u.required,f_message:u.required},this.form.addEventListener("submit",this.submit.bind(this))}submit(t){t.preventDefault(),this.validation()&&(this.touch=!1,this.form.submit())}};function m(t,e,i,r,s,o,n){try{var a=t[o](n),c=a.value}catch(t){return void i(t)}a.done?e(c):Promise.resolve(c).then(r,s)}new class{constructor(){this.container=document.querySelector(".js-dynamic-content"),this.pageName=travel.options.page,this.container&&this._init()}_init(){var t,e=this;return(t=function*(){e.container.innerHTML=yield function(){return h.apply(this,arguments)}(),"faq"===e.pageName&&new r.default(".js-faq-accordion-btn")},function(){var e=this,i=arguments;return new Promise((function(r,s){var o=t.apply(e,i);function n(t){m(o,r,s,n,a,"next",t)}function a(t){m(o,r,s,n,a,"throw",t)}n(void 0)}))})()}};var _=document.querySelector("#form-feedback");_&&new f(_)},7742:(t,e,i)=>{i.r(e),i.d(e,{default:()=>r});class r{constructor(t){var{multiple:e=!1,behavior:i="auto"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Selector or Dom elements is required");this._triggers="string"==typeof t?[...document.querySelectorAll(t)]:t,this._options={multiple:e,behavior:i},this._listeners={click:this._clickHandler.bind(this)},this._triggers.forEach((t=>t.addEventListener("click",this._listeners.click))),"smooth"===this._options.behavior&&this._triggers.forEach((t=>{var e=this._getTarget(t);e.style.height=e.scrollHeight+"px",e.style.overflow="hidden",e.style.transition="all 0.5s"})),this._options.multiple||this._hideOther(null)}_toggleItem(t){var e=this._getTarget(t);t.classList.toggle("active"),e.classList.toggle("active"),"smooth"===this._options.behavior&&(e.style.height=e.classList.contains("active")?e.scrollHeight+"px":0)}_getTarget(t){var e=t.dataset.target||t.nextElementSibling;if(!e)throw new Error("Cannot find accordion target: "+t);return e}_clickHandler(t){var e=t.currentTarget;this._options.multiple||this._hideOther(e),this._toggleItem(e)}
1_hideOther(t){this._triggers.forEach((e=>{if(t!==e){var i=this._getTarget(e);e.classList.remove("active"),i.classList.remove("active"),"smooth"===this._options.behavior&&(i.style.height=0)}}))}_validateIndex(t,e){if("number"!=typeof t)throw new Error("Fail to open accordion target. ".concat(t," is not a number"));if(t>=e.length||t<0)throw new Error("Fail to open accordion target. Cannot find element with index ".concat(t))}closeAll(){this._hideOther(null)}open(t){this._validateIndex(t,this._triggers);var e=this._triggers[t];e.classList.contains("active")||(this._options.multiple||this._hideOther(null),this._toggleItem(e))}destroy(){this._triggers.forEach((t=>t.removeEventListener("click",this._listeners.click)))}}},69024:(t,e,i)=>{i.d(e,{Z:()=>r});const r=t=>{var e=new URLSearchParams;return Object.keys(t).forEach((i=>e.append(i,t[i]))),e.toString()}}}]);

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.