PageSourceSearch

https://www.bankboubyan.com/_next/static/chunks/3218-15d2f31d224d47ab.js

js bankboubyan.com collected 2026-09-24 19:57:40 UTC 347,696 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3218],{323:(e,a,t)=>{"use strict";t.d(a,{_o:()=>i,ey:()=>l});let l=e=>String(e??"").trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9\-_]/g,"").replace(/-+/g,"-").replace(/^-+|-+$/g,""),i=e=>{let a=String(e?.data?.anchor_id??"").trim();if(a)return a;let t=l(String(e?.PluginName??"").trim().replace(/PluginPublisher$/i,"").replace(/NewPlugin$/i,"").replace(/ContainerPlugin$/i,"").replace(/SectionPlugin$/i,"").replace(/Plugin$/i,"")),i=l(e?.uniqueid??e?.block_id??e?.id??"");return i?t?`${t}-${i}`:i:""}},2728:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(12115),r=t(31013),s=t(5772),n=t(27003),c=t(62094),d=t(29162);let o=({childrenData:e,rateData:a,currencyData:t})=>{let{isMobile:o}=(0,n.k)(),{lang:u}=(0,c.useLang)(),[m,h]=(0,i.useState)(7),g=()=>{7===m?h(t?.length):h(7)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.BbynSectionTitle,{title:e?.title,desc:e?.description,className:"flex-col-reverse gap-between-text-1 mb-spacing-7",colorDescription:"tertiary"}),o?(0,l.jsxs)("div",{className:"flex justify-center align-center flex-col w-full ",children:[(0,l.jsx)("div",{className:"border border-border-tertiary rounded-3xl overflow-hidden",children:t?.slice(0,m).map(e=>{let t=a?.find(a=>a&&e.briefDescEng===a.briefEngDesc);return t?(0,l.jsxs)("div",{className:"items-center py-6 odd:bg-surface-tertiary px-6",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,l.jsx)(s.default,{width:40,height:40,src:`/flags/${e.longDescEng.split(" ").join("_")}.png`,alt:"",style:{maxWidth:"100%",height:"auto"}}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(r.default,{variant:"h5",weight:"bold",color:"secondary",children:"en"===u?e.longDescEng:e.longDescArab}),(0,l.jsx)(r.default,{variant:"h6",weight:"light",color:"secondary",children:e.briefDescEng})]})]}),(0,l.jsxs)("div",{className:"flex flex-row justify-between gap-4 w-full",children:[(0,l.jsxs)("div",{className:"w-[139px]",children:[(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"light",children:"en"===u?"Transfer":"التحويل"}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 justify-between",children:[(0,l.jsx)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:"en"===u?"Buy":"الشراء"}),(0,l.jsxs)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:[Number(t?.trsfBuy).toFixed(4)," KWD"]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 justify-between",children:[(0,l.jsx)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:"en"===u?"Sell":"البيع"}),(0,l.jsxs)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:[Number(t?.trsfSell).toFixed(4)," KWD"]})]})]}),(0,l.jsxs)("div",{className:"w-[139px]",children:[(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"light",children:"en"===u?"Cash":"النقد"}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 justify-between",children:[(0,l.jsx)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:"en"===u?"Buy":"الشراء"}),(0,l.jsxs)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:[Number(t?.brate).toFixed(4)," KWD"]})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-2 justify-between",children:[(0,l.jsx)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:"en"===u?"Sell":"البيع"}),(0,l.jsxs)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:[Number(t?.srate).toFixed(4)," KWD"]})]})]})]})]},e.briefDescEng):null})}),(0,l.jsx)("div",{onClick:g,className:"self-center p-4 ",children:(0,l.jsx)(r.default,{variant:"h6",color:"primary",weight:"bold",children:"ar"===u?7===m?"عرض المزيد":"عرض أقل":7===m?"View More":"View Less"})})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"border border-border-tertiary rounded-3xl py-8 overflow-hidden lg:max-w-[1092px] mx-auto",children:[(0,l.jsx)("div",{className:"flex  justify-between px-spacing-6",children:("en"===u?["Currency","Transfer buy (KWD)","Transfer Sell (KWD)","Cash Buy (KWD)","Cash Sell (KWD)"]:["العملة","سعر الشراء للتحويل","سعر البيع للتحويل","سعر الشراء نقدا","سعر البيع نقدا"]).map((e,a)=>(0,l.jsx)("div",{className:`${0===a?"w-[286px]":"w-[170px]"}`,children:(0,l.jsx)(r.default,{align:"center",variant:"h5",weight:"medium",color:"secondary",className:`${0===a?"en"===u?"text-left":"text-right":"en"===u?"text-right":"text-left"}`,children:e})},e))}),t?.slice(0,m).map((e,t)=>{let i=a?.find(a=>a&&e.briefDescEng===a.briefEngDesc);return i?(0,l.jsxs)("div",{className:`flex justify-between items-center my-spacing-5 odd:bg-surface-tertiary odd:my-0 ${7===m&&"last:mb-0"}  px-spacing-6`,children:[(0,l.jsxs)("div",{className:"flex items-center gap-spacing-4 w-[286px]",children:[(0,l.jsx)(s.default,{width:48,height:48,src:`/flags/${e.longDescEng.split(" ").join("_")}.png`,alt:"",style:{maxWidth:"100%",height:"auto"}}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(r.default,{variant:"h5",weight:"bold",color:"secondary",children:"en"===u?e.longDescEng:e.longDescArab}),(0,l.jsx)(r.default,{variant:"h6",weight:"light",color:"secondary",children:e.briefDescEng})]})]}),[i?.trsfBuy,i?.trsfSell,i?.brate,i?.srate].map((e,a)=>(0,l.jsx)("div",{className:`${"en"===u?"text-right":"text-left"}  flex justify-end w-[170px]`,children:(0,l.jsx)(r.default,{align:"center",variant:"h5",weight:"medium",color:"secondary",className:"en"===u?"text-right":"text-left",children:e})},a))]},"en"===u?e.longDescEng:e.longDescArab):null})]}),(0,l.jsx)("div",{onClick:g,className:"flex justify-center p-4 ",children:(0,l.jsx)(r.default,{variant:"h6",color:"primary",weight:"bold",children:"ar"===u?7===m?"عرض المزيد":"عرض أقل":7===m?"View More":"View Less"})})]})]})}},4080:(e,a,t)=>{"use strict";t.d(a,{default:()=>d});
1var l=t(95155),i=t(31013),r=t(29162),s=t(97530),n=t(76565),c=t(62094);let d=({data:e,card:a})=>{let{lang:t}=(0,c.useLang)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(n.A,{noXPadding:!0,children:[(0,l.jsx)(r.BbynSectionTitle,{title:e?.title,desc:e?.description,className:"flex-col-reverse gap-between-text-1 mb-within-components-5 lg:mb-spacing-7",colorDescription:"tertiary",classDescription:"!lg:max-w-[944px]"}),(0,l.jsx)(i.default,{variant:"h6",color:"tertiary",weight:"light",align:"text-center",className:"mb-spacing-4",children:"en"===t?"for more info please download the guide.":"للمزيد من المعلومات، يرجى تحميل الدليل:"}),(0,l.jsx)("div",{className:"lg:flex lg:justify-center grid grid-cols-1",children:(0,l.jsx)(s.A,{card:a,icon:"download"})})]})})}},4516:(e,a,t)=>{"use strict";t.d(a,{B:()=>l});let l=e=>{if(!e)return e;let a=e.split(/(<[^>]+>)/g),t=e=>{let a="٠١٢٣٤٥٦٧٨٩".indexOf(e);if(-1!==a)return String(a);let t="۰۱۲۳۴۵۶۷۸۹".indexOf(e);return -1!==t?String(t):e},l=/(\+?[0-9٠-٩۰-۹]+(?:[.,\u066B\u066C\u060C:\/\-\s][0-9٠-٩۰-۹]+)*)%?/g;return a.map(e=>e.startsWith("<")?e:e.replace(/[0-9\u0660-\u0669\u06F0-\u06F9]/g,t).replace(l,'<span class="keep-latin-digits" lang="en" dir="ltr" translate="no">$1</span>')).join("")}},7518:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(27003),r=t(12115),s=t(29722),n=t(36341),c=t(61792),d=t(25354);let o=({data:e,childrenData:a})=>{var t;let{titlePage:o}=(t=e?.title,(0,r.useEffect)(()=>{t&&(document.title=t)},[t]),{titlePage:t}),{isMobile:u}=(0,i.k)(),m=(0,r.useRef)(null),h=(0,c.W)(m,{once:!0}),g=(0,r.useRef)(null),p=(0,c.W)(g,{once:!0});return(0,l.jsx)("div",{className:"bg-surface-default sm:px-spacing-5 py-spacing-3   md:p-spacing-5 relative z-0",children:(0,l.jsx)("div",{className:"container h-full md:px-0  px-spacing-5 py-sections-padding-1 lg:py-sections-padding-2",children:(0,l.jsxs)("div",{className:" flex flex-col  lg:gap-[108px] gap-[40px]",children:[(0,l.jsx)(d.PY1.div,{ref:m,initial:{opacity:0,y:40},animate:{opacity:+!!h,y:40*!h},transition:{type:"spring",stiffness:300,damping:60,delay:.2},children:(0,l.jsx)(d.PY1.h2,{initial:{opacity:0,y:10,filter:"blur(10px)"},animate:{opacity:+!!h,y:10*!h,filter:"blur(0)"},transition:{type:"spring",stiffness:400,damping:40,delay:.04},id:"title",className:(0,s.A)("text-font-size-h2 text-private-primary text-center font-light"),children:e?.leading_title})}),(0,l.jsx)("div",{className:(0,s.A)("w-full flex justify-center"),children:(0,l.jsx)(d.PY1.div,{ref:m,initial:{opacity:0,y:150},animate:{opacity:+!!h,y:150*!h},transition:{type:"spring",stiffness:38,damping:30,delay:.3},children:(0,l.jsx)(n.default,{type:"image",IsApiFromData:!0,height:u?494:434,width:u?342:1440,alt:"title",src:u?e?.mobileimage:e?.image})})}),(0,l.jsx)("div",{children:(0,l.jsx)(d.PY1.h2,{ref:g,initial:{opacity:0,y:10,filter:"blur(10px)"},animate:{opacity:+!!p,y:10*!p,filter:"blur(0)"},transition:{type:"spring",stiffness:400,damping:40,delay:.04},className:(0,s.A)(" text-font-size-h2   text-private-primary text-center font-light"),children:e?.trailing_title})})]})})})}},7974:(e,a,t)=>{"use strict";t.d(a,{Ae:()=>s,EE:()=>m,a6:()=>n,cu:()=>i,dl:()=>o,qh:()=>c,ts:()=>u,y3:()=>d});let l="FormFieldPluginPublisher",i=e=>{let a=e.field_options||e.options;return"string"==typeof a&&a.length>0?a.split(/\r?\n/).map(e=>{let[a,t]=e.split("|");return{value:a?.trim()||"",label:t?.trim()||a?.trim()||""}}).filter(e=>""!==e.value):Array.isArray(e.options)?e.options.map(e=>"string"==typeof e?{value:e,label:e}:e):[]},r=(e,a)=>{let{data:t}=e,l=String(t?.field_name??"").trim().replace(/[.]+$/g,"").replace(/\s+/g," ")||`field_${a||"single"}_${t?.field_order||1}`,r=!0===t.is_required||1===t.is_required||"true"===t.is_required,s={id:l,name:l,label:t.field_label,placeholder:t.field_placeholder||"",required:r,hint:t.field_hint||"",order:Number(t.field_order)||0,stepId:a};switch(t.field_type){case"rating":return{...s,type:"rating",min:Number(t.start_value)||1,max:Number(t.end_value)||5,minLabel:{en:t.start_label||"Very dissatisfied",ar:t.start_label_ar||"غير راضٍ تماماً"},maxLabel:{en:t.end_label||"Satisfied",ar:t.end_label_ar||"راضٍ تماماً"}};case"phone":return{...s,type:"phone",maxLength:8};case"civilid":return{...s,type:"civilid",maxLength:12};case"textarea":return{...s,type:"textarea",rows:4,maxLength:500};case"datepicker":return{...s,type:"datepicker",dateFormat:"dd/MM/yyyy"};case"select":case"radio":case"checkbox":return{...s,type:t.field_type,options:i(t),fieldOptions:t.field_options};case"number":return{...s,type:"number",min:0};case"email":return{...s,type:"email"};default:return{...s,type:"text"}}},s=e=>{let a,{data:t,childrenData:i}=e,s=`form-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,n=!!t?.is_multi_step,c=[];return n?(a=(i?.filter(e=>"FormStepPluginPublisher"===e.PluginName)||[]).map((e,a)=>{let t=e.data,i=`step-${a+1}`,s=[...e.childrenData?.filter(e=>e.PluginName===l)?.map(e=>r(e,i))||[]].sort((e,a)=>(e.order||0)-(a.order||0));return{id:i,title:t.step_title||`Step ${a+1}`,description:t.step_description||"",order:Number(t.step_order)||a+1,fields:s}}).sort((e,a)=>(e.order||0)-(a.order||0)),c=a?.flatMap(e=>e.fields)||[]):c=(i?.filter(e=>e.PluginName===l)||[]).map(e=>r(e)).sort((e,a)=>(e.order||0)-(a.order||0)),{id:s,title:t?.form_title||"",name:t?.form_name||"",description:t?.form_description||"",form_type:t?.form_type||"",access_group:t?.access_group||[],fields:c,steps:a,isMultiStep:n,submitButtonText:t?.submit_button_text||"Submit",nextStepButtonText:t?.next_step_button_text||"Next",previousStepButtonText:t?.previous_step_button_text||"Previous",successMessage:t?.success_message||t?.message||"Success!",errorMessage:t?.error_message||t?.message||"Error"}},n=(e,a)=>e.replace(/\D/g,"").slice(0,a),c=e=>e.trim(),d=e=>{if("number"==typeof e)return e;if(!e||""===e)return;let a=parseFloat(e);return isNaN(a)?void 0:a},o=(e,a)=>e.includes(a)?e.filter(e=>e!==a):[...e,a],u=e=>{if(!e||"string"!=typeof e)return 12;let a=e.match(/[0#9]/g);return a?.length||12},m=(e,a)=>e.replace(/\D/g,"").slice(0,a)},9029:(e,a,t)=>{"use strict";t.d(a,{default:()=>g});
1var l=t(95155),i=t(27003),r=t(12115),s=t(61792),n=t(25354),c=t(31013),d=t(29722),o=t(62094),u=t(59610),m=t(98500),h=t.n(m);let g=({image:e,title:a,description:t,link:m,title_color:g="secondary",description_color:p="secondary",card_height:x=480,title_variant:f="h3",description_variant:v="h5"})=>{let{isMobile:b}=(0,i.k)(),{lang:j}=(0,o.useLang)(),w="https://www.bankboubyan.com"+e,y=(0,r.useRef)(null);(0,s.W)(y,{once:!0});let N=(0,u.k)(),C=b?{backgroundImage:`url(${w})`,backgroundSize:"cover",backgroundPosition:"center"}:{};return(0,l.jsx)(n.PY1.div,{className:"overflow-hidden lg:rounded-container-large first:rounded-tr-container-small last:rounded-bl-container-small last:rounded-br-container-small first:rounded-tl-container-small cursor-none",...N,variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0}},transition:{type:"spring",stiffness:300,damping:60},whileHover:{scale:1.05},children:(0,l.jsx)(h(),{href:m||"",className:"cursor-none",prefetch:!1,children:(0,l.jsxs)("div",{className:"relative bg-card-background-default mb-[1px] lg:mb-0 lg:py-spacing-8 lg:px-spacing-7 overflow-hidden",style:{height:b?void 0:"number"==typeof x?`${x}px`:x},children:[!b&&(0,l.jsx)("div",{className:(0,d.A)("absolute bottom-0 w-full h-full z-0","en"===j?"right-0":"left-0"),style:{backgroundImage:`url(${w})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",maxWidth:"550px",backgroundPosition:"en"===j?"bottom right":"bottom left"}}),(0,l.jsxs)("div",{className:"relative z-10 lg:block flex items-center justify-between gap-4 px-spacing-3 py-spacing-5 lg:p-0",children:[(0,l.jsx)("div",{className:"w-[64px] h-[64px] lg:hidden min-w-[64px]  min-h-[64px]",style:C}),(0,l.jsxs)("div",{className:"max-w-[230px] w-[230px] flex-col gap-1 flex  lg:block",children:[(0,l.jsx)(c.default,{variant:f,color:g,weight:"light",className:"lg:mb-spacing-2 capitalize mb-spacing-1",children:a}),(0,l.jsx)(c.default,{variant:v,color:p,children:t})]})]})]})})})}},9237:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l={src:"/_next/static/media/twitter.c36a9256.svg",height:32,width:32,blurWidth:0,blurHeight:0}},9791:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var l=t(95155),i=t(12115),r=t(31013),s=t(61792),n=t(12185),c=t(80642),d=t(21544);let o=({childrenData:e})=>{let[a,t]=(0,i.useState)(null),o=(0,i.useRef)(null);(0,s.W)(o,{once:!0});let u=(0,i.useRef)(null);return(0,s.W)(u,{once:!0}),(0,l.jsx)(l.Fragment,{children:e?.map((e,i)=>(0,l.jsx)("div",{className:"block justify-between py-within-components-5 border-b border-border-tertiary last:border-b-0 relative",onClick:()=>{t(i===a?null:i)},children:(0,l.jsx)(n.P.div,{ref:o,initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},transition:{type:"spring",stiffness:300,damping:60,staggerChildren:.1},className:"w-full relative",children:(0,l.jsxs)("div",{className:"flex justify-between gap-[66px] items-center",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(r.default,{variant:"h5",weight:"medium",color:"secondary",children:e.data.title}),(0,l.jsx)(c.N,{mode:"wait",children:a===i&&(0,l.jsx)(n.P.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{type:"spring",stiffness:500,damping:60,delay:.1},children:(0,l.jsx)(r.default,{variant:"h6",color:"secondary",className:"mt-between-text-2 revert-default",children:(0,d.Q)(e.data.description)})},`desc-${i}`)})]}),(0,l.jsx)(n.P.button,{className:"focus:outline-none relative h-full",initial:{rotate:0},animate:{rotate:180*(a===i)},type:"button","aria-label":"button",transition:{type:"spring",stiffness:500,damping:60,delay:.1},children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29289 11.2929C7.68342 10.9024 8.31658 10.9024 8.70711 11.2929L16 18.5858L23.2929 11.2929C23.6834 10.9024 24.3166 10.9024 24.7071 11.2929C25.0976 11.6834 25.0976 12.3166 24.7071 12.7071L16.7071 20.7071C16.3166 21.0976 15.6834 21.0976 15.2929 20.7071L7.29289 12.7071C6.90237 12.3166 6.90237 11.6834 7.29289 11.2929Z",fill:"#323232"})})})]})})},i))})};var u=t(75751),m=t(91256),h=t(80409);let g=({childrenData:e,haveHeadings:a=!0})=>{let t=(0,i.useRef)(null),[r,s]=(0,i.useState)(!1),n=()=>{let e=t.current;e&&s(e.scrollHeight-e.clientHeight>30&&e.scrollTop+e.clientHeight<e.scrollHeight-1)};return(0,i.useEffect)(()=>{let e=t.current;if(e)return n(),e.addEventListener("scroll",n),window.addEventListener("resize",n),()=>{e.removeEventListener("scroll",n),window.removeEventListener("resize",n)}},[e]),(0,l.jsxs)("div",{className:"relative lg:max-w-[746px] lg:mx-auto",children:[(0,l.jsx)("div",{ref:t,className:"max-h-[510px] overflow-x-hidden overflow-y-auto",children:(0,l.jsx)(o,{childrenData:e})}),r&&(0,l.jsx)("div",{className:"absolute bottom-0 w-full h-[164px] pointer-events-none",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.00) 13.5%, #FFF 99.63%)"}})]})},p=({data:e,childrenData:a,isH1:t=!1})=>{let i=Array.isArray(a)&&a.length>0&&a.every(e=>"FAQItemGroupPlugin"===e.PluginName);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.default,{title:e?.title,description:e?.description,title_color:"secondary",description_color:"tertiary",className:(0,m.cn)("lg:mb-10 lg:mx-auto",i&&"mb-4","mb-6"),isH1:t}),i?(0,l.jsx)(h.default,{children:a?.map((e,a)=>(0,l.jsx)("div",{"data-tab":e?.data?.tab_title||"General",children:(0,l.jsx)("div",{className:"lg:max-w-[764px] lg:mx-auto ",children:(0,l.jsx)(g,{childrenData:e.childrenData||[],haveHeadings:!1})})},"tab-"+a))}):(0,l.jsx)("div",{className:"lg:max-w-[764px] lg:mx-auto ",children:(0,l.jsx)(g,{childrenData:a})})]})}},9935:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(12115),r=t(98500),s=t.n(r),n=t(27003),c=t(31013),d=t(36341);let o=({title:e,icon:a,link:t,childrenData:r=[]})=>{let{isMobile:o}=(0,n.k)(),u=(0,i.useMemo)(()=>{let e;return(e=r?.find(e=>e?.PluginName==="MangerImage")?.data)&&"object"==typeof e?["image","image2","image3","image4"].map(a=>e?.[a]).filter(e=>"string"==typeof e&&e.trim().length>0):[]},[r]),m=(0,i.useMemo)(()=>u.slice(0,4),[u]),h=Math.max(u.length-m.length,0),g=(0,l.jsxs)("div",{className:"flex h-full flex-col gap-spacing-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"flex h-[48px] w-[48px] items-center justify-center rounded-full bg-surface-tertiary lg:h-[64px] lg:w-[64px]",children:(0,l.jsx)(d.default,{type:"image",src:a,alt:`${e||"avatar-card"}-icon`,width:o?24:32,height:o?24:32,style:{maxWidth:"none"},IsApiFromData:!0})})}),(0,l.jsx)("div",{className:"flex flex-grow items-center",children:(0,l.jsx)(c.default,{variant:"h5",color:"secondary",weight:"medium",children:e})}),(0,l.jsxs)("div",{className:"flex items-center gap-spacing-2 lg:gap-spacing-4",children:[(0,l.jsx)("div",{className:"relative flex w-auto items-center",children:m.map((e,a)=>(0,l.jsx)("div",{className:"relative",style:{...a>0?{marginInlineStart:-16}:{},zIndex:1e3+a},title:`member ${a+1}`,"aria-label":`member ${a+1}`,children:(0,l.jsx)(d.default,{type:"image",src:e,alt:`member ${a+1}`,width:o?40:48,height:o?40:48,IsApiFromData:!0,style:{maxWidth:"none"},classname:"rounded-full",mediaClassName:"rounded-full object-cover"})},`${e}-${a}`))}),h>0&&(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsxs)(c.default,{variant:"h6",color:"tertiary",weight:"medium",as:"span",children:["+",h]})})]})]});return t?(0,l.jsx)(s(),{href:t,className:"cursor-dark h-full overflow-hidden rounded-container-small bg-surface-default p-spacing-5 lg:w-[353px] lg:rounded-container-large lg:p-spacing-7",prefetch:!1,children:g}):(0,l.jsx)("div",{className:"h-full overflow-hidden rounded-container-small bg-surface-default p-spacing-5 lg:w-[353px] lg:rounded-container-large lg:p-spacing-7",children:g})}},10623:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});
1var l=t(95155),i=t(27003),r=t(12115),s=t(62094),n=t(31013),c=t(36341),d=t(16425),o=t(19658),u=t(75751),m=t(88556),h=t(73321),g=t(91256);let p=({title:e,pretitle:a,description:t,logo:p,title_color:x="secondary",pretitle_color:f="placeholder",description_color:v="tertiary",button_color:b,is_label_visible:j,is_carousel:w,cards:y,is_awards_page:N,initialVisibleCount:C=2,label:k,link:A})=>{let{lang:D}=(0,s.useLang)(),{isMobile:M}=(0,i.k)(),[_,$]=(0,r.useState)(!1),P=(0,h.useRouter)(),L=(0,h.usePathname)(),S=!0===w||"true"===w,E=!0===j||"true"===j,R=L&&L.includes("/turing")?L.replace("/turing","/awards"):"/awards",I=A||R,F=_?y:y?.slice(0,C);return(0,l.jsxs)("div",{className:(0,g.cn)("flex flex-col justify-center gap-[48px] w-full lg:gap-[64px]",S&&"lg:gap-[72px]"),children:[(0,l.jsxs)("div",{className:(0,g.cn)("lg:flex-row flex flex-col justify-start lg:items-center gap-spacing-6"),children:[p&&(0,l.jsx)("div",{className:" justify-center lg:self-start self-center flex",children:(0,l.jsx)(c.default,{alt:e,type:"image",src:p,height:140,IsApiFromData:!0,width:140,classname:"lg:w-[140px]"})}),p&&(0,l.jsxs)("div",{className:`${S?"self-center":"self-start"} gap-spacing-4 flex flex-col`,children:[(0,l.jsx)(n.default,{variant:"h2",weight:"light",color:x,children:e}),(0,l.jsx)(n.default,{variant:"h5",weight:"light",color:v,children:t})]}),!p&&(0,l.jsx)("div",{className:"self-center w-full px-6",children:(0,l.jsx)(u.default,{is_centered_mobile:!0,title:e,description:"",pretitle:a,title_color:x,pretitle_color:f,alignment:"center"})})]}),(0,l.jsx)("div",{className:(0,g.cn)("flex flex-wrap justify-center lg:gap-sections-padding-2 gap-[48px]"),children:S?(0,l.jsx)(m.A,{isReverse:!0,numberOfSlides:3,classname:"gap-spacing-9",children:y?.map((e,a)=>(0,l.jsx)(d.default,{...e.data},a))}):(M?F:y)?.map((e,a)=>(0,l.jsx)(d.default,{...e.data},a))}),N&&E&&M&&y?.length>C&&!_&&(0,l.jsx)("div",{className:(0,g.cn)("self-center"),children:(0,l.jsx)(o.$,{onClick:()=>$(!0),variant:"secondary",color:b,children:"ar"===D?"تحميل المزيد":"Load More"})}),E&&!N&&(0,l.jsx)("div",{className:(0,g.cn)("self-center"),children:(0,l.jsx)(o.$,{onClick:()=>{P.push(I)},variant:"primary",color:b,"aria-label":k||("ar"===D?"شاهد جميع الجوائز":"See All Awards"),children:k})})]})}},12868:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l={src:"/_next/static/media/linkedin.77b0e6fb.svg",height:32,width:32,blurWidth:0,blurHeight:0}},13317:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>c});
1var l=t(95155),i=t(12115),r=t(31013),s=t(91256);let n=({isOpen:e})=>(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:(0,s.cn)("h-8 w-8 shrink-0 text-label-secondary","transition-transform duration-300 ease-in-out",e&&"rotate-180"),children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29289 11.2929C7.68342 10.9024 8.31658 10.9024 8.70711 11.2929L16 18.5858L23.2929 11.2929C23.6834 10.9024 24.3166 10.9024 24.7071 11.2929C25.0976 11.6834 25.0976 12.3166 24.7071 12.7071L16.7071 20.7071C16.3166 21.0976 15.6834 21.0976 15.2929 20.7071L7.29289 12.7071C6.90237 12.3166 6.90237 11.6834 7.29289 11.2929Z",fill:"currentColor"})}),c=({title:e,children:a,desktopHeaderEnd:t,compactHeaderEnd:c,className:d,contentClassName:o,defaultOpen:u=!0,showCompactDivider:m=!0,noCompactHeaderBottomPadding:h=!1,fillHeight:g=!1})=>{let[p,x]=(0,i.useState)(u),f=(0,i.useId)(),v=`collapsible-table-${f}`,b=m&&!p;return(0,l.jsxs)("section",{className:(0,s.cn)("w-full min-w-0",g&&"lg:flex lg:h-full lg:flex-col",d),children:[(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"bold",as:"h5",className:(0,s.cn)("border-b lg:hidden","transition-colors duration-300 ease-in-out",b?"border-border-tertiary":"border-transparent"),children:(0,l.jsxs)("button",{type:"button","aria-expanded":p,"aria-controls":v,onClick:()=>{x(e=>!e)},className:(0,s.cn)("flex w-full items-center justify-between","gap-[66px] text-start",h?"pt-within-components-5 pb-0":"py-within-components-5",p?"pt-within-components-5 pb-0":"py-within-components-5"),children:[(0,l.jsx)("span",{className:"min-w-0 flex-1",children:e}),(0,l.jsx)(n,{isOpen:p})]})}),(0,l.jsxs)("div",{className:"mb-spacing-3 hidden items-center justify-between gap-spacing-3 lg:flex",children:[(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"bold",as:"h5",className:"text-start",children:e}),t]}),(0,l.jsx)("div",{id:v,className:(0,s.cn)("grid min-h-0 transition-[grid-template-rows,opacity]","duration-300 ease-in-out",p?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0","lg:grid-rows-[1fr] lg:opacity-100",g&&"lg:min-h-0 lg:flex-1"),children:(0,l.jsxs)("div",{className:(0,s.cn)("min-h-0 overflow-hidden","lg:overflow-visible",g&&"lg:h-full",p&&"mt-[18px] pb-[32px]",o),children:[c&&(0,l.jsx)("div",{className:"mb-spacing-3 flex items-center justify-end lg:hidden",children:c}),a]})})]})}},14932:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});
1var l=t(95155),i=t(12115),r=t(91256);let s=[0,20,40,60,80,100],n=(e,a,t)=>Math.min(Math.max(e,a),t),c=({value:e,min:a=0,max:t,step:c=1,disabled:d=!1,direction:o="ltr",tickPositions:u=s,startLabel:m,endLabel:h,floatingLabel:g,bottomFloatingLabel:p,ariaLabel:x="Progress value",className:f,trackClassName:v,activeTrackClassName:b,tickClassName:j,thumbClassName:w,labelClassName:y,floatingLabelClassName:N,bottomFloatingLabelClassName:C,onChange:k})=>{let A=(0,i.useRef)(null),[D,M]=(0,i.useState)(!1),_="rtl"===o,$=Number.isFinite(a)?a:0,P=Number.isFinite(t)&&t>$?t:$+1,L=n(e,$,P),S=(0,i.useMemo)(()=>(L-$)/(P-$)*100,[L,$,P]),E=(0,i.useMemo)(()=>_?100-S:S,[_,S]),R=(0,i.useMemo)(()=>_?{right:0,width:`${S}%`}:{left:0,width:`${S}%`},[_,S]),I=(0,i.useMemo)(()=>({left:`${E}%`,touchAction:"none"}),[E]),F=(0,i.useMemo)(()=>({left:`${E}%`}),[E]),B=D?"":"transition-[left,width] duration-200 ease-out",T=(0,i.useCallback)(e=>{var a;let t;if(!A.current||d)return;let l=A.current.getBoundingClientRect(),i=n(e-l.left,0,l.width),r=l.width>0?i/l.width:0,s=(a=$+(_?1-r:r)*(P-$),n(Math.round((a-$)/(t=c>0?c:1))*t+$,$,P));k?.(s)},[d,_,k,$,P,c]);return(0,i.useEffect)(()=>{if(!D)return;let e=e=>{T(e.clientX)},a=()=>{M(!1)};return window.addEventListener("pointermove",e),window.addEventListener("pointerup",a),window.addEventListener("pointercancel",a),()=>{window.removeEventListener("pointermove",e),window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a)}},[D,T]),(0,l.jsxs)("div",{ref:A,className:(0,r.cn)("relative h-[34px] select-none",d?"cursor-not-allowed opacity-50":"cursor-pointer",f),onPointerDown:e=>{d||(M(!0),T(e.clientX))},style:{touchAction:"none"},children:[(0,l.jsx)("div",{className:(0,r.cn)("absolute left-0 right-0 top-1/2 h-[2px] -translate-y-1/2 bg-[#7A7A7A]",v)}),(0,l.jsx)("div",{className:(0,r.cn)("absolute top-1/2 h-[3px] -translate-y-1/2 bg-neutral-auxiliary-green",B,b),style:R}),u.map(e=>(0,l.jsx)("span",{className:(0,r.cn)("absolute top-1/2 h-[22px] w-[2px] -translate-y-1/2 bg-[#7A7A7A]",j),style:{left:`${e}%`}},e)),(0,l.jsx)("span",{className:(0,r.cn)("absolute top-1/2 h-[22px] w-[22px] -translate-x-1/2 -translate-y-1/2 rounded-full border border-border-tertiary bg-surface-default shadow-[0_4px_12px_rgba(0,0,0,0.25)]",B,w),style:I,role:"slider","aria-valuemin":$,"aria-valuemax":P,"aria-valuenow":L,"aria-label":x,"aria-disabled":d}),m&&(0,l.jsx)("span",{className:(0,r.cn)("absolute bottom-[-18px] left-0 text-caption font-semibold text-neutral-white100",y),children:m}),h&&(0,l.jsx)("span",{className:(0,r.cn)("absolute bottom-[-18px] right-0 text-caption font-semibold text-neutral-white100",y),children:h}),g&&(0,l.jsx)("span",{className:(0,r.cn)("absolute top-[-22px] -translate-x-1/2 whitespace-nowrap text-[clamp(8px,0.7vw,10px)] leading-[18px] text-neutral-white100",B,N),style:F,children:g}),p&&(0,l.jsx)("span",{className:(0,r.cn)("absolute top-[38px] -translate-x-1/2 whitespace-nowrap text-center text-[16px] leading-[24px] text-label-tertiary",B,C),style:F,children:p})]})}},15656:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>o});var l=t(95155),i=t(12115),r=t(61792),s=t(12185),n=t(62094),c=t(31013),d=t(15217);let o=({className:e})=>{let{lang:a}=(0,n.useLang)(),[t,o]=(0,i.useState)([]),[u,m]=(0,i.useState)(0),[h,g]=(0,i.useState)({plan:"",amount:"",tenure:""});(0,i.useEffect)(()=>{(async()=>{try{let e=await fetch(`https://www.bankboubyan.com/${a}/api/saving_calculator/`),t=await e.json();if(200===t.status_code&&t.data&&(o(t.data),t.data.length>0)){let e=t.data[0];g(t=>({...t,plan:"ar"===a?e.plan_type_ar:e.plan_type_en}))}}catch(e){console.error("Failed to fetch saving plans",e)}})()},[a]);let p=t[u]||null,x=p?.from_amount||3e3,f=p?.to_amount||25e4,v=p?.from_tenure||0,b=p?.to_tenure||0,j="ar"===a?`بين ${f} - ${x} د.ك`:`Between KD ${x} - ${f}`,[w,y]=(0,i.useState)(null);(0,i.useEffect)(()=>{if(!w)return;let e=setTimeout(()=>y(null),3e3);return()=>clearTimeout(e)},[w]);let[N,C]=(0,i.useState)(null),k=(0,i.useRef)(null),A=(0,r.W)(k,{once:!0}),D=[],M=[];if(v>0&&b>0)for(let e=v;e<=b;e++)D.push(`${e} month${e>1?"s":""}`),M.push(`${e} شهر`);let _=t.map(e=>e.plan_type_en),$=t.map(e=>e.plan_type_ar),P="ar"===a?$:_;(0,i.useEffect)(()=>{let e=parseFloat(h.amount),a=parseInt(h.tenure.match(/\d+/)?.[0]||"0",10),t=!isNaN(e)&&e>=x&&e<=f,l=!isNaN(a)&&a>=v&&a<=b;t&&l?C(Math.round(e/a)):C(null)},[h.amount,h.tenure,x,f,v,b]);let L=e=>{let{name:t,value:l}=e.target;if("amount"===t){let e=parseFloat(l.replace(/,/g,""));!isNaN(e)&&(e<x||e>f)&&y("ar"===a?"مبلغ غير صالح":"Invalid amount"),g(e=>({...e,amount:l}))}else if("tenure"===t){let e=parseInt(l,10);g(t=>({...t,tenure:"en"===a?D[e]:M[e]||""}))}else if("plan"===t){let e=parseInt(l,10);m(e),g(t=>({...t,plan:"en"===a?_[e]:$[e]||"",tenure:""}))}};return(0,l.jsxs)(s.P.div,{ref:k,initial:{opacity:0,y:50}
1,animate:{opacity:+!!A,y:50*!A},transition:{type:"spring"},className:`mb-spacing-5 ${e||""}`,children:[(0,l.jsx)(c.default,{color:"tertiary",className:"mb-spacing-3",children:"ar"===a?"احسب اقساط التوفير الشهرية الخاصة بك":"Calculate your monthly saving installment"}),(0,l.jsx)("div",{className:"bg-surface-default rounded-container-small lg:rounded-container-large p-spacing-4 lg:p-spacing-7",children:(0,l.jsxs)("div",{className:"flex justify-between items-center lg:flex-nowrap flex-wrap lg:gap-spacing-7",children:[(0,l.jsx)("div",{className:"form-wrapper lg:max-w-[735px] w-full",children:(0,l.jsxs)("form",{className:"lg:flex block lg:flex-row lg:flex-nowrap flex-wrap w-full lg:justify-between h-full lg:gap-spacing-7",onSubmit:e=>{e.preventDefault()},children:[(0,l.jsx)("div",{className:"input-wrapper lg:mb-0 w-full mb-spacing-5 lg:mb-0",children:(0,l.jsx)(d.A,{label:"ar"===a?"نوع الخطة":"Plan Type",name:"plan",type:"select",value:h.plan,onChange:L,width:"w-full",required:!0,options:P})}),(0,l.jsx)("div",{className:"input-wrapper lg:mb-0 w-full mb-spacing-5 lg:mb-0",children:(0,l.jsx)(d.A,{label:"ar"===a?"مبلغ الهدف":"Saving goal amount",width:"w-full",haveInnerInput:!0,innerInputText:"ar"===a?"د.ك":"KD",name:"amount",type:"number",value:h.amount,onChange:L,placeholder:"25,000",hint:null===w?j:void 0,error:null!==w?w:void 0,required:!0})}),(0,l.jsx)("div",{className:"input-wrapper lg:mb-0 w-full",children:(0,l.jsx)(d.A,{label:"ar"===a?"حدد المدة":"Select tenure",name:"tenure",type:"select",value:h.tenure,onChange:L,width:"w-full",required:!0,options:"en"===a?D:M})})]})}),(0,l.jsxs)("div",{className:"lg:mt-0 mt-spacing-6 lg:max-w-[300px] cursor-light py-spacing-5 px-spacing-6 w-full text-label-default   bg-surface-secondary lg:rounded-container-small roun
1ded-[8px]",children:[(0,l.jsx)(c.default,{variant:"h5",color:"default",className:"mb-2",weight:"light",children:"ar"===a?"قسط التوفير الشهري":"Monthly savings installment "}),(0,l.jsx)(c.default,{variant:"h3",color:"default",weight:"bold",children:null!==N?`${N} ${"en"===a?"KD/month":"د.ك/بالشهر"}`:"-"})]})]})})]})}},16067:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(39092),r=t.n(i),s=t(12115),n=t(31013),c=t(21544),d=t(62094);function o(...e){return e.filter(Boolean).join(" ")}let u=(0,s.memo)(function({title:e,description:a,live_date:t,className:i,titleClassName:u,descriptionClassName:m,centerTitleOnLg:h=!1,fullWidth:g=!1,gap:p="5"}){let{lang:x}=(0,d.useLang)(),f=o("flex flex-col",`gap-spacing-${p}`,g?void 0:"max-w-[747px] mx-auto",i),v=o("text-balance",h&&"lg:text-center",u),b=(0,s.useMemo)(()=>(0,c.Q)(a||""),[a]);return e||a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"jsx-5ef6e92205588d44 "+(f||""),children:[e&&(0,l.jsx)(n.default,{variant:"h3",weight:"light",color:"secondary",className:v,children:e}),a&&(0,l.jsx)(n.default,{variant:"h5",weight:"light",color:"tertiary",as:"div",className:o("editor--overide",m),children:(0,l.jsx)("div",{dir:"ar"===x?"rtl":"ltr",className:"jsx-5ef6e92205588d44",children:b})})]}),(0,l.jsx)(r(),{id:"5ef6e92205588d44",children:'[dir="rtl"].jsx-5ef6e92205588d44 .editor--overide.jsx-5ef6e92205588d44 ul{padding-inline-start:0;padding-inline-end:1.25rem;list-style:disc outside;text-align:start}[dir="rtl"].jsx-5ef6e92205588d44 .editor--overide.jsx-5ef6e92205588d44 ol{padding-inline-start:0;padding-inline-end:1.25rem;list-style:decimal outside;text-align:start}'})]}):null})},16425:(e,a,t)=>{"use strict";t.d(a,{default:()=>d});var l=t(95155);t(12115);let i={src:"/_next/static/media/wing.37544076.svg",height:112,width:42,blurWidth:0,blurHeight:0},r={src:"/_next/static/media/giftleft.86dd3a15.svg",height:112,width:42,blurWidth:0,blurHeight:0};var s=t(36341),n=t(31013),c=t(62094);let d=({title:e,pretitle:a,post_title:t,pretitle_color:d="tertiary",post_title_color:o="tertiary",title_color:u="secondary",...m})=>{let{lang:h}=(0,c.useLang)();return(0,l.jsx)("div",{className:"bg-surface-default w-[320px] min-h-[112px] relative",...m,children:(0,l.jsxs)("div",{className:"flex justify-between items-center",children:[(0,l.jsx)(s.default,{type:"image",src:"ar"===h?i:r,alt:"wing",width:42,he
1ight:112,IsApiFromData:!1}),(0,l.jsxs)("div",{className:"w-[204px] text-center flex flex-col justify-center gap-spacing-1",children:[(0,l.jsx)(n.default,{variant:"span",color:d,className:"text-ellipsis !text-font-size-h8",align:"center",children:a}),(0,l.jsx)(n.default,{variant:"h5",weight:"medium",color:u,className:"text-ellipsis",align:"text-center",children:e}),(0,l.jsx)(n.default,{variant:"span",color:o,className:"text-ellipsis !text-font-size-h8",align:"center",children:t})]}),(0,l.jsx)(s.default,{type:"image",src:"ar"===h?r:i,alt:"wing",width:42,height:112,IsApiFromData:!1})]})})}},16684:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>h});var l=t(95155),i=t(27003),r=t(36341),s=t(12115),n=t(61792),c=t(25354),d=t(31013),o=t(21544),u=t(91256),m=t(4516);let h=({icon:e,title:a,description:t,noBorderBottomRadius:h,noBorderTopRadius:g,asDesktop:p,card_color:x,image_alt_text:f,image_defaut_alt_text:v,...b})=>{let{isMobile:j}=(0,i.k)(),w=(0,s.useRef)(null);(0,n.W)(w,{once:!0});let y=`bg-surface-${x}`;return(0,l.jsxs)(c.PY1.div,{...b,variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.5}}},transition:{type:"spring",stiffness:300,damping:60,flexGrow:{duration:.5,ease:"easeInOut"}},ref:w,className:(0,u.cn)(y,`${!p?"flex lg:block":"block"}  p-spacing-5 overflow-hidden lg:border border-x border-b border-border-tertiary  lg:rou
1nded-container-large ${!g&&"first:rounded-t-container-small first:border-t"} ${!h&&"last:rounded-b-container-small"} lg:py-spacing-6`),children:[e&&(0,l.jsx)("div",{className:"relative  shrink-0",children:(0,l.jsx)(r.default,{type:"image",src:e,alt:f||v,width:j?32:40,height:j?32:40,IsApiFromData:!0,mediaClassName:" object-cover"})}),(0,l.jsxs)("div",{className:`${!p?"ms-spacing-4":"mt-spacing-5 lg:mt-0"} lg:m-0`,children:[(0,l.jsx)(d.default,{variant:"h4",color:"secondary",weight:"medium",className:"mb-2",children:a}),(0,l.jsx)("div",{className:"custom--tag--strong",children:(0,l.jsx)(d.default,{variant:"h5",color:"tertiary",className:"text-ellipsis",as:"div",children:(0,o.Q)((0,m.B)(t||""))})})]})]})}},17243:(e,a,t)=>{"use strict";t.d(a,{A:()=>u});var l=t(95155),i=t(18753),r=t(31013),s=t(62094),n=t(29722),c=t(69200),d=t(9237),o=t(12868);let u=({classname:e,actionclass:a})=>{let{lang:t}=(0,s.useLang)();return(0,l.jsxs)("div",{className:(0,n.A)(e,"flex flex-col gap-spacing-5 p-spacing-5  bg-surface-tertiary rounded-3xl justify-between "),children:[(0,l.jsx)("div",{className:"text-des lg:max-w-[429px]",children:(0,l.jsx)(r.default,{variant:"h6",color:"secondary",weight:"medium",children:"ar"===t?"مشاركة المقال":"Share article"})}),(0,l.jsx)("div",{className:"frm",children:(0,l.jsxs)("div",{className:"flex gap-spacing-3 items-center ",children:[(0,l.jsx)(i.A,{href:"https://instagram.com",src:c.A,alt:"Instagram",size:32}),(0,l.jsx)(i.A,{href:"https://twitter.com",src:d.A,alt:"Twitter",size:32}),(0,l.jsx)(i.A,{href:"https://linkedin.com",src:o.A,alt:"linkedin",size:32})]})})]})}},17520:(e,a,t)=>{"use strict";t.d(a,{default:()=>c});
1var l=t(95155),i=t(31013),r=t(21544),s=t(37211),n=t(73321);let c=({sectionTitleBlock:e})=>{let a=(0,n.usePathname)(),t=Array.isArray(e?.childrenData)?e.childrenData:[];return(0,l.jsx)(s.A,{data:e?.data||{},childrenData:t,renderContent:e=>{let a,s=(a=e?.title,t.find(e=>e?.data?.title?.toLowerCase()===a?.toLowerCase()));return(0,l.jsx)("div",{className:"lg:max-w-[764px] lg:mx-auto",children:(0,l.jsx)("div",{className:"flex flex-col gap-spacing-8",children:s?.childrenData?.map((e,a)=>(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-3",children:[(0,l.jsx)(i.default,{variant:"h4",color:"secondary",weight:"light",children:e?.data?.title}),(0,l.jsx)("div",{className:"editor--overide cms-article-content",children:(0,l.jsx)(i.default,{variant:"h5",weight:"light",color:"tertiary",children:(0,r.Q)(e?.data?.description)})})]},a))})})},haveTitle:!1,tabsClassName:a.includes("/legal-commitments-and-policies")?"max-w-[400px] lg:mx-auto":"my-spacing-7 lg:mx-auto ",containerTabs:a.includes("/legal-commitments-and-policies")?"grid grid-cols-2 w-full":"flex"})}},17651:(e,a,t)=>{"use strict";t.d(a,{Uo:()=>r,VU:()=>l,X8:()=>s,b8:()=>i,cz:()=>n});let l=/^[A-Za-z\u0600-\u06FF\s]+$/u,i=/^(?:\+965)?[4569]\d{7}$/,r=/^(?=.{1,254}$)(?=.{1,64}@)(?:[A-Za-z0-9](?:[A-Za-z0-9_%+-]*[A-Za-z0-9])?)(?:\.(?:[A-Za-z0-9](?:[A-Za-z0-9_%+-]*[A-Za-z0-9])?))*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+(?:[A-Za-z]{2,63}|xn--[A-Za-z0-9-]{2,59})$/,s=/^[\u0600-\u06FFa-zA-Z0-9\s.,!?()'"-]+$/u,n=/^\d{12}$/},18753:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});
1var l=t(95155),i=t(36341),r=t(47866),s=t(91256),n=t(29722);let c=({href:e,src:a,alt:t,size:c=32,hoverScale:d=1.5,duration:o=500})=>{let{theme:u}=(0,r.D)();return(0,l.jsx)("div",{className:"group ",children:(0,l.jsx)("a",{rel:"nofollow",href:e,className:(0,s.cn)("group-hover:scale-125     transition-all block overflow-hidden rounded-full"),children:(0,l.jsx)(i.default,{type:"image",alt:t,src:a,width:32,height:32,mediaClassName:(0,n.A)("object-contain h-[32px]","light"!==u&&"filter invert"),IsApiFromData:!1})})})}},20092:(e,a,t)=>{"use strict";t.d(a,{A:()=>s});var l=t(95155),i=t(31013),r=t(62094);let s=()=>{let{lang:e}=(0,r.useLang)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col  items-center gap-spacing-2",children:[(0,l.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5621 5.091C13.3358 5.01296 13.0595 4.99991 12.0298 4.99991H6.93342C6.17018 4.99991 5.65789 5.00069 5.26339 5.03292C4.88055 5.0642 4.69751 5.12004 4.57676 5.18157C4.26316 5.34136 4.00819 5.59632 3.8484 5.90993C3.78688 6.03067 3.73104 6.21372 3.69976 6.59655C3.66753 6.99105 3.66675 7.50334 3.66675 8.26658V8.33324H15.7154L14.9516 6.80568C14.4911 5.88469 14.3558 5.64335 14.1849 5.47588C14.0084 5.30302 13.7956 5.17156 13.5621 5.091ZM17.9515 8.33324L16.7405 5.91125C16.7186 5.86763 16.6971 5.82454 16.6759 5.78199C16.312 5.05262 16.0262 4.47983 15.5843 4.04704C15.196 3.66675 14.728 3.37753 14.2143 3.20031C13.6295 2.99863 12.9894 2.99916 12.1743 2.99983C12.1268 2.99987 12.0786 2.99991 12.0298 2.99991L6.89284 2.99991C6.18063 2.9999 5.58617 2.99988 5.10052 3.03956C4.59401 3.08095 4.11847 3.17043 3.66878 3.39955C2.97886 3.75109 2.41793 4.31202 2.06639 5.00195C1.83727 5.45163 1.74779 5.92717 1.7064 6.43368C1.66672 6.91933 1.66673 7.51379 1.66675 8.226L1.66675 21.6427C1.66674 22.7265 1.66673 23.6007 1.72457 24.3085C1.78412 25.0374 1.90993 25.6776 2.21172 26.2699C2.69108 27.2107 3.45599 27.9756 4.3968 28.4549C4.98909 28.7567 5.62928 28.8825 6.35812 28.9421C7.066 28.9999 7.94014 28.9999 9.02392 28.9999H22.9762C24.06 28.9999 24.9342 28.9999 25.642 28.9421C26.3709 28.8825 27.0111 28.7567 27.6034 28.4549C28.5442 27.9756 29.3091 27.2107 29.7884 26.2699C30.0902 25.6776 30.216 25.0374 30.2756 24.3085C30.3334 23.6007 30.3334 22.7265 30.3334 21.6427V15.6904C30.3334 14.6066 30.3334 13.7325 30.2756 13.0246C30.216 12.2958 30.0902 11.6556 29.7884 11.0633C29.3091 10.1225 28.5442 9.35758 27.6034 8.87821C27.0111 8.57642 26.3709 8.45061 25.642 8.39106C24.9342 8.33323 24.06 8.33323 22.9762 8.33324H17.9515ZM17.3133 10.3332C17.3272 10.3335 17.3411 10.3335 17.3551 10.3332H22.9334C24.07 10.3332 24.8623 10.334 25.4792 10.3844C26.0843 10.4339 26.432 10.526 26.6954 10.6602C27.2599 10.9478 27.7188 11.4068 28.0064 11.9713C28.1406 12.2346 28.2328 12.5823 28.2822 13.1875C28.3326 13.8043 28.3334 14.5966 28.3334 15.7332V21.5999C28.3334 22.7365 28.3326 23.5288 28.2822 24.1457C28.2328 24.7508 28.1406 25.0985 28.0064 25.3619C27.7188 25.9264 27.2599 26.3853 26.6954 26.6729C26.432 26.8071 26.0843 26.8993 25.4792 26.9487C24.8623 26.9991 24.07 26.9999 22.9334 26.9999H9.06675C7.93014 26.9999 7.13783 26.9991 6.52099 26.9487C5.91582 26.8993 5.56813 26.8071 5.30478 26.6729C4.74029 26.3853 4.28135 25.9264 3.99373 25.3619C3.85954 25.0985 3.76737 24.7508 3.71792 24.1457C3.66753 23.5288 3.66675 22.7365 3.66675 21.5999V10.3332H17.3133Z",fill:"#323232"})}),(0,l.jsx)(i.default,{variant:"h5",color:"secondary",children:"ar"===e?"لم يتم العثور على نتائج":"No Results Found"}),(0,l.jsx)(i.default,{variant:"h6",color:"tertiary",align:"text-center",children:"ar"===e?"من فضلك انتظر بينما نقوم بجلب البيانات. قد يستغرق ذلك بضع ثوان.":"Please wait while we fetch the data. This may take a few seconds."})]})})}},21139:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var l=t(95155),i=t(12115),r=t(75751),s=t(31013),n=t(36341),c=t(27003),d=t(91256),o=t(9751),u=t(61792),m=t(25354),h=t(19658);let g=({image:e,title:a,description:t,link:r,className:g,has_border:p=!1,...x})=>{let{isMobile:f}=(0,c.k)(),v=(0,i.useRef)(null),b=(0,u.W)(v,{once:!0}),j=r?.trim();
1return(0,l.jsxs)(m.PY1.div,{ref:v,animate:{opacity:+!!b,y:150*!b},transition:{type:"spring",stiffness:46,damping:20},className:(0,d.cn)("group flex flex-col justify-start items-center gap-spacing-4 lg:gap-spacing-5",g),...x,children:[(0,l.jsxs)("div",{className:(0,d.cn)(p&&"border-border-tertiary border","relative w-full overflow-hidden rounded-container-small lg:rounded-container-large"),children:[(0,l.jsx)(n.default,{src:e,alt:a,type:"image",IsApiFromData:!0,width:550,height:f?279:550,responsiveHeight:"h-[279px] lg:h-[550px] lg:rounded-container-large rounded-container-small object-cover"}),!!j&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10 bg-[rgba(0,0,0,0.50)] opacity-0 transition-opacity duration-300 group-hover:opacity-100 group-focus-within:opacity-100"}),(0,l.jsx)("div",{className:"pointer-events-none absolute bottom-spacing-5 start-spacing-5 z-20 opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100 lg:bottom-spacing-7 lg:start-spacing-7",children:(0,l.jsx)(h.$,{icon:!0,color:"white",size:"large",href:j,"aria-label":a,children:(0,l.jsx)(o.A,{size:f?24:32,strokeWidth:1.5})})})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-2 lg:gap-spacing-4",children:[(0,l.jsx)(s.default,{variant:"h3",color:"secondary",className:"capitalize",children:a}),(0,l.jsx)(s.default,{variant:"h4",color:"tertiary",children:t})]})]})},p=({title:e,description:a,title_color:t,description_color:i,childrenData:s,cards_per_row:n=2})=>{let{isMobile:o}=(0,c.k)();return(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5 lg:gap-spacing-7",children:[(0,l.jsx)(r.default,{title:e,pretitle:a,title_color:t,pretitle_color:i}),(0,l.jsx)("div",{className:(0,d.cn)("grid grid-cols-1 gap-spacing-7"),style:{gridTemplateColumns:`repeat(${o?1:n}, minmax(0, 1fr))`},children:s.map((e,a)=>(0,l.jsx)(g,{image:e.image,...e.data,...e.variant},"ic-"+a))})]})}},21569:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var l=t(95155),i=t(12115),r=t(12185),s=t(80642),n=t(31013),c=t(27003),d=t(69984),o=t(36341),u=t(91256);let m=({title:e,description:a,childrenData:t=[],top_padding:m=!0,extra_padding_top:h=!1})=>{let[g,p]=(0,i.useState)(0),[x,f]=(0,i.useState)(!1),{isMobile:v}=(0,c.k)(),[b]=(0,d.A)(),j=(0,i.useRef)(null),w=(0,i.useRef)(null),y=v?64:80,N=(0,i.useMemo)(()=>`calc(100dvh - ${y}px)`,[y]),C=(0,i.useMemo)(()=>{let e=50*Math.max(t.length-1,0);return`calc(${N} + ${e}vh)`},[t.length,N]);if((0,i.useEffect)(()=>{if(!t.length)return;let e=!1,a=()=>{e||(e=!0,window.requestAnimationFrame(()=>{let a=j.current;if(!a){e=!1;return}let l=a.getBoundingClientRect(),i=a.offsetHeight,r=window.innerHeight;f(l.top<=r/2.5&&l.bottom>=r/1.5);let s=Math.max(i-r,1),n=Math.floor(Math.max(0,Math.min(1,-l.top/s))*t.length);p(Math.max(0,Math.min(t.length-1,n))),e=!1}))};return window.addEventListener("scroll",a,{passive:!0}),a(),()=>{window.removeEventListener("scroll",a)}},[t.length]),0===t.length)return null;let k={initial:{maxWidth:"1140px",borderRadius:v?"0px":"24px"},expanded:{maxWidth:v?"1140px":`${b}px`,borderRadius:"0px"}};return(0,l.jsx)("section",{ref:j,className:(0,u.cn)("relative ",m?"py-spacing-7 lg:py-spacing-9":"pb-spacing-7 lg:pb-spacing-9",h&&"pt-spacing-9 lg:pt-spacing-10"),style:{height:C}
1,children:(0,l.jsx)("div",{ref:w,className:"sticky",style:{top:`${y}px`,height:N},children:(0,l.jsx)(r.P.div,{variants:k,initial:"initial",animate:x?"expanded":"initial",transition:{duration:.5,ease:"easeInOut"},className:"bg-surface-tertiary mx-auto h-full overflow-hidden pb-10 lg:pb-sections-padding-2",children:(0,l.jsx)("div",{className:"container h-full",children:(0,l.jsxs)("div",{className:"h-full p-within-components-5 lg:flex lg:gap-spacing-8 lg:p-spacing-9",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-center lg:w-1/2",children:[(0,l.jsxs)("div",{className:"mb-spacing-6 lg:mb-spacing-8",children:[(0,l.jsx)(n.default,{variant:"h2",color:"secondary",weight:"light",className:"mb-spacing-2",children:e}),(0,l.jsx)(n.default,{variant:"h4",color:"tertiary",weight:"light",children:a})]}),(0,l.jsx)("div",{className:"space-y-spacing-4",children:t.map((e,a)=>(0,l.jsxs)("div",{className:"cursor-pointer transition-all duration-300",onClick:()=>(e=>{let a=j.current;if(!a)return;let l=Math.max(a.offsetHeight-window.innerHeight,0),i=t.length>1?e/(t.length-1):0,r=a.offsetTop+l*i;window.scrollTo({top:r,behavior:"smooth"})})(a),children:[v&&g===a&&(0,l.jsx)(s.N,{mode:"wait",children:(0,l.jsx)(r.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,ease:"easeInOut"},className:"mb-spacing-4",children:(0,l.jsx)("div",{className:"w-full",children:(0,l.jsx)(o.default,{type:"image",src:e.data.image,width:400,height:200,alt:e.data.title,classname:"h-[200px] w-full overflow-hidden rounded-container-small object-cover",mediaClassName:"h-[200px] w-full object-cover",IsApiFromData:!0})})},g)}),(0,l.jsx)(n.default,{variant:v?"h3":"h2",weight:"light",className:(0,u.cn)("cursor-pointer",g===a?"font-medium text-label-secondary":"font-light text-label-placeholder hover:text-label-secondary"),children:e.data.title}),(0,l.jsx)(s.N,{children:g===a&&(0,l.jsx)(r.P.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:(0,l.jsx)(n.default,{variant:"h5",color:"tertiary",weight:"light",className:"mt-spacing-2 lg:mt-spacing-3",children:e.data.description})})})]},`${e.data.title}-${a}`))})]}),(0,l.jsx)("div",{className:"relative top-14 hidden lg:flex lg:w-1/2 lg:items-end lg:justify-center",children:(0,l.jsx)(s.N,{mode:"wait",children:(0,l.jsx)(r.P.div,{className:"max-w-[498px]",children:(0,l.jsx)(o.default,{type:"image",src:t[g]?.data?.image,width:498,height:424,IsApiFromData:!0,alt:t[g]?.data?.image_alt_text?t[g]?.data?.image_alt_text:t[g]?.data?.image_defaut_alt_text,classname:"w-[498px] h-[492px] overflow-hidden rounded-container-large object-cover",mediaClassName:"w-[498px] h-[492px] object-cover"})},g)})})]})})})})})}},23089:(e,a,t)=>{"use strict";t.d(a,{Msa3edProvider:()=>s,R:()=>n});var l=t(95155),i=t(12115);let r=(0,i.createContext)(void 0);function s({children:e}){let[a,t]=(0,i.useState)(!1);return(0,l.jsx)(r.Provider,{value:{isOverlayOpen:a,openOverlay:()=>t(!0),closeOverlay:()=>t(!1),toggleOverlay:()=>t(e=>!e)},children:e})}function n(){let e=(0,i.useContext)(r);if(void 0===e)throw Error("useMsa3ed must be used within a Msa3edProvider");return e}},23269:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});
1var l=t(95155);t(12115);var i=t(64577),r=t(29722);let s={sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"},n={sm:12,md:14,lg:16},c=({checked:e,onChange:a,disabled:t,size:c="md",className:d,id:o,ariaLabel:u})=>(0,l.jsx)("button",{type:"button",id:o,role:"checkbox","aria-checked":e,"aria-label":u,disabled:t,onClick:()=>{t||a(!e)},onKeyDown:l=>{t||(" "===l.key||"Enter"===l.key)&&(l.preventDefault(),a(!e))},className:(0,r.A)("inline-flex items-center justify-center border text-label-secondary border-border-tertiary  rounded-[4px]  transition-colors focus:outline-none",s[c],e?"bg-neutral-auxiliary-green !text-label-secondary border-neutral-auxiliary-green":"border-border-tertiary ",t&&"opacity-50 cursor-not-allowed",d),children:e?(0,l.jsx)(i.A,{size:n[c],color:"#ffff",className:"pointer-events-none"}):""})},25240:(e,a,t)=>{"use strict";t.d(a,{default:()=>n});var l=t(95155),i=t(31013),r=t(62094),s=t(91256);t(12115);let n=({headers:e,is_bold_headers:a=!1,is_bold_content:t=!1,align_content:n="left",content:c,...d})=>{let o=e.split(",").map(e=>e.trim()),{lang:u}=(0,r.useLang)();"ar"==u&&(n="left"==n?"right":"left");let m=c?.map(e=>e.data.cells?.split(",").map(e=>e.trim()));return(0,l.jsx)("div",{className:"bg-surface-default border border-border-tertiary lg:rounded-container-large rounded-container-small overflow-x-auto",...d,children:(0,l.jsxs)("table",{className:(0,s.cn)("w-full border-collapse",`text-${n}`),children:[(0,l.jsx)("thead",{children:(0,l.jsx)("tr",{children:o?.map((e,t)=>(0,l.jsx)("th",{className:"px-6 py-4",children:(0,l.jsx)(i.default,{align:"center",variant:"h6",color:"tertiary",weight:a?"bold":"light",children:e})},t))})}),(0,l.jsx)("tbody",{children:m?.map((e,a)=>(0,l.jsx)("tr",{className:"even:bg-surface-tertiary",children:e?.map((e,a)=>{let r=e.split(",").map(e=>e.trim());return(0,l.jsx)("td",{className:"px-6 py-4",children:r.map((e,a)=>(0,l.jsx)(i.default,{align:"center",variant:"h6",color:"tertiary",weight:t?"bold":"light",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"tbc"+a))},a)})},a))})]})})}},25664:(e,a,t)=>{"use strict";t.d(a,{ModalProvider:()=>a5,useModal:()=>a9});var l=t(95155),i=t(12115),r=t(25354),s=t(91256),n=t(29722);function c({isOpen:e,onClose:a,title:t,children:d,className:o,showCloseButton:u=!0,closeButtonClass:m,isPartnerModal:h,iswhiteModal:g=!1,custompadding:p}){let[x,f]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e&&a()};return e?(f(!0),document.body.style.overflow="hidden",window.addEventListener("keydown",t)):(document.body.style.overflow="",setTimeout(()=>f(!1),300),window.removeEventListener("keydown",t)),()=>{document.body.style.overflow="",window.removeEventListener("keydown",t)}},[e,a]),x||e)?(0,l.jsxs)("div",{className:(0,s.cn)("fixed inset-0 z-[9010] flex lg:items-center items-end justify-center",e?"opacity-100":"opacity-0 pointer-events-none","transition-opacity duration-300 ease-in-out "),children:[(0,l.jsx)(r.PY1.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"absolute inset-0  bg-[#000000a2] backdrop-blur-sm"}),(0,l.jsxs)(r.PY1.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0,transition:{type:"spring",stiffness:145,damping:18}},exit:{opacity:0,scale:.8},transition:{duration:.4},className:(0,s.cn)(h?"lg:w-[1140px]":"min-w-[390px] lg:w-[746px] lg:max-w-[746px]","overflow-auto relative w-full z-50 lg:rounded-3xl max-h-modal rounded-ss-3xl rounded-se-3xl lg:min-h-7 bg-surface-default",e?"scale-100":"scale-95",o),onClick:e=>e.stopPropagation(),children:[u&&(0,l.jsx)("div",{className:"flex items-center justify-end    z-30 lg:rounded-t-3xl",children:u&&(0,l.jsx)("div",{className:(0,s.cn)(m||"actionmodal !bg-transparent   z-10","lg:rounded-t-3xl"),children:(0,l.jsx)("button",{className:"w-8 h-8 absolute end-5 top-5 z-20",onClick:()=>{a(),"function"==typeof d.props?.onCloseModal&&d.props.onCloseModal()},children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.29289 7.29289C7.68342 6.90237 8.31658 6.90237 8.70711 7.29289L16 14.5858L23.2929 7.29289C23.6834 6.90237 24.3166 6.90237 24.7071 7.29289C25.0976 7.68342 25.0976 8.31658 24.7071 8.70711L17.4142 16L24.7071 23.2929C25.0976 23.6834 25.0976 24.3166 24.7071 24.7071C24.3166 25.0976 23.6834 25.0976 23.2929 24.7071L16 17.4142L8.70711 24.7071C8.31658 25.0976 7.68342 25.0976 7.29289 24.7071C6.90237 24.3166 6.90237 23.6834 7.29289 23.2929L14.5858 16L7.29289 8.70711C6.90237 8.31658 6.90237 7.68342 7.29289 7.29289Z",fill:`${g?"white":"#323232"}`})})})})}),(0,l.jsx)("div",{className:(0,n.A)(p||"p-8"),children:d})]})]}):null}var d=t(36341),o=t(62094),u=t(31013),m=t(38191);let h=({link:e,name:a,description:t,image:i})=>{let{lang:r}=(0,o.useLang)(),{SVG:s}=(0,m.i)();return(0,l.jsxs)("div",{className:"lg:w-[218px] w-full max-h-[216px] py-[13px] px-[20px]  bg-surface-tertiary rounded-radius-2 flex flex-col items-center",children:[(0,l.jsx)("div",{className:"qrholder",children:(0,l.jsx)(s,{text:e,options:{width:135,color:{light:"#F7F7F7"}}})}),(0,l.jsxs)("div",{className:"flex gap-spacing-3 mt-3 items-center",children:[(0,l.jsx)("div",{className:"w-[33px] h-[32px]",children:i}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(u.default,{variant:"h8",color:"secondary",children:t}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",children:a})]})]})]})},g=({image:e="",title:a="",ios_description:t="",ios_name:i="",ios_link:r="",android_description:s="",android_name:n="",android_link:c="",huawei_description:m="",huawei_name:g="",huawei_link:p=""})=>{let{lang:x}=(0,o.useLang)();return r||c||p?(0,l.jsxs)("div",{className:"flex flex-col  ",children:[(0,l.jsxs)("div",{className:"imagwrapper overflow-hidden lg:h-[262px] h-[216px] w-full relative",children:[(0,l.jsx)(d.default,{responsiveHeight:"object-cover lg:h-[262px] h-[216px]",classname:"lg:h-[262px] h-[216px]",alt:e,IsApiFromData:!0,type:"image",src:e,width:756,height:262}),(0,l.jsx)("div",{className:"absolute inset-0  bg-modal-image"})]}),(0,l.jsxs)("div",{className:"lg:px-spacing-6 px-spacing-5 lg:pb-spacing-6 pb-spacing-5",children:[(0,l.jsx)(u.default,{variant:"h3",color:"secondary",className:"py-8",children:a}),(0,l.jsxs)("div",{className:"flex lg:flex-row flex-col gap-spacing-4",children:[r&&(0,l.jsx)(h,{description:t,link:r,name:i,image:(0,l.jsxs)("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4969 1.90735e-06H9.50311C2.91111 1.90735e-06 0.5 2.41112 0.5 9.00315L0.5 22.9971C0.5 29.589 2.91111 32 9.50311 32H23.4925C30.0845 32 32.5 29.589 32.5 22.9971V9.00315C32.5 2.41112 30.0889 1.90735e-06 23.4969 1.90735e-06Z",fill:"black"}),(0,l.jsx)("path",{d:"M22.0021 15.7203C22.0206 14.3552 22.793 13.0635 24.0183 12.3484C23.2453 11.3006 21.9506 10.6362 20.6035 10.5962C19.1668 10.453 17.774 11.4122 17.0418 11.4122C16.2955 11.4122 15.1683 10.6104 13.9545 10.6341C12.3723 10.6826 10.8973 11.5365 10.1276 12.8494C8.47287 15.5687 9.70711 19.565 11.2922 21.7631C12.0852 22.8394 13.012 24.0417 14.2248 23.999C15.4115 23.9523 15.8547 23.2807 17.2872 23.2807C18.7064 23.2807 19.1223 23.999 20.3596 23.9719C21.633 23.9523 22.4354 22.8908 23.2006 21.8043C23.7704 21.0374 24.2088 20.1898 24.4997 19.2929C23.0032 18.6921 22.0038 17.2626 22.0021 15.7203Z",fill:"white"}),(0,l.jsx)("path",{d:"M19.6649 9.15065C20.3592 8.35949 20.7013 7.3426 20.6185 6.31592C19.5577 6.42167 18.5778 6.90289 17.8741 7.66369C17.186 8.40703 16.8279 9.40603 16.8956 10.3935C17.9567 10.4038 19 9.93567 19.6649 9.15065Z",fill:"white"})]})}),c&&(0,l.jsx)(h,{description:s,link:c,name:n,image:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.9969 1.90735e-06H9.00311C2.41111 1.90735e-06 0 2.41112 0 9.00315L0 22.9971C0 29.589 2.41111 32 9.00311 32H22.9925C29.5845 32 32 29.589 32 22.9971V9.00315C32 2.41112 29.5889 1.90735e-06 22.9969 1.90735e-06Z",fill:"white"}),(0,l.jsx)("path",{d:"M15.1543 15.229L7.87891 22.951C7.87918 22.9526 7.87973 22.9539 7.88 22.9555C8.10312 23.794 8.86895 24.4114 9.77789 24.4114C10.1412 24.4114 10.4824 24.3131 10.7749 24.1407L10.7981 24.1271L18.9875 19.4015L15.1543 15.229Z",fill:"#EA4335"}),(0,l.jsx)("path",{d:"M22.515 13.9143L22.508 13.9095L18.9725 11.8599L14.9893 15.4043L18.9863 19.4009L22.5032 17.3717C23.1198 17.0388 23.5384 16.3888 23.5384 15.6392C23.5384 14.895 23.1254 14.2482 22.515 13.9143Z",fill:"#FBBC04"}),(0,l.jsx)("path",{d:"M7.87825 8.29504C7.83451 8.45631 7.81152 8.62524 7.81152 8.80065V22.4456C7.81152 22.6207 7.83424 22.7902 7.87852 22.9509L15.4043 15.4265L7.87825 8.29504Z",fill:"#4285F4"}),(0,l.jsx)("path",{d:"M15.2077 15.6233L18.9734 11.8587L10.7933 7.11605C10.496 6.93797 10.149 6.83519 9.77767 6.83519C8.86874 6.83519 8.10188 7.4537 7.87869 8.2932C7.87842 8.29402 7.87842 8.29457 7.87842 8.29532L15.2077 15.6233Z",fill:"#34A853"})]})}),p&&(0,l.jsx)(h,{description:m,link:p,name:g,image:(0,l.jsxs)("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4969 1.90735e-06H9.50311C2.91111 1.90735e-06 0.5 2.41112 0.5 9.00315V22.9971C0.5 29.589 2.91111 32 9.50311 32H23.4925C30.0845 32 32.5 29.589 32.5 22.9971V9.00315C32.5 2.41112 30.0889 1.90735e-06 23.4969 1.90735e-06Z",fill:"#C91C2E"}),(0,l.jsx)("path",{d:"M14.4608 18.5585H15.7442L15.1005 17.0615L14.4608 18.5585ZM14.1449 19.3131L13.7642 20.1841H12.8976L14.7408 16.0027H15.4896L17.3254 20.1841H16.4354L16.0595 19.3131H14.1449ZM28.0912 20.1812H28.9289V16.0027H28.0912V20.1812ZM24.7574 18.3857H26.3012V1
17.6243H24.7574V16.7677H26.9984V16.0053H23.92V20.1837H27.0793V19.4216H24.7574V18.3857ZM21.4291 18.8795L20.4792 16.0026H19.7867L18.8368 18.8795L17.9125 16.0045H17.0091L18.4672 20.1861H19.1699L20.1211 17.4394L21.072 20.1861H21.7811L23.2356 16.0045H22.3554L21.4291 18.8795ZM11.6189 18.3973C11.6189 19.0776 11.2811 19.441 10.6677 19.441C10.0509 19.441 9.71137 19.0673 9.71137 18.3683V16.005H8.86252V18.3973C8.86252 19.5743 9.51633 20.249 10.6562 20.249C11.8072 20.249 12.4674 19.5614 12.4674 18.3627V16.0026H11.6189V18.3973ZM6.8371 16.0027H7.6856V20.1864H6.8371V18.4874H4.92012V20.1864H4.07129V16.0027H4.92012V17.6904H6.8371V16.0027Z",fill:"white"}),(0,l.jsx)("path",{d:"M16.4998 10.6758C13.5629 10.6758 11.1733 8.28619 11.1733 5.34927H11.9258C11.9258 7.87134 13.9775 9.92331 16.4998 9.92331C19.0221 9.92331 21.0738 7.87134 21.0738 5.34927H21.8263C21.8263 8.28619 19.4367 10.6758 16.4998 10.6758Z",fill:"white"})]})})]})]})]}):(0,l.jsx)(u.default,{variant:"h5",color:"secondary",children:"ar"===x?"لم يتم العثور على نتائج":"No Results Found"})};var p=t(28850),x=t(14932);let f={KWD:1,USD:2,GBP:9,EUR:24},v={KWD:"KWD",USD:"USD",GBP:"GBP",EUR:"EUR"},b=[{productKey:"alHana",cmsTitleKeywords:["hana usd","al hana usd","hana dollar","hana us dollar","usd hana","وديعة الهنا بالدولار الأمريكي","وديعه الهنا بالدولار الامريكي","وديعة الهنى بالدولار الأمريكي","وديعه الهنى بالدولار الامريكي","الهنا بالدولار الأمريكي","الهنا بالدولار الامريكي","الهنى بالدولار الأمريكي","الهنى بالدولار الامريكي","الهنا دولار","الهنى دولار","دولار امريكي"],apiNameKeywords:["hana","al hana","alhana","هنا","هنى","الهنا","الهنى"],supportedCurrencies:["USD"],showRates:!0},{productKey:"wakala",cmsTitleKeywords:["wakala","wakala deposit","wadi'a wakala","وديعة الوكالة","وديعه الوكاله","الوكالة","الوكاله","وكالة","وكاله"],apiNameKeywords:["wakala","wkla","wkla deposit","وكالة","وكاله","الوكالة","الوكاله"],apiTypeCodes:["210401","210402","210403","210404","210405","210406","210407"],supportedCurrencies:["KWD","USD","GBP","EUR"],showRates:!0},{productKey:"alMona",cmsTitleKeywords:["mona","muna","al mona","al-mona","al muna","وديعة المنى","وديعه المني","وديعة منى","وديعه مني","المنى","المني","منى","مني","المنا","منا"],apiNameKeywords:["mona","muna","al mona","al-mona","almona","al muna","almina","منى","مني","المنى","المني","المنا","منا"],supportedCurrencies:["KWD"],showRates:!0},{productKey:"alJana",cmsTitleKeywords:["jana","al jana","al-jana","وديعة الجنى","وديعه الجني","وديعة الجنا","وديعه الجنا","الجنى","الجني","الجنا","جنى","جني","جنا"],apiNameKeywords:["jana","al jana","al-jana","aljana","جنى","جني","الجنى","الجني","جنا","الجنا"],apiTypeCodes:["210434","210435","210436","210437","210440"],apiExcludeKeywords:["plus","+","بلس"],supportedCurrencies:["KWD","USD","GBP","EUR"],showRates:!0},{productKey:"alHana",cmsTitleKeywords:["hana","al hana","al-hana","hana deposit","وديعة الهنا","وديعه الهنا","وديعة الهنى","وديعه الهنى","الهنا","الهنى","هنا","هنى"],apiNameKeywords:["hana","al hana","al-hana","alhana","هنا","هنى","الهنا","الهنى"],apiTypeCodes:["210445","210446","210447","210448","210449"],supportedCurrencies:["KWD","USD"],showRates:!0},{productKey:"sama",cmsTitleKeywords:["sama","sama deposit","وديعة سما","وديعة سَما","وديعه سما","سما"],apiNameKeywords:["sama","سما"],apiTypeCodes:["210301","210302","210303","210304","210305","210306"],supportedCurrencies:["KWD"],showRates:!1}],j="KWD";var w=t(29483);let y=async e=>{var a;return Array.isArray(a=await w.default.post("getdepositrates",{currencyCode:e}))?a:Array.isArray(a?.data)?a.data:[]},N=(e,a=0)=>{let t=Number(e);return Number.isFinite(t)?t:a},C=e=>String(e||"").toLowerCase().replace(/[\u064B-\u065F\u0670]/g,"").replace(/[أإآ]/g,"ا").replace(/ى/g,"ي").replace(/ة/g,"ه").replace(/ؤ/g,"و").replace(/ئ/g,"ي").replace(/[-_]/g," ").replace(/\s+/g," ").trim(),k=(e,a)=>a.some(a=>e.includes(C(a))),A=e=>{let a=C(e);
1return b.find(e=>k(a,e.cmsTitleKeywords))},D=e=>!!("yes"===C(e?.reply)&&e?.typeCode&&e?.ptRate!==null&&e?.termDays!==null),M=e=>{let a=N(e.minOpenBal),t=N(e.toAmount,1/0);return a<=0||t>=a},_=[],$=[],P={},L={},S=e=>1===e?"شهر":2===e?"شهرين":e>=3&&e<=10?`${e} أشهر`:`${e} شهرًا`,E=({cardTitle:e,children:a})=>{let{lang:t}=(0,o.useLang)(),{activeCurrency:r,availableCurrencies:n,selectedTermIndex:c,selectedTerm:d,terms:m,selectedDurationLabel:h,profitRate:g,isLoading:p,errorMessage:b,hasRates:w,isRatesEnabled:E,productKey:R,setActiveCurrency:I,setSelectedTermIndex:F}=(({cardTitle:e,enabled:a=!0,initialCurrency:t=j})=>{let l=(0,i.useRef)(0),r=(0,i.useMemo)(()=>A(e),[e]),s=(0,i.useMemo)(()=>r?.supportedCurrencies||$,[r]),n=(0,i.useMemo)(()=>s.includes(t)?t:s[0]||j,[s,t]),[c,d]=(0,i.useState)(n),[o,u]=(0,i.useState)(0),[m,h]=(0,i.useState)({}),[g,p]=(0,i.useState)(!1),[x,v]=(0,i.useState)("");(0,i.useEffect)(()=>{d(n),u(0)},[n]);let b=(0,i.useMemo)(()=>{let a={};return s.forEach(t=>{let l=(({apiItems:e,currency:a,cardTitle:t})=>{let l=A(t);if(!l||!l.showRates||!l.supportedCurrencies.includes(a))return null;let i=f[a],r=(Array.isArray(e)?e:[]).filter(D).filter(e=>!e.currencyCode||Number(e.currencyCode)===i).filter(e=>{let a,t,i;return a=C(e.briefDescEng),t=C(e.briefDescArab),i=`${a} ${t}`,!l.apiExcludeKeywords?.some(e=>i.includes(C(e)))&&(l.apiTypeCodes?.length&&e.typeCode?l.apiTypeCodes.includes(e.typeCode):k(i,l.apiNameKeywords))}).filter(M);if(!r.length)return{productKey:l.productKey,currency:a,currencyCode:i,minOpenBalance:0,terms:[]};let s=r.reduce((e,a)=>{let t=N(a.minOpenBal,e);return t<=0?e:0===e?t:Math.min(e,t)},0),n=new Map;r.forEach(e=>{let a=N(e.termDays),t=N(e.maxMatDays,a),l="months"===C(e.termInD)?"MONTHS":"DAYS",i=N(e.ptRate),r=N(e.lineNumber),s=N(e.fromAmount),c=N(e.toAmount,1/0),d=N(e.minOpenBal);if(a<=0||i<=0||!e.typeCode)return;let o=`${e.typeCode}-${a}-${l}`,u={id:[e.typeCode||"unknown-type",e.currencyCode||"unknown-currency",e.termDays||"unknown-term",e.termInD||"unknown-unit",e.maxMatDays||"unknown-max",e.lineNumber||"0"].join("-"),label:((e,a,t)=>{if("MONTHS"===t)return`${e} ${1===e?"Month":"Months"}`;if(1===e&&a>e&&a<30)return"< 1 Month";if(e>=30){let a=Math.round(e/30);return`${a} ${1===a?"Month":"Months"}`}return`${e} ${1===e?"Day":"Days"}`})(a,t,l),termDays:a,maxMatDays:t,termInD:l,displayOrder:"MONTHS"===l?30*a:a,rate:i,typeCode:e.typeCode,lineNumber:r,fromAmount:s,toAmount:c,minOpenBalance:d,isMinimumAmountBracket:d>0&&s<=d&&c>=d},m=n.get(o);m&&(!u.isMinimumAmountBracket||m.isMinimumAmountBracket)?u.isMinimumAmountBracket===m.isMinimumAmountBracket&&u.lineNumber<m.lineNumber&&n.set(o,u):n.set(o,u)});let c=Array.from(n.values()).sort((e,a)=>e.displayOrder-a.displayOrder).map(e=>({id:e.id,label:e.label,termDays:e.termDays,maxMatDays:e.maxMatDays,termInD:e.termInD,displayOrder:e.displayOrder,rate:e.rate,typeCode:e.typeCode,lineNumber:e.lineNumber}));return{productKey:l.productKey,currency:a,currencyCode:i,minOpenBalance:s,terms:c}})({apiItems:m[t]||[],currency:t,cardTitle:e});l&&(a[t]=l)}),a},[e,m,s]),w=(0,i.useMemo)(()=>r?.showRates?s.filter(e=>(b[e]?.terms.length||0)>0):$,[b,r?.showRates,s]);(0,i.useEffect)(()=>{!w.length||w.includes(c)||(d(w[0]),u(0))},[c,w]);let S=b[c]||null,E=S?.terms||_;(0,i.useEffect)(()=>{E.length?u(e=>Math.min(e,E.length-1)):u(0)},[E.length]);let R=E[o]||E[0]||null,I=R?.rate||0,F=(0,i.useMemo)(()=>E.map(e=>e.displayOrder),[E]),B=R?.label||"",T=(0,i.useCallback)(e=>{w.includes(e)&&(d(e),u(0))},[w]),z=(0,i.useCallback)(e=>{u(Math.min(Math.max(e,0),Math.max(E.length-1,0)))},[E.length]),H=(0,i.useCallback)(async()=>{if(!a||!r?.showRates||!s.length){h({}),v(""),p(!1);return}let e=l.current+1;l.current=e;try{p(!0),v("");let a=await Promise.allSettled(s.map(async e=>{let a=await (e=>{let a=P[e];if(a)return Promise.resolve(a);let t=L[e];if(t)return t;let l=y(f[e]).then(a=>(P[e]=a,a)).finally(()=>{delete L[e]});return L[e]=l,l})(e);return{currency:e,items:a}}));if(l.current!==e)return;let t={},i=0;a.forEach(e=>{"fulfilled"===e.status&&(i+=1,t[e.value.currency]=e.value.items)}),h(t),v(i>0?"":"Unable to load profit rates")}
1catch{if(l.current!==e)return;h({}),v("Unable to load profit rates")}finally{l.current===e&&p(!1)}},[a,r?.showRates,s]);return(0,i.useEffect)(()=>{H()},[H]),{activeCurrency:c,availableCurrencies:w,selectedTermIndex:o,selectedTerm:R,terms:E,durationOptions:F,selectedDurationLabel:B,profitRate:I,minOpenBalance:S?.minOpenBalance||0,isLoading:g,errorMessage:x,hasRates:E.length>0,isRatesEnabled:!!r?.showRates,productKey:r?.productKey||"unknown",setActiveCurrency:T,setSelectedTermIndex:z}})({cardTitle:e}),B=(0,i.useMemo)(()=>{var e;return(e=m.length)<=1?[]:Array.from({length:e},(a,t)=>t/(e-1)*100).filter(e=>e>0&&e<100)},[m.length]),T="ar"===t,z=T?"تعذر تحميل معدلات الربح":b,H=T?"مدة الاستثمار":"Investment period",W=Math.max(m.length-1,0),V=T?W-c:c,O=0===V,Z=V===W,q=(0,s.cn)("whitespace-nowrap",O&&"translate-x-0 text-start",Z&&"-translate-x-full text-end",!O&&!Z&&"-translate-x-1/2 text-center"),U=d?(({termDays:e,maxMatDays:a,termInD:t,lang:l})=>{let i="ar"===l;if("MONTHS"===t)return i?S(e):`${e} ${1===e?"Month":"Months"}`;if(1===e&&a>e&&a<30)return i?"أقل من شهر":"< 1 Month";if(e>=30){let a=Math.round(e/30);return i?S(a):`${a} ${1===a?"Month":"Months"}`}return i?`${e} يوم`:`${e} ${1===e?"Day":"Days"}`})({termDays:d.termDays,maxMatDays:d.maxMatDays,termInD:d.termInD,lang:t}):h;return E||"sama"!==R?E?(0,l.jsxs)(l.Fragment,{children:[n.length>0&&(0,l.jsx)("div",{className:"flex justify-center lg:block",children:(0,l.jsx)("div",{className:"mb-spacing-5 inline-flex rounded-full border border-border-tertiary lg:mb-spacing-4",children:n.map((e,a)=>{let t=r===e,i=n[a-1],c=a>0&&!t&&i!==r;return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("button",{type:"button",disabled:p,onClick:()=>I(e),className:(0,s.cn)("relative z-10 rounded-full px-spacing-5 py-spacing-2 transition-colors duration-200",t&&"bg-surface-secondary text-label-default"),"aria-pressed":t,children:(0,l.jsx)(u.default,{variant:"h6",color:t?"default":"secondary",weight:t?"medium":"light",children:v[e]})}),(0,l.jsx)("span",{"aria-hidden":"true",className:(0,s.cn)("absolute top-1/2 start-0 h-3 w-0.5 -translate-y-1/2 bg-surface-tertiary",!c&&"bg-transparent")})]},e)})})}),a,(0,l.jsx)("div",{className:"mt-spacing-6 flex justify-center lg:block",children:(0,l.jsx)("div",{className:"w-full max-w-[342px] lg:max-w-[421px]",children:(0,l.jsxs)("div",{className:"min-h-[180px]",children:[p&&(0,l.jsx)("div",{className:"flex min-h-[180px] items-center",children:(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",children:T?"جاري تحميل معدلات الربح":"Loading profit rates"})}),!p&&b&&(0,l.jsx)("div",{className:"flex min-h-[180px] items-center",children:(0,l.jsx)(u.default,{variant:"h6",color:"primary",weight:"light",children:z})}),!p&&!b&&w&&(0,l.jsxs)("div",{className:"flex flex-col gap-between-text-3",children:[(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",children:H}),(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{dir:"ltr",className:"inline-block",children:(0,l.jsxs)(u.default,{variant:"h3",color:"primary",weight:"bold",className:"inline",children:[Number.isFinite(g)?Number(g.toFixed(4)).toString():"0","%"]})}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",className:"ms-1 inline",children:T?"معدل الربح":"Profit rate"})]}),d&&(0,l.jsx)("div",{className:"block",children:m.length>1?(0,l.jsx)("div",{className:"pb-[22px] pt-[32px]",children:(0,l.jsx)(x.A,{value:c,min:0,max:m.length-1,step:1,direction:T?"rtl":"ltr",tickPositions:B,floatingLabel:U,bottomFloatingLabel:T?"المدة":"Duration",ariaLabel:H,className:"h-[30px]",trackClassName:"h-[3px] bg-[#8A8A8A]",activeTrackClassName:"h-[3px] bg-[#C8102E] transition-[width] duration-200 ease-out",tickClassName:"h-[24px] w-[2px] bg-[#8A8A8A]",thumbClassName:"h-[26px] w-[26px] border-none bg-surface-default shadow-[0_4px_12px_rgba(0,0,0,0.16)] transition-[left,transform] duration-150 ease-out will-change-[left,transform]",floatingLabelClassName:(0,s.cn)("top-[-32px] text-label-secondary text-[16px] leading-[24px] font-medium transition-[left,transform] duration-150 ease-out",q),bottomFloatingLabelClassName:(0,s.cn)("top-[30px] text-label-tertiary text-[14px] leading-[20px] font-medium transition-[left,transform] duration-150 ease-out",q),onChange:F})}):(0,l.jsx)(u.default,{variant:"h5",color:"secondary",weight:"medium",children:U})})]}),!p&&!b&&!w&&(0,l.jsx)("div",{className:"flex min-h-[180px] items-center",children:(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",children:T?"لا توجد معدلات ربح متاحة حالياً":"No profit rates are available at the moment"})})]})})})]}):(0,l.jsx)(l.Fragment,{children:a}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mb-spacing-5 rounded-container-small bg-surface-tertiary p-spacing-4",children:(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",children:T?"لا يتم عرض معدلات الربح لوديعة سما لأنها تعتمد على المضاربة.":"Profit rates are not displayed for Sama Deposit because it is based on Mudaraba."})}),a]})},R=(e,a)=>"TextBulletPlugin"===e.PluginName?(0,l.jsx)("li",{className:"mb-spacing-4 ms-6",children:(0,l.jsx)(u.default,{variant:"h5",color:"secondary",children:e.data.text})},a):"IconBulletPlugin"===e.PluginName?(0,l.jsxs)("li",{className:"gap-spacing-3 flex items-center mb-spacing-4 last:mb-0",children:[(0,l.jsx)("div",{className:"w-8 h-8 rounded-full bg-surface-tertiary flex justify-center items-center",children:(0,l.jsx)(d.default,{type:"image",src:e.data.icon,IsApiFromData:!0,width:15,height:15,alt:e.data.icon_alt_text||e.data.icon_defaut_alt_text||`${e.data.text||"Icon"} icon`})}),(0,l.jsxs)(u.default,{variant:"h6",color:"secondary",children:[e.data.text,(0,l.jsx)("span",{className:"font-bold ms-1",children:e.data.bold})]})]},a):null,I=({data:e,childrenData:a=[],isProfitRatePopup:t=!1,parentCardData:i})=>{let{lang:r}=(0,o.useLang)(),s=(0,l.jsx)("div",{className:"bulleted",children:(0,l.jsx)("ul",{style:{listStyle:"disc"},children:a?.map(R)})});return(0,l.jsxs)("div",{className:"flex flex-col  ",children:[(0,l.jsxs)("div",{className:"imagwrapper overflow-hidden lg:h-[262px] h-[216px] w-full relative",children:[(0,l.jsx)(d.default,{responsiveHeight:"object-cover lg:h-[262px] h-[216px]",classname:"lg:h-[262px] h-[216px]",alt:e?.image,IsApiFromData:!0,type:"image",src:e?.image,width:756,height:262}),(0,l.jsx)("div",{className:"absolute inset-0  bg-modal-image"})]}),(0,l.jsxs)("div",{className:"lg:p-spacing-6 p-spacing-5",children:[(0,l.jsx)(u.default,{variant:"h3",color:"secondary",className:"pb-4",children:e?.title_popup||e?.title}
1),t?(0,l.jsx)(E,{cardTitle:i?.title||e?.title,children:s}):s]})]})};var F=t(21544),B=t(15217),T=t(86350),z=t(20092),H=t(27003);let W=({data:e,childrenData:a=[]})=>{let{isMobile:t}=(0,H.k)(),{lang:r}=(0,o.useLang)(),s=(0,i.useMemo)(()=>{if(!Array.isArray(a))return[];let e=a[0];var t=e?.data?.childrenData??[];let l=[];if(!t)return l;for(let e of t){let a=e.folder;for(let t of e.childrenData??[]){if(t.files?.length){let e=t.files[0].link;e&&t.folder&&l.push({type:a,year:t.folder,url:e})}for(let e of t.childrenData??[])if(e.files?.length){let i=e.files[0].link;i&&t.folder&&e.folder&&l.push({type:a,year:t.folder,quarter:e.folder,url:i})}}}return l},[a]),n=(0,i.useMemo)(()=>Array.from(new Set(s.map(e=>e.type))),[s]),[c,d]=(0,i.useState)(""),[m,h]=(0,i.useState)(""),[g,p]=(0,i.useState)(""),x=(0,i.useMemo)(()=>c?Array.from(new Set(s.filter(e=>e.type===c).map(e=>e.year))):[],[s,c]),f=(0,i.useMemo)(()=>Array.from(new Set(s.filter(e=>!!c&&e.type===c).filter(e=>!!m&&e.year===m).map(e=>e.quarter||"").filter(Boolean))),[s,c,m]);(0,i.useEffect)(()=>{h(""),p("")},[c]),(0,i.useEffect)(()=>{p("")},[m]),(0,i.useEffect)(()=>{m&&!x.includes(m)&&h("")},[x,m]),(0,i.useEffect)(()=>{g&&!f.includes(g)&&p("")},[f,g]);let v=(e,a)=>{let t=a.indexOf(e);return t>=0?String(t):""},b=(e,a)=>{let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>=0&&t<a.length?a[t]:""},[j,w]=(0,i.useState)(!1),[y,N]=(0,i.useState)(!1),C=""!==c&&x.length>0,k=""!==c&&""!==m&&f.length>0,A=""===c||C&&!m||k&&!g,D=()=>{let e=s.filter(e=>!c||e.type===c);if(e=e.filter(e=>!m||e.year===m),k&&(e=e.filter(e=>e.quarter===g)),e.length>0){let a=((e,a)=>{if(!a)return e||"";if(/^https?:\/\//i.test(a))return a;let t=(e||"").replace(/\/$/,""),l=a.replace(/^\//,"");return`${t}/${l}`})("https://www.bankboubyan.com",e[0].url);window.open(a,"_blank","noopener,noreferrer"),N(!1)}else N(!0);w(!0)};return(0,l.jsx)("div",{children:(0,l.jsxs)("form",{onSubmit:e=>{e.preventDefault(),D()},children:[(0,l.jsxs)("div",{className:"lg:flex lg:flex-col ",children:[(0,l.jsxs)("div",{className:t?"define":"  define",children:[(0,l.jsx)(u.default,{variant:"h3",color:"tertiary",weight:"light",children:e?.title}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",className:"lg:my-[24px] mt-[24px] mb-[32px]",as:"div",children:(0,F.Q)(e?.description)})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 font-light mb-spacing-5",children:[(0,l.jsx)(B.A,{label:"en"===r?"Report type":"نوع التقرير",name:"type",type:"select",value:v(c,n.length>0?n:["-"]),onChange:e=>{d(b(e.target.value,n)),h(""),p(""),w(!1),N(!1)},options:n.length>0?n:["-"],width:"w-full",inputClass:"border-border-tertiary text-label-placeholder",hasBottomPadding:!0}),(0,l.jsx)(B.A,{label:"en"===r?"Report Year":"سنة التقرير",name:"year",type:"select",value:v(m,C?x:["-"]),onChange:e=>{p(""),h(b(e.target.value,x)),w(!1),N(!1)},options:C?x:["-"],width:"w-full",inputClass:"border-border-tertiary text-label-placeholder disabled:cursor-not-allowed",hasBottomPadding:!0,disabled:!C},`year-${c}`),(0,l.jsx)(B.A,{label:"en"===r?"Report Quarter":"ربع التقرير",name:"quarter",type:"select",value:v(g,k?f:["-"]),onChange:e=>{p(b(e.target.value,f)),w(!1),N(!1)},options:k?f:["-"],width:"w-full",inputClass:"border-border-tertiary text-label-placeholder disabled:cursor-not-allowed",hasBottomPadding:!0,dropDownUp:t,disabled:!k},`quarter-${c}-${m}`)]}),(0,l.jsx)("div",{id:"searchaction",className:"m-auto",children:(0,l.jsx)(T.A,{type:"btnprimary",size:"large",colorvariant:"bgprimary",onClick:D,disabled:A,className:"lg:w-auto w-full",children:"ar"===r?"عرض التقرير":"View Report"})})]}),j&&y&&(0,l.jsx)("div",{className:"lg:mt-spacing-8 mt-spacing-6",children:(0,l.jsx)(z.A,{})})]})})};var V=t(59016);let O=({image:e,title:a,description:t})=>{let{lang:i}=(0,o.useLang)();return(0,l.jsxs)("div",{className:"flex flex-col  overflow-auto  ",children:[(0,l.jsxs)("div",{className:"imagwrapper  lg:h-[262px] h-[216px] w-full relative",children:[(0,l.jsx)(d.default,{responsiveHeight:"object-cover lg:h-[262px] h-[216px]  ",classname:"lg:h-[262px] h-[216px]",alt:e,type:"image",src:e,IsApiFromData:!0,width:756,height:262}),(0,l.jsx)("div",{className:"absolute inset-0  bg-modal-image"})]}),(0,l.jsxs)("div",{className:"lg:p-spacing-6 p-spacing-5 ",children:[(0,l.jsx)(u.default,{variant:"h3",color:"secondary",className:"pb-4",children:a}),(0,l.jsx)("div",{className:"mb-spacing-6 editor--overide",children:(0,F.Q)(t)})]})]})};var Z=t(55006);let q=({url:e,filename:a="download.pdf",withCredentials:t=!1,onError:i,children:r})=>(0,l.jsx)("a",{href:"https://www.bankboubyan.com"+e,download:!0,target:"_blank",children:r??"Download"});var U=t(95166);let Y=({data:e,childrenData:a})=>(0,l.jsxs)("div",{className:"px-spacing-5 lg:px-spacing-7 mt-spacing-4",children:[(0,l.jsxs)("div",{className:"lg:flex lg:flex-col lg:gap-spacing-4",children:[(0,l.jsx)(u.default,{variant:"h3",color:"tertiary",weight:"light",children:e.title}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",className:"mt-spacing-5 mb-spacing-6 lg:m-0 ",as:"div",children:(0,F.Q)(e.text)}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(U.A,{className:"lg:w-auto w-full",type:"btnsecondaryborder",size:"large",colorvariant:"bgsecondaryborder",children:(0,l.jsxs)("div",{className:"flex gap-spacing-1",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.92969 1.5C9.20583 1.5 9.42969 1.72386 9.42969 2V10.1262L12.5761 6.97978C12.7714 6.78452 13.088 6.78452 13.2832 6.97978C13.4785 7.17504 13.4785 7.49162 13.2832 7.68689L9.28324 11.6869C9.08798 11.8821 8.7714 11.8821 8.57613 11.6869L4.57613 7.68689C4.38087 7.49162 4.38087 7.17504 4.57613 
16.97978C4.7714 6.78452 5.08798 6.78452 5.28324 6.97978L8.42969 10.1262V2C8.42969 1.72386 8.65355 1.5 8.92969 1.5ZM2.42969 14C2.42969 13.7239 2.65355 13.5 2.92969 13.5H14.9297C15.2058 13.5 15.4297 13.7239 15.4297 14C15.4297 14.2761 15.2058 14.5 14.9297 14.5H2.92969C2.65355 14.5 2.42969 14.2761 2.42969 14Z",fill:"#C8102E"})})}),(0,l.jsx)("span",{className:"text-label-primary text-font-size-h6 leading-font-line-height-h6 font-bold flex items-center",children:(0,l.jsx)(q,{url:e.book,filename:"Fatwa",children:e.label})})]})})})]}),(0,l.jsxs)("div",{className:"lg:mt-spacing-7 mt-spacing-6",children:[(0,l.jsx)(u.default,{variant:"h5",color:"secondary",weight:"light",className:"lg:mb-spacing-5 mb-spacing-4",children:"Table of content"}),a?.map((e,t)=>(0,l.jsx)(Z.A,{card:e,index:t,lastCard:a.length-1===t,mobilePopUp:!0},t))]})]}),K=({image:e,title:a,ios_link:t,android_link:i})=>{let{lang:r}=(0,o.useLang)();return t||i?(0,l.jsxs)("div",{className:"flex flex-col  ",children:[(0,l.jsxs)("div",{className:"imagwrapper overflow-hidden lg:h-[262px] h-[216px] w-full relative",children:[(0,l.jsx)(d.default,{responsiveHeight:"object-cover lg:h-[262px] h-[216px]",classname:"lg:h-[262px] h-[216px]",alt:e,type:"image",src:e,width:756,height:262,IsApiFromData:!0}),(0,l.jsx)("div",{className:"absolute inset-0  bg-modal-image"})]}),(0,l.jsxs)("div",{className:"lg:px-spacing-6 px-spacing-5 lg:pb-spacing-6 pb-spacing-5",children:[(0,l.jsx)(u.default,{variant:"h3",color:"secondary",className:"py-8",children:a}),(0,l.jsxs)("div",{className:"flex lg:flex-row flex-col gap-spacing-4 justify-center",children:[t&&(0,l.jsx)("div",{className:"flex bg-surface-tertiary grow items-center justify-center rounded-radius-2",children:(0,l.jsx)(h,{description:"ar"===r?"تحميل على":"Download on the",link:t,name:"ar"===r?"متجر التطبيقات":"App Store",image:(0,l.jsxs)("svg",{width:"33",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.4969 1.90735e-06H9.50311C2.91111 1.90735e-06 0.5 2.41112 0.5 9.00315L0.5 22.9971C0.5 29.589 2.91111 32 9.50311 32H23.4925C30.0845 32 32.5 29.589 32.5 22.9971V9.00315C32.5 2.41112 30.0889 1.90735e-06 23.4969 1.90735e-06Z",fill:"black"}),(0,l.jsx)("path",{d:"M22.0021 15.7203C22.0206 14.3552 22.793 13.0635 24.0183 12.3484C23.2453 11.3006 21.9506 10.6362 20.6035 10.5962C19.1668 10.453 17.774 11.4122 17.0418 11.4122C16.2955 11.4122 15.1683 10.6104 13.9545 10.6341C12.3723 10.6826 10.8973 11.5365 10.1276 12.8494C8.47287 15.5687 9.70711 19.565 11.2922 21.7631C12.0852 22.8394 13.012 24.0417 14.2248 23.999C15.4115 23.9523 15.8547 23.2807 17.2872 23.2807C18.7064 23.2807 19.1223 23.999 20.3596 23.9719C21.633 23.9523 22.4354 22.8908 23.2006 21.8043C23.7704 21.0374 24.2088 20.1898 24.4997 19.2929C23.0032 18.6921 22.0038 17.2626 22.0021 15.7203Z",fill:"white"}),(0,l.jsx)("path",{d:"M19.6649 9.15065C20.3592 8.35949 20.7013 7.3426 20.6185 6.31592C19.5577 6.42167 18.5778 6.90289 17.8741 7.66369C17.186 8.40703 16.8279 9.40603 16.8956 10.3935C17.9567 10.4038 19 9.93567 19.6649 9.15065Z",fill:"white"})]})})}),i&&(0,l.jsx)("div",{className:"flex bg-surface-tertiary grow items-center justify-center rounded-radius-2",children:(0,l.jsx)(h,{description:"ar"===r?"احصل عليه":"Get it on",link:i,name:"ar"===r?"جوجل بلاي":"Google Play",image:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.9969 1.90735e-06H9.00311C2.41111 1.90735e-06 0 2.41112 0 9.00315L0 22.9971C0 29.589 2.41111 32 9.00311 32H22.9925C29.5845 32 32 29.589 32 22.9971V9.00315C32 2.41112 29.5889 1.90735e-06 22.9969 1.90735e-06Z",fill:"white"}),(0,l.jsx)("path",{d:"M15.1543 15.229L7.87891 22.951C7.87918 22.9526 7.87973 22.9539 7.88 22.9555C8.10312 23.794 8.86895 24.4114 9.77789 24.4114C10.1412 24.4114 10.4824 24.3131 10.7749 24.1407L10.7981 24.1271L18.9875 19.4015L15.1543 15.229Z",fill:"#EA4335"}),(0,l.jsx)("path",{d:"M22.515 13.9143L22.508 13.9095L18.9725 11.8599L14.9893 15.4043L18.9863 19.4009L22.5032 17.3717C23.1198 17.0388 23.5384 16.3888 23.5384 15.6392C23.5384 14.895 23.1254 14.2482 22.515 13.9143Z",fill:"#FBBC04"}),(0,l.jsx)("path",{d:"M7.87825 8.29504C7.83451 8.45631 7.81152 8.62524 7.81152 8.80065V22.4456C7.81152 22.6207 7.83424 22.7902 7.87852 22.9509L15.4043 15.4265L7.87825 8.29504Z",fill:"#4285F4"}),(0,l.jsx)("path",{d:"M15.2077 15.6233L18.9734 11.8587L10.7933 7.11605C10.496 6.93797 10.149 6.83519 9.77767 6.83519C8.86874 6.83519 8.10188 7.4537 7.87869 8.2932C7.87842 8.29402 7.87842 8.29457 7.87842 8.29532L15.2077 15.6233Z",fill:"#34A853"})]})})})]})]})]}):(0,l.jsx)(u.default,{variant:"h5",color:"secondary",children:"ar"===r?"لم يتم العثور على نتائج":"No Results Found"})};var G=t(56516),Q=t(77086),X=t(17016),J=t(54257),ee=t(17651),ea=t(9751),et=t(50825),el=t(97408),ei=t(19658),er=t(66509);let es={customerName:"",customerCivilID:"",customerMobile:"",customerEmail:""};function en(e){return e.replace(/\D+/g,"")}function ec(e){if(!e)return;let a=String(e);if(/^https?:\/\//i.test(a))return a;let t="https://www.bankboubyan.com".replace(/\/$/,"");return t?`${t}/${a.replace(/^\//,"")}`:a.replace(/^\//,"/")}
1let ed=({title:e,product_name:a,productid:t,description:r,text:c,pdf_label:m,pdf:h,pdf_label2:g,pdf2:p,attachments:x,comment_box:f,deeplink_title:v,deeplink_description:b,deeplink_label:j,deeplink_url:w,image:y})=>{let{lang:N}=(0,o.useLang)(),C=(0,X.d)(),[k,A]=(0,i.useState)(es),[D,M]=(0,i.useState)({}),[_,$]=(0,i.useState)({}),[P,L]=(0,i.useState)(!1),{getToken:S}=(0,J.y)("account_req_form"),E=(0,i.useRef)(!1),{isMobile:R}=(0,H.k)(),I=(0,i.useMemo)(()=>"ar"===N?{subtitle:"املأ بياناتك أدناه وسنتصل بك قريبًا",customerName:"الاسم الكامل",customerCivilID:"الرقم المدني",customerMobile:"رقم الهاتف",customerEmail:"البريد الإلكتروني (اختياري)",submit:"إرسال",nameRequired:"الاسم مطلوب",nameInvalid:"يرجى إدخال اسم صحيح (2–60 حرفًا)",civilIdRequired:"الرقم المدني مطلوب",civilIdInvalid:"الرجاء تقديم بطاقة هوية مدنية صالحة",mobileRequired:"رقم الهاتف مطلوب",mobileInvalid:"الرجاء تقديم رقم جوال صالح",emailInvalid:"الرجاء إدخال بريد إلكتروني صالح",formSummaryTitle:"يرجى تصحيح الأخطاء التالية:",captchaNote:"هذا الموقع محمي بواسطة reCAPTCHA وتطبق  من Google.",success:"تم إرسال الرسالة بنجاح، سيتم التواصل معك في أقرب وقت",error:"حدث خطأ ما. حاول مرة أخرى.",appreciate:"نشكر اهتمامكم الكبير بخدماتنا. نعمل على طلبك."}:{subtitle:"Fill out your details below and we will call you back soon",customerName:"Full name",customerCivilID:"Civil ID",customerMobile:"Mobile number",customerEmail:"Email (Optional)",submit:"Submit",nameRequired:"Full name is required",nameInvalid:"Enter a valid name (2–60 characters)",civilIdRequired:"Civil ID is required",civilIdInvalid:"Please provide  a valid Civil ID ",mobileRequired:"Mobile number is required",mobileInvalid:"please Provide a valid mobile number",emailInvalid:"Enter a valid email",formSummaryTitle:"Please fix the following:",captchaNote:"This site is protected by reCAPTCHA and the Google ",success:"Message submitted and sent successfully. You will be contacted soon.",error:"Something went wrong. Try again.",appreciate:"We appreciate your great interest in our services. We are working on your request"},[N]),T=(0,i.useMemo)(()=>{if(x?.length)return x.filter(e=>e?.label&&e?.url).map(e=>({label:String(e.label),url:ec(e.url)||""})).filter(e=>!!e.url);let e=[],a=ec(h);m&&a&&e.push({label:String(m),url:a});let t=ec(p);return g&&t&&e.push({label:String(g),url:t}),e},[x,h,m,p,g]),z=(0,i.useCallback)((e,a)=>{switch(e){case"customerName":{let e=a.replace(/\s+/g," ").trim();if(!e)return I.nameRequired;if(e.length<2||e.length>60||!ee.VU.test(e))return I.nameInvalid;return}case"customerCivilID":{let e=en(a);if(!e)return I.civilIdRequired;if(!ee.cz.test(e)||!(0,Q.l)(e))return I.civilIdInvalid;return}case"customerMobile":{let e=en(a);if(!e)return I.mobileRequired;if(!ee.b8.test(e))return I.mobileInvalid;return}case"customerEmail":{let e=a.trim();if(!e)return;if(!ee.Uo.test(e))return I.emailInvalid;return}default:return}},[I]),W=()=>{window.location.href=w},V=(0,i.useCallback)(e=>{let a={};return Object.keys(e).forEach(t=>{let l=z(t,e[t]);l&&(a[t]=l)}),a},[z]),O=(e,a=!1,t)=>l=>{let i,r="string"==typeof l?l:String(l??""),s="customerName"===e?r:a?(i=en(r),!t||t<=0||i.length<=t?i:i.slice(0,t)):r;A(a=>({...a,[e]:s})),M(a=>{let t={...a};if(_[e]){let a=z(e,s);a?t[e]=a:delete t[e]}return t})},Z=e=>{$(a=>({...a,[e]:!0})),M(a=>{let t=z(e,k[e]),l={...a};return t?l[e]=t:delete l[e],l})},q=!P&&k.customerName.trim().length>0&&k.customerCivilID.trim().length>0&&k.customerMobile.trim().length>0&&0===Object.keys(D).length,U=async l=>{if(l.preventDefault(),E.current)return;E.current=!0;let i=V(k);if(Object.keys(i).length>0){M(i),$({customerName:!0,customerCivilID:!0,customerMobile:!0,customerEmail:!0}),E.current=!1;return}L(!0);try{let l=new URLSearchParams(window.location.search),i=(0,er.$n)(l),r={recaptchaResponse:await S(),customerName:k.customerName,customerCivilID:k.customerCivilID,customerMobile:k.customerMobile,customerEmail:k.customerEmail||"",...i,product1ID:String(t??""),product1Name:a??"",Comment:f??"",page_title:e??"",protocol:window.location.protocol,host:window.location.host,location:window.location.pathname.replace(/%20/g,"")},s=await fetch(`https://www.bankboubyan.com/${N}/api/applynow/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!s.ok)throw Error(await s.text());let n=await s.json();200===n.status_code?((0,er.ao)(),n.data?.errorCode===-20?C.success(I.appreciate,{analyticsId:"account-request-appreciate-success",analyticsState:"success"}):n.data?.errorCode===0&&C.success(I.success,{analyticsId:"account-request-submit-success",analyticsState:"success"})):C.error(I.error,{analyticsId:"account-request-submit-error",analyticsState:"error"}),A(es),$({}),M({})}catch(e){C.error(I.error,{analyticsId:"account-request-request-error",analyticsState:"error"})}finally{L(!1),E.current=!1}};return(0,l.jsxs)("div",{className:"flex size-full flex-col-reverse  lg:flex-row    ",children:[(0,l.jsx)("div",{className:"flex flex-col  flex-1",children:(0,l.jsxs)("form",{onSubmit:U,noValidate:!0,className:(0,n.A)("p-8",el.p.exclude),children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,l.jsx)(u.default,{variant:"h3",color:"secondary",weight:"bold",children:e}),(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"light",children:r})]}),(0,l.jsxs)("div",{className:"flex justify-between flex-wrap gap-spacing-5 mt-spacing-5",children:[(0,l.jsx)("div",{className:"lg:w-[350px] w-full flex flex-col gap-spacing-2",children:(0,l.jsx)(B.A,{type:"text",label:I.customerName,value:k.customerName,onChange:e=>O("customerName")(e.target?.value??e),onBlur:()=>Z("customerName"),required:!0,error:_.customerName?D.customerName:void 0,name:"fullName",inputClass:"lg:!rounded-[8px] rounded-[4px] border-border-tertiary","aria-invalid":!!D.customerName,"aria-describedby":"fullName-error"})}),(0,l.jsx)("div",{className:"lg:w-[350px] w-full flex flex-col gap-spacing-2",children:(0,l.jsx)(B.A,{type:"text",inputMode:"numeric",pattern:"^[0-9]*$",label:I.customerCivilID,value:k.customerCivilID,onChange:e=>O("customerCivilID",!0,12)(e.target?.value??e),onBlur:()=>Z("customerCivilID"),required:!0,error:_.customerCivilID?D.customerCivilID:void 0,name:"civilId",maxLength:12,inputClass:"lg:!rounded-[8px] rounded-[4px] border-border-tertiary","aria-invalid":!!D.customerCivilID,"aria-describedby":"
1civilId-error"})}),(0,l.jsx)("div",{className:"lg:w-[350px] w-full flex flex-col gap-spacing-2",children:(0,l.jsx)(B.A,{type:"text",inputMode:"tel",pattern:"^[0-9]*$",label:I.customerMobile,value:k.customerMobile,onChange:e=>O("customerMobile",!0,8)(e.target?.value??e),onBlur:()=>Z("customerMobile"),required:!0,error:_.customerMobile?D.customerMobile:void 0,name:"mobile",maxLength:8,inputClass:"lg:!rounded-[8px] rounded-[4px] border-border-tertiary","aria-invalid":!!D.customerMobile,"aria-describedby":"mobile-error"})}),(0,l.jsx)("div",{className:"lg:w-[350px] w-full flex flex-col gap-spacing-2",children:(0,l.jsx)(B.A,{type:"email",label:I.customerEmail,value:k.customerEmail,onChange:e=>O("customerEmail")(e.target?.value??e),onBlur:()=>Z("customerEmail"),error:_.customerEmail?D.customerEmail:void 0,name:"email",inputClass:"lg:!rounded-[8px] rounded-[4px] border-border-tertiary","aria-invalid":!!D.customerEmail,"aria-describedby":"email-error",autoComplete:"email"})})]}),(0,l.jsxs)("div",{className:"space-y-3 mt-spacing-4",children:[(0,l.jsx)("div",{children:(0,l.jsx)("button",{id:"account-request-submit",type:"submit",disabled:!q,"data-analytics-button":"account-request-submit","data-analytics-type":"lead",className:`py-spacing-4 px-spacing-7 w-full lg:w-[153px] lg:rounded-[8px] rounded-[4px] ${q?"bg-surface-primary hover:opacity-90 text-label-default":"bg-action-disabled cursor-not-allowed"} flex items-center justify-center`,children:P?(0,l.jsxs)("svg",{className:"animate-spin h-5 w-5 text-surface-default",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","aria-label":"loading",children:[(0,l.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,l.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}):(0,l.jsx)(u.default,{variant:"h6",color:"default",weight:"bold",align:"text-center",children:I.submit})})}),(0,l.jsx)("div",{className:"w-full lg:w-[420px]",children:(0,l.jsxs)(u.default,{variant:"span",color:"secondary",weight:"regular",children:[I.captchaNote," ",(0,l.jsx)("a",{href:`https://policies.google.com/privacy?hl=${N}`,className:"text-label-primary",children:"ar"===N?"سياسة الخصوصية":"Privacy Policy"})," ","ar"===N?"و":"and"," ",(0,l.jsx)("a",{href:`https://policies.google.com/terms?hl=${N}`,className:"text-label-primary",children:"ar"===N?"شروط الخدمة":"Terms of Service"})," ","ar"===N?"تنطبق.":"apply."]})})]})]})}),(0,l.jsx)("div",{className:"min-h-full min-w-[2px] bg-surface-tertiary hidden lg:block"}),v?(0,l.jsxs)("div",{className:(0,n.A)(R?"relative":"lg:flex mt-0 lg:flex-col lg:flex-1"),children:[(0,l.jsxs)("div",{className:"lg:hidden flex items-center gap-4 justify-between bg-surface-tertiary",children:[(0,l.jsx)("div",{className:"relative",children:(0,l.jsx)(d.default,{src:y,alt:j,type:"image",IsApiFromData:!0,width:163,height:163,classname:"w-[164px]"})}),(0,l.jsxs)("div",{className:"flex flex-col z-30",children:[(0,l.jsx)(u.default,{variant:"h5",color:"secondary",children:v}),(0,l.jsx)(u.default,{variant:"p",color:"secondary",className:"mt-3 mb-4",children:b}),(0,l.jsx)("div",{className:"lg:max-w-[240px] max-w-[109px]",children:(0,l.jsx)(ei.$,{id:"account-request-deeplink",className:"bg-button-background-secondary text-button-label-default",variant:"secondary",size:"small",color:"white",trackingName:"account-request-deeplink",trackingType:"non-lead",onClick:W,children:j})})]})]}),(0,l.jsxs)("div",{className:"relative w-full lg:block hidden",children:[(0,l.jsx)("div",{className:"absolute z-0 top-0 end-0 h-full w-full",children:(0,l.jsx)(d.default,{src:y,alt:j,type:"image",IsApiFromData:!0,width:530,height:750,classname:"w-[530px] h-[750px]"})}),(0,l.jsx)("div",{className:"px-sections-padding-2 py-spacing-7 relative z-20",children:(0,l.jsxs)("div",{className:"flex gap-6 flex-col",children:[(0,l.jsx)(u.default,{variant:"h3",color:"default",children:v}),(0,l.jsx)(u.default,{variant:"h6",color:"default",children:b}),(0,l.jsx)(ei.$,{id:"account-request-deeplink",className:"lg:max-w-[240px] border-0 transition-colors bg-action-tertiary hover:bg-action-primary hover:text-label-default mt-4 text-button-background-secondary",variant:"secondary",color:"white",trackingName:"account-request-deeplink",trackingType:"non-lead",onClick:W,children:j})]})})]})]}):(0,l.jsxs)("div",{className:"flex flex-col justify-center items-start  p-8   flex-1",children:[(0,l.jsx)("div",{className:"flex flex-col gap-spacing-2",children:(0,l.jsx)("div",{className:(0,s.cn)("editor--overide lg:px-0 px-3 relative flex flex-col gap-spacing-4","text-label-tertiary","[&>h4]:text-label-secondary [&_h4]:text-font-size-h4 [&_h4]:leading-font-line-height-h4"),children:(0,F.Q)(c||"")})}),T.length>0&&(0,l.jsx)("div",{className:"flex flex-col items-start gap-spacing-3 mt-8 w-full",children:T.map((e,a)=>(0,l.jsxs)("div",{className:(0,s.cn)("flex gap-spacing-4 bg-surface-tertiary p-spacing-5 lg:p-spacing-6 lg:rounded-container-small roun
1ded-[8px] items-center justify-between",R&&"w-full"),children:[(0,l.jsxs)("div",{className:"flex justify-start items-center gap-spacing-4",children:[G.A,(0,l.jsx)(u.default,{variant:"h5",color:"secondary",className:"truncate",children:e.label})]}),(0,l.jsx)("a",{className:"bg-surface-default rounded-full p-spacing-2 text-label-secondary",href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":R?"Open file":"Download file",children:R?(0,l.jsx)(ea.A,{size:16,strokeWidth:2}):(0,l.jsx)(et.A,{size:16,strokeWidth:2})})]},a))})]})]})},eo=({data:e})=>{let{closeModal:a}=a9(),{lang:t}=(0,o.useLang)();return(0,l.jsxs)("div",{className:"flex flex-col justify-center gap-8 items-start px-spacing-5 lg:px-spacing-7 lg:pb-spacing-7 pb-spacing-5",children:[(0,l.jsxs)("div",{className:"gap-4 flex flex-col",children:[(0,l.jsx)(u.default,{variant:"h3",weight:"medium",color:"secondary",children:e?.title||"You're leaving Boubyan"}),(0,l.jsx)(u.default,{variant:"h6",weight:"light",color:"secondary",children:e?.description||"This link leads to an external site. While we only share links we believe are helpful, we can’t guarantee the content or security of external websites."})]}),(0,l.jsxs)("div",{className:"flex flex-col lg:flex-row gap-4 w-full",children:[(0,l.jsx)(ei.$,{href:e?.external_link,children:e?.button_text||"Continue to external website"}),(0,l.jsx)(ei.$,{onClick:()=>{a?.()},variant:"secondary",children:"en"===t?"Go back":"الرجوع"})]})]})};var eu=t(5772);let em={src:"/_next/static/media/phone.113dc458.png",height:17,width:16,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEXGDyPHDi3HDy3JDSzJDi3GEDPHDy3GDy3IEC0utDdEAAAACXRSTlMBgGokMhBUR089yeFlAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMElEQVQImSWKQQ4AMAjCAFH3/xcvYz01aQGx8Nizing0EdAsNICixXzm9uRrUa99LhIJAHbJg9VQAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},eh={src:"/_next/static/media/marker-pin-03.d21944e7.png",height:17,width:16,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAGFBMVEVMaXHHDizHDy3GDi3HDizGDizEDS3DDysCZktNAAAACHRSTlMAelxuETcfQNC2UIUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAxSURBVAiZJcm5EcAwDMRA3EO6/449kpBsAKhsFcjMjGAz0Zel2mjPs1sbwMkVpOfrBxcdAH/L8yiNAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},eg=({partnerData:e,childrenData:a})=>{let{isMobile:t}=(0,H.k)(),{lang:i}=(0,o.useLang)();return(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:(0,n.A)("relative lg:items-center h-full    w-auto  items-stretch lg:rounded-container-small flex lg:flex-row flex-col "),children:[(0,l.jsxs)("div",{className:" h-full flex flex-col lg:px-6 px-0 lg:w-[480px] lg:max-w-[480px]  ",children:[(0,l.jsx)(d.default,{type:"image",src:e?.logo,alt:e?.name,width:t?128:200,height:t?128:200,IsApiFromData:!0}),(0,l.jsxs)("div",{className:"lg:gap-8 gap-4  flex flex-col",children:[(0,l.jsx)(u.default,{variant:"h2",weight:"light",align:"text-start",color:"secondary",children:e?.name}),(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[e?.number&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-row justify-start items-center gap-4 w-[196px]",children:[(0,l.jsx)("div",{className:"bg-surface-tertiary p-2 rounded-full",children:(0,l.jsx)(eu.default,{src:em,alt:"phone",width:16,height:16,style:{maxWidth:"100%",height:"auto"},unoptimized:!0})}),e&&(0,l.jsx)(u.default,{variant:"h6",weight:"light",color:"secondary",children:"ar"===i?`‪${e?.number}‬`:`${e?.number}`})]})}),e?.location&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-row justify-start items-center gap-4 w-full",children:[(0,l.jsx)("div",{className:"bg-surface-tertiary p-2 rounded-full",children:(0,l.jsx)(eu.default,{src:eh,alt:"address",width:16,height:16,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)(u.default,{variant:"h6",weight:"light",color:"secondary",children:e?.location})]})})]}),(0,l.jsx)("div",{children:e.link&&(0,l.jsx)(ei.$,{size:t?"medium":"large",variant:"primary",color:"red",href:e.link,children:e?.label})})]})]}),(0,l.jsx)("div",{className:"lg:w-0.5 lg:block hidden  border-height-modal lg:rotate-0 rotate-90 bg-surface-tertiary"}),(0,l.jsxs)("div",{className:" col-span-1 flex flex-col items-start h-auto lg:mt-0 mt-8  lg:px-8",children:[(0,l.jsx)(u.default,{variant:"h4",weight:"light",color:"secondary",children:e?.description}),a&&(0,l.jsx)("div",{className:"gap-4 mt-5",children:a?.map((e,a)=>(0,l.jsxs)("div",{className:"flex flex-row gap-4 items-center",children:[(0,l.jsx)(d.default,{src:e.data.icon,alt:"phone",width:20,height:20,type:"image",IsApiFromData:!0}
1),(0,l.jsx)(u.default,{variant:"h5",weight:"light",color:"secondary",className:"leading-line-height-5",as:"div",children:(0,F.Q)(e.data.title)},a)]},`${e.data.title}-${a}`))})]})]})})};var ep=t(76565),ex=t(69954),ef=t(83564),ev=t(16684),eb=t(64502),ej=t(10623),ew=t(16425),ey=t(80409);let eN=({children:e,background_color:a="secondary",no_padding_bottom:t=!1,no_padding_top:i=!1,is_dark:r,...n})=>(0,l.jsx)(ep.A,{noContainer:!0,noXPadding:!0,...n,noTopPadding:i,noBottomPadding:t,children:(0,l.jsx)(ep.A,{classname:(0,s.cn)("overflow-hidden max-lg:py-spacing-5"),background_color:a,containerClassname:"flex justify-center items-center",noXPadding:!0,noBottomPadding:!0,noTopPadding:!0,noContainer:!0,children:(0,l.jsx)("div",{className:"max-w-[1440px] w-full overflow-x-visible lg:ps-[150px]",children:e})})});var eC=t(93231),ek=t(91352),eA=t(44208),eD=t(56527),eM=t(56681),e_=t(77544),e$=t(9029),eP=t(25240),eL=t(33283),eS=t(79753),eE=t(66900),eR=t(48853),eI=t(60396),eF=t(69974),eB=t(49279),eT=t(9791),ez=t(21139),eH=t(49241),eW=t(76666);let eV=({icon:e,title:a,description:t,link:i,link_label:r})=>(0,l.jsxs)("div",{className:"px-spacing-6 py-spacing-5 rounded-container-large lg:h-auto bg-surface-tertiary",children:[e&&(0,l.jsx)(d.default,{type:"image",src:e,alt:`${e}-Core benefits`,IsApiFromData:!0,width:40,height:40,responsiveHeight:"mb-[24px]",style:{maxWidth:"none"}}),(0,l.jsx)(u.default,{variant:"h4",color:"secondary",weight:"medium",className:"mb-[8px]",children:a}),(0,l.jsx)(u.default,{className:"mb-6",color:"tertiary",weight:"light",variant:"h5",children:t}),i&&(0,l.jsx)("a",{rel:"nofollow",className:"text-label-links font-medium",href:i,children:r})]});var eO=t(75751);let eZ=({childrenData:e,data:a,is_button_visible:t,imgurl:r})=>{let s=a.image?"https://www.bankboubyan.com"+a.image:r,c={backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};return(0,l.jsxs)("div",{className:"h-full mb-16 lg:mb-0",children:[(0,l.jsx)(eO.default,{title:a.title,description:a.description,className:"mb-spacing-5 lg:mb-spacing-7 px-spacing-5",description_color:"tertiary",title_color:"secondary",is_centered_mobile:!0}),(0,l.jsx)("div",{className:"lg:container",children:(0,l.jsxs)("div",{className:"relative lg:flex flex-col lg:justify-center h-[740px] lg:h-auto",children:[(0,l.jsx)("div",{className:"lg:w-[760px] lg:h-[436px] h-[390px] relative self-center",style:c,children:(0,l.jsx)("div",{className:"bg-[linear-gradient(0deg,_#fff_5.36%,_rgba(255,255,255,0)_70.76%)] absolute inset-0"})}),(0,l.jsx)("div",{className:(0,n.A)("mt-[-195px] lg:top-[230px]","w-full  lg:absolute  relative lg:mt-0 flex justify-center lg:block"),children:(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 lg:gap-spacing-7 gap-spacing-5 max-w-[315px] lg:max-w-[1140px]",children:e?.map((e,a)=>(0,i.createElement)(eV,{...e.data,key:`${a} - ${e.data}`}))})})]})})]})},eq=({data:e,childrenData:a})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(ep.A,{children:[(0,l.jsx)(eO.default,{title:e?.title||"",description:e?.description,description_color:"tertiary",title_color:"secondary",className:"mb-[30px] lg:mb-spacing-7"}),(0,l.jsxs)("div",{className:"flex flex-col max-w-[746px] mx-auto justify-center",children:[(0,l.jsx)("section",{className:"flex flex-col gap-spacing-5 p-spacing-6 border border-border-tertiary rounded-container-small lg:rounded-container-large lg:p-spacing-7",children:a?.map(({data:e},a)=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-4 items-start justify-start",children:[!e?.logo&&(0,l.jsx)("div",{className:"flex flex-none justify-center items-center size-12 lg:size-16 rounded-full bg-surface-tertiary",children:(0,l.jsx)(u.default,{weight:"medium",variant:"h4",className:"!text-label-primary",children:a+1})}),e?.logo&&(0,l.jsx)("div",{className:"flex flex-none justify-center items-center rounded-full bg-surface-tertiary p-3",children:(0,l.jsx)(d.default,{src:e?.logo,alt:"logo",type:"image",width:24,height:24,classname:"size-6",mediaClassName:"size-6"})}),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-2 self-center",children:[(0,l.jsx)(u.default,{variant:"h5",weight:"medium",color:"tertiary",children:e?.title}),(0,l.jsx)(u.default,{variant:"h6",weight:"light",color:"tertiary",children:e?.description})]})]},`${a}-${e?.title}`)}))}),e?.label&&(0,l.jsx)("div",{className:"mt-8 self-center",children:(0,l.jsx)(ei.$,{href:e?.link,variant:"secondary",color:"red",children:e?.label})})]})]})});var eU=t(47023),eY=t(97894),eK=t(32806);let eG=({data:e,childrenData:a})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-7 items-start lg:items-center lg:mb-within-component-7 mb-within-components-5",children:[(0,l.jsx)("div",{className:"max-lg:px-spacing-5",children:(0,l.jsx)(eO.default,{title:e?.title||"",description:e?.description,is_centered_mobile:!0})}),(0,l.jsx)(eK.default,{childrenData:a})]})});var eQ=t(29892),eX=t(9935);let eJ=({title:e,description:a,title_color:t,description_color:i,childrenData:r=[],...s})=>(0,l.jsxs)("div",{className:"flex w-full flex-col gap-spacing-5 lg:gap-spacing-7",...s,children:[(0,l.jsx)(eO.default,{title:e,description:a,title_color:t,description_color:i,is_centered_mobile:!0,className:"mt-9"}),(0,l.jsx)("div",{className:"grid grid-cols-1 content-center items-center justify-center gap-spacing-5 lg:grid-cols-3 lg:gap-spacing-7",children:r.map((e,a)=>(0,l.jsx)(eX.default,{...e?.data,...e?.variant,childrenData:e?.childrenData},`ac-${e?.uniqueid??a}`))})]});var e0=t(67154);let e1=({title:e,description:a,childrenData:t,...i})=>(0,l.jsxs)("div",{className:"",...i,children:[(0,l.jsx)(eO.default,{title:e,description:a}),(0,l.jsx)("div",{className:"flex justify-center gap-[24px] lg:pt-spacing-7 pt-spacing-5 flex-wrap",children:t.map((e,a)=>{let t=e?.variant?.color??(a%2?"yellow":"blue");return(0,l.jsx)(e0.default,{...e.data,...e.variant,icon_color:t},"prc"+a)})})]});var e2=t(67586);let e3=({data:e,childrenData:a,gridcols:t})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eO.default,{description:e?.description,title:e?.title||"",description_color:"tertiary"}),(0,l.jsx)("div",{className:`grid grid-cols-1 lg:${{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"}[t??1]||"grid-cols-1"} lg:gap-spacing-7 justify-center gap-spacing-5`,children:a?.map((e,a)=>(0,i.createElement)(e2.default,{...e.data,key:a}))})]}),e5=({cards_per_row_info:e=2,cards_per_row_benefits:a=2,title:t,description:i,cards:r=[],is_minimized:s=!1,background_color:n="default",extra_padding_bottom:c=!1})=>{let d=r.find(e=>"InformationCardsSectionNewPlugin"===e.PluginName),o=r.find(e=>"BenefitsNewPlugin"===e.PluginName),u=d?.childrenData||[],m=o?.childrenData||[];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(ep.A,{background_color:n,extraPaddingBottom:c,children:[(0,l.jsx)(eO.default,{title:t,description:i,title_color:"secondary",description_color:"tertiary"}),(0,l.jsxs)("div",{className:"flex flex-col w-full lg:gap-spacing-7 gap-spacing-5",children:[(0,l.jsx)(e3,{childrenData:u,gridcols:e}),(0,l.jsx)(eb.default,{cards:m,cards_per_row:a,is_minimized:s,bg_color:n})]})]})})};var e9=t(38178),e4=t(97530);let e6=e=>Array.isArray(e?.childrenData)?e.childrenData:Array.isArray(e?.data?.childrenData)?e.data.childrenData:[],e7=({childrenData:e=[],data:a,isH1:t=!1})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(eO.default,{description:a?.description,title:a?.title||"",description_color:"tertiary",isH1:t}),(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 lg:gap-spacing-7 mt-10",children:e.map((e,t)=>{var i;let r,s=(i=a?.title,(r=e6(e)).length?{...e,childrenData:r,data:{...e?.data,title:e?.data?.title||i||""}}:e),n=e6(s).length>0;return(0,l.jsx)(e4.A,{card:s,havePopUp:n},`${t}-${s?.data?.title??s?.PluginName??"pdf"}`)})})]});var e8=t(76915),ae=t(7518),aa=t(21569);function at(e){if(null===e)return!0;for(let a in e)if(Object.hasOwn(e,a))return!1;return!0}var al=t(15656);let ai=({cards_per_row_info:e=2,cards_per_row_benefits:a=2,title:t,description:i,cards:r=[],is_minimized:s=!1,background_color:n="default",extra_padding_bottom:c=!1})=>{let d=r.find(e=>"InformationCardsSectionNewPlugin"===e.PluginName),o=r.find(e=>"BenefitsNewPlugin"===e.PluginName),u=d?.childrenData||[],m=o?.childrenData||[];return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(ep.A,{classname:"overflow-visible",background_color:n,extraPaddingBottom:c,children:[(0,l.jsx)(eO.default,{title:t,description:i,title_color:"secondary",description_color:"tertiary"}),(0,l.jsxs)("div",{className:"flex flex-col w-full lg:gap-spacing-6 gap-spacing-5",children:[(0,l.jsx)(e3,{childrenData:u,gridcols:e}),(0,l.jsx)(eb.default,{cards:m,cards_per_row:a,is_minimized:s,bg_color:n}),(0,l.jsx)(al.default,{})]})]})})};var ar=t(65394),as=t(91155),an=t(73944);let ac=({data:e,childrenData:a})=>(0,l.jsxs)("div",{className:"flex lg:justify-center justify-start lg:items-center items-start flex-col",children:[(0,l.jsx)("div",{className:"pb-spacing-7",children:(0,l.jsx)(eO.default,{title:e?.title,de
1scription:e?.description,title_color:"secondary",description_color:"tertiary"})}),(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 md:grid-cols-2 gap-spacing-5 content-center",children:a?.map((e,a)=>(0,l.jsx)(an.default,{alt:e.data.image_alt_text?e.data.image_alt_text:e.data.image_defaut_alt_text,title:e.data.title,icon:e.data.icon,description:e.data.description,subtitle:e.data.subtitle,link:e.data.link},a))})]});var ad=t(54649),ao=t(37611),au=t(82638),am=t(16067),ah=t(35138),ag=t(7974),ap=t(43104),ax=t(29162),af=t(51032),av=t(323),ab=t(41452);let aj=({data:e,cardData:a})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(ep.A,{children:[(0,l.jsx)(ax.BbynSectionTitle,{title:e?.title,desc:e?.description,className:"flex-col-reverse gap-between-text-1 mb-within-components-5 lg:mb-spacing-7",colorDescription:"tertiary"}),(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsx)(ev.default,{...a,classCard:"max-w-[354px] bg-surface-default [&_*_a]:!no-underline",asDesktop:!0})})]})});var aw=t(4080),ay=t(75500),aN=t(17520),aC=t(62456),ak=t(66476),aA=t(26904),aD=t(27658),aM=t(2728),a_=t(13317);let a$={error:"fill-surface-error",success:"fill-surface-success"},aP=({tone:e,className:a,ariaLabel:t})=>{let i="string"==typeof t?t.trim():"";return(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:i?"img":void 0,"aria-label":i||void 0,"aria-hidden":!i||void 0,focusable:"false",className:(0,s.cn)("h-4 w-4 shrink-0 stroke-[#E1E1E1]",a$[e],a),children:(0,l.jsx)("rect",{x:"0.1",y:"0.1",width:"15.8",height:"15.8",rx:"7.9",strokeWidth:"0.2"})})},aL=(e="start")=>"center"===e?"text-center":"end"===e?"text-end":"text-start",aS=({data:e,className:a,fitToContainer:t=!1,useTextVariantTypography:r=!1,fillHeight:n=!1,compactColumnScrollThreshold:c=3})=>{let d=t&&e.columns.length>c,o=d&&e.columns.length>0,m=!0===e.visuallyHideHeader&&!0===e.showHeaderOnCompactScreens;return(0,l.jsx)("div",{className:(0,s.cn)("w-full min-w-0",n&&"h-full",a),children:(0,l.jsx)("div",{className:(0,s.cn)("w-full overflow-hidden rounded-container-small","border border-border-tertiary",n&&"h-full"),children:(0,l.jsx)("div",{className:(0,s.cn)("w-full",t&&!d&&"overflow-hidden",t&&d&&"overflow-x-auto overscroll-x-contain lg:overflow-hidden",!t&&"overflow-x-auto overscroll-x-contain",n&&"h-full"),children:(0,l.jsxs)("table",{className:(0,s.cn)("w-full border-collapse",t&&!d&&"table-fixed",t&&d&&"min-w-max lg:min-w-0 lg:table-fixed",!t&&"min-w-max",n&&"h-full"),children:[e.caption&&(0,l.jsx)("caption",{className:"sr-only",children:e.caption}),(0,l.jsx)("thead",{className:(0,s.cn)(e.visuallyHideHeader&&!m&&"sr-only",m&&"lg:sr-only"),children:(0,l.jsx)("tr",{children:e.columns.map((e,a)=>{let i=aL(e.align);return(0,l.jsx)("th",{scope:"col",className:(0,s.cn)("p-spacing-4 align-middle",t&&"break-words",d&&"whitespace-nowrap lg:whitespace-normal",o&&0===a&&"sticky start-0 z-30 bg-[#fff] lg:static lg:z-auto",!r&&"text-font-size-h7 leading-line-height-7",!r&&"font-medium text-label-secondary",i,e.isNumeric&&"tabular-nums",e.isNumeric&&!t&&"whitespace-nowrap",e.widthClassName,e.headerClassName),children:r?(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"bold",as:"span",className:i,children:e.label}):e.label},e.key)})})}),(0,l.jsx)("tbody",{children:e.rows.map((a,n)=>(0,l.jsx)("tr",{className:(0,s.cn)("odd:bg-surface-tertiary",a.className),children:e.columns.map((e,c)=>{let m,h,g=a.cells[e.key];!(null===g||"object"!=typeof g||(0,i.isValidElement)(g)||Array.isArray(g))&&("value"in g||"colSpan"in g||"rowSpan"in g||"className"in g||"ariaLabel"in g||"tone"in g||"indicator"in g)?(m=g,h=g.value??null):(m=void 0,h=g);let p=aL(e.align),x=((e="start")=>"center"===e?"justify-center":"end"===e?"justify-end":"justify-start")(e.align),f=((e="default")=>"positive"===e?"!text-neutral-auxiliary-green":"negative"===e?"!text-label-error":"muted"===e?"!text-label-tertiary":void 0)(m?.tone),v=m?.indicator,b=v?.type==="dot",j=o&&0===c,w=(0,s.cn)("p-spacing-4 align-middle",t&&"break-words",d&&"whitespace-nowrap lg:whitespace-normal",j&&"sticky start-0 z-20 lg:static lg:z-auto",j&&(n%2==0?"bg-surface-tertiary":"bg-[#fff]"),!r&&"text-font-size-h7 leading-line-height-7",!r&&"text-label-secondary",p,e.isNumeric&&"tabular-nums",e.isNumeric&&!t&&"whitespace-nowrap",e.widthClassName,e.className,f,m?.className),y={colSpan:m?.colSpan,rowSpan:m?.rowSpan,className:w,"aria-label":m?.ariaLabel},N=b?(0,l.jsx)(aP,{tone:v.tone,ariaLabel:v.ariaLabel,className:v.className}):null,C=r?(0,l.jsxs)(u.default,{variant:"h6",color:"tertiary",weight:"light",as:"div",className:(0,s.cn)("w-full",f,b?["flex items-center gap-spacing-2",x]:p),children:[N,h]}):b?(0,l.jsxs)("div",{className:(0,s.cn)("flex w-full items-center gap-spacing-2",x,f),children:[N,h]}):h;return e.isRowHeader?(0,l.jsx)("th",{scope:"row",...y,children:C},e.key):(0,l.jsx)("td",{...y,children:C},e.key)})},a.id??`row-${n}`))})]})})})})},aE={en:{title:"Central Banking",centralBank:"Central Bank",currency:"Currency",policyRate:"Policy Rate",previousMeeting:"Previous Meeting",nextMeeting:"Next Meeting"},ar:{title:"البنوك المركزية",centralBank:"البنك المركزي",currency:"العملة",policyRate:"سعر الفائدة",previousMeeting:"الاجتماع السابق",nextMeeting:"الاجتماع القادم"}},aR=e=>"string"!=typeof e?"—":e.trim()||"—",aI=({items:e,lang:a,className:t})=>{if(!Array.isArray(e)||0===e.length)return null;let i="ar"===a?"ar":"en",r=aE[i],n={caption:r.title,columns:[{key:"centralBank",label:r.centralBank,isRowHeader:!0,align:"start",widthClassName:"w-[30%]"},{key:"currency",label:r.currency,align:"end",isNumeric:!0,widthClassName:"w-[12%]"},{key:"policyRate",label:r.policyRate,align:"end",isNumeric:!0,widthClassName:"w-[16%]"},{key:"previousMeeting",label:r.previousMeeting,align:"end",isNumeric:!0,widthClassName:"w-[21%]"},{key:"nextMeeting",label:r.nextMeeting,align:"end",isNumeric:!0,widthClassName:"w-[21%]"}],rows:e.map(e=>{let a,t;return{id:e.id,cells:{centralBank:(a=e.bankNameEn?.trim()||"",t=e.bankNameAr?.trim()||"","ar"===i?t||a||"—":a||t||"—"),currency:{value:(0,l.jsx)("span",{dir:"ltr",children:aR(e.currency)})},policyRate:{value:(0,l.jsx)("span",{dir:"ltr",children:aR(e.policyRate)})},previousMeeting:{value:(0,l.jsx)("span",{dir:"ltr",children:aR(e.previousMeeting)})},nextMeeting:{value:(0,l.jsx)("span",{dir:"ltr",children:aR(e.nextMeeting)})}}}})};return(0,l.jsx)("div",{lang:i,dir:"ar"===i?"rtl":"ltr",className:(0,s.cn)("w-full",t),children:(0,l.jsx)(a_.default,{title:r.title,defaultOpen:!1,children:(0,l.jsx)(aS,{data:n,fitToContainer:!0,useTextVariantTypography:!0,compactColumnScrollThreshold:3})})})},aF=({trend:e,className:a})=>{let t="up"===e,i="down"===e,r="zero"===e;return t||i||r?(0,l.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",className:(0,s.cn)("h-4 w-4 shrink-0",t&&"text-neutral-auxiliary-green",i&&"text-label-error",r&&"text-[#FFB224]",a),children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:t?"M7.64637 2.97994C7.84163 2.78468 8.15821 2.78468 8.35347 2.97994L13.0201 7.64661C13.2154 7.84187 13.2154 8.15845 13.0201 8.35372C12.8249 8.54898 12.5083 8.54898 12.313 8.35372L8.49992 4.5406V12.6668C8.49992 12.943 8.27606 13.1668 7.99992 13.1668C7.72378 13.1668 7.49992 12.943 7.49992 12.6668V4.5406L3.68681 8.35372C3.49154 8.54898 3.17496 8.54898 2.9797 8.35372C2.78444 8.15845 2.78444 7.84187 2.9797 7.64661L7.64637 2.97994Z":i?"M7.99992 2.8335C8.27606 2.8335 8.49992 3.05735 8.49992 3.3335V11.4597L12.313 7.64661C12.5083 7.45135 12.8249 7.45135 13.0201 7.64661C13.2154 7.84187 13.2154 8.15845 13.0201 8.35372L8.35347 13.0204C8.15821 13.2156 7.84163 13.2156 7.64637 13.0204L2.9797 8.35372C2.78444 8.15845 2.78444 7.84187 2.9797 7.64661C3.1749
16 7.45135 3.49154 7.45135 3.68681 7.64661L7.49992 11.4597V3.3335C7.49992 3.05735 7.72378 2.8335 7.99992 2.8335Z":"M7.64661 2.97994C7.84187 2.78468 8.15845 2.78468 8.35372 2.97994L13.0204 7.64661C13.2156 7.84187 13.2156 8.15845 13.0204 8.35372L8.35372 13.0204C8.15845 13.2156 7.84187 13.2156 7.64661 13.0204C7.45135 12.8251 7.45135 12.5085 7.64661 12.3133L11.4597 8.50016H3.3335C3.05735 8.50016 2.8335 8.2763 2.8335 8.00016C2.8335 7.72402 3.05735 7.50016 3.3335 7.50016H11.4597L7.64661 3.68705C7.45135 3.49179 7.45135 3.1752 7.64661 2.97994Z",fill:"currentColor"})}):null},aB=({trend:e,value:a,lang:t,suffix:i="",parenthesizeDownValue:r=!1,className:n})=>{let c="ar"===t?"ar":"en",d="string"!=typeof a?"":a.trim().replace(/^[+-]/,""),o={up:"ar"===c?"ارتفاع":"Increased",down:"ar"===c?"انخفاض":"Decreased",zero:"ar"===c?"دون تغيير":"No change",unchanged:"ar"===c?"دون تغيير":"Unchanged",unknown:"ar"===c?"غير متاح":"Unavailable"};if("unchanged"===e)return(0,l.jsx)("span",{className:(0,s.cn)("inline-flex items-center text-label-tertiary",n),"aria-label":o.unchanged,children:"ar"===c?"دون تغيير":"UNCH"});if("unknown"===e||!d)return(0,l.jsx)("span",{className:(0,s.cn)("inline-flex items-center text-label-tertiary",n),"aria-label":o.unknown,children:"—"});let u=`${d}${i}`,m="down"===e&&r?`(${u})`:u;return(0,l.jsxs)("span",{dir:"ltr",className:(0,s.cn)("inline-flex items-center gap-spacing-2","up"===e&&"text-neutral-auxiliary-green","down"===e&&"!text-label-error","zero"===e&&"text-label-tertiary",n),"aria-label":`${o[e]} ${u}`,children:[(0,l.jsx)(aF,{trend:e,className:(0,s.cn)("ar"===c&&"zero"===e&&"rotate-180")}),(0,l.jsx)("span",{children:m})]})},aT=({data:e,lang:a="en",className:t})=>{var i;let r=(i=e.direction)&&"neutral"!==i?i:"unchanged",n="ar"===a?`بطاقة سعر ${e.title}`:`${e.title} rate card`,c=!!e.change||"unchanged"===r;return"unchanged"===r&&e.change,(0,l.jsxs)("article",{className:(0,s.cn)("w-full min-w-0 rounded-[clamp(14px,1.5vw,18px)] bg-surface-tertiary","px-spacing-5 py-spacing-5","shadow-[0_0_0_1px_rgba(0,0,0,0.04)]","lg:min-h-[150px]",t),"aria-label":n,children:[(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"medium",className:"mb-spacing-2 line-clamp-1",children:e.title}),(0,l.jsx)(u.default,{variant:"h3",color:"secondary",weight:"bold",className:"mb-spacing-2",children:e.value}),c&&(0,l.jsx)(aB,{trend:r,value:e.change,suffix:"%",lang:a,className:"mb-spacing-2 text-font-size-h7 leading-line-height-7"}),e.subtitle&&(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"light",className:"line-clamp-1",children:e.subt
1itle})]})},az=({items:e,lang:a="en",className:t})=>Array.isArray(e)&&0!==e.length?(0,l.jsxs)("div",{className:(0,s.cn)("w-full",t),children:[(0,l.jsx)("div",{className:"w-full lg:hidden",children:(0,l.jsx)(eC.default,{background_color:"default",is_dark:!1,compactUntilDesktop:!0,className:"py-0 lg:py-0",classItem:"w-[180px] sm:w-[304px]",slideContentClassName:"min-w-[180px] sm:min-w-[304px]",children:e.map(e=>(0,l.jsx)("div",{className:"h-full w-full min-w-0",children:(0,l.jsx)(aT,{data:e,lang:a,className:"h-full"})},e.id))})}),(0,l.jsx)("div",{className:"hidden w-full grid-cols-4 gap-spacing-5 lg:grid",children:e.map(e=>(0,l.jsx)("div",{className:"min-w-0",children:(0,l.jsx)(aT,{data:e,lang:a,className:"h-full"})},e.id))})]}):null,aH={en:{benchmarkRates:"Benchmark Rates",country:"Country",overnightRfr:"O/N RFR",oneMonth:"1M",threeMonths:"3M",sixMonths:"6M",twelveMonths:"12M",majorCurrencies:"Major Currencies",commodities:"Commodities",globalIndexes:"Global Indexes",regionalIndexes:"Regional Indexes",instrument:"Instrument",value:"Value",change:"%Change"},ar:{benchmarkRates:"أسعار الفائدة المرجعية",country:"الدولة",overnightRfr:"O/N RFR",oneMonth:"شهر",threeMonths:"3 أشهر",sixMonths:"6 أشهر",twelveMonths:"12 شهرًا",majorCurrencies:"العملات الرئيسية",commodities:"السلع",globalIndexes:"المؤشرات العالمية",regionalIndexes:"المؤشرات الإقليمية",instrument:"الأداة",value:"القيمة",change:"نسبة التغير"}},aW=(e,a,t)=>{let l="string"==typeof a?a.trim():"",i="string"==typeof t?t.trim():"";return"ar"===e?i||l||"—":l||i||"—"},aV=e=>{if("string"!=typeof e)return"—";let a=e.trim();if(!a)return"—";let t=a.replace(/,/g,"").match(/^([+-]?)(\d+)(?:\.(\d+))?$/);if(!t)return a;let l=t[1]??"",i=t[2]??"0",r=t[3],s=i.replace(/\B(?=(\d{3})+(?!\d))/g,",");return void 0!==r?`${l}${s}.${r}`:`${l}${s}`},aO=e=>({value:(0,l.jsx)("span",{dir:"ltr",children:aV(e)}),tone:"string"==typeof e&&e.trim().startsWith("-")?"negative":"default"}),aZ=(e,a,t,i)=>({caption:e,visuallyHideHeader:!0,columns:[{key:"name",label:t.instrument,isRowHeader:!0,align:"start",widthClassName:"w-[50%]",className:"whitespace-nowrap",headerClassName:"whitespace-nowrap"},{key:"value",label:t.value,align:"end",isNumeric:!0,widthClassName:"w-[28%]"},{key:"change",label:t.change,align:"end",isNumeric:!0,widthClassName:"w-[22%]"}],rows:a.map(e=>({id:e.id,cells:{name:aW(i,e.nameEn,e.nameAr),value:{value:(0,l.jsx)("span",{dir:"ltr",children:aV(e.price)})},change:{value:(0,l.jsx)(aB,{trend:e.trend,value:e.change,lang:i,parenthesizeDownValue:!0,className:"w-[75px] max-w-full justify-end gap-spacing-1 whitespace-nowrap [&>svg]:me-auto"})}}}))}),aq=({label:e})=>(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"light",as:"span",className:"text-end",children:e}),aU=({title:e,tableData:a,changeLabel:t,showCompactDivider:i=!0,className:r})=>(0,l.jsx)(a_.default,{title:e,defaultOpen:!0,fillHeight:!0,showCompactDivider:i,desktopHeaderEnd:t?(0,l.jsx)(aq,{label:t}):void 0,compactHeaderEnd:t?(0,l.jsx)(aq,{label:t}):void 0,className:(0,s.cn)("h-full min-w-0",r),contentClassName:"flex min-h-0 min-w-0 flex-col",children:(0,l.jsx)(aS,{data:a,fitToContainer:!0,useTextVariantTypography:!0,fillHeight:!0,className:"min-h-0 flex-1"})}),aY=({marketData:e,lang:a,className:t})=>{let i;if(!e)return null;let r="ar"===a?"ar":"en",n=aH[r],c=[];if(e.benchmark.length>0&&c.push({id:"benchmark-rates",title:n.benchmarkRates,tableData:(i=e.benchmark,{caption:n.benchmarkRates,columns:[{key:"country",label:n.country,isRowHeader:!0,align:"start",widthClassName:"w-[28%]"},{key:"overnightRfr",label:n.overnightRfr,align:"end",isNumeric:!0,widthClassName:"w-[14.4%]"},{key:"oneMonth",label:n.oneMonth,align:"end",isNumeric:!0,widthClassName:"w-[14.4%]"},{key:"threeMonths",label:n.threeMonths,align:"end",isNumeric:!0,widthClassName:"w-[14.4%]"},{key:"sixMonths",label:n.sixMonths,align:"end",isNumeric:!0,widthClassName:"w-[14.4%]"},{key:"twelveMonths",label:n.twelveMonths,align:"end",isNumeric:!0,widthClassName:"w-[14.4%]"}],rows:i.map(e=>({id:e.id,cells:{country:aW(r,e.countryEn,e.countryAr),overnightRfr:aO(e.overnightRfr),oneMonth:aO(e.oneMonth),threeMonths:aO(e.threeMonths),sixMonths:aO(e.sixMonths),twelveMonths:aO(e.twelveMonths)}}))}),isBenchmark:!0}),e.majorCurrencies.length>0&&c.push({id:"major-currencies",title:n.majorCurrencies,changeLabel:n.change,tableData:aZ(n.majorCurrencies,e.majorCurrencies,n,r)}),e.commodities.length>0&&c.push({id:"commodities",title:n.commodities,changeLabel:n.change,tableData:aZ(n.commodities,e.commodities,n,r)}
1),e.globalIndexes.length>0&&c.push({id:"global-indexes",title:n.globalIndexes,changeLabel:n.change,tableData:aZ(n.globalIndexes,e.globalIndexes,n,r)}),e.regionalIndexes.length>0&&c.push({id:"regional-indexes",title:n.regionalIndexes,changeLabel:n.change,tableData:aZ(n.regionalIndexes,e.regionalIndexes,n,r)}),0===c.length)return null;let d=c.length>3,o=c.length>1;return(0,l.jsx)("div",{lang:r,dir:"ar"===r?"rtl":"ltr",className:(0,s.cn)("grid w-full grid-cols-1 items-stretch lg:gap-sections-padding-1","auto-rows-auto lg:auto-rows-fr lg:grid-cols-3",t),children:c.map(e=>(0,l.jsx)(aU,{title:e.title,tableData:e.tableData,changeLabel:e.changeLabel,showCompactDivider:o,className:(0,s.cn)(d&&e.isBenchmark&&"lg:col-span-2")},e.id))})};var aK=t(46991);let aG=e=>"string"!=typeof e?"":e.trim().toLowerCase().replace(/\s+/g," "),aQ=e=>{if(e?.PluginName!=="ChildTreasury")return!1;let a=e.data?.title?.trim()||"",t=e.data?.description?.trim()||"";return!!(a||t)},aX=({content:e,childrenData:a,marketData:t,lang:i="en"})=>{let r="ar"===i?"ar":"en",n=t?[{id:"brent-crude",aliases:["Brent Crude","Brent"],titleEn:"Brent Crude",titleAr:"خام برنت",subtitleEn:"Per barrel",subtitleAr:"لكل برميل",prefix:"$",minimumFractionDigits:2,maximumFractionDigits:2},{id:"gold",aliases:["Gold"],titleEn:"Gold",titleAr:"الذهب",subtitleEn:"Per ounce",subtitleAr:"لكل أونصة",prefix:"$",minimumFractionDigits:2,maximumFractionDigits:2},{id:"sp-500",aliases:["S&P 500","S&P500","SP 500"],titleEn:"S&P 500",titleAr:"مؤشر S&P 500",subtitleEn:"Index value",subtitleAr:"قيمة المؤشر",prefix:"$",minimumFractionDigits:2,maximumFractionDigits:2},{id:"eur-usd",aliases:["EUR/USD","EUR"],titleEn:"EUR/USD",titleAr:"اليورو/الدولار",subtitleEn:"Exchange rate",subtitleAr:"سعر الصرف",minimumFractionDigits:4,maximumFractionDigits:4}].reduce((e,a)=>{var l,i,s,n;let c,d,o=(l=t.summaryCards,c=new Set(a.aliases.map(aG)),l.find(e=>c.has(aG(e.title))));if(!o||!o.value)return e;let u=(i=o.value,s=a.minimumFractionDigits,n=a.maximumFractionDigits,Number.isFinite(d=Number(i))?new Intl.NumberFormat("en-US",{minimumFractionDigits:s,maximumFractionDigits:n}).format(d):i),m="ar"===r?a.titleAr:o.title||a.titleEn,h="ar"===r?a.subtitleAr:o.subtitle||a.subtitleEn;return e.push({id:a.id,title:m,value:`${a.prefix||""}${u}`,change:o.change,direction:o.trend,subtitle:h}),e},[]):[],c=n.length>0,d=Array.isArray(a)?a.filter(aQ):[],o=d.length>0,m="ar"===r?{kwdRate:"سعر الدينار الكويتي",buying:"شراء",selling:"بيع"}:{kwdRate:"Kuwaiti Dinar Rate",buying:"Buying",selling:"Selling"};return(0,l.jsxs)("div",{className:"w-full",children:[e?.title&&(0,l.jsx)(eO.default,{title:e.title,description:e.description||void 0,alignment:"center",className:"mb-spacing-7"}),t?.kwdRate&&(0,l.jsxs)("div",{className:"mb-spacing-6 flex flex-col gap-between-text-1 sm:flex-row sm:items-center sm:gap-spacing-6 lg:mb-spacing-7 lg:flex-row lg:gap-[104px]",children:[(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"medium",children:m.kwdRate}),(0,l.jsxs)("div",{className:"flex items-center gap-spacing-3",children:[(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"medium",children:m.buying}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",className:"tabular-nums",children:(0,l.jsx)("span",{dir:"ltr",children:t.kwdRate.buy})})]}),(0,l.jsxs)("div",{className:"flex items-center gap-spacing-3",children:[(0,l.jsx)(u.default,{variant:"h6",color:"tertiary",weight:"medium",children:m.selling}),(0,l.jsx)(u.default,{variant:"h6",color:"secondary",weight:"light",className:"tabular-nums",children:(0,l.jsx)("span",{dir:"ltr",children:t.kwdRate.sell})})]})]}),c&&(0,l.jsx)(az,{items:n,lang:r}),o&&(0,l.jsx)("div",{className:(0,s.cn)("flex flex-col gap-spacing-7",c&&"mt-spacing-7 lg:mt-spacing-9"),children:d.map((e,a)=>{let t=e.data?.title?.trim()||"",i=e.data?.description?.trim()||"",r=e.uniqueid??`treasury-child-${a}`;return(0,l.jsxs)("div",{className:"flex flex-col gap-between-text-1",children:[t&&(0,l.jsx)(u.default,{variant:"h2",color:"secondary",weight:"light",as:"h2",className:"text-start",children:t}),i&&(0,l.jsx)(u.default,{variant:"h5",color:"tertiary",weight:"light",as:"div",className:"text-start editor--overide",children:(0,F.Q)(i)})]},r)})}),(0,l.jsx)(aY,{marketData:t,lang:r,className:c||o?"mt-spacing-7 lg:mt-spacing-9":void 0}),(0,l.jsxs)("div",{className:"flex flex-col-reverse lg:flex-col overflow-hidden",children:[(0,l.jsx)(aK.default,{marketData:t}),(0,l.jsx)(aI,{items:t?.centralBankRates,lang:r,className:"lg:mt-spacing-9"})]})]})},aJ={isSection:!0,suppressEmpty:!1,allowH1:!1},a0=e=>{let a=Array.isArray(e?.currencies)?e.currencies:[];return{currencyData:a.map(e=>({briefDescEng:e.code,longDescEng:e.nameEn,longDescArab:e.nameAr})),rateData:a.reduce((e,a)=>(a.rate&&e.push({briefEngDesc:a.code,trsfBuy:a.rate.transferBuy,trsfSell:a.rate.transferSell,brate:a.rate.cashBuy,srate:a.rate.cashSell}),e),[])}},a1=(e,a=0,t={})=>{let{isSection:r,suppressEmpty:n,allowH1:c}={...aJ,...t},d=Array.isArray(e?.childrenData)&&e.childrenData.some(e=>!at(e?.data));if(at(e?.data)&&!d)return n?null:(0,l.jsx)(au.cZ,{plugin:e});let{PluginName:o,data:m,variant:h,childrenData:g,is_h1:p}=e,x=r?(0,av._o)(e):"",f=x?"scroll-mt-[120px] lg:scroll-mt-[90px]":"",v=r?ep.A:i.Fragment,b=`ph-${String(e?.uniqueid??e?.id??e?.block_id??e?.PluginName??a)}`,j=h?.background_color,w={background_color:j,noTopPadding:!(h?.top_padding??!0),noBottomPadding:!(h?.bottom_padding??!0),extraPaddingBottom:h?.extra_padding_bottom??!1,id:x||void 0,classname:f};switch(o){case"SectionTitlePlugin":case"TitleWithRichText":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eO.default,{...m,...h,cards:g})});case"GeneralBannerPlugin":{let{extra_padding_bottom:e,...a}=h||{},t=(0,l.jsx)(ex.default,{...m,...a,childrenData:g,sectionAnchorId:x,isH1:!!(c&&p)});return r?(0,l.jsx)(ep.A,{...w,background_color:"",children:t},b):(0,l.jsx)(ex.default,{...m,...a,childrenData:g,sectionAnchorId:x,isH1:!!(c&&p)},b)}case"BenefitsNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eb.default,{...m,...h,cards:g})});case"BenefitsCardPlugin":return(0,i.createElement)(ev.default,{...m,...h,key:b});case"AwardsBannerNewPlugin":return(0,l.jsx)(l.Fragment,{children:h?.is_carousel?(0,l.jsx)(v,{...w,noXPadding:!0,noContainer:!0,children:(0,l.jsx)(ej.default,{...m,...h,cards:g})}):(0,l.jsx)(v,{...w,children:(0,l.jsx)(ej.default,{...m,...h,cards:g})})});case"AwardCardNewPlugin":return(0,i.createElement)(ew.default,{...m,...h,key:b});case"CarouselNewPlugin":return(0,l.jsx)(eN,{...w,...h,children:(0,l.jsx)(eC.default,{...m,...h,className:"ps-spacing-5",classItem:"md:w-auto cursor-none ",children:g?.map((e,a)=>a1(e,a,{isSection:!1,suppressEmpty:n}))})});case"OverlayVerticalCardNewPlugin":return(0,l.jsx)(ef.default,{...m,...h},b);case"VerticalCardNewPlugin":case"VerticalCardAuthorNewPlugin":return(0,l.jsx)(eF.default,{...m,...h},`nc-${b}`);case"TabsSectionNewPlugin":{let{background_color:e,...a}=h||{},{background_color:t,...i}=m||{};return r?(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(ey.default,{...i,...a,children:g?.map((e,a)=>(0,l.jsx)("div",{"data-tab":e.data?.tab_title,children:a1(e,a,{isSection:!1,suppressEmpty:n})},`tab-${a}`))})}):(0,l.jsx)(ey.default,{...i,...a,children:g?.map((e,a)=>(0,l.jsx)("div",{"data-tab":e.data?.tab_title,children:a1(e,a,{isSection:!1,suppressEmpty:n})},`tab-${a}`))})}case"LabelCardsSectionNewPlugin":case"FullWidthLabelCardsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eA.default,{full_width_cards:!0,...m,...h,cards:g})});case"LabelCardNewPlugin":return(0,i.createElement)(ek.default,{...m,...h,className:"w-[353px]",key:b});case"FullWidthBannerNewPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,i.createElement)(eD.default,{...m,...h,key:b})});case"ExpandingCardsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eM.default,{...m,...h,cards:g,layout:"multi-row",rowSize:3,actionType:"link"})});case"TableNewPlugin":return(0,i.createElement)(eP.default,{...m,...h,content:g,key:b});case"AppBannerNewPlugin":return(0,l.jsx)(v,{...w,noXPadding:!0,children:(0,l.jsx)(eL.default,{...m,...h,childrenData:g})});case"BgCardsNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(e_.default,{...m,...h,cards:g})});case"BgCardNewPlugin":return(0,l.jsx)(e$.default,{...m,...h});case"CeoBannerNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eS.default,{...m,...h})});case"CtaBannerNewPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,i.createElement)(eE.default,{...m,...h,childrenData:g,index:a,key:b,isH1:!!(c&&p)})});case"HeroBannerPlugin":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"sm:px-spacing-4 hover-target"),children:(0,l.jsx)(eR.default,{...m,...h,isH1:!!(c&&p)})});case"FeaturesCardsNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eI.default,{...m,...h,cards:g})});case"AppCtaNewPlugin":{let e=!h?.bottom_padding;return(0,i.createElement)(v,{...w,key:b,classname:(0,s.cn)(f,"px-0"),noXPadding:!0,noBottomPadding:e,background_color:j},(0,l.jsx)(eB.default,{...m,...h,childrenData:g}))}case"InformationCardsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ez.default,{...m,...h,childrenData:g})});case"TestimonialContainerPlugin":return(0,l.jsx)(v,{...w,noXPadding:!0,noContainer:!0,children:(0,l.jsx)(af.default,{type:"testimonial",data:m,childrenData:g})});case"FAQContainerPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eT.default,{data:m,childrenData:g,isH1:!!(c&&p)})});case"CounterContainerPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eH.default,{childrenData:g})});case"AccessibilityBenefitsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eW.default,{...m,...h,childrenData:g})});case"CoreBenefits":return(0,l.jsx)(v,{...w,noXPadding:!0,children:(0,l.jsx)(eZ,{data:m,childrenData:g,...h})});case"ScrollableBenefitsNewPlugin":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"lg:py-spacing-9 py-spacing-7"),children:(0,l.jsx)(af.default,{type:"scrollableBenefits",data:m,childrenData:g,variant:h})});case"FinanceCalculatorContainer":return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"overflow-visible"),children:(0,l.jsx)(af.default,{type:"financeCalculator",data:e?.data,childrenData:e?.childrenData})});case"AppSectionPlugin":return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"px-0"),noXPadding:!0,children:(0,l.jsx)(eU.default,{data:m,childrenData:g})});case"ExpandingContainer":return(0,l.jsx)(v,{...w,children:(0,l.jsx)("div",{className:"listul",children:(0,l.jsx)(eY.default,{data:m,childrenData:g})})});case"InformationContainerPlugin":return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"px-0"),noXPadding:!0,children:(0,l.jsx)(eG,{data:m,childrenData:g})});case"CombinedCardsNewPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,i.createElement)(e5,{...m,cards:g,...h,key:b})});case"CombinedCardsCalculatorPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,i.createElement)(ai,{...m,cards:g,...h,key:b})});case"BoubyanRewardsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eQ.default,{...m,...h,childrenData:g})});case"CurrencyConverter":{let{currencyData:a,rateData:t}=a0(e?.exchangeRatesData);if(a.length<2||0===t.length)return null;return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"overflow-visible"),children:(0,l.jsx)(ap.M,{data:m||{},emptyTitle:"currencyConverter",children:(0,l.jsx)(aD.default,{currencyData:a,rateData:t,childrenData:m,isH1:!!(c&&p)})})})}case"CurrencyTable":{let{currencyData:a,rateData:t}=a0(e?.exchangeRatesData);if(0===a.length||0===t.length)return null;return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ap.M,{data:m||{},emptyTitle:"currencyTable",children:(0,l.jsx)(aM.default,{currencyData:a,rateData:t,childrenData:m})})})}case"RewardCalculatorPlugin":return(0,l.jsxs)(v,{...w,classname:(0,s.cn)(f,"overflow-visible"),children:[(0,l.jsx)(eO.default,{title:m?.title,de
1scription:m?.description}),(0,l.jsx)(aA.default,{lang:e?.lang,apiData:e?.rewardsCalculatorApiData,className:"mt-spacing-7",minAmount:e?.data?.min_amount,maxAmount:e?.data?.max_amount},`rewards-calculator-${e?.lang||"en"}-${e?.uniqueid||a}`)]});case"ContainerAvatars":return(0,i.createElement)(v,{...w,key:b,background_color:j??"tertiary",classname:(0,s.cn)(f,"lg:my-spacing-9 my-spacing-7")},(0,l.jsx)(eJ,{...m,...h,childrenData:g}));case"PrimeRewardsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(e1,{...m,...h,childrenData:g})});case"TitleDescriptionPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,l.jsx)(eq,{data:m,childrenData:g},b)});case"TableContainer":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(e9.default,{data:m,childrenData:g})});case"MultipleTableContainerPlugin":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(ad.default,{data:m,childrenData:g})});case"TitleTerms":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(e7,{data:m,childrenData:g,isH1:!!(c&&p)})});case"Partners":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(ar.default,{data:m,childrenData:g})});case"StackingCarouselContainerPlugin":return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"overflow-visible"),children:(0,l.jsx)(af.default,{type:"stackingCarousel",data:m,variant:h,childrenData:g})});case"ScrollingContainerPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,l.jsx)(aa.default,{...m,...h,childrenData:g})});case"PrivateHeroSectionPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,l.jsx)(e8.default,{data:m,isH1:!!(c&&p)})},b);case"PrivateBanner1Plugin":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"lg:my-spacing-9 my-within-components-5"),children:(0,l.jsx)(ae.default,{data:m})},b);case"SavingsCalculatorPlugin":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"overflow-visible"),children:(0,l.jsx)(af.default,{type:"savingCalculator"})},b);case"PrimeDiscountContainer":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"lg:py-spacing-9 py-spacing-7"),children:(0,l.jsx)(af.default,{type:"primeDiscount",data:m,variant:h,childrenData:g})});case"SocialsSectionNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(as.default,{...m,...h,childrenData:g})});case"PartnerOffersNewPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ac,{data:m,...h,childrenData:g})});case"ConciergeDropdownSectionPlugin":return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"relative overflow-visible"),children:(0,l.jsx)(af.default,{type:"conciergeDropdown",data:m,variant:h,childrenData:g})});case"TitleDescription":return(0,l.jsx)(v,{...w,...h,children:(0,l.jsx)(eO.default,{...m,...h})});case"ManagementSectionPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(eO.default,{...m,childrenData:g,...h})});case"ManagementBannerPlugin":return(0,l.jsx)(v,{...w,noBottomPadding:!0,noTopPadding:!0,children:(0,l.jsx)(ao.default,{...m,childrenData:g,...h})});case"DynamicFormPluginPublisher":{let a=(0,ag.Ae)(e);return(0,l.jsx)(v,{...w,children:(0,l.jsx)(af.default,{type:"dynamicForm",config:a,data:e,displayMode:m.display_mode})})}case"SpacerNewPlugin":return(0,l.jsx)("div",{className:"lg:pt-sections-padding-2 pt-spacing-7"});case"ArticleBodyText":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(am.default,{...m,centerTitleOnLg:!0})});case"ArticleBodyTextWithOffers":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ah.default,{...m})});case"Disclaimer":{let a=e?.data||{};return(0,l.jsx)(v,{...w,classname:(0,s.cn)(f,"editor--overide"),children:(0,l.jsxs)(ap.M,{data:a||[],emptyTitle:"bannerWithNoBtn",children:[a?.title&&(0,l.jsx)(ax.BbynSectionTitle,{title:a.title}),a?.description&&(0,l.jsx)(u.default,{variant:"h5",weight:"light",color:"tertiary",className:"mt-spacing-2 lg:mt-[20px] lg:max-w-[746px] lg:mx-auto",children:(0,F.Q)(a.description)})]})})}case"ContactUsPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,l.jsx)(af.default,{type:"contactUs",data:m,isH1:!!(c&&p)})});case"FillingComplaintSectionPlugin":return(0,l.jsx)("section",{id:x||void 0,className:f,children:(0,l.jsx)(ap.M,{data:m,emptyTitle:"fillingComplaintSection",children:(0,l.jsx)(ab.default,{data:m,cardsData:g})})});case"FilingAppealSectionPlugin":return(0,l.jsx)("section",{id:x||void 0,className:(0,s.cn)(f,"bg-surface-tertiary"),children:(0,l.jsx)(ep.A,{children:(0,l.jsx)(ap.M,{data:m,emptyTitle:"filingAppealSection",children:(0,l.jsx)(aj,{data:m,cardData:g?.[0]?.data||[]})})})});case"CustomerProtectionGuidelinesSectionPlugin":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ap.M,{data:m,emptyTitle:"customerProtectionGuidelinesSection",children:(0,l.jsx)(aw.default,{data:m,card:g?.[0]})})});case"EBrochuresSectionPlugin":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(ay.default,{data:m,childrenData:g,variant:h})});case"LegalTabsSectionPlugin":return(0,l.jsxs)(ep.A,{...w,children:[(0,l.jsx)(ax.BbynSectionTitle,{title:m?.title,de
1sc:m?.Description}),(0,l.jsx)(aN.default,{sectionTitleBlock:e})]});case"EventsListingSectionPlugin":return(0,l.jsx)(ep.A,{...w,children:(0,l.jsx)(ap.M,{data:m?.title||{},emptyTitle:"containerEvents",children:(0,l.jsx)(aC.default,{eventData:e?.eventItems||[],title:m?.title||"",langComes:e?.lang})})});case"EventDetailsSectionPlugin":return(0,l.jsx)(ak.default,{eventData:m?.eventData,formPlugin:e?.formPlugin,prizes:e?.prizesPlugin,titleWithRichText:e?.titleWithRichTextPlugins,titleDescriptionPlugin:e?.titleDescriptionPlugin});case"RelatedEventsCarouselSectionPlugin":return(0,l.jsx)(eN,{background_color:"default",no_padding_bottom:!0,no_padding_top:!0,children:(0,l.jsx)(eC.default,{title:m?.title??"",className:"ps-spacing-5",classItem:"md:w-auto cursor-none w-[304px] lg:w-[451px]",is_dark:!1,children:e?.relatedEventItems||[]})});case"Article":{let e="string"==typeof m?.title?m.title.trim():"",a="string"==typeof m?.description?m.description.trim():"";if(!e&&!a)return null;return(0,l.jsx)(v,{...w,children:(0,l.jsxs)("div",{className:"editor--overide cms-article-content",children:[e&&(0,l.jsx)(eO.default,{title:e,isH1:!!(c&&p)}),a&&(0,l.jsx)(u.default,{variant:"h5",weight:"light",color:"tertiary",as:"div",className:(0,s.cn)(e&&"mt-spacing-4"),children:(0,F.Q)(a)})]})})}case"Mortgage":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(af.default,{type:"mortgage",data:m,childrenData:e?.childrenData,initialData:e?.mortgageInitialData})});case"Treasury":return(0,l.jsx)(v,{...w,children:(0,l.jsx)(ap.M,{data:m||{},emptyTitle:"treasury",children:(0,l.jsx)(aX,{content:m,childrenData:g,marketData:e?.marketBriefData,lang:e?.lang})})});default:return console.warn(`Plugin ${e?.PluginName} was not found`),null}};var a2=t(32035);let a3=(0,i.createContext)(void 0);function a5({children:e}){let[a,t]=(0,i.useState)(null),[r,s]=(0,i.useState)(!1),[n,d]=(0,i.useState)(null),[o,u]=(0,i.useState)({title:"",className:"",showCloseButton:!0,closeButtonClass:"",iswhiteModal:!1,isPartnerModal:!1,custompadding:""}),m=({content:e,title:a="",className:l="",showCloseButton:i=!0,closeButtonClass:r="",iswhiteModal:n=!1,isPartnerModal:c=!1,custompadding:o="",onClose:m})=>{d(e),u({title:a,className:l,showCloseButton:i,closeButtonClass:r,iswhiteModal:n,isPartnerModal:c,custompadding:o}),t(()=>m??null),s(!0)},h=()=>{s(!1),a&&a(),d(null),t(null)};return(0,l.jsxs)(a3.Provider,{value:{openModal:m,openQrModal:e=>{m({content:(0,l.jsx)(g,{...e}),showCloseButton:!0,iswhiteModal:!0})},popupClickHandler:e=>{((e,a)=>{if(e)switch(e.PluginName){case"MobileAppPopUpPlugin":return(({iosLink:e,androidLink:a,huaweiLink:t,onFallback:l})=>{let i=new p.O().getResult(),r=i.os.name?.toLowerCase(),s=i.device.vendor?.toLowerCase(),n=i.device.type;"mobile"!==n&&"tablet"!==n?l():s?.includes("huawei")||r?.includes("harmony")?window.location.href=t:"android"===r?window.location.href=a:"ios"===r?window.location.href=e:l()})({iosLink:e.data?.ios_link,androidLink:e.data?.android_link,huaweiLink:e.data?.huawei_link,onFallback:()=>a({content:(0,l.jsx)(K,{...e.data}),showCloseButton:!0,iswhiteModal:!0,custompadding:"p-0"})});case"BulletPopupPlugin":{let t=e?.parentPluginName==="ExpandingCardProfitRate";return a({content:(0,l.jsx)(I,{data:e.data,childrenData:e.childrenData,isProfitRatePopup:t,parentCardData:e.parentCardData}),iswhiteModal:!0,className:"w-full lg:max-w-2xl",custompadding:"p-0"})}case"ReportsPopup":return a({content:(0,l.jsx)(W,{data:e.childrenData?.[0]?.data||{},childrenData:e.childrenData?.[0]?.childrenData||[]}),showCloseButton:!0,closeButtonClass:"relative w-full block text-end  lg:pt-spacing-3 pt-spacing-2 lg:px-spacing-3 px-spacing-3",iswhiteModal:!1,className:"overflow-visible"});case"SukukPopup":case"DisclosuresPopup":case"CorporateGovernancePopup":return a({content:(0,l.jsx)(V.A,{modalType:e.PluginName.toLowerCase(),data:e.childrenData,skukData:e.data}),showCloseButton:!0,closeButtonClass:"relative w-full block text-end lg:pt-spacing-3 pt-spacing-2 lg:px-spacing-3 px-spacing-5",iswhiteModal:!1,className:"overflow-visible"});case"PopUpContent":return a({content:(0,l.jsx)(O,{...e.data}),showCloseButton:!0,iswhiteModal:!0,custompadding:"p-0"});case"FatwaBookPopUp":return a({content:(0,l.jsx)(Y,{data:e.data,childrenData:e.childrenData}),showCloseButton:!0,closeButtonClass:"relative w-full block text-end py-spacing-5 lg:px-spacing-7 px-spacing-5"});case"RequestAccountPopupPlugin":return a({content:(0,l.jsx)(ed,{...e.data}),showCloseButton:!0,closeButtonClass:" lg:invert z-30   relative flex justify-end items-center lg:items-end bg-transparent",className:"lg:w-[1028px] lg:max-w-[1028px]  ",custompadding:"p-0"});case"LeaveBoubyanPopUpPlugin":return a({title:"You're leaving Boubyan",iswhiteModal:!1,closeButtonClass:"relative w-full block lg:h-[72px] h-[56px] flex justify-end items-end lg:px-spacing-7 px-spacing-5 bg-surface-default",content:(0,l.jsx)(eo,{data:e.data})});case"DynamicFormPluginPublisher":if(e.data?.display_mode==="modal")return a({content:(0,l.jsx)("div",{children:(0,l.jsx)(a2.default,{pluginData:e,displayMode:"modal"})}),title:e.data?.form_title,closeButtonClass:"relative w-full block lg:h-[72px] h-[56px] flex justify-end items-end lg:px-spacing-7 px-spacing-5 bg-surface-default",iswhiteModal:!1});return;case"PartnerPopup":return a({iswhiteModal:!1,showCloseButton:!0,isPartnerModal:!0,closeButtonClass:"relative w-full block  ",content:(0,l.jsx)(eg,{partnerData:e.data,childrenData:e.childrenData})});default:return a({content:a1(e),showCloseButton:!0,iswhiteModal:!0})}})(e,m)},closeModal:h},children:[e,(0,l.jsx)(c,{isOpen:r,onClose:h,closeButtonClass:o.closeButtonClass,title:o.title,className:o.className,showCloseButton:o.showCloseButton,iswhiteModal:o.iswhiteModal,isPartnerModal:o.isPartnerModal,custompadding:o.custompadding,children:n})]})}let a9=()=>{let e=(0,i.useContext)(a3);if(void 0===e)throw Error("useModal must be used within a ModalProvider");return e}},26673:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});
1var l=t(95155);t(12115);let i=({title:e,className:a="",as:t})=>(0,l.jsx)(t||"h2",{className:`text-shine ${a}`,children:e})},26904:(e,a,t)=>{"use strict";t.d(a,{default:()=>N});var l=t(95155),i=t(64577),r=t(12115),s=t(15217),n=t(31013),c=t(14932),d=t(91256);let o={en:{title:"Rewards Calculator",cardTypeLabel:"Card type",selectCardPlaceholder:"Select card",transactionTypeLabel:"Transaction type",localLabel:"Local",internationalLabel:"International",monthlySpendLabel:"Monthly spend",monthlySpendPlaceholder:"Enter amount",monthlyRewardsLabel:"Monthly rewards points",yearlyRewardsLabel:"Yearly rewards points",pointsLabel:"Earn points",highestTierMessage:"You reached the highest earning cap",nextTierMessage:e=>`You're close to earning ${e}% in points`,extraRewardsMessage:"Spending over KD 5,001 monthly, will grant you 1.5% extra rewards",noLimitLabel:"No Limit",pointsPerMonthSuffix:"Points/month",pointsPerYearSuffix:"Points/year",progressStartLabel:"KD 0",kdLabel:"KD",terms:"Terms and conditions apply"},ar:{title:"حاسبة المكافآت",cardTypeLabel:"نوع البطاقة",selectCardPlaceholder:"اختر البطاقة",transactionTypeLabel:"نوع العملية",localLabel:"محلي",internationalLabel:"دولي",monthlySpendLabel:"الإنفاق الشهري",monthlySpendPlaceholder:"أدخل المبلغ",monthlyRewardsLabel:"المكتسبة في الشهر (النقاط/المكافآت)",yearlyRewardsLabel:"نقاط المكافآت السنوية",pointsLabel:"نقاط مكتسبة",highestTierMessage:"لقد وصلت إلى أعلى حد لاكتساب النقاط",nextTierMessage:e=>`أنت قريب من الوصول إلى ${e}% نقاط`,extraRewardsMessage:"إنفاق أكثر من 5,001 د.ك في الشهر سيضمن لك مكافآت أكثر بنسبة 1.5٪",noLimitLabel:"بدون حد",pointsPerMonthSuffix:"نقطة/شهريًا",pointsPerYearSuffix:"نقطة/سنويًا",progressStartLabel:"د.ك 0",kdLabel:"د.ك",terms:"تطبق الشروط والأحكام"}},u=Number.MAX_SAFE_INTEGER,m=e=>new Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(e),h=(e,a)=>a?`\u2066${e}\u2069`:e,g=({kdLabel:e,amount:a,isArabic:t})=>{let l=h(m(a),t);return t?`${l} ${e}`:`${e} ${l}`},p=({kdLabel:e,min:a,max:t,isArabic:l})=>{let i=h(l?`${m(t)} - ${m(a)}`:`${m(a)} - ${m(t)}`,l);return l?`${i} ${e}`:`${e} ${i}`},x=e=>{let a=e.replace(/[^\d]/g,"");return a?m(Number(a)):""},f=(e,a)=>"local"===a?e.localPercentage:e.internationalPercentage,v=(e,a)=>e.find(e=>a>=e.min&&("number"!=typeof e.max||a<=e.max))??e[0],b=(e,a)=>Math.floor(e*a/100),j=({amount:e,minAmount:a,maxAmount:t})=>Math.min(Math.max(e,a),t),w=e=>e.find(e=>5e3===e.max),y=e=>{let a=w(e),t=a?.max;if("number"==typeof t)return e.find(e=>e.min>t)},N=({apiData:e,lang:a="en",className:t,minAmount:N=0,maxAmount:C})=>{let k=(0,r.useRef)(null),A="ar"===a?"ar":"en",D=o[A],M="ar"===A,_=(0,r.useMemo)(()=>e?.type?.length?[...Array.from(new Map(e.type.map((e,a)=>{let t=((e,a)=>{if(1===e.id)return"local";if(2===e.id)return"international";let t=e?.title_en?.toLowerCase?.()||"";return t.includes("inter")?"international":t.includes("local")?"local":1===a?"international":"local"})(e,a);return{id:String(e.id),value:t,label:"local"===t?D.localLabel:D.internationalLabel}}).map(e=>[e.value,e])).values())].sort((e,a)=>e.value===a.value?0:"local"===e.value?-1:1):[],[e?.type,D.internationalLabel,D.localLabel]),$=(0,r.useMemo)(()=>e?.cards?.length?e.cards.map((e,a)=>{var t;let l;return{id:String(e.id),name:"ar"===A?e.ar_name:e.en_name,image:(t=e.image)?t.startsWith("http://")||t.startsWith("https://")?t:`${"https://www.bankboubyan.com".replace(/\/$/,"")}${t.startsWith("/")?t:`/${t}`}`:"",rewardsLimit:(e=>{let a=e?.trim().toLowerCase();if(!a||"no limit"===a)return null;let t=Number(a.replace(/,/g,""));return Number.isFinite(t)?t:null})(e.rewards_limit),sorting:Number.isFinite(l=Number(e.sorting))?l:u,originalIndex:a}}).sort((e,a)=>e.sorting!==a.sorting?e.sorting-a.sorting:e.originalIndex-a.originalIndex).map(({sorting:e,originalIndex:a,...t})=>t):[],[e?.cards,A]),P=(0,r.useMemo)(()=>e?.rewards?.length?e.rewards.map(e=>{let a=Number(e.amount_from),t=Number(e.amount_to),l=Number(e.local_point),i=Number(e.international_point);return{id:String(e.id),min:a,max:t,localPercentage:l,internationalPercentage:i,label:p({kdLabel:D.kdLabel,min:a,max:t||0,isArabic:M})}}).filter(e=>Number.isFinite(e.min)&&Number.isFinite(e.max)&&Number.isFinite(e.localPercentage)&&Number.isFinite(e.internationalPercentage)).sort((e,a)=>e.min-a.min):[],[e?.rewards,D.kdLabel,M]),[L,S]=(0,r.useState)(!1),[E,R]=(0,r.useState)(""),[I,F]=(0,r.useState)("local"),[B,T]=(0,r.useState)(""),z=(0,r.useMemo)(()=>$.find(e=>e.id===E),[$,E]),H=(0,r.useMemo)(()=>{let e;return Number.isFinite(e=Number(B.replace(/,/g,"")))?e:0},[B]),W=(0,r.useMemo)(()=>(({rules:e,pageMaxAmount:a})=>{if("number"==typeof a&&Number.isFinite(a)&&a>0)return a;let t=e.reduce((e,a)=>a.max>e?a.max:e,0);return t>0?t:1e5})({rules:P,pageMaxAmount:C}),[C,P]),V=Math.min(H,5e3),O=(0,r.useMemo)(()=>w(P),[P]),Z=(0,r.useMemo)(()=>!!z&&null===z.rewardsLimit&&!!O&&H>O.max,[H,O,z]),q=(0,r.useMemo)(()=>
1{if(!z||H<=0||0===P.length||!O)return;let e=j({amount:H,minAmount:N,maxAmount:W});return e>O.max?O:v(P,e)},[H,O,N,P,W,z]),U=(0,r.useMemo)(()=>{if(q&&O&&(z?.rewardsLimit===null||q.id!==O.id||!(H>O.max))&&(z?.rewardsLimit!==null||!(H>O.max)))return q?P.find(e=>e.min>q.min):void 0},[H,O,q,P,z]),Y=(0,r.useMemo)(()=>(({amount:e,selectedCard:a,transactionType:t,rules:l,minAmount:i,maxAmount:r})=>{if(!a||e<=0||0===l.length)return 0;let s=j({amount:e,minAmount:i,maxAmount:r}),n=w(l);if(!n)return 0;let c=n.max,d=f(n,t);if(null!==a.rewardsLimit){if(s>c)return a.rewardsLimit;let e=f(v(l,s),t);return Math.min(b(s,e),a.rewardsLimit)}if(s<=c){let e=f(v(l,s),t);return b(s,e)}let o=y(l);if(!o)return b(c,d);let u=f(o,t);return b(c,d)+b(s-c,u)})({amount:H,selectedCard:z,transactionType:I,rules:P,minAmount:N,maxAmount:W}),[H,N,P,W,z,I]),K=(0,r.useMemo)(()=>Y<=0?0:12*Y,[Y]),G=!!z,Q=(0,r.useMemo)(()=>g({kdLabel:D.kdLabel,amount:N,isArabic:M}),[D.kdLabel,M,N]),X=P.find(e=>e.max===W)?.label??P[P.length-1]?.label??g({kdLabel:D.kdLabel,amount:W,isArabic:M}),J=M?X:Q,ee=M?Q:X,ea=q?f(q,I):0,et=(0,r.useMemo)(()=>(({rules:e,amount:a,kdLabel:t,isArabic:l})=>{if(!a||0===e.length)return g({kdLabel:t,amount:0,isArabic:l});if(a>5e3){let a=y(e);return(({kdLabel:e,amount:a,isArabic:t})=>{let l=h(`${m(a)}+`,t);return t?`${l} ${e}`:`${e} ${l}`})({kdLabel:t,amount:a?.min??5001,isArabic:l})}let i=v(e,a);return i?p({kdLabel:t,min:i.id===e[0]?.id?0:i.min,max:i.max,isArabic:l}):g({kdLabel:t,amount:0,isArabic:l})})({rules:P,amount:H,kdLabel:D.kdLabel,isArabic:M}),[H,D.kdLabel,M,P]),el=e=>{F(e.target.value)};return((0,r.useEffect)(()=>{!_.length||_.some(e=>e.value===I)||F(_[0].value)},[_,I]),(0,r.useEffect)(()=>{let e=e=>{k.current?.contains(e.target)||S(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,r.useEffect)(()=>{!E||$.some(e=>e.id===E)||(R(""),T(""))},[$,E]),e)?(0,l.jsx)("section",{dir:M?"rtl":"ltr",className:(0,d.cn)("w-full",t),children:(0,l.jsxs)("div",{className:"grid gap-spacing-6 rounded-container-small bg-surface-tertiary p-spacing-5 lg:grid-cols-[1fr_1.15fr] lg:rounded-container-large lg:p-spacing-8",children:[(0,l.jsxs)("div",{className:"flex max-w-[428px] flex-col gap-spacing-7",children:[(0,l.jsxs)("div",{ref:k,className:"relative",children:[(0,l.jsx)("label",{htmlFor:"cardType",className:"mb-within-component-2 block text-font-size-h6 font-light text-label-tertiary",children:(0,l.jsx)(n.default,{variant:"h6",color:"tertiary",weight:"light",children:D.cardTypeLabel})}),(0,l.jsxs)("button",{id:"cardType",type:"button",className:(0,d.cn)("flex w-full items-center justify-between rounded-[8px] border bg-surface-default p-4 transition-all lg:rounded-container-small",z?"font-bold text-label-secondary":"font-light text-label-placeholder",L?"border-border-secondary":"border-border-tertiary"),onClick:()=>S(e=>!e),"aria-expanded":L,"aria-haspopup":"listbox",children:[(0,l.jsx)("span",{className:"line-clamp-1 text-start",children:z?.name??D.selectCardPlaceholder}),(0,l.jsx)("svg",{className:(0,d.cn)("h-4 w-4 shrink-0 transition-transform",L&&"rotate-180"),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),L&&(0,l.jsx)("div",{className:"absolute z-50 mt-1 max-h-[356px] w-full overflow-auto rounded-[8px] border border-border-tertiary bg-surface-default shadow-lg lg:rounded-container-small",role:"listbox","aria-label":D.cardTypeLabel,children:$.map(e=>{let a=e.id===E;return(0,l.jsxs)("button",{type:"button",className:(0,d.cn)("flex w-full items-center gap-spacing-4 px-[20px] py-spacing-4 text-start transition-all hover:bg-surface-tertiary",a&&"font-bold"),onClick:()=>{R(e.id),S(!1)},role:"option","aria-selected":a,children:[(0,l.jsx)("span",{className:"relative h-[45px] w-[75px] shrink-0 overflow-hidden rounded-[6px] bg-surface-tertiary lg:h-[56px] lg:w-[94px]",children:e.image&&(0,l.jsx)("img",{src:e.image,alt:`${e.name} card`,className:"h-full w-full object-contain",loading:"lazy",decoding:"async"})}),(0,l.jsx)("span",{className:(0,d.cn)("flex-1 text-label-secondary",a?"font-bold":"font-normal"),children:e.name}),a&&(0,l.jsx)("span",{className:"flex items-center","aria-hidden":"true",children:(0,l.jsx)(i.A,{className:"h-4 w-4 text-[#C8102E]"})})]},e.id)})})]}),(0,l.jsxs)("fieldset",{className:(0,d.cn)("transition-opacity",!G&&"pointer-events-none opacity-40"),disabled:!G,children:[(0,l.jsx)("legend",{className:"mb-within-component-2 block text-font-size-h6 font-light text-label-tertiary",children:(0,l.jsx)(n.default,{variant:"h6",color:"tertiary",weight:"light",children:D.transactionTypeLabel})}),(0,l.jsx)("div",{className:"flex flex-col gap-spacing-3",children:_.map(e=>{let a=I===e.value;return(0,l.jsxs)("label",{className:"flex w-fit cursor-pointer items-center gap-spacing-3",children:[(0,l.jsx)("input",{type:"radio",name:"transactionType",value:e.value,checked:a,onChange:el,disabled:!G,className:"sr-only"}),(0,l.jsx)("span",{className:(0,d.cn)("flex h-5 w-5 shrink-0 items-center justify-center rounded-full",a?"bg-neutral-auxiliary-green":"border border-border-tertiary bg-surface-default"),"aria-hidden":"true",children:a&&(0,l.jsx)("span",{className:"h-1 w-1 rounded-full bg-label-default"})}),(0,l.jsx)(n.default,{variant:"h6",color:"secondary",weight:"light",children:e.label})]},e.id)})})]}),(0,l.jsx)("div",{className:(0,d.cn)("transition-opacity",!G&&"pointer-events-none opacity-40"),children:(0,l.jsx)(s.A,{name:"monthlySpend",type:"text",label:D.monthlySpendLabel,value:
1B,onChange:e=>{let a=e.target.value.replace(/[^\d]/g,"").slice(0,15);if(!a)return void T("");let t=Number(a);!Number.isFinite(t)||t<=0?T(""):T(x(String(j({amount:t,minAmount:N,maxAmount:W}))))},placeholder:D.monthlySpendPlaceholder,disabled:!G,haveIcon:!0,labelSide:D.kdLabel,inputClass:"pe-spacing-10 border-transparent focus:border-border-secondary",fullStoryMask:"mask"})}),(0,l.jsx)("div",{className:"",children:(0,l.jsx)(n.default,{variant:"h6",color:"tertiary",children:D.terms})})]}),(0,l.jsxs)("div",{className:"rounded-container-small bg-surface-secondary px-spacing-6 py-spacing-7 text-neutral-white100 lg:px-spacing-7 cursor-light",children:[(0,l.jsxs)("div",{className:"mb-[27px]",children:[(0,l.jsx)("div",{className:"mb-spacing-2 flex items-center gap-spacing-2",children:(0,l.jsx)(n.default,{variant:"h5",color:"default",weight:"light",children:D.monthlyRewardsLabel})}),(0,l.jsxs)(n.default,{variant:"h3",color:"default",weight:"bold",children:[Y?m(Y):"--"," ",D.pointsPerMonthSuffix]})]}),(0,l.jsxs)("div",{className:"mb-[27px]",children:[(0,l.jsx)("div",{className:"mb-spacing-2",children:(0,l.jsx)(n.default,{variant:"h5",color:"default",weight:"light",children:D.yearlyRewardsLabel})}),(0,l.jsxs)(n.default,{variant:"h3",color:"default",weight:"bold",children:[K?m(K):"--"," ",D.pointsPerYearSuffix]})]}),z&&H>0&&q&&(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"mb-spacing-5",children:(0,l.jsxs)(n.default,{variant:"h5",color:"default",weight:"bold",children:[ea,"% ",D.pointsLabel]})}),(0,l.jsx)(c.A,{value:V,min:N,max:5e3,direction:M?"rtl":"ltr",disabled:!G,startLabel:J,endLabel:ee,floatingLabel:et,ariaLabel:D.monthlySpendLabel,className:"mb-[16px] lg:mb-[34px]",trackClassName:"bg-[#7A7A7A]",activeTrackClassName:"bg-neutral-auxiliary-green",tickClassName:"bg-[#7A7A7A]",thumbClassName:"border-border-tertiary bg-surface-default shadow-[0_4px_12px_rgba(0,0,0,0.25)]",labelClassName:"text-neutral-white100",floatingLabelClassName:"text-neutral-white100",onChange:e=>{T(x(String(j({amount:e,minAmount:N,maxAmount:W}))))}}),(0,l.jsx)(n.default,{variant:"h7",color:"default",weight:"light",as:"p",children:Z?D.extraRewardsMessage:U?D.nextTierMessage(f(U,I)):D.highestTierMessage})]})]})]})}):null}},27658:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var l=t(95155),i=t(12115),r=t(31013),s=t(26673),n=t(5772);let c={src:"/_next/static/media/chevron.down.40e2d791.png",height:16,width:16,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAADFBMVEUtLS0AAABMaXEwMDCmE1wtAAAABHRSTlMYAQB+kEEv5gAAAAlwSFlzAAALEwAACxMBAJqcGAAAACpJREFUCJlVizEOADAQghD//+fGbjdgTFBMHCzXERxIoUikxWAmzvif9QEMjQBbv3PBygAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},d=({selectedValue:e,options:a,onSelect:t,icon:s,textProps:d={}})=>{let[o,u]=(0,i.useState)(!1),m=a.find(a=>a.value===e),h=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let e=e=>{h.current&&!h.current.contains(e.target)&&u(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,l.jsxs)("div",{ref:h,className:`relative inline-block w-full h-auto box-border border-2 ${o?"border-tertiary lg:rounded-container-small roun
1ded-lg":"border-transparent"}`,children:[(0,l.jsxs)("button",{onClick:()=>u(!o),className:"flex items-center justify-between w-full p-4 bg-surface-default lg:rounded-container-small rounded-lg",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[s&&(0,l.jsx)("div",{className:"relative overflow-hidden",children:(0,l.jsx)(n.default,{src:s,alt:"icon",width:32,height:32,unoptimized:!0,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)(r.default,{variant:"h5",...d,color:"secondary",weight:"bold",children:m?.label})]}),(0,l.jsx)(n.default,{src:c,unoptimized:!0,alt:"chevron",width:16,height:16,className:`transition-transform duration-200 ${o?"rotate-180":""}`,style:{maxWidth:"100%",height:"auto"}})]}),o&&(0,l.jsx)("ul",{className:"absolute z-50 mt-2 max-h-60 lg:w-[200px] w-[151px] overflow-y-auto bg-neutral-white100 rounded-container-small p-2 list-none",children:a.map(e=>(0,l.jsx)("li",{onClick:()=>{var a;return a=e.value,void(u(!1),t?.(a))},className:"cursor-pointer hover:bg-gray-100 rounded-lg px-2 py-2",children:(0,l.jsxs)("div",{className:"flex items-center gap-spacing-3",children:[e.icon&&(0,l.jsx)("div",{className:"relative overflow-hidden",children:(0,l.jsx)(n.default,{src:e.icon,unoptimized:!0,alt:`${e.label} icon`,width:32,height:32,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)(r.default,{color:"secondary",weight:"bold",variant:"h5",children:e.label})]})},e.value))})]})};var o=t(62094);let u=e=>null==e?NaN:parseFloat(String(e).replace(/,/g,"")),m=({currencyData:e,rateData:a,childrenData:t,isH1:n=!1})=>{let{lang:c}=(0,o.useLang)(),[m,h]=(0,i.useState)(),[g,p]=(0,i.useState)(),[x,f]=(0,i.useState)(""),[v,b]=(0,i.useState)(""),[j,w]=(0,i.useState)("top"),y=(0,i.useMemo)(()=>{let e=new Map;for(let t of a||[])e.set(t.briefEngDesc,t);return e},[a]),N=(0,i.useMemo)(()=>(e||[]).filter(e=>{let a;return"KWD"===(a=e.briefDescEng)||y.has(a)}),[e,y]),C=e=>e?y.get(e):void 0;return(0,i.useEffect)(()=>{if(!e?.length)return;let a=e.find(e=>"KWD"===e.briefDescEng),t=e.find(e=>"USD"===e.briefDescEng);h(a??e[0]),p(t??e.find(e=>e.briefDescEng!==(a?.briefDescEng||""))??e[1])},[e]),(0,i.useEffect)(()=>{if(!m||!g)return;let e="top"===j?m.briefDescEng:g.briefDescEng,a="top"===j?g.briefDescEng:m.briefDescEng,t="top"===j?x:v,l=""===t?NaN:parseFloat(t);if(!e||!a||!Number.isFinite(l)){"top"===j&&""!==v&&b(""),"bottom"===j&&""!==x&&f("");return}let i=((e,a,t)=>{if(!Number.isFinite(t))return null;if(e===a)return t;if("KWD"===a){let a=C(e);return a?t*u(a.trsfBuy):null}if("KWD"===e){let e=C(a);return e?t/u(e.trsfSell):null}let l=C(e),i=C(a);if(!l||!i)return null;let r=t*u(l.trsfBuy);if(!Number.isFinite(r))return null;let s=r/u(i.trsfSell);return Number.isFinite(s)?s:null})(e,a,l),r=null==i?"":Number.isFinite(i)?Number(i.toFixed(3)).toString():"";"top"===j?v!==r&&b(r):x!==r&&f(r)},[m?.briefDescEng,g?.briefDescEng,x,v,j]),(0,l.jsxs)("div",{className:"flex lg:flex-row lg:justify-between flex-col items-center",children:[(0,l.jsxs)("div",{className:"lg:w-[490px] flex flex-col gap-spacing-2 pb-8",children:[(0,l.jsx)(s.A,{className:"leading-font-line-height-h1 font-bold text-font-size-h1 relative",title:t?.title,as:n?"h1":"h2"}),(0,l.jsx)(r.default,{variant:"h5",weight:"light",color:"tertiary",children:t?.description})]}),(0,l.jsxs)("div",{className:"lg:w-[610px] relative flex flex-col gap-spacing-2 min-w-[342px] sm:w-[342px]",children:[(0,l.jsxs)("div",{className:"flex items-center justify-center lg:flex-wrap sm:flex-row bg-banner-background-default px-spacing-4 lg:px-spacing-6 py-spacing-8 gap-spacing-2 lg:rounded-container-large rounded-container-small",children:[(0,l.jsxs)("div",{className:"lg:w-[338px] flex flex-col gap-within-component-2 w-1/2",children:[(0,l.jsx)("label",{htmlFor:"top-amount",children:(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",weight:"light",children:"en"===c?"Amount":"الكمية"})}),(0,l.jsx)("input",{type:"text",id:"top-amount",inputMode:"decimal",value:x,onChange:e=>(e=>{/^\d*\.?\d*$/.test(e)&&(w("top"),f(e))})(e.target.value),className:"w-full h-[64px] p-spacing-4 lg:rounded-container-small roun
1ded-lg","aria-label":"en"===c?"Top amount":"قيمة المبلغ العلوي"})]}),(0,l.jsxs)("div",{className:"lg:w-[200px] flex flex-col gap-within-component-2 w-1/2",children:[(0,l.jsx)("label",{htmlFor:"top-currency",children:(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",weight:"light",children:"en"===c?"Currency":"العملة"})}),(0,l.jsx)(d,{selectedValue:m?.briefDescEng,icon:m?`/flags/${m.longDescEng.split(" ").join("_")}.png`:"",options:N.map(e=>({label:e.briefDescEng,value:e.briefDescEng,icon:`/flags/${e.longDescEng.split(" ").join("_")}.png`})),textProps:{size:"h5",weight:"bold"},onSelect:e=>{let a=N.find(a=>a.briefDescEng===e);a&&(h(a),w("top"))}})]})]}),(0,l.jsxs)("div",{className:"flex items-center lg:flex-wrap sm:flex-row bg-banner-background-default px-spacing-4 lg:px-spacing-6 py-spacing-8 gap-spacing-2 lg:rounded-container-large rounded-container-small",children:[(0,l.jsxs)("div",{className:"lg:w-[338px] flex flex-col gap-within-component-2 w-1/2",children:[(0,l.jsx)("label",{htmlFor:"bottom-amount",children:(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",weight:"light",children:"en"===c?"Amount":"الكمية"})}),(0,l.jsx)("input",{type:"text",id:"bottom-amount",inputMode:"decimal",value:v,onChange:e=>(e=>{/^\d*\.?\d*$/.test(e)&&(w("bottom"),b(e))})(e.target.value),className:"w-full h-[64px] p-spacing-4 lg:rounded-container-small roun
1ded-lg","aria-label":"en"===c?"Bottom amount":"قيمة المبلغ السفلي"})]}),(0,l.jsxs)("div",{className:"lg:w-[200px] flex flex-col gap-within-component-2 w-1/2",children:[(0,l.jsx)("label",{htmlFor:"bottom-currency",children:(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",weight:"light",children:"en"===c?"Currency":"العملة"})}),(0,l.jsx)(d,{selectedValue:g?.briefDescEng,icon:g?`/flags/${g.longDescEng.split(" ").join("_")}.png`:"",options:N.map(e=>({label:e.briefDescEng,value:e.briefDescEng,icon:`/flags/${e.longDescEng.split(" ").join("_")}.png`})),textProps:{size:"h5",weight:"bold"},onSelect:e=>{let a=N.find(a=>a.briefDescEng===e);a&&(p(a),w("bottom"))}})]})]}),(0,l.jsx)("button",{onClick:()=>{m&&g&&(h(g),p(m),f(v??""),b(""),w("top"))},className:"w-[72px] h-[72px] bg-[white] rounded-full flex items-center justify-center absolute self-center top-[160px] border border-border-tertiary cursor-pointer",children:(0,l.jsx)("svg",{width:"27",height:"27",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.77838 4.40338C8.10788 4.07387 8.64212 4.07387 8.97162 4.40338L13.4716 8.90338C13.8011 9.23288 13.8011 9.76712 13.4716 10.0966C13.1421 10.4261 12.6079 10.4261 12.2784 10.0966L9.21875 7.03699V23C9.21875 23.466 8.84099 23.8438 8.375 23.8438C7.90901 23.8438 7.53125 23.466 7.53125 23V7.03699L4.47162 10.0966C4.14212 10.4261 3.60788 10.4261 3.27838 10.0966C2.94887 9.76712 2.94887 9.23288 3.27838 8.90338L7.77838 4.40338ZM19.625 4.15625C20.091 4.15625 20.4688 4.53401 20.4688 5V20.963L23.5284 17.9034C23.8579 17.5739 24.3921 17.5739 24.7216 17.9034C25.0511 18.2329 25.0511 18.7671 24.7216 19.0966L20.2216 23.5966C19.8921 23.9261 19.3579 23.9261 19.0284 23.5966L14.5284 19.0966C14.1989 18.7671 14.1989 18.2329 14.5284 17.9034C14.8579 17.5739 15.3921 17.5739 15.7216 17.9034L18.7813 20.963V5C18.7813 4.53401 19.159 4.15625 19.625 4.15625Z",fill:"#333333"})})})]})]})}},29162:(e,a,t)=>{"use strict";t.r(a),t.d(a,{BbynSectionTitle:()=>u});var l=t(95155),i=t(61792),r=t(25354),s=t(12115),n=t(86350),c=t(31013),d=t(29722),o=t(21544);let u=({title:e,desc:a,className:t,award:u,haveButton:m,btnSize:h,btnType:g,btnVariant:p,link:x,btnlabel:f,btnClass:v,onClick:b,IsButton:j,IsLink:w=!1,colorTitle:y="secondary",colorDescription:N="placeholder",classDescription:C,titleChangeTo:k})=>{let A=(0,s.useRef)(null),D=(0,i.W)(A,{once:!0});return(0,l.jsxs)(r.PY1.div,{ref:A,initial:{opacity:0,y:50},animate:{opacity:+!!D,y:50*!D},transition:{type:"spring",stiffness:300,damping:60,delay:.4},className:`flex flex-col lg:text-center ${t} ${!u&&"lg:w-full  "}`,children:[m&&(0,l.jsx)(n.A,{type:g,size:h,colorvariant:p,isLink:w,href:`/${x}`,onClick:b,className:(0,d.A)("mt-spacing-2 lg:m-0",v),children:f}),a&&(0,l.jsx)("div",{className:"custom--tag--strong",children:(0,l.jsx)(c.default,{variant:"h4",color:N,align:"center",className:` lg:m-auto ${u&&"text-center"} ${C||"lg:max-w-[854px]"}`,as:"div",children:(0,o.Q)(a)})}),e&&(0,l.jsx)("div",{className:"",children:(0,l.jsx)(c.default,{variant:"h2",color:y,align:"center",className:`${u&&"text-center"}`,as:k,children:e})})]})}},29892:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var l=t(95155),i=t(12115),r=t(75751),s=t(31013),n=t(21544),c=t(61792),d=t(25354),o=t(62094);let u=({title:e,description:a,details:t,points_calculation:r,gradient:u})=>{let m=(0,i.useRef)(null),h=(0,c.W)(m,{once:!0}),{lang:g}=(0,o.useLang)();return((e,a)=>{if(a)return;let t=(e||"").toLowerCase().trim().replace(/^ال/,"").replace(/[\u064B-\u0652\u0670]/g,"").replace(/ـ/g,"").replace(/[اأإآ]/g,"ا").replace(/ى/g,"ي").replace(/\u06CC/g,"ي");return/(?:bronze|برونز(?:ي(?:[هة]|ا)?)?)/.test(t)||/(?:silver|فض(?:ي(?:[هة]|ا)?|[هة]))/.test(t)||/(?:gold|ذهب|ذهبي(?:[هة]|ا)?)/.test(t)})(e,u),(0,l.jsxs)(d.PY1.div,{ref:m,initial:{opacity:0,y:50},animate:{opacity:+!!h,y:50*!h},transition:{type:"spring",stiffness:300,damping:60,delay:.4},className:"max-w-[353px] h-auto border border-border-tertiary rounded-radius-5 overflow-hidden",children:[(0,l.jsx)("div",{className:"w-full h-[171px]",style:{background:"linear-gradient(0deg, #494949 0.1%, #999b9b 99.9%)"},children:(0,l.jsxs)("div",{className:"py-[32px] px-[16px] flex flex-col items-center justify-between size-full",children:[(0,l.jsx)(s.default,{variant:"h2",weight:"bold",color:"default",children:e}),(0,l.jsx)(s.default,{variant:"span",weight:"light",color:"default",className:"text-center items-center w-[280px]",align:"text-center",children:a})]})}),(0,l.jsxs)("div",{className:"bg-white flex flex-col justify-between  pt-6 pb-8 px-4",children:[(0,l.jsx)("div",{className:"mb-spacing-7",children:(0,l.jsx)(s.default,{variant:"h5",color:"tertiary",weight:"light",children:t})}),(0,l.jsx)(s.default,{variant:"h5",color:"tertiary",weight:"bold",children:"ar"===g?"حِسبة النقاط":"Points calculation"}),(0,l.jsx)("div",{className:"editor--overide",children:(0,n.Q)(r||"")})]})]})},m=({title:e,description:a,footer_text:t,childrenData:c})=>(0,l.jsxs)("div",{className:"flex flex-col justify-center items-center w-full gap-spacing-5 lg:gap-spacing-7",children:[(0,l.jsx)(r.default,{title:e,description:a}),(0,l.jsx)("div",{className:"flex flex-wrap justify-center gap-spacing-7",children:c?.map((e,a)=>{let t="object"==typeof e?.variant&&e?.variant?e.variant:null,l=t&&"string"==typeof t.gradient?t.gradient:void 0;return(0,i.createElement)(u,{...e.data,key:"brc"+a,gradient:l})})}),(0,l.jsx)(s.default,{variant:"h4",color:"tertiary",align:"text-center",weight:"bold",as:"div",children:(0,n.Q)(t)})]})},32035:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>G});
1var l=t(95155),i=t(12115),r=t(25664),s=t(19658),n=t(62094),c=t(17016),d=t(99003),o=t(49584),u=t(97408),m=t(15217);let h=({field:e,control:a,error:t})=>(0,l.jsx)("div",{className:"flex flex-col w-full",children:(0,l.jsx)(d.xI,{name:e.name,control:a,render:({field:{value:a,onChange:i,onBlur:r,ref:s}})=>(0,l.jsx)(m.A,{ref:s,label:e.label,name:e.name,type:"text",value:a??"",onChange:i,onBlur:r,placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",maxLength:e.maxLength,autoComplete:"on",spellCheck:"false"})})});var g=t(7974);let p=({field:e,control:a,error:t})=>(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:"",render:({field:{value:a,onChange:i,onBlur:r}})=>(0,l.jsx)(m.A,{label:e.label,name:e.name,type:"email",value:a||"",onChange:e=>i(e.target.value),onBlur:e=>{i((0,g.qh)(e.target.value)),r()},placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",autoComplete:"email",autoCapitalize:"none",autoCorrect:"off",spellCheck:!1})}),x=({field:e,control:a,error:t})=>{let r=(0,i.useMemo)(()=>e.maxLength??(0,g.ts)(e.mask)??8,[e]);return(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:"",render:({field:{value:a,onChange:i,onBlur:s}})=>(0,l.jsx)(m.A,{label:e.label,name:e.name,type:"text",inputMode:"tel",value:a||"",onChange:e=>{i((0,g.EE)(e.target.value,r))},onBlur:s,placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",maxLength:r,autoComplete:"tel-national"})})},f=({field:e,control:a,error:t})=>(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:void 0,render:({field:{value:a,onChange:i,onBlur:r}})=>(0,l.jsx)(m.A,{label:e.label,name:e.name,type:"number",inputMode:"decimal",value:a??"",onChange:e=>{let a=e.target.value;""===a?i(""):i((0,g.y3)(a))},onBlur:r,placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",min:e.min,max:e.max,step:"any"})});var v=t(31013);let b=({field:e,control:a,error:t})=>(0,l.jsx)("div",{className:"flex flex-col w-full",children:(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:"",render:({field:{value:a,onChange:i,onBlur:r}})=>(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)(m.A,{label:e.label,name:e.name,type:"textarea",value:a||"",onChange:i,onBlur:r,placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",rows:e.rows||4,maxLength:e.maxLength,autoComplete:"off"}),e.maxLength&&(0,l.jsx)("div",{className:"absolute top-0 end-0",children:(0,l.jsxs)(v.default,{variant:"small",color:"tertiary",children:[a?.length||0," / ",e.maxLength]})})]})})});var j=t(12363),w=t(64577),y=t(91256);let N=({field:e,control:a,error:t})=>{let{lang:r}=(0,n.useLang)(),[s,c]=(0,i.useState)(!1),o=(0,i.useRef)(null),u=(0,i.useMemo)(()=>(0,g.cu)(e),[e]),m=(0,i.useMemo)(()=>e.placeholder?.trim()?e.placeholder:"ar"===r?"اختر من القائمة":"Select an option",[e.placeholder,r]);return(0,i.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,l.jsxs)("div",{className:"flex flex-col w-full gap-6",children:[(0,l.jsx)(v.default,{variant:"h6",color:"tertiary",weight:"light",children:e.label}),(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:"",render:({field:{value:e,onChange:a,onBlur:i}})=>{let r=u.find(a=>a.value===e);return(0,l.jsxs)("div",{className:"relative",ref:o,children:[(0,l.jsxs)("button",{type:"button",onClick:()=>c(!s),onBlur:i,className:(0,y.cn)("flex items-center justify-between w-full p-4 border transition-all outline-none","lg:rounded-container-small roun
1ded-[8px] bg-surface-default",s?"border-border-secondary ring-1 ring-border-secondary":"border-border-tertiary",t&&"border-border-error ring-0"),children:[(0,l.jsx)("span",{className:(0,y.cn)("truncate",r?"text-label-secondary font-bold":"text-label-placeholder font-light"),children:r?r.label:m}),(0,l.jsx)(j.A,{size:20,className:(0,y.cn)("transition-transform duration-200",s&&"rotate-180")})]}),s&&(0,l.jsx)("div",{className:"absolute z-50 w-full mt-2 bg-surface-default border border-border-tertiary lg:rounded-container-small rounded-[8px] shadow-xl max-h-60 overflow-y-auto animate-in fade-in zoom-in-95 duration-100",children:u.map(t=>{let i=e===t.value;return(0,l.jsxs)("button",{type:"button",onClick:()=>{a(t.value),c(!1)},className:(0,y.cn)("w-full px-4 py-3 text-left transition-colors flex items-center justify-between group",i?"bg-surface-secondary":"hover:bg-surface-tertiary"),children:[(0,l.jsx)("span",{className:(0,y.cn)("transition-colors",i?"text-action-primary font-bold":"text-label-secondary"),children:t.label}),i&&(0,l.jsx)(w.A,{size:18,className:"text-action-primary"})]},t.value)})})]})}}),(0,l.jsx)("footer",{className:"min-h-[20px]",children:t?.message?(0,l.jsx)(v.default,{variant:"small",color:"error",children:t.message}):e.hint&&(0,l.jsx)(v.default,{variant:"small",color:"tertiary",children:e.hint})})]})};var C=t(9005);let k=({field:e,control:a,error:t})=>{let[r,s]=(0,i.useState)(!1),n=(0,i.useRef)(null),c=(0,i.useMemo)(()=>(0,g.cu)(e),[e]);return(0,i.useEffect)(()=>{let e=e=>{n.current&&!n.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,l.jsxs)("div",{className:"flex flex-col w-full gap-spacing-component",children:[(0,l.jsx)(v.default,{variant:"h6",color:"secondary",weight:"light",children:e.label}),(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:[],render:({field:{value:a,onChange:d,onBlur:o}})=>{let u=Array.isArray(a)?a:[],m=(0,i.useMemo)(()=>c.filter(e=>u.includes(e.value)),[u,c]);return(0,l.jsxs)("div",{className:"relative",ref:n,children:[m.length>0&&(0,l.jsx)("div",{className:"mb-3 flex flex-wrap gap-2 animate-in fade-in slide-in-from-top-1",children:m.map(e=>(0,l.jsxs)("div",{className:"flex items-center gap-1.5 bg-action-primary text-white pl-3 pr-1.5 py-1 rounded-full text-sm font-medium transition-all",children:[(0,l.jsx)("span",{children:e.label}),(0,l.jsx)("button",{type:"button",onClick:()=>d(u.filter(a=>a!==e.value)),className:"hover:bg-white/20 rounded-full p-0.5 transition-colors",children:(0,l.jsx)(C.A,{size:14})})]},e.value))}),(0,l.jsxs)("button",{type:"button",onClick:()=>s(!r),onBlur:o,className:(0,y.cn)("flex items-center justify-between w-full p-4 border transition-all outline-none","lg:rounded-container-small roun
1ded-[8px] bg-surface-default",r?"border-border-secondary ring-1 ring-border-secondary":"border-border-tertiary",t&&"border-border-error ring-0"),children:[(0,l.jsx)("span",{className:(0,y.cn)("truncate",u.length>0?"text-label-secondary font-bold":"text-label-placeholder font-light"),children:u.length>0?`${u.length} Items Selected`:e.placeholder||"Select items..."}),(0,l.jsx)(j.A,{size:20,className:(0,y.cn)("transition-transform duration-200",r&&"rotate-180")})]}),r&&(0,l.jsx)("div",{className:"absolute z-50 w-full mt-2 bg-surface-default border border-border-tertiary lg:rounded-container-small rounded-[8px] shadow-xl max-h-64 overflow-y-auto animate-in zoom-in-95 duration-100",children:c.map(e=>{let a=String(e.value),t=u.includes(a);return(0,l.jsxs)("button",{type:"button",onClick:()=>{d((0,g.dl)(u,a))},className:"w-full px-4 py-3 text-left hover:bg-surface-secondary transition-colors flex items-center justify-between group",children:[(0,l.jsx)("span",{className:(0,y.cn)("transition-colors",t?"bg-neutral-auxiliary-green border-neutral-auxiliary-green":"text-label-secondary"),children:e.label}),t&&(0,l.jsx)(w.A,{size:18,className:"text-action-primary"})]},a)})})]})}}),t&&(0,l.jsx)("footer",{className:"mt-1",children:t?.message?(0,l.jsx)(v.default,{variant:"small",color:"error",children:t.message}):e.hint&&(0,l.jsx)(v.default,{variant:"small",color:"tertiary",children:e.hint})})]})},A=({field:e,control:a,error:t})=>{let r=(0,i.useMemo)(()=>(0,g.cu)(e),[e]);return(0,l.jsxs)("div",{className:"flex flex-col  gap-6",children:[(0,l.jsxs)(v.default,{variant:"h6",color:"tertiary",weight:"light",children:[e.label,e.required&&(0,l.jsx)("span",{className:"text-action-error ml-1",children:"*"})]}),(0,l.jsx)(d.xI,{name:e.name,control:a,render:({field:{value:a,onChange:i}})=>(0,l.jsx)("div",{className:"flex flex-col gap-3",children:r.map(r=>{let s=a===r.value;return(0,l.jsxs)("label",{className:(0,y.cn)("flex items-center  w-auto gap-3  border-0  cursor-pointer transition-all",s?"border-action-primary ":"border-border-tertiary ",t&&"border-border-error"),children:[(0,l.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,l.jsx)("input",{type:"radio",className:"sr-only",name:e.name,value:r.value,checked:s,onChange:()=>i(r.value)}),(0,l.jsx)("div",{className:(0,y.cn)("w-5 h-5 rounded-full border transition-all",s?"border-neutral-auxiliary-green":"border-border-tertiary")}),s&&(0,l.jsx)("div",{className:"absolute w-2.5 h-2.5 rounded-full bg-neutral-auxiliary-green animate-in zoom-in duration-200"})]}),(0,l.jsx)(v.default,{variant:"h6",color:"secondary",children:r.label})]},r.value)})})}),t&&(0,l.jsx)("footer",{className:" mt-1",children:t?.message?(0,l.jsx)(v.default,{variant:"small",color:"error",children:t.message}):e.hint&&(0,l.jsx)(v.default,{variant:"small",color:"tertiary",children:e.hint})})]})};var D=t(23269);let M=({field:e,control:a,error:t})=>{let r=(0,i.useMemo)(()=>(0,g.cu)(e),[e]),s=1===r.length;return(0,l.jsxs)("div",{className:"flex flex-col w-full gap-6",children:[!s&&(0,l.jsx)(v.default,{variant:"h6",color:"tertiary",weight:"light",className:"mb-1",children:e.label}),(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:[],render:({field:{value:a,onChange:t,onBlur:i}})=>{let s=Array.isArray(a)?a:[];return(0,l.jsx)("div",{className:"flex flex-col gap-4",children:r.map((a,r)=>{let n=s.includes(a.value),c=`${e.id}-${a.value}-${r}`;return(0,l.jsxs)("div",{className:"flex items-start gap-3 group",children:[(0,l.jsx)(D.A,{id:c,checked:n,onChange:()=>{t(n?s.filter(e=>e!==a.value):[...s,a.value]),i()},className:"mt-0.5"}),(0,l.jsx)("label",{htmlFor:c,className:"flex-1 cursor-pointer select-none",children:(0,l.jsx)(v.default,{variant:"h6",color:"secondary",weight:"light",className:"transition-colors ",children:a.label})})]},a.value)})})}}),t&&(0,l.jsx)("footer",{className:" mt-1",children:t?.message?(0,l.jsx)(v.default,{variant:"small",color:"error",children:t.message}):e.hint&&(0,l.jsx)(v.default,{variant:"small",color:"tertiary",children:e.hint})})]})},_=({field:e,control:a,error:t})=>{let r=(0,i.useMemo)(()=>e.maxLength??(0,g.ts)(e.mask)??12,[e]);return(0,l.jsx)(d.xI,{name:e.name,control:a,render:({field:{value:a,onChange:i}})=>{let s=a||"",n=String(s).length;return(0,l.jsx)(m.A,{label:e.label,name:e.name,type:"text",value:s,onChange:e=>{i((0,g.a6)(e.target.value,r))},placeholder:e.placeholder,required:e.required,hint:e.hint,error:t?.message,width:"w-full",maxLength:r,
1inputMode:"numeric",pattern:"[0-9]*",haveInnerInput:!0,innerInputText:`${n}/${r}`})}})};var $=t(4933);t(37763);var P=t(29722);let L=({label:e,value:a,onChange:t,placeholder:i,minDate:r,maxDate:s,dateFormat:n="dd/MM/yyyy",error:c,hint:d})=>(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-font-size-h6 font-light text-label-tertiary mb-within-component-2",children:(0,l.jsx)(v.default,{variant:"h6",color:"tertiary",weight:"light",children:e})}),(0,l.jsx)($.Ay,{selected:a,onChange:t,placeholderText:i,minDate:r,maxDate:s,dateFormat:n,className:(0,P.A)("lg:rounded-container-small rounded-[8px] w-full bg-surface-default text-label-secondary p-4 border placeholder:opacity-100 focus:placeholder:opacity-0 transition-all font-bold placeholder:font-light outline-none focus:outline-none",c?"border-border-error focus:border-border-error":"border-border-tertiary focus:border-border-secondary"),wrapperClassName:"w-full"}),d&&(0,l.jsx)(v.default,{variant:"h6",weight:"light",color:"tertiary",className:"mt-within-component-2",children:d}),c&&(0,l.jsx)("div",{className:"mt-within-component-2",children:(0,l.jsx)(v.default,{variant:"small",color:"error",className:"text-label-error",children:c})})]}),S=({field:e,control:a,error:t})=>(0,l.jsx)(d.xI,{name:e.name,control:a,defaultValue:null,render:({field:{value:a,onChange:i}})=>(0,l.jsx)(L,{label:e.label,value:a instanceof Date?a:a?new Date(a):null,onChange:i,placeholder:e.placeholder,hint:e.hint,error:t?.message,minDate:e.min?new Date(e.min):void 0,maxDate:e.max?new Date(e.max):void 0})}),E=({field:e,control:a,error:t})=>{let{lang:i}=(0,n.useLang)(),r=e.max||10,s=Array.from({length:r},(e,a)=>a+1);return(0,l.jsxs)("div",{className:"w-full gap-6",children:[(0,l.jsx)(d.xI,{name:e.name,control:a,render:({field:{value:a,onChange:t}})=>{let n=a||0;return(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,l.jsx)("label",{className:"text-label-tertiary lg:max-w-[95%] max-w-[85%] block font-light",children:e.label}),(0,l.jsx)(v.default,{variant:"h4",color:"secondary",className:"block lg:hidden",children:n})]}),(0,l.jsx)("div",{className:"hidden md:flex items-center gap-3  flex-wrap",children:s.map(e=>{let i=a===e;return(0,l.jsx)("button",{type:"button",onClick:()=>t(e),className:(0,y.cn)("w-12 h-12 lg:w-[60px] lg:h-[60px] text-size-4 rounded-full border-2 transition-all flex items-center justify-center",i?"bg-[#00000099] font-light text-white border-0 text-label-default shadow-md":"bg-surface-tertiary text-label-secondary border-transparent hover:border-action-primary/50"),children:e},e)})}),(0,l.jsx)("div",{className:"md:hidden space-y-4",children:(0,l.jsxs)("div",{className:"relative w-full h-12 flex items-center",children:[(0,l.jsx)("input",{type:"range",min:"1",max:r,step:"1",value:a||1,onChange:e=>t(parseInt(e.target.value)),className:(0,y.cn)("w-full h-2 p-2 bg-[#E8E8E8] rounded-lg appearance-none cursor-pointer accent-action-tertiary","[&::-webkit-slider-thumb]:appearance-none","[&::-webkit-slider-thumb]:w-8","[&::-webkit-slider-thumb]:h-8","[&::-webkit-slider-thumb]:rounded-full","[&::-webkit-slider-thumb]:bg-surface-default","[&::-webkit-slider-thumb]:border-2","[&::-webkit-slider-thumb]:border-white","[&::-webkit-slider-thumb]:shadow-lg","[&::-moz-range-thumb]:w-8","[&::-moz-range-thumb]:h-8","[&::-moz-range-thumb]:rounded-full","[&::-moz-range-thumb]:bg-surface-default","[&::-moz-range-thumb]:border-2","[&::-moz-range-thumb]:border-white","[&::-moz-range-thumb]:shadow-custom-shadow","[&::-moz-range-thumb]:border-none")}),(0,l.jsx)("div",{className:"flex absolute w-full -z-1 justify-around",children:s.map(e=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"4",height:"4",viewBox:"0 0 4 4",fill:"none",children:(0,l.jsx)("circle",{cx:"2",cy:"2",r:"2",fill:"#fff"})}))})]})}),(0,l.jsxs)("div",{className:"flex justify-between items-center px-1",children:[(0,l.jsx)(v.default,{className:"max-w-[120px]",variant:"h6",color:"secondary",children:"ar"===i?e.minLabel?.ar:e.minLabel?.en}),(0,l.jsx)(v.default,{className:"max-w-[120px] text-end",variant:"h6",color:"secondary",children:"ar"===i?e.maxLabel?.ar:e.maxLabel?.en})]})]})}}),t&&(0,l.jsx)("p",{className:"text-error text-tiny mt-1 animate-in fade-in slide-in-from-top-1",children:t.message})]})},R=({field:e,control:a,error:t})=>{switch(e.type){case"text":return(0,l.jsx)(h,{field:e,control:a,error:t});case"email":return(0,l.jsx)(p,{field:e,control:a,error:t});case"phone":return(0,l.jsx)(x,{field:e,control:a,error:t});case"number":return(0,l.jsx)(f,{field:e,control:a,error:t});case"civilid":return(0,l.jsx)(_,{field:e,control:a,error:t});case"datepicker":return(0,l.jsx)(S,{field:e,control:a,error:t});case"textarea":return(0,l.jsx)(b,{field:e,control:a,error:t});case"select":return(0,l.jsx)(N,{field:e,control:a,error:t});case"multiselect":return(0,l.jsx)(k,{field:e,control:a,error:t});case"radio":return(0,l.jsx)(A,{field:e,control:a,error:t});case"rating":return(0,l.jsx)(E,{field:e,control:a,error:t});case"checkbox":return(0,l.jsx)(M,{field:e,control:a,error:t});default:return console.warn(`[FieldFactory]: Unsupported field type "${e.type}" for field "${e}"`),null}};var I=t(42399);let F=/^[0-9]{8}$/,B=/^[0-9]{12}$/,T=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,z=/^[\p{L}\p{N} .,\/#@:\-]+$/u,H=/^[\p{L}\p{N} .,\/#@:\-\n\r]+$/u,W=(e,a="en")=>{let t={};
1return e.forEach(e=>{let l;switch(e.type){case"email":l=I.Yj().transform(e=>""===e?void 0:e).trim().notRequired().matches(T,{message:"en"===a?"Invalid email format":"تنسيق البريد الإلكتروني غير صالح",excludeEmptyString:!0});break;case"phone":l=I.Yj().transform(e=>""===e?void 0:e).trim().notRequired().matches(F,{message:"en"===a?"Phone number must be 8 digits":"رقم الهاتف يجب أن يكون 8 أرقام",excludeEmptyString:!0});break;case"civilid":l=I.Yj().transform(e=>""===e?void 0:e).trim().notRequired().matches(B,{message:"en"===a?"Civil ID must be 12 digits":"الرقم المدني يجب أن يكون 12 رقمًا",excludeEmptyString:!0});break;case"textarea":{let t=I.Yj().transform(e=>"string"!=typeof e?e:e.trim()).transform(e=>""===e?void 0:e).notRequired().matches(H,{message:"en"===a?"Only letters, numbers, spaces, new lines, and . , - : / # @ are allowed":"يسمح فقط بالحروف والأرقام والمسافات والأسطر الجديدة والرموز التالية: . , - : / # @",excludeEmptyString:!0});e.maxLength&&(t=t.max(e.maxLength,"en"===a?`Message must not exceed ${e.maxLength} characters`:`يجب ألا تتجاوز الرسالة ${e.maxLength} حرفًا`)),l=t;break}case"rating":{let t=e.min||1,i=e.max||5;l=I.ai().transform((e,a)=>""===a||null===a?void 0:e).typeError("en"===a?"Please select a rating":"يرجى اختيار تقييم").nullable().notRequired().min(t,"en"===a?`Minimum rating is ${t}`:`الحد الأدنى للتقييم هو ${t}`).max(i,"en"===a?`Maximum rating is ${i}`:`الحد الأقصى للتقييم هو ${i}`);break}case"datepicker":{let t=I.p6().transform((e,a)=>""===a?null:e).nullable().notRequired();e.min&&(t=t.min(new Date(e.min),"en"===a?"Date must be after minimum date":"التاريخ يجب أن يكون بعد التاريخ الأدنى")),e.max&&(t=t.max(new Date(e.max),"en"===a?"Date must be before maximum date":"التاريخ يجب أن يكون قبل التاريخ الأقصى")),l=t;break}case"number":l=I.ai().transform((e,a)=>""===a?void 0:e).typeError("en"===a?"Must be a number":"يجب أن يكون رقماً").nullable().notRequired();break;case"radio":case"select":{let t=(0,g.cu)(e).map(e=>String(e.value));l=I.Yj().transform(e=>""===e?void 0:e).trim().notRequired().oneOf(t,"en"===a?"Please select a valid option":"يرجى اختيار خيار صالح");break}case"multiselect":case"checkbox":{let t=(0,g.cu)(e).map(e=>String(e.value)),i=I.YO().of(I.Yj().oneOf(t)).notRequired();e.required&&(i=i.min(1,"en"===a?"At least one option must be selected":"يجب اختيار خيار واحد على الأقل")),l=i;break}default:{let t=I.Yj().transform(e=>"string"!=typeof e?e:e.replace(/\s+/g," ").trim()).transform(e=>""===e?void 0:e).notRequired().matches(z,{message:"en"===a?"Only letters, numbers, spaces, and . , - : / # @ are allowed":"يسمح فقط بالحروف والأرقام والمسافات والرموز التالية: . , - : / # @",excludeEmptyString:!0});e.maxLength&&(t=t.max(e.maxLength,"en"===a?`Text must not exceed ${e.maxLength} characters`:`النص يجب ألا يتجاوز ${e.maxLength} حرفًا`)),l=t}}if(e.required){let t="en"===a?`${e.label} is required`:`${e.label} مطلوب`;"datepicker"===e.type||"number"===e.type||"rating"===e.type?l=l.required(t).nonNullable():"checkbox"===e.type||"multiselect"===e.type||(l=l.required(t))}t[e.name]=l}),I.Ik().shape(t)};var V=t(76721),O=t(78780),Z=t(21544);let q=({config:e,onSubmit:a,isSubmitting:t=!1,className:r="",form_plugin_name:c})=>{let{lang:u}=(0,n.useLang)(),m="ar"===u,[h,g]=(0,i.useState)(0),p=(0,i.useMemo)(()=>e.steps&&e.steps.length>0?[...e.steps].sort((e,a)=>e.order-a.order):[{id:"default-step",title:e.title||"",description:e.description,order:1,fields:[...e.fields].sort((e,a)=>e.order-a.order)}],[e]),x=p[h],f=h===p.length-1,b=(0,i.useMemo)(()=>p.flatMap(e=>e.fields),[p]),j=(0,i.useMemo)(()=>W(b,u),[b,u]),{control:w,handleSubmit:N,trigger:C,reset:k,formState:{errors:A}}=(0,d.mN)({resolver:(0,o.t)(j),mode:"onChange"}),D=async()=>{let e=x.fields.map(e=>e.name);await C(e)&&!f&&(g(e=>e+1),window.scrollTo({top:0,behavior:"smooth"}))},M=async t=>{let l={...t,formName:c||e.title||"multi_step_form"};try{await a(l),k(),g(0)}catch(e){console.error("Submission Error:",e)}},_=Math.round((h+1)/p.length*100);return(0,l.jsxs)("div",{className:(0,y.cn)("w-full max-w-2xl mx-auto",r),children:[p.length>1&&(0,l.jsxs)("div",{className:"mb-8",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,l.jsx)(v.default,{variant:"small",color:"tertiary",children:"en"===u?`Step ${h+1} of ${p.length}`:`الخطوة ${h+1} من ${p.length}`}),(0,l.jsxs)(v.default,{variant:"small",color:"primary",weight:"bold",children:[_,"%"]})]}),(0,l.jsx)("div",{className:"w-full bg-surface-tertiary rounded-full h-1.5",children:(0,l.jsx)("div",{className:"bg-action-primary h-1.5 rounded-full transition-all duration-500 ease-out",style:{width:`${_}%`}})})]}),(0,l.jsxs)("header",{className:"mb-8",children:[(0,l.jsx)(v.default,{variant:"h3",color:"secondary",className:"mb-2",children:x.title}),x.description&&(0,l.jsx)("div",{className:"text-label-tertiary",children:(0,Z.Q)(x.description)})]}),(0,l.jsx)("div",{className:"grid grid-cols-1 gap-6 mb-10",children:x.fields.map(e=>(0,l.jsx)(R,{field:e,control:w,error:A[e.name]},e.id||e.name))}),(0,l.jsxs)("footer",{className:"flex items-center justify-between pt-6 border-t border-border-tertiary",children:[(0,l.jsx)("div",{className:"min-w-[120px]",children:0!==h&&(0,l.jsxs)(s.$,{type:"button",variant:"secondary",onClick:()=>g(e=>e-1),className:"flex items-center gap-2",children:[m?(0,l.jsx)(V.A,{size:18}):(0,l.jsx)(O.A,{size:18}),e.previousStepButtonText||("ar"===u?"السابق":"Previous")]})}),(0,l.jsx)("div",{className:"min-w-[120px]",children:f?(0,l.jsx)(s.$,{type:"button",onClick:N(M),disabled:t,className:" text-label-default px-8",children:t?"ar"===u?"جاري الإرسال...":"Submitting...":e.submitButtonText||("ar"===u?"إرسال":"Submit")}):(0,l.jsxs)(s.$,{type:"button",onClick:D,className:"flex items-center gap-2 ",variant:"secondary",children:[e.nextStepButtonText||("ar"===u?"التالي":"Next"),m?(0,l.jsx)(O.A,{size:18}):(0,l.jsx)(V.A,{size:18})]})})]})]})},U=({config:e,titleWrapperClass:a,descWrapperClass:t,onSubmit:r,isSubmitting:s=!1,className:c="",uiVariant:m="default",...h})=>{let{lang:g}=(0,n.useLang)(),p="inpage"===m,x=(0,i.useMemo)(()=>W(e.fields,g),[e.fields,g]),{control:f,handleSubmit:b,reset:j,formState:{errors:w,isValid:N,isDirty:C}}=(0,d.mN)({resolver:(0,o.t)(x),mode:"onChange"});if(e.isMultiStep||e.steps&&e.steps.length>
11)return(0,l.jsx)(q,{config:e,onSubmit:r,isSubmitting:s,className:c});let k=async a=>{try{await r({...a,formName:e.form_plugin_name}),j()}catch(e){console.error("Submission failed",e)}};return(0,l.jsxs)("div",{className:(0,y.cn)("w-full transition-all duration-300",p?"max-w-[746px] mx-auto py-8":"p-4",c),children:[(0,l.jsxs)("header",{className:"mb-8 space-y-2",children:[e.title&&(0,l.jsx)("div",{className:a,children:(0,l.jsx)(v.default,{variant:"h3",color:"secondary",weight:"light",align:p?"text-start lg:text-center":"text-start",children:e.title})}),e.description&&(0,l.jsx)("div",{className:t,children:(0,l.jsx)(v.default,{variant:"h6",color:"tertiary",weight:"light",as:"div",align:p?"text-start lg:text-center":"text-start",children:(0,Z.Q)(e.description)})})]}),(0,l.jsxs)("form",{onSubmit:b(k),className:(0,y.cn)("flex flex-col gap-y-8",u.p.exclude),children:[(0,l.jsx)("div",{className:(0,y.cn)("grid grid-cols-1 gap-6",p?"lg:gap-8":"gap-5"),children:e.fields.map(e=>(0,l.jsx)(R,{field:e,control:f,error:w[e.name]},e.id||e.name))}),(0,l.jsxs)("footer",{className:(0,y.cn)("mt-4 flex flex-col items-center gap-4",p?"w-full":"w-full lg:items-start"),children:[(0,l.jsx)("button",{type:"submit",disabled:s||!N,className:(0,y.cn)("w-full lg:w-fit min-w-[200px] text-label-default rounded-full px-8 py-4 font-bold transition-all","flex items-center justify-center gap-2",s||!N?"bg-surface-tertiary text-label-disabled cursor-not-allowed":"bg-action-primary text-label-default hover:bg-action-primary-hover active:scale-95 shadow-md",h.submitTrackingClassName),...h.submitTrackingId&&{id:h.submitTrackingId},children:s?(0,l.jsxs)("span",{className:"flex items-center gap-2",children:[(0,l.jsx)("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"ar"===g?"جاري الإرسال...":"Submitting..."]}):e.submitButtonText||("ar"===g?"إرسال":"Submit")}),!N&&C&&(0,l.jsx)(v.default,{variant:"small",color:"error",children:"ar"===g?"يرجى التأكد من ملء جميع الحقول المطلوبة بشكل صحيح.":"Please ensure all required fields are filled correctly."})]})]})]})};var Y=t(73321),K=t(66509);let G=({config:e,pluginData:a,isSubmitting:t=!1,className:d="",displayMode:o,modalTrigger:u,modalProps:m={},form_plugin_name:h})=>{let[p,x]=i.useState(!1),{openModal:f,closeModal:v}=(0,r.useModal)(),{lang:b}=(0,n.useLang)(),j=(0,c.d)(),w=(0,Y.useRouter)(),y=i.useMemo(()=>{if(e)return e;if(a)return(0,g.Ae)(a);throw Error("Either config or pluginData must be provided")},[e,a]);i.useEffect(()=>{let e=a?.data?.form_type||y?.form_type,t=a?.data?.form_name||y?.name;if("cxm"===e){let e=new URLSearchParams(window.location.search);if(!e.has("id")){x(!0),j.success("en"===b?"No ID Available!":"لم يتم العثور علي الرقم الوظيفي");return}(async()=>{try{let a=await fetch(`https://www.bankboubyan.com/${b}/api/forms/check_submitted/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cxm_id:e.get("id")||"0",form_name:t})});if(!a.ok)throw Error("Network response was not ok");let l=await a.json();l?.data?.is_submitted&&(x(!0),j.info("en"===b?"You have already submitted this form!":"لقد قمت بإرسال هذا النموذج من قبل!"),w.push(`/${b}`))}catch(e){console.error("Failed to verify submission status:",e)}})()}},[a,y,b,w,j]);let N=i.useMemo(()=>("cxm"!==(a?.data?.form_type||y?.form_type)||!!new URLSearchParams(window.location.search).has("id"))&&t,[t,a,y]),C=i.useMemo(()=>{let e;return"modal"===(e=String(o??a?.data?.display_mode??"").toLowerCase().trim())?"modal":"layout"===e?"layout":"inpage"===e||"in_page"===e||"in-page"===e?"inpage":"layout"},[o,a]),k="inpage"===C?"inpage":"default",A=i.useMemo(()=>h||a?.data?.form_plugin_name||y.name||"dynamic_form",[h,a,y.name]),D=i.useMemo(()=>{let e;return e=String(A??"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")||"dynamic-form",{openTrackingId:`form-open-${e}`,openTrackingClassName:`form-open-${e}`,openTrackingName:`form-open-${e}`,submitTrackingId:`form-submit-${e}`,submitTrackingClassName:`form-submit-${e}`,submitTrackingName:`form-submit-${e}`,submitTrackingType:"lead"}},[A]),M=async e=>{try{let{formName:t,...l}=e,i=[];if(y?.fields&&Array.isArray(y.fields)){let e=(i=y.fields.filter(e=>
1{let a=e.name||e.id;return Object.prototype.hasOwnProperty.call(l,a)}).map(e=>{let a=e.name||e.id,t=l[a];if(("checkbox"===e.type||"select"===e.type||"radio"===e.type)&&e.options&&Array.isArray(e.options))if(Array.isArray(t))t=t.map(a=>{let t=e.options.find(e=>String(e.id||e.value)===String(a));return t?t.label||t.text||t.name:a});else{let a=e.options.find(e=>String(e.id||e.value)===String(t));a&&(t=a.label||a.text||a.name)}return{name:a,value:t,order:void 0!==e.order?Number(e.order):0}}).sort((e,a)=>e.order-a.order)).length>0?Math.max(...i.map(e=>e.order)):0,a=1;Object.keys(l).forEach(t=>{!i.some(e=>e.name===t)&&(i.push({name:t,value:l[t],order:e+a}),a++)})}else i=Object.keys(l).map((e,a)=>({name:e,value:l[e],order:a+1}));let r=new URLSearchParams(window.location.search),s=(0,K.$n)(r),n={cxm_id:Number(r.get("id"))||0,form_type:a?.data?.form_type||y.form_type,access_group:a?.data?.access_group||[]},c=(a?.data?.form_id||y.id||"unknown").toString().replace("form_",""),d=await fetch(`https://www.bankboubyan.com/${b}/api/forms/submit/`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({form_plugin_id:c,form_plugin_name:A,...s,...n,form_data:i,page_url:window.location.href.split("?")[0]})});console.log(d);let o=await d.json();if(o?.status!=="success"&&o?.status!=="Created Success")throw Error(o?.message||"Submission failed");(0,K.ao)(),"modal"===C&&v?.(),j.success(y?.successMessage,{analyticsId:`${D.submitTrackingName}-success`,analyticsState:"success"})}catch(e){throw j.error(y?.errorMessage,{analyticsId:`${D.submitTrackingName}-error`,analyticsState:"error"}),e}};if("modal"===C){let e=a?.data?.modal_trigger_text||y.title||"Open Form";return(0,l.jsx)("div",{className:"cursor-pointer",onClick:()=>{let e={title:m.title||y.title,closeButtonClass:m.closeButtonClass||"relative w-full block lg:h-[72px] h-[56px] flex justify-end items-end lg:px-spacing-7 px-spacing-5 bg-surface-default",iswhiteModal:!1,...m};f({content:(0,l.jsx)("div",{children:(0,l.jsx)(U,{config:y,onSubmit:M,isSubmitting:N,className:d,form_plugin_name:A,uiVariant:k,submitTrackingId:D.submitTrackingId,submitTrackingClassName:D.submitTrackingClassName,submitTrackingName:D.submitTrackingName,submitTrackingType:D.submitTrackingType})}),...e})},children:u||(0,l.jsx)("div",{className:"flex items-center justify-center",children:(0,l.jsx)(s.$,{id:D.openTrackingId,className:D.openTrackingClassName,trackingName:D.openTrackingName,trackingType:"lead",variant:"primary",type:"button",children:(0,l.jsx)("span",{className:"text-base leading-[24px] font-normal",children:e})})})})}return(0,l.jsx)(U,{config:y,onSubmit:M,isSubmitting:N,className:d,form_plugin_name:A,uiVariant:k,submitTrackingId:D.submitTrackingId,submitTrackingClassName:D.submitTrackingClassName,submitTrackingName:D.submitTrackingName,submitTrackingType:D.submitTrackingType})}},32133:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var l=t(95155),i=t(98223),r=t(31013),s=t(62094),n=t(29722),c=t(5772),d=t(37616);let o=({card:e,index:a=0,lastCard:t,roundedLast:o,className:u="",mobilePopUp:m,oneCard:h})=>{let{lang:g}=(0,s.useLang)(),p=e?.data?.title??e?.title??`Item ${a+1}`,x=e?.data?.pdf||e?.data?.book||e?.link||"",f=`bg-surface-tertiary flex justify-between rounded-[8px] p-spacing-5 lg:py-spacing-4 lg:px-spacing-6 lg:rounded-container-small ${u}`,v=`bg-surface-tertiary ${!t?"mb-[1px]":""}
1 ${t&&o?m?"lg:rounded-b-container-small rounded-b-[8px]":"rounded-b-container-large":""} ${m?"p-spacing-5 lg:py-spacing-4 lg:px-spacing-6":"py-spacing-4 px-spacing-6"} flex justify-between ${0===a?m?"lg:rounded-t-container-small rounded-t-[8px]":"rounded-t-container-large":""} ${u}`;return(0,l.jsxs)("div",{className:h?f:v,children:[(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex gap-spacing-4",children:[(0,l.jsx)("div",{className:"relative flex-shrink-0 w-10 h-12 lg:w-8 lg:h-8",children:(0,l.jsx)(c.default,{src:d.default,width:26,height:32,alt:`${p}-book`,unoptimized:!0,className:"object-contain",priority:!1})}),(0,l.jsx)("div",{className:"flex items-center ",children:(0,l.jsx)(r.default,{color:"tertiary",weight:"light",variant:"h6",children:p})})]})}),(0,l.jsx)("div",{className:"ms-spacing-4",children:(0,l.jsx)(i.A,{url:x||"#",target:"_blank","aria-disabled":!x,prefetch:!1,children:(0,l.jsxs)("svg",{className:(0,n.A)("ar"===g?"-rotate-90":"rotate-0"),width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]})})})]})}},32806:(e,a,t)=>{"use strict";t.d(a,{default:()=>h});var l=t(95155),i=t(61792),r=t(12185),s=t(12115),n=t(31013),c=t(27003),d=t(62094),o=t(36341),u=t(69984),m=t(91256);let h=({childrenData:e})=>{let a=(0,s.useRef)(null),t=(0,i.W)(a,{once:!1,margin:"-20% 0px -20% 0px"}),{isMobile:h}=(0,c.k)(),[g]=(0,u.A)(),p=["#E4ECFC","#E4FCF3","#FFF6DE"],{lang:x}=(0,d.useLang)();return(0,l.jsx)("div",{ref:a,children:(0,l.jsx)("div",{className:(0,m.cn)("scrollbar-hide flex gap-spacing-4 lg:max-w-none lg:pb-0 pb-4 flex-nowrap transition-all duration-700 ease-in-out overflow-x-auto  lg:overflow-visible px-spacing-5",t&&h?"justify-start":"justify-center"),style:{WebkitOverflowScrolling:"touch",scrollBehavior:"smooth",maxWidth:h?g+"px":"none"},children:e?.map((a,i)=>{let s=0===i?-5:i===e.length-1?5:-2,c=0===i?h?"14rem":"7rem":"auto",d=i===e.length-1?h?"14rem":"7rem":"auto",u=0===i||i===e.length-1?10:30;return(0,l.jsx)(r.P.div,{initial:{rotate:s,left:"en"===x?c:d,right:"en"===x?d:c,zIndex:u},animate:t?{rotate:0,left:0,right:0}:{},transition:{type:"spring",stiffness:300,damping:30},className:(0,m.cn)("min-w-[233px] snap-start  shrink-0 w-[233px] relative lg:h-[300px] h-[260px] rounded-container-large",h&&t&&{"order-2":0===i,"order-1":1===i,"order-3":2===i}),style:{background:p[i%p.length],willChange:"transform, left, right",WebkitTransform:"translateZ(0)",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",WebkitTapHighlightColor:"transparent"},children:(0,l.jsxs)("div",{className:"flex flex-col lg:gap-spacing-5 justify-between h-full lg:px-0 pb-4",children:[(0,l.jsx)(o.default,{type:"image",width:255,height:155,src:a.data.image,alt:`alt-${a.data.image}`,classname:"w-full object-cover",IsApiFromData:!0}),(0,l.jsxs)("div",{className:"primefeature flex flex-col gap-spacing-2 pb-4 mx-auto text-center max-w-[185px]",children:[(0,l.jsx)(n.default,{variant:"h4",align:"center",weight:"medium",color:"secondary",children:a.data.title}),(0,l.jsx)(n.default,{variant:"h6",align:"center",color:"secondary",children:a.data.description})]})]})},i)})})})}},33283:(e,a,t)=>{"use strict";t.d(a,{default:()=>d});var l=t(95155),i=t(31013),r=t(19658),s=t(27003),n=t(36341),c=t(25664);let d=({is_reversed:e=!0,button_variant:a="primary",title:t,description:d,image:o,label:u,logo:m,childrenData:h})=>{let{isMobile:g}=(0,s.k)(),{popupClickHandler:p}=(0,c.useModal)();return(0,l.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 px-5 lg:px-0",children:[(0,l.jsxs)("div",{className:`relative w-full rounded-container-small  lg:rounded-none overflow-hidden ${e?"lg:order-1":"lg:order-2"}`,style:{height:`${g?342:548}px`},children:[(0,l.jsx)(n.default,{src:o,IsApiFromData:!0,alt:"Hero background",type:"image",layout:"fill",classname:"relative h-[500px]",mediaClassName:"object-cover absolute top-0 right-0"}),(0,l.jsx)("div",{className:"bg-[linear-gradient(to_top,_lightgray_50%25,_transparent_50%25)] z-20 inset-0 absolute"})]}),(0,l.jsx)("div",{className:`lg:flex lg:items-center order-1 p-spacing-5 lg:px-10 lg:py-0 ${e?"lg:order-2":"lg:order-1"}`,children:(0,l.jsxs)("div",{children:[m&&(0,l.jsx)("div",{className:"border border-border-tertiary rounded-container-small p-[7.6px] overflow-hidden inline-block",children:(0,l.jsx)(n.default,{type:"image",width:104,height:104,src:m,alt:"news image",IsApiFromData:!0}
1)}),(0,l.jsxs)("div",{className:"lg:py-spacing-5 pb-spacing-5 pt-spacing-4",children:[(0,l.jsx)(i.default,{variant:"h2",weight:"light",color:"secondary",className:"mb-spacing-2",children:t}),(0,l.jsx)(i.default,{variant:"h5",weight:"light",color:"tertiary",children:d})]}),(0,l.jsx)(r.$,{variant:a,onClick:()=>{h&&p(h[0])},children:u})]})})]})}},35138:(e,a,t)=>{"use strict";t.d(a,{default:()=>c});var l=t(95155),i=t(12115),r=t(16067),s=t(58404),n=t(17243);let c=(0,i.memo)(({title:e,description:a,second_title:t,second_description:i,live_date:c})=>(0,l.jsx)("div",{className:"flex flex-col gap-spacing-7",children:(0,l.jsxs)("div",{className:"grid lg:grid-cols-[1fr_429px] grid-rows-1 gap-spacing-7 ",children:[(0,l.jsx)("div",{className:"min-w-0",children:(0,l.jsx)(r.default,{title:e,description:a,fullWidth:!0})}),(0,l.jsx)("div",{className:"min-w-0 lg:col-start-1 lg:row-start-2",children:(0,l.jsx)(r.default,{title:t,description:i,fullWidth:!0})}),(0,l.jsx)("aside",{className:"mt-[40px] lg:mt-0 lg:col-start-2 lg:row-start-1",children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5",children:[(0,l.jsx)("div",{children:(0,l.jsx)(n.A,{})}),(0,l.jsx)("div",{children:(0,l.jsx)(s.A,{inputclass:"lg:min-w-[238px] min-w-full py-spacing-3 px-spacing-4 lg:rounded-radius-6 rounded-radius-6 mb-4 font-light border-border-tertiary lg:m-0",actionclass:"w-full flex flex-col lg:gap-spacing-4",classname:"lg:flex-col flex-col flex gap-[20px] lg:p-spacing-5 p-spacing-5 bg-surface-tertiary rounded-3xl justify-between",label:"Stay in the loop on travel deals"})})]})})]})}))},35952:e=>{e.exports={richText:"managementBanner_richText__Co8K5"}},37211:(e,a,t)=>{"use strict";t.d(a,{A:()=>h});var l=t(95155),i=t(12115),r=t(61792),s=t(12185),n=t(80642),c=t(31013),d=t(31966),o=t(90467),u=t(29722),m=t(62094);let h=({data:e,childrenData:a,className:t="",tabsClassName:h="",contentClassName:g="",titleClassName:p="",activeTabColor:x="text-label-secondary",inactiveTabColor:f="text-label-tertiary",indicatorColor:v="bg-functionalTab-border-active",borderColor:b="border-border-tertiary",haveTitle:j=!0,renderContent:w,containerTabs:y,classBtn:N,tabactiveClass:C,tabClassContainer:k})=>{let{lang:A}=(0,m.useLang)(),[D,M]=(0,i.useState)((()=>{if(!Array.isArray(a)||0===a.length)return"";let e=a[0]?.data||{};return e.page_title||e.title||""})()),_=(0,i.useRef)(null),$=(0,i.useRef)(null),P=(0,i.useRef)(null),L=(0,r.W)(P,{once:!0}),S=a.findIndex(e=>(e.data.page_title||e.data.title)===D);(0,i.useEffect)(()=>{if(_.current){let e=_.current.querySelector(`[data-tab="${D}"]`);e&&e.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}},[D]);let E=a[S]?.data;return(0,l.jsxs)("div",{className:`container mx-auto ${t}`,children:[j&&(0,l.jsx)(s.P.div,{ref:P,initial:{opacity:0,y:20},animate:{opacity:+!!L,y:20*!L},transition:{duration:.5},children:(0,l.jsx)(c.default,{variant:"h2",color:"secondary",className:`lg:text-center relative mb-8 ${p}`,children:e.title})}),(0,l.jsxs)("div",{className:`relative flex items-center group my-spacing-7 ${h}`,children:[(0,l.jsx)("button",{onClick:()=>{if(S>0){let e=a[S-1].data;M(e.page_title||e.title)}},disabled:0===S,className:"absolute  lg:-start-4  start-0 z-20 p-2 transition-opacity bg-white/80 rounded-full  disabled:opacity-30 hover:bg-white","aria-label":"Previous tab",children:(0,l.jsx)(d.A,{className:(0,u.A)("ar"===A?"rotate-180":"","w-6 h-6 text-gray-600")})}),(0,l.jsx)("div",{className:"relative overflow-hidden m-auto px-10",children:(0,l.jsx)("div",{ref:$,className:"overflow-x-auto scrollbar-hide no-scrollbar",style:{scrollbarWidth:"none",msOverflowStyle:"none"},children:(0,l.jsx)("div",{ref:_,className:`${y||"flex"} border-b-2 ${b} min-w-max ${k||"justify-center"} lg:gap-1 gap-3 relative`,children:a.map((e,a)=>{let t=e.data.page_title||e.data.title||`Tab ${a+1}`,i=D===t;return(0,l.jsxs)("button",{"data-tab":t,className:`relative px-6 py-4 lg:w-40 w-[144px] text-font-size-h6 font-medium transition-colors focus:outline-none max-h-[72px] ${i?C||x:f} ${N}`,onClick:()=>{M(t)},children:[t,i&&(0,l.jsx)(s.P.div,{layoutId:"activeTabIndicator",className:`absolute bottom-[-2px] left-0 right-0 h-0.5 z-10 ${v}`,transition:{type:"spring",stiffness:380,damping:30}})]},t)})})})}),(0,l.jsx)("button",{onClick:()=>
1{if(S<a.length-1){let e=a[S+1].data;M(e.page_title||e.title)}},disabled:S===a.length-1,className:"absolute lg:-end-4 end-0 z-20 p-2  bg-white/80 rounded-full  disabled:opacity-30  hover:bg-white","aria-label":"Next tab",children:(0,l.jsx)(o.A,{className:(0,u.A)("ar"===A?"rotate-180":"","w-6 h-6 text-gray-600")})})]}),(0,l.jsx)(n.N,{mode:"wait",children:E&&(0,l.jsx)(s.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:`relative ${g}`,children:w?w(E):null},D)})]})}},37611:(e,a,t)=>{"use strict";t.d(a,{default:()=>g});var l=t(95155),i=t(62094),r=t(31013),s=t(21544),n=t(36341),c=t(5772);let d={src:"/_next/static/media/calendar-date.19f93c6e.svg",height:24,width:24,blurWidth:0,blurHeight:0},o={src:"/_next/static/media/certificate-01.bb7f2c95.svg",height:24,width:24,blurWidth:0,blurHeight:0};var u=t(29722),m=t(35952),h=t.n(m);let g=({name:e,job_position:a,image:t,join_date:m,experience_years:g,is_reversed:p,is_rounded_image:x,className:f,achievements_title:v,achievements_description:b,education_title:j,education_description:w,description:y})=>{let{lang:N}=(0,i.useLang)();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:`w-full relative overflow-hidden flex flex-col ${p?"lg:flex-row-reverse":"lg:flex-row"}  lg:items-center lg:gap-spacing-7 gap-spacing-5 mb-spacing-7 lg:mb-spacing-9 lg:rounded-none rounded-t-container-small`,children:[(0,l.jsx)("div",{className:"relative w-full  lg:w-[550px] lg:h-[550px] h-[342px] shrink-0 lg:rounded-container-large rounded-container-small overflow-hidden",children:(0,l.jsx)(n.default,{type:"image",src:t,alt:e,layout:"fill",IsApiFromData:!0,classname:"relative  h-full",mediaClassName:"object-cover",optimizied:!0})}),(0,l.jsx)("div",{className:(0,u.A)("h-full relative flex items-center",""),children:(0,l.jsx)("div",{className:"h-full relative flex items-center  lg:w-[550px]",children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5",children:[(0,l.jsxs)("div",{className:"title-tag flex flex-col gap-spacing-1",children:[(0,l.jsx)(r.default,{variant:"h3",color:"secondary",weight:"light",children:e}),(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"light",children:a})]}),(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex gap-spacing-7",children:[(0,l.jsxs)("div",{className:"icon-detail items-center flex gap-spacing-2",children:[(0,l.jsx)("div",{className:"w-[40px] h-[40px] inline-flex justify-center items-center rounded-full bg-surface-tertiary",children:(0,l.jsx)(c.default,{src:d,alt:"calendar",width:24,height:24,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",children:"en"===N?"Joined At":"انضم في"}),(0,l.jsx)(r.default,{variant:"h5",weight:"medium",color:"tertiary",children:m})]})]}),(0,l.jsxs)("div",{className:"icon-detail items-center flex gap-spacing-2",children:[(0,l.jsx)("div",{className:"w-[40px] h-[40px] inline-flex justify-center items-center rounded-full bg-surface-tertiary",children:(0,l.jsx)(c.default,{src:o,alt:"cert",width:24,height:24,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsx)(r.default,{variant:"h6",color:"tertiary",children:"en"===N?"Experience":" خبرة"}),(0,l.jsx)(r.default,{variant:"h5",weight:"medium",color:"tertiary",children:g})]})]})]})}),(0,l.jsx)("div",{id:"Achievementeducation",className:"",children:(0,l.jsx)(r.default,{variant:"h5",color:"secondary",as:"div",className:"lg:max-w-[600px]",children:(0,l.jsx)("div",{className:h().richText,children:(0,s.Q)(y??"")})})})]})})})]})})}},37616:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>l});let l={src:"/_next/static/media/book.bad8bdde.svg",height:33,width:26,blurWidth:0,blurHeight:0}},38178:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var l=t(95155),i=t(36341),r=t(27003),s=t(12115),n=t(61792),c=t(25354),d=t(31013),o=t(21544);let u=({file:e,title:a,classCard:t,index:u})=>{let{isMobile:m}=(0,r.k)(),h=(0,s.useRef)(null),g=(0,n.W)(h,{once:!0});
1return(0,l.jsxs)(c.PY1.div,{animate:{opacity:+!!g,y:50*!g},transition:{type:"spring",stiffness:400,damping:30,delay:.1},ref:h,className:`block border border-border-tertiary rounded-container-small p-spacing-4  lg:rounded-container-large lg:w-[167.89473px] ${t}`,children:[(0,l.jsx)(i.default,{type:"image",src:e,width:24,height:24,alt:`${a}-pic`,classname:"mb-[10px]",IsApiFromData:!0}),(0,l.jsx)("div",{children:(0,l.jsx)(d.default,{variant:"h6",color:"tertiary",as:"div",children:(0,o.Q)(a)})})]})},m=({data:e,childrenData:a,gridcols:t=3,classCard:i,align:n,gridMobileFirstRow:c})=>{let{isMobile:d,isDesktop:o}=(0,r.k)();return(0,l.jsxs)(l.Fragment,{children:[o&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"grid lg:grid-cols-3 lg:gap-[23.16px]",children:a?.map((e,a)=>(0,s.createElement)(u,{...e.data,key:a,classCard:i}))})}),d&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:`grid grid-cols-${c} gap-spacing-4`,children:a?.slice(0,c).map((e,a)=>(0,s.createElement)(u,{...e.data,key:a,classCard:i}
1))}),(0,l.jsx)("div",{className:`grid grid-cols-${Number(a?.length)-Number(c)} gap-spacing-4`,children:a?.slice(c,a.length).map((e,a)=>(0,s.createElement)(u,{...e.data,key:a,classCard:i}))})]})]})};var h=t(25240),g=t(75751);let p=({data:e,childrenData:a})=>{let{isMobile:t}=(0,r.k)(),s=a?.find(e=>"TableNewPlugin"===e.PluginName),n=a?.find(e=>"IconContainerPlugin"===e.PluginName),c=a?.find(e=>"ContainerImagePlugin"===e.PluginName),d=s?.data?.headers||"Type, Inches, Price",o=s?.childrenData||[],u=c?.data?.image;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.default,{className:"flex flex-col-reverse items-start lg:items-center lg:gap-between-text-4 lg:mb-within-component-7 mb-within-components-5",description:e?.description,title:e?.title||""}),(0,l.jsxs)("section",{className:"flex justify-between items-center flex-wrap lg:flex-nowrap",children:[(0,l.jsx)("div",{children:u&&(0,l.jsx)(i.default,{alt:`image-${u}`,type:"image",width:550,height:368,src:u,classname:"hidden lg:block",IsApiFromData:!0})}),(0,l.jsxs)("div",{className:"lg:w-[550px] w-[390px] flex flex-col gap-spacing-4 lg:gap-spacing-5",children:[(0,l.jsx)(h.default,{headers:d,content:o,is_bold_content:!0}),n?.childrenData&&(0,l.jsx)(m,{childrenData:n.childrenData,gridMobileFirstRow:2})]})]})]})}},41452:(e,a,t)=>{"use strict";t.d(a,{default:()=>h});var l=t(95155),i=t(12115),r=t(31013),s=t(21544),n=t(29162),c=t(16684),d=t(97530),o=t(36341),u=t(76565),m=t(4516);let h=({data:e,cardsData:a})=>{let[t,h,g]=a??[],[p,x]=t?.childrenData??[],[f,v]=g?.childrenData??[],b="https://www.bankboubyan.com"+(v.data?.icon??"");return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(u.A,{children:[(0,l.jsx)(n.BbynSectionTitle,{title:e?.title,desc:e?.description,className:"flex-col-reverse mb-within-components-5 gap-between-text-1 lg:mb-spacing-7 overflow-hidden",colorDescription:"tertiary"}),(0,l.jsxs)("div",{className:"lg:pt-spacing-7 pt-spacing-5 flex flex-col gap-[40px] lg:gap-[64px] ",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-4 lg:gap-spacing-5",children:[(0,l.jsx)(r.default,{variant:"h3",color:"secondary",weight:"light",children:t?.data?.title}),(0,l.jsxs)("div",{className:"p-spacing-5 border border-border-tertiary rounded-container-small lg:rounded-container-large",children:[(0,l.jsx)(r.default,{variant:"h4",color:"secondary",weight:"medium",children:p?.data?.title}),(0,l.jsxs)("div",{className:"mt-[21px] lg:mt-spacing-6 grid grid-cols-1 lg:flex lg:justify-between",children:[(0,l.jsx)("div",{className:"custom--tag--strong lg:w-[434px]",children:(0,l.jsx)(r.default,{variant:"h5",color:"secondary",weight:"light",className:"order-2 lg:order-1",as:"div",children:(0,s.Q)(p?.data?.description||"")})}),(0,l.jsx)("div",{className:"self-end order-1 lg:order-2 mb-spacing-4 lg:mb-0",children:(0,l.jsx)(d.A,{card:x,icon:"download"})})]})]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5",children:[(0,l.jsx)(r.default,{variant:"h3",color:"secondary",weight:"light",children:h?.data?.title}),(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 lg:gap-spacing-7",children:h?.childrenData?.map((e,a)=>(0,i.createElement)(c.default,{...e.data,key:`${a} + ${e.data?.title}`}))})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5",children:[(0,l.jsx)(r.default,{variant:"h3",color:"secondary",weight:"light",children:g.data?.title}),(0,l.jsxs)("div",{className:"border border-border-tertiary px-spacing-5 py-spacing-6 rounded-container-small lg:rounded-container-large",children:[(0,l.jsx)("div",{className:"custom--tag--strong",children:(0,l.jsx)(r.default,{variant:"h5",weight:"light",color:"tertiary",as:"div",children:(0,s.Q)(f.data?.text||"")})}),(0,l.jsx)("div",{className:"mt-spacing-8 mb-spacing-5 ",children:(0,l.jsx)(o.default,{type:"image",src:b,alt:"icon-filing complaint",width:40,height:40,IsApiFromData:!1,classname:"relative w-full h-full rounded-container-small lg:rounded-none overflow-hidden",mediaClassName:"object-cover"})}),(0,l.jsxs)("div",{className:"custom--tag--strong",children:[(0,l.jsx)(r.default,{variant:"h4",color:"secondary",weight:"medium",children:v.data?.title}),(0,l.jsx)(r.default,{variant:"h5",weight:"light",color:"tertiary",className:"custom-tag-decoration",as:"div",children:(0,s.Q)((0,m.B)(v.data?.description||""))})]})]})]})]})]})})}},43104:(e,a,t)=>{"use strict";t.d(a,{M:()=>r});
1var l=t(95155),i=t(35484);let r=({data:e,children:a,emptyMessage:t="No data was found. Please try again later or modify your search criteria.",emptyTitle:r="No data found",isLoading:s=!1})=>s?(0,l.jsx)("div",{className:"flex items-center justify-center p-6 min-h-[200px]",children:(0,l.jsxs)("div",{className:"animate-pulse flex flex-col items-center gap-2",children:[(0,l.jsx)("div",{className:"h-8 w-8 rounded-full bg-muted"}),(0,l.jsx)("div",{className:"h-4 w-24 rounded bg-muted"})]})}):null!=e&&(Array.isArray(e)?0!==e.length&&e.some(e=>"object"==typeof e&&null!==e&&Object.keys(e).length>0):"object"==typeof e?Object.keys(e).length>0:!!e)?(0,l.jsx)(l.Fragment,{children:a}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex justify-center items-center",children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-3",children:[(0,l.jsx)("div",{className:"flex justify-center",children:(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-2",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(i.A,{className:"h-4 w-4"})}),(0,l.jsx)("div",{className:"flex items-center",children:`(${r}) plugin Not found`||""})]})}),(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-2",children:[(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(i.A,{className:"h-4 w-4"})}),(0,l.jsx)("div",{className:"flex items-center",children:t})]})]})})})},44208:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(12115),r=t(27003),s=t(93231),n=t(75751),c=t(91256),d=t(91352),o=t(47866);let u=({cards:e,title:a,description:t,button_label:u,button_link:m,button_variant:h="primary",button_color:g="red",full_width_cards:p=!1,image:x})=>{let{isMobile:f}=(0,r.k)(),{theme:v}=(0,o.D)(),b=f?s.default:"div";return(0,l.jsxs)("div",{className:(0,c.cn)("flex flex-col",p?"gap-spacing-5 lg:gap-spacing-9":"gap-spacing-6 lg:gap-spacing-7"),children:[a&&(0,l.jsx)(n.default,{title:a,description:t,alignment:"center",button_label:u,button_link:m,button_variant:h,button_color:g,titleClassName:`${"bbyn-private"==v&&"text-private-primary"}`,descriptionClassName:`${"bbyn-private"==v&&"text-private-primary"}`}),(0,l.jsx)(b,{...f?{classItem:"w-[304px] md:w-auto cursor-none lg:w-[451px]",is_dark:!1}:{className:"flex justify-center gap-spacing-7 flex-wrap"},children:e?.map((e,a)=>(0,i.createElement)(d.default,{...e.data,...e.variant,className:"w-[353px] bg-surface-tertiary overflow-hidden ",key:"labelcard-"+a,fullWidth:p,image:e.data.image,alt:e.data.image_alt_text?e.data.image_alt_text:e.data.image_defaut_alt_text}))})]})}},46991:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(47053),r=t(12115),s=t(68067);t(95122);var n=t(27003),c=t(62094);function d({data:e=[],tabs:a,periodDays:t=7,color:i="#B11E4A"}){let{isMobile:o}=(0,n.k)(),{lang:u}=(0,c.useLang)(),[m,h]=(0,r.useState)(a[0]?.key??""),g=(0,r.useMemo)(()=>{if(0===e.length)return[];let a=new Date(new Date(e[e.length-1].datetime));return a.setDate(a.getDate()-t),e.filter(e=>new Date(e.datetime)>=a)},[e,t]),p=(0,r.useMemo)(()=>{if(!o||g.length<=30)return g;let e=Math.ceil(g.length/30);return g.filter((a,t)=>t%e==0)},[g,o]),x=(0,r.useMemo)(()=>p.map(e=>new Date(e.datetime).toLocaleDateString("en-GB",{day:"2-digit",month:"short"})),[p]),f=(0,r.useMemo)(()=>p.map(e=>{let a=Number(e[m]);return Number.isFinite(a)?a:null}),[p,m]),v=(0,r.useMemo)(()=>{let e=f.find(e=>!Number.isNaN(e));return e&&e<10?4:2},[f]);return(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("div",{className:"mb-6 p-1 flex overflow-hidden max-w-72 rounded-lg border border-border-tertiary",children:a.map(e=>(0,l.jsx)("button",{onClick:()=>h(e.key),className:`flex-1 rounded-lg py-1 px-1  text-font-size-h7 transition-all ${m===e.key?"bg-action-primary text-label-default":"bg-neutral-white100 text-neutral-dark-grey-100 hover:bg-neutral-light-grey-20"}`,children:e.label},String(e.key)))}),(0,l.jsx)("div",{className:"h-[360px]",children:(0,l.jsx)(s.N1,{data:{labels:x,datasets:[{data:f,borderColor:i,backgroundColor:`${i}20`,fill:!0,tension:.35,borderWidth:2,pointRadius:o?2:3,pointHoverRadius:o?5:6,pointHitRadius:12,pointBorderWidth:2,pointBorderColor:i,pointBackgroun
1dColor:"#fff"}]},options:{responsive:!0,maintainAspectRatio:!1,interaction:{intersect:!1,mode:"index"},plugins:{legend:{display:!1},tooltip:{displayColors:!1,backgroundColor:"#23262F",padding:13,cornerRadius:14,callbacks:{title:e=>new Date(p[e[0].dataIndex].datetime).toLocaleString("en-GB",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}),label:e=>"$"+Number(e.parsed.y).toFixed(v)}}},scales:{x:{grid:{display:!1},border:{display:!1},ticks:{autoSkip:!0,maxTicksLimit:o?5:7,maxRotation:0,padding:12,minRotation:0}},y:{position:"ar"===u?"left":"right",grid:{display:!1},border:{display:!1},ticks:{callback:e=>Number(e).toFixed(v)}}}}})})]})}let o=({marketData:e})=>{let{lang:a}=(0,c.useLang)(),{isMobile:t}=(0,n.k)();return(0,l.jsx)("div",{id:"chart",className:"mt-spacing-7 lg:mt-spacing-9",children:(0,l.jsxs)("div",{className:"w-full grid lg:grid-cols-2   gap-spacing-5 grid-cols-1 ",children:[(0,l.jsx)(i.A,{title:"US GDP",children:(0,l.jsx)(d,{data:e?.usdEurJpy,periodDays:7,tabs:[{key:"usd_eur",label:"EUR/USD - 1 Week"},{key:"usd_jpy",label:"USD/JPY - 1 Week"}]})}),(0,l.jsx)(i.A,{title:"Market Brief",children:(0,l.jsx)(d,{data:e?.goldBrent,periodDays:7,tabs:[{key:"brent_crude",label:"Brent Crude - 1 Week"},{key:"gold",label:"Gold - 1 Week"}]})})]})})}},47023:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(61792),r=t(25354),s=t(12115),n=t(75751),c=t(19658),d=t(25664),o=t(27003);let u=({data:e,childrenData:a})=>{let t=e?.image,{isMobile:u}=(0,o.k)(),m=(0,s.useRef)(null),h=(0,i.W)(m,{once:!0}),{popupClickHandler:g}=(0,d.useModal)();return(0,l.jsxs)("div",{className:"container  flex flex-col lg:gap-sections-padding-1 gap-spacing-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-4 items-start lg:items-center px-spacing-5",children:[(0,l.jsx)(n.default,{className:"flex lg:items-center lg:gap-between-text-4 gap-between-text-2",title:e?.title||"",description:e?.description,title_color:"secondary",description_color:"tertiary",alignment:"left"}),(0,l.jsx)(c.$,{variant:"primary",color:"red",onClick:()=>{a&&g(a[0])},size:"large",className:"self-center",children:e?.label})]}),(0,l.jsx)(r.PY1.div,{ref:m,initial:{opacity:0,y:50},animate:{opacity:+!!h,y:50*!h},transition:{type:"spring",stiffness:300,damping:60,delay:.5},className:"mockup min-h-[466px] lg:h-[760px] h-[466px] lg:min-h-[760px] relative bg-cover lg:bg-contain bg-center bg-no-repeat",style:{backgroundImage:`url(${"https://www.bankboubyan.com"+t})`}})]})}},47053:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});var l=t(95155),i=t(31013);function r({title:e,children:a}){return(0,l.jsxs)("div",{className:"lg:min-h-96 lg:px-5 px-2 border border-border-tertiary lg:py-6  py-4 rounded-radius-5 bg-neutral-white100",children:[(0,l.jsx)(i.default,{variant:"h4",weight:"bold",className:"lg:mb-1 mb-2",color:"secondary",children:e}),a]})}},48853:(e,a,t)=>{"use strict";t.d(a,{default:()=>x});var l=t(95155),i=t(18310),r=t(12185),s=t(31013),n=t(12115),c=t(36341);let d="(min-width: 768px)",o=e=>{let a=window.matchMedia(d);return a.addEventListener("change",e),()=>{a.removeEventListener("change",e)}},u=()=>window.matchMedia(d).matches,m=()=>!1,h=({src:e,alt:a,isApiFromData:t=!0})=>{let s=(0,n.useRef)(null),d=(0,n.useSyncExternalStore)(o,u,m),h=(0,i.I)(),g=d&&!0!==h;return(0,n.useEffect)(()=>{let e=s.current;if(!e)return;if(!g){e.style.width="100%";return}let a=null,t=()=>{let t;a=null;let l=1-Math.min(Math.max(window.scrollY,0),1140)/1140*.19999999999999996;e.style.width=(t=Math.round(1e4*l)/100,`${t}%`)},l=()=>{null===a&&(a=window.requestAnimationFrame(t))};return t(),window.addEventListener("scroll",l,{passive:!0}),()=>{window.removeEventListener("scroll",l),null!==a&&window.cancelAnimationFrame(a)}},[g]),(0,l.jsx)("div",{className:"relative mx-auto w-full max-w-[1440px]",children:(0,l.jsx)(r.P.div,{className:"mx-auto w-full md:w-[97%]",initial:!h&&{opacity:0},animate:{opacity:1},transition:h?{duration:0}:{duration:.6,ease:"easeOut"},children:(0,l.jsx)("div",{className:"\n           relative\n           grid\n           aspect-[15/7]\n           w-full\n           place-items-center\n         ",style:{contain:"layout paint"},children:(0,l.jsx)("div",{ref:s,className:"\n             relative\n             aspect-[15/7]\n             w-full\n             overflow-hidden\n             rounded-container-small\n             lg:rounded-container-large\n           ",children:(0,l.jsx)(c.default,{type:"image",src:e,alt:a,IsApiFromData:t,width:1440,height:672,classname:"!h-full !w-full",mediaClassName:"\n               block\n               h-full\n               w-full\n               object-cover\n               object-center\n             ",sizes:"(max-width: 767px) 100v
1w, (max-width: 1439px) 97vw, 1397px",quality:90,priority:!0})})})})})};var g=t(76565),p=t(26673);let x=({title:e,description:a,image:t,isH1:n=!1,image_defaut_alt_text:c,image_alt_text:d})=>{let o=(0,i.I)(),u=t?.trim(),m=a?.trim(),x=d?.trim()||c?.trim()||e?.trim()||"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.A,{noBottomPadding:!0,classname:"pb-spacing-5 lg:pb-0",children:(0,l.jsxs)("div",{id:"HeroDesc",children:[(0,l.jsx)(p.A,{title:e,as:n?"h1":"h2",className:"\n             relative\n             text-font-size-h1\n             font-bold\n             leading-font-line-height-h2\n             lg:text-center\n           "}),m&&(0,l.jsx)(r.P.div,{initial:!o&&{opacity:0,y:50},animate:{opacity:1,y:0},transition:o?{duration:0}:{type:"spring",stiffness:400,damping:70,delay:.6},children:(0,l.jsx)(s.default,{weight:"light",variant:"h4",align:"text-start",className:"\n                 relative\n                 mt-4\n                 text-label-placeholder\n                 lg:text-center\n               ",children:m})})]})}),(0,l.jsx)("section",{className:"relative px-spacing-5 lg:px-0 lg:py-sections-padding-2",children:(0,l.jsx)(h,{src:u||"/_next/static/media/Img Container.0c98ea02.jpg",alt:x,isApiFromData:!!u})})]})}},49241:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var l=t(95155),i=t(12115),r=t(25354),s=t(31013),n=t(39092),c=t.n(n),d=t(12185);let o=({number:e=0,title:a,className:t=""})=>{let[r,s]=(0,i.useState)(0),[n,o]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{if(!n)return;let a=parseInt("string"==typeof e?e.replace(/,/g,""):e.toString().replace(/,/g,"")),t=0,l=setInterval(()=>{t>=a?clearInterval(l):s(t+=1)},60/a*10);return()=>clearInterval(l)},[n,e]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.P.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},onAnimationComplete:()=>o(!0),viewport:{once:!0},transition:{type:"spring",stiffness:400,damping:70},children:(0,l.jsxs)("h1",{className:`jsx-8cf898cc35741854 text-shine ${t}`,children:[(e=>{if(null==e||""===e)return"0";if("number"!=typeof e&&"string"!=typeof e)throw Error("Input must be a number or a string representing a number");return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")})(r)," ",a]})}),(0,l.jsx)(c(),{id:"8cf898cc35741854",children:".text-shine.jsx-8cf898cc35741854{background:linear-gradient(40deg,#cb102e .87%,#8ca0be 66.4%);background-size:500%auto;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:textShine 2s ease-in-out infinite alternate}@keyframes textShine{0%{background-position:0%0}100%{background-position:100%0}}"})]})},u=({pre_title:e,description:a,number:t,text:i})=>(0,l.jsxs)(r.PY1.div,{initial:{opacity:0,y:50},whileInView:{opacity:1,y:0},viewport:{once:!0,amount:.5},transition:{type:"spring",stiffness:400,damping:70},children:[(0,l.jsx)(s.default,{variant:"h6",color:"secondary",weight:"medium",children:e}),(0,l.jsx)(o,{number:t,title:i,className:"font-bold text-font-size-h2 leading-line-height-2 lg:text-[56px] lg:leading-[84px]"}),(0,l.jsx)(s.default,{variant:"p",color:"tertiary",children:a})]}),m=({childrenData:e})=>(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-spacing-7",children:e?.map((e,a)=>(0,i.createElement)(u,{...e.data,key:a}))})},49279:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(27003),r=t(12115),s=t(61792),n=t(25354),c=t(75751),d=t(25664);let o=({title:e,description:a,image:t,mobile_image:o,button_label:u,button_variant:m="primary",button_color:h="red",childrenData:g})=>{let{isMobile:p}=(0,i.k)(),x=`https://www.bankboubyan.com${p?o:t}`,f=(0,r.useRef)(null),v=(0,s.W)(f,{once:!0}),{popupClickHandler:b}=(0,d.useModal)();return(0,l.jsxs)("div",{className:"container  flex flex-col lg:gap-sections-padding-1 gap-spacing-6",children:[(0,l.jsx)("div",{className:"flex flex-col gap-spacing-4 items-start lg:items-center px-spacing-5",children:(0,l.jsx)(c.default,{title:e,description:a,title_color:"secondary",description_color:"tertiary",button_label:u,button_color:h,button_variant:m,button_size:"medium",onClick:()=>{g&&g[0]&&b(g[0])}})}),(0,l.jsx)(n.PY1.div,{ref:f,initial:{opacity:0,y:50}
1,animate:{opacity:+!!v,y:50*!v},transition:{type:"spring",stiffness:300,damping:60,delay:.5},className:"mockup min-h-[466px] lg:h-[760px] h-[466px] lg:min-h-[760px] relative bg-cover lg:bg-contain bg-center bg-no-repeat",style:{backgroundImage:`url(${x})`}})]})}},51032:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var l=t(95155),i=t(37206);let r=(0,i.default)(()=>t.e(7210).then(t.bind(t,77210)),{loadableGenerated:{webpack:()=>[77210]},ssr:!1}),s=(0,i.default)(()=>t.e(1102).then(t.bind(t,21102)),{loadableGenerated:{webpack:()=>[21102]},ssr:!1}),n=(0,i.default)(()=>Promise.resolve().then(t.bind(t,15656)),{loadableGenerated:{webpack:()=>[15656]},ssr:!1}),c=(0,i.default)(()=>t.e(2230).then(t.bind(t,92230)),{loadableGenerated:{webpack:()=>[92230]},ssr:!1}),d=(0,i.default)(()=>t.e(7754).then(t.bind(t,37754)),{loadableGenerated:{webpack:()=>[37754]},ssr:!1}),o=(0,i.default)(()=>t.e(6010).then(t.bind(t,36010)),{loadableGenerated:{webpack:()=>[36010]},ssr:!1}),u=(0,i.default)(()=>t.e(5749).then(t.bind(t,75749)),{loadableGenerated:{webpack:()=>[75749]},ssr:!1}),m=(0,i.default)(()=>t.e(3425).then(t.bind(t,53425)),{loadableGenerated:{webpack:()=>[53425]},ssr:!1}),h=(0,i.default)(()=>Promise.resolve().then(t.bind(t,32035)),{loadableGenerated:{webpack:()=>[32035]},ssr:!1}),g=(0,i.default)(()=>t.e(927).then(t.bind(t,80927)),{loadableGenerated:{webpack:()=>[80927]},ssr:!0});function p({type:e,data:a,variant:t,childrenData:i,slides:x,config:f,displayMode:v,isH1:b=!1,initialData:j}){switch(e){case"contactUs":return(0,l.jsx)(r,{data:a,isH1:b});case"testimonial":return(0,l.jsx)(c,{data:a,childrenData:i});case"scrollableBenefits":return(0,l.jsx)(d,{data:a,childrenData:i,variant:t});case"financeCalculator":return(0,l.jsx)(s,{data:a});case"stackingCarousel":return(0,l.jsx)(u,{...a,...t,childrenData:i});case"savingCalculator":return(0,l.jsx)(n,{});case"primeDiscount":return(0,l.jsx)(o,{...a,...t,slides:x??i});case"conciergeDropdown":return(0,l.jsx)(m,{data:a,...t,childrenData:i});case"dynamicForm":return(0,l.jsx)(h,{config:f,pluginData:a,form_plugin_name:a?.data?.form_plugin_name,displayMode:v});case"mortgage":return(0,l.jsx)(g,{data:a,childrenData:i,initialData:j});default:return null}}},54257:(e,a,t)=>{"use strict";t.d(a,{y:()=>r});var l=t(12115);let i="6LekSEcsAAAAAEJR7Rz6_Vpx6wWXAIHvGDDbkFCV",r=e=>{let[a,t]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{let e="recaptcha-script";if(document.getElementById(e))window.grecaptcha&&window.grecaptcha.ready(()=>{t(!0)});else{let a=document.createElement("script");a.id=e,a.src=`https://www.google.com/recaptcha/api.js?render=${i}`,a.async=!0,a.defer=!0,a.onload=()=>{window.grecaptcha&&window.grecaptcha.ready(()=>{t(!0)})},document.body.appendChild(a)}},[]),{getToken:async()=>{if(!window.grecaptcha)throw Error("reCAPTCHA not available");if(!a)throw Error("reCAPTCHA not ready yet");return await window.grecaptcha.execute(i,{action:e})},isReady:a}}},54649:(e,a,t)=>{"use strict";t.d(a,{default:()=>s});var l=t(95155),i=t(75751),r=t(25240);let s=({data:e,childrenData:a})=>(0,l.jsxs)("div",{className:"lg:gap-spacing-7 gap-spacing-5 flex flex-col",children:[(0,l.jsx)("div",{children:e?.title&&(0,l.jsx)(i.default,{title_color:"secondary",description_color:"placeholder",title:e.title,description:e.description})}),(0,l.jsx)("div",{className:"flex gap-spacing-5 flex-col justify-center items-center",children:(a||[])?.map((e,a)=>"TableNewPlugin"!==e.PluginName?null:(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"lg:w-[746px] w-full",children:(0,l.jsx)(r.default,{headers:e.data.headers,content:e.childrenData,...e.variant},a)})}))})]})},55006:(e,a,t)=>{"use strict";t.d(a,{A:()=>o});var l=t(95155),i=t(98223),r=t(31013),s=t(62094),n=t(29722),c=t(5772),d=t(37616);let o=({card:e,index:a,lastCard:t,roundedLast:o,className:u,mobilePopUp:m,oneCard:h})=>{let{lang:g}=(0,s.useLang)(),p=`bg-surface-tertiary flex justify-between rounded-[8px] p-spacing-5 lg:py-spacing-4 lg:px-spacing-6 lg:rounded-container-small ${u}`,x=`bg-surface-tertiary 
2        ${!t&&"mb-[1px]"} 
3        ${t&&o&&`${m?"lg:rounded-b-container-small rounded-b-[8px]":"rounded-b-container-large"}`} 
4        ${m?"p-spacing-5 lg:py-spacing-4 lg:px-spacing-6":"py-spacing-4 px-spacing-6"} flex justify-between 
5        ${0===a&&`${m?"lg:rounded-t-container-small rounded-t-[8px]":"rounded-t-container-large"}`} ${u}`,f=`${h?p:x}`;return(0,l.jsxs)("div",{className:`${f}`,children:[(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex gap-spacing-4",children:[(0,l.jsx)("div",{className:"w-[24px] h-[32px]",children:(0,l.jsx)(c.default,{src:d.default,width:24,height:32,alt:`${e?.data?.title}-book`,className:"w-full h-full",unoptimized:!0,style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(r.default,{color:"tertiary",weight:"light",variant:"h6",children:e?.data?.title})})]})}),(0,l.jsx)("div",{className:"ms-spacing-4",children:(0,l.jsx)(i.A,{url:e?.data?.pdf||e?.data?.book,target:"_blank",prefetch:!1,children:(0,l.jsxs)("svg",{className:(0,n.A)("ar"===g?"-rotate-90":"rotate-0"),width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]})})})]})}},56527:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155);t(12115);var i=t(25354),r=t(31013),s=t(19658),n=t(91256),c=t(76565),d=t(82638),o=t(29722);let u=({title:e,description:a,image:t,height:u=820,label:m,link:h,title_color:g,description_color:p,button_variant:x="secondary",button_color:f="white",className:v,noPadding:b=!0,blockTitle:j,...w})=>{let y={background:` linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%),
6    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%),
7    url(${"https://www.bankboubyan.com"+t})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundAttachment:"fixed"};return(0,l.jsx)(c.A,{classname:(0,n.cn)("cursor-light relative ",b?"":"lg:my-spacing-9 my-spacing-7",v),style:{...y,height:`${u}px`},containerClassname:"h-full flex justify-center items-center",...w,children:(0,l.jsxs)(i.PY1.div,{className:(0,o.A)(j,"flex flex-col grow justify-center items-center h-full lg:max-w-[944px]"),transition:{type:"spring",stiffness:300,damping:60,staggerChildren:.1},initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},children:[(0,l.jsx)(r.default,{variant:"h2",align:"text-center",color:(0,d.vG)(g),children:e}),(0,l.jsx)(r.default,{variant:"h4",color:p,align:"text-center",className:"mt-spacing-2",children:a}),m&&(0,l.jsx)(s.$,{href:h,variant:x,color:f,className:"mt-spacing-4",children:m})]})})}},56681:(e,a,t)=>{"use strict";t.d(a,{default:()=>p});var l=t(95155),i=t(12185),r=t(12115),s=t(27003),n=t(91256),c=t(75751),d=t(31013),o=t(25664),u=t(29722),m=t(9751),h=t(19658);let g=(0,r.forwardRef)(({cardData:e,isExpanded:a=!1,onMouseEnter:t,onMouseLeave:c,isAnyCardExpanded:g=!1,
7className:p="",cardHeight:x="550px",buttonIcon:f},v)=>{let{title:b,description:j,image:w,link:y}=e.data,{isMobile:N}=(0,s.k)(),C="https://www.bankboubyan.com"+w,k=(0,r.useRef)(null),{openModal:A}=(0,o.useModal)(),{popupClickHandler:D}=(0,o.useModal)(),M=e?.childrenData?.[0]||null,_=()=>{let a=M?{...M,parentPluginName:e?.PluginName,parentCardData:e?.data}:null;a&&D(a)},$=y?i.P.a:i.P.div;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(i.P.div,{className:(0,n.cn)("relative rounded-container-small lg:rounded-container-large overflow-hidden bg-cover bg-center hidden lg:block",p),style:{backgroundImage:`url(${C})`,height:x,maxHeight:x},variants:{expanded:{flex:3},collapsed:{flex:1}},initial:"collapsed",animate:a?"expanded":"collapsed",transition:{type:"spring",stiffness:100,damping:30,mass:1},onMouseEnter:t,onMouseLeave:c,children:[(0,l.jsx)(i.P.div,{className:"absolute bottom-0 start-0 end-0",variants:{expanded:{height:"100%"},collapsed:{height:275}},initial:"collapsed",animate:a?"expanded":"collapsed",transition:{type:"spring",stiffness:100,damping:30,mass:1},style:{background:"linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.00) 100%)"}}),(0,l.jsxs)("div",{className:(0,u.A)("absolute bottom-0 left-0 right-0 lg:m-spacing-7 text-label-default",a?"w-[490px]":"max-w-[470px]"),children:[(0,l.jsx)("div",{className:(0,u.A)(a?"h-auto":""),children:(a||!g)&&(0,l.jsx)(i.P.div,{initial:{opacity:0}
7,animate:{opacity:1},transition:{duration:a?.5:.3,delay:a?.1:.3},children:(0,l.jsx)(d.default,{variant:"h2",color:"default",children:b})})}),(0,l.jsxs)(i.P.div,{variants:{expanded:{opacity:1,y:0,height:"auto",transition:{duration:.5,ease:[.25,1,.5,1]}},collapsed:{opacity:0,y:20,height:0,transition:{duration:.3,ease:[.25,1,.5,1]}}},initial:"collapsed",animate:a?"expanded":"collapsed",className:"mt-2",children:[(0,l.jsx)("div",{ref:k,children:(0,l.jsx)(d.default,{variant:"h4",color:"default",children:j})}),(M||y)&&(0,l.jsx)(i.P.div,{initial:{opacity:0},animate:a?{opacity:1}:{opacity:0},transition:{delay:.2*!!a,duration:.4},className:"mt-spacing-6",children:(0,l.jsx)(h.$,{icon:!0,color:"white",size:"large",href:y,onClick:y?void 0:_,children:f||(0,l.jsx)(m.A,{size:32,strokeWidth:1.5})})})]})]})]}),(0,l.jsx)("div",{ref:v,className:"sentinel top-0 left-0 w-full pointer-events-none lg:hidden","aria-hidden":!0}),(0,l.jsxs)($,{className:(0,u.A)(p,"relative flex lg:hidden group rounded-container-small overflow-hidden mobile-card"),style:{backgroundImage:`url(${C})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center center"},transition:{type:"spring",stiffness:100,damping:20,mass:1},onClick:!y&&a?_:void 0,href:y&&a?y:void 0,children:[(0,l.jsx)(i.P.div,{className:"absolute bottom-0 start-0 end-0 z-10",variants:{collapsed:{height:"100%",background:"linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.00) 100%)"},expanded:{height:"100%",background:"linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.50) 100%)"}},initial:"collapsed",animate:a?"expanded":"collapsed",transition:{type:"spring",stiffness:100,damping:20,mass:1}}),(0,l.jsxs)("div",{className:"relative z-20 flex flex-col justify-end w-full h-full p-spacing-5 min-h-[120px]",children:[(0,l.jsx)(d.default,{variant:"h3",color:"default",className:"relative line-clamp-2",children:b}),(0,l.jsxs)(i.P.div,{className:"flex flex-col justify-around gap-spacing-5",variants:{collapsed:{opacity:0,height:0,marginTop:0},expanded:{opacity:1,height:"auto",marginTop:"8px"}},initial:"collapsed",animate:a?"expanded":"collapsed",transition:{type:"spring",stiffness:100,damping:20,mass:1,delay:.1*!!a},children:[(0,l.jsx)(d.default,{variant:"h5",color:"default",className:"relative line-clamp-3",children:j}),(M||y)&&(0,l.jsx)("div",{children:(0,l.jsx)(h.$,{color:"white",size:"large",href:!y&&a?y:void 0,onClick:y?void 0:_,icon:!0,children:(0,l.jsx)(m.A,{size:24,strokeWidth:1.5})})})]})]})]})]})});g.displayName="ExpandingCard";let p=({cards:e,title:a,description:t,pretitle:d,cards_per_row:o=2,cardHeight:u="550px",className:m="",sectionClassName:h="",buttonIcon:p,is_multirow:x=!1})=>{let{isMobile:f}=(0,s.k)(),[v,b]=(0,r.useState)(null),j=null!==v,[w,y]=(0,r.useState)(null),N=(0,r.useRef)([]),C=x?Array.from({length:Math.ceil(e.length/o)},(a,t)=>e.slice(t*o,t*o+o)):[e],k=e=>{!f&&(b(e),x&&y(Math.floor(e/o)))},A=()=>{!f&&(b(null),x&&y(null))};return(0,r.useEffect)(()=>{if(!f||!e)return;let a=[],t={root:null,rootMargin:"-40% 0px -40% 0px",threshold:0};return e.forEach((e,l)=>{let i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?(b(l),x&&y(Math.floor(l/o))):v===l&&(b(null),x&&y(null))})},t);N.current[l]&&(i.observe(N.current[l]),a.push(i))}),()=>{a.forEach(e=>e.disconnect())}},[f,e,v,x,o]),(0,r.useEffect)(()=>{e&&(N.current=N.current.slice(0,e.length))},[e]),(0,l.jsxs)("div",{className:(0,n.cn)(h),children:[a&&(0,l.jsx)(c.default,{className:"lg:pb-spacing-7 pb-spacing-5",title:a,description:t,pretitle:d}),!f&&(0,l.jsx)(l.Fragment,{children:x?(0,l.jsx)(l.Fragment,{children:C.map((e,a)=>(0,l.jsx)(i.P.div,{className:`flex flex-col lg:flex-row gap-spacing-2 lg:gap-spacing-7 my-content-to-button-3 first:mt-0 last:mb-0 lg:my-spacing-7 ${m} cursor-light`,initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.2,staggerChildren:.2}}},children:e.map((e,t)=>{let i=a*o+t;return(0,l.jsx)(g,{cardData:e,isAnyCardExpanded:j&&w===a,isExpanded:v===i,onMouseEnter:()=>k(i),onMouseLeave:A,className:(0,n.cn)(w===a&&v!==i?"isNotHovered":""),cardHeight:u,buttonIcon:p,ref:e=>{N.current[i]=e}},i)})},a))}):(0,l.jsx)(i.P.div,{className:`flex flex-col lg:flex-row gap-spacing-2 lg:gap-spacing-7 ${m}
7 cursor-light`,initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:{hidden:{opacity:0},visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},children:e?.map((e,a)=>(0,l.jsx)(g,{cardData:e,isAnyCardExpanded:j,isExpanded:v===a,onMouseEnter:()=>k(a),onMouseLeave:A,className:(0,n.cn)(null!==v&&v!==a?"isNotHovered":""),cardHeight:u,buttonIcon:p,ref:e=>{N.current[a]=e}},a))})}),f&&(0,l.jsx)("div",{className:(0,n.cn)(a&&!t?"lg:hidden pt-spacing-7":""),children:e?.map((e,a)=>(0,l.jsx)(g,{cardData:e,isAnyCardExpanded:j,isExpanded:v===a,className:`mb-spacing-3 ${null!==v&&v!==a?"isNotHovered":""}`,buttonIcon:p,ref:e=>{N.current[a]=e}},a))})]})}},59016:(e,a,t)=>{"use strict";t.d(a,{A:()=>u});var l=t(95155),i=t(31013),r=t(55006),s=t(12115),n=t(15217),c=t(62094),d=t(20092),o=t(32133);let u=({data:e,modalType:a,skukData:t})=>{let u,m=(0,s.useMemo)(()=>Array.isArray(e)?e[0]??{}:e??{},[e]),h="disclosurespopup"===a||"disclosurepopup"===a,{lang:g}=(0,c.useLang)(),p=(0,s.useMemo)(()=>{if(!h)return[];let e=Array.isArray(m?.childrenData)?m.childrenData[0]:void 0;return Array.isArray(e?.data?.childrenData)?e.data.childrenData:[]},[h,m]),x=(0,s.useMemo)(()=>Array.from(new Set(p.map(e=>"string"==typeof e.folder?e.folder.slice(0,4):"").filter(e=>/^\d{4}$/.test(e)))).sort().reverse(),[p]),[f,v]=(0,s.useState)("");(0,s.useEffect)(()=>{f&&!x.includes(f)&&v("")},[x,f]);let b=(0,s.useMemo)(()=>{if(!h)return[];if(!f)return p.flatMap(e=>Array.isArray(e.files)?e.files:[]);let e=p.find(e=>e.folder===f);return Array.isArray(e?.files)?e.files:[]},[h,f,p]),j="sukukpopup"!==a?m?.data?.title||"":t?.title||"",w="sukukpopup"!==a?m?.data?.description||"":t?.description||"",y=h&&b.length>0,N=h&&!y,C=Array.isArray(m?.childrenData?.[0])&&(m?.childrenData?.[0]).length>0,k=!h&&(!!Array.isArray(m?.childrenData)&&m.childrenData.length>0||C),A=!h&&!k;return(0,l.jsxs)("div",{className:" ",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(i.default,{variant:"h3",color:"tertiary",weight:"light",className:"mb-spacing-5",children:j}),(0,l.jsx)(i.default,{variant:"h6",color:"secondary",weight:"light",className:"mt-spacing-5 mb-spacing-6 lg:m-0",children:w})]}),h&&(0,l.jsx)("div",{className:"lg:mt-spacing-5 mt-spacing-4",children:(0,l.jsx)(n.A,{label:"ar"===g?"سنة التقرير":"Report Year",name:"year",type:"select",value:(u=(x.length>0?x:["-"]).indexOf(f))>=0?String(u):"",onChange:e=>{var a;let t;v((a=e.target.value,Number.isFinite(t=Number.parseInt(a,10))&&t>=0&&t<x.length?x[t]:""))},options:x.length>0?x:["-"],width:"w-full",inputClass:"border-border-tertiary text-label-placeholder",hasBottomPadding:!0},`year-${a}`)}),(0,l.jsxs)("div",{className:`mt-spacing-6 ${h?"lg:mt-spacing-7":"lg:mt-[56px]"}`,children:[h?N&&(0,l.jsx)(d.A,{}):A&&(0,l.jsx)(d.A,{}),(h?y:k)&&(0,l.jsx)(i.default,{variant:"h5",className:"mb-spacing-5",color:"secondary",children:h?"ar"===g?"النتائج":"Results":""}),h?(0,l.jsx)("div",{className:"max-h-[200px] overflow-auto",children:b.map((e,a)=>(0,l.jsx)(o.A,{index:a,lastCard:b.length-1===a,roundedLast:!0,card:e,mobilePopUp:!0},a))}):"sukukpopup"!==a?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"max-h-[200px] overflow-auto",children:Array.isArray(m?.childrenData)&&m.childrenData.map((e,a)=>(0,l.jsx)(r.A,{card:e,index:a,lastCard:m.childrenData.length-1===a,roundedLast:!0,mobilePopUp:!0},`${a}-card-${e?.data?.title??"row"}`))})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"max-h-[200px] overflow-auto",children:Array.isArray(e)&&e.map((e,a)=>(0,l.jsxs)("div",{className:"mt-spacing-8 first:mt-0",children:[(0,l.jsx)(i.default,{variant:"h5",color:"secondary",weight:"light",children:e?.data?.title}),(0,l.jsx)(i.default,{variant:"h6",color:"tertiary",weight:"light",className:"lg:mb-spacing-5 mb-spacing-4",children:e?.data?.description}),Array.isArray(e?.childrenData)&&e.childrenData.map((t,i)=>(0,l.jsx)(r.A,{card:t,index:i,lastCard:(e?.childrenData?.length??0)-1===i,roundedLast:!0,mobilePopUp:!0},`${i*(a+1)}-${t?.data?.title??"sub"}`))]},`${a}-${e?.data?.title??"sukuk"}`))})})]})]})}},60396:(e,a,t)=>{"use strict";t.d(a,{default:()=>b});
7var l=t(95155),i=t(12115),r=t(75751),s=t(61792),n=t(25354),c=t(98500),d=t.n(c),o=t(27003),u=t(31013),m=t(59610),h=t(36341),g=t(91256),p=t(25664),x=t(29722),f=t(323);let v=({title:e,description:a,image:t,link:r,childrenData:c,image_alt_text:v,image_defaut_alt_text:b})=>{let{isMobile:j}=(0,o.k)(),w=(0,i.useRef)(null),y=(0,i.useRef)(""),N=(0,s.W)(w,{once:!0}),C=(0,m.k)(),{popupClickHandler:k}=(0,p.useModal)(),A=(0,f.ey)(e||"");(0,i.useEffect)(()=>{if(!A||!c?.[0]||!w.current)return;let e=()=>{let e=decodeURIComponent(window.location.hash.replace("#","")).trim();if(!e||e!==A||y.current===e)return;let a=w.current?.querySelector("button");a&&(y.current=e,a.click(),window.setTimeout(()=>{let e=`${window.location.pathname}${window.location.search}`;window.history.replaceState(null,"",e),y.current=""},50))},a=window.setTimeout(()=>{e()},300);return window.addEventListener("hashchange",e),()=>{window.clearTimeout(a),window.removeEventListener("hashchange",e)}},[A,c,k]);let D=!!r,M=D?d():"button";return(0,l.jsx)(n.PY1.div,{ref:w,id:A||void 0,className:(0,g.cn)("bg-surface-tertiary flex flex-1 lg:rounded-container-large lg:hover:shadow-sm mb-[1px] lg:mb-0 relative scroll-mt-[120px] lg:scroll-mt-[90px]","max-lg:first:rounded-t-container-small max-lg:last:rounded-b-container-small",D&&"cursor-none"),...!j&&{whileHover:{scale:1.03},whileTap:{scale:.8},initial:{opacity:1,y:0},animate:{opacity:+!!N,y:50*!N},transition:{type:"spring",stiffness:400,damping:30,delay:.1}},children:(0,l.jsxs)(M,{...D?C:{},...D?{href:r}:{},onClick:()=>{c?.[0]&&k(c[0])},className:`lg:p-spacing-6 lg:block flex px-spacing-4 py-spacing-5 ${D&&"!cursor-none"} ${!r&&"w-full"}`,children:[(0,l.jsx)("div",{className:"lg:w-[100px] lg:h-[100px] w-16 h-16",children:(0,l.jsx)(h.default,{type:"image",src:t,alt:v||b,width:j?64:100,height:j?64:100,mediaClassName:(0,x.A)("object-contain"),IsApiFromData:!0})}),(0,l.jsx)("div",{className:"ms-spacing-4 lg:m-0 flex items-center lg:block",children:(0,l.jsxs)("div",{className:"lg:w-full",children:[(0,l.jsx)(u.default,{variant:"h4",weight:"medium",className:"lg:mb-spacing-2 lg:mt-spacing-5 text-label-secondary capitalize",children:e}),a&&(0,l.jsx)(u.default,{variant:"p",className:"text-label-tertiary",children:a})]})})]})})},b=({title:e,description:a,cards_per_row:t=3,is_inline_title:i=!1,title_color:s="secondary",description_color:n="tertiary",cards:c})=>{let{isMobile:d}=(0,o.k)(),u=d?1:t;return(0,l.jsxs)("div",{className:"flex grow flex-col gap-spacing-5 lg:gap-spacing-7 justify-center items-center",children:[(!i||d)&&e&&(0,l.jsx)(r.default,{title:e,description:a,title_color:s,description_color:n}),(0,l.jsxs)("div",{className:"lg:grid grow w-full lg:gap-spacing-7 items-stretch justify-center",style:{gridTemplateColumns:`repeat(${u}, minmax(0, 1fr))`},children:[i&&!d&&e&&(0,l.jsx)("div",{className:"flex size-full justify-center items-center",children:(0,l.jsx)(r.default,{title:e,description:a,animated:!1,alignment:"left"})}),c?.map((e,a)=>(0,l.jsx)(v,{...e.data,...e.variant,childrenData:e.childrenData},e?.uniqueid??a))]})]})}},62456:(e,a,t)=>{"use strict";t.d(a,{default:()=>w});var l=t(95155),i=t(12115),r=t(76565),s=t(15217),n=t(98500),c=t.n(n),d=t(31013),o=t(61792),u=t(68598),m=t(12185),h=t(76759),g=t(62094),p=t(59610),x=t(27003),f=t(36341),v=t(29722);let b=({id:e,image:a,date:t,title_en:r,title_ar:s,short_description_en:n,short_description_ar:b,page_slug_en:j,page_slug_ar:w,external_register_link_en:y,external_register_link_ar:N,location_en:C,location_ar:k,start_time:A,end_time:D,image_alt_text:M,image_defaut_alt_text:_})=>{let $=(0,i.useRef)(null),P=(0,o.W)($,{once:!0}),L=(0,u.s)(),{lang:S}=(0,g.useLang)(),{isMobile:E}=(0,x.k)();(0,i.useEffect)(()=>{P&&L.start("visible")},[P,L]);let R=(0,p.k)();return(0,l.jsx)(c(),{...R,href:"ar"===S?w:j,className:"cursor-none",prefetch:!1,children:(0,l.jsxs)(m.P.div,{ref:$,initial:"hidden",animate:L,variants:{hidden:{opacity:0,y:80},visible:{opacity:1,y:0,transition:{type:"spring",stiffness:300,damping:60}}},className:"flex flex-col size-full lg:max-w-[353px]  items-start justify-start bg-surface-tertiary gap-spacing-6 rounded-container-small lg:rounded-container-large overflow-hidden",children:[(0,l.jsx)(f.default,{src:a,alt:M||_,type:"image",classname:"!w-full",height:E?274:224,width:E?274:353,mediaClassName:(0,v.A)("object-cover !w-full"),IsApiFromData:!0}
7),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-2 grow px-spacing-6 pb-spacing-6 pt-0",children:[(0,l.jsx)(d.default,{variant:"h6",weight:"light",color:"placeholder",children:(0,h.Y)(t||"",S)}),(0,l.jsx)(d.default,{variant:"h5",color:"secondary",weight:"medium",className:"",children:"ar"===S?s:r}),(0,l.jsx)(d.default,{color:"tertiary",variant:"h6",weight:"light",children:((e,a=115)=>e?e.length>a?e.slice(0,a)+"...":e:"")("ar"===S?b:n||"",E?100:78)})]})]})})};var j=t(75751);let w=({title:e,eventData:a})=>{let{lang:t}=(0,g.useLang)(),n="ar"===t,c={event:n?"اسم الفعالية":"Event name",eventPH:n?"أدخل اسم الفعالية...":"Enter event..",category:n?"الفئة":"Category",allCategories:n?"جميع الفئات":"All categories",allYears:n?"جميع السنوات":"All years",filterBy:n?"بحث بـ":"Filter by",sortBy:n?"الترتيب":"Sort by",newToOld:n?"من الأحدث للأقدم":"New to old",oldToNew:n?"من الأقدم للأحدث":"Old to new"};c.allCategories;let[d,o]=(0,i.useState)({event_search:"",category:[0],year:[0],sort_order:[0]}),u=e=>{let a=Date.parse(e??"");return Number.isFinite(a)?a:-1/0},m=(0,i.useMemo)(()=>{let e=(a??[]).map(e=>e?.category).filter(Boolean),l=new Map;return e.forEach(e=>{l.has(e.id)||l.set(e.id,"ar"===t?e.title_ar:e.title_en)}),{ids:Array.from(l.keys()),titles:Array.from(l.values())}},[a,t]),h=(0,i.useMemo)(()=>Array.from(new Set((a??[]).map(e=>{let a=Date.parse(e?.date??"");return Number.isFinite(a)?String(new Date(a).getFullYear()):null}).filter(Boolean))).sort((e,a)=>Number(a)-Number(e)),[a]),p=(0,i.useMemo)(()=>{let e=Array.isArray(a)?a:[],t=d.category[0],l=d.year[0],i=0===t?null:m.ids[t-1],r=0===l?null:h[l-1],s=(d.event_search??"").trim().toLowerCase(),c=1===d.sort_order[0]?"asc":"desc";return e.filter(e=>{let a=String(n?e?.title_ar:e?.title_en??"").toLowerCase(),t=!s||a.includes(s),l=!i||e?.category?.id===i,c=Date.parse(e?.date??""),d=Number.isFinite(c)?String(new Date(c).getFullYear()):null;return t&&l&&(!r||d===r)}).sort((e,a)=>{let t=u(e?.date),l=u(a?.date);return"asc"===c?t-l:l-t})},[d,a,m,h,n]),x=e=>{let a=e?.target?.name||e?.name,t=e?.target?.value!==void 0?e.target.value:e;if("category"===a||"year"===a||"sort_order"===a){let e=Array.isArray(t)?Number(t[0]):Number(t);o(t=>({...t,[a]:[e]}));return}o(e=>({...e,[a]:String(t??"")}))};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(r.A,{classname:"overflow-visible",noBottomPadding:!0,noTopPadding:!0,noXPadding:!0,children:[(0,l.jsx)(j.default,{title:e}),(0,l.jsxs)("div",{className:"max-w-[746px] mx-auto flex flex-col gap-spacing-5 my-spacing-4 lg:my-spacing-7 lg:flex-row",children:[(0,l.jsx)("div",{className:"lg:w-[209px]",children:(0,l.jsx)(s.A,{label:c.event,name:"event_search",type:"text",value:d.event_search,onChange:x,placeholder:c.eventPH})}),(0,l.jsx)("div",{className:"lg:w-[250px]",children:(0,l.jsx)(s.A,{label:c.category,name:"category",type:"select",value:d.category[0].toString(),onChange:e=>{let a=parseInt(e.target.value);o(e=>({...e,category:[a]}))},options:[c.allCategories,...m.titles]})}),(0,l.jsx)("div",{className:"lg:w-[135px]  rtl:lg:w-[250px]",children:(0,l.jsx)(s.A,{label:c.filterBy,name:"year",type:"select",value:d.year[0],onChange:x,options:[c.allYears,...h]})}),(0,l.jsx)("div",{className:"lg:w-[163px] rtl:lg:w-[250px]",children:(0,l.jsx)(s.A,{label:c.sortBy,name:"sort_order",type:"select",value:d.sort_order[0],onChange:x,options:[c.newToOld,c.oldToNew]})})]})]}),(0,l.jsx)("div",{className:"grid lg:grid-cols-3 grid-cols-1 gap-10 w-full mt-10",children:p?.map((e,a)=>(0,l.jsx)(b,{...e},a))})]})}},64502:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>j});var l=t(95155),i=t(12115),r=t(25354),s=t(27003),n=t(75751),c=t(36341),d=t(31013),o=t(21544),u=t(91256),m=t(31966),h=t(90467),g=t(98500),p=t.n(g),x=t(23089),f=t(62094);let v=({icon:e,title:a,description:t,link_label:n,link:g,card_color:v,show_arrow:b,alt:j,seperated_mobile:w=!1})=>{let{isMobile:y}=(0,s.k)(),{toggleOverlay:N}=(0,x.R)(),C=(0,i.useRef)(null),k=`bg-surface-${v}`,{lang:A}=(0,f.useLang)(),D="Msa3edChat"!==g&&1?p():"div";return(0,l.jsxs)(r.PY1.div,{variants:{hidden:{opacity:0,y:50},visible:{opacity:1,y:0,transition:{duration:.5}}},transition:{type:"spring",stiffness:300,damping:60,flexGrow:{duration:.5,ease:"easeInOut"}},ref:C,className:(0,u.cn)("flex size-full lg:flex-col p-spacing-5 overflow-hidden lg:border border-x border-b border-border-tertiary  lg:rou
7nded-container-large lg:py-spacing-6",k,y&&"first:rounded-t-container-small first:border-t last:rounded-b-container-small",w&&"flex-col border rounded-container-large gap-spacing-5 p-spacing-6"),children:[e&&(0,l.jsx)(c.default,{type:"image",src:e,width:y?32:40,height:y?32:40,alt:j,style:{maxWidth:"none"},IsApiFromData:!0,classname:"lg:mb-6 max-lg:me-spacing-4"}),(0,l.jsxs)("div",{className:`${y?"":"mt-spacing-5 lg:mt-0"} lg:m-0 size-full flex flex-col`,children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,l.jsx)(d.default,{variant:"h4",color:"secondary",weight:"medium",children:a}),b&&("ar"===A?(0,l.jsx)(m.A,{size:y?24:40,strokeWidth:1.5}):(0,l.jsx)(h.A,{size:y?24:40,strokeWidth:1.5}))]}),(0,l.jsxs)("div",{className:(0,u.cn)("flex flex-col editor--overide size-full text-label-tertiary lg:text-[20px] lg:leading-font-line-height-h5 h-full justify-between","last:[&_a]:text-[20px] last:[&_a]:leading-font-line-height-h5 last:[&_a]:block [&_a]:mt-spacing-2"),children:[(0,o.Q)(t||""),g&&(0,l.jsx)(D,{className:"mt-spacing-2 text-[20px] text-label-links hover:cursor-pointer",href:g,onClick:()=>{"Msa3edChat"===g&&N()},children:n})]})]})]})};var b=t(19658);let j=({title:e,description:a,cards:t=[],cards_per_row:c=3,first_row_cards:d=0,is_title_start:o=!1,is_minimized:m=!1,card_color:h="default",alignment:g="center",seperated_mobile:p=!1,label:x,showMoreLabel:j})=>{let{isMobile:w}=(0,s.k)(),{lang:y}=(0,f.useLang)(),[N,C]=(0,i.useState)(!1),k=t.length>6,A=N?t.length:6,D=t.slice(0,A),M=d>0?d:c,_=D.slice(0,M),$=D.slice(M),P=j&&j.toString().trim().length>0?j.toString():"ar"===y?"عرض المزيد":"Show more",L=x&&x.toString().trim().length>0?x.toString():"ar"===y?"عرض أقل":"Load less",S=N?L:P,E=w?1:M,R=w?1:c;return(0,l.jsxs)("div",{className:(0,u.cn)("flex flex-col",p?"gap-spacing-6":"gap-spacing-7 lg:gap-spacing-7","items-center relative overflow-hidden"),children:[w&&(0,l.jsxs)(l.Fragment,{children:[e&&"center"===g&&(0,l.jsx)(n.default,{title:e,description:a,alignment:g||"center"}),e&&"left"===g&&(0,l.jsx)(n.default,{pretitle:e,title:a||"",pretitle_color:"tertiary",title_color:"secondary",alignment:g||"center"}),(0,l.jsx)(r.PY1.div,{initial:"visible",whileInView:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.2,staggerChildren:.2}}},className:(0,u.cn)("w-full",p&&"gap-spacing-5"),style:{display:"grid",gridTemplateColumns:`repeat(${E}, minmax(0, 1fr))`},children:D.map((e,a)=>(0,l.jsx)(v,{...e.data,...e.variant,card_color:h,seperated_mobile:p},"bfc"+a))}),k&&(0,l.jsx)(b.$,{onClick:()=>C(e=>!e),variant:"secondary",className:"mt-spacing-4",children:S})]}),!w&&(0,l.jsxs)(l.Fragment,{children:[e&&!o&&"center"===g&&(0,l.jsx)(n.default,{title:e,description:a,alignment:g||"center"}),e&&!o&&"left"===g&&(0,l.jsx)(n.default,{pretitle:e,title:a||"",pretitle_color:"tertiary",title_color:"secondary",alignment:g||"center"}),(0,l.jsx)(r.PY1.div,{initial:"visible",whileInView:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.1,staggerChildren:.2}}},className:"lg:grid w-full lg:gap-spacing-7",style:{display:"grid",gridTemplateColumns:`repeat(${E}, minmax(0, 1fr))`},children:e&&o?(0,l.jsxs)("div",{className:"grid gap-spacing-7 items-center",children:[(0,l.jsx)(n.default,{title:e,description:a,animated:!1,alignment:"left"}),_.map((e,a)=>(0,l.jsx)(v,{...e.data,...e.variant,card_color:h},"bfc"+a))]}):_.map((e,a)=>(0,l.jsx)(v,{...e.data,...e.variant,card_color:h},"bfc"+a))}),$.length>0&&(0,l.jsx)(r.PY1.div,{initial:"visible",whileInView:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.2,staggerChildren:.2}}},className:"lg:grid w-full lg:gap-spacing-7",style:{display:"grid",gridTemplateColumns:`repeat(${R}, minmax(0, 1fr))`},children:$.map((e,a)=>(0,l.jsx)(v,{...e.data,...e.variant,card_color:h},_.length+a))}),k&&(0,l.jsx)(b.$,{onClick:()=>C(e=>!e),variant:"secondary",className:"mt-spacing-4",children:S})]})]})}},65394:(e,a,t)=>{"use strict";t.d(a,{default:()=>g});var l=t(95155),i=t(12115),r=t(62094),s=t(36341),n=t(31013);let c=({title:e,icon:a,description:t,onClick:i})=>(0,l.jsxs)("div",{onClick:i,className:"border border-border-tertiary lg:px-6 py-3 px-2 rounded-container-small flex lg:flex-row flex-col gap-4 items-center lg:justify-start lg:text-start text-center justify-center lg:w-[353px] w-[168px] h-[152px] lg:h-auto",children:[(0,l.jsx)(s.default,{style:{filter:"grayscale(100%)"},alt:a,type:"image",src:a,width:64,height:64,IsApiFromData:!0}
7),(0,l.jsxs)("div",{className:"flex flex-col gap-[2px]",children:[(0,l.jsx)(n.default,{weight:"medium",variant:"h5",color:"secondary",align:"center",children:e}),t&&(0,l.jsx)(n.default,{weight:"light",variant:"p",color:"tertiary",align:"center",children:t})]})]});var d=t(75751),o=t(25664),u=t(323),m=t(15217);let h=["Partner","PartnerLogo"],g=({data:e,childrenData:a})=>{let{lang:t}=(0,r.useLang)(),{popupClickHandler:s}=(0,o.useModal)(),[n,g]=(0,i.useState)(null),p=(0,i.useRef)(""),x=(0,i.useMemo)(()=>a?.filter(e=>e?.PluginName==="TagPlugin")||[],[a]),f=(0,i.useMemo)(()=>x.flatMap(e=>e?.childrenData?.filter(e=>h.includes(e?.PluginName))||[]),[x]),v=(0,i.useMemo)(()=>a?.filter(e=>h.includes(e?.PluginName))||[],[a]),b=f.length>0?f:v,j=n?x?.find(e=>e?.data?.title===n)?.childrenData?.filter(e=>h.includes(e?.PluginName)):b;return(0,i.useEffect)(()=>{if(!b?.length)return;let e=()=>{let e=(0,u.ey)(decodeURIComponent(window.location.hash.replace("#","")).trim());if(!e||p.current===e)return;let a=b.find(a=>(0,u.ey)(a?.data?.anchor_id||a?.data?.title||"")===e);if(!a)return;let t=a?.childrenData?.find(e=>e?.PluginName==="PartnerPopup");t&&(p.current=e,s(t),window.setTimeout(()=>{let e=`${window.location.pathname}${window.location.search}`;window.history.replaceState(null,"",e),p.current=""},50))},a=window.setTimeout(()=>{e()},300);return window.addEventListener("hashchange",e),()=>{window.clearTimeout(a),window.removeEventListener("hashchange",e)}},[b,s]),(0,l.jsxs)("div",{className:"relative lg:justify-center justify-start flex flex-col",children:[(0,l.jsx)("div",{children:(0,l.jsx)(d.default,{title:e?.title,pretitle:e?.pre_title,title_color:"secondary",pretitle_color:"placeholder"})}),(0,l.jsx)("div",{className:"flex flex-row lg:max-w-[944px] m-auto lg:justify-center justify-start lg:mt-2 mt-4 gap-4",children:x?.length>0&&(0,l.jsx)(m.A,{type:"radio",name:"partner",options:["ar"===t?"الجميع":"All",...x.map(e=>e?.data?.title)],radioClass:"flex flex-wrap lg:gap-10 gap-3 ",radioStyle:"border-0 !w-auto !p-spacing-1 hover:bg-transparent",value:(()=>{if(!n)return"0";let e=x.findIndex(e=>e?.data?.title===n);return -1!==e?(e+1).toString():"0"})(),onChange:e=>{let a=parseInt(e.target.value,10);0===a?g(null):g(x[a-1]?.data?.title)}})}),(0,l.jsx)("div",{className:"flex flex-wrap  justify-center items-center lg:gap-x-10 lg:gap-y-6 lg:mt-10 mt-8 gap-x-[14px] gap-y-3",children:j?.map((e,a)=>(0,l.jsx)(c,{title:e?.data?.title,icon:e?.data?.icon,description:e?.data?.description,onClick:()=>{let a;(a=e?.childrenData?.find(e=>e?.PluginName==="PartnerPopup"))&&s(a)}},e?.uniqueid??a))})]})}},66476:(e,a,t)=>{"use strict";t.d(a,{default:()=>b});var l=t(95155),i=t(12115),r=t(25664),s=t(76565),n=t(31013),c=t(76759),d=t(86350),o=t(62094),u=t(36341);let m=({title_en:e,title_ar:a,image:t,date:r,start_time:m,handleDynamicFormModal:h,IsHasdynamicFormPluginPublisher:g,external_link:p})=>{let{lang:x}=(0,o.useLang)(),[f,v]=(0,i.useState)(!1);(0,i.useEffect)(()=>{v(!0)},[]);let b="string"==typeof p&&p.trim().length>0,j=(0,i.useMemo)(()=>{if(!r||!f)return!1;try{let e=new Date(`${r}T${m||"00:00"}`),a=new Date;return e<a}catch{return!1}},[r,m,f]),w=j?"en"===x?"Registration closed":"انتهى التسجيل":"en"===x?"Register now":"سجّل الآن";return(0,l.jsxs)(s.A,{containerClassname:"relative rounded-container-small lg:rounded-container-large overflow-hidden",children:[(0,l.jsx)("div",{className:"relative w-full h-[608px] lg:h-[548px]",children:(0,l.jsx)(u.default,{src:t,alt:"news image",type:"image",layout:"fill",classname:"w-full h-full",overrideClass:"object-cover",IsApiFromData:!0,sizes:"100vw"})}),(0,l.jsx)("div",{className:"bg-[linear-gradient(0deg,#000_0%,rgba(0,0,0,0)_100%)] z-20 inset-0 absolute"}),(0,l.jsx)("div",{className:"absolute inset-0 p-spacing-5 lg:px-[64px] lg:py-spacing-8 z-40 flex items-end",children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5 lg:gap-spacing-4",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-2 lg:gap-spacing-4",children:[(0,l.jsxs)(n.default,{weight:"medium",variant:"h6",color:"default",children:[r?(0,c.Y)(r,x):"",m&&(0,l.jsxs)(l.Fragment,{children:[" - ",(0,c.G)(m,x)]})]}),(0,l.jsx)(n.default,{weight:"light",color:"default",variant:"h2",children:"en"==x?e:a})]}),g&&!b&&(0,l.jsx)(d.A,{type:"btnprimary",size:"large",colorvariant:"bgprimary",onClick:h,className:"self-start",disabled:j,children:w}),b&&(0,l.jsx)(d.A,{type:"btnprimary",size:"large",colorvariant:"bgprimary",href:p,className:"self-start",isLink:!0,target_blank:"_blank",children:"en"===x?"Register now":"سجّل الآن"})]})})]})};var h=t(21544);let g=({title:e,description:a})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-5 editor--overide ",children:[(0,l.jsx)(n.default,{variant:"h3",weight:"light",color:"secondary",children:e}),(0,l.jsx)(n.default,{variant:"h5",align:"start",color:"tertiary",className:"max-w-[747px] w-full",as:"div",children:(0,h.Q)(a)})]})}),p=({data:e})=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"flex flex-col gap-spacing-4 lg:grid lg:grid-cols-3 lg:gap-spacing-7",children:e?.childrenData?.map((e,a)=>(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-4",children:[(0,l.jsx)("div",{className:"h-[80px] w-[80px] rounded-full flex items-center justify-center bg-surface-tertiary p-[20px]",children:(0,l.jsx)("div",{className:"relative  w-[40px] h-[40p
7x] rounded-full overflow-hidden",children:(0,l.jsx)(u.default,{src:e?.data?.icon,alt:"news image",type:"image",width:40,height:40,mediaClassName:"object-contain",IsApiFromData:!0})})}),(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-2 self-center",children:[(0,l.jsx)(n.default,{variant:"h5",weight:"light",color:"secondary",children:e?.data?.text}),(0,l.jsx)(n.default,{variant:"h4",weight:"bold",color:"secondary",children:e?.data?.bold})]})]},`${a} + ${e?.data?.text}`))})}),x=({location:e,start_time:a,end_time:t,date:r,prizes:s,titleWithRichText:u,handleDynamicFormModal:m,titleDescriptionPlugin:h,IsHasdynamicFormPluginPublisher:x,external_link:f})=>{let{lang:v}=(0,o.useLang)(),b="string"==typeof f&&f.trim().length>0,j=(0,i.useMemo)(()=>{if(!r)return!1;try{let e=new Date(`${r}T${a||"00:00"}`),t=new Date;return e<t}catch{return!1}},[r,a]);return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("section",{className:"grid grid-cols-1 lg:flex  lg:gap-spacing-7",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-[48px]",children:[(0,l.jsx)(g,{title:u[0]?.data?.title,description:u[0].data.description}),(0,l.jsx)(p,{data:s}),u.slice(1).map((e,a)=>(0,i.createElement)(g,{...e.data,key:a}))]}),(0,l.jsxs)("div",{className:"hidden lg:w-[453px] lg:flex lg:flex-col lg:gap-spacing-5",children:[(0,l.jsxs)("div",{className:" bg-surface-tertiary p-spacing-5 flex flex-col gap-spacing-4 rounded-container-small lg:rounded-container-large",children:[(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-4",children:[(0,l.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M0.5 24C0.5 10.7452 11.2452 0 24.5 0C37.7548 0 48.5 10.7452 48.5 24C48.5 37.2548 37.7548 48 24.5 48C11.2452 48 0.5 37.2548 0.5 24Z",fill:"#fff"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.4999 14.7499C20.4959 14.7499 17.2499 17.9958 17.2499 21.9999C17.2499 23.9712 18.1398 25.8107 19.5941 27.6991C20.8204 29.2914 22.3899 30.8481 24.0593 32.5039C24.2055 32.6488 24.3524 32.7946 24.4999 32.9411C24.6475 32.7946 24.7944 32.6488 24.9405 32.5039C26.6099 30.8481 28.1795 29.2914 29.4057 27.6991C30.8601 25.8107 31.7499 23.9712 31.7499 21.9999C31.7499 17.9958 28.504 14.7499 24.4999 14.7499ZM15.7499 21.9999C15.7499 17.1674 19.6674 13.2499 24.4999 13.2499C29.3324 13.2499 33.2499 17.1674 33.2499 21.9999C33.2499 24.4468 32.1398 26.6073 30.5941 28.6144C29.301 30.2935 27.6459 31.9344 25.9779 33.588C25.6617 33.9015 25.345 34.2155 25.0303 34.5302C24.7374 34.8231 24.2625 34.8231 23.9696 34.5302C23.6549 34.2155 23.3382 33.9015 23.022 33.588C21.354 31.9344 19.6989 30.2935 18.4057 28.6144C16.8601 26.6073 15.7499 24.4468 15.7499 21.9999ZM24.4999 19.7499C23.2573 19.7499 22.2499 20.7572 22.2499 21.9999C22.2499 23.2425 23.2573 24.2499 24.4999 24.2499C25.7426 24.2499 26.7499 23.2425 26.7499 21.9999C26.7499 20.7572 25.7426 19.7499 24.4999 19.7499ZM20.7499 21.9999C20.7499 19.9288 22.4289 18.2499 24.4999 18.2499C26.571 18.2499 28.2499 19.9288 28.2499 21.9999C28.2499 24.0709 26.571 25.7499 24.4999 25.7499C22.4289 25.7499 20.7499 24.0709 20.7499 21.9999Z",fill:"#323232"})]}),(0,l.jsx)("div",{className:"flex flex-col gap-spacing-2 self-center",children:(0,l.jsx)(n.default,{variant:"h5",weight:"light",color:"secondary",children:e})})]}),(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-4",children:[(0,l.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 13.2501C20.4142 13.2501 20.75 13.5858 20.75 14.0001V15.2501H27.25V14.0001C27.25 13.5858 27.5858 13.2501 28 13.2501C28.4142 13.2501 28.75 13.5858 28.75 14.0001V15.2505C29.3296 15.2522 29.8183 15.2597 30.2315 15.2934C30.7781 15.3381 31.2582 15.4324 31.7025 15.6588C32.4081 16.0183 32.9818 16.592 33.3413 17.2976C33.5676 17.7418 33.662 18.222 33.7066 18.7686C33.75 19.2995 33.75 19.9551 33.75 20.7679V29.2322C33.75 30.045 33.75 30.7006 33.7066 31.2315C33.662 31.7782 33.5676 32.2583 33.3413 32.7025C32.9818 33.4081 32.4081 33.9818 31.7025 34.3413C31.2582 34.5677 30.7
7781 34.662 30.2315 34.7067C29.7006 34.7501 29.045 34.7501 28.2321 34.7501H19.7679C18.955 34.7501 18.2994 34.7501 17.7685 34.7067C17.2219 34.662 16.7418 34.5677 16.2975 34.3413C15.5919 33.9818 15.0183 33.4081 14.6587 32.7025C14.4324 32.2583 14.338 31.7782 14.2934 31.2315C14.25 30.7006 14.25 30.045 14.25 29.2322V20.768C14.25 19.9551 14.25 19.2995 14.2934 18.7686C14.338 18.222 14.4324 17.7418 14.6587 17.2976C15.0183 16.592 15.5919 16.0183 16.2975 15.6588C16.7418 15.4324 17.2219 15.3381 17.7685 15.2934C18.1817 15.2597 18.6704 15.2522 19.25 15.2505V14.0001C19.25 13.5858 19.5858 13.2501 20 13.2501ZM19.25 16.7506C18.6805 16.7523 18.2466 16.7594 17.8907 16.7884C17.4368 16.8255 17.176 16.8947 16.9785 16.9953C16.5552 17.211 16.211 17.5552 15.9952 17.9786C15.8946 18.1761 15.8255 18.4369 15.7884 18.8907C15.7506 19.3534 15.75 19.9476 15.75 20.8001V21.2501H32.25V20.8001C32.25 19.9476 32.2494 19.3534 32.2116 18.8907C32.1745 18.4369 32.1054 18.1761 32.0048 17.9786C31.7891 17.5552 31.4448 17.211 31.0215 16.9953C30.824 16.8947 30.5632 16.8255 30.1093 16.7884C29.7534 16.7594 29.3195 16.7523 28.75 16.7506V18.0001C28.75 18.4143 28.4142 18.7501 28 18.7501C27.5858 18.7501 27.25 18.4143 27.25 18.0001V16.7501H20.75V18.0001C20.75 18.4143 20.4142 18.7501 20 18.7501C19.5858 18.7501 19.25 18.4143 19.25 18.0001V16.7506ZM32.25 22.7501H15.75V29.2001C15.75 30.0525 15.7506 30.6467 15.7884 31.1094C15.8255 31.5633 15.8946 31.824 15.9952 32.0215C16.211 32.4449 16.5552 32.7891 16.9785 33.0048C17.176 33.1055 17.4368 33.1746 17.8907 33.2117C18.3533 33.2495 18.9475 33.2501 19.8 33.2501H28.2C29.0525 33.2501 29.6467 33.2495 30.1093 33.2117C30.5632 33.1746 30.824 33.1055 31.0215 33.0048C31.4448 32.7891 31.7891 32.4449 32.0048 32.0215C32.1054 31.824 32.1745 31.5633 32.2116 31.1094C32.2494 30.6467 32.25 30.0525 32.25 29.2001V22.7501Z",fill:"#323232"})]}),(0,l.jsx)("div",{className:"flex flex-col gap-spacing-2 self-center",children:(0,l.jsx)(n.default,{variant:"h5",weight:"light",color:"secondary",children:(0,c.Y)(r,v)})})]}),a&&t&&(0,l.jsxs)("div",{className:"flex flex-row gap-spacing-4",children:[(0,l.jsxs)("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("path",{d:"M0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24Z",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 14.75C18.8914 14.75 14.75 18.8914 14.75 24C14.75 29.1086 18.8914 33.25 24 33.25C29.1086 33.25 33.25 29.1086 33.25 24C33.25 18.8914 29.1086 14.75 24 14.75Z",fill:"#323232"})]}),(0,l.jsx)("div",{className:"flex flex-col gap-spacing-2 self-center",children:(0,l.jsxs)(n.default,{variant:"h5",weight:"light",color:"secondary",children:[(0,c.G)(a,v)," -"," ",(0,c.G)(t,v)]})})]})]}),x&&(0,l.jsxs)("div",{className:"bg-surface-tertiary p-spacing-5 flex flex-col gap-[20px] rounded-container-small lg:rounded-container-large",children:[(0,l.jsxs)(n.default,{variant:"h4",weight:"light",color:"secondary",children:[(0,l.jsxs)("span",{style:{fontSize:"revert",fontWeight:"400"},children:[h[0]?.data?.title,(0,l.jsx)("br",{})]}),h[0]?.data?.description]}),!b&&(0,l.jsx)(d.A,{type:"btnprimary",size:"large",colorvariant:"bgprimary",onClick:m,className:"self-start",disabled:j,children:h[0]?.data?.label}),b&&(0,l.jsx)(d.A,{type:"btnprimary",size:"large",colorvariant:"bgprimary",href:f,className:"self-start",isLink:!0,target_blank:"_blank",disabled:j,children:"en"===v?"Register now":"سجّل الآن"})]})]})]})})};var f=t(43104),v=t(32035);let b=({eventData:e,formPlugin:a,prizes:t,titleWithRichText:n,titleDescriptionPlugin:c})=>{let{lang:d}=(0,o.useLang)(),{openModal:u}=(0,r.useModal)(),[h,g]=(0,i.useState)({event_search:"",category:"",year:""}),p=()=>{a&&u({title:a.data?.form_title||"",content:(0,l.jsx)("div",{className:" overflow-scroll size-full",children:(0,l.jsx)(v.default,{pluginData:a,displayMode:"layout"})}),closeButtonClass:"relative w-full block lg:h-[72px] h-[56px] flex justify-end items-end lg:px-spacing-7 px-spacing-5 bg-surface-default !lg:rounded-t-container-large !rounded-t-container-small",iswhiteModal:!1})},b=!!(a&&a.data);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.M,{data:e,emptyTitle:"events",children:(0,l.jsx)(m,{...e,handleDynamicFormModal:p,IsHasdynamicFormPluginPublisher:b})}),(0,l.jsx)(s.A,{noTopPadding:!0,children:(0,l.jsx)(f.M,{data:e,emptyTitle:"events",children:(0,l.jsx)(x,{...e,prizes:t,titleWithRichText:n,titleDescriptionPlugin:c,handleDynamicFormModal:p,IsHasdynamicFormPluginPublisher:b})})})]})}},66509:(e,a,t)=>{"use strict";t.d(a,{$n:()=>c,OL:()=>n,ao:()=>d});let l="bb_google_ads_gclid",i=e=>
7String(e??"").trim(),r=e=>e.length>0&&e.length<=500,s=e=>{if(r(e))try{sessionStorage.setItem(l,e)}catch(e){console.error("Failed to store gclid:",e)}},n=e=>{s(i(e.get("gclid")))},c=e=>{let a=i(e.get("gclid"));r(a)&&s(a);let t=r(a)?a:(()=>{try{let e=i(sessionStorage.getItem(l));return r(e)?e:""}catch(e){return console.error("Failed to read stored gclid:",e),""}})(),n=!!t;return{utm_source:n?"Google":i(e.get("utm_source")),utm_medium:n?"CPC":i(e.get("utm_medium")),utm_campaign:i(e.get("utm_campaign")),utm_content:i(e.get("utm_content")),utm_term:i(e.get("utm_term")),gclid:t}},d=()=>{try{sessionStorage.removeItem(l)}catch(e){console.error("Failed to clear stored gclid:",e)}}},66900:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(76565);t(12115);var r=t(25354),s=t(27003),n=t(26673),c=t(19658),d=t(25664),o=t(91256);let u=({title:e,pretitle:a,description:t,image:u,button_label:m,button_link:h,button_variant:g="primary",button_color:p="red",noPaddingBottom:x=!1,childrenData:f,index:v=0,isH1:b=!1,...j})=>{let{isMobile:w}=(0,s.k)(),{popupClickHandler:y}=(0,d.useModal)(),N=w?{}:{backgroundImage:`url(${"https://www.bankboubyan.com"+u})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"right"};return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:(0,o.cn)("lg:h-[820px] overflow-hidden relative z-10 ",x?"":"lg:mb-spacing-9 ",w?"bg-surface-default":"bg-surface-tertiary"),style:N,...j,children:(0,l.jsx)(i.A,{classname:(0,o.cn)("lg:h-[820px] flex items-center rtl:justify-end overflow-hidden  lg:pt-0 lg:pb-0"),children:(0,l.jsxs)("div",{className:" lg:w-[550px]",children:[a&&(0,l.jsx)(r.PY1.h4,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:300,damping:60,delay:.3},className:"text-label-tertiary font-light text-font-size-h4 leading-font-line-height-h4  relative  ",children:a}),(0,l.jsx)(n.A,{title:e,as:b?"h1":"h2",className:"font-bold text-font-size-h1 leading-font-line-height-h1 lg:my-spacing-4 mt-spacing-2 mb-spacing-4 relative "}),(0,l.jsx)(r.PY1.p,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:300,damping:60,delay:.6},className:"text-label-tertiary font-light text-font-size-h5 leading-font-line-height-h5 mb-spacing-5 relative",children:t}),m&&(0,l.jsx)(r.PY1.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{type:"spring",stiffness:300,damping:60,delay:.7},children:(0,l.jsx)(c.$,{variant:g,color:p,onClick:h?void 0:()=>{f[0]&&y(f[0])},href:h,children:m})})]})})})})}},67154:(e,a,t)=>{"use strict";t.d(a,{default:()=>n});var l=t(95155),i=t(31013),r=t(21544),s=t(36341);t(12115);let n=({title:e,description:a,icon:t,icon_color:n,...c})=>(0,l.jsxs)("div",{className:"md:w-[255px] md:-[264px] w-[342px] h-auto bg-surface-tertiary rounded-3xl ",...c,children:[(0,l.jsx)("div",{className:"pb-[16px] flex justify-center",children:(0,l.jsx)("div",{className:" text-center",children:(0,l.jsx)(s.default,{type:"image",src:t,alt:`${e}-pic`,height:128,width:200,style:{maxWidth:"none"},classname:"lg:mb-6",IsApiFromData:!0})})}),(0,l.jsxs)("div",{className:"px-[24px] pb-[24px] text-center",children:[(0,l.jsx)(i.default,{variant:"h5",weight:"medium",color:"secondary",align:"center",className:"pb-[8px]",children:e}),(0,l.jsx)(i.default,{variant:"h6",weight:"light",color:"secondary",align:"center",className:"text-sm",as:"div",children:(0,l.jsxs)("span",{children:[" ",(0,r.Q)(a)]})})]})]})},67586:(e,a,t)=>{"use strict";t.d(a,{default:()=>h});var l=t(95155),i=t(27003),r=t(12115),s=t(61792),n=t(12185),c=t(31013),d=t(19658),o=t(9751),u=t(98500),m=t.n(u);let h=({image:e,title:a,description:t,link:u})=>{let{isMobile:h}=(0,i.k)(),g=(0,r.useRef)(null),p=(0,s.W)(g,{once:!0}),x={backgroundImage:`url(${"https://www.bankboubyan.com"+e})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"};return(0,l.jsx)(m(),{href:u||"",children:(0,l.jsxs)(n.P.div,{initial:"rest",whileHover:"active",animate:h?p?"active":"rest":void 0,ref:g,style:x,className:"flex relative flex-col lg:rounded-container-large rounded-container-small overflow-hidden  justify-end  items-start lg:h-[537px] h-[342px] p-spacing-3 lg:p-spacing-6",children:[(0,l.jsxs)("div",{className:"ms-spacing-4 z-20 relative lg:m-0 max-w-[486px]",children:[(0,l.jsx)(c.default,{variant:"h2",weight:"medium",color:"default",className:"mb-spacing-2",children:a}),(0,l.jsx)(c.default,{variant:"h4",color:"default",className:"mb-spacing-2",children:t}),u&&(0,l.jsx)(n.P.div,{variants:{rest:{opacity:0,height:0,y:10,pointerEvents:"none",transition:{duration:.3,ease:"easeIn"}},active:{opacity:1,height:"auto",y:0,pointerEvents:"auto",transition:{duration:.4,ease:"easeOut"}}},className:"relative w-full",children:(0,l.jsx)(d.$,{icon:!0,color:"white",size:"large",href:u,onClick:()=>{},className:"mb-4",children:(0,l.jsx)(o.A,{size:32,strokeWidth:1.5})})})]}),(0,l.jsx)(n.P.div,{className:"absolute z-10 inset-0",style:{background:"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7777704831932774) 100%)"}})]})})}},69200:(e,a,t)=>{"use strict";t.d(a,{A:()=>l});let l={src:"/_next/static/media/instagram.1f5b2273.svg",height:32,width:32,blurWidth:0,blurHeight:0}},69954:(e,a,t)=>{"use strict";t.d(a,{default:()=>b});
7var l=t(95155),i=t(12115),r=t(61792),s=t(25354),n=t(31013),c=t(21544),d=t(25664),o=t(91256),u=t(36341),m=t(19658),h=t(82638);let g=({PluginName:e,icon:a,title:t,background_color:d="default",image_alt_text:m,image_defaut_alt_text:g,...p})=>{let x=(0,i.useRef)(null),f=(0,r.W)(x,{once:!0}),v="linear-gradient(40deg, #CB102E 0.87%, #8CA0BE 66.4%)",b="gradient"!==d?(0,h.$K)(d):v;return(0,l.jsxs)(s.PY1.div,{ref:x,initial:{opacity:0,y:40},animate:{opacity:+!!f,y:40*!f},transition:{type:"spring",stiffness:300,damping:60,delay:.1},className:"flex",...p,children:[(0,l.jsx)("div",{style:b===v?{background:b}:{},className:(0,o.cn)("w-[48px] h-[48px] flex flex-none justify-center items-center rounded-full",b!==v&&b),children:(0,l.jsx)(u.default,{type:"image",src:a,alt:m||g,width:24,height:24,responsiveHeight:"rounded-full",IsApiFromData:!0})}),(0,l.jsx)("div",{className:"ms-spacing-4 flex items-center",children:(0,l.jsx)(n.default,{variant:"h6",color:"secondary",weight:"medium",as:"div",children:(0,c.Q)(t)})})]})};var p=t(27003),x=t(59016),f=t(98223),v=t(32035);let b=({title:e,image_alt_text:a,image_defaut_alt_text:t,description:b,pretitle_text:j,pretitle_logo:w,image:y,first_button_label:N,second_button_label:C,first_button_link:k,second_button_link:A,background_color:D,is_dark:M,is_reversed:_,is_rounded_image:$,first_button_variant:P,second_button_variant:L,first_button_color:S,second_button_color:E,is_mobile_image_hidden:R=!0,is_bullet_image_middle:I=!1,imageWidth:F,imageheight:B,childrenData:T,className:z,overrideClass:H,classNameButton:W,fontType:V,descVariant:O,isHash:Z=!1,HashLink:q,descClass:U,sectionAnchorId:Y,isH1:K=!1,...G})=>{let Q=(0,i.useRef)(null),X=(0,r.W)(Q,{once:!0}),J=(0,i.useRef)(!1),{popupClickHandler:ee,openModal:ea}=(0,d.useModal)(),{isMobile:et}=(0,p.k)(),el=et&&R,ei="transparent"===D||"default"===D,er=M??(0,h.cy)(D),es=T?.filter(e=>"BulletPlugin"===e.PluginName),en=es?.length>0,ec=T?.filter(e=>e.PluginName.toLowerCase().includes("popup")).reverse(),[ed]=(0,i.useState)(!k&&ec?.length?ec.pop():null),[eo]=(0,i.useState)(!A&&ec?.length?ec.pop():null),eu=T?.find(e=>e?.PluginName==="DynamicFormPluginPublisher"),em=T?.find(e=>e?.PluginName==="GroupPDF"),eh=e=>{if(e)try{window.location.assign(e)}catch(t){let a=document.createElement("a");a.href=e,a.target="_self",document.body.appendChild(a),a.click(),document.body.removeChild(a)}},eg=e=>{if(!e)return!1;let a=e.toLowerCase();return a.endsWith(".pdf")||a.startsWith("/media/")||a.includes("/media/filer_public/")||a.startsWith("/filer_public/")||a.startsWith("/files/")||a.startsWith("/uploads/")||a.startsWith("/static/")||a.startsWith("/documents/")};(0,i.useEffect)(()=>{if(!Y||!ed)return;let e=()=>{let e=decodeURIComponent(window.location.hash.replace("#","")).trim();if(!e||e!==Y||J.current)return;J.current=!0;let a=window.setTimeout(()=>{ee(ed),window.setTimeout(()=>{let e=`${window.location.pathname}${window.location.search}`;window.history.replaceState(null,"",e),J.current=!1},50)},250);return()=>{window.clearTimeout(a)}},a=e();return window.addEventListener("hashchange",e),()=>{"function"==typeof a&&a(),window.removeEventListener("hashchange",e)}},[ed,ee,Y]);let ep=({className:e})=>
7(0,l.jsx)("div",{className:(0,o.cn)("flex flex-1 min-w-0 w-full",$&&"lg:rounded-container-large rounded-container-small overflow-hidden",e),children:(0,l.jsx)(u.default,{src:y,alt:a||t,type:"image",...en&&I?{width:et?342:570,height:et?342:600,classname:"size-full",mediaClassName:"object-cover lg:min-h-[600px] lg:w-[570px] h-[342px] size-full"}:{width:F||570,height:B||548,classname:"size-full",mediaClassName:"object-cover lg:min-h-[548px] lg:w-[570px] h-[342px] size-full",overrideClass:H},IsApiFromData:!0})});return(0,l.jsxs)(s.PY1.div,{...G,ref:Q,initial:{opacity:0,y:80},animate:{opacity:+!!X,y:50*!X},transition:{type:"spring",stiffness:300,damping:60},className:(0,o.cn)("flex overflow-hidden rounded-container-small lg:rounded-container-large w-full lg:justify-center lg:items-stretch",(0,h.$K)(D),"flex-col lg:flex-row",z,er&&"cursor-light"),children:[(0,l.jsx)("div",{className:(0,o.cn)("flex max-lg:flex-1 lg:w-[490px] flex-col min-w-0 lg:mx-spacing-7 lg:my-spacing-5",_&&"order-last",!ei&&"m-spacing-5"),children:(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-col size-full justify-center",U),children:[(0,l.jsxs)("div",{className:(0,o.cn)("mb-spacing-4 lg:mb-spacing-5",er&&"dark"),children:[w&&(0,l.jsx)(u.default,{src:w,alt:e,type:"image",width:et?115:172,height:36,IsApiFromData:!0}),j&&(0,l.jsx)(n.default,{variant:"h4",color:"tertiary",as:"div",children:(0,c.Q)(j)})]}),(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-col gap-spacing-2 editor--overide ",er&&"dark"),children:[(0,l.jsx)(n.default,{variant:"h2",color:"secondary",weight:V,as:K?"h1":"h2",children:e}),b&&(0,l.jsx)(n.default,{variant:O||"h5",color:"tertiary",as:"div",children:(0,c.Q)(b)})]}),!el&&en&&I&&et&&(0,l.jsx)(ep,{className:"mt-spacing-6 mb-spacing-2"}),en&&(0,l.jsx)("div",{className:(0,o.cn)("flex flex-col gap-spacing-2 lg:gap-spacing-4 mt-spacing-5",er&&"dark"),children:es.map((e,a)=>(0,i.createElement)(g,{...e.data,...e.variant,key:`bullet-${a}`}))}
7),(N||C)&&(0,l.jsxs)("div",{className:"flex flex-wrap w-full gap-spacing-3 mt-spacing-5",children:[N&&(()=>{if(!k&&eu&&eu?.data?.display_mode==="modal"){let e=(0,l.jsx)(m.$,{className:W,variant:P,color:S,type:"button",children:N});return(0,l.jsx)(v.default,{pluginData:eu,displayMode:"modal",modalTrigger:e})}return k&&eg(k)?(0,l.jsx)(f.A,{url:k,download:!0,prefetch:!1,children:(0,l.jsx)(m.$,{className:W,variant:P,color:S,type:"button",children:N})}):(0,l.jsx)(m.$,{onClick:ed?()=>ee(ed):()=>eh(k),className:W,variant:P,color:S,children:N})})(),C&&Z&&(0,l.jsx)("a",{className:W,href:q,children:C}),C&&!Z&&(A&&eg(A)?(0,l.jsx)(f.A,{url:A,download:!0,prefetch:!1,children:(0,l.jsx)(m.$,{className:W,variant:L,color:E,type:"button",children:C})}):!A&&em?(0,l.jsx)(m.$,{className:W,variant:L,color:E,type:"button",onClick:()=>{ea?.({title:em?.data?.title||C||"Documents",content:(0,l.jsx)(x.A,{modalType:"grouppdf",data:em}),closeButtonClass:"relative w-full block text-end lg:pt-spacing-5 pt-spacing-2 lg:px-spacing-7 px-spacing-5",iswhiteModal:!1,className:"overflow-visible"})},children:C}):(0,l.jsx)(m.$,{className:W,onClick:eo?()=>ee(eo):()=>eh(A),variant:L,color:E,children:C}))]})]})}),!el&&(!en||!I||!et)&&(0,l.jsx)(ep,{className:"max-lg:order-first"})]})}},69974:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>x});var l=t(95155),i=t(27003),r=t(12115),s=t(61792),n=t(25354),c=t(59610),d=t(91256),o=t(98500),u=t.n(o),m=t(36341),h=t(82638),g=t(15767),p=t(31013);let x=({title:e,description:a,image:t,date:o,avatar:x,author:f,link:v,badge_label:b,background_color:j,className:w,image_alt_text:y,image_defaut_alt_text:N})=>{let{isMobile:C}=(0,i.k)(),k=(0,r.useRef)(null),A=(0,s.W)(k,{once:!0}),D=(0,c.k)(),M=!!f;return(0,l.jsx)(n.PY1.div,{ref:k,id:"CarouselCard",...D,initial:{opacity:0,y:50},animate:{opacity:+!!A,y:50*!A},transition:{type:"spring",stiffness:300,damping:60},className:(0,d.cn)("flex cursor-none p-spacing-0 w-[304px] lg:w-[451px] h-full flex-col group rounded-radius-4 lg:rounded-radius-5 relative overflow-hidden",w),children:(0,l.jsxs)(u(),{href:v||"",className:"w-full block cursor-none text-font-size-h6","aria-label":`Read more about ${e}`,prefetch:!1,children:[(0,l.jsx)(m.default,{type:"image",src:t,IsApiFromData:!0,alt:y||N,width:C?304:451,height:C?227:338,classname:"relative overflow-hidden lg:h-[338px] h-[227px] group-hover:scale-110 transition-all duration-300 ease-in-out",mediaClassName:"object-cover"}),(0,l.jsxs)("div",{className:(0,d.cn)("p-spacing-5 lg:p-spacing-6 relative h-full",(0,h.$K)(j||(M?"tertiary":"default"))),children:[(o||b)&&(0,l.jsxs)("div",{className:"flex gap-spacing-2 mb-spacing-4",children:[b&&(0,l.jsx)(g.A,{label:b,tertiary:!0}),(0,l.jsx)("h6",{className:"text-label-placeholder border-0 text-font-size-h6 font-light",children:o})]}),e&&(0,l.jsx)(p.default,{variant:M?"h5":"h4",color:"secondary",weight:"medium",children:e}),a&&(0,l.jsx)(p.default,{variant:"h6",weight:"normal",color:"tertiary",className:"mt-spacing-2  ",children:a}),M&&(0,l.jsxs)("div",{className:"flex items-center mt-[28px]",children:[(0,l.jsx)(m.default,{type:"image",src:x,alt:f||"Avatar of user",width:40,height:40,lazy:!0,sizes:"40",IsApiFromData:!0,classname:"rounded-full overflow-hidden"}),(0,l.jsx)("h6",{className:"ms-4 text-font-size-h7 text-label-tertiary",children:f})]})]})]})})}},69984:(e,a,t)=>{"use strict";t.d(a,{A:()=>i});var l=t(12115);let i=()=>{let[e,a]=(0,l.useState)([0,0]);return(0,l.useEffect)(()=>{let e=()=>{a([window.innerWidth,window.innerHeight])};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},73944:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155);t(12115);var i=t(36341),r=t(31013),s=t(98500),n=t.n(s),c=t(91256),d=t(62094),o=t(21544);let u=({title:e,icon:a,subtitle:t,description:s,link:u,hasBorder:m=!1,alt:h})=>{let{lang:g}=(0,d.useLang)();return(0,l.jsxs)("div",{className:`flex flex-col ${m?"border-border-tertiary border":""} bg-surface-tertiary rounded-container-large p-spacing-5 lg:p-spacing-6 justify-start lg:w-[364px] w-[100%]`,children:[(0,l.jsxs)("div",{className:"flex flex-row justify-between items-start pb-4",children:[a&&(0,l.jsx)("div",{className:"flex bg-surface-default justify-center items-center rounded-full w-[72px] h-[72px] object-cover overflow-hidden",children:(0,l.jsx)(i.default,{alt:h,type:"image",src:a,width:72,height:72,IsApiFromData:!0}
7)}),!a&&(0,l.jsx)(r.default,{weight:"medium",variant:"h4",color:"secondary",children:e}),u&&(0,l.jsx)(n(),{rel:"nofollow",target:"_blank",href:u,className:(0,c.cn)("ar"==g&&"rotate-180"),prefetch:!1,children:(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4255 4.84222C12.7428 4.52492 13.2572 4.52492 13.5745 4.84222L21.1579 12.4256C21.4752 12.7429 21.4752 13.2573 21.1579 13.5746L13.5745 21.1579C13.2572 21.4752 12.7428 21.4752 12.4255 21.1579C12.1082 20.8406 12.1082 20.3262 12.4255 20.0089L18.6218 13.8126H5.41669C4.96796 13.8126 4.60419 13.4488 4.60419 13.0001C4.60419 12.5513 4.96796 12.1876 5.41669 12.1876H18.6218L12.4255 5.99127C12.1082 5.67397 12.1082 5.15952 12.4255 4.84222Z",fill:"#323232"})})})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-2 editor--overide",children:[a&&(0,l.jsx)(r.default,{weight:"ar"===g?"bold":"medium",variant:"h4",color:"secondary",children:e}),(0,l.jsx)(r.default,{weight:"ar"===g?"bold":"medium",variant:"h6",color:"tertiary",children:t}),(0,l.jsx)("div",{className:"editor--overide ",children:(0,o.Q)(s)||""})]})]})}},75500:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(75751),r=t(98223),s=t(31013),n=t(25664),c=t(32133);let d=({card:e})=>(Array.from({length:3}),(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-6",children:[(0,l.jsx)(s.default,{color:"secondary",weight:"light",variant:"h3",children:e?.folder}),(0,l.jsx)("div",{className:"",children:e?.files?.map((a,t)=>(0,l.jsx)(c.A,{index:t,lastCard:(e?.files||[]).length-1===t,roundedLast:!0,card:a,mobilePopUp:!0},t))})]})})})),o=({card:e,havePopUp:a,icon:t="arrow"})=>{let{openModal:i}=(0,n.useModal)();return(0,l.jsx)("div",{className:"bg-surface-tertiary lg:h-[96px] flex items-center px-spacing-5 py-spacing-5 lg:py-0 lg:px-spacing-6 first:rounded-t-container-small last:rounded-b-container-small mb-[1px] lg:rounded-container-large lg:first:rounded-t-container-large lg:last:rounded-b-container-large",children:(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"min-w-[24px] min-h-[32px] me-spacing-4 self-center",children:(0,l.jsxs)("svg",{width:"26",height:"33",viewBox:"0 0 26 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{id:"Pdf Icon",children:[(0,l.jsx)("path",{id:"Vector",d:"M24.9295 7.36575V29.8C24.9295 31.5673 23.4968 33 21.7295 33H4.12968C2.36237 33 0.929688 31.5673 0.929688 29.8V4.2C0.929688 2.43269 2.36238 1 4.12969 1H17.999L24.9295 7.36575Z",fill:"#C8102E"}),(0,l.jsx)("path",{id:"Icon",d:"M16.9888 22.5708C16.1903 22.5708 15.1911 22.7101 14.8642 22.7591C13.5111 21.3461 13.1262 20.543 13.0396 20.3289C13.1569 20.0274 13.5652 18.882 13.6232 17.411C13.6518 16.6745 13.4963 16.1242 13.1607 15.7753C12.8257 15.427 12.4202 15.4 12.304 15.4C11.8963 15.4 11.2123 15.6061 11.2123 16.9867C11.2123 18.1846 11.7708 19.4557 11.9252 19.7841C11.1118 22.1524 10.2386 23.7737 10.0531 24.1071C6.78476 25.3377 6.52917 26.5275 6.52917 26.8647C6.52917 27.4707 6.96074 27.8325 7.68361 27.8325C9.43989 27.8325 11.0426 24.8839 11.3076 24.3719C12.555 23.8748 14.2245 23.567 14.649 23.4935C15.8664 24.6532 17.2743 24.9626 17.859 24.9626C18.2989 24.9626 19.3291 24.9626 19.3291 23.9034C19.3292 22.9198 18.0685 22.5708 16.9888 22.5708ZM16.9042 23.2662C17.8528 23.2662 18.1035 23.5799 18.1035 23.7458C18.1035 23.8499 18.064 24.1895 17.5555 24.1895C17.0995 24.1895 16.3123 23.926 15.5377 23.3542C15.8607 23.3117 16.3387 23.2662 16.9042 23.2662ZM12.2542 16.074C12.3407 16.074 12.3976 16.1018 12.4446 16.1669C12.7174 16.5455 12.4974 17.7825 12.2296 18.7506C11.9712 17.9205 11.7772 16.6469 12.0501 16.1988C12.1035 16.1114 12.1644 16.074 12.2542 16.074ZM11.7934 23.4837C12.1369 22.7898 12.5218 21.7786 12.7315 21.2067C13.1511 21.909 13.7155 22.5611 14.0419 22.9146C13.0256 23.1289 12.2567 23.3429 11.7934 23.4837ZM7.21141 26.9573C7.18879 26.9305 7.18544 26.8739 7.2025 26.806C7.23825 26.6636 7.51151 25.9581 9.48796 25.074C9.20495 25.5198 8.76253 26.1567 8.2765 26.6325C7.93437 26.9528 7.66796 27.1152 7.48467 27.1152C7.41911 27.1152 7.32876 27.0973 7.21141 26.9573Z",fill:"white"}
7),(0,l.jsx)("g",{id:"Vector_2",filter:"url(#filter0_d_15489_1358)",children:(0,l.jsx)("path",{d:"M24.9284 7.36575H18.7979C18.3561 7.36575 17.9979 7.00758 17.9979 6.56575V1L24.9284 7.36575Z",fill:"#FECDCA"})})]}),(0,l.jsx)("defs",{children:(0,l.jsxs)("filter",{id:"filter0_d_15489_1358",x:"15.5979",y:"0.2",width:"10.1305",height:"9.56572",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,l.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,l.jsx)("feOffset",{dx:"-0.8",dy:"0.8"}),(0,l.jsx)("feGaussianBlur",{stdDeviation:"0.8"}),(0,l.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,l.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,l.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_15489_1358"}),(0,l.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_15489_1358",result:"shape"})]})})]})}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(s.default,{variant:"h5",weight:"light",className:"!text-[#000]",children:e?.folder})})]})}),(0,l.jsx)("div",{className:"ms-spacing-4 self-center",children:a?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("a",{onClick:()=>{i({content:(0,l.jsx)(d,{card:e}),showCloseButton:!0,closeButtonClass:"relative w-full block text-end  pt-3  lg:px-spacing-5 px-spacing-5"})},children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rtl:rotate-[270deg] cursor-pointer",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.A,{url:e?.data?.book,target:"_blank",prefetch:!1,children:"arrow"===t?(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rtl:rotate-[270deg]",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]}):(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9.5C16.2761 9.5 16.5 9.72386 16.5 10V16.7929L18.9798 14.3131C19.175 14.1179 19.4916 14.1179 19.6869 14.3131C19.8821 14.5084 19.8821 14.825 19.6869 15.0202L16.3536 18.3536C16.1583 18.5488 15.8417 18.5488 15.6464 18.3536L12.3131 15.0202C12.1179 14.825 12.1179 14.5084 12.3131 14.3131C12.5084 14.1179 12.825 14.1179 13.0202 14.3131L15.5 16.7929V10C15.5 9.72386 15.7239 9.5 16 9.5ZM10 17.5C10.2761 17.5 10.5 17.7239 10.5 18V18.8C10.5 19.3683 10.5004 19.7645 10.5256 20.0729C10.5503 20.3755 10.5964 20.5493 10.6635 20.681C10.8073 20.9632 11.0368 21.1927 11.319 21.3365C11.4507 21.4036 11.6245 21.4497 11.9271 21.4744C12.2355 21.4996 12.6317 21.5 13.2 21.5H18.8C19.3683 21.5 19.7645 21.4996 20.0729 21.4744C20.3755 21.4497 20.5493 21.4036 20.681 21.3365C20.9632 21.1927 21.1927 20.9632 21.3365 20.681C21.4036 20.5493 21.4497 20.3755 21.4744 20.0729C21.4996 19.7645 21.5 19.3683 21.5 18.8V18C21.5 17.7239 21.7239 17.5 22 17.5C22.2761 17.5 22.5 17.7239 22.5 18V18.8214C22.5 19.3633 22.5 19.8004 22.4711 20.1543C22.4413 20.5187 22.3784 20.8388 22.2275 21.135C21.9878 21.6054 21.6054 21.9878 21.135 22.2275C20.8388 22.3784 20.5187 22.4413 20.1543 22.4711C19.8004 22.5 19.3633 22.5 18.8214 22.5H13.1786C12.6367 22.5 12.1996 22.5 11.8457 22.4711C11.4813 22.4413 11.1612 22.3784 10.865 22.2275C10.3946 21.9878 10.0122 21.6054 9.77248 21.135C9.62159 20.8388 9.55868 20.5187 9.52891 20.1543C9.49999 19.8004 9.5 19.3633 9.5 18.8214L9.5 18C9.5 17.7239 9.72386 17.5 10 17.5Z",fill:"#323232"})]})})})})]})})},u=({childrenData:e,data:a,variant:t})=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.default,{title:a?.title,de
7scription:a?.description,title_color:"secondary",description_color:"tertiary",className:"flex-col-reverse gap-spacing-1 mb-spacing-5 lg:mb-spacing-7",isH1:!0,titleClassName:"mb-[4px]",descriptionClassName:"!text-center"}),(0,l.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 lg:gap-spacing-7",children:e[0].data.childrenData.map((e,a)=>(0,l.jsx)(o,{card:e,havePopUp:e.files.length>0},`${a}-${e?.folder}`))})]})},76666:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(75751),r=t(27003),s=t(31013),n=t(36341),c=t(91256);let d=({title:e,description:a,image:t,color:i})=>{let{isMobile:d}=(0,r.k)();return(0,l.jsxs)("div",{className:(0,c.cn)("flex flex-row size-full justify-between items-center lg:items-start lg:flex-col gap-spacing-4 px-spacing-4 py-spacing-5 lg:gap-spacing-5 lg:px-spacing-6 lg:py-spacing-7 rounded-container-small lg:rounded-container-large",i),children:[(0,l.jsx)("div",{className:"min-w-[64px]",children:(0,l.jsx)(n.default,{type:"image",src:t,width:d?64:88,height:d?64:88,alt:`${e}-pic`,IsApiFromData:!0})}),(0,l.jsxs)("div",{className:"w-full",children:[(0,l.jsx)(s.default,{variant:"h4",color:"default",weight:"medium",children:e}),(0,l.jsx)(s.default,{variant:"h5",color:"default",weight:"light",children:a})]})]})},o=({title:e,description:a,childrenData:t})=>{let r=["bg-secondary-violet-100","bg-secondary-turquoise-100","bg-secondary-blue-100","bg-secondary-purple-100"];return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center gap-spacing-5 lg:gap-spacing-7 w-full",children:[(0,l.jsx)(i.default,{title:e,description:a,title_color:"secondary",description_color:"tertiary"}),(0,l.jsx)("div",{className:"flex flex-col lg:grid lg:grid-cols-2 gap-spacing-5 lg:gap-spacing-7 items-center justify-center size-full",children:t?.map((e,a)=>(0,l.jsx)(d,{...e.data,color:e.data.color??r[a%4]},"bc"+a))})]})}},76915:(e,a,t)=>{"use strict";t.d(a,{default:()=>u});var l=t(95155),i=t(12115),r=t(61792),s=t(25354),n=t(29722),c=t(36341),d=t(27003);let o={type:"spring",stiffness:300,damping:60},u=({data:e,childrenData:a,isH1:t=!1})=>{let{isMobile:u}=(0,d.k)(),m=(0,i.useRef)(null),h=(0,r.W)(m,{once:!0}),g=t?s.PY1.h1:s.PY1.h2;return(0,l.jsx)("div",{className:"bg-surface-default sm:px-spacing-5 py-spacing-3 md:p-spacing-5 lg:h-[864px] h-[734px]",children:(0,l.jsx)("div",{className:"container h-full md:px-0 px-spacing-5 py-sections-padding-1 lg:py-sections-padding-2",children:(0,l.jsxs)("div",{ref:m,className:"h-full relative flex justify-center items-center",children:[(0,l.jsx)(s.PY1.div,{initial:{opacity:0,y:50},animate:{opacity:+!!h,y:50*!h},transition:{...o,delay:.2},children:(0,l.jsx)(c.default,{type:"image",width:u?263:550,height:u?344:720,src:e?.image,alt:"figure",IsApiFromData:!0})}),(0,l.jsx)("div",{className:"absolute top-0 start-0 w-full h-full",children:(0,l.jsxs)("div",{className:"flex justify-between h-full",children:[(0,l.jsxs)("div",{className:"flex flex-col justify-between h-full",children:[(0,l.jsx)("div",{className:"lg:max-w-[550px] max-w-[342px] lg:max-h-[216px] max-h-[300]",children:(0,l.jsx)(g,{initial:{opacity:0,x:100},animate:{opacity:+!!h,x:100*!h},transition:{...o,delay:.4},className:(0,n.A)("text-font-size-h1 relative font-bold text-neutral-white100 bg-clip-text bg-gradient-to-r from-[#806827] to-[#E4C189]"),style:{color:"transparent"},children:e?.title})}),(0,l.jsx)("div",{className:"bottom-desc",children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsxs)("div",{className:"lg:w-[255px] lg:h-[64px] h-[90px] lg:max-w-max max-w-[111px]",children:[(0,l.jsx)(s.PY1.h4,{initial:{opacity:0,x:100},animate:{opacity:+!!h,x:100*!h},transition:{...o,delay:.4},className:(0,n.A)("text-label-placeholder relative font-light text-font-size-h4"),children:e?.caption}),(0,l.jsx)("div",{className:"bg-private-primary h-[1px] w-[58px] my-spacing-5 lg:my-spacing-7"})]}),(0,l.jsx)("div",{className:"lg:hidden block max-w-[174px]",children:(0,l.jsx)(s.PY1.h4,{initial:{opacity:0,x:100},animate:{opacity:+!!h,x:100*!h},transition:{...o,delay:.4},className:(0,n.A)("text-label-placeholder font-light text-font-size-h4"),children:e?.description})})]})})]}),(0,l.jsx)("div",{className:"lg:w-[255px] lg:flex hidden relative lg:h-[140px] w-full h-full self
7-end lg:self-center overflow-hidden",children:(0,l.jsx)(s.PY1.h4,{initial:{opacity:0,x:100},animate:{opacity:+!!h,x:100*!h},transition:{...o,delay:.4},className:(0,n.A)("text-label-placeholder font-light text-font-size-h4"),children:e?.description})})]})})]})})})}},77086:(e,a,t)=>{"use strict";t.d(a,{l:()=>r});let l=[2,1,6,3,7,9,10,5,8,4,2],i=/^\d{12}$/;function r(e){let a=String(e);if(!i.test(a))return!1;let t=[...a].map(e=>Number(e));return 11-l.reduce((e,a,l)=>e+t[l]*a,0)%11===t[11]}},77544:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155),i=t(12115),r=t(75751),s=t(9029),n=t(25354),c=t(27003),d=t(91256);let o=({first_row_cards:e=3,cards_per_row:a=3,card_height:t,title:o,description:u,title_color:m,description_color:h,cards:g,noPaddingBottom:p=!1})=>{let{isMobile:x}=(0,c.k)(),f=g?.slice(0,e),v=((e,a)=>{var t=[];for(let l=0;l<e.length;l+=a)t.push(e.slice(l,l+a));return t})(g?.slice(e),a),b=x?1:a;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:(0,d.cn)("flex flex-col gap-spacing-4 items-start lg:items-center ",p?"":"pb-spacing-7"),children:(0,l.jsx)(r.default,{className:"flex-col-reverse gap-between-text-1",title:o,description:u,title_color:m,description_color:h})}),x?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(n.PY1.div,{className:"grid grid-cols-1 lg:gap-spacing-5",initial:"hidden",whileInView:"visible",animate:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.1,staggerChildren:.2}}},children:g?.map((e,a)=>(0,i.createElement)(s.default,{...e.data,...e.variant,key:`mobile-${a}`,card_height:t}))})}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.PY1.div,{className:"lg:grid lg:gap-spacing-7",style:{gridTemplateColumns:`repeat(${x?1:e}, minmax(0, 1fr))`},initial:"hidden",whileInView:"visible",animate:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.1,staggerChildren:.2}}},children:f?.map((e,a)=>(0,i.createElement)(s.default,{...e.data,...e.variant,key:`first-${a}`,card_height:t}))}),v.map((e,a)=>(0,l.jsx)(n.PY1.div,{className:"lg:grid lg:gap-spacing-7 mt-spacing-7",style:{gridTemplateColumns:`repeat(${b}, minmax(0, 1fr))`},initial:"hidden",whileInView:"visible",animate:"visible",viewport:{once:!0},variants:{hidden:{},visible:{transition:{delay:.1,staggerChildren:.2}}},children:e.map((e,l)=>(0,i.createElement)(s.default,{...e.data,...e.variant,key:`row-${a}-${l}`,card_height:t}))},`row-${a}`))]})]})}},79753:(e,a,t)=>{"use strict";t.d(a,{default:()=>c});
7var l=t(95155),i=t(27003),r=t(36341),s=t(31013),n=t(19658);let c=({name:e,logo:a,bio:t,description:c,link:d,label:o,title_variant:u="h4",bio_variant:m="h5",title_weight:h="light",bio_weight:g="light",image_defaut_alt_text:p,image_alt_text:x})=>{let{isMobile:f}=(0,i.k)();return(0,l.jsxs)("div",{className:"flex justify-center flex-col",children:[(0,l.jsxs)("div",{className:"lg:flex lg:justify-center mb-spacing-4 flex-col lg:w-[900px] lg:self-center",children:[c&&(0,l.jsx)(s.default,{variant:f?"h4":"h5",weight:"light",color:"tertiary",align:"center",className:"mb-spacing-4 self-center lg:text-center",children:c}),(0,l.jsx)(r.default,{type:"image",src:a,width:f?64:88,height:f?64:88,IsApiFromData:!0,classname:" lg:m-auto",mediaClassName:"object-contain rounded-full",alt:x||p})]}),(0,l.jsxs)("div",{className:"lg:w-[900px] lg:self-center",children:[(0,l.jsx)(s.default,{variant:u,weight:h,color:"secondary",align:" lg:text-center",className:`${"h4"===u?"mb-spacing-2":"mb-spacing-4"}`,children:e}),(0,l.jsx)(s.default,{variant:m,weight:g,color:"tertiary",align:" lg:text-center",className:" mb-spacing-5 lg:mb-spacing-3",children:t}),o&&(0,l.jsx)("div",{className:"lg:flex justify-center",children:(0,l.jsx)(n.$,{variant:"primary",href:d,size:"large",color:"red",children:o})})]})]})}},80409:(e,a,t)=>{"use strict";t.d(a,{default:()=>m});var l=t(95155),i=t(12115),r=t(61792),s=t(12185),n=t(31966),c=t(90467),d=t(62094),o=t(91256),u=t(75751);let m=({title:e,description:a,title_color:t,className:m="",tabsClassName:h="",contentClassName:g="",titleClassName:p="",activeTabColor:x="text-label-secondary",inactiveTabColor:f="text-label-tertiary",indicatorColor:v="bg-functionalTab-border-active",borderColor:b="border-border-tertiary",containerTabs:j="",children:w})=>{let{lang:y}=(0,d.useLang)(),N=(0,i.useId)(),[C,k]=(0,i.useState)(0),[A,D]=(0,i.useState)({left:0,width:0}),M=(0,i.useRef)(null),_=(0,i.useRef)(null),$=(0,i.useRef)(!1),P=(0,r.W)(M,{once:!0,amount:.2}),L=(0,i.useMemo)(()=>i.Children.toArray(w).filter(e=>(0,i.isValidElement)(e)),[w]),S=(0,i.useMemo)(()=>L.map((e,a)=>({label:e.props["data-tab"],originalIndex:a})),[L]),E=L[C]??null,R=0===C,I=C===L.length-1,F=(0,i.useCallback)(e=>_.current?.querySelector(`[data-tab-index="${e}"]`)??null,[]),B=(0,i.useCallback)(()=>{let e=F(C);if(!e)return void D(e=>0===e.left&&0===e.width?e:{left:0,width:0});let a={left:e.offsetLeft,width:e.offsetWidth};D(e=>e.left===a.left&&e.width===a.width?e:a)},[C,F]);(0,i.useEffect)(()=>{0===L.length?k(0):k(e=>Math.min(e,L.length-1))},[L.length]),(0,i.useLayoutEffect)(()=>{B()},[C,y,S,B]),(0,i.useEffect)(()=>{let e=_.current,a=F(C);if(!e||!a||"u"<typeof ResizeObserver)return;let t=new ResizeObserver(()=>{B()});return t.observe(e),t.observe(a),()=>{t.disconnect()}},[C,F,B]),(0,i.useEffect)(()=>{if(!$.current)return;let e=F(C);e?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[C,F]);let T=(0,i.useCallback)(e=>{e<0||e>=L.length||($.current=!0,k(e))},[L.length]),z=(0,i.useCallback)(e=>{T("next"===e?C+1:C-1)},[C,T]),H=(0,i.useCallback)((e,a)=>{let t=null;switch(e.key){case"ArrowRight":t="ar"===y?a-1:a+1;break;case"ArrowLeft":t="ar"===y?a+1:a-1;break;case"Home":t=0;break;case"End":t=L.length-1;break;default:return}e.preventDefault();let l=Math.min(Math.max(t,0),L.length-1);T(l),F(l)?.focus()},[F,y,T,L.length]);return 0===L.length?null:(0,l.jsxs)("section",{className:(0,o.cn)("w-full",m),children:[e&&(0,l.jsx)(u.default,{title:e,description:a,className:p,title_color:t}),(0,l.jsxs)("div",{className:"group relative mx-auto flex w-fit max-w-full items-center",children:[(0,l.jsx)("button",{type:"button",onClick:()=>z("previous"),disabled:R,"aria-label":"ar"===y?"علامة التبويب السابقة":"Previous tab",className:(0,o.cn)("z-10 shrink-0 rounded-full bg-white/80 p-2","transition-opacity disabled:cursor-not-allowed disabled:opacity-30"),children:(0,l.jsx)(n.A,{"aria-hidden":"true",className:(0,o.cn)("h-6 w-6 text-gray-600","ar"===y&&"rotate-180")})}),(0,l.jsx)(s.P.div,{ref:M,initial:{opacity:0,y:50},animate:{opacity:+!!P,y:50*!P},className:"relative my-spacing-7 min-w-0 overflow-hidden",children:(0,l.jsx)("div",{className:"max-w-full overflow-x-auto scrollbar-hide",children:(0,l.jsxs)("div",{ref:_,role:"tablist","aria-label":e||void 0,dir:"ar"===y?"rtl":"ltr",className:(0,o.cn)("relative flex w-max gap-3 border-b-2",b,j),children:[S.map(e=>{let a=C===e.originalIndex,t=`${N}-tab-${e.originalIndex}`,i=`${N}-panel-${e.originalIndex}`;return(0,l.jsx)("button",{id:t,type:"button",role:"tab","data-tab-index":e.originalIndex,"aria-selected":a,"aria-controls":i,tabIndex:a?0:-1,onClick:()=>T(e.originalIndex),onKeyDown:a=>H(a,e.originalIndex),className:(0,o.cn)("shrink-0 whitespace-nowrap px-4 py-4 transition-colors",a?x:f,h),children:e.label},L[e.originalIndex]?.key??e.originalIndex)}),(0,l.jsx)("div",{"aria-hidden":"true",className:(0,o.cn)("pointer-events-none absolute -bottom-[2px] h-0.5",v),style:{left:A.left,width:A.width,transition:"left 300ms ease, width 300ms ease"}})]})})}),(0,l.jsx)("button",{type:"button",onClick:()=>z("next"),disabled:I,"aria-label":"ar"===y?"علامة التبويب التالية":"Next tab",className:(0,o.cn)("z-10 shrink-0 rounded-full bg-white/80 p-2","transition-opacity disabled:cursor-not-allowed disabled:opacity-30"),children:(0,l.jsx)(c.A,{"aria-hidden":"true",className:(0,o.cn)("h-6 w-6 text-gray-600","ar"===y&&"rotate-180")}
7)})]}),(0,l.jsx)(s.P.div,{id:`${N}-panel-${C}`,role:"tabpanel","aria-labelledby":`${N}-tab-${C}`,initial:{opacity:0,y:50},animate:{opacity:+!!P,y:50*!P},className:(0,o.cn)("relative tab-content",g),children:E})]})}},83564:(e,a,t)=>{"use strict";t.d(a,{default:()=>h});var l=t(95155),i=t(15767),r=t(12115),s=t(29722),n=t(27003),c=t(61792),d=t(25354),o=t(31013),u=t(59610),m=t(36341);let h=({title:e,link:a,badge_label:t,image:h,description:g,image_alt_text:p,image_defaut_alt_text:x})=>{let{isMobile:f}=(0,n.k)(),v=(0,r.useRef)(null),b=(0,c.W)(v,{once:!0}),j=(0,u.k)();return(0,l.jsx)(d.PY1.div,{ref:v,...j,id:"CarouselCard",initial:{opacity:0,y:50},animate:{opacity:+!!b,y:50*!b},transition:{type:"spring",stiffness:300,damping:60,delay:.4},className:(0,s.A)("flex justify-end lg:w-full overflow-hidden w-[304px] group cursor-none relative lg:rounded-3xl rounded-2xl"),children:(0,l.jsxs)(o.default,{variant:"a",color:"default",href:a,className:" w-full  cursor-none flex justify-center",children:[h&&(0,l.jsx)(m.default,{type:"image",src:h,IsApiFromData:!0,alt:p||x,width:f?304:451,height:f?451:669,classname:" group-hover:scale-110 transition-all duration-300 ease-in-out  ",mediaClassName:"object-fill"}),(0,l.jsxs)("div",{className:"bg-surface-default lg:max-w-[419px]  max-w-[272px] rounded-radius-2 lg:p-spacing-6 p-spacing-4 absolute bottom-4",children:[t&&(0,l.jsx)(i.A,{label:t,primary:!0}),e&&(0,l.jsx)(o.default,{variant:"h4",weight:"medium",color:"secondary",className:"mt-spacing-4",children:e}),g&&(0,l.jsx)(o.default,{variant:"h6",weight:"medium",color:"tertiary",className:"mt-spacing-2",children:g})]})]})})}},87295:e=>{function a(e){var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}a.keys=()=>[],a.resolve=a,a.id=87295,e.exports=a},88556:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var l=t(95155),i=t(62094),r=t(29722),s=t(12115);let n=({children:e,scrollDuration:a=60,numberOfSlides:t=3,classname:n,isReverse:c=!1})=>{let{lang:d}=(0,i.useLang)(),o=(0,s.useRef)(null),u=(0,s.useRef)(null),m=(0,s.useRef)(null),[h,g]=(0,s.useState)(0),[p,x]=(0,s.useState)(t),f=(0,s.useRef)(0),v=(0,s.useRef)(0),b=(0,s.useRef)(!1),j=(0,s.useRef)();(0,s.useEffect)(()=>{let e=()=>{x(window.innerWidth<=640?1:t)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t]),(0,s.useEffect)(()=>{o.current&&m.current&&g(3*Math.ceil(o.current.offsetWidth/m.current.offsetWidth))},[e,p]);let w=[...e].concat(Array(h).fill(null).map((a,t)=>e[t%e.length]));(0,s.useEffect)(()=>{if(!u.current||0===w.length)return;let e=o.current.offsetWidth/a,t=()=>{if(u.current){if(!b.current){let a=c?-1:1,t="ar"===d?-a:a;v.current-=e/60*t;let l=u.current.scrollWidth/2;v.current<=-l?v.current+=l:v.current>=0&&(v.current-=l),u.current.style.transform=`translateX(${v.current}px)`}j.current=requestAnimationFrame(t)}};return j.current=requestAnimationFrame(t),()=>{j.current&&cancelAnimationFrame(j.current)}},[w,a,c,d]);let y=e=>{b.current=!0,f.current=e},N=e=>{if(!b.current||!u.current)return;let a=e-f.current;v.current+=a,u.current.style.transform=`translateX(${v.current}px)`,f.current=e},C=()=>{b.current=!1};return(0,l.jsx)("div",{ref:o,onTouchStart:e=>y(e.touches[0].clientX),onTouchMove:e=>N(e.touches[0].clientX),onTouchEnd:()=>C(),onMouseDown:e=>y(e.clientX),onMouseMove:e=>N(e.clientX),onMouseUp:()=>C(),onMouseLeave:()=>C(),className:"relative overflow-hidden lg:[mask-image:_linear-gradient(to_right,transparent_0,_black_128px,_black_calc(100%-400px),transparent_100%)]",style:{width:"100%",position:"relative"},children:(0,l.jsx)("div",{ref:u,className:(0,r.A)("ar"===d?"flex-row-reverse":"flex","flex ",n),children:w.map((e,a)=>(0,l.jsx)("div",{ref:0===a?m:null,className:"relative",children:e},a))})})}},91155:(e,a,t)=>{"use strict";t.d(a,{default:()=>o});var l=t(95155);t(12115);var i=t(75751),r=t(98500),s=t.n(r),n=t(36341),c=t(19658),d=t(25664);let o=({title:e,description:a,button_label:t,button_link:r,childrenData:o,button_variant:u="primary",button_color:m="red"})=>{let{popupClickHandler:h}=(0,d.useModal)(),g=o?.filter(e=>"SocialItemNewPlugin"===e.PluginName),p=g?.length>0,x=o?.filter(e=>e.PluginName.toLowerCase().includes("popup"));return(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-6 items-center",children:[(0,l.jsx)(i.default,{title:e,description:a}),(0,l.jsx)("div",{className:"flex gap-spacing-6 flex-wrap",children:p&&g?.map((e,a)=>(0,l.jsx)(s(),{href:e.data.link,className:"rounded-full border border-border-secondary p-spacing-4",prefetch:!1,children:(0,l.jsx)(n.default,{src:e.data.icon,IsApiFromData:!0,alt:"social-item",type:"image",width:32,height:32,classname:"h-[32px] w-[32px]",responsiveHeight:"h-[32px] w-[32px] object-fit"})},"si"+a))}),t&&(0,l.jsx)("div",{className:"mt-spacing-8 lg:mb-0 mb-spacing-7",children:(0,l.jsx)(c.$,{onClick:()=>{x&&x[0]&&h(x[0])},variant:u,button_color:m,children:t})})]})}},91352:(e,a,t)=>{"use strict";t.d(a,{default:()=>h});
7var l=t(95155),i=t(59610),r=t(31013),s=t(36341),n=t(15767),c=t(27003),d=t(82638),o=t(91256),u=t(98500),m=t.n(u);t(12115);let h=({title:e,description:a,image:t,link:u,badge1_label:h,badge2_label:g,background_color:p,title_color:x="secondary",description_color:f="tertiary",className:v,fullWidth:b=!1,alt:j,...w})=>{let{isMobile:y}=(0,c.k)(),N=(0,i.k)(),C=u?N:void 0,k=(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:(0,o.cn)("flex flex-col gap-spacing-2",b&&"px-spacing-6 pt-spacing-6"),children:[(0,l.jsxs)("div",{className:"flex justify-start items-center gap-spacing-2  ",children:[h&&(0,l.jsx)(n.A,{label:h,tertiary:!0,bold:!1}),g&&(0,l.jsx)(n.A,{label:g,tertiary:!0,bold:!1})]}),(0,l.jsx)(r.default,{variant:"h4",color:x,children:e}),a&&(0,l.jsx)(r.default,{variant:"h6",color:f,children:a})]}),(0,l.jsx)("div",{className:"flex justify-center w-full grow",children:(0,l.jsx)(s.default,{type:"image",src:t,width:b?y?304:353:y?220:241,height:b?y?241:276:y?220:241,IsApiFromData:!0,alt:j,classname:"mt-auto",responsiveHeight:(0,o.cn)(b?"object-cover min-h-[250px] lg:min-h-[300px]":"object-contain h-[220px] lg:h-[244px]")})})]}),A=(0,o.cn)("flex flex-col max-w-full  gap-spacing-5 lg:gap-spacing-6 rounded-container-small min-h-full lg:rounded-container-large",!b&&"p-spacing-5 lg:p-spacing-6",u&&"cursor-none","lg:hover:scale-105 lg:transition-all lg:duration-200 ease-in-out",(0,d.$K)(p||(b?"default":"tertiary")),v);return u?(0,l.jsx)(m(),{...C,href:u,prefetch:!1,className:A,...w,children:k}):(0,l.jsx)("div",{className:A,...w,children:k})}},93231:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>y});var l=t(95155),i=t(39092),r=t.n(i),s=t(12115),n=t(29722),c=t(5772),d=t(30677),o=t(76673),u=t(1130),m=t(12185),h=t(27003),g=t(62094),p=t(86350),x=t(31013);let f={src:"/_next/static/media/arrow.c9092b1b.svg",height:17,width:17,blurWidth:0,blurHeight:0},v={src:"/_next/static/media/arrow-right.e06111b5.svg",height:32,width:32,blurWidth:0,blurHeight:0},b={src:"/_next/static/media/arrowdisabled.953d9647.svg",height:32,width:32,blurWidth:0,blurHeight:0};var j=t(91256),w=t(82638);let y=({children:e,title:a,background_color:t="secondary",is_dark:i,classItem:y,className:N,compactUntilDesktop:C=!1,slideContentClassName:k,spacingbtw:A})=>{let D=s.Children.toArray(e),M=(0,s.useRef)(null),[_,$]=(0,s.useState)(0),{isMobile:P,isDesktop:L}=(0,h.k)(),S=C?!L:P,{lang:E}=(0,g.useLang)(),R=i??(0,w.cy)(t),I=R?f:v,F=R?"bgprimarywhite":"bgprimarydark",[B,T]=(0,s.useState)(null),z=(0,s.useCallback)(e=>{M.current=e,$(e.realIndex??0)},[]),H=()=>{M.current&&(T("next"),M.current.slideNext())},W=()=>{M.current&&(T("prev"),M.current.slidePrev())},V={scaleX:{type:"spring",stiffness:300,damping:40},scaleY:{type:"spring",stiffness:300,damping:40},opacity:{type:"tween",ease:"easeOut",duration:.4},filter:{type:"tween",ease:"easeOut",duration:.4}},O=0===_,Z=_===D.length-1,q=S?"calc(100% - 56px)":"calc(100% - 305px)";return(0,l.jsxs)("div",{dir:"ar"===E?"rtl":"ltr",className:"jsx-80ad251caf53b5c8 "+((0,j.cn)("carousel-wrapper pb-0 lg:py-spacing-10 py-6 flex lg:flex-row flex-col lg:gap-[240px] lg:items-center size-full","ar"===E&&"rtl",N)||""),children:[(a||!S)&&(0,l.jsxs)("div",{className:"jsx-80ad251caf53b5c8 "+((0,n.A)("slider-title  max-lg:mb-spacing-5 max-w-[350px]")||""),children:[a&&(0,l.jsx)(x.default,{variant:"h2",className:"lg:w-[350px]",color:R?"default":"secondary",children:a}),(0,l.jsx)("div",{id:"Slideroption",className:"jsx-80ad251caf53b5c8 slideroption hidden lg:block relative z-30 my-spacing-5",children:(0,l.jsxs)("div",{className:"jsx-80ad251caf53b5c8 slider-action flex-row flex gap-spacing-5",children:[(0,l.jsx)(p.A,{size:"largerounded",colorvariant:F,type:"btncircleiconprimary",onClick:W,disabled:O,children:(0,l.jsx)(c.default,{src:O?b:I,alt:"Prev",width:30,height:30,className:(0,j.cn)("rotate-180 rtl:rotate-0"),style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)(p.A,{size:"largerounded",colorvariant:F,type:"btncircleiconprimary",onClick:H,disabled:Z,children:(0,l.jsx)(c.default,{src:Z?b:I,alt:"Next",width:30,height:30,className:(0,j.cn)("rotate-0 rtl:rotate-180"),style:{maxWidth:"100%",height:"auto"}})})]})})]}),(0,l.jsx)("div",{className:"jsx-80ad251caf53b5c8 "+((0,n.A)("relative size-full grid ")||""),children:(0,l.jsx)(d.RC,{onSwiper:z,onSlideChange:e=>{$(e.realIndex)},modules:[o.A,u.A],navigation:!1,slidesPerView:"auto",speed:800,spaceBetween:S?24:40,slidesOffsetBefore:0,dir:"ar"===E?"rtl":"ltr",slidesOffsetAfter:S?56:305,allowTouchMove:!0,touchEventsTarget:"container",simulateTouch:!0,touchRatio:1,slidesPerGroup:1,loop:!1,freeMode:!1,resistanceRatio:.85,observer:!0,observeParents:!0,watchSlidesProgress:!0,className:"size-full lg:overflow-hidden ",children:D.map((e,a)=>
7{let t=a===_?{initial:{scale:1,opacity:1,filter:"blur(0px)"},animate:{scale:1,opacity:1,filter:"blur(0px)"},exit:{scaleX:0,scaleY:.7,opacity:0,filter:"blur(4px)"}}:a<_?{initial:{scale:.7,opacity:0,filter:"blur(4px)"},animate:{scale:.7,opacity:0,filter:"blur(4px)"}}:{initial:{scale:.95,opacity:.9,filter:"blur(0px)"},animate:{scale:1,opacity:1,filter:"blur(0px)"}};return(0,l.jsx)(d.qr,{className:(0,j.cn)("relative items-start",y),children:(0,l.jsx)("div",{style:{width:"100%",minWidth:q,flexShrink:0,overflow:"hidden",display:"flex",justifyContent:"center",alignItems:"center"},className:"jsx-80ad251caf53b5c8 slide-anim-wrapper",children:(0,l.jsx)(m.P.div,{initial:t.initial,animate:t.animate,exit:t.exit,transition:V,style:{width:"100%",height:"100%",transformOrigin:"center"},children:(0,l.jsx)("div",{className:"jsx-80ad251caf53b5c8 "+((0,j.cn)("min-w-[304px] lg:min-w-[451px]",k)||""),children:e})})})},a)})},E)}),(0,l.jsxs)("div",{className:"jsx-80ad251caf53b5c8 slider-action mt-spacing-6 lg:hidden justify-start w-full flex flex-row gap-spacing-5",children:[(0,l.jsx)(p.A,{size:"mediumrounded",colorvariant:F,type:"btncircleiconprimary",onClick:W,disabled:O,children:(0,l.jsx)(c.default,{src:O?b:I,alt:"Prev",width:30,height:30,className:(0,j.cn)("rotate-180 rtl:rotate-0"),style:{maxWidth:"100%",height:"auto"}})}),(0,l.jsx)(p.A,{size:"mediumrounded",colorvariant:F,type:"btncircleiconprimary",onClick:H,disabled:Z,children:(0,l.jsx)(c.default,{src:Z?b:I,alt:"Next",width:30,height:30,className:(0,j.cn)("rotate-0 rtl:rotate-180"),style:{maxWidth:"100%",height:"auto"}})})]}),(0,l.jsx)(r(),{id:"80ad251caf53b5c8",children:".slide-anim-wrapper.jsx-80ad251caf53b5c8{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}"})]})}},95122:(e,a,t)=>{"use strict";var l=t(73888);l.t1.register(l.PP,l.kc,l.FN,l.No,l.E8,l.Bs,l.m_,l.s$,l.dN,l.hE)},95166:(e,a,t)=>{"use strict";t.d(a,{A:()=>n});var l=t(95155);t(12115);var i=t(29722),r=t(98500),s=t.n(r);let n=({type:e,size:a="medium",colorvariant:t,onClick:r,disabled:n=!1,isLink:c=!1,className:d="",children:o,href:u,btnType:m="button",weight:h="font-light",typeLink:g,...p})=>{let x={light:"font-light",medium:"font-medium",bold:"font-bold"},f=(0,i.A)("overflow-hidden",{btnsecondaryborder:"rounded-radius-6 py-spacing-3 px-spacing-4 inline-flex items-center justify-center font-medium text-font-size-h6",btncircleiconsecondaryborder:"rounded-full inline-flex item-center justify-center"}[e],{small:"min-h-[32px] h-[32px]",medium:"min-h-[40px] h-[40px]",large:"min-h-[48px]",largerounded:"p-spacing-4",mediumrounded:"p-spacing-3",smallrounded:"p-spacing-2"}[a],{bgsecondaryborder:"border-border-primary border text-label-primary hover:text-primary-hover hover:border-primary-hover active:border-border-primary disabled:bg-surface-disabled disabled:border-border-disabled disabled:cursor-not-allowed",bgsecondarydarkborder:"border-[#323232] border text-button-label-secondary hover:text-[#5B5B5B] hover:border-[#5B5B5B] active:border-[#000] disabled:bg-[#E8E8E8] disabled:border-[#E8E8E8] disabled:cursor-not-allowed",bgsecondarywhiteborder:"border-[#FFF] border text-button-label-default hover:border-[#D9D9D9] active:border-[#ADADAD] disabled:border-transparent disabled:cursor-not-allowed"}[t],x[h]??x.light,n?"cursor-not-allowed":"",d);return c?(0,l.jsx)(s(),{className:f,href:u,...p,prefetch:!1,children:o}):(0,l.jsx)("button",{className:f,onClick:r,disabled:n,type:m,...p,children:o})}},97530:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var l=t(95155),i=t(98223),r=t(31013),s=t(55006);let n=({card:e})=>{let a=Array.isArray(e?.childrenData)?e.childrenData:Array.isArray(e?.data?.childrenData)?e.data.childrenData:[];return(0,l.jsx)("div",{className:"px-spacing-5 lg:py-spacing-5 py-spacing-7 lg:px-spacing-7",children:(0,l.jsxs)("div",{className:"flex flex-col gap-spacing-6",children:[(0,l.jsx)(r.default,{color:"secondary",weight:"light",variant:"h3",children:e?.data?.title}),(0,l.jsx)("div",{children:a.map((e,t)=>(0,l.jsx)(s.A,{index:t,lastCard:a.length-1===t,roundedLast:!0,card:e,mobilePopUp:!0},`${t}-${e?.folder??e?.title??"pdf"}`))})]})})};var c=t(25664);let d=({card:e,havePopUp:a,icon:t="arrow"})=>{let{openModal:s}=(0,c.useModal)();return(0,l.jsx)("div",{className:"bg-surface-tertiary lg:h-[96px] flex items-center px-spacing-5 py-spacing-5 lg:py-0 lg:px-spacing-6 first:rounded-t-container-small last:rounded-b-container-small mb-[1px] lg:rounded-container-large lg:first:rounded-t-container-large lg:last:rounded-b-container-large",children:(0,l.jsxs)("div",{className:"flex justify-between w-full",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsxs)("div",{className:"flex justify-between",children:[(0,l.jsx)("div",{className:"min-w-[24px] min-h-[32px] me-spacing-4 self-center",children:(0,l.jsxs)("svg",{width:"26",height:"33",viewBox:"0 0 26 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsxs)("g",{id:"Pdf Icon",children:[(0,l.jsx)("path",{id:"Vector",d:"M24.9295 7.36575V29.8C24.9295 31.5673 23.4968 33 21.7295 33H4.12968C2.36237 33 0.929688 31.5673 0.929688 29.8V4.2C0.929688 2.43269 2.36238 1 4.12969 1H17.999L24.9295 7.36575Z",fill:"#C8102E"}),(0,l.jsx)("path",{id:"Icon",d:"M16.9888 22.5708C16.1903 22.5708 15.1911 22.7101 14.8642 22.7591C13.5111 21.3461 13.1262 20.543 13.0396 20.3289C13.1569 20.0274 13.5652 18.882 13.6232 17.411C13.6518 16.6745 13.4963 16.1242 13.1607 15.7753C12.8257 15.427 12.4202 15.4 12.304 15.4C11.8963 15.4 11.2123 15.6061 11.2123 16.9867C11.2123 18.1846 11.7708 19.4557 11.9252 19.7841C11.1118 22.1524 10.2386 23.7737 10.0531 24.1071C6.78476 25.3377 6.52917 26.5275 6.52917 26.8647C6.52917 27.4707 6.96074 27.8325 7.68361 27.8325C9.43989 27.8325 11.0426 24.8839 11.3076 24.3719C12.555 23.8748 14.2245 23.567 14.649 23.4935C15.8664 24.6532 17.2743 24.9626 17.859 24.9626C18.2989 24.9626 19.3291 24.9626 19.3291 23.9034C19.3292 22.9198 18.0685 22.5708 16.9888 22.5708ZM16.9042 23.2662C17.8528 23.2662 18.1035 23.5799 18.1035 23.7458C18.1035 23.8499 18.064 24.1895 17.5555 24.1895C17.0995 24.1895 16.3123 23.926 15.5377 23.3542C15.8607 23.3117 16.3387 23.2662 16.9042 23.2662ZM12.2542 16.074C12.3407 16.074 12.3976 16.1018 12.4446 16.1669C12.7174 16.5455 12.4974 17.7825 12.2296 18.7506C11.9712 17.9205 11.7772 16.6469 12.0501 16.1988C12.1035 16.1114 12.1644 16.074 12.2542 16.074ZM11.7934 23.4837C12.1369 22.7898 12.5218 21.7786 12.7315 21.2067C13.1511 21.909 13.7155 22.5611 14.0419 22.9146C13.0256 23.1289 12.2567 23.3429 11.7934 23.4837ZM7.21141 26.9573C7.18879 26.9305 7.18544 26.8739 7.2025 26.806C7.23825 26.6636 7.51151 25.9581 9.48796 25.074C9.20495 25.5198 8.76253 26.1567 8.2765 26.6325C7.93437 26.9528 7.66796 27.1152 7.48467 27.1152C7.41911 27.1152 7.32876 27.0973 7.21141 26.9573Z",fill:"white"}
7),(0,l.jsx)("g",{id:"Vector_2",filter:"url(#filter0_d_15489_1358)",children:(0,l.jsx)("path",{d:"M24.9284 7.36575H18.7979C18.3561 7.36575 17.9979 7.00758 17.9979 6.56575V1L24.9284 7.36575Z",fill:"#FECDCA"})})]}),(0,l.jsx)("defs",{children:(0,l.jsxs)("filter",{id:"filter0_d_15489_1358",x:"15.5979",y:"0.2",width:"10.1305",height:"9.56572",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,l.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,l.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,l.jsx)("feOffset",{dx:"-0.8",dy:"0.8"}),(0,l.jsx)("feGaussianBlur",{stdDeviation:"0.8"}),(0,l.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,l.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"}),(0,l.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_15489_1358"}),(0,l.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_15489_1358",result:"shape"})]})})]})}),(0,l.jsx)("div",{className:"flex items-center",children:(0,l.jsx)(r.default,{variant:"h5",weight:"light",className:"!text-[#000]",children:e?.data?.title})})]})}),(0,l.jsx)("div",{className:"ms-spacing-4 self-center",children:a?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("a",{onClick:()=>(e=>{let{card:a}=e;s({content:(0,l.jsx)(n,{card:a}),showCloseButton:!0,closeButtonClass:"relative w-full block text-end pt-spacing-7 lg:px-spacing-7 px-spacing-5"})})({card:e}),children:(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rtl:rotate-[270deg] cursor-pointer",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]})})}):(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(i.A,{url:e?.data?.book,target:"_blank",prefetch:!1,children:"arrow"===t?(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"rtl:rotate-[270deg]",children:[(0,l.jsx)("rect",{x:"0.929688",width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.5964 13.1667C13.3203 13.1667 13.0964 12.9428 13.0964 12.6667C13.0964 12.3905 13.3203 12.1667 13.5964 12.1667H20.2631C20.5392 12.1667 20.7631 12.3905 20.7631 12.6667V19.3334C20.7631 19.6095 20.5392 19.8334 20.2631 19.8334C19.987 19.8334 19.7631 19.6095 19.7631 19.3334V13.8738L13.95 19.6869C13.7547 19.8822 13.4381 19.8822 13.2429 19.6869C13.0476 19.4916 13.0476 19.1751 13.2429 18.9798L19.056 13.1667H13.5964Z",fill:"#323232"})]}):(0,l.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"32",height:"32",rx:"16",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9.5C16.2761 9.5 16.5 9.72386 16.5 10V16.7929L18.9798 14.3131C19.175 14.1179 19.4916 14.1179 19.6869 14.3131C19.8821 14.5084 19.8821 14.825 19.6869 15.0202L16.3536 18.3536C16.1583 18.5488 15.8417 18.5488 15.6464 18.3536L12.3131 15.0202C12.1179 14.825 12.1179 14.5084 12.3131 14.3131C12.5084 14.1179 12.825 14.1179 13.0202 14.3131L15.5 16.7929V10C15.5 9.72386 15.7239 9.5 16 9.5ZM10 17.5C10.2761 17.5 10.5 17.7239 10.5 18V18.8C10.5 19.3683 10.5004 19.7645 10.5256 20.0729C10.5503 20.3755 10.5964 20.5493 10.6635 20.681C10.8073 20.9632 11.0368 21.1927 11.319 21.3365C11.4507 21.4036 11.6245 21.4497 11.9271 21.4744C12.2355 21.4996 12.6317 21.5 13.2 21.5H18.8C19.3683 21.5 19.7645 21.4996 20.0729 21.4744C20.3755 21.4497 20.5493 21.4036 20.681 21.3365C20.9632 21.1927 21.1927 20.9632 21.3365 20.681C21.4036 20.5493 21.4497 20.3755 21.4744 20.0729C21.4996 19.7645 21.5 19.3683 21.5 18.8V18C21.5 17.7239 21.7239 17.5 22 17.5C22.2761 17.5 22.5 17.7239 22.5 18V18.8214C22.5 19.3633 22.5 19.8004 22.4711 20.1543C22.4413 20.5187 22.3784 20.8388 22.2275 21.135C21.9878 21.6054 21.6054 21.9878 21.135 22.2275C20.8388 22.3784 20.5187 22.4413 20.1543 22.4711C19.8004 22.5 19.3633 22.5 18.8214 22.5H13.1786C12.6367 22.5 12.1996 22.5 11.8457 22.4711C11.4813 22.4413 11.1612 22.3784 10.865 22.2275C10.3946 21.9878 10.0122 21.6054 9.77248 21.135C9.62159 20.8388 9.55868 20.5187 9.52891 20.1543C9.49999 19.8004 9.5 19.3633 9.5 18.8214L9.5 18C9.5 17.7239 9.72386 17.5 10 17.5Z",fill:"#323232"})]})})})})]})})}},97894:(e,a,t)=>{"use strict";t.d(a,{default:()=>f});
7var l=t(95155),i=t(27003),r=t(12115),s=t(29722),n=t(98500),c=t.n(n),d=t(31013),o=t(59610),u=t(25354),m=t(86350),h=t(62094),g=t(91256);let p=(0,r.forwardRef)(({image:e,title:a,description:t,link:n,index:p,backgroundColors:x=["#383E4C","#444444","#F7F7F7","#13435D","#3FB8B5"],defaultBackgroundColor:f="#F7F7F7",cardHeight:v="600px",className:b="",showButton:j=!0,buttonComponent:w,onExpand:y,shouldExpandMobile:N},C)=>{let k,{isMobile:A,isTablet:D}=(0,i.k)(),M=A||D,{lang:_}=(0,h.useLang)(),[$,P]=(0,r.useState)(!1),[L,S]=(0,r.useState)(!1);(0,r.useRef)(null);let E=(0,r.useRef)(null);(0,r.useRef)(null),(0,r.useRef)(),(0,r.useRef)(0);let R=x[p%x.length],I="#F7F7F7"===R?"text-gray-800":"text-white",F="https://www.bankboubyan.com"+e;(0,r.useCallback)(()=>{if(!E.current)return!1;let e=E.current.getBoundingClientRect(),a=window.innerHeight;return Math.abs(e.top+e.height/2-a/2)<.3*a},[]);let B=(0,o.k)(),T=(k=window.innerWidth)<375?{collapsed:"100px",expanded:"220px"}:k<640?{collapsed:"120px",expanded:"236px"}:{collapsed:"140px",expanded:"260px"};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(u.PY1.div,{className:(0,s.$)("relative hidden lg:flex flex-1 rounded-container-large overflow-hidden transition-all duration-700","group",b),style:{height:v,maxHeight:v,backgroundColor:$?R:f,minWidth:"134px",transition:"all 0.7s cubic-bezier(0.25, 0.1, 0.25, 1)",flexGrow:$?3:1},initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},transition:{type:"spring",stiffness:400,damping:70},onMouseEnter:()=>{M||P(!0)},onMouseLeave:()=>{M||P(!1)},children:[(0,l.jsx)("div",{className:"absolute inset-0 transition-all duration-700",style:{backgroundImage:`url(${F})`,backgroundSize:D?"200px":"cover",backgroundPosition:"center bottom",backgroundRepeat:"no-repeat",filter:$?"grayscale(0%)":"grayscale(100%)",transition:"filter 0.7s cubic-bezier(0.25, 0.1, 0.25, 1)",willChange:"filter"}}),(0,l.jsx)(c(),{...B,href:n,className:(0,g.cn)("flex h-full w-full max-w-[350px] cursor-none relative z-10"),prefetch:!1,children:(0,l.jsx)("div",{className:(0,g.cn)($?"px-6 py-8":"px-[19px] py-8","flex flex-col relative justify-between h-full w-full"),children:(0,l.jsxs)("div",{className:"w-full text-left min-w-[100px]",children:[(0,l.jsx)(d.default,{variant:$?"h3":"h4",color:"secondary",align:$?"text-start":"text-center",className:(0,s.$)(" transition-all duration-500 mb-spacing-4",$?I:"text-label-default",2==p?"lg:group-hover:text-label-secondary":"lg:group-hover:text-label-default"),children:a}),(0,l.jsx)(d.default,{variant:"h5",className:(0,s.$)("block  mb-spacing-6",2==p?"lg:group-hover:text-label-secondary":"lg:group-hover:text-label-default",$?I:"text-gray-800",$?"opacity-100 w-[220px] max-w-[222px] ":"opacity-0"),children:t})]})})})]}),(0,l.jsx)("div",{ref:C,className:"sentinel top-0 left-0 w-full pointer-events-none lg:hidden","aria-hidden":!0}),(0,l.jsxs)("div",{ref:E,className:(0,s.$)("relative flex lg:hidden rounded-container-large overflow-hidden transition-all duration-700 px-4 py-4","transition-all duration-800 ease-out",b),style:{backgroundColor:N?R:f,height:N?T.expanded:T.collapsed,transition:N?"height 0.5s ease-out, background-color 0.5s ease-out":"height 0.3s ease-in, background-color 0.3s ease-in",willChange:"height, background-color",transform:"translateZ(0)"},children:[(0,l.jsx)("div",{className:"absolute inset-0 transition-all duration-800",style:{backgroundImage:`url(${F})`,backgroundSize:D?"400px":"cover",backgroundPosition:"en"===_?"bottom right":"bottom left",backgroundRepeat:"no-repeat",filter:N?"grayscale(0%)":"grayscale(100%)",transition:N?"filter 0.5s ease-out":"filter 0.3s ease-in",willChange:"filter",transform:"translateZ(0)"}}),(0,l.jsx)(c(),{href:n,className:"overflow-hidden flex h-full w-full relative z-10",prefetch:!1,children:(0,l.jsxs)("div",{className:"h-full flex flex-col  justify-between w-full",children:[(0,l.jsxs)("div",{className:"w-full px-2",style:{textAlign:N?"left":"center"},children:[(0,l.jsx)(d.default,{variant:"h3",color:N&&2!=p?"default":"tertiary",align:"text-start",className:(0,s.$)("transition-all duration-500"),children:a}),(0,l.jsx)("div",{className:(0,s.$)("mt-2 transition-all duration-800",N?"opacity-100 max-h-[200px]":"opacity-0 max-h-0 overflow-hidden"),children:N&&(0,l.jsx)(d.default,{variant:"h5",color:2==p?"tertiary":"default",className:(0,s.$)("relative  max-w-[200px] block "),children:t})})]}),(0,l.jsxs)("div",{className:(0,s.$)(N?"opacity-100 ":"opacity-0"),children:[" ",j&&N&&(0,l.jsx)(m.A,{type:"btncircleiconprimary",colorvariant:"bgprimarywhite",size:"medium",className:"m-2",children:(0,l.jsxs)("svg",{viewBox:"0 0 64 64",f
7ill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,l.jsx)("rect",{width:"32",height:"32",rx:"18",fill:"white"}),(0,l.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.3334 26.3333C24.7811 26.3333 24.3334 25.8855 24.3334 25.3333C24.3334 24.781 24.7811 24.3333 25.3334 24.3333H38.6667C39.219 24.3333 39.6667 24.781 39.6667 25.3333V38.6666C39.6667 39.2189 39.219 39.6666 38.6667 39.6666C38.1144 39.6666 37.6667 39.2189 37.6667 38.6666V27.7475L26.0405 39.3737C25.65 39.7642 25.0168 39.7642 24.6263 39.3737C24.2357 38.9832 24.2357 38.35 24.6263 37.9595L36.2525 26.3333H25.3334Z",fill:"#323232"})]})})]})]})})]})]})});p.displayName="SnowFlakeCardExpand";var x=t(75751);let f=({childrenData:e,data:a,isHavebutton:t})=>{e?.desktop_image;let{isDesktop:n,isMobile:c,isTablet:d}=(0,i.k)(),[o,u]=(0,r.useState)(null);(0,r.useRef)(null);let m=(0,r.useRef)([]);return(0,r.useEffect)(()=>{if(!c||!e)return;let a=[],t={root:null,rootMargin:"-40% 0px -40% 0px",threshold:0};return e.forEach((e,l)=>{let i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?u(l):o===l&&u(null)})},t);m.current[l]&&(i.observe(m.current[l]),a.push(i))}),()=>{a.forEach(e=>e.disconnect())}},[c,e,o]),(0,r.useEffect)(()=>{e&&(m.current=m.current.slice(0,e.length))},[e]),(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:"flex flex-col justify-between gap-spacing-4 items-start lg:items-center lg:mb-within-component-7 mb-within-components-5",children:(0,l.jsx)(x.default,{className:"gap-between-text-1 flex flex-col-reverse",title:a?.title,pretitle:a?.description,title_color:"secondary",description_color:"tertiary"})}),(0,l.jsx)("div",{className:"flex lg:flex-row flex-col gap-spacing-3 lg:gap-spacing-7 ",children:e?.map((e,a)=>(0,l.jsx)(p,{index:a,cardHeight:(0,s.A)(c?"100%":"600px"),title:e.data.title,description:e.data.description,image:n?e.data.desktop_image:e.data.mobile_image,link:e.data.link,shouldExpandMobile:o===a,ref:e=>{m.current[a]=e}},a))})]})}},98223:(e,a,t)=>{"use strict";t.d(a,{A:()=>d});var l=t(95155);t(12115);var i=t(98500),r=t.n(i);let s="https://www.bankboubyan.com",n=e=>("/"+e.replace(/^\/+/,"")).replace(/\/{2,}/g,"/"),c=(e,a)=>`${e.replace(/\/$/,"")}/${a.replace(/^\//,"")}`;function d({url:e,target:a,children:t,className:i,prefetch:o,ariaLabel:u,download:m}){let h,g,p="string"==typeof e?e:e?.href||"";if(!p||/^\s*(javascript:|data:)/i.test(p))return(0,l.jsx)("span",{className:i,children:t});let x="string"==typeof m?m:m?"":void 0;if(void 0!==x){if(/^https?:\/\//i.test(p)){let e="_blank"===a?"noopener noreferrer":void 0;return(0,l.jsx)("a",{href:p,target:a??"_self",rel:e,className:i,"aria-label":u,download:x,children:t})}let e=c(s,n(p)),r="_blank"===a?"noopener noreferrer":void 0;return(0,l.jsx)("a",{href:e,target:a??"_self",rel:r,className:i,"aria-label":u,download:x,children:t})}if(/^https?:\/\//i.test(p)){let e="_blank"===a?"noopener noreferrer":void 0;return(0,l.jsx)("a",{href:p,target:a,rel:e,className:i,"aria-label":u,children:t})}let f=n(p);if((h=f.toLowerCase()).endsWith(".pdf")||h.startsWith("/media/")||h.includes("/media/filer_public/")||h.startsWith("/filer_public/")||h.startsWith("/files/")||h.startsWith("/uploads/")||h.startsWith("/static/")||h.startsWith("/documents/")){let e=c(s,f),r="_blank"===a?"noopener noreferrer":void 0;return(0,l.jsx)("a",{href:e,target:a,rel:r,className:i,"aria-label":u,children:t})}if("/en"===(g=f.toLowerCase())||"/ar"===g||g.startsWith("/en/")||g.startsWith("/ar/"))return(0,l.jsx)(r(),{href:f,className:i,prefetch:o??!1,"aria-label":u,children:t});let v=c(s,f),b="_blank"===a?"noopener noreferrer":void 0;return(0,l.jsx)("a",{href:v,target:a,rel:b,className:i,"aria-label":u,children:t})}}}]);

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.