1"use strict";(self.webpackChunkHotelFriend=self.webpackChunkHotelFriend||[]).push([["default-node_modules_angular_elements_fesm2022_elements_mjs"],{9337:(A,f,l)=>{l.d(f,{gw:()=>P});var u=l(54438),E=l(92771),C=l(57786),I=l(25558),y=l(96354);const g={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if(typeof window>"u")return g.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return g.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let m;function w(n,e,t){let s=t;return function _(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((i,r)=>!("*"===i||!function b(n,e){if(!m){const t=Element.prototype;m=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&m.call(n,e)}(n,i)||(s=r,0))),s}class T{constructor(e,t){this.componentFactory=t.get(u.OM3).resolveComponentFactory(e)}create(e){return new V(this.componentFactory,e)}}class V{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new E.m(1),this.events=this.eventEmitters.pipe((0,I.n)(s=>(0,C.h)(...s))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:s})=>s)),this.ngZone=this.injector.get(u.SKi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=g.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t,s){this.runInZone(()=>{var i;s&&(t=s.call(null===(i=this.componentRef)||void 0===i?void 0:i.instance,t)),null!==this.componentRef?function D(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=u.zZn.create({providers:[],parent:this.injector}),s=function S(n,e){const t=n.childNodes,s=e.map(()=>[]);let i=-1;e.some((r,c)=>"*"===r&&(i=c,!0));for(let r=0,c=t.length;r<c;++r){const a=t[r],o=w(a,e,i);-1!==o&&s[o].push(a)}return s}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,s,e),this.viewChangeDetectorRef=this.componentRef.injector.get(u.gRc),this.implementsOnChanges=function F(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(u.o8S).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e,transform:t})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e),t)}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:s,templateName:i})=>e.instance[s].pipe((0,y.T)(c=>({name:i,value:c}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=g.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const s=this.inputChanges[e];if(s)return void(s.currentValue=t);const i=this.unchangedInputs.has(e),r=i?void 0:this.getInputValue(e);this.inputChanges[e]=new u.FRM(r,t,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class j extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function P(n,e){const s=function O(n,e){return e.get(u.OM3).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new T(n,e.injector),r=function v(n){const e={};
1return n.forEach(({propName:t,templateName:s,transform:i})=>{e[function R(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(s)]=[t,i]}),e}(s);class c extends j{get ngElementStrategy(){if(!this._ngElementStrategy){const o=this._ngElementStrategy=i.create(this.injector||e.injector);s.forEach(({propName:h,transform:p})=>{if(!this.hasOwnProperty(h))return;const d=this[h];delete this[h],o.setInputValue(h,d,p)})}return this._ngElementStrategy}constructor(o){super(),this.injector=o}attributeChangedCallback(o,h,p,d){const[Z,x]=r[o];this.ngElementStrategy.setInputValue(Z,p,x)}connectedCallback(){let o=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),o=!0),this.ngElementStrategy.connect(this),o||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(o=>{const h=new CustomEvent(o.name,{detail:o.value});this.dispatchEvent(h)})}}return c.observedAttributes=Object.keys(r),s.forEach(({propName:a,transform:o})=>{Object.defineProperty(c.prototype,a,{get(){return this.ngElementStrategy.getInputValue(a)},set(h){this.ngElementStrategy.setInputValue(a,h,o)},configurable:!0,enumerable:!0})}),c}}}]);
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.