PageSourceSearch

https://amwal.tech/_next/static/chunks/fa9427a4a74fc184.js

js amwal.tech collected 2026-10-02 03:19:15 UTC 56,644 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,59277,e=>{"use strict";var t=e.i(24412),n=e.i(95036);function r({locale:e,children:r}){return(0,n.useEffect)(()=>{document.documentElement.lang=e,document.documentElement.dir="ar"===e?"rtl":"ltr",document.documentElement.classList.remove("locale-ar","locale-en"),document.documentElement.classList.add(`locale-${e}`)},[e]),(0,t.jsx)(t.Fragment,{children:r})}e.s(["LocaleProvider",()=>r])},3680,e=>{"use strict";let t,n,r;var a,i,s,l,o,c,d,u,f,m=e.i(24412),h=e.i(95036),p=e.i(56889),x=e.i(64074),v=e.i(14624),g=e.i(56904),b=e.i(12710),w=e.i(79731),y=e.i(47163),j=e.i(55739),N=e.i(14435);function k(){let e=(0,p.useTranslations)("navbar"),t=(0,g.useRouter)(),n=(0,g.usePathname)(),[r,a]=(0,h.useState)(()=>n.includes("/merchant")||n.includes("/book-demo")||n.includes("/docs")?(localStorage.setItem("amwal-view-mode","merchant"),!0):"merchant"===localStorage.getItem("amwal-view-mode"));return(0,m.jsxs)("div",{className:"inline-flex shrink-0 items-center rounded-full bg-accent p-1 shadow-soft-xs xl:p-1.5",children:[(0,m.jsxs)("button",{onClick:()=>{a(!1),localStorage.setItem("amwal-view-mode","consumer"),t.push("/")},className:(0,y.cn)("flex items-center gap-1.5 whitespace-nowrap px-3 py-2 text-sm font-bold rounded-full transition-all duration-300 xl:gap-2 xl:px-5",r?"text-secondary-light hover:text-black hover:bg-white/60":"bg-black text-primary shadow-soft-sm -translate-y-0.5"),children:[(0,m.jsx)(N.User,{size:16,strokeWidth:2.5}),(0,m.jsx)("span",{className:(0,y.cn)(r?"hidden lg:block":"block"),children:e("consumer")})]}),(0,m.jsxs)("button",{onClick:()=>{a(!0),localStorage.setItem("amwal-view-mode","merchant"),t.push("/merchants")},className:(0,y.cn)("flex items-center gap-1.5 whitespace-nowrap px-3 py-2 text-sm font-bold rounded-full transition-all duration-300 xl:gap-2 xl:px-5",r?"bg-black text-primary shadow-soft-sm -translate-y-0.5":"text-secondary-light hover:text-black hover:bg-white/60"),children:[(0,m.jsx)(j.Store,{size:16,strokeWidth:2.5}),(0,m.jsx)("span",{className:(0,y.cn)(r?"block":"hidden lg:block"),children:e("merchant")})]})]})}var E=e.i(94955);function C(){let e=(0,p.useTranslations)("navbar"),t=(0,x.useLocale)(),n=(0,g.usePathname)(),r="ar"===t,a=e.has("installmentsVsBnpl")?e("installmentsVsBnpl"):r?"تقسيط البطاقات الائتمانية مقابل خيارات الدفع الآجل":"Credit Card Installments vs BNPL",[i,s]=(0,h.useState)(!1),l=(0,h.useSyncExternalStore)(()=>()=>{},()=>!0,()=>!1);(0,h.useEffect)(()=>{let e,t,r;l&&(e=localStorage.getItem("amwal-view-mode"),t=e=>e.some(e=>"/"===e?"/"===n:n.startsWith(e)),r=i,t(["/merchant","/book-demo","/docs"])?(r=!0,localStorage.setItem("amwal-view-mode","merchant")):t(["/","/rewards","/contact","/how-it-works","/consumer-faq","/comparison-preview","/shop/cars","/shop/travel","/apple-pay-installments","/al-rajhi-credit-card-installments","/snb-credit-card-installments","/alinma-credit-card-installments"])?(r=!1,localStorage.setItem("amwal-view-mode","consumer")):"merchant"===e?r=!0:"consumer"===e&&(r=!1),r!==i&&s(r))},[n,l,i]);let o=[{title:e("discoverAmwal"),featured:!0,items:[{title:e("howItWorks"),href:"/how-it-works"},{title:e("applePayInstallments"),href:"/apple-pay-installments"},{title:a,href:"/comparison-preview"},{title:e("offersStoreDirectory"),href:"/rewards"},{title:e("consumerFaq"),href:"/consumer-faq"}]},{title:e("shop"),featured:!1,items:[{title:e("carsAndAuto"),href:"/shop/cars"},{title:e("travel"),href:"/shop/travel"}]},{title:e("banks"),featured:!1,items:[{title:e("alRajhiInstallments"),href:"/al-rajhi-credit-card-installments"},{title:e("snbInstallments"),href:"/snb-credit-card-installments"},{title:e("alinmaInstallments"),href:"/alinma-credit-card-installments"}]},{title:e("moreLabel"),featured:!1,items:[{title:e("aboutUs"),href:"/about"},{title:e("securityPatent"),href:"/patented-authentication-security"},{title:e("blog"),href:"/blog"}]}],c=[{title:e("howItWorks"),href:"/how-it-works"},{title:e("faq"),href:"/merchant-faq"},{title:e("securityPatent"),href:"/patented-authentication-security"},{title:e("blog"),href:"/blog"},{title:e("aboutUs"),href:"/about"}],d="whitespace-nowrap text-sm font-semibold tracking-wide transition-all px-3 xl:px-4 py-2 rounded-full text-black/80 hover:text-black hover:bg-black/5";return l?(0,m.jsxs)("div",{className:"hidden lg:flex items-center w-full relative",children:[(0,m.jsx)(g.Link,{href:"/",className:(0,y.cn)("flex items-center cursor-pointer group",r?"ml-4 xl:ml-6":"mr-4 xl:mr-6"),"aria-label":e("home"),children:(0,m.jsx)(v.default,{src:E.default,alt:"Amwal Tech Logo",loading:"eager",className:"h-8 w-auto group-hover:scale-105 transition-transform"})}),(0,m.jsx)("div",{className:"flex items-center justify-center flex-1",children:(0,m.jsx)("nav",{children:(0,m.jsxs)("ul",{className:"flex items-center gap-1 xl:gap-2",dir:r?"rtl":"ltr",children:[i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(g.Link,{href:"https://merchant.sa.amwal.tech/",className:"text-sm font-bold tracking-wide transition-all duration-300 px-5 py-2.5 rounded-full bg-primary text-black shadow-soft-sm hover:bg-primary-dark hover:-translate-y-0.5 hover:shadow-soft",children:e("login")})}),(0,m.jsx)("li",{children:(0,m.jsx)(g.Link,{href:"/book-demo",className:d,children:e("bookDemo")})}),(0,m.jsx)("li",{children:(0,m.jsx)(g.Link,{href:"https://docs.amwal.tech/",className:d,children:e("documentation")})})]}):(0,m.jsx)(m.Fragment,{children:o.map(e=>(0,m.jsxs)("li",{className:"relative group",children:[e.featured?(0,m.jsxs)(g.Link,{href:"/",className:"flex shrink-0 items-center gap-1 whitespace-nowrap text-sm font-semibold tracking-wide transition-all px-3 py-2.5 rounded-full bg-accent text-black hover:bg-accent xl:px-4",children:[e.title,(0,m.jsx)(b.ChevronDown,{className:"w-4 h-4 transition-transform group-hover:rotate-180"})]}):(0,m.jsxs)("button",{className:"flex shrink-0 items-center gap-1 whitespace-nowrap text-sm font-semibold tracking-wide transition-all px-3 py-2.5 rounded-full text-black/80 hover:text-black hover:bg-black/5 xl:px-4",children:[e.title,(0,m.jsx)(b.ChevronDown,{className:"w-4 h-4 transition-transform group-hover:rotate-180"})]}),(0,m.jsx)("div",{className:"absolute left-0 right-0 h-2",style:{to
1p:"100%"}}),(0,m.jsx)("ul",{className:(0,y.cn)("absolute w-64 bg-white border border-black/5 rounded-2xl shadow-soft-md overflow-hidden z-50 text-start opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform translate-y-2 group-hover:translate-y-0 p-1.5",r?"left-0":"right-0"),style:{top:"calc(100% + 10px)"},children:e.items.map(e=>(0,m.jsx)("li",{children:(0,m.jsx)(g.Link,{href:e.href,className:"block w-full text-start px-4 py-2.5 rounded-xl text-sm font-semibold text-black/75 hover:bg-accent hover:text-black transition-colors",children:e.title})},e.href))})]},e.title))}),i&&(0,m.jsxs)("li",{className:"relative group",children:[(0,m.jsxs)("button",{className:"flex items-center gap-1 text-sm font-semibold tracking-wide transition-all px-4 py-2 rounded-full text-black/80 hover:text-black hover:bg-black/5",children:[e("moreLabel")," ",(0,m.jsx)(b.ChevronDown,{className:"w-4 h-4"})]}),(0,m.jsx)("div",{className:"absolute left-0 right-0 h-2",style:{top:"100%"}}),(0,m.jsx)("ul",{className:(0,y.cn)("absolute w-52 bg-white border border-black/5 rounded-2xl shadow-soft-md overflow-hidden z-50 text-start opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 transform translate-y-2 group-hover:translate-y-0 p-1.5",r?"left-0":"right-0"),style:{top:"calc(100% + 10px)"},children:c.map(e=>(0,m.jsx)("li",{children:(0,m.jsx)(g.Link,{href:e.href,className:"block w-full text-start px-4 py-2.5 rounded-xl text-sm font-semibold text-black/80 hover:bg-accent hover:text-black transition-colors",children:e.title})},e.href))})]})]})})}),(0,m.jsxs)("div",{className:(0,y.cn)("flex shrink-0 items-center gap-2 xl:gap-4",r?"mr-3 xl:mr-6":"ml-3 xl:ml-6"),children:[(0,m.jsx)("div",{className:"h-6 w-px bg-border"}),(0,m.jsxs)("button",{onClick:()=>{window.location.href=`/${"en"===t?"ar":"en"}${n}`},className:"flex items-center gap-1.5 whitespace-nowrap text-sm font-semibold text-black/80 hover:text-black hover:bg-black/5 px-2 py-2 rounded-full transition-all cursor-pointer xl:gap-2 xl:px-3",children:[(0,m.jsx)(w.Globe,{className:"w-4 h-4"}),(0,m.jsx)("span",{children:"en"===t?"AR":"EN"})]}),(0,m.jsx)(k,{})]})]}):(0,m.jsx)("div",{className:"hidden lg:flex h-20 w-full"})}var L=e.i(48706),S=e.i(12409);function R(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function I(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function T(...e){return t=>{let n=!1,r=e.map(e=>{let r=I(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():I(e[t],null)}}}}function D(...e){return h.useCallback(T(...e),e)}"undefined"!=typeof window&&window.document&&window.document.createElement;var A=globalThis?.document?h.useLayoutEffect:()=>{},P=h[" useId ".trim().toString()]||(()=>void 0),_=0;function M(e){let[t,n]=h.useState(P());return A(()=>{e||n(e=>e??String(_++))},[e]),e||(t?`radix-${t}`:"")}h[" useEffectEvent ".trim().toString()],h[" useInsertionEffect ".trim().toString()];var O=h[" useInsertionEffect ".trim().toString()]||A;Symbol("RADIX:SYNC_STATE");var F=e.i(85630);function W(e){var t;let n,r=(t=e,(n=h.forwardRef((e,t)=>{let{children:n,...r}=e;if(h.isValidElement(n)){var a;let e,i,s=(a=n,(i=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(i=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),l=function(e,t){let n={...t};for(let r in t){let a=e[r],i=t[r];/^on[A-Z]/.test(r)?a&&i?n[r]=(...e)=>{let t=i(...e);return a(...e),t}:a&&(n[r]=a):"style"===r?n[r]={...a,...i}:"className"===r&&(n[r]=[a,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==h.Fragment&&(l.ref=t?T(t,s):s),h.cloneElement(n,l)}return h.Children.count(n)>1?h.Children.only(null):null})).displayName=`${t}.SlotClone`,n),a=h.forwardRef((e,t)=>{let{children:n,...a}=e,i=h.Children.toArray(n),s=i.find($);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:h.Children.count(e)>1?h.Children.only(null):h.isValidElement(e)?e.props.children:null);return(0,m.jsx)(r,{...a,ref:t,children:h.isValidElement(e)?h.cloneElement(e,void 0,n):null})}return(0,m.jsx)(r,{...a,ref:t,children:n})});return a.displayName=`${e}.Slot`,a}var B=Symbol("radix.slottable");function $(e){return h.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===B}var U=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=W(`Primitive.${t}`),r=h.forwardRef((e,r)=>{let{asChild:a,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,m.jsx)(a?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function q(e){let t=h.useRef(e);return h.useEffect(()=>{t.current=e}),h.useMemo(()=>(...e)=>t.current?.(...e),[])}var z="dismissableLayer.update",K=h.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),V=h.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...o}=e,c=h.useContext(K),[d,f]=h.useState(null),p=d?.ownerDocument??globalThis?.document,[,x]=h.useState({}),v=D(t,e=>f(e)),g=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(b),y=d?g.indexOf(d):-1,j=c.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,k=function(e,t=globalThis?.document){let n=q(e),r=h.useRef(!1),a=h.useRef(()=>{});return h.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){Y("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=r,t.addEventListener("click",a.current,{once:!0})):r()}else t.removeEventListener("click",a.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));N&&!n&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},p),E=function(e,t=globalThis?.document){let n=q(e),r=h.useRef(!1);return h.useEffect(()=>{let e=e=>{e.target&&!r.current&&Y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...c.branches].some(e=>e.contains(t))&&(i?.(e),s?.(e),e.defaultPrevented||l?.())},p);return!function(e,t=globalThis?.document){let n=q(e);h.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{y===c.layers.size-1&&(r?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},p),h.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(u=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),X(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=u)}},[d,p,n,c]),h.useEffect(()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),X())},[d,c]),h.useEffect(()=>{let e=()=>x({});return document.addEventListener(z,e),()=>document.removeEventListener(z,e)},[]),(0,m.jsx)(U.div,{...o,ref:v,style:{pointerEvents:j?N?"auto":"none":void 0,...e.style},onFocusCapture:R(e.onFocusCapture,E.onFocusCapture),onBlurCapture:R(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:R(e.onPointerDownCapture,k.onPointerDownCapture)})});function X(){let e=new CustomEvent(z);document.dispatchEvent(e)}function Y(e,t,n,{discrete:r}){let a=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&a.addEventListener(e,t,{once:!0}),r)a&&F.flushSync(()=>a.dispatchEvent(i));else a.dispatchEvent(i)}V.displayName="DismissableLayer",h.forwardRef((e,t)=>{let n=h.useContext(K),r=h.useRef(null),a=D(t,r);return h.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(U.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var H="focusScope.autoFocusOnMount",Z="focusScope.autoFocusOnUnmount",G={bubbles:!1,cancelable:!0},J=h.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[l,o]=h.useState(null),c=q(a),d=q(i),u=h.useRef(null),f=D(t,e=>o(e)),p=h.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;h.useEffect(()=>{if(r){let e=function(e){if(p.paused||!l)return;let t=e.target;l.contains(t)?u.current=t:et(u.current,{select:!0})},t=function(e){if(p.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||et(u.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&et(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,l,p.paused]),h.useEffect(()=>{if(l){en.add(p);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(H,G);l.addEventListener(H,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(et(r,{select:t}),document.activeElement!==n)return}(Q(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&et(l))}return()=>{l.removeEventListener(H,c),setTimeout(()=>{let t=new CustomEvent(Z,G);l.addEventListener(Z,d),l.dispatchEvent(t),t.defaultPrevented||et(e??document.body,{select:!0}),l.removeEventListener(Z,d),en.remove(p)}
1,0)}}},[l,c,d,p]);let x=h.useCallback(e=>{if(!n&&!r||p.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){var i;let t,r=e.currentTarget,[s,l]=[ee(t=Q(i=r),i),ee(t.reverse(),i)];s&&l?e.shiftKey||a!==l?e.shiftKey&&a===s&&(e.preventDefault(),n&&et(l,{select:!0})):(e.preventDefault(),n&&et(s,{select:!0})):a===r&&e.preventDefault()}},[n,r,p.paused]);return(0,m.jsx)(U.div,{tabIndex:-1,...s,ref:f,onKeyDown:x})});function Q(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ee(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function et(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}J.displayName="FocusScope";var en=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=er(r,e)).unshift(e)},remove(e){r=er(r,e),r[0]?.resume()}});function er(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var ea=h.forwardRef((e,t)=>{let{container:n,...r}=e,[a,i]=h.useState(!1);A(()=>i(!0),[]);let s=n||a&&globalThis?.document?.body;return s?F.default.createPortal((0,m.jsx)(U.div,{...r,ref:t}),s):null});ea.displayName="Portal";var ei=e=>{var t;let n,r,{present:a,children:i}=e,s=function(e){var t,n;let[r,a]=h.useState(),i=h.useRef(null),s=h.useRef(e),l=h.useRef("none"),[o,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},h.useReducer((e,t)=>n[e][t]??e,t));return h.useEffect(()=>{let e=es(i.current);l.current="mounted"===o?e:"none"},[o]),A(()=>{let t=i.current,n=s.current;if(n!==e){let r=l.current,a=es(t);e?c("MOUNT"):"none"===a||t?.display==="none"?c("UNMOUNT"):n&&r!==a?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),A(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let a=es(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&a&&(c("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},a=e=>{e.target===r&&(l.current=es(i.current))};return r.addEventListener("animationstart",a),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",a),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:h.useCallback(e=>{i.current=e?getComputedStyle(e):null,a(e)},[])}}(a),l="function"==typeof i?i({present:s.isPresent}):h.Children.only(i),o=D(s.ref,(t=l,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||s.isPresent?h.cloneElement(l,{ref:o}):null};function es(e){return e?.animationName||"none"}ei.displayName="Presence";var el=0;function eo(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ec=e.i(24627),ed="right-scroll-bar-position",eu="width-before-scroll-bar";function ef(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var em="undefined"!=typeof window?h.useLayoutEffect:h.useEffect,eh=new WeakMap,ep=(void 0===a&&(a={}),(void 0===i&&(i=function(e){return e}),s=[],l=!1,o={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:null},useMedium:function(e){var t=i(e,l);return s.push(t),function(){s=s.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;s.length;){var t=s;s=[],t.forEach(e)}s={push:function(t){return e(t)},filter:function(){return s}}},assignMedium:function(e){l=!0;var t=[];if(s.length){var n=s;
1s=[],n.forEach(e),t=s}var r=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(r)};a(),s={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),s}}}}).options=(0,ec.__assign)({async:!0,ssr:!1},a),o),ex=function(){},ev=h.forwardRef(function(e,t){var n,r,a,i,s=h.useRef(null),l=h.useState({onScrollCapture:ex,onWheelCapture:ex,onTouchMoveCapture:ex}),o=l[0],c=l[1],d=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,p=e.enabled,x=e.shards,v=e.sideCar,g=e.noRelative,b=e.noIsolation,w=e.inert,y=e.allowPinchZoom,j=e.as,N=e.gapMode,k=(0,ec.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=(n=[s,t],r=function(e){return n.forEach(function(t){return ef(t,e)})},(a=(0,h.useState)(function(){return{value:null,callback:r,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=r,i=a.facade,em(function(){var e=eh.get(i);if(e){var t=new Set(e),r=new Set(n),a=i.current;t.forEach(function(e){r.has(e)||ef(e,null)}),r.forEach(function(e){t.has(e)||ef(e,a)})}eh.set(i,n)},[n]),i),C=(0,ec.__assign)((0,ec.__assign)({},k),o);return h.createElement(h.Fragment,null,p&&h.createElement(v,{sideCar:ep,removeScrollBar:m,shards:x,noRelative:g,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!y,lockRef:s,gapMode:N}),d?h.cloneElement(h.Children.only(u),(0,ec.__assign)((0,ec.__assign)({},C),{ref:E})):h.createElement(void 0===j?"div":j,(0,ec.__assign)({},C,{className:f,ref:E}),u))});ev.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ev.classNames={fullWidth:eu,zeroRight:ed};var eg=function(e){var t=e.sideCar,n=(0,ec.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return h.createElement(r,(0,ec.__assign)({},n))};eg.isSideCarExport=!0;var eb=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f||("undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,a;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ew=function(){var e=eb();return function(t,n){h.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ey=function(){var e=ew();return function(t){return e(t.styles,t.dynamic),null}},ej={left:0,top:0,right:0,gap:0},eN=function(e){return parseInt(e||"",10)||0},ek=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[eN(n),eN(r),eN(a)]},eE=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return ej;var t=ek(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eC=ey(),eL="data-scroll-locked",eS=function(e,t,n,r){var a=e.left,i=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(eL,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(ed," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(eu," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(ed," .").concat(ed," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(eu," .").concat(eu," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eL,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},eR=function(){var e=parseInt(document.body.getAttribute(eL)||"0",10);return isFinite(e)?e:0},eI=function(){h.useEffect(function(){return document.body.setAttribute(eL,(eR()+1).toString()),function(){var e=eR()-1;e<=0?document.body.removeAttribute(eL):document.body.setAttribute(eL,e.toString())}},[])},eT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;eI();var i=h.useMemo(function(){return eE(a)},[a]);
1return h.createElement(eC,{styles:eS(i,!t,a,n?"":"!important")})},eD=!1;if("undefined"!=typeof window)try{var eA=Object.defineProperty({},"passive",{get:function(){return eD=!0,!0}});window.addEventListener("test",eA,eA),window.removeEventListener("test",eA,eA)}catch(e){eD=!1}var eP=!!eD&&{passive:!1},e_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},eM=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eO(e,r)){var a=eF(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},eO=function(e,t){return"v"===e?e_(t,"overflowY"):e_(t,"overflowX")},eF=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eW=function(e,t,n,r,a){var i,s=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=s*r,o=n.target,c=t.contains(o),d=!1,u=l>0,f=0,m=0;do{if(!o)break;var h=eF(e,o),p=h[0],x=h[1]-h[2]-s*p;(p||x)&&eO(e,o)&&(f+=x,m+=p);var v=o.parentNode;o=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&o!==document.body||c&&(t.contains(o)||t===o))return u&&(a&&1>Math.abs(f)||!a&&l>f)?d=!0:!u&&(a&&1>Math.abs(m)||!a&&-l>m)&&(d=!0),d},eB=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e$=function(e){return[e.deltaX,e.deltaY]},eU=function(e){return e&&"current"in e?e.current:e},eq=0,ez=[];let eK=(c=function(e){var t=h.useRef([]),n=h.useRef([0,0]),r=h.useRef(),a=h.useState(eq++)[0],i=h.useState(ey)[0],s=h.useRef(e);h.useEffect(function(){s.current=e},[e]),h.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,ec.__spreadArray)([e.lockRef.current],(e.shards||[]).map(eU),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=h.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var a,i=eB(e),l=n.current,o="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],d=e.target,u=Math.abs(o)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var f=eM(u,d);if(!f)return!0;if(f?a=u:(a="v"===u?"h":"v",f=eM(u,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(o||c)&&(r.current=a),!a)return!0;var m=r.current||a;return eW(m,t,e,"h"===m?o:c,!0)},[]),o=h.useCallback(function(e){if(ez.length&&ez[ez.length-1]===i){var n="deltaY"in e?e$(e):eB(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var a=(s.current.shards||[]).map(eU).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=h.useCallback(function(e,n,r,a){var i={name:e,delta:n,target:r,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=h.useCallback(function(e){n.current=eB(e),r.current=void 0},[]),u=h.useCallback(function(t){c(t.type,e$(t),t.target,l(t,e.lockRef.current))},[]),f=h.useCallback(function(t){c(t.type,eB(t),t.target,l(t,e.lockRef.current))},[]);h.useEffect(function(){return ez.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:f}),document.addEventListener("wheel",o,eP),document.addEventListener("touchmove",o,eP),document.addEventListener("touchstart",d,eP),function(){ez=ez.filter(function(e){return e!==i}),document.removeEventListener("wheel",o,eP),document.removeEventListener("touchmove",o,eP),document.removeEventListener("touchstart",d,eP)}},[]);var m=e.removeScrollBar,p=e.inert;return h.createElement(h.Fragment,null,p?h.createElement(i,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?h.createElement(eT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ep.useMedium(c),eg);var eV=h.forwardRef(function(e,t){return h.createElement(ev,(0,ec.__assign)({},e,{ref:t,sideCar:eK}))});eV.classNames=ev.classNames;
1var eX=new WeakMap,eY=new WeakMap,eH={},eZ=0,eG=function(e){return e&&(e.host||eG(e.parentNode))},eJ=function(e,t,n,r){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eG(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eH[n]||(eH[n]=new WeakMap);var i=eH[n],s=[],l=new Set,o=new Set(a),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};a.forEach(c);var d=function(e){!e||o.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))d(e);else try{var t=e.getAttribute(r),a=null!==t&&"false"!==t,o=(eX.get(e)||0)+1,c=(i.get(e)||0)+1;eX.set(e,o),i.set(e,c),s.push(e),1===o&&a&&eY.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),l.clear(),eZ++,function(){s.forEach(function(e){var t=eX.get(e)-1,a=i.get(e)-1;eX.set(e,t),i.set(e,a),t||(eY.has(e)||e.removeAttribute(r),eY.delete(e)),a||e.removeAttribute(n)}),--eZ||(eX=new WeakMap,eX=new WeakMap,eY=new WeakMap,eH={})}},eQ=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),eJ(r,a,n,"aria-hidden")):function(){return null}},e0="Dialog",[e1,e4]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>h.createContext(e));return function(n){let r=n?.[e]||t;return h.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let a=h.createContext(r),i=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||a,o=h.useMemo(()=>s,Object.values(s));return(0,m.jsx)(l.Provider,{value:o,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let l=s?.[e]?.[i]||a,o=h.useContext(l);if(o)return o;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let a=n(e)[`__scope${r}`];return{...t,...a}},{});return h.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(e0),[e2,e5]=e1(e0),e8=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=h.useRef(null),o=h.useRef(null),[c,d]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[a,i,s]=function({defaultProp:e,onChange:t}){let[n,r]=h.useState(e),a=h.useRef(n),i=h.useRef(t);return O(()=>{i.current=t},[t]),h.useEffect(()=>{a.current!==n&&(i.current?.(n),a.current=n)},[n,a]),[n,r,i]}({defaultProp:t,onChange:n}),l=void 0!==e,o=l?e:a;{let t=h.useRef(void 0!==e);h.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,r])}return[o,h.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else i(t)},[l,e,i,s])]}({prop:r,defaultProp:a??!1,onChange:i,caller:e0});return(0,m.jsx)(e2,{scope:t,triggerRef:l,contentRef:o,contentId:M(),titleId:M(),descriptionId:M(),open:c,onOpenChange:d,onOpenToggle:h.useCallback(()=>d(e=>!e),[d]),modal:s,children:n})};e8.displayName=e0;var e3="DialogTrigger",e9=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=e5(e3,n),i=D(t,a.triggerRef);return(0,m.jsx)(U.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":tx(a.open),...r,ref:i,onClick:R(e.onClick,a.onOpenToggle)})});e9.displayName=e3;var e6="DialogPortal",[e7,te]=e1(e6,{forceMount:void 0}),tt=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:a}=e,i=e5(e6,t);return(0,m.jsx)(e7,{scope:t,forceMount:n,children:h.Children.map(r,e=>(0,m.jsx)(ei,{present:n||i.open,children:(0,m.jsx)(ea,{asChild:!0,container:a,children:e})}))})};tt.displayName=e6;var tn="DialogOverlay",tr=h.forwardRef((e,t)=>
1{let n=te(tn,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=e5(tn,e.__scopeDialog);return i.modal?(0,m.jsx)(ei,{present:r||i.open,children:(0,m.jsx)(ti,{...a,ref:t})}):null});tr.displayName=tn;var ta=W("DialogOverlay.RemoveScroll"),ti=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=e5(tn,n);return(0,m.jsx)(eV,{as:ta,allowPinchZoom:!0,shards:[a.contentRef],children:(0,m.jsx)(U.div,{"data-state":tx(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ts="DialogContent",tl=h.forwardRef((e,t)=>{let n=te(ts,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,i=e5(ts,e.__scopeDialog);return(0,m.jsx)(ei,{present:r||i.open,children:i.modal?(0,m.jsx)(to,{...a,ref:t}):(0,m.jsx)(tc,{...a,ref:t})})});tl.displayName=ts;var to=h.forwardRef((e,t)=>{let n=e5(ts,e.__scopeDialog),r=h.useRef(null),a=D(t,n.contentRef,r);return h.useEffect(()=>{let e=r.current;if(e)return eQ(e)},[]),(0,m.jsx)(td,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:R(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:R(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:R(e.onFocusOutside,e=>e.preventDefault())})}),tc=h.forwardRef((e,t)=>{let n=e5(ts,e.__scopeDialog),r=h.useRef(!1),a=h.useRef(!1);return(0,m.jsx)(td,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),td=h.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,l=e5(ts,n),o=h.useRef(null),c=D(t,o);return h.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??eo()),document.body.insertAdjacentElement("beforeend",e[1]??eo()),el++,()=>{1===el&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),el--}},[]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(J,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,m.jsx)(V,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":tx(l.open),...s,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(tw,{titleId:l.titleId}),(0,m.jsx)(ty,{contentRef:o,descriptionId:l.descriptionId})]})]})}),tu="DialogTitle",tf=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=e5(tu,n);return(0,m.jsx)(U.h2,{id:a.titleId,...r,ref:t})});tf.displayName=tu;var tm="DialogDescription";h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=e5(tm,n);return(0,m.jsx)(U.p,{id:a.descriptionId,...r,ref:t})}).displayName=tm;var th="DialogClose",tp=h.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=e5(th,n);return(0,m.jsx)(U.button,{type:"button",...r,ref:t,onClick:R(e.onClick,()=>a.onOpenChange(!1))})});function tx(e){return e?"open":"closed"}tp.displayName=th;var tv="DialogTitleWarning",[tg,tb]=(d={contentName:ts,titleName:tu,docsSlug:"dialog"},t=h.createContext(d),(n=e=>{let{children:n,...r}=e,a=h.useMemo(()=>r,Object.values(r));return(0,m.jsx)(t.Provider,{value:a,children:n})}).displayName=tv+"Provider",[n,function(e){let n=h.useContext(t);if(n)return n;if(void 0!==d)return d;throw Error(`\`${e}\` must be used within \`${tv}\``)}]),tw=({titleId:e})=>{let t=tb(tv),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
2
3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
4
5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return h.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ty=({contentRef:e,descriptionId:t})=>{let n=tb("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return h.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},tj=e.i(60214),tj=tj;function tN({...e}){return(0,m.jsx)(e8,{"data-slot":"sheet",...e})}function tk({...e}){return(0,m.jsx)(e9,{"data-slot":"sheet-trigger",...e})}function tE({...e}){return(0,m.jsx)(tt,{"data-slot":"sheet-portal",...e})}function tC({className:e,...t}){return(0,m.jsx)(tr,{"data-slot":"sheet-overlay",className:(0,y.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function tL({className:e,children:t,side:n="right",dir:r="ltr",...a}){let i="rtl"===r;return(0,m.jsxs)(tE,{children:[(0,m.jsx)(tC,{}),(0,m.jsxs)(tl,{"data-slot":"sheet-content",dir:r,className:(0,y.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-soft-xl transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500","right"===n&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 rounded-l-[2rem] sm:max-w-sm","left"===n&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 rounded-r-[2rem] sm:max-w-sm","top"===n&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto rounded-b-[2rem]","bottom"===n&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto rounded-t-[2rem]",e),...a,children:[t,(0,m.jsxs)(tp,{className:(0,y.cn)("ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 roun
5ded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",i?"left-4":"right-4"),children:[(0,m.jsx)(tj.default,{className:"size-4"}),(0,m.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function tS({className:e,...t}){return(0,m.jsx)("div",{"data-slot":"sheet-header",className:(0,y.cn)("flex flex-col gap-1.5 p-4",e),...t})}function tR({className:e,...t}){return(0,m.jsx)(tf,{"data-slot":"sheet-title",className:(0,y.cn)("text-foreground font-semibold",e),...t})}function tI(){let e=(0,p.useTranslations)("navbar"),t=(0,x.useLocale)(),n=(0,g.usePathname)(),r="ar"===t,a=e.has("installmentsVsBnpl")?e("installmentsVsBnpl"):r?"تقسيط البطاقات الائتمانية مقابل خيارات الدفع الآجل":"Credit Card Installments vs BNPL",[i,s]=(0,h.useState)(!1),[l,o]=(0,h.useState)(!1),[c,d]=(0,h.useState)("discover"),[u,f]=(0,h.useState)(!1),j=(0,h.useSyncExternalStore)(()=>()=>{},()=>!0,()=>!1);(0,h.useEffect)(()=>{let e,t,r;j&&(e=localStorage.getItem("amwal-view-mode"),t=e=>e.some(e=>"/"===e?"/"===n:n.startsWith(e)),r=u,t(["/merchant","/signup","/book-demo","/docs"])?(r=!0,localStorage.setItem("amwal-view-mode","merchant")):t(["/","/rewards","/contact","/how-it-works","/consumer-faq","/comparison-preview","/shop/cars","/shop/travel","/apple-pay-installments","/al-rajhi-credit-card-installments","/snb-credit-card-installments","/alinma-credit-card-installments"])?(r=!1,localStorage.setItem("amwal-view-mode","consumer")):"merchant"===e?r=!0:"consumer"===e&&(r=!1),r!==u&&f(r))},[n,j,u]);let N=[{id:"discover",title:e("discoverAmwal"),items:[{title:e("howItWorks"),href:"/how-it-works"},{title:e("applePayInstallments"),href:"/apple-pay-installments"},{title:a,href:"/comparison-preview"},{title:e("offersStoreDirectory"),href:"/rewards"},{title:e("consumerFaq"),href:"/consumer-faq"}]},{id:"shop",title:e("shop"),items:[{title:e("carsAndAuto"),href:"/shop/cars"},{title:e("travel"),href:"/shop/travel"}]},{id:"banks",title:e("banks"),items:[{title:e("alRajhiInstallments"),href:"/al-rajhi-credit-card-installments"},{title:e("snbInstallments"),href:"/snb-credit-card-installments"},{title:e("alinmaInstallments"),href:"/alinma-credit-card-installments"}]},{id:"more",title:e("moreLabel"),items:[{title:e("aboutUs"),href:"/about"},{title:e("securityPatent"),href:"/patented-authentication-security"},{title:e("blog"),href:"/blog"}]}],C=[{title:e("howItWorks"),href:"/how-it-works"},{title:e("merchantFaq"),href:"/merchant-faq"},{title:e("securityPatent"),href:"/patented-authentication-security"},{title:e("blog"),href:"/blog"},{title:e("aboutUs"),href:"/about"}],R=()=>{s(!1),o(!1)},I="block w-full text-start px-4 py-3 rounded-2xl font-semibold transition-all bg-accent text-black hover:bg-accent-bright";return j?(0,m.jsxs)("div",{className:"flex lg:hidden items-center w-full justify-between",children:[(0,m.jsx)("div",{className:"w-12 shrink-0 flex justify-start",children:(0,m.jsxs)(tN,{open:i,onOpenChange:s,children:[(0,m.jsx)(tk,{asChild:!0,children:(0,m.jsx)("button",{className:"p-2 text-black","aria-label":"Toggle menu",children:i?(0,m.jsx)(S.X,{className:"w-6 h-6"}):(0,m.jsx)(L.Menu,{className:"w-6 h-6"})})}),(0,m.jsxs)(tL,{side:r?"right":"left",className:"w-[300px] sm:w-[400px] px-4 bg-white shadow-soft-xl",dir:r?"rtl":"ltr","aria-describedby":void 0,children:[(0,m.jsx)(tS,{className:"mb-6",children:(0,m.jsx)(tR,{children:(0,m.jsx)(v.default,{src:E.default,alt:"Amwal Tech Logo",loading:"eager",width:0,height:0,sizes:"100vw",className:"h-8 w-auto"})})}),(0,m.jsxs)("nav",{className:"flex flex-col gap-4",dir:r?"rtl":"ltr",children:[(0,m.jsx)("div",{className:"pb-4 border-b border-black/10",children:(0,m.jsx)(k,{})}),(0,m.jsx)("ul",{className:"flex flex-col gap-4 w-full",children:u?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{className:"w-full",children:(0,m.jsx)(g.Link,{href:"https://merchant.sa.amwal.tech/",onClick:R,className:"block w-full text-start px-4 py-3 rounded-2xl font-bold transition-all bg-primary text-black shadow-soft-sm hover:bg-primary-dark hover:shadow-soft",children:e("login")})}),(0,m.jsx)("li",{className:"w-full",children:(0,m.jsx)(g.Link,{href:"/book-demo",onClick:R,className:I,children:e("bookDemo")})}),(0,m.jsx)("li",{className:"w-full",children:(0,m.jsx)(g.Link,{href:"https://docs.amwal.tech/",onClick:R,className:I,children:e("documentation")})})]}):(0,m.jsx)(m.Fragment,{children:N.map(e=>{let t=c===e.id;return(0,m.jsxs)("li",{className:"bg-accent rounded-2xl overflow-hidden w-full",children:["discover"===e.id?(0,m.jsxs)("div",{className:"flex items-center text-black",children:[(0,m.jsx)(g.Link,{href:"/",onClick:R,className:"flex-1 px-4 py-3 font-semibold",children:e.title}),(0,m.jsx)("button",{type:"button",onClick:()=>d(t?null:e.id),className:"self-stretch px-4","aria-label":`${e.title} menu`,"aria-expanded":t,children:(0,m.jsx)(b.ChevronDown,{className:(0,y.cn)("w-4 h-4 transition-transform",t&&"rotate-180")}
5)})]}):(0,m.jsxs)("button",{type:"button",onClick:()=>d(t?null:e.id),className:"w-full text-start px-4 py-3 font-semibold flex justify-between items-center text-black","aria-expanded":t,children:[e.title,(0,m.jsx)(b.ChevronDown,{className:(0,y.cn)("w-4 h-4 transition-transform",t&&"rotate-180")})]}),t&&(0,m.jsx)("ul",{className:"bg-white/70 w-full",children:e.items.map(e=>(0,m.jsx)("li",{className:"w-full",children:(0,m.jsx)(g.Link,{href:e.href,onClick:R,className:"block w-full text-start px-6 py-3 text-sm font-semibold text-secondary-light hover:text-black hover:bg-accent transition-colors",children:e.title})},e.href))})]},e.id)})})}),u&&(0,m.jsxs)("div",{className:"bg-accent rounded-2xl overflow-hidden w-full",children:[(0,m.jsxs)("button",{onClick:()=>o(!l),className:"w-full text-start px-4 py-3 font-semibold flex justify-between items-center text-black",children:[e("moreLabel"),(0,m.jsx)(b.ChevronDown,{className:(0,y.cn)("w-4 h-4 transition-transform",l&&"rotate-180")})]}),l&&(0,m.jsx)("ul",{className:"bg-white/60 w-full",children:C.map(e=>(0,m.jsx)("li",{className:"w-full",children:(0,m.jsx)(g.Link,{href:e.href,onClick:R,className:"block w-full text-start px-6 py-3 text-sm font-semibold text-secondary-light hover:text-black hover:bg-accent transition-colors",children:e.title})},e.href))})]}),(0,m.jsx)("div",{className:"pt-4 border-t border-black/10 w-full",children:(0,m.jsxs)("button",{onClick:()=>{window.location.href=`/${"en"===t?"ar":"en"}${n}`},className:"flex items-center gap-2 w-full px-4 py-3 text-sm font-bold text-black hover:text-secondary-light transition-colors rounded-lg hover:bg-accent",children:[(0,m.jsx)(w.Globe,{className:"w-4 h-4"}),(0,m.jsxs)("span",{children:[e("language"),": ","en"===t?"العربية":"English"]})]})})]})]})]})}),(0,m.jsx)("div",{className:"flex-1 flex justify-center",children:(0,m.jsx)(g.Link,{href:"/",className:"flex items-center",children:(0,m.jsx)(v.default,{src:E.default,alt:"Amwal Tech Logo",loading:"eager",width:100,height:32,className:"h-7 w-auto"})})}),(0,m.jsx)("div",{className:"w-12 shrink-0"})]}):(0,m.jsx)("div",{className:"flex lg:hidden h-20 w-full"})}function tT(){return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("nav",{className:"fixed top-0 left-0 right-0 z-50 glass-nav shadow-soft-xs",children:(0,m.jsx)("div",{className:"container mx-auto px-4",children:(0,m.jsxs)("div",{className:"flex items-center h-20",children:[(0,m.jsx)(C,{}),(0,m.jsx)(tI,{})]})})})})}e.s(["Navbar",()=>tT],3680)},72847,e=>{"use strict";var t=e.i(24412),n=e.i(56889),r=e.i(56904),a=e.i(14624),i=e.i(49613),s=e.i(91578),l=e.i(22458),o=e.i(94955);function c(){let e=(0,n.useTranslations)("footer");return(0,t.jsxs)("footer",{className:"relative bg-black text-white pt-16 pb-10 mt-auto rounded-t-[2.5rem] sm:rounded-t-[3.5rem] overflow-hidden","aria-label":"Site Footer",children:[(0,t.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-12 lg:gap-8",children:[(0,t.jsxs)("div",{className:"lg:col-span-4 flex flex-col space-y-8",children:[(0,t.jsx)(r.Link,{href:"/","aria-label":"Amwal Tech Home",className:"block w-fit",children:(0,t.jsx)(a.default,{src:o.default,alt:"Amwal Tech Logo",width:140,height:45,className:"h-9 w-auto brightness-0 invert hover:scale-105 transition-transform"})}),(0,t.jsxs)("address",{className:"not-italic text-sm text-gray-400 space-y-1 leading-relaxed",children:[(0,t.jsx)("p",{children:e("address.name")}),(0,t.jsx)("p",{children:e("address.district")}),(0,t.jsx)("p",{children:e("address.city")}),(0,t.jsx)("p",{children:e("address.country")})]}),(0,t.jsxs)("div",{className:"text-sm text-gray-400 space-y-1 leading-relaxed",children:[(0,t.jsx)("p",{children:e("regulation.text")}),(0,t.jsx)("p",{children:e("regulation.authority")}),(0,t.jsx)("p",{children:e("regulation.license")})]}),(0,t.jsx)("nav",{"aria-label":"Social Media Links",children:(0,t.jsxs)("ul",{className:"flex space-x-6",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"https://x.com/AmwalTech",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-primary transition","aria-label":"Twitter",children:(0,t.jsx)(i.Twitter,{className:"w-5 h-5","aria-hidden":"true"})})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"https://www.instagram.com/amwaltech/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-primary transition","aria-label":"Instagram",children:(0,t.jsx)(s.Instagram,{className:"w-5 h-5","aria-hidden":"true"})})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"https://www.linkedin.com/company/amwal-tech",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-primary transition","aria-label":"LinkedIn",children:(0,t.jsx)(l.Linkedin,{className:"w-5 h-5","aria-hidden":"true"})})}),(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:"https://wa.me/966573737043",target:"_blank",rel:"noopener noreferrer",className:"text-gray-400 hover:text-primary transition","aria-label":"WhatsApp",children:(0,t.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"
5currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})})})})]})})]}),(0,t.jsxs)("div",{className:"lg:col-span-8 grid grid-cols-2 md:grid-cols-3 gap-8 text-sm",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-primary font-bold mb-6 uppercase tracking-wider",children:e("categories.consumers")}),(0,t.jsxs)("ul",{className:"space-y-4 font-medium",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/",className:"hover:text-primary transition",children:e("links.home")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/how-it-works",className:"hover:text-primary transition",children:e("links.howItWorks")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/apple-pay-installments",className:"hover:text-primary transition",children:e("links.applePayInstallments")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/rewards",className:"hover:text-primary transition",children:e("links.rewards")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/consumer-faq",className:"hover:text-primary transition",children:e("links.consumerFaq")})})]}),(0,t.jsx)("h5",{className:"text-primary font-bold mb-5 mt-9 uppercase tracking-wider",children:e("categories.banks")}),(0,t.jsxs)("ul",{className:"space-y-4 font-medium",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/al-rajhi-credit-card-installments",className:"hover:text-primary transition",children:e("links.alRajhiInstallments")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/snb-credit-card-installments",className:"hover:text-primary transition",children:e("links.snbInstallments")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/alinma-credit-card-installments",className:"hover:text-primary transition",children:e("links.alinmaInstallments")})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-primary font-bold mb-6 uppercase tracking-wider",children:e("categories.merchants")}),(0,t.jsxs)("ul",{className:"space-y-4 font-medium",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/merchants",className:"hover:text-primary transition",children:e("links.grow")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"https://merchant.sa.amwal.tech/",className:"hover:text-primary transition",children:e("links.login")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/book-demo",className:"hover:text-primary transition",children:e("links.bookDemo")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"https://docs.amwal.tech/",className:"hover:text-primary transition",children:e("links.documentation")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/merchant-faq",className:"hover:text-primary transition",children:e("links.merchantFaq")})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h4",{className:"text-primary font-bold mb-6 uppercase tracking-wider",children:e("categories.about")}),(0,t.jsxs)("ul",{className:"space-y-4 font-medium",children:[(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/about",className:"hover:text-primary transition",children:e("links.aboutUs")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/patented-authentication-security",className:"hover:text-primary transition",children:e("links.securityPatent")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/contact",className:"hover:text-primary transition",children:e("links.contactUs")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/blog",className:"hover:text-primary transition",children:e("links.blog")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/privacy",className:"hover:text-primary transition",children:e("links.privacy")})}),(0,t.jsx)("li",{children:(0,t.jsx)(r.Link,{href:"/terms",className:"hover:text-primary transition",children:e("links.terms")})})]})]})]})]}),(0,t.jsx)("div",{className:"mt-14 pt-8 border-t border-white/10 flex flex-col sm:flex-row items-center justify-between gap-4 text-xs text-gray-500",children:(0,t.jsx)("p",{children:e("copyright",{year:new Date().getFullYear()})})})]}),(0,t.jsx)("div",{className:"relative z-0 -mt-4 sm:-mt-8 select-none pointer-events-none overflow-hidden","aria-hidden":"true",children:(0,t.jsx)("p",{className:"text-center font-black uppercase leading-none tracking-tighter text-[18vw] sm:text-[16vw] lg:text-[13rem] text-white/[0.04] whitespace-nowrap",children:"amwal"})})]})}e.s(["FooterSection",()=>c])},31830,e=>{"use strict";var t=e.i(95036);function n(){return(0,t.useEffect)(()=>{let e=new IntersectionObserver(e=>
5{e.forEach(e=>{e.isIntersecting&&e.target.classList.add("is-visible")})},{threshold:.1,rootMargin:"0px 0px -50px 0px"});return document.querySelectorAll(".reveal-on-scroll").forEach(t=>e.observe(t)),()=>e.disconnect()},[]),null}e.s(["ScrollObserver",()=>n])}]);

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.