"use strict";(()=>{var e={};e.id=4270,e.ids=[4270],e.modules={20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},66325:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>f,patchFetch:()=>h,requestAsyncStorage:()=>d,routeModule:()=>l,serverHooks:()=>u,staticGenerationAsyncStorage:()=>c});var n={};r.r(n),r.d(n,{GET:()=>p});var o=r(49303),i=r(88716),a=r(60670),s=r(87070);async function p(){let e=`<!DOCTYPE html>
<html lang="sq">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Hap Baboon</title>

    <meta name="apple-itunes-app" content="app-id=1069121718" />

    <meta property="og:title" content="Baboon – Ushqim n\xeb der\xeb t\xebnde" />
    <meta property="og:description" content="Shkarko aplikacionin dhe porosit tani." />
    <meta property="og:image" content="https://baboon.al/images/baboon-pwa-favicon-96x96.png" />
    <meta property="og:url" content="https://baboon.al/app-mobile-redirect" />

    <style>
      *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

      :root {
        --red: #D80027;
        --red-dark: #b80021;
        --bg: #f5f5f7;
        --card: #ffffff;
        --text: #111111;
        --sub: #6e6e73;
        --radius: 18px;
      }

      html, body {
        height: 100%;
        background: var(--bg);
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
        color: var(--text);
        -webkit-font-smoothing: antialiased;
      }

      .wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 24px 16px;
      }

      .card {
        background: var(--card);
        border-radius: var(--radius);
        box-shadow: 0 4px 24px rgba(0,0,0,0.10);
        width: 100%;
        max-width: 360px;
        padding: 48px 28px 32px;
        text-align: center;
        animation: fadeUp 0.4s ease both;
      }

      @keyframes fadeUp {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
      }

      .app-logo {
        width: 80px;
        height: 80px;
        border-radius: 18px;
        margin-bottom: 18px;
        padding: 12px;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0,0,0,0.10);
      }

      h2 {
        font-size: 22px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 8px;
      }

      .subtitle {
        font-size: 15px;
        color: var(--sub);
        margin-bottom: 28px;
        line-height: 1.5;
      }

      .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        background: var(--red);
        color: white;
        border: none;
        border-radius: 12px;
        padding: 15px;
        font-size: 17px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.1s ease;
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
      }

      .btn-primary:active {
        transform: scale(0.97);
        background-color: var(--red-dark);
      }

      .btn-primary svg {
        flex-shrink: 0;
      }

      .store-links {
        display: flex;
        gap: 10px;
        margin-top: 14px;
      }

      .store-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        background: #f0f0f0;
        color: var(--text);
        border: none;
        border-radius: 10px;
        padding: 11px 8px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
      }

      .store-btn:active { background: #e0e0e0; }

      .inapp-notice {
        background: #fff8e1;
        border: 1px solid #ffe082;
        border-radius: 10px;
        padding: 13px 14px;
        font-size: 13px;
        color: #7a6000;
        line-height: 1.5;
        margin-bottom: 18px;
        text-align: left;
        display: none;
      }

      .inapp-notice strong { display: block; margin-bottom: 3px; font-size: 14px; }

      .loading-dot {
        display: inline-block;
        width: 6px; height: 6px;
        background: rgba(255,255,255,0.7);
        border-radius: 50%;
        margin: 0 2px;
        animation: blink 1.2s infinite;
      }
      .loading-dot:nth-child(2) { animation-delay: 0.2s; }
      .loading-dot:nth-child(3) { animation-delay: 0.4s; }

      @keyframes blink {
        0%, 80%, 100% { opacity: 0.3; }
        40% { opacity: 1; }
      }

      .powered {
        margin-top: 24px;
        font-size: 12px;
        color: #aaa;
      }
    </style>
  </head>
  <body>
    <div class="wrapper">
      <div class="card" id="card">
        <img src="https://baboon.al/images/baboon-pwa-favicon-96x96.png" alt="Baboon" class="app-logo" />
        <h2>Baboon</h2>
        <p class="subtitle">Ushqim i shijsh\xebm,<br>direkt n\xeb der\xebn t\xebnde</p>

        <div class="inapp-notice" id="inappNotice">
          <strong>Hap n\xeb browser</strong>
          P\xebr t\xeb shkarkuar aplikacionin, kliko <strong>\xb7\xb7\xb7</strong> (tre pikat) dhe zgjidh <em>"Hap n\xeb Safari"</em> ose <em>"Hap n\xeb Chrome"</em>.
        </div>

        <button class="btn-primary" id="openAppBtn">
          <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
          Shkarko Aplikacionin
        </button>

        <div class="store-links" id="storeLinks">
          <a class="store-btn" id="iosBtn" href="https://apps.apple.com/app/id1069121718" target="_blank">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"/></svg>
            App Store
          </a>
          <a class="store-btn" id="androidBtn" href="https://play.google.com/store/apps/details?id=al.baboon" target="_blank">
            <svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="M3.18 23.76c.3.17.64.2.96.08l12.45-7.2-2.75-2.76-10.66 9.88zM.49 1.27C.18 1.6 0 2.1 0 2.73v18.54c0 .63.18 1.13.49 1.46l.08.07 10.39-10.39v-.24L.57 1.2l-.08.07zM20.37 10.58l-2.96-1.71-3.08 3.08 3.08 3.08 2.98-1.72c.85-.49.85-1.29-.02-1.73zM4.14.24L16.59 7.44l-2.75 2.76L3.18.32c.32-.18.68-.17.96-.08z"/></svg>
            Google Play
          </a>
        </div>
      </div>
      <p class="powered">\xa9 2026 Baboon \xb7 Al</p>
    </div>

    <script>
    (function () {
      var IOS_APPSTORE   = "https://apps.apple.com/app/id1069121718";
      var ANDROID_PLAY   = "https://play.google.com/store/apps/details?id=al.baboon";
      var UNIVERSAL_LINK = "https://baboon.al/app?home";
      var IOS_SCHEME     = "baboon://home";
      var ANDROID_INTENT = "intent://home#Intent;scheme=baboon;package=al.baboon;" +
                           "S.browser_fallback_url=" + encodeURIComponent(ANDROID_PLAY) + ";end";
      var DESKTOP_FALLBACK = "https://baboon.al/app";

      function getUTMParams() {
        return window.location.search || "";
      }

      function appendUTM(url) {
        var utm = getUTMParams();
        if (!utm) return url;
        return url + (url.indexOf("?") > -1 ? "&" : "?") + utm.replace(/^\\?/, "");
      }

      var ua        = navigator.userAgent || "";
      var isAndroid = /Android/i.test(ua);
      var isiOS     = /iPhone|iPad|iPod/i.test(ua);

      var isFBAN    = /FBAN|FBAV/i.test(ua);
      var isIGAV    = /Instagram/i.test(ua);
      var isMessenger = /\\bFB_IAB\\b|FBIOS|FB4A/i.test(ua);
      var isMetaInApp = isFBAN || isIGAV || isMessenger;

      var isSafari  = /Safari/i.test(ua) && !/Chrome|CriOS|FxiOS|OPiOS|mercury/i.test(ua);

      var iosBtn     = document.getElementById("iosBtn");
      var androidBtn = document.getElementById("androidBtn");

      if (isiOS) {
        androidBtn.style.display = "none";
        iosBtn.href = appendUTM(IOS_APPSTORE);
      } else if (isAndroid) {
        iosBtn.style.display = "none";
        androidBtn.href = appendUTM(ANDROID_PLAY);
      } else {
        iosBtn.href     = IOS_APPSTORE;
        androidBtn.href = ANDROID_PLAY;
      }

      function openApp() {
        var btn = document.getElementById("openAppBtn");

        if (isAndroid) {
          if (isMetaInApp) {
            window.location.href = appendUTM(ANDROID_PLAY);
            return;
          }
          window.location.href = UNIVERSAL_LINK;
          setTimeout(function () {
            window.location.href = ANDROID_INTENT;
          }, 500);
          setTimeout(function () {
            window.location.href = appendUTM(ANDROID_PLAY);
          }, 1800);
          return;
        }

        if (isiOS) {
          if (isMetaInApp) {
            window.location.href = appendUTM(IOS_APPSTORE);
            return;
          }
          if (isSafari) {
            window.location.href = UNIVERSAL_LINK;
            setTimeout(function () {
              window.location.href = appendUTM(IOS_APPSTORE);
            }, 1800);
          } else {
            window.location.href = IOS_SCHEME;
            setTimeout(function () {
              window.location.href = appendUTM(IOS_APPSTORE);
            }, 1800);
          }
          return;
        }

        window.location.href = DESKTOP_FALLBACK;
      }

      if (isMetaInApp) {
        document.getElementById("inappNotice").style.display = "block";
        var btn = document.getElementById("openAppBtn");
        btn.innerHTML = '<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg> Shkarko Tani';
      }

      document.getElementById("openAppBtn").addEventListener("click", function () {
        openApp();
      });

      if (!isMetaInApp) {
        setTimeout(function () {
          openApp();
        }, 300);
      }

    })();
    </script>
  </body>
</html>`;return new s.NextResponse(e,{headers:{"Content-Type":"text/html; charset=utf-8"}})}let l=new o.AppRouteRouteModule({definition:{kind:i.x.APP_ROUTE,page:"/app-mobile-redirect/route",pathname:"/app-mobile-redirect",filename:"route",bundlePath:"app/app-mobile-redirect/route"},resolvedPagePath:"/Users/ferlando/Desktop/baboon-nextjs/app/app-mobile-redirect/route.ts",nextConfigOutput:"standalone",userland:n}),{requestAsyncStorage:d,staticGenerationAsyncStorage:c,serverHooks:u}=l,f="/app-mobile-redirect/route";function h(){return(0,a.patchFetch)({serverHooks:u,staticGenerationAsyncStorage:c})}},79925:e=>{var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={};function a(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function s(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function p(e){var t,r;if(!e)return;let[[n,o],...i]=s(e),{domain:a,expires:p,httponly:c,maxage:u,path:f,samesite:h,secure:m,partitioned:g,priority:b}=Object.fromEntries(i.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:n,value:decodeURIComponent(o),domain:a,...p&&{expires:new Date(p)},...c&&{httpOnly:!0},..."string"==typeof u&&{maxAge:Number(u)},path:f,...h&&{sameSite:l.includes(t=(t=h).toLowerCase())?t:void 0},...m&&{secure:!0},...b&&{priority:d.includes(r=(r=b).toLowerCase())?r:void 0},...g&&{partitioned:!0}})}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(i,{RequestCookies:()=>c,ResponseCookies:()=>u,parseCookie:()=>s,parseSetCookie:()=>p,stringifyCookie:()=>a}),e.exports=((e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let a of n(i))o.call(e,a)||void 0===a||t(e,a,{get:()=>i[a],enumerable:!(s=r(i,a))||s.enumerable});return e})(t({},"__esModule",{value:!0}),i);var l=["strict","lax","none"],d=["low","medium","high"],c=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of s(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},u=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(o)?o:function(e){if(!e)return[];var t,r,n,o,i,a=[],s=0;function p(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,i=!1;p();)if(","===(r=e.charAt(s))){for(n=s,s+=1,p(),o=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=o,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}(o)){let t=p(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...n})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},38238:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return r}});class r{static get(e,t,r){let n=Reflect.get(e,t,r);return"function"==typeof n?n.bind(e):n}static set(e,t,r,n){return Reflect.set(e,t,r,n)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},92044:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=r(79925)},95014:(e,t)=>{function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},37847:(e,t)=>{function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),n=t.X(0,[8948,5972],()=>r(66325));module.exports=n})();