@onside/install-widget 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist-lib/{AndroidPlatformModal-B_uF1M7D.cjs → AndroidPlatformModal-CpwzAKbL.cjs} +1 -1
  2. package/dist-lib/{AndroidPlatformModal-3kGO8HxK.js → AndroidPlatformModal-fnqHq6jq.js} +2 -2
  3. package/dist-lib/{CheckInstallModal-ClGHu6XA.cjs → CheckInstallModal-C1Wv-gKs.cjs} +1 -1
  4. package/dist-lib/{CheckInstallModal-Do2gfb9L.js → CheckInstallModal-CZ0ys6jl.js} +3 -3
  5. package/dist-lib/{Dialog-BRBYK08a.cjs → Dialog-Bf1eG4mA.cjs} +1 -1
  6. package/dist-lib/{Dialog-B1D2BvMl.js → Dialog-Cs3Sm-0z.js} +1 -1
  7. package/dist-lib/{FaqModal-J1y4DGzd.js → FaqModal-B3W9TAdH.js} +3 -3
  8. package/dist-lib/{FaqModal-BspE3dHf.cjs → FaqModal-DASmfX8z.cjs} +1 -1
  9. package/dist-lib/{GoToSafariModal-BSuOwGJ3.js → GoToSafariModal-CEBQ36EQ.js} +2 -2
  10. package/dist-lib/{GoToSafariModal-Be-O5A-M.cjs → GoToSafariModal-e91KDKYB.cjs} +1 -1
  11. package/dist-lib/{UpdateIOSModal-CF7lFNfI.js → UpdateIOSModal-BU_f7lNn.js} +3 -3
  12. package/dist-lib/{UpdateIOSModal-Mxvo1zPl.cjs → UpdateIOSModal-D2I23Tl0.cjs} +1 -1
  13. package/dist-lib/{cdn-BmfyFccQ.js → cdn-CRspaiaD.js} +1 -1
  14. package/dist-lib/{cdn-BonUyxCA.cjs → cdn-D6heHpnz.cjs} +1 -1
  15. package/dist-lib/index-CiZWNFxT.cjs +1 -0
  16. package/dist-lib/{index-fWIxOyUM.js → index-ndI5Sgj0.js} +59 -58
  17. package/dist-lib/install-package-Bx8Bu318.cjs +1 -0
  18. package/dist-lib/install-package-ZMp5QD6c.js +3174 -0
  19. package/dist-lib/install-package.cjs +1 -1
  20. package/dist-lib/install-package.js +1 -1
  21. package/dist-lib/install-widget.css +1 -1
  22. package/package.json +10 -2
  23. package/dist-lib/index-BzQo1EMv.cjs +0 -1
  24. package/dist-lib/install-package-CZGZODly.js +0 -451
  25. package/dist-lib/install-package-Dkv3eM_d.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("./install-package-Dkv3eM_d.cjs"),d=require("./Dialog-BRBYK08a.cjs"),u=require("./utils.cjs"),m=({open:i,onClose:t})=>{const{modal:s}=o.useMessages(),a="is_android",l=n.useCallback(()=>{u.trackModalEvent(a,"click","close"),t()},[t]),c=n.useCallback(r=>{r||l()},[l]);return e.jsx(d.Dialog,{"aria-labelledby":a,className:"outline-hidden",isDisplayingMargins:!0,open:i,onOpenChange:c,children:e.jsxs("div",{className:"flex h-full flex-col items-center justify-between text-center",children:[e.jsxs("div",{className:"m-auto",children:[e.jsx("p",{className:"text-2xl font-bold",children:s.android.title}),e.jsx("p",{className:"mt-3 px-10 font-sans text-xs font-normal",children:s.android.description})]}),e.jsx(o.Button,{className:"mt-2 w-full",onClick:l,size:"lg",type:"button",variant:"secondary",children:s.close})]})})};exports.AndroidPlatformModal=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),o=require("./install-package-Bx8Bu318.cjs"),d=require("./Dialog-Bf1eG4mA.cjs"),u=require("./utils.cjs"),m=({open:i,onClose:t})=>{const{modal:s}=o.useMessages(),a="is_android",l=n.useCallback(()=>{u.trackModalEvent(a,"click","close"),t()},[t]),c=n.useCallback(r=>{r||l()},[l]);return e.jsx(d.Dialog,{"aria-labelledby":a,className:"outline-hidden",isDisplayingMargins:!0,open:i,onOpenChange:c,children:e.jsxs("div",{className:"flex h-full flex-col items-center justify-between text-center",children:[e.jsxs("div",{className:"m-auto",children:[e.jsx("p",{className:"text-2xl font-bold",children:s.android.title}),e.jsx("p",{className:"mt-3 px-10 font-sans text-xs font-normal",children:s.android.description})]}),e.jsx(o.Button,{className:"mt-2 w-full",onClick:l,size:"lg",type:"button",variant:"secondary",children:s.close})]})})};exports.AndroidPlatformModal=m;
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
2
  import { useCallback as n } from "react";
3
- import { u as d, B as m } from "./install-package-CZGZODly.js";
4
- import { D as f } from "./Dialog-B1D2BvMl.js";
3
+ import { u as d, B as m } from "./install-package-ZMp5QD6c.js";
4
+ import { D as f } from "./Dialog-Cs3Sm-0z.js";
5
5
  import { trackModalEvent as p } from "./utils.js";
