PageSourceSearch

https://www.israir.co.il/_next/static/chunks/88047-a26f60700bac9286.js

js israir.co.il collected 2026-09-24 18:58:44 UTC 22,850 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7202,12397,25984,42894,43822,46530,74891,77298,87958,88047,91965,93578],{7202:()=>{},12397:()=>{},25984:()=>{},39568:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var n=i(95155),r=i(12115);i(87958);var a=i(96825),l=i(79557),d=i(16026),s=i(42720),o=i.n(s),c=i(61354),u=i(1520),g=i(39255);let p=function(e){let t,{t:i}=(0,l.useAppTranslation)("OrderProcess"),[s,p]=(0,r.useState)({}),m=(0,d.G)(t=>t.additionalProducts.additionalProducts[e.index]?.additionalProducts.Baggage),f=(0,d.G)(e=>e.additionalProducts.additionalProductsByPassengers),h=(0,c.S)();o().some(m?.[e.direction]??{},e=>!o().isNull(e)&&!o().isEmpty(e)),m&&m[e.direction]&&(t=m[e.direction][e.id]);let x=e.locations?(0,g.buildDirectionString)(e.locations,e.direction):h.getDirectionsString(e.direction),b=()=>{if(!f||!f[e.index])return!1;{let t=f[e.index].allocatedProducts.find(t=>{if(t.directions?.[x]?.id===e.productId)return t});return!!t&&!!(t.directions?.[x]?.chosen&&t.directions?.[x]?.allocated)}},_=()=>{if(b()||!f||!f[e.index])return!1;{let t=f[e.index].allocatedProducts.find(t=>{if(t.directions?.[x]?.productType===e.productType)return t});return!!t&&!!(t.directions?.[x]?.id!==e.productId&&t.directions?.[x]?.allocated&&t.directions?.[x]?.chosen)}};return(0,r.useEffect)(()=>{t&&t.fields?1===t.fields.counter?p(t=>({...t,[e.direction]:!0})):p(t=>({...t,[e.direction]:!1})):p(t=>({...t,[e.direction]:!1}))},[e.direction,m,e.index]),(0,n.jsxs)("div",{className:"baggage-counter"+(b()?" baggage-counter--active":""),children:[(0,n.jsxs)(a.default,{id:"Baggage"===e.productType?"baggage-option-"+e.id+"-select-btn":"",className:"baggage-counter__btn"+(b()?" baggage-counter__btn--active":" ")+(_()?" baggage-counter__btn--disabled":""),disabled:_(),onClick:()=>void(!b()&&!_()&&(console.log("clicked"),e.handlePlusClick())),children:[b()&&(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",children:(0,n.jsx)("path",{d:"M13.5 2L5.23071 11.4958C5.18281 11.5508 5.09731 11.5507 5.04953 11.4956L1.5 7.4",stroke:"white",strokeWidth:"2.4",strokeLinecap:"round"})}),(0,n.jsx)("div",{children:i("select")})]}),b()&&(0,n.jsxs)(a.default,{id:"Baggage"===e.productType?"baggage-option-"+e.id+"-unselect-btn":"",className:"baggage-counter__btn--cancel",onClick:()=>void e.handleMinusClick(),children:[(0,n.jsx)("span",{children:u.cancelIcon}),(0,n.jsx)("div",{children:i("cancel-selection")})]}),e.allocateFailed&&(0,n.jsx)("div",{className:"baggage-counter__btn__fail",children:i("ancillary-allocation-failed")})]})}},42894:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var n=i(95155);i(12115),i(12397);let r=e=>{let t="rtl"===e.direction?`carousel-button__arrow_left ${e.disabled?"carousel-button__arrow_left--disabled":""}`:`carousel-button__arrow_right ${e.disabled?"carousel-button__arrow_right--disabled":""}`;return(0,n.jsx)("div",{className:`carousel-button_next ${t}`,children:(0,n.jsxs)("button",{id:"carousel-next-btn",onClick:e.onClick,children:[e.children,(0,n.jsx)("span",{className:"sr-only",children:e.buttonText})]})})}},43822:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>r});var n=i(95155);i(12115),i(12397);let r=e=>{let t="rtl"===e.direction?`carousel-button__arrow_right ${e.disabled?"carousel-button__arrow_right--disabled":""}`:`carousel-button__arrow_left ${e.disabled?"carousel-button__arrow_left--disabled":""}`;return(0,n.jsx)("div",{className:`carousel-button_previous ${t}`,children:(0,n.jsxs)("button",{id:"carousel-prev-btn",onClick:e.onClick,children:[e.children,(0,n.jsx)("span",{className:"sr-only",children:e.buttonText})]})})}},46530:(e,t,i)=>{"use strict";i.r(t),i.d(t,{checkedIcon:()=>r});var n=i(95155);let r=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",children:(0,n.jsx)("path",{d:"M13.5 2L5.23071 11.4958C5.18281 11.5508 5.09731 11.5507 5.04953 11.4956L1.5 7.4",stroke:"#18549C",strokeWidth:"2.4",strokeLinecap:"round"})})},55860:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>g});var n=i(95155),r=i(12115);i(25984);var a=i(16026),l=i(79557),d=i(39568),s=i(96825),o=i(46530),c=i(51838),u=i(69354);let g=function(e){let t,{t:i}=(0,l.useAppTranslation)("OrderProcess");(0,c.A)();let g=(0,a.G)(t=>t.additionalProducts.additionalProducts[e.index]?.additionalProducts?.Baggage);g&&g[e.direction]&&(t=g[e.direction][e.id]),(0,r.useEffect)(()=>{t?m(t.fields.counter):m(0)},[g,e.index,e.direction]);let[p,m]=(0,r.useState)(0);return e.isIncluded?(0,n.jsxs)("div",{className:"baggage-select-items baggage-select-items--included","data-baggage-type":e.productType+"-included-"+e.id,children:[(0,n.jsx)("div",{className:"baggage-select-items__top",children:e.children}),(0,n.jsx)("div",{className:"baggage-select-items__bottom baggage-select-items__bottom--included",children:(0,n.jsx)("div",{className:"baggage-counter baggage-counter--included",children:(0,n.jsxs)(s.default,{className:"baggage-counter__btn baggage-counter__btn--included",id:"baggage-option-"+e.id+"-included-button",onClick:e=>e.preventDefault(),children:[(0,n.jsx)("span",{children:o.checkedIcon}),(0,n.jsx)("div",{children:i("included-in-flight")})]})})})]}):(0,n.jsxs)("div",{className:"baggage-select-items","data-baggage-type":e.productType+e.id,children:[(0,n.jsx)("div",{className:"baggage-select-items__top",children:e.children}),"boolean"==typeof e.sale&&e.sale&&(0,n.jsx)("div",{className:"baggage-select-items__sale",children:(0,n.jsx)("span",{children:i("special-offer")})}),(0,n.jsxs)("div",{className:"order-process__baggage-card-price",children:[i("extension")," ",(0,u.C7)(e.price)," ",i("per-person")]}),(0,n.jsx)("div",{className:0===p?"baggage-select-items__bottom":"baggage-select-items__bottom baggage-select-items__bottom--active",children:(0,n.jsx)(d.default,{count:p,handleMinusClick:()=>{p>0&&(m(p-1),e.counterHandle(e.id,p-1))},handlePlusClick:()=>{p<1&&(m(p+1),e.counterHandle(e.id,p+1))},productType:e.productType,index:e.index,direction:e.direction,id:e.id,productId:e.productId,allocateFailed:e.allocateFailed,locations:e.locations})})]})}},74891:()=>{},77298:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>c});var n=i(95155),r=i(12115);i(7202);var a=i(16026),l=i(79557),d=i(21147),s=i(32836),o=i(51838);let c=function(e){let{t}=(0,l.useAppTranslation)("OrderProcess"),i=e.id,c=(0,s.r)(),u=(0,a.G)(t=>t.additionalProducts.additionalProducts[e.index]?.additionalProducts?.Baggage),g=(0,o.A)(),p=(t=>{if(t.includes("icon-luggage-23kg.png")&&0===e.id&&!("string"==typeof e.title&&("he"===g&&(e.title.includes("שתי")||e.title.includes("שני"))||"he"!==g&&e.title.includes("2"))))return"/ISRA2023/ancillaries/baggage_single.png";if(t.includes("icon-luggage-30kg.png"))return"/ISRA2023/ancillaries/baggage-overweight.png";if(t.includes("icon-2luggage-23kg.png"))return"/ISRA2023/ancillaries/baggage_double.png";if(t.includes("icon-luggage-23kg.png")&&1===e.id)return"/ISRA2023/ancillaries/baggage_double.png";if("string"==typeof e.title&&("he"===g&&e.title.includes("ארבע")||"he"!==g&&e.title.includes("4")))return"/ISRA2023/ancillaries/baggage_quadruple.png";else if("string"==typeof e.title&&("he"===g&&e.title.includes("שלוש")||"he"!==g&&e.title.includes("3")))return"/ISRA2023/ancillaries/baggage_triple.png";else if("string"==typeof e.title&&("he"===g&&(e.title.includes("שתי")||e.title.includes("שני"))||"he"!==g&&e.title.includes("2")))return"/ISRA2023/ancillaries/baggage_double.png";else if(1===e.itemAmount)return"/ISRA2023/ancillaries/baggage_single.png";else if(2===e.itemAmount)return"/ISRA2023/ancillaries/baggage_double.png";else return"/ISRA2023/ancillaries/baggage_triple.png"})(e.imageUrl);return u&&u[e.direction]&&u[e.direction][i],(0,n.jsxs)("div",{className:"order-process__baggage-card",children:[(0,n.jsx)("div",{className:"order-process__baggage-card-image-container",children:(0,n.jsx)(d.default,{src:c(p),alt:"baggage-image",styleCont:"order-process__baggage-card-image-container-image"})}),r.createElement("div",{className:"order-process__baggage-card-title",dangerouslySetInnerHTML:{__html:e.title}}
1),r.createElement("div",{className:"order-process__baggage-card-text",dangerouslySetInnerHTML:{__html:e.text}})]})}},87958:()=>{},88047:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>A});var n=i(95155),r=i(12115);i(74891);var a=i(76640),l=i(44587),d=i(4662),s=i(16026),o=i(1556),c=i(79557),u=i(51838),g=i(91965),p=i(77298),m=i(55860),f=i(66300),h=i(92480),x=i(33147),b=i(89166),_=i(61354),v=i(6070),w=i(53557),P=i(69354),y=i(39255),I=i(93578);let S={0:{slidesPerView:1,spaceBetween:16},480:{slidesPerView:2,spaceBetween:16},768:{slidesPerView:2,spaceBetween:16},1e3:{slidesPerView:2,spaceBetween:16},1475:{slidesPerView:4,spaceBetween:16},1920:{slidesPerView:4,spaceBetween:16}},A=function(e){let t,i,A,{t:j}=(0,c.useAppTranslation)("OrderProcess"),N=(0,s.G)(e=>e.global.mobileBreakpoint),k=(0,u.A)(),B=(0,s.j)(),[T,C]=(0,r.useState)(!1),O=(0,s.G)(e=>e.additionalProducts.ancillariesProductsResponse?.class),E=(0,l.castUtil)(a.q,O),L=(0,s.G)(e=>e.additionalProducts.ancillariesProductsResponse?.class.Baggage),U=(0,s.G)(e=>e.additionalProducts.additionalProductsByPassengers),F=E.getBaggage(d.LV[k]),$=(0,s.G)(e=>e.deal.deal.deepLinkURL),D=(0,u.A)(),G=(0,s.G)(e=>e.sessionMetadata),R=(0,s.G)(e=>e.deal),H=(0,_.S)(),M=e.locations?(0,y.buildDirectionString)(e.locations,e.direction):H.getDirectionsString(e.direction),V=(()=>{if(H.isOneWayFlight())return 0;if(e.locations){let t=e.locations.find(t=>t.index===e.direction),i=H.getAirportCodes()?.outgoing?.depAirportsCodes?.[0];return t?.arrivalCityCode&&i&&t.arrivalCityCode===i?1:0}let t=H.getAirportCodes()?.outgoing?.depAirportsCodes?.length??1;return e.direction<t?0:1})(),q=H.getBaggageIndicatorForLeg(V)===v.F.INCLUDED_IN_PRICE,W=R.cloudPnr,z=(0,s.G)(e=>e.orderProcessPersonalInformation.passengers),K=F.map(e=>{let t=e.fields.filter(e=>q?e.forFirstProdIncluded:!e.forFirstProdIncluded);return{...e,fields:t.length>0?t:e.fields.filter(e=>!e.forFirstProdIncluded)}});for(let e=0;e<K.length;e++)K[e]={...K[e],counter:0,id:e};let Y=(0,y.findParsedProductForLeg)(K,e.locations,e.direction),J=(0,y.findProductOptionsForLeg)(L?.productOptions,e.locations,e.direction),Q=(0,y.findParsedProductForLeg)(F,e.locations,e.direction),X=q?Q?.fields?.filter?.(e=>!e.forFirstProdIncluded)??[]:[],Z=(t=H.getBaggageAllowances(),i=1===V?t?.return:t?.outgoing,null!=(A=(0,w.sA)(i,w.FS.CHECKED_BAGGAGE)?.quantity)&&A>0?A:void 0),ee=q?(null!=Z?X.find(e=>e?.itemAmount===Z):void 0)??X[0]:void 0,et=(0,s.G)(t=>t.additionalProducts.additionalProducts[e.index]?.additionalProducts?.Baggage[e.direction]),[ei,en]=(0,r.useState)({});(0,l.typedCastUtil)(b.q0,R);let er=(0,s.G)(e=>e.additionalProducts.additionalProductsByPassengers),[ea,el]=(0,r.useState)(0);(0,r.useEffect)(()=>{let t=(()=>{if(er&&er[e.index]){let t=er[e.index].allocatedProducts;for(let e=0;e<t.length;e++){let i=t[e].directions[M];if(i?.chosen&&i?.allocated)return e}}return -1})();-1!==t&&el(t)},[e.index,e.direction]);let ed=(e,t,i,n)=>{en(r=>{let a={...r},l=a[e]?.[t]||{},d=Object.keys(l).reduce((e,t)=>{let r=Number(t);return e[r]=r===i?n:l[r],e},{});return n?d[i]=!0:Object.keys(l).forEach(e=>{d[Number(e)]=!1}),{...a,[e]:{...a[e]||{},[t]:d}}})},es=async(t,i)=>{if("INFANT"!==z[e.index].passengerType){C(!0);let n="Baggage",r=J?.clientProductInnerOption||[],a=r.filter(e=>q?e.forFirstProdIncluded:!e.forFirstProdIncluded),l=a.length>0?a:r.filter(e=>!e.forFirstProdIncluded),d={...L,productOptions:{...L.productOptions,[e.direction]:{...J,clientProductInnerOption:l}}},s=async i=>{let r=et?.[i],a=(0,I.resolveAllocateTransaction)(r?.allocate),l=(i,n)=>(console.error(i,n),ed(e.direction,e.index,t,!0),!1);if(!r?.deAllocateData||!a)return l("Deallocation skipped: held baggage has no transactionId",r?.allocate);try{let t=await (0,f.q)($,G,parseInt(W||a.cloudPnr||"6860"),z[e.index],r.deAllocateData.product,e.index,a.transactionId,r.deAllocateData.direction,e.siteId);if(!t?.success)return l("Deallocation failed: ",t)}catch(e){return l("Error Deallocation:",e)}return ed(e.direction,e.index,i,!1),B((0,o.Sz)({index:e.index,direction:e.direction,id:i}
1)),B((0,o.Bg)({index:e.index,direction:M,data:U[e.index],product:{direction:M,productType:n,allocated:!1,allocateLoading:!1,price:0,currency:"",id:"",chosen:!1,title:""}})),!0};for(let e of(0,I.findHeldBaggageIds)(et))if(!await s(e))return void C(!1);if(0!==i){let r=Y?.fields?.find((e,i)=>i===t);r={...r,counter:i,id:t};try{let i=!1;K&&1===K.length&&Y?.cityCodes?.departureCityCode===H.getAirportCodes().outgoing.arrAirportsCodes[0]&&(i=!0);let a=await (0,h.H)($,G,W?parseInt(W):parseInt("6860"),z[e.index],d.productOptions[e.direction].clientProductInnerOption[t],e.index,i?1:e.direction,e.siteId);if(a&&a.success){B((0,o.Uh)({index:e.index,direction:e.direction,product:{cityCodes:Y?.cityCodes,fields:r},allocate:a,deAllocateData:{product:d.productOptions[e.direction].clientProductInnerOption[t],direction:i?1:e.direction,passengerIndex:e.index}}));let l=(e=>{if(e.iconUrl.includes("23"))if("he"===D&&e.name.includes("ארבע")||"he"!==D&&e.name.includes("4 Luggage"))return"23 "+j("kg")+" x 4";else if("he"===D&&(e.name.includes("שלוש")||e.name.includes("סהכ 3"))||"he"!==D&&(e.name.includes("3 Luggage")||e.name.includes("total 3")))return"23 "+j("kg")+" x 3";else if("he"===D&&(e.name.includes("שתי")||e.name.includes("שניה"))||"he"!==D&&e.name.includes("2 Luggage"))return"23 "+j("kg")+" x 2";else if("he"===D&&e.name.includes("אחת")||"he"!==D&&0===e.name.indexOf("Luggage up to 23KG"))return"23 "+j("kg")+" x 1";else return"23";if(e.iconUrl.includes("30"))if("he"===D&&e.name.includes("חריגה")||"he"!==D&&e.name.includes("Overweight"))return"30 "+j("kg")+" x 1";else return"30";if(!e.iconUrl.includes("32"))return e.name;if("he"===D&&e.name.includes("ארבע")||"he"!==D&&e.name.includes("4 Luggage"))return"32 "+j("kg")+" x 4";if("he"===D&&(e.name.includes("שלוש")||e.name.includes("סהכ 3"))||"he"!==D&&(e.name.includes("3 Luggage")||e.name.includes("total 3")))return"32 "+j("kg")+" x 3";else if("he"===D&&(e.name.includes("שתי")||e.name.includes("שניה"))||"he"!==D&&e.name.includes("2 Luggage"))return"32 "+j("kg")+" x 2";else if("he"===D&&e.name.includes("אחת")||"he"!==D&&0===e.name.indexOf("Luggage up to 32KG"))return"32 "+j("kg")+" x 1";else return"32"})(r);
1B((0,o.Bg)({index:e.index,direction:M,data:U[e.index],product:{direction:M,productType:n,allocated:!0,allocateLoading:!1,price:d.productOptions[e.direction].clientProductInnerOption[t].price,currency:d.productOptions[e.direction].clientProductInnerOption[t].currency,id:d.productOptions[e.direction].clientProductInnerOption[t].id[0],chosen:!0,title:l}}));let s=(e=>{for(let t=e+1;t<z.length;t++)if("INFANT"!==z[t].passengerType)return t;return null})(e.index);null!==s?e.setActivePassenger(s):e.setActivePassenger(0),ed(e.direction,e.index,t,!1)}else{console.error("Allocation failed: ",a),ed(e.direction,e.index,t,!0),C(!1);return}}catch(i){console.error("Error Allocation:",i),ed(e.direction,e.index,t,!0),C(!1);return}}C(!1)}},eo=(0,r.useRef)(null),ec=(0,r.useCallback)(()=>{if(!eo.current)return;let e=eo.current.querySelectorAll(".order-process__baggage-card-title"),t=eo.current.querySelectorAll(".baggage-select-items__top");if(e.length<=1)return;e.forEach(e=>e.style.minHeight=""),t.forEach(e=>e.style.minHeight="");let i=0;e.forEach(e=>{i=Math.max(i,e.getBoundingClientRect().height)}),i>0&&e.forEach(e=>e.style.minHeight=`${i}px`);let n=0;t.forEach(e=>{n=Math.max(n,e.getBoundingClientRect().height)}),n>0&&t.forEach(e=>e.style.minHeight=`${n}px`)},[]);if((0,r.useEffect)(()=>{requestAnimationFrame(ec)},[e.direction,e.index,K,ec]),!Y)return null;let eu=ee?(0,n.jsx)(m.default,{productType:e.productType,direction:e.direction,id:0,index:e.index,counterHandle:()=>{},title:ee.name,price:"",productId:ee.itemId,sale:ee.specialOffer,locations:e.locations,isIncluded:!0,children:(0,n.jsx)(p.default,{title:ee.name,imageUrl:`${ee.iconUrl}`,direction:e.direction,id:0,index:e.index,text:ee.description,itemAmount:ee.itemAmount})},"included-baggage"):null,eg=Y.fields.map((t,i)=>(0,n.jsx)(m.default,{productType:e.productType,direction:e.direction,id:i,index:e.index,counterHandle:es,allocateFailed:ei?.[e.direction]?.[e.index]?.[i]||void 0,title:t.name,price:`${d.un[t.currency]}${(0,P.C7)(t.price)}`,productId:t.itemId,sale:t.specialOffer,locations:e.locations,children:(0,n.jsx)(p.default,{title:t.name,imageUrl:`${t.iconUrl}`,direction:e.direction,id:i,index:e.index,text:t.description,itemAmount:t.itemAmount})},`option${i}`)),ep=eu?[eu,...eg]:eg,em=(0,n.jsx)("div",{className:"baggage-select-section__card-container--carousel",children:(0,n.jsx)(g.default,{data:ep,parameters:{itemsToShow:4,width:300,infinite:!1,itemsToSlide:1},breakpoints:S,disableAutoScrollOnSelect:!0},ea)});return(0,n.jsxs)(n.Fragment,{children:[" ",T&&(0,n.jsx)(x.default,{}),(0,n.jsx)("div",{className:"baggage-select-section",ref:eo,children:ep.length>1?N?(0,n.jsx)("div",{className:"baggage-select-section__card-container",children:ep}):em:(0,n.jsx)("div",{className:"baggage-select-section__card-container",children:ep})})]})}},91965:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>f});var n=i(95155),r=i(42720),a=i.n(r);i(12397);var l=i(43459),d=i(12115),s=i(42894),o=i(43822),c=i(79557),u=i(51838),g=i(62867),p=i(66877);let m={0:{slidesPerView:1,spaceBetween:20},480:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:2,spaceBetween:20},1e3:{slidesPerView:3,spaceBetween:20},1475:{slidesPerView:4,spaceBetween:20},1920:{slidesPerView:4,spaceBetween:20}},f=function(e){let t={dots:!a().isUndefined(e.parameters?.dots)&&e.parameters.dots,speed:a().isUndefined(e.parameters?.speed)?500:e.parameters.speed,infinite:!!a().isUndefined(e.parameters?.infinite)||e.parameters.infinite,itemsToShow:a().isUndefined(e.parameters?.itemsToShow)?void 0:e.parameters.itemsToShow,spaceBetween:a().isUndefined(e.parameters?.spaceBetween)?void 0:e.parameters.spaceBetween,navigation:!!a().isUndefined(e.parameters?.navigation)||e.parameters.navigation,swipe:!!a().isUndefined(e.parameters?.swipe)||e.parameters.swipe,width:a().isUndefined(e.parameters?.width)?330:e.parameters.width,itemsToSlide:a().isUndefined(e.parameters?.itemsToSlide)?4:e.parameters.itemsToSlide,gropedButtons:!a().isUndefined(e.parameters?.gropedButtons)&&e.parameters.gropedButtons,initialSlide:a().isUndefined(e.parameters?.initialSlide)?0:e.parameters.initialSlide,centeredSlides:!a().isUndefined(e.parameters?.centeredSlides)&&e.parameters.centeredSlides},{t:i,i18n:r}=(0,c.useAppTranslation)(),[f,h]=(0,d.useState)(r.dir(r.resolvedLanguage)),x=(0,u.A)();(0,d.useEffect)(()=>{h(r.dir(x))},[x]);let[b,_]=(0,d.useState)(window.innerWidth);(0,d.useEffect)(()=>{let e=()=>_(window.innerWidth);return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let v=((e,t)=>{let i=Object.keys(e).map(Number).sort((e,t)=>
1e-t),n=e[i[0]];for(let r of i)t>=r&&(n=e[r]);return n})(e.breakpoints?e.breakpoints:m,b),w=v?.slidesPerView,P=v?.spaceBetween??t.spaceBetween??20,y=e.data;t.infinite&&!(!e.parameters?.infinite||e.parameters?.itemsToShow===void 0||e.data.length>2*e.parameters.itemsToShow)&&(y=[...e.data,...e.data]);let I=Math.floor(t.initialSlide/t.itemsToSlide),[S,A]=(0,l.A)({loop:t.infinite,align:t.centeredSlides?"center":"start",direction:"rtl"===f?"rtl":"ltr",slidesToScroll:t.itemsToSlide,startIndex:I,watchDrag:t.swipe});(0,d.useEffect)(()=>{A&&A.reInit({direction:"rtl"===f?"rtl":"ltr"})},[A,f]);let{prevBtnDisabled:j,nextBtnDisabled:N,onPrevButtonClick:k,onNextButtonClick:B}=(0,g.usePrevNextButtons)(A),{selectedIndex:T,scrollSnaps:C,onDotButtonClick:O}=(0,p.useDotButton)(A);(0,d.useEffect)(()=>{if(!A)return;let t=A.selectedScrollSnap(),i=i=>{if(e.disableAutoScrollOnSelect)return;let n=i.selectedScrollSnap();n>t?e.nextHandler?.():n<t&&e.prevHandler?.(),t=n};return A.on("select",i),()=>{A.off("select",i)}},[A,e.disableAutoScrollOnSelect,e.nextHandler,e.prevHandler]);let E=(0,d.useMemo)(()=>{let e={flexShrink:0,userSelect:"none",marginInlineEnd:`${P}px`};return"number"==typeof w&&w>0?{...e,flexBasis:`calc((100% - ${(w-1)*P}px) / ${w})`,maxWidth:`calc((100% - ${(w-1)*P}px) / ${w})`}:"auto"===w?{...e,flexBasis:"auto"}:{...e,flexBasis:`${t.width}px`}},[w,P,t.width]),L=t.dots||e.parameters?.pagination,U=()=>(0,n.jsx)(s.default,{direction:f,buttonText:i("nextSlide"),disabled:!t.infinite&&!e.disableAutoScrollOnSelect&&N,onClick:B}),F=()=>(0,n.jsx)(o.default,{direction:f,buttonText:i("previousSlide"),disabled:!t.infinite&&!e.disableAutoScrollOnSelect&&j,onClick:k});return(0,n.jsx)("div",{className:"carousel-wrapper",children:(0,n.jsxs)("div",{className:"embla",children:[(0,n.jsx)("div",{className:"embla__viewport",ref:S,children:(0,n.jsx)("div",{className:"embla__container",children:y.map((e,t)=>(0,n.jsx)("div",{className:"embla__slide",style:E,children:e},`embla-slide-${t}`))})}),t.navigation&&(t.gropedButtons?(0,n.jsxs)("div",{className:"carousel-buttons__group",children:[U(),F()]}):(0,n.jsxs)(n.Fragment,{children:[U(),F()]})),L&&C.length>0&&(0,n.jsx)("div",{className:"embla__dots",children:C.map((e,t)=>(0,n.jsx)(p.DotButton,{onClick:()=>O(t),className:`embla__dot${t===T?" embla__dot--selected":""}`},t))})]})})}},92480:(e,t,i)=>{"use strict";i.d(t,{H:()=>a});var n=i(31190),r=i(9702);let a=async(e,t,i,a,l,d,s,o)=>{let c=function(e){let[t,i,n]=e.split("-");return`${n}/${i}/${t}`}(a.dateOfBirth),u={...l.additionalData??{}};delete u.hebrewDescription;let g={sessionMetadata:t,eventRequest:{sessionMetadata:t,reservationId:i,legacyReservationId:0,orderEventType:r.ai.BEGIN_PAYMENT_PROCESS,paymentType:"string",siteId:o,contactInformation:{firstName:"string",lastName:"string",phoneNumber:"string"},deepLink:e,callbackUrl:"string"},selectedAncillary:{passengerUniqueId:a.paxId,legIndex:s,selectedProduct:{name:l.name,type:l.type,id:l.id,iconUrl:null,additionalData:u,price:l.price,currency:l.currency,remark:null,orderLevel:null,totalFare:null,ltsAdditionalProductType:null,clientProductInnerOption:[]}},firstName:a.name,lastName:a.lastName,birthDate:c,passengerType:"ADULT",passengerInd:d,numOfInfants:0};try{return await n.r.allocateAncillary(g)}catch(e){return console.error("Error allocating seat:",e),{output:null,exception:null,message:"Ancillary allocation failed",success:!1,finalStep:null}}}},93578:(e,t,i)=>{"use strict";i.r(t),i.d(t,{findHeldBaggageIds:()=>a,resolveAllocateTransaction:()=>r});let n=/(\d+)ancillary.*transactionId\s*=\s*([\w-]+)/;function r(e){if(e?.transactionId)return{transactionId:String(e.transactionId)};let t="string"==typeof e?.message?e.message.match(n):null;return t?{cloudPnr:t[1],transactionId:t[2]}:null}function a(e){return Object.keys(e??{}).map(Number).filter(t=>e?.[t]?.allocate?.success)}}}]);

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.