6
6
  const b = ({
7
7
  open: i,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),c=require("./install-package-Dkv3eM_d.cjs"),h=require("./Dialog-BRBYK08a.cjs"),f=require("./FaqModal-BspE3dHf.cjs"),a=require("./utils.cjs"),m=({open:o,onClose:l})=>{const{modal:t}=c.useMessages(),[r,n]=s.useState(!1),i=s.useCallback(()=>{a.trackModalEvent("check_install","click","close"),l()},[l]),u=s.useCallback(()=>{a.trackModalEvent("check_install","click","success"),l()},[l]),d=s.useCallback(()=>{a.trackModalEvent("check_install","click","help"),n(!0)},[]),x=s.useCallback(k=>{k||i()},[i]);return e.jsxs(h.Dialog,{"aria-labelledby":"check-install",className:"outline-hidden",isDisplayingMargins:!0,open:o,onOpenChange:x,children:[e.jsxs("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[e.jsxs("div",{className:"mb-8 flex flex-col gap-3",children:[e.jsx("p",{className:"font-serif text-3xl font-medium text-black",children:t.checkInstall.title}),e.jsx("p",{className:"font-sans text-sm font-normal text-black/60",children:t.checkInstall.description})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2",children:[e.jsx(c.Button,{className:"text-2xs w-full font-mono",onClick:u,size:"lg",type:"button",children:t.checkInstall.yes}),e.jsx(c.Button,{className:"text-2xs w-full font-mono",onClick:d,size:"lg",type:"button",variant:"secondary",children:t.checkInstall.no})]})]}),e.jsx(f.FaqModal,{isOpen:r,onClose:()=>{n(!1),l()}})]})};exports.CheckInstallModal=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("react"),c=require("./install-package-Bx8Bu318.cjs"),h=require("./Dialog-Bf1eG4mA.cjs"),f=require("./FaqModal-DASmfX8z.cjs"),a=require("./utils.cjs"),m=({open:o,onClose:l})=>{const{modal:t}=c.useMessages(),[r,n]=s.useState(!1),i=s.useCallback(()=>{a.trackModalEvent("check_install","click","close"),l()},[l]),u=s.useCallback(()=>{a.trackModalEvent("check_install","click","success"),l()},[l]),d=s.useCallback(()=>{a.trackModalEvent("check_install","click","help"),n(!0)},[]),x=s.useCallback(k=>{k||i()},[i]);return e.jsxs(h.Dialog,{"aria-labelledby":"check-install",className:"outline-hidden",isDisplayingMargins:!0,open:o,onOpenChange:x,children:[e.jsxs("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[e.jsxs("div",{className:"mb-8 flex flex-col gap-3",children:[e.jsx("p",{className:"font-serif text-3xl font-medium text-black",children:t.checkInstall.title}),e.jsx("p",{className:"font-sans text-sm font-normal text-black/60",children:t.checkInstall.description})]}),e.jsxs("div",{className:"flex w-full flex-col gap-2",children:[e.jsx(c.Button,{className:"text-2xs w-full font-mono",onClick:u,size:"lg",type:"button",children:t.checkInstall.yes}),e.jsx(c.Button,{className:"text-2xs w-full font-mono",onClick:d,size:"lg",type:"button",variant:"secondary",children:t.checkInstall.no})]})]}),e.jsx(f.FaqModal,{isOpen:r,onClose:()=>{n(!1),l()}})]})};exports.CheckInstallModal=m;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as u, useCallback as c } from "react";
3
- import { u as x, B as i } from "./install-package-CZGZODly.js";
4
- import { D as k } from "./Dialog-B1D2BvMl.js";
5
- import { F as g } from "./FaqModal-J1y4DGzd.js";
3
+ import { u as x, B as i } from "./install-package-ZMp5QD6c.js";
4
+ import { D as k } from "./Dialog-Cs3Sm-0z.js";
5
+ import { F as g } from "./FaqModal-B3W9TAdH.js";
6
6
  import { trackModalEvent as a } from "./utils.js";
7
7
  const C = ({
8
8
  open: r,
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),C=require("@radix-ui/react-dialog"),s=require("react"),i=require("./install-package-Dkv3eM_d.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const o=f(C),r=f(s),N=e=>r.createElement("svg",{fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m4 12 8-8m-8 0 8 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),p=e=>r.createElement("svg",{fill:"none",height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m9.7002 13-4.2929-4.29289c-.39052-.39053-.39052-1.02369 0-1.41422l4.2929-4.29289",stroke:"#1e1c1f",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.84,strokeWidth:1.5})),m="provider-widget-portal-root";function D(){let e=document.getElementById(m);return e||(e=document.createElement("div"),e.id=m,e.style.zIndex="2147483647",e.style.position="relative",document.body.appendChild(e)),e}const x=s.forwardRef((e,n)=>{const{"aria-labelledby":a,"aria-describedby":l,children:h,className:g,footerContent:c,headerContent:b,isDisplayingMargins:w=!0,open:y,onOpenChange:v,showCloseButton:j=!0,onBackClick:d}=e,[u,k]=s.useState(null);return s.useEffect(()=>{k(D())},[]),t.jsx(o.Root,{open:y,onOpenChange:v,children:u&&t.jsxs(o.Portal,{container:u,children:[t.jsx(o.Overlay,{"aria-hidden":!0,className:i.cn("fixed inset-0 bg-black/50 backdrop-blur-sm","!z-[2147483647] pointer-events-auto","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-300")}),t.jsx(o.Content,{ref:n,"aria-labelledby":a,"aria-describedby":l,"aria-modal":"true",className:i.cn("fixed left-1/2 top-1/2 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 outline-none","!z-[2147483647]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-300",w&&"h-dvh max-h-[calc(100dvh-8px)] max-w-[calc(100dvw-8px)] rounded-2xl bg-white p-4",g),children:t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs(o.Title,{className:"flex flex-shrink-0 flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex items-center",children:[d&&t.jsx(i.Button,{className:"mr-auto rounded-full !bg-lightGray !p-[10px]",onClick:d,children:t.jsx(p,{className:"size-4"})}),b]}),j&&t.jsx(o.Close,{asChild:!0,children:t.jsx("button",{"aria-label":"Close modal",className:"hover:bg-gray-200 ml-auto rounded-full bg-lightGray p-[10px] outline-none",type:"button",children:t.jsx(N,{className:"size-4"})})})]}),t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:h}),c&&t.jsx("footer",{className:"flex flex-shrink-0 flex-col gap-2.5",children:c})]})})]})})});x.displayName="Dialog";exports.Dialog=x;exports.SvgArrowBackIcon=p;
1
+ "use strict";const t=require("react/jsx-runtime"),C=require("@radix-ui/react-dialog"),s=require("react"),i=require("./install-package-Bx8Bu318.cjs");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const o=f(C),r=f(s),N=e=>r.createElement("svg",{fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m4 12 8-8m-8 0 8 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5})),p=e=>r.createElement("svg",{fill:"none",height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",...e},r.createElement("path",{d:"m9.7002 13-4.2929-4.29289c-.39052-.39053-.39052-1.02369 0-1.41422l4.2929-4.29289",stroke:"#1e1c1f",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:.84,strokeWidth:1.5})),m="provider-widget-portal-root";function D(){let e=document.getElementById(m);return e||(e=document.createElement("div"),e.id=m,e.style.zIndex="2147483647",e.style.position="relative",document.body.appendChild(e)),e}const x=s.forwardRef((e,n)=>{const{"aria-labelledby":a,"aria-describedby":l,children:h,className:g,footerContent:c,headerContent:b,isDisplayingMargins:w=!0,open:y,onOpenChange:v,showCloseButton:j=!0,onBackClick:d}=e,[u,k]=s.useState(null);return s.useEffect(()=>{k(D())},[]),t.jsx(o.Root,{open:y,onOpenChange:v,children:u&&t.jsxs(o.Portal,{container:u,children:[t.jsx(o.Overlay,{"aria-hidden":!0,className:i.cn("fixed inset-0 bg-black/50 backdrop-blur-sm","!z-[2147483647] pointer-events-auto","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","duration-300")}),t.jsx(o.Content,{ref:n,"aria-labelledby":a,"aria-describedby":l,"aria-modal":"true",className:i.cn("fixed left-1/2 top-1/2 w-full max-w-lg -translate-x-1/2 -translate-y-1/2 outline-none","!z-[2147483647]","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%]","data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]","duration-300",w&&"h-dvh max-h-[calc(100dvh-8px)] max-w-[calc(100dvw-8px)] rounded-2xl bg-white p-4",g),children:t.jsxs("div",{className:"flex h-full flex-col",children:[t.jsxs(o.Title,{className:"flex flex-shrink-0 flex-row items-center justify-between",children:[t.jsxs("div",{className:"flex items-center",children:[d&&t.jsx(i.Button,{className:"mr-auto rounded-full !bg-lightGray !p-[10px]",onClick:d,children:t.jsx(p,{className:"size-4"})}),b]}),j&&t.jsx(o.Close,{asChild:!0,children:t.jsx("button",{"aria-label":"Close modal",className:"hover:bg-gray-200 ml-auto rounded-full bg-lightGray p-[10px] outline-none",type:"button",children:t.jsx(N,{className:"size-4"})})})]}),t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:h}),c&&t.jsx("footer",{className:"flex flex-shrink-0 flex-col gap-2.5",children:c})]})})]})})});x.displayName="Dialog";exports.Dialog=x;exports.SvgArrowBackIcon=p;
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
2
  import * as a from "@radix-ui/react-dialog";
3
3
  import * as l from "react";
4
4
  import { forwardRef as y, useState as k, useEffect as C } from "react";
5
- import { a as i, B as N } from "./install-package-CZGZODly.js";
5
+ import { a as i, B as N } from "./install-package-ZMp5QD6c.js";
6
6
  const B = (e) => /* @__PURE__ */ l.createElement("svg", { fill: "none", viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "m4 12 8-8m-8 0 8 8", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 })), z = (e) => /* @__PURE__ */ l.createElement("svg", { fill: "none", height: 16, viewBox: "0 0 16 16", width: 16, xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ l.createElement("path", { d: "m9.7002 13-4.2929-4.29289c-.39052-.39053-.39052-1.02369 0-1.41422l4.2929-4.29289", stroke: "#1e1c1f", strokeLinecap: "round", strokeLinejoin: "round", strokeOpacity: 0.84, strokeWidth: 1.5 })), d = "provider-widget-portal-root";
7
7
  function D() {
8
8
  let e = document.getElementById(d);
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as r, Fragment as u } from "react/jsx-runtime";
2
- import { B as x, V as N, c as m } from "./cdn-BmfyFccQ.js";
3
- import { u as d, c as b, B as g } from "./install-package-CZGZODly.js";
4
- import { D as y, S as q } from "./Dialog-B1D2BvMl.js";
2
+ import { B as x, V as N, c as m } from "./cdn-CRspaiaD.js";
3
+ import { u as d, c as b, B as g } from "./install-package-ZMp5QD6c.js";
4
+ import { D as y, S as q } from "./Dialog-Cs3Sm-0z.js";
5
5
  import { useCallback as c, useState as w } from "react";
6
6
  const C = (a) => {
7
7
  const { className: t, text: o = "hello@onside.io" } = a;
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),i=require("./cdn-BonUyxCA.cjs"),c=require("./install-package-Dkv3eM_d.cjs"),x=require("./Dialog-BRBYK08a.cjs"),r=require("react"),p=s=>{const{className:a,text:t="hello@onside.io"}=s;return e.jsx("a",{className:a,href:"mailto:hello@onside.io",rel:"noreferrer noopener",target:"_blank",children:t})},f=({action:s,onClick:a})=>{if(s.event==="change_region")return e.jsx(c.Button,{className:"!px-1.5 !py-0",onClick:a,variant:"transparent",children:s.word});if(s.event==="support")return e.jsx(p,{className:"px-1.5 font-medium text-blue",text:s.word})},j=s=>{const{action:a,answer:t,changeDisplay:n,question:l}=s,o=r.useCallback(()=>{n("changeRegion")},[n]);return e.jsxs("li",{className:"flex flex-col gap-6 rounded-3xl bg-lightGray p-6",children:[e.jsx("h3",{className:"leading-7 text-sm font-medium",children:l}),e.jsxs("p",{className:"text-base",children:[t,a?f({action:a,onClick:o}):null]})]})},N=({changeDisplay:s,className:a})=>{const{modal:t}=c.useMessages();return e.jsx("ul",{className:c.clsx("flex flex-col gap-2",a),children:t.faq.items.map((n,l)=>e.jsx(j,{action:n.action,answer:n.answer,changeDisplay:s,question:n.question},`faq-item-${l}`))})},q=i.cdn("/video/change-region.h264.mp4"),b=i.cdn("/video/change-region-poster.png"),g=s=>{const{isOpen:a,onClose:t}=s,{modal:n}=c.useMessages(),[l,o]=r.useState("generic"),m=r.useCallback(()=>{o("generic")},[]),u=r.useCallback(()=>{t(),setTimeout(()=>{o("generic")},500)},[t]);let d=e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-4 text-center text-xl font-medium",children:n.faq.title}),e.jsx(N,{changeDisplay:o,className:"mt-8"})]});return l==="changeRegion"&&(d=e.jsxs("div",{className:"flex flex-col overflow-x-scroll",children:[e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("h2",{className:"mt-4 text-center text-lg font-medium",children:n.faq.changeRegion.title}),e.jsx("p",{className:"text-sm",children:n.faq.changeRegion.label}),e.jsx(i.Breadcrumbs,{breadcrumbs:n.faq.changeRegion.breadcrumbs,className:"flex max-w-[85%] flex-wrap justify-center gap-x-1 gap-y-2"}),e.jsx("p",{className:"text-sm",children:n.faq.changeRegion.caption})]}),e.jsx("div",{className:"mt-6 flex w-full justify-center rounded-2xl bg-lightGray px-7 py-5",children:e.jsx(i.VideoAutoplay,{ariaLabel:"Instruction demonstrating how to change the App Store region",className:"w-full rounded-2xl border-8 border-white",poster:b,children:e.jsx("source",{src:q,type:"video/mp4"})})})]})),e.jsx(x.Dialog,{"aria-labelledby":"faq-modal",headerContent:l==="changeRegion"&&e.jsx(c.Button,{className:"mr-auto rounded-full bg-lightGray !p-[10px]",onClick:m,children:e.jsx(x.SvgArrowBackIcon,{className:"size-4"})}),open:a,onOpenChange:h=>{h||u()},children:d})};g.displayName="FaqModal";exports.FaqModal=g;
1
+ "use strict";const e=require("react/jsx-runtime"),i=require("./cdn-D6heHpnz.cjs"),c=require("./install-package-Bx8Bu318.cjs"),x=require("./Dialog-Bf1eG4mA.cjs"),r=require("react"),p=s=>{const{className:a,text:t="hello@onside.io"}=s;return e.jsx("a",{className:a,href:"mailto:hello@onside.io",rel:"noreferrer noopener",target:"_blank",children:t})},f=({action:s,onClick:a})=>{if(s.event==="change_region")return e.jsx(c.Button,{className:"!px-1.5 !py-0",onClick:a,variant:"transparent",children:s.word});if(s.event==="support")return e.jsx(p,{className:"px-1.5 font-medium text-blue",text:s.word})},j=s=>{const{action:a,answer:t,changeDisplay:n,question:l}=s,o=r.useCallback(()=>{n("changeRegion")},[n]);return e.jsxs("li",{className:"flex flex-col gap-6 rounded-3xl bg-lightGray p-6",children:[e.jsx("h3",{className:"leading-7 text-sm font-medium",children:l}),e.jsxs("p",{className:"text-base",children:[t,a?f({action:a,onClick:o}):null]})]})},N=({changeDisplay:s,className:a})=>{const{modal:t}=c.useMessages();return e.jsx("ul",{className:c.clsx("flex flex-col gap-2",a),children:t.faq.items.map((n,l)=>e.jsx(j,{action:n.action,answer:n.answer,changeDisplay:s,question:n.question},`faq-item-${l}`))})},q=i.cdn("/video/change-region.h264.mp4"),b=i.cdn("/video/change-region-poster.png"),g=s=>{const{isOpen:a,onClose:t}=s,{modal:n}=c.useMessages(),[l,o]=r.useState("generic"),m=r.useCallback(()=>{o("generic")},[]),u=r.useCallback(()=>{t(),setTimeout(()=>{o("generic")},500)},[t]);let d=e.jsxs(e.Fragment,{children:[e.jsx("h2",{className:"mt-4 text-center text-xl font-medium",children:n.faq.title}),e.jsx(N,{changeDisplay:o,className:"mt-8"})]});return l==="changeRegion"&&(d=e.jsxs("div",{className:"flex flex-col overflow-x-scroll",children:[e.jsxs("div",{className:"flex flex-col items-center gap-3",children:[e.jsx("h2",{className:"mt-4 text-center text-lg font-medium",children:n.faq.changeRegion.title}),e.jsx("p",{className:"text-sm",children:n.faq.changeRegion.label}),e.jsx(i.Breadcrumbs,{breadcrumbs:n.faq.changeRegion.breadcrumbs,className:"flex max-w-[85%] flex-wrap justify-center gap-x-1 gap-y-2"}),e.jsx("p",{className:"text-sm",children:n.faq.changeRegion.caption})]}),e.jsx("div",{className:"mt-6 flex w-full justify-center rounded-2xl bg-lightGray px-7 py-5",children:e.jsx(i.VideoAutoplay,{ariaLabel:"Instruction demonstrating how to change the App Store region",className:"w-full rounded-2xl border-8 border-white",poster:b,children:e.jsx("source",{src:q,type:"video/mp4"})})})]})),e.jsx(x.Dialog,{"aria-labelledby":"faq-modal",headerContent:l==="changeRegion"&&e.jsx(c.Button,{className:"mr-auto rounded-full bg-lightGray !p-[10px]",onClick:m,children:e.jsx(x.SvgArrowBackIcon,{className:"size-4"})}),open:a,onOpenChange:h=>{h||u()},children:d})};g.displayName="FaqModal";exports.FaqModal=g;
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
- import { u as w, B as p, c as b } from "./install-package-CZGZODly.js";
2
+ import { u as w, B as p, c as b } from "./install-package-ZMp5QD6c.js";
3
3
  import * as m from "react";
4
4
  import { useState as y, useCallback as r, useMemo as C } from "react";
5
- import { D as S } from "./Dialog-B1D2BvMl.js";
5
+ import { D as S } from "./Dialog-Cs3Sm-0z.js";
6
6
  import { getDeviceInfo as v, trackModalEvent as d } from "./utils.js";
7
7
  const T = 5e3, N = (o) => {
8
8
  const [n, e] = y(!1);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("./install-package-Dkv3eM_d.cjs"),s=require("react"),h=require("./Dialog-BRBYK08a.cjs"),l=require("./utils.cjs");function k(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const u=k(s),w=5e3,y=t=>{const[a,e]=s.useState(!1);return{handleCopy:s.useCallback(()=>{navigator.clipboard.writeText(t),e(!0),setTimeout(()=>e(!1),w)},[t]),isCopied:a}},C=t=>u.createElement("svg",{width:10,height:16,viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},u.createElement("path",{d:"M3.9375 12.25L6.35539 9.83211C6.74592 9.44158 6.74592 8.80842 6.35539 8.41789L3.9375 6",stroke:"#1E1C1F",strokeOpacity:.6,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),j=({open:t,onClose:a})=>{const{modal:e}=r.useMessages(),n=typeof window<"u"?window.location.href.replace(/\/$/,""):"",p=s.useMemo(()=>{const[i]=n.replace(/^https?:\/\//,"").split(/[?#]/);return i?.replace(/\/$/,"")??""},[n]),{handleCopy:c,isCopied:f}=y(n),d=l.getDeviceInfo(),x=d.browser==="opera"&&d.platform==="ios",g=s.useCallback(i=>{i||a()},[a]),m=s.useCallback(()=>{l.trackModalEvent("go_to_safari","click","button"),window.location.href=`x-safari-${n}`},[n]),b=s.useCallback(()=>{l.trackModalEvent("go_to_safari","click","link"),c()},[c]);return o.jsx(h.Dialog,{"aria-labelledby":"go-to-safari-modal",isDisplayingMargins:!0,open:t,onOpenChange:g,showCloseButton:!1,onBackClick:a,children:o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center",children:[o.jsx("h1",{className:"mt-8 text-center font-sans text-5xl font-medium",children:e.goToSafari.title}),o.jsx("p",{className:"text-tertiary mt-5 w-11/12 text-center font-sans text-lg font-normal",children:e.goToSafari.caption}),o.jsx("p",{className:"text-tertiary w-11/12 text-center font-sans text-lg font-normal",children:e.goToSafari.description}),o.jsxs("div",{className:"mt-10 flex w-full flex-col items-center gap-5",children:[!x&&o.jsxs(r.Button,{className:"flex min-w-[206px] items-center justify-center gap-[6px] font-sans text-lg font-normal text-white!",onClick:m,size:"lg",children:[e.goToSafari.openButton,o.jsx(C,{})]}),o.jsx(r.Button,{className:"flex min-w-[206px] items-center justify-center gap-[6px] font-sans text-lg font-normal",onClick:b,size:"lg",variant:"text",children:f?e.goToSafari.linkCopied:p})]}),o.jsx("p",{className:r.clsx("relative mt-3 rounded-xl bg-black px-4 py-3 font-sans text-xs font-normal text-white transition-[opacity,transform] duration-300","before:absolute before:-top-1 before:left-1/2 before:block before:size-2 before:-translate-x-1/2 before:rotate-45 before:rounded-xs before:bg-black",f?"translate-y-0 opacity-100":"-translate-y-2 opacity-0"),children:e.goToSafari.linkPaste})]})})};exports.GoToSafariModal=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),r=require("./install-package-Bx8Bu318.cjs"),s=require("react"),h=require("./Dialog-Bf1eG4mA.cjs"),l=require("./utils.cjs");function k(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(a,e,n.get?n:{enumerable:!0,get:()=>t[e]})}}return a.default=t,Object.freeze(a)}const u=k(s),w=5e3,y=t=>{const[a,e]=s.useState(!1);return{handleCopy:s.useCallback(()=>{navigator.clipboard.writeText(t),e(!0),setTimeout(()=>e(!1),w)},[t]),isCopied:a}},C=t=>u.createElement("svg",{width:10,height:16,viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},u.createElement("path",{d:"M3.9375 12.25L6.35539 9.83211C6.74592 9.44158 6.74592 8.80842 6.35539 8.41789L3.9375 6",stroke:"#1E1C1F",strokeOpacity:.6,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),j=({open:t,onClose:a})=>{const{modal:e}=r.useMessages(),n=typeof window<"u"?window.location.href.replace(/\/$/,""):"",p=s.useMemo(()=>{const[i]=n.replace(/^https?:\/\//,"").split(/[?#]/);return i?.replace(/\/$/,"")??""},[n]),{handleCopy:c,isCopied:f}=y(n),d=l.getDeviceInfo(),x=d.browser==="opera"&&d.platform==="ios",g=s.useCallback(i=>{i||a()},[a]),m=s.useCallback(()=>{l.trackModalEvent("go_to_safari","click","button"),window.location.href=`x-safari-${n}`},[n]),b=s.useCallback(()=>{l.trackModalEvent("go_to_safari","click","link"),c()},[c]);return o.jsx(h.Dialog,{"aria-labelledby":"go-to-safari-modal",isDisplayingMargins:!0,open:t,onOpenChange:g,showCloseButton:!1,onBackClick:a,children:o.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center",children:[o.jsx("h1",{className:"mt-8 text-center font-sans text-5xl font-medium",children:e.goToSafari.title}),o.jsx("p",{className:"text-tertiary mt-5 w-11/12 text-center font-sans text-lg font-normal",children:e.goToSafari.caption}),o.jsx("p",{className:"text-tertiary w-11/12 text-center font-sans text-lg font-normal",children:e.goToSafari.description}),o.jsxs("div",{className:"mt-10 flex w-full flex-col items-center gap-5",children:[!x&&o.jsxs(r.Button,{className:"flex min-w-[206px] items-center justify-center gap-[6px] font-sans text-lg font-normal text-white!",onClick:m,size:"lg",children:[e.goToSafari.openButton,o.jsx(C,{})]}),o.jsx(r.Button,{className:"flex min-w-[206px] items-center justify-center gap-[6px] font-sans text-lg font-normal",onClick:b,size:"lg",variant:"text",children:f?e.goToSafari.linkCopied:p})]}),o.jsx("p",{className:r.clsx("relative mt-3 rounded-xl bg-black px-4 py-3 font-sans text-xs font-normal text-white transition-[opacity,transform] duration-300","before:absolute before:-top-1 before:left-1/2 before:block before:size-2 before:-translate-x-1/2 before:rotate-45 before:rounded-xs before:bg-black",f?"translate-y-0 opacity-100":"-translate-y-2 opacity-0"),children:e.goToSafari.linkPaste})]})})};exports.GoToSafariModal=j;
@@ -1,8 +1,8 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import { useEffect as n, useCallback as l } from "react";
3
- import { B as m, V as u, c as i } from "./cdn-BmfyFccQ.js";
4
- import { u as p, B as f } from "./install-package-CZGZODly.js";
5
- import { D as h } from "./Dialog-B1D2BvMl.js";
3
+ import { B as m, V as u, c as i } from "./cdn-CRspaiaD.js";
4
+ import { u as p, B as f } from "./install-package-ZMp5QD6c.js";
5
+ import { D as h } from "./Dialog-Cs3Sm-0z.js";
6
6
  import { trackModalEvent as b } from "./utils.js";
7
7
  const x = i("/video/update-ios-poster.png"), g = i("/video/update-ios.h264.mp4"), k = ({
8
8
  open: o,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),l=require("./cdn-BonUyxCA.cjs"),c=require("./install-package-Dkv3eM_d.cjs"),d=require("./Dialog-BRBYK08a.cjs"),u=require("./utils.cjs"),m=l.cdn("/video/update-ios-poster.png"),p=l.cdn("/video/update-ios.h264.mp4"),x=({open:r,onClose:t})=>{const{modal:s}=c.useMessages();o.useEffect(()=>{let a;return r&&(a=setTimeout(()=>{document.querySelector("video")?.play()},600)),()=>{clearTimeout(a)}},[r]);const i=o.useCallback(a=>{a||t()},[t]),n=o.useCallback(()=>{u.trackModalEvent("update_ios","click","close"),t()},[t]);return e.jsx(d.Dialog,{"aria-labelledby":"update-ios",open:r,onOpenChange:i,showCloseButton:!1,onBackClick:t,children:e.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[e.jsx("h2",{className:"mt-3 text-center font-sans text-3xl font-medium",id:"update-ios",children:s.updateIos.title}),e.jsxs("section",{className:"mt-2",children:[e.jsx("p",{className:"mt-3 text-center font-sans text-xs font-normal",children:s.updateIos.description}),e.jsx(l.Breadcrumbs,{breadcrumbs:s.updateIos.breadcrumbs,className:"mt-2 flex gap-1"})]}),e.jsx("div",{className:"relative mt-4 flex w-full grow justify-center overflow-hidden rounded-t-2xl bg-lightGray px-7 pt-7",children:e.jsx(l.VideoAutoplay,{ariaLabel:"Instruction demonstrating the update process",className:"shadow-14-50-98 rounded-t-[20px] border-8 border-b-0 border-white",poster:m,children:e.jsx("source",{src:p,type:"video/mp4"})})}),e.jsx(c.Button,{"aria-label":s.close,className:"mt-4 w-full",onClick:n,size:"lg",type:"button",children:s.close})]})})};exports.UpdateIOSModal=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("react"),l=require("./cdn-D6heHpnz.cjs"),c=require("./install-package-Bx8Bu318.cjs"),d=require("./Dialog-Bf1eG4mA.cjs"),u=require("./utils.cjs"),m=l.cdn("/video/update-ios-poster.png"),p=l.cdn("/video/update-ios.h264.mp4"),x=({open:r,onClose:t})=>{const{modal:s}=c.useMessages();o.useEffect(()=>{let a;return r&&(a=setTimeout(()=>{document.querySelector("video")?.play()},600)),()=>{clearTimeout(a)}},[r]);const i=o.useCallback(a=>{a||t()},[t]),n=o.useCallback(()=>{u.trackModalEvent("update_ios","click","close"),t()},[t]);return e.jsx(d.Dialog,{"aria-labelledby":"update-ios",open:r,onOpenChange:i,showCloseButton:!1,onBackClick:t,children:e.jsxs("div",{className:"flex h-full flex-col items-center justify-center",children:[e.jsx("h2",{className:"mt-3 text-center font-sans text-3xl font-medium",id:"update-ios",children:s.updateIos.title}),e.jsxs("section",{className:"mt-2",children:[e.jsx("p",{className:"mt-3 text-center font-sans text-xs font-normal",children:s.updateIos.description}),e.jsx(l.Breadcrumbs,{breadcrumbs:s.updateIos.breadcrumbs,className:"mt-2 flex gap-1"})]}),e.jsx("div",{className:"relative mt-4 flex w-full grow justify-center overflow-hidden rounded-t-2xl bg-lightGray px-7 pt-7",children:e.jsx(l.VideoAutoplay,{ariaLabel:"Instruction demonstrating the update process",className:"shadow-14-50-98 rounded-t-[20px] border-8 border-b-0 border-white",poster:m,children:e.jsx("source",{src:p,type:"video/mp4"})})}),e.jsx(c.Button,{"aria-label":s.close,className:"mt-4 w-full",onClick:n,size:"lg",type:"button",children:s.close})]})})};exports.UpdateIOSModal=x;
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as p } from "react/jsx-runtime";
2
- import { c as u } from "./install-package-CZGZODly.js";
2
+ import { c as u } from "./install-package-ZMp5QD6c.js";
3
3
  import { useRef as g, useEffect as m } from "react";
4
4
  const v = "data:image/svg+xml,%3csvg%20width='10'%20height='16'%20viewBox='0%200%2010%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.9375%2012.25L6.35539%209.83211C6.74592%209.44158%206.74592%208.80842%206.35539%208.41789L3.9375%206'%20stroke='%231E1C1F'%20stroke-opacity='0.6'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", j = ({ breadcrumbs: e, className: i }) => /* @__PURE__ */ s("ul", { className: i, children: e.map((n, o) => /* @__PURE__ */ p("li", { className: "inline-flex", children: [
5
5
  /* @__PURE__ */ s("p", { className: "rounded-3xl bg-lightGray px-2 py-0.5 text-sm", children: n }),
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),u=require("./install-package-Dkv3eM_d.cjs"),l=require("react"),g="data:image/svg+xml,%3csvg%20width='10'%20height='16'%20viewBox='0%200%2010%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.9375%2012.25L6.35539%209.83211C6.74592%209.44158%206.74592%208.80842%206.35539%208.41789L3.9375%206'%20stroke='%231E1C1F'%20stroke-opacity='0.6'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",v=({breadcrumbs:e,className:i})=>r.jsx("ul",{className:i,children:e.map((n,s)=>r.jsxs("li",{className:"inline-flex",children:[r.jsx("p",{className:"rounded-3xl bg-lightGray px-2 py-0.5 text-sm",children:n}),s<e.length-1&&r.jsx("img",{alt:"Arrow icon","aria-hidden":"true",className:"ml-1",height:16,src:g,width:10})]},n))}),m=e=>{const{ariaLabel:i,children:n,className:s,poster:o}=e,t=l.useRef(null);return l.useEffect(()=>{const a=()=>{t.current&&t.current.paused&&(t.current.muted=!0,t.current.play())},d=()=>{t.current&&(document.visibilityState==="hidden"?t.current.pause():document.visibilityState==="visible"&&a())},c=()=>{t.current&&t.current.pause()};return document.addEventListener("visibilitychange",d),window.addEventListener("focus",a),window.addEventListener("blur",c),()=>{document.removeEventListener("visibilitychange",d),window.removeEventListener("focus",a),window.removeEventListener("blur",c)}},[]),r.jsx("video",{"aria-label":i,autoPlay:!0,className:u.clsx("mt-2 transform-gpu rounded-2xl object-contain object-top",s),controls:!1,disablePictureInPicture:!0,disableRemotePlayback:!0,draggable:!1,loop:!0,muted:!0,playsInline:!0,poster:o,ref:t,"webkit-playsinline":"true","x-webkit-airplay":"deny",children:n},i)},p={"images/.gitkeep":"images/.gitkeep.e3b0c442","images/install-sad-android.png":"images/install-sad-android.8b24a6e1.png","scripts/1.0.0/install-package.cjs":"scripts/1.0.0/install-package.7ac30417.cjs","scripts/1.0.0/install-package.js":"scripts/1.0.0/install-package.65685adc.js","video/.gitkeep":"video/.gitkeep.e3b0c442","video/change-region-poster.png":"video/change-region-poster.bc6bda65.png","video/change-region.h264.mp4":"video/change-region.h264.c47b9282.mp4","video/get-approved-poster.jpg":"video/get-approved-poster.4e7177ac.jpg","video/get-approved.mp4":"video/get-approved.5b7b5f4a.mp4","video/open-onside-poster.jpg":"video/open-onside-poster.6b71cae6.jpg","video/open-onside.av1.mp4":"video/open-onside.av1.32f1aa51.mp4","video/open-onside.h264.mp4":"video/open-onside.h264.6df2feb6.mp4","video/update-ios-poster.png":"video/update-ios-poster.e59e58f8.png","video/update-ios.h264.mp4":"video/update-ios.h264.8054177e.mp4"},f="https://cdn.onside.io/assets/onside-install-widget/";function h(e){return e.replace(/^\//,"")}function b(e){const i=h(e),n=i.split("/").pop()??i,s=[i,`/${i}`,n,`/${n}`];for(const o of s)if(p[o])return p[o];return null}function w(e){if(!e||/^https?:\/\//i.test(e)||e.endsWith(".svg"))return e;const i=b(e);if(!i)return e;try{return new URL(i,f).toString()}catch{return e}}exports.Breadcrumbs=v;exports.VideoAutoplay=m;exports.cdn=w;
1
+ "use strict";const r=require("react/jsx-runtime"),u=require("./install-package-Bx8Bu318.cjs"),l=require("react"),g="data:image/svg+xml,%3csvg%20width='10'%20height='16'%20viewBox='0%200%2010%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.9375%2012.25L6.35539%209.83211C6.74592%209.44158%206.74592%208.80842%206.35539%208.41789L3.9375%206'%20stroke='%231E1C1F'%20stroke-opacity='0.6'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",v=({breadcrumbs:e,className:i})=>r.jsx("ul",{className:i,children:e.map((n,s)=>r.jsxs("li",{className:"inline-flex",children:[r.jsx("p",{className:"rounded-3xl bg-lightGray px-2 py-0.5 text-sm",children:n}),s<e.length-1&&r.jsx("img",{alt:"Arrow icon","aria-hidden":"true",className:"ml-1",height:16,src:g,width:10})]},n))}),m=e=>{const{ariaLabel:i,children:n,className:s,poster:o}=e,t=l.useRef(null);return l.useEffect(()=>{const a=()=>{t.current&&t.current.paused&&(t.current.muted=!0,t.current.play())},d=()=>{t.current&&(document.visibilityState==="hidden"?t.current.pause():document.visibilityState==="visible"&&a())},c=()=>{t.current&&t.current.pause()};return document.addEventListener("visibilitychange",d),window.addEventListener("focus",a),window.addEventListener("blur",c),()=>{document.removeEventListener("visibilitychange",d),window.removeEventListener("focus",a),window.removeEventListener("blur",c)}},[]),r.jsx("video",{"aria-label":i,autoPlay:!0,className:u.clsx("mt-2 transform-gpu rounded-2xl object-contain object-top",s),controls:!1,disablePictureInPicture:!0,disableRemotePlayback:!0,draggable:!1,loop:!0,muted:!0,playsInline:!0,poster:o,ref:t,"webkit-playsinline":"true","x-webkit-airplay":"deny",children:n},i)},p={"images/.gitkeep":"images/.gitkeep.e3b0c442","images/install-sad-android.png":"images/install-sad-android.8b24a6e1.png","scripts/1.0.0/install-package.cjs":"scripts/1.0.0/install-package.7ac30417.cjs","scripts/1.0.0/install-package.js":"scripts/1.0.0/install-package.65685adc.js","video/.gitkeep":"video/.gitkeep.e3b0c442","video/change-region-poster.png":"video/change-region-poster.bc6bda65.png","video/change-region.h264.mp4":"video/change-region.h264.c47b9282.mp4","video/get-approved-poster.jpg":"video/get-approved-poster.4e7177ac.jpg","video/get-approved.mp4":"video/get-approved.5b7b5f4a.mp4","video/open-onside-poster.jpg":"video/open-onside-poster.6b71cae6.jpg","video/open-onside.av1.mp4":"video/open-onside.av1.32f1aa51.mp4","video/open-onside.h264.mp4":"video/open-onside.h264.6df2feb6.mp4","video/update-ios-poster.png":"video/update-ios-poster.e59e58f8.png","video/update-ios.h264.mp4":"video/update-ios.h264.8054177e.mp4"},f="https://cdn.onside.io/assets/onside-install-widget/";function h(e){return e.replace(/^\//,"")}function b(e){const i=h(e),n=i.split("/").pop()??i,s=[i,`/${i}`,n,`/${n}`];for(const o of s)if(p[o])return p[o];return null}function w(e){if(!e||/^https?:\/\//i.test(e)||e.endsWith(".svg"))return e;const i=b(e);if(!i)return e;try{return new URL(i,f).toString()}catch{return e}}exports.Breadcrumbs=v;exports.VideoAutoplay=m;exports.cdn=w;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),y=require("./Dialog-Bf1eG4mA.cjs"),A=require("./FaqModal-DASmfX8z.cjs"),r=require("./install-package-Bx8Bu318.cjs"),p=require("./utils.cjs"),l=require("./cdn-D6heHpnz.cjs");function C(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const n in s)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(s,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>s[n]})}}return t.default=s,Object.freeze(t)}const d=C(a),b=()=>{const[s,t]=a.useState(!1),n=a.useCallback(()=>{t(!1)},[]),o=a.useCallback(()=>{t(!0)},[]);return{isOpenFaq:s,onCloseFaqModal:n,onOpenFaqModal:o,setIsOpenFaq:t}},v=({openFaq:s})=>{const{modal:t}=r.useMessages();return e.jsxs("div",{className:"flex flex-row items-center justify-center gap-2",children:[e.jsx("p",{className:"font-sans text-lg font-medium",children:t.faq.needHelp}),e.jsx(r.Button,{className:"px-0! font-sans text-lg font-normal",color:"blue",onClick:s,variant:"transparent",children:t.faq.faqLink})]})},M=({onSubmit:s,openFaq:t,step:n,openAppHref:o="#"})=>{const{modal:m}=r.useMessages();return n===1?e.jsxs(e.Fragment,{children:[e.jsx(r.InstallAppButton,{className:"w-full",handleCustomStep:s,location:"get_approved"}),e.jsx(v,{openFaq:t})]}):n===2?e.jsxs(e.Fragment,{children:[e.jsx(r.Button,{className:"w-full text-center",color:"blue",href:o,onClick:s,size:"lg",variant:"primary",children:m.getApproved.openAppButton}),e.jsx(v,{openFaq:t})]}):e.jsx(e.Fragment,{})},S=s=>d.createElement("svg",{stroke:"customColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},d.createElement("style",null,".spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"),d.createElement("g",{className:"spinner_V8m1"},d.createElement("circle",{cx:12,cy:12,r:9.5,fill:"none",strokeWidth:3}))),q=s=>{const{className:t,spinnerClasses:n,title:o="Loading..."}=s;return e.jsxs("div",{className:r.clsx("flex flex-col items-center justify-center gap-12",t),children:[e.jsx("h2",{className:"text-center !leading-10 text-lg font-medium",children:o}),e.jsx(S,{className:r.clsx("size-16 stroke-blue",n)})]})},F=l.cdn("/video/get-approved-poster.jpg"),I=l.cdn("/video/get-approved.mp4"),D=l.cdn("/video/open-onside-poster.jpg"),w=l.cdn("/video/open-onside.av1.mp4"),P=l.cdn("/video/open-onside.h264.mp4"),V=({step:s})=>{const{modal:t}=r.useMessages();return s===1?e.jsxs("div",{className:"mt-4 flex flex-col items-center",children:[e.jsx("h2",{className:"text-center font-sans text-lg font-normal",id:"get-approved",children:t.getApproved.title}),e.jsx("ol",{className:"mt-5 flex list-decimal flex-col gap-2 ps-6 font-sans text-base font-normal",children:t.getApproved.steps.map(n=>e.jsx("li",{children:n},n))}),e.jsx(l.VideoAutoplay,{ariaLabel:"Instruction demonstrating how to get approved for Onside",className:"w-[calc(100%-8px)] self-start",poster:F,children:e.jsx("source",{src:I,type:"video/mp4"})})]}):s===2?e.jsx(q,{className:"flex items-center justify-center",title:t.getApproved.installing}):s===3?e.jsxs("div",{className:"mt-4 flex flex-col items-center",children:[e.jsx("h2",{className:"text-center font-sans text-lg font-normal",id:"open-onside-app",children:t.getApproved.openApp}),e.jsx("div",{className:"mt-5 font-sans text-base font-normal",children:e.jsx("p",{children:t.getApproved.openAppDescription})}),e.jsxs(l.VideoAutoplay,{ariaLabel:"Instruction demonstrating how to open the Onside app",className:"mt-10! w-[calc(100%-8px)] self-start",poster:D,children:[e.jsx("source",{src:w,type:"video/mp4; codecs=av01.0.05M.08"}),e.jsx("source",{src:P,type:"video/mp4"})]})]}):null},T=s=>{const{open:t,onClose:n,onStep3Complete:o,openAppHref:m}=s,[i,u]=a.useState(1),{isOpenFaq:j,onCloseFaqModal:h,onOpenFaqModal:_}=b(),{installState:E}=p.resolveInstallConditions(p.getDeviceInfo()),f=E==="install_available",x=a.useMemo(()=>({2:{delay:r.AVERAGE_INSTALL_TIME,action:()=>u(3)},3:{delay:r.AVERAGE_CHECK_TIME,action:()=>o?.(),skip:!f||!o}}),[o,f]);a.useEffect(()=>{const c=x[i];if(!c||c?.skip)return;const N=setTimeout(c.action,c.delay);return()=>clearTimeout(N)},[i,x]);const g=a.useCallback(()=>{p.trackModalEvent("get_approved","click","close"),n(),setTimeout(()=>{u(1)},500)},[n]),O=a.useCallback(()=>{u(2),p.trackModalEvent("get_approved","click","install")},[]),k=a.useCallback(c=>{c||g()},[g]);return e.jsxs(e.Fragment,{children:[e.jsx(y.Dialog,{"aria-labelledby":"get-approved",className:"outline-hidden",footerContent:e.jsx(M,{openAppHref:m,onSubmit:O,openFaq:_,step:i}),isDisplayingMargins:!0,open:t,onOpenChange:k,children:e.jsx(V,{step:i})}),e.jsx(A.FaqModal,{isOpen:j,onClose:h})]})};exports.GetApprovedModal=T;
@@ -1,14 +1,15 @@
1
- import { jsxs as a, jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { useState as A, useCallback as r, useMemo as F, useEffect as b } from "react";
3
- import { D as q } from "./Dialog-B1D2BvMl.js";
4
- import { F as k } from "./FaqModal-J1y4DGzd.js";
5
- import { u as f, B as O, I as T, c as h, S as V, A as P, b as j } from "./install-package-CZGZODly.js";
6
- import { resolveInstallConditions as w, getDeviceInfo as L, trackModalEvent as x } from "./utils.js";
7
- import { V as N, c as i } from "./cdn-BmfyFccQ.js";
1
+ import { jsxs as a, jsx as e, Fragment as d } from "react/jsx-runtime";
2
+ import * as p from "react";
3
+ import { useState as A, useCallback as l, useMemo as F, useEffect as V } from "react";
4
+ import { D as b } from "./Dialog-Cs3Sm-0z.js";
5
+ import { F as q } from "./FaqModal-B3W9TAdH.js";
6
+ import { u, B as O, I as w, c as x, A as T, b as P } from "./install-package-ZMp5QD6c.js";
7
+ import { resolveInstallConditions as j, getDeviceInfo as L, trackModalEvent as E } from "./utils.js";
8
+ import { V as N, c as i } from "./cdn-CRspaiaD.js";
8
9
  const R = () => {
9
- const [n, t] = A(!1), o = r(() => {
10
+ const [n, t] = A(!1), o = l(() => {
10
11
  t(!1);
11
- }, []), s = r(() => {
12
+ }, []), s = l(() => {
12
13
  t(!0);
13
14
  }, []);
14
15
  return {
@@ -17,8 +18,8 @@ const R = () => {
17
18
  onOpenFaqModal: s,
18
19
  setIsOpenFaq: t
19
20
  };
20
- }, E = ({ openFaq: n }) => {
21
- const { modal: t } = f();
21
+ }, _ = ({ openFaq: n }) => {
22
+ const { modal: t } = u();
22
23
  return /* @__PURE__ */ a("div", { className: "flex flex-row items-center justify-center gap-2", children: [
23
24
  /* @__PURE__ */ e("p", { className: "font-sans text-lg font-medium", children: t.faq.needHelp }),
24
25
  /* @__PURE__ */ e(
@@ -38,18 +39,18 @@ const R = () => {
38
39
  step: o,
39
40
  openAppHref: s = "#"
40
41
  }) => {
41
- const { modal: d } = f();
42
- return o === 1 ? /* @__PURE__ */ a(p, { children: [
42
+ const { modal: m } = u();
43
+ return o === 1 ? /* @__PURE__ */ a(d, { children: [
43
44
  /* @__PURE__ */ e(
44
- T,
45
+ w,
45
46
  {
46
47
  className: "w-full",
47
48
  handleCustomStep: n,
48
49
  location: "get_approved"
49
50
  }
50
51
  ),
51
- /* @__PURE__ */ e(E, { openFaq: t })
52
- ] }) : o === 2 ? /* @__PURE__ */ a(p, { children: [
52
+ /* @__PURE__ */ e(_, { openFaq: t })
53
+ ] }) : o === 2 ? /* @__PURE__ */ a(d, { children: [
53
54
  /* @__PURE__ */ e(
54
55
  O,
55
56
  {
@@ -59,28 +60,28 @@ const R = () => {
59
60
  onClick: n,
60
61
  size: "lg",
61
62
  variant: "primary",
62
- children: d.getApproved.openAppButton
63
+ children: m.getApproved.openAppButton
63
64
  }
64
65
  ),
65
- /* @__PURE__ */ e(E, { openFaq: t })
66
- ] }) : /* @__PURE__ */ e(p, {});
67
- }, G = (n) => {
66
+ /* @__PURE__ */ e(_, { openFaq: t })
67
+ ] }) : /* @__PURE__ */ e(d, {});
68
+ }, G = (n) => /* @__PURE__ */ p.createElement("svg", { stroke: "customColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n }, /* @__PURE__ */ p.createElement("style", null, ".spinner_V8m1{transform-origin:center;animation:spinner_zKoa 2s linear infinite}.spinner_V8m1 circle{stroke-linecap:round;animation:spinner_YpZS 1.5s ease-in-out infinite}@keyframes spinner_zKoa{100%{transform:rotate(360deg)}}@keyframes spinner_YpZS{0%{stroke-dasharray:0 150;stroke-dashoffset:0}47.5%{stroke-dasharray:42 150;stroke-dashoffset:-16}95%,100%{stroke-dasharray:42 150;stroke-dashoffset:-59}}"), /* @__PURE__ */ p.createElement("g", { className: "spinner_V8m1" }, /* @__PURE__ */ p.createElement("circle", { cx: 12, cy: 12, r: 9.5, fill: "none", strokeWidth: 3 }))), H = (n) => {
68
69
  const { className: t, spinnerClasses: o, title: s = "Loading..." } = n;
69
70
  return /* @__PURE__ */ a(
70
71
  "div",
71
72
  {
72
- className: h(
73
+ className: x(
73
74
  "flex flex-col items-center justify-center gap-12",
74
75
  t
75
76
  ),
76
77
  children: [
77
78
  /* @__PURE__ */ e("h2", { className: "text-center !leading-10 text-lg font-medium", children: s }),
78
- /* @__PURE__ */ e(V, { className: h("size-16 stroke-blue", o) })
79
+ /* @__PURE__ */ e(G, { className: x("size-16 stroke-blue", o) })
79
80
  ]
80
81
  }
81
82
  );
82
- }, H = i("/video/get-approved-poster.jpg"), z = i("/video/get-approved.mp4"), K = i("/video/open-onside-poster.jpg"), Q = i("/video/open-onside.av1.mp4"), J = i("/video/open-onside.h264.mp4"), U = ({ step: n }) => {
83
- const { modal: t } = f();
83
+ }, z = i("/video/get-approved-poster.jpg"), K = i("/video/get-approved.mp4"), Y = i("/video/open-onside-poster.jpg"), Z = i("/video/open-onside.av1.mp4"), Q = i("/video/open-onside.h264.mp4"), W = ({ step: n }) => {
84
+ const { modal: t } = u();
84
85
  return n === 1 ? /* @__PURE__ */ a("div", { className: "mt-4 flex flex-col items-center", children: [
85
86
  /* @__PURE__ */ e(
86
87
  "h2",
@@ -96,12 +97,12 @@ const R = () => {
96
97
  {
97
98
  ariaLabel: "Instruction demonstrating how to get approved for Onside",
98
99
  className: "w-[calc(100%-8px)] self-start",
99
- poster: H,
100
- children: /* @__PURE__ */ e("source", { src: z, type: "video/mp4" })
100
+ poster: z,
101
+ children: /* @__PURE__ */ e("source", { src: K, type: "video/mp4" })
101
102
  }
102
103
  )
103
104
  ] }) : n === 2 ? /* @__PURE__ */ e(
104
- G,
105
+ H,
105
106
  {
106
107
  className: "flex items-center justify-center",
107
108
  title: t.getApproved.installing
@@ -121,74 +122,74 @@ const R = () => {
121
122
  {
122
123
  ariaLabel: "Instruction demonstrating how to open the Onside app",
123
124
  className: "mt-10! w-[calc(100%-8px)] self-start",
124
- poster: K,
125
+ poster: Y,
125
126
  children: [
126
127
  /* @__PURE__ */ e(
127
128
  "source",
128
129
  {
129
- src: Q,
130
+ src: Z,
130
131
  type: "video/mp4; codecs=av01.0.05M.08"
131
132
  }
132
133
  ),
133
- /* @__PURE__ */ e("source", { src: J, type: "video/mp4" })
134
+ /* @__PURE__ */ e("source", { src: Q, type: "video/mp4" })
134
135
  ]
135
136
  }
136
137
  )
137
138
  ] }) : null;
138
- }, ne = (n) => {
139
- const { open: t, onClose: o, onStep3Complete: s, openAppHref: d } = n, [c, m] = A(1), { isOpenFaq: _, onCloseFaqModal: C, onOpenFaqModal: I } = R(), { installState: M } = w(L()), u = M === "install_available", g = F(
139
+ }, oe = (n) => {
140
+ const { open: t, onClose: o, onStep3Complete: s, openAppHref: m } = n, [c, f] = A(1), { isOpenFaq: k, onCloseFaqModal: y, onOpenFaqModal: C } = R(), { installState: I } = j(L()), g = I === "install_available", h = F(
140
141
  () => ({
141
- 2: { delay: j, action: () => m(3) },
142
+ 2: { delay: P, action: () => f(3) },
142
143
  3: {
143
- delay: P,
144
+ delay: T,
144
145
  action: () => s?.(),
145
- skip: !u || !s
146
+ skip: !g || !s
146
147
  }
147
148
  }),
148
- [s, u]
149
+ [s, g]
149
150
  );
150
- b(() => {
151
- const l = g[c];
152
- if (!l || l?.skip) return;
153
- const D = setTimeout(l.action, l.delay);
151
+ V(() => {
152
+ const r = h[c];
153
+ if (!r || r?.skip) return;
154
+ const D = setTimeout(r.action, r.delay);
154
155
  return () => clearTimeout(D);
155
- }, [c, g]);
156
- const v = r(() => {
157
- x("get_approved", "click", "close"), o(), setTimeout(() => {
158
- m(1);
156
+ }, [c, h]);
157
+ const v = l(() => {
158
+ E("get_approved", "click", "close"), o(), setTimeout(() => {
159
+ f(1);
159
160
  }, 500);
160
- }, [o]), S = r(() => {
161
- m(2), x("get_approved", "click", "install");
162
- }, []), y = r(
163
- (l) => {
164
- l || v();
161
+ }, [o]), M = l(() => {
162
+ f(2), E("get_approved", "click", "install");
163
+ }, []), S = l(
164
+ (r) => {
165
+ r || v();
165
166
  },
166
167
  [v]
167
168
  );
168
- return /* @__PURE__ */ a(p, { children: [
169
+ return /* @__PURE__ */ a(d, { children: [
169
170
  /* @__PURE__ */ e(
170
- q,
171
+ b,
171
172
  {
172
173
  "aria-labelledby": "get-approved",
173
174
  className: "outline-hidden",
174
175
  footerContent: /* @__PURE__ */ e(
175
176
  B,
176
177
  {
177
- openAppHref: d,
178
- onSubmit: S,
179
- openFaq: I,
178
+ openAppHref: m,
179
+ onSubmit: M,
180
+ openFaq: C,
180
181
  step: c
181
182
  }
182
183
  ),
183
184
  isDisplayingMargins: !0,
184
185
  open: t,
185
- onOpenChange: y,
186
- children: /* @__PURE__ */ e(U, { step: c })
186
+ onOpenChange: S,
187
+ children: /* @__PURE__ */ e(W, { step: c })
187
188
  }
188
189
  ),
189
- /* @__PURE__ */ e(k, { isOpen: _, onClose: C })
190
+ /* @__PURE__ */ e(q, { isOpen: k, onClose: y })
190
191
  ] });
191
192
  };
192
193
  export {
193
- ne as GetApprovedModal
194
+ oe as GetApprovedModal
194
195
  };
@@ -0,0 +1 @@
1
+ "use strict";const m=require("react/jsx-runtime"),x=require("react"),Y=require("./useInstallUrl-iPCPqYWB.cjs"),re=require("./utils.cjs"),He=require("zustand");require("./installUrlService-AjG03i8i.cjs");function Ye(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ne=Ye(x);function Ee(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(r=Ee(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ze(){for(var e,t,r=0,o="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=Ee(e))&&(o&&(o+=" "),o+=t);return o}const me="-",Ke=e=>{const t=Ze(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const f=l.split(me);return f[0]===""&&f.length!==1&&f.shift(),Pe(f,t)||Qe(l)},getConflictingClassGroupIds:(l,f)=>{const c=r[l]||[];return f&&o[l]?[...c,...o[l]]:c}}},Pe=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),n=o?Pe(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;const i=e.join(me);return t.validators.find(({validator:l})=>l(i))?.classGroupId},Ce=/^\[(.+)\]$/,Qe=e=>{if(Ce.test(e)){const t=Ce.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ze=e=>{const{theme:t,classGroups:r}=e,o={nextPart:new Map,validators:[]};for(const n in r)de(r[n],o,n,t);return o},de=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){const i=n===""?t:Ie(t,n);i.classGroupId=r;return}if(typeof n=="function"){if(Je(n)){de(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([i,l])=>{de(l,Ie(t,i),r,o)})})},Ie=(e,t)=>{let r=e;return t.split(me).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Je=e=>e.isThemeGetter,Xe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const n=(i,l)=>{r.set(i,l),t++,t>e&&(t=0,o=r,r=new Map)};return{get(i){let l=r.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return n(i,l),l},set(i,l){r.has(i)?r.set(i,l):n(i,l)}}},ue="!",pe=":",et=pe.length,tt=e=>{const{prefix:t,experimentalParseClassName:r}=e;let o=n=>{const i=[];let l=0,f=0,c=0,h;for(let b=0;b<n.length;b++){let v=n[b];if(l===0&&f===0){if(v===pe){i.push(n.slice(c,b)),c=b+et;continue}if(v==="/"){h=b;continue}}v==="["?l++:v==="]"?l--:v==="("?f++:v===")"&&f--}const g=i.length===0?n:n.substring(c),E=ot(g),N=E!==g,S=h&&h>c?h-c:void 0;return{modifiers:i,hasImportantModifier:N,baseClassName:E,maybePostfixModifierPosition:S}};if(t){const n=t+pe,i=o;o=l=>l.startsWith(n)?i(l.substring(n.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(r){const n=o;o=i=>r({className:i,parseClassName:n})}return o},ot=e=>e.endsWith(ue)?e.substring(0,e.length-1):e.startsWith(ue)?e.substring(1):e,rt=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const n=[];let i=[];return o.forEach(l=>{l[0]==="["||t[l]?(n.push(...i.sort(),l),i=[]):i.push(l)}),n.push(...i.sort()),n}},nt=e=>({cache:Xe(e.cacheSize),parseClassName:tt(e),sortModifiers:rt(e),...Ke(e)}),st=/\s+/,at=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:i}=t,l=[],f=e.trim().split(st);let c="";for(let h=f.length-1;h>=0;h-=1){const g=f[h],{isExternal:E,modifiers:N,hasImportantModifier:S,baseClassName:b,maybePostfixModifierPosition:v}=r(g);if(E){c=g+(c.length>0?" "+c:c);continue}let _=!!v,z=o(_?b.substring(0,v):b);if(!z){if(!_){c=g+(c.length>0?" "+c:c);continue}if(z=o(b),!z){c=g+(c.length>0?" "+c:c);continue}_=!1}const C=i(N).join(":"),P=S?C+ue:C,M=P+z;if(l.includes(M))continue;l.push(M);const T=n(z,_);for(let j=0;j<T.length;++j){const O=T[j];l.push(P+O)}c=g+(c.length>0?" "+c:c)}return c};function it(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_e(t))&&(o&&(o+=" "),o+=r);return o}const _e=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=_e(e[o]))&&(r&&(r+=" "),r+=t);return r};function lt(e,...t){let r,o,n,i=l;function l(c){const h=t.reduce((g,E)=>E(g),e());return r=nt(h),o=r.cache.get,n=r.cache.set,i=f,f(c)}function f(c){const h=o(c);if(h)return h;const g=at(c,r);return n(c,g),g}return function(){return i(it.apply(null,arguments))}}const w=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Te=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ct=/^\d+\/\d+$/,dt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ut=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,pt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ft=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$=e=>ct.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),B=e=>!!e&&Number.isInteger(Number(e)),le=e=>e.endsWith("%")&&p(e.slice(0,-1)),L=e=>dt.test(e),gt=()=>!0,bt=e=>ut.test(e)&&!pt.test(e),Ne=()=>!1,ht=e=>mt.test(e),xt=e=>ft.test(e),wt=e=>!s(e)&&!a(e),yt=e=>W(e,Le,Ne),s=e=>je.test(e),F=e=>W(e,Ge,bt),ce=e=>W(e,Mt,p),Me=e=>W(e,Oe,Ne),kt=e=>W(e,Re,xt),te=e=>W(e,Be,ht),a=e=>Te.test(e),H=e=>D(e,Ge),vt=e=>D(e,St),Se=e=>D(e,Oe),Ct=e=>D(e,Le),It=e=>D(e,Re),oe=e=>D(e,Be,!0),W=(e,t,r)=>{const o=je.exec(e);return o?o[1]?t(o[1]):r(o[2]):!1},D=(e,t,r=!1)=>{const o=Te.exec(e);return o?o[1]?t(o[1]):r:!1},Oe=e=>e==="position"||e==="percentage",Re=e=>e==="image"||e==="url",Le=e=>e==="length"||e==="size"||e==="bg-size",Ge=e=>e==="length",Mt=e=>e==="number",St=e=>e==="family-name",Be=e=>e==="shadow",At=()=>{const e=w("color"),t=w("font"),r=w("text"),o=w("font-weight"),n=w("tracking"),i=w("leading"),l=w("breakpoint"),f=w("container"),c=w("spacing"),h=w("radius"),g=w("shadow"),E=w("inset-shadow"),N=w("text-shadow"),S=w("drop-shadow"),b=w("blur"),v=w("perspective"),_=w("aspect"),z=w("ease"),C=w("animate"),P=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...M(),a,s],j=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto","contain","none"],u=()=>[a,s,c],k=()=>[$,"full","auto",...u()],ge=()=>[B,"none","subgrid",a,s],be=()=>["auto",{span:["full",B,a,s]},B,a,s],Q=()=>[B,"auto",a,s],he=()=>["auto","min","max","fr",a,s],se=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],q=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...u()],V=()=>[$,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],d=()=>[e,a,s],xe=()=>[...M(),Se,Me,{position:[a,s]}],we=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ye=()=>["auto","cover","contain",Ct,yt,{size:[a,s]}],ae=()=>[le,H,F],I=()=>["","none","full",h,a,s],A=()=>["",p,H,F],Z=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],y=()=>[p,le,Se,Me],ve=()=>["","none",b,a,s],J=()=>["none",p,a,s],X=()=>["none",p,a,s],ie=()=>[p,a,s],ee=()=>[$,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[L],breakpoint:[L],color:[gt],container:[L],"drop-shadow":[L],ease:["in","out","in-out"],font:[wt],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[L],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[L],shadow:[L],spacing:["px",p],text:[L],"text-shadow":[L],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$,s,a,_]}],container:["container"],columns:[{columns:[p,s,a,f]}],"break-after":[{"break-after":P()}],"break-before":[{"break-before":P()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[B,"auto",a,s]}],basis:[{basis:[$,"full","auto",f,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,$,"auto","initial","none",s]}],grow:[{grow:["",p,a,s]}],shrink:[{shrink:["",p,a,s]}],order:[{order:[B,"first","last","none",a,s]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":Q()}],"col-end":[{"col-end":Q()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":Q()}],"row-end":[{"row-end":Q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...q(),"normal"]}],"justify-self":[{"justify-self":["auto",...q()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...q(),{baseline:["","last"]}]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...q(),"baseline"]}],"place-self":[{"place-self":["auto",...q()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[f,"screen",...V()]}],"min-w":[{"min-w":[f,"screen","none",...V()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[l]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,H,F]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,a,ce]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",le,s]}],"font-family":[{font:[vt,s,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,a,s]}],"line-clamp":[{"line-clamp":[p,"none",a,ce]}],leading:[{leading:[i,...u()]}],"list-image":[{"list-image":["none",a,s]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",a,s]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",a,F]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[p,"auto",a,s]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",a,s]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",a,s]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:xe()}],"bg-repeat":[{bg:we()}],"bg-size":[{bg:ye()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},B,a,s],radial:["",a,s],conic:[B,a,s]},It,kt]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":A()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,a,s]}],"outline-w":[{outline:["",p,H,F]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",g,oe,te]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",E,oe,te]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[p,F]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",N,oe,te]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[p,a,s]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":y()}],"mask-image-linear-to-pos":[{"mask-linear-to":y()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":y()}],"mask-image-t-to-pos":[{"mask-t-to":y()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":y()}],"mask-image-r-to-pos":[{"mask-r-to":y()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":y()}],"mask-image-b-to-pos":[{"mask-b-to":y()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":y()}],"mask-image-l-to-pos":[{"mask-l-to":y()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":y()}],"mask-image-x-to-pos":[{"mask-x-to":y()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":y()}],"mask-image-y-to-pos":[{"mask-y-to":y()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[a,s]}],"mask-image-radial-from-pos":[{"mask-radial-from":y()}],"mask-image-radial-to-pos":[{"mask-radial-to":y()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":y()}],"mask-image-conic-to-pos":[{"mask-conic-to":y()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:we()}],"mask-size":[{mask:ye()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",a,s]}],filter:[{filter:["","none",a,s]}],blur:[{blur:ve()}],brightness:[{brightness:[p,a,s]}],contrast:[{contrast:[p,a,s]}],"drop-shadow":[{"drop-shadow":["","none",S,oe,te]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",p,a,s]}],"hue-rotate":[{"hue-rotate":[p,a,s]}],invert:[{invert:["",p,a,s]}],saturate:[{saturate:[p,a,s]}],sepia:[{sepia:["",p,a,s]}],"backdrop-filter":[{"backdrop-filter":["","none",a,s]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[p,a,s]}],"backdrop-contrast":[{"backdrop-contrast":[p,a,s]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,a,s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,a,s]}],"backdrop-invert":[{"backdrop-invert":["",p,a,s]}],"backdrop-opacity":[{"backdrop-opacity":[p,a,s]}],"backdrop-saturate":[{"backdrop-saturate":[p,a,s]}],"backdrop-sepia":[{"backdrop-sepia":["",p,a,s]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",a,s]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",a,s]}],ease:[{ease:["linear","initial",z,a,s]}],delay:[{delay:[p,a,s]}],animate:[{animate:["none",C,a,s]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,a,s]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[a,s,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ee()}],"translate-x":[{"translate-x":ee()}],"translate-y":[{"translate-y":ee()}],"translate-z":[{"translate-z":ee()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",a,s]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",a,s]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[p,H,F,ce]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Et=lt(At);function G(...e){return Et(ze(e))}const zt={primary:"rounded-full whitespace-nowrap leading-none font-medium transition-bg font-sans duration-300 flex items-center justify-center text-center",secondary:"rounded-full whitespace-nowrap leading-none font-medium font-sans bg-transparent border transition-bg transition-color duration-300 flex items-center justify-center text-center",text:"whitespace-nowrap leading-none font-medium font-sans transition-colors duration-300 flex items-center justify-center text-center",transparent:"rounded-full whitespace-nowrap leading-none font-medium transition-opacity duration-300 flex items-center justify-center text-center"},Pt={primary:{blue:"bg-blue text-white hover:bg-buttonHover focus:bg-blue disabled:bg-buttonDisabled",lightBlue:"bg-[#e2eaf8] text-blue hover:opacity-60 focus:opacity-100",white:"bg-white text-blue hover:opacity-90 focus:opacity-100 disabled:opacity-50"},secondary:{blue:"border-blue text-blue hover:bg-blue hover:text-white focus:bg-blue focus:text-white",lightBlue:"border-[#e2eaf8] text-[#e2eaf8] hover:bg-[#e2eaf8] hover:text-white focus:bg-[#e2eaf8] focus:text-white",white:"border-white text-white hover:bg-white hover:text-blue focus:bg-white focus:text-blue"},text:{blue:"bg-transparent text-blue hover:underline focus:underline",lightBlue:"bg-transparent text-[#e2eaf8] hover:underline focus:underline",white:"bg-transparent text-white hover:underline focus:underline"},transparent:{blue:"bg-transparent text-blue hover:opacity-75",lightBlue:"bg-transparent text-[#e2eaf8] hover:opacity-75",white:"bg-transparent text-white hover:opacity-75"}},_t={lg:"py-4 px-8 font-sans font-medium text-lg sm:text-xl leading-none!",md:"py-3 px-5 font-sans font-medium text-base sm:text-lg leading-none!"};function K({className:e,...t}){const r=t.variant??"primary",o=t.color??"blue",n=t.size??"md",i=G(zt[r],_t[r!=="text"?n:"md"],Pt[r][o],e);if(typeof t.href>"u"){const g=t;return m.jsx("button",{className:i,...g})}const l=t,{pureLink:f,...c}=l,h=("rel"in c?c.rel:void 0)??(c.target==="_blank"?"noopener noreferrer":void 0);return f?m.jsx("a",{className:i,rel:h,...c}):m.jsx("a",{className:i,rel:h,...c})}const U=" ",jt="ʹ",fe={button:{install:"Install Onside",regionUnavailable:"Only available in the EU. Install from an eligible region.",androidOnly:"Onside is for iPhone and iPad",loading:"Loading...",linkError:"Unable to load install link. Please try again."},modal:{close:"Close",goToSafari:{title:"Open in Safari",caption:"Copy the link and open it in Safari to continue.",description:"Onside can only be installed from the Safari browser on your device.",openButton:"Open in Safari",linkCopied:"Link copied",linkPaste:"Paste the link in Safari"},updateIos:{title:"Update your iOS",description:"To install Onside, update your iPhone or iPad to the latest version of iOS.",breadcrumbs:["Settings","General","Software Update"]},getApproved:{title:"Get approved for Onside",steps:["Open the link and sign in with your Apple ID.","Complete the approval steps in the browser.","Return here and tap Install to continue."],installing:"Installing…",openApp:"Open the Onside app",openAppDescription:"Start using Onside from your home screen.",openAppButton:"Open app"},checkInstall:{title:"Did you install Onside?",description:"Let us know if the installation completed successfully.",yes:"Yes, I installed it",no:"No, I need help"},android:{title:"Onside is for iPhone and iPad",description:"To install Onside, please use an iPhone or iPad."},faq:{title:"Frequently asked questions",items:[{question:"How can I install Onside store app outside EU region?",answer:`You can install the${U}Onside store app only if${U}you are using your iPhone in${U}the${U}EU${U}region`},{question:`I am in EU region but still can${jt}t install Onside store app`,answer:"Turn off your VPN and check that country of your Appstore belongs to EU region. You can find instructions on how to change the region",action:{event:"change_region",word:"here"}},{question:`Could not install app due${U}to content restrictions`,answer:"Go to content restrictions in Settings, then “App Store, Media, Web & games” then “Apps” and set to unrated"},{question:"I have another problem",answer:"If you have any other problems, please",action:{event:"support",word:"contact us"}}],changeRegion:{title:`Change your App Store country to install Onside${U}store${U}app`,label:"To change, please go to:",breadcrumbs:["Settings","Your name","Media & Purchases","View Account","Country & Region","Change"],caption:"Then follow the on-screen instructions"},needHelp:"Need help?",faqLink:"FAQ",didntFind:"Didn’t find an answer?"}}},Ue=x.createContext(fe),Ve=()=>x.useContext(Ue),Tt=7*Y.SEC_MS,Fe=7*Y.SEC_MS,qe=2*Y.SEC_MS,$e=He.create(e=>({activeModal:null,openModal:t=>e({activeModal:t}),closeModal:()=>e({activeModal:null})})),Nt={INSTALL_BUTTON_CLICK:"install_button_click"},Ot=(e={},t)=>({trackInstallEvent:n=>{const i=re.trackEvent(Nt.INSTALL_BUTTON_CLICK,{...e,event_type:n});i&&t?.onEvent?.(i)},trackOpenModalEvent:n=>{const i=re.trackModalEvent(n,"opened","install_button",{...e});i&&t?.onEvent?.(i)}}),Rt=e=>e?"ios_18_6_plus":"install_click",Lt=(e,t)=>{e(Rt(t))},Gt=e=>{e("no_condition_matched")},Bt=e=>{const{id:t,location:r="hero",customAnalytics:o,handleCustomStep:n,pathname:i}=e,l=re.resolveInstallConditions(re.getDeviceInfo()),f=l.installState==="install_available",{data:c,error:h}=Y.useInstallUrl(f),g=c?.url??null,E=c?.onside_token??null,N=c?.attribution_token??null,S=c?.is_eligible??null,{openModal:b}=$e(),[v,_]=x.useState(!1),z=x.useRef(void 0),{trackOpenModalEvent:C,trackInstallEvent:P}=Ot({page:i,location:r,button_id:t??void 0,onside_token:E??void 0,attribution_token:N??void 0},o),M=x.useCallback(()=>{_(!0);const k=setTimeout(()=>{_(!1)},qe);return()=>clearTimeout(k)},[]),T=x.useCallback(k=>{if(!g||!Y.isProduction){k.preventDefault();return}if(M(),n){setTimeout(()=>n(),100);return}Lt(P,l.usesNewInstallFlow),setTimeout(()=>{if(l.usesNewInstallFlow){clearTimeout(z.current),z.current=setTimeout(()=>{b("checkInstall"),C("check_install")},Fe);return}b("getApproved"),C("get_approved")},100)},[g,n,l.usesNewInstallFlow,P,C,b,M]),j=x.useCallback(()=>{if(M(),l.installState==="go_to_safari"){C("go_to_safari"),b("goToSafari");return}if(l.installState==="update_ios"){C("update_ios"),b("updateIOS");return}Gt(P)},[l.installState,b,M,P,C]),O=x.useCallback(()=>{C("is_android"),b("isAndroid")},[b,C]);return{viewMode:l.installState==="android"?"android":v?"loading":g&&f?"link":"button",installUrl:g,error:h,isEligible:S,conditions:l,handleInstallClick:T,handleModalFlowClick:j,handleAndroidClick:O}},Ut=e=>ne.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ne.createElement("path",{d:"M12.1268 5.74646C11.3368 5.74646 10.1139 4.84824 8.82613 4.88071C7.12708 4.90235 5.56872 5.8655 4.69214 7.39139C2.92817 10.454 4.23762 14.9776 5.95831 17.4667C6.80243 18.6787 7.79805 20.0423 9.11832 19.999C10.3845 19.9449 10.8607 19.1765 12.3974 19.1765C13.9233 19.1765 14.3562 19.999 15.6981 19.9665C17.0617 19.9449 17.9274 18.7328 18.7607 17.5099C19.7239 16.1031 20.1243 14.7395 20.1459 14.6638C20.1134 14.653 17.4945 13.6465 17.4621 10.6164C17.4404 8.084 19.5291 6.87195 19.6265 6.81784C18.436 5.0755 16.6071 4.88071 15.9686 4.83742C14.3021 4.70755 12.906 5.74646 12.1268 5.74646ZM14.9406 3.19248C15.644 2.34837 16.1093 1.16877 15.9795 0C14.973 0.0432878 13.761 0.670965 13.0359 1.51508C12.3866 2.26179 11.8238 3.46303 11.9753 4.61016C13.09 4.69673 14.2371 4.03659 14.9406 3.19248Z",fill:"currentColor"})),Vt=({className:e,onClick:t,children:r,id:o,androidClassName:n,androidTextClassName:i})=>m.jsx(K,{id:o,className:G("bg-white px-7",e,n),variant:"secondary",size:"lg",onClick:t,children:m.jsxs("span",{className:"flex flex-row items-center gap-1",children:[m.jsx(Ut,{className:i?"text-[#FF465D]":void 0}),m.jsx("span",{className:G("flex-1",i),children:r})]})}),Ft=({href:e,onClick:t,children:r,className:o,id:n})=>m.jsx(K,{id:n,href:e,pureLink:!0,size:"lg",onClick:t,className:o,children:r}),Ae=e=>ne.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ne.createElement("path",{d:"M17.5 10.0001C17.4999 11.5839 16.9984 13.1271 16.0674 14.4084C15.1364 15.6897 13.8237 16.6434 12.3174 17.1328C10.8111 17.6221 9.1885 17.6221 7.6822 17.1326C6.17591 16.6432 4.86323 15.6894 3.9323 14.4081C3.00138 13.1267 2.49999 11.5835 2.5 9.9997C2.50001 8.41588 3.00142 6.87271 3.93237 5.59137C4.86331 4.31003 6.176 3.3563 7.6823 2.86685C9.1886 2.37741 10.8112 2.37739 12.3175 2.86679",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qt=e=>{const{id:t,className:r,children:o,showLoaderOnly:n}=e;return m.jsx(K,{id:t,className:G("px-8 py-4",r),disabled:!0,children:m.jsx("span",{className:"flex items-center gap-2",children:n?m.jsx(Ae,{className:"animate-spin"}):m.jsxs(m.Fragment,{children:[m.jsx(Ae,{className:"animate-spin"}),o]})})})},$t=({message:e})=>m.jsx("p",{className:"mt-2 text-center text-sm text-error",children:e??"Unable to load install link. Please try again."}),We=x.createContext(!1),Wt=()=>typeof window<"u"?window.location.pathname:"",Dt=e=>{const t=Ve(),{className:r,children:o,handleCustomStep:n,location:i="hero",caption:l,captionClassName:f,showCaption:c=!0,showLoaderOnly:h=!1,androidClassName:g,androidTextClassName:E,customAnalytics:N,id:S}=e,b=o??t.button.install,v=x.useRef(Wt()),_=x.useContext(We),{viewMode:z,installUrl:C,error:P,isEligible:M,handleInstallClick:T,handleModalFlowClick:j,handleAndroidClick:O}=Bt({id:S,location:i,customAnalytics:N,handleCustomStep:n,pathname:v.current});x.useEffect(()=>{},[_]);const u=c&&(!M||l)&&m.jsx("div",{className:G("text-2xs font-mono opacity-60",f),children:M?l:t.button.regionUnavailable}),k={android:m.jsx(Vt,{id:S,className:r,androidClassName:g,androidTextClassName:E,onClick:O,children:t.button.androidOnly}),loading:m.jsx(qt,{showLoaderOnly:h,id:S,className:G("bg-buttonHover!",r),children:t.button.loading}),link:m.jsxs(m.Fragment,{children:[m.jsxs(Ft,{id:S,className:G(r,"flex-col gap-1"),href:C??"",onClick:T,children:[b,u]}),P&&m.jsx($t,{message:t.button.linkError})]}),button:m.jsxs(K,{id:S,className:G(r,"flex-col gap-1"),size:"lg",onClick:j,children:[b,u]})};return m.jsx(m.Fragment,{children:k[z]??k.button})};function De(e,t){if(!t)return e;const r={...e};for(const o of Object.keys(t)){const n=r[o],i=t[o];i!==void 0&&(typeof n=="object"&&n!==null&&!Array.isArray(n)&&typeof i=="object"&&i!==null&&!Array.isArray(i)?r[o]=De(n,i):r[o]=i)}return r}const Ht=x.lazy(async()=>({default:(await Promise.resolve().then(()=>require("./AndroidPlatformModal-CpwzAKbL.cjs"))).AndroidPlatformModal})),Yt=x.lazy(async()=>({default:(await Promise.resolve().then(()=>require("./GoToSafariModal-e91KDKYB.cjs"))).GoToSafariModal})),Kt=x.lazy(async()=>({default:(await Promise.resolve().then(()=>require("./UpdateIOSModal-D2I23Tl0.cjs"))).UpdateIOSModal})),Qt=x.lazy(async()=>({default:(await Promise.resolve().then(()=>require("./index-CiZWNFxT.cjs"))).GetApprovedModal})),Zt=x.lazy(async()=>({default:(await Promise.resolve().then(()=>require("./CheckInstallModal-C1Wv-gKs.cjs"))).CheckInstallModal})),Jt=()=>{const{activeModal:e,closeModal:t,openModal:r}=$e();let o=null;switch(e){case"goToSafari":o=m.jsx(Yt,{open:!0,onClose:t});break;case"updateIOS":o=m.jsx(Kt,{open:!0,onClose:t});break;case"isAndroid":o=m.jsx(Ht,{open:!0,onClose:t});break;case"getApproved":o=m.jsx(Qt,{open:!0,onClose:t,onStep3Complete:()=>r("checkInstall")});break;case"checkInstall":o=m.jsx(Zt,{open:!0,onClose:t});break;default:o=null}return m.jsx(x.Suspense,{fallback:null,children:o})},Xt=({children:e,messages:t})=>{const r=x.useMemo(()=>De(fe,t),[t]);return m.jsx(Ue.Provider,{value:r,children:m.jsxs(We.Provider,{value:!0,children:[e,m.jsx(Jt,{})]})})};exports.AVERAGE_CHECK_TIME=Fe;exports.AVERAGE_INSTALL_TIME=Tt;exports.AVERAGE_LOADING_TIME=qe;exports.Button=K;exports.InstallAppButton=Dt;exports.InstallWidgetProvider=Xt;exports.clsx=ze;exports.cn=G;exports.defaultMessages=fe;exports.useMessages=Ve;