@dub/ui 0.2.0 → 0.2.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.
- package/dist/accordion.mjs +1 -1
- package/dist/animated-size-container.d.ts +9 -9
- package/dist/badge.d.ts +1 -1
- package/dist/button.mjs +1 -1
- package/dist/carousel.mjs +1 -1
- package/dist/chunk-22LPXTE5.mjs +2 -0
- package/dist/chunk-25DALMNI.mjs +2 -0
- package/dist/chunk-2C5NOZM4.mjs +2 -0
- package/dist/chunk-2DK3IGGO.mjs +2 -0
- package/dist/chunk-2FPUQJXV.mjs +2 -0
- package/dist/chunk-2M3QZ3XT.mjs +6 -0
- package/dist/chunk-36SVUOEJ.mjs +2 -0
- package/dist/chunk-3DSKTZHU.mjs +2 -0
- package/dist/chunk-3FN3SHKS.mjs +2 -0
- package/dist/chunk-3GYP6AQK.mjs +6 -0
- package/dist/chunk-3MUTQCUO.mjs +2 -0
- package/dist/chunk-3Q243FX2.mjs +2 -0
- package/dist/chunk-3SPSQCV4.mjs +2 -0
- package/dist/chunk-3TSYDDMP.mjs +2 -0
- package/dist/chunk-3UXRXXLI.mjs +2 -0
- package/dist/chunk-3W4I7K7B.mjs +6 -0
- package/dist/chunk-3ZLLTZPU.mjs +2 -0
- package/dist/chunk-466V4O2K.mjs +2 -0
- package/dist/chunk-4C2XKGIR.mjs +2 -0
- package/dist/chunk-4CQHKXKZ.mjs +2 -0
- package/dist/chunk-4J5FNJ4S.mjs +2 -0
- package/dist/chunk-4JCGG7YZ.mjs +2 -0
- package/dist/chunk-4KO56BF6.mjs +2 -0
- package/dist/chunk-4OMWHP4I.mjs +2 -0
- package/dist/chunk-4U7FKZ5R.mjs +2 -0
- package/dist/chunk-4XJUWVL5.mjs +2 -0
- package/dist/chunk-4XNCD47K.mjs +2 -0
- package/dist/chunk-4Y25GOWJ.mjs +2 -0
- package/dist/chunk-54W3WE6Y.mjs +2 -0
- package/dist/chunk-55MW6BPC.mjs +2 -0
- package/dist/chunk-5B75SYSW.mjs +2 -0
- package/dist/chunk-5GA24DQQ.mjs +2 -0
- package/dist/chunk-5OFRT3A3.mjs +6 -0
- package/dist/chunk-5OQYNH24.mjs +2 -0
- package/dist/chunk-5SQRHOY4.mjs +2 -0
- package/dist/chunk-5XX7CY3Z.mjs +2 -0
- package/dist/chunk-5YG5ZIIV.mjs +2 -0
- package/dist/chunk-63WNLYNN.mjs +2 -0
- package/dist/chunk-6BNQK5OH.mjs +2 -0
- package/dist/chunk-6BOEMU4X.mjs +6 -0
- package/dist/chunk-6F2MPKDJ.mjs +2 -0
- package/dist/chunk-6JC6WGUG.mjs +2 -0
- package/dist/chunk-6KBHXJNB.mjs +6 -0
- package/dist/chunk-6R2J66MJ.mjs +2 -0
- package/dist/chunk-6RMBJ3DF.mjs +2 -0
- package/dist/chunk-6RMWIJL4.mjs +2 -0
- package/dist/chunk-6S3AFM7Z.mjs +2 -0
- package/dist/chunk-6YZAPOXQ.mjs +2 -0
- package/dist/chunk-6Z4HGQTJ.mjs +6 -0
- package/dist/chunk-7453OC46.mjs +2 -0
- package/dist/chunk-7HLCL4AA.mjs +2 -0
- package/dist/chunk-7M4GLBQZ.mjs +2 -0
- package/dist/chunk-7O4GRGY4.mjs +2 -0
- package/dist/chunk-7RIZSGJY.mjs +2 -0
- package/dist/chunk-7TXENSLO.mjs +2 -0
- package/dist/chunk-7VLTF24H.mjs +2 -0
- package/dist/chunk-7WDOLWFA.mjs +2 -0
- package/dist/chunk-7ZSYFIWP.mjs +2 -0
- package/dist/chunk-A4DNB5TT.mjs +6 -0
- package/dist/chunk-A6VSANRL.mjs +2 -0
- package/dist/chunk-AG5RM2QP.mjs +2 -0
- package/dist/chunk-ANFQKH2O.mjs +2 -0
- package/dist/chunk-AOYP5S3S.mjs +2 -0
- package/dist/chunk-ASRB5QWD.mjs +2 -0
- package/dist/chunk-AY63N3KD.mjs +2 -0
- package/dist/chunk-B2NY62YX.mjs +2 -0
- package/dist/chunk-BA3HGSD7.mjs +2 -0
- package/dist/chunk-BFK72RYD.mjs +2 -0
- package/dist/chunk-BFRNQ7YG.mjs +2 -0
- package/dist/chunk-BIF3AHKG.mjs +2 -0
- package/dist/chunk-BKVLVIDM.mjs +2 -0
- package/dist/chunk-BPM5MSLD.mjs +6 -0
- package/dist/chunk-BS6YW7HI.mjs +2 -0
- package/dist/chunk-BVFO6PQK.mjs +2 -0
- package/dist/chunk-C3GKJDGC.mjs +2 -0
- package/dist/chunk-C3NIUHGX.mjs +2 -0
- package/dist/chunk-C42MNA6M.mjs +2 -0
- package/dist/chunk-C7I455MI.mjs +6 -0
- package/dist/chunk-CAJK5FXZ.mjs +2 -0
- package/dist/chunk-CC3TUQTU.mjs +2 -0
- package/dist/chunk-CNQS5CTF.mjs +2 -0
- package/dist/chunk-CO5ICJRX.mjs +2 -0
- package/dist/chunk-CQ43ZXOF.mjs +2 -0
- package/dist/chunk-CR2A3IZX.mjs +2 -0
- package/dist/chunk-CXJ7M3UU.mjs +2 -0
- package/dist/chunk-CXLK2SVH.mjs +2 -0
- package/dist/chunk-CYZ7V3CP.mjs +2 -0
- package/dist/chunk-DE4AGMW5.mjs +2 -0
- package/dist/chunk-DIDIOOPN.mjs +6 -0
- package/dist/chunk-DIY6HAJR.mjs +6 -0
- package/dist/chunk-DKJE5Z4Z.mjs +6 -0
- package/dist/chunk-DNURDVDD.mjs +2 -0
- package/dist/chunk-DWW2DMGM.mjs +2 -0
- package/dist/chunk-EBMI7RQB.mjs +2 -0
- package/dist/chunk-EGHGNLGL.mjs +2 -0
- package/dist/chunk-EGUYAZSK.mjs +2 -0
- package/dist/chunk-EUQHARY3.mjs +2 -0
- package/dist/chunk-EXJA32FJ.mjs +2 -0
- package/dist/chunk-EYMKLUXA.mjs +2 -0
- package/dist/chunk-EZTYPIVS.mjs +2 -0
- package/dist/chunk-F57SPNCA.mjs +2 -0
- package/dist/chunk-FHKLPCL6.mjs +6 -0
- package/dist/chunk-FYFTNMNX.mjs +2 -0
- package/dist/chunk-GD63WH6C.mjs +2 -0
- package/dist/chunk-GKQ6TXG4.mjs +2 -0
- package/dist/chunk-GQULVZET.mjs +2 -0
- package/dist/chunk-GRLR2DEJ.mjs +2 -0
- package/dist/chunk-GSHAF3BW.mjs +2 -0
- package/dist/chunk-GUW27FGB.mjs +2 -0
- package/dist/chunk-H3KVAA3L.mjs +2 -0
- package/dist/chunk-HBGQJAIF.mjs +2 -0
- package/dist/chunk-HEYTZ2GZ.mjs +2 -0
- package/dist/chunk-HQGMPF2J.mjs +2 -0
- package/dist/chunk-HTE3HCYE.mjs +6 -0
- package/dist/chunk-HUS7RJ7S.mjs +2 -0
- package/dist/chunk-HZ3CGBYT.mjs +2 -0
- package/dist/chunk-I5YOZOBR.mjs +2 -0
- package/dist/chunk-I6C2CC52.mjs +2 -0
- package/dist/chunk-IEFEWYPU.mjs +2 -0
- package/dist/chunk-IHJ6M7ZO.mjs +2 -0
- package/dist/chunk-IK7RVLKQ.mjs +2 -0
- package/dist/chunk-ILN6U5FP.mjs +2 -0
- package/dist/chunk-IXJTJQXG.mjs +2 -0
- package/dist/chunk-IYE5ZVTI.mjs +2 -0
- package/dist/chunk-JCPN6ZK7.mjs +6 -0
- package/dist/chunk-JGZR4PPN.mjs +2 -0
- package/dist/chunk-JNPLGH3F.mjs +2 -0
- package/dist/chunk-JOEQFNPJ.mjs +2 -0
- package/dist/chunk-JTEXV7AL.mjs +2 -0
- package/dist/chunk-KCMWT5FS.mjs +42 -0
- package/dist/chunk-KDTIC27N.mjs +2 -0
- package/dist/chunk-KDW5Q6EZ.mjs +6 -0
- package/dist/chunk-KFUPYESP.mjs +2 -0
- package/dist/chunk-KI2TZQC4.mjs +2 -0
- package/dist/chunk-KJ2ZYL24.mjs +6 -0
- package/dist/chunk-KN7RUB2P.mjs +2 -0
- package/dist/chunk-KWK3YMF5.mjs +2 -0
- package/dist/chunk-L2QX56SG.mjs +2 -0
- package/dist/chunk-L3FXDZPQ.mjs +6 -0
- package/dist/chunk-L6JQG3XI.mjs +2 -0
- package/dist/chunk-LDG5AWEL.mjs +6 -0
- package/dist/chunk-LEUMVI2P.mjs +2 -0
- package/dist/chunk-LI3WDSBM.mjs +2 -0
- package/dist/chunk-LLZKALOG.mjs +2 -0
- package/dist/chunk-LNYDEPDI.mjs +2 -0
- package/dist/chunk-LUCC6FPP.mjs +2 -0
- package/dist/chunk-LYQPYKTJ.mjs +2 -0
- package/dist/chunk-M4UMKPM2.mjs +2 -0
- package/dist/chunk-M5Z56Q6B.mjs +2 -0
- package/dist/chunk-M7CSWHLW.mjs +6 -0
- package/dist/chunk-MEMHJYV7.mjs +2 -0
- package/dist/chunk-MRHV6GND.mjs +2 -0
- package/dist/chunk-MUAFTESO.mjs +6 -0
- package/dist/chunk-N2NCGQCP.mjs +6 -0
- package/dist/chunk-N4B7OYMT.mjs +2 -0
- package/dist/chunk-N52L4FEK.mjs +2 -0
- package/dist/chunk-NBQVAQ2Z.mjs +2 -0
- package/dist/chunk-NF7GL42X.mjs +2 -0
- package/dist/chunk-NKDGPQIF.mjs +2 -0
- package/dist/chunk-NLOU42R7.mjs +2 -0
- package/dist/chunk-NSUNBZR2.mjs +2 -0
- package/dist/chunk-NYJG4OIX.mjs +2 -0
- package/dist/chunk-NZA3DEM5.mjs +6 -0
- package/dist/chunk-NZYZUPRC.mjs +2 -0
- package/dist/chunk-O66ICUF2.mjs +2 -0
- package/dist/chunk-O7452H2I.mjs +2 -0
- package/dist/chunk-OA43BTO6.mjs +2 -0
- package/dist/chunk-OEKRDPLZ.mjs +2 -0
- package/dist/chunk-OEUQJWKA.mjs +2 -0
- package/dist/chunk-OJI7HAYQ.mjs +2 -0
- package/dist/chunk-OKI57Q77.mjs +2 -0
- package/dist/chunk-OODSNPBG.mjs +2 -0
- package/dist/chunk-OUNU7HHB.mjs +2 -0
- package/dist/chunk-OZMBYXCL.mjs +6 -0
- package/dist/chunk-P44NWYR6.mjs +6 -0
- package/dist/chunk-P67VDXOE.mjs +2 -0
- package/dist/chunk-P6ZSC3DI.mjs +2 -0
- package/dist/chunk-P7ZMNF2V.mjs +6 -0
- package/dist/chunk-Q4S6TICU.mjs +2 -0
- package/dist/chunk-QCKIPL6I.mjs +2 -0
- package/dist/chunk-QFHQNDDA.mjs +2 -0
- package/dist/chunk-QHGMUQWQ.mjs +2 -0
- package/dist/chunk-QIE3DF6G.mjs +2 -0
- package/dist/chunk-QIFZOEJ2.mjs +2 -0
- package/dist/chunk-QN67EAUX.mjs +2 -0
- package/dist/chunk-R24C2XNZ.mjs +2 -0
- package/dist/chunk-R2K3UJO2.mjs +2 -0
- package/dist/chunk-R4XPNLTZ.mjs +2 -0
- package/dist/chunk-R57NJEH2.mjs +6 -0
- package/dist/chunk-RB3XE4MN.mjs +2 -0
- package/dist/chunk-REWT6S7T.mjs +2 -0
- package/dist/chunk-RNJIGTJE.mjs +2 -0
- package/dist/chunk-RNUOEFLP.mjs +2 -0
- package/dist/chunk-RQTSJJ3V.mjs +6 -0
- package/dist/chunk-RRKL6KTE.mjs +2 -0
- package/dist/chunk-SAM6AF4Y.mjs +2 -0
- package/dist/chunk-SMHQYHDD.mjs +2 -0
- package/dist/chunk-SNXR2YAS.mjs +2 -0
- package/dist/chunk-SORM3PGH.mjs +2 -0
- package/dist/chunk-SPLH5W5R.mjs +2 -0
- package/dist/chunk-SV5IW3UT.mjs +2 -0
- package/dist/chunk-SXLXRGRM.mjs +2 -0
- package/dist/chunk-T7ML4JP4.mjs +2 -0
- package/dist/chunk-TGBSAZMI.mjs +6 -0
- package/dist/chunk-THQ6BCSE.mjs +2 -0
- package/dist/chunk-TOM3J6XQ.mjs +2 -0
- package/dist/chunk-TWJC5FBV.mjs +2 -0
- package/dist/chunk-TWL4GBQX.mjs +2 -0
- package/dist/chunk-TXOEBRJD.mjs +2 -0
- package/dist/chunk-TZE6DQL7.mjs +2 -0
- package/dist/chunk-UAI6OU5I.mjs +2 -0
- package/dist/chunk-UGJLCRZJ.mjs +2 -0
- package/dist/chunk-UGMI7JHM.mjs +6 -0
- package/dist/chunk-UQ53WNBL.mjs +2 -0
- package/dist/chunk-UQG475AX.mjs +6 -0
- package/dist/chunk-USX3GHGZ.mjs +2 -0
- package/dist/chunk-UX3FNFYY.mjs +2 -0
- package/dist/chunk-UZL3VDPW.mjs +2 -0
- package/dist/chunk-V367ZLHD.mjs +2 -0
- package/dist/chunk-V3REFLMQ.mjs +2 -0
- package/dist/chunk-V4B3TY4P.mjs +2 -0
- package/dist/chunk-V6CYMTUE.mjs +2 -0
- package/dist/chunk-V6Q7RAQ6.mjs +2 -0
- package/dist/chunk-VDJWTQ7K.mjs +2 -0
- package/dist/chunk-VEIPHYTM.mjs +2 -0
- package/dist/chunk-VF74UHOW.mjs +2 -0
- package/dist/chunk-VGAF532P.mjs +2 -0
- package/dist/chunk-VHHPYOBE.mjs +2 -0
- package/dist/chunk-VI4AGZAS.mjs +2 -0
- package/dist/chunk-VILA2CPZ.mjs +2 -0
- package/dist/chunk-VJIEB7PH.mjs +2 -0
- package/dist/chunk-VM3KDHFP.mjs +6 -0
- package/dist/chunk-VN7CMEQU.mjs +2 -0
- package/dist/chunk-VRMQDFWA.mjs +2 -0
- package/dist/chunk-VWVLO3UN.mjs +2 -0
- package/dist/chunk-W74XX6DF.mjs +2 -0
- package/dist/chunk-WCBGKDYJ.mjs +2 -0
- package/dist/chunk-WGJ64SOF.mjs +2 -0
- package/dist/chunk-WKHGPO7B.mjs +2 -0
- package/dist/chunk-WNKHL6BO.mjs +2 -0
- package/dist/chunk-X27HVIWJ.mjs +2 -0
- package/dist/chunk-X2X5RMNS.mjs +2 -0
- package/dist/chunk-XGYRMNAC.mjs +2 -0
- package/dist/chunk-XKBAWGZQ.mjs +2 -0
- package/dist/chunk-Y5OGJ44Z.mjs +2 -0
- package/dist/chunk-Y5ZEDVFT.mjs +2 -0
- package/dist/chunk-Y7ZY4ALF.mjs +2 -0
- package/dist/chunk-YB6Q4YAR.mjs +2 -0
- package/dist/chunk-YBIZWTBK.mjs +2 -0
- package/dist/chunk-YCKK7MKE.mjs +2 -0
- package/dist/chunk-YCVYFS5C.mjs +6 -0
- package/dist/chunk-YNLG72RG.mjs +2 -0
- package/dist/chunk-YX6BGBUK.mjs +2 -0
- package/dist/chunk-Z633ROAB.mjs +6 -0
- package/dist/chunk-ZFFH5KGV.mjs +2 -0
- package/dist/chunk-ZHXCYV2O.mjs +6 -0
- package/dist/chunk-ZKZOJWOW.mjs +2 -0
- package/dist/chunk-ZLSNPOU7.mjs +2 -0
- package/dist/chunk-ZNYEU7EO.mjs +2 -0
- package/dist/chunk-ZO7I6T3P.mjs +2 -0
- package/dist/chunk-ZU5ILJUQ.mjs +2 -0
- package/dist/chunk-ZVQPULYC.mjs +2 -0
- package/dist/chunk-ZZBVD2Z5.mjs +2 -0
- package/dist/combobox/index.d.ts +8 -0
- package/dist/combobox/index.mjs +1 -1
- package/dist/copy-button.mjs +1 -1
- package/dist/date-picker/date-range-picker.mjs +1 -1
- package/dist/date-picker/presets.mjs +1 -1
- package/dist/file-upload.d.ts +5 -1
- package/dist/file-upload.mjs +1 -1
- package/dist/filter/filter-select.mjs +1 -1
- package/dist/footer.mjs +1 -1
- package/dist/form.mjs +1 -1
- package/dist/icons/continents/index.mjs +1 -1
- package/dist/icons/elxo.d.ts +6 -0
- package/dist/icons/elxo.mjs +2 -0
- package/dist/icons/index.d.ts +8 -0
- package/dist/icons/index.mjs +1 -1
- package/dist/icons/nucleo/book2-fill.d.ts +6 -0
- package/dist/icons/nucleo/book2-fill.mjs +2 -0
- package/dist/icons/nucleo/bullet-list-fill.d.ts +6 -0
- package/dist/icons/nucleo/bullet-list-fill.mjs +2 -0
- package/dist/icons/nucleo/connected-dots-fill.d.ts +6 -0
- package/dist/icons/nucleo/connected-dots-fill.mjs +2 -0
- package/dist/icons/nucleo/cube-settings-fill.d.ts +6 -0
- package/dist/icons/nucleo/cube-settings-fill.mjs +2 -0
- package/dist/icons/nucleo/feather-fill.d.ts +6 -0
- package/dist/icons/nucleo/feather-fill.mjs +2 -0
- package/dist/icons/nucleo/headset-fill.d.ts +6 -0
- package/dist/icons/nucleo/headset-fill.mjs +2 -0
- package/dist/icons/nucleo/message-smile.d.ts +6 -0
- package/dist/icons/nucleo/message-smile.mjs +2 -0
- package/dist/icons/nucleo/toggle2-fill.d.ts +6 -0
- package/dist/icons/nucleo/toggle2-fill.mjs +2 -0
- package/dist/icons/product-hunt.mjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +19 -17
- package/dist/index.mjs +1 -1
- package/dist/input.mjs +1 -1
- package/dist/link-logo.mjs +1 -1
- package/dist/link-preview.mjs +1 -1
- package/dist/nav/content/graphics/analytics-graphic.d.ts +6 -0
- package/dist/nav/content/graphics/analytics-graphic.mjs +2 -0
- package/dist/nav/content/graphics/links-graphic.d.ts +6 -0
- package/dist/nav/content/graphics/links-graphic.mjs +2 -0
- package/dist/nav/content/product-content.mjs +1 -1
- package/dist/nav/content/resources-content.mjs +1 -1
- package/dist/nav/content/shared.d.ts +202 -4
- package/dist/nav/content/shared.mjs +1 -1
- package/dist/nav/content/solutions-content.mjs +1 -1
- package/dist/nav/nav-mobile.d.ts +2 -2
- package/dist/nav/nav-mobile.mjs +1 -1
- package/dist/nav/nav.d.ts +9 -5
- package/dist/nav/nav.mjs +1 -1
- package/dist/nav-wordmark.mjs +1 -1
- package/dist/status-badge.d.ts +8 -0
- package/dist/status-badge.mjs +1 -1
- package/dist/switch.mjs +1 -1
- package/dist/table/table.mjs +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.mjs +1 -1
- package/dist/utm-builder.mjs +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as T}from"./chunk-UQ53WNBL.mjs";import{a as H}from"./chunk-UZL3VDPW.mjs";import{a as S,e as W}from"./chunk-6YZAPOXQ.mjs";import{a as E}from"./chunk-TEY5O3RA.mjs";import{a as C}from"./chunk-BR2VFDDF.mjs";import{a as V}from"./chunk-ZN3PNOIE.mjs";import{a as _}from"./chunk-AXZJPLZ2.mjs";import{k as L}from"./chunk-ER4DXXJA.mjs";import{i as w,j as P,l as M,m as l}from"./chunk-HVAJT6I7.mjs";import*as a from"@radix-ui/react-navigation-menu";import{cva as Q}from"class-variance-authority";import X from"js-cookie";import v from"next/link";import{useParams as tt,useSelectedLayoutSegment as et}from"next/navigation";import{createContext as ot}from"react";import rt from"swr";import{useCallback as O,useEffect as R,useState as A}from"react";function x(i){let[o,r]=A(!1),s=O(()=>{r(window.scrollY>i)},[i]);return R(()=>(window.addEventListener("scroll",s),()=>window.removeEventListener("scroll",s)),[s]),R(()=>{s()},[s]),o}import*as d from"@radix-ui/react-popover";import{BoxSelect as Z,Home as G,LayoutGrid as j,Type as z}from"lucide-react";import{useParams as U}from"next/navigation";import{useCallback as $,useContext as F,useState as Y}from"react";import{toast as q}from"sonner";import{jsx as e,jsxs as D}from"react/jsx-runtime";var J=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,K=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function I({variant:i="full",isInApp:o,className:r}){let{domain:s="dub.co"}=U(),{theme:b}=F(N),[h,c]=Y(!1),f=$(n=>{n.preventDefault(),c(!0)},[]),[,g]=_();function m(n){q.promise(g(n),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return D(d.Root,{open:h,onOpenChange:c,children:[e(d.Anchor,{asChild:!0,children:e("div",{onContextMenu:f,className:"max-w-fit",children:i==="full"?e(E,{className:r}):e(C,{className:l("h-8 w-8 transition-all duration-75 active:scale-95",r)})})}),e(d.Portal,{children:e(d.Content,{sideOffset:14,align:"start",className:l("z-50 -mt-1.5",!o&&"-translate-x-8",b==="dark"&&"dark"),onClick:n=>{n.stopPropagation(),c(!1)},children:D("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(p,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>m(J),icon:e(C,{className:"h-4 w-4"})}),e(p,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>m(K),icon:e(z,{strokeWidth:2,className:"h-4 w-4"})}),e(p,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(Z,{strokeWidth:2,className:"h-4 w-4"})}),o||s!="dub.co"?e(p,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${o?"/home":""}`,"_blank"),icon:e(G,{strokeWidth:2,className:"h-4 w-4"})}):e(p,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e(j,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function p({className:i,...o}){return e(L,{className:l("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",i),...o})}import{Fragment as nt,jsx as t,jsxs as u}from"react/jsx-runtime";var N=ot({theme:"light"}),at=[{name:"Product",content:T,childItems:S},{name:"Resources",content:H,childItems:W},{name:"Enterprise",href:"/enterprise"},{name:"Customers",href:"/customers"},{name:"Pricing",href:"/pricing"}],B=Q(["block rounded-md px-3 py-1.5 text-sm text-gray-900/60 hover:text-gray-900/80","dark:text-white/70 dark:hover:text-white","transition-colors ease-out"],{variants:{isActive:{true:"text-gray-900/80 dark:text-white"}}});function Dt({theme:i="light",staticDomain:o}){let{domain:r="dub.co"}=tt();o&&(r=o);let s=x(80),b=x(40),h=et(),{data:c,isLoading:f}=rt(r.endsWith("dub.co")&&"/api/auth/session",M,{dedupingInterval:6e4}),g=!!(r==="dub.co"&&X.get("dub_id"));return t(N.Provider,{value:{theme:i},children:u("div",{className:l("sticky inset-x-0 top-0 z-30 w-full transition-all",i==="dark"&&"dark"),children:[t("div",{className:l("absolute inset-0 block transition-all lg:hidden",b&&"bg-white/75 backdrop-blur-md dark:bg-black/75")}),t(V,{className:"relative",children:u("div",{className:"flex h-14 items-center justify-between",children:[t(v,{className:"grow basis-0",href:w("/home",r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:"Logo"}),children:t(I,{})}),u(a.Root,{delayDuration:0,className:"relative hidden lg:block",children:[u(a.List,{className:"relative flex flex-row gap-2 px-2 py-0.5",children:[t("div",{className:"absolute inset-0 -z-[1]",children:t("div",{className:l("absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 rounded-full border border-gray-200 bg-white/75 drop-shadow-sm backdrop-blur-lg transition-all dark:border-white/10 dark:bg-black/75",s&&"h-14 w-screen rounded-none drop-shadow-none")})}),at.map(({name:m,href:n,content:k})=>{let y=n===`/${h}`||n==="/"&&h===null;return u(a.Item,{children:[t(it,{trigger:!!k,children:n!==void 0?t(v,{id:`nav-${n}`,href:w(n,r,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:r,utm_content:m}),className:B({isActive:y}),children:m}):t("button",{className:B({isActive:y}),children:m})}),k&&t(a.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(k,{domain:r})})]},m)})]}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(a.Viewport,{className:l("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end lg:flex",children:c&&Object.keys(c).length>0?t(v,{href:P,className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Dashboard"}):f?null:u(nt,{children:[t(v,{href:g?"https://app.dub.co/login":"https://d.to/login",className:"animate-fade-in rounded-full px-4 py-1.5 text-sm font-medium text-gray-500 transition-colors ease-out hover:text-black dark:text-white dark:hover:text-white/70",children:"Log in"}),t(v,{href:g?"https://app.dub.co/register":"https://d.to/register",className:"animate-fade-in rounded-full border border-black bg-black px-4 py-1.5 text-sm text-white transition-all hover:bg-gray-800 hover:ring-4 hover:ring-gray-200 dark:border-white dark:bg-white dark:text-gray-600 dark:hover:bg-white dark:hover:text-gray-800 dark:hover:hover:shadow-[0_0_25px_5px_rgba(256,256,256,0.2)] dark:hover:ring-0",children:"Sign Up"})]})})]})})]})})}function it({trigger:i,children:o}){return i?t(a.Trigger,{asChild:!0,children:o}):o}export{x as a,N as b,at as c,Dt as d,I as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-DIY6HAJR.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-P44NWYR6.mjs";import{a as x,e as k,f as L}from"./chunk-GKQ6TXG4.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-RRKL6KTE.mjs";import{a as I}from"./chunk-CXJ7M3UU.mjs";import{a as _,e as T}from"./chunk-R2K3UJO2.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features","/customers"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-P44NWYR6.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{o as C}from"./chunk-TOM3J6XQ.mjs";import{jsx as e}from"react/jsx-runtime";function o({className:t}){return e("svg",{width:"46",height:"24",viewBox:"0 0 46 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-6 w-auto text-black dark:text-white",t),children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z",fill:"currentColor"})})}export{o as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as y}from"./chunk-V6CYMTUE.mjs";import{a as f}from"./chunk-CZSSD6PV.mjs";import{a as d}from"./chunk-DDH3RGOS.mjs";import{a as m}from"./chunk-SBK5CRMY.mjs";import{a as g}from"./chunk-JOEQFNPJ.mjs";import{a as h}from"./chunk-55MW6BPC.mjs";import{a as u}from"./chunk-7JOFCAZW.mjs";import{a}from"./chunk-DWACNU5E.mjs";import{a as p}from"./chunk-VHJB3C2A.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a as c}from"./chunk-Q4S6TICU.mjs";import{a as n}from"./chunk-PDSUXFDU.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as r}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as s}from"./chunk-TNAH7N5Q.mjs";import{a as i}from"./chunk-PRJVDP45.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var x=[{title:"Dub Links",description:"Short links with superpowers",icon:m,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:d,href:"/help/article/dub-analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:u,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:p,href:"/docs/integrations"}],P=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Complex link infrastructure",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:y,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],S=[{icon:a,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:f,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:n,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:r,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:i,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],k=[{icon:h,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:c,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:g,title:"Help Center",description:"Answers to your questions",href:"/help"}],E=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],R=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{x as a,P as b,S as c,v as d,k as e,E as f,R as g};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-CO5ICJRX.mjs";import{a as I}from"./chunk-CXJ7M3UU.mjs";import{a as _,e as T}from"./chunk-R2K3UJO2.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features","/customers"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{d as c,e as m}from"./chunk-6R2J66MJ.mjs";import{a as p,c as f,f as v}from"./chunk-GSHAF3BW.mjs";import{a as g}from"./chunk-BKVLVIDM.mjs";import{a as l}from"./chunk-BOCPUR5Z.mjs";import{m as s,o as d}from"./chunk-TOM3J6XQ.mjs";import x from"next/link";import{jsx as e,jsxs as a}from"react/jsx-runtime";function w({domain:t}){return a("div",{className:"grid w-[584px] grid-cols-2 gap-4 p-5",children:[e("div",{children:e("div",{className:"flex flex-col gap-4",children:m.map(({icon:n,title:r,description:i,href:o})=>e(v,{title:r,description:i,icon:n,href:(void 0)(o,t)},r))})}),a("div",{className:"flex flex-col gap-4",children:[a("div",{children:[e("p",{className:(void 0)(p,"my-2"),children:"SDKs"}),e("div",{className:"flex flex-col gap-0.5",children:c.map(({icon:n,iconClassName:r,title:i,href:o})=>e(f,{href:(void 0)(o,t,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:t,utm_content:i}),icon:e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-1 dark:border-white/20 dark:bg-white/10",children:e(n,{className:(void 0)("size-5 text-gray-600 transition-colors dark:text-white/60",r)})}),title:i,showArrow:!0},o))})]}),e("div",{className:"flex grow flex-col justify-end",children:a(x,{href:(void 0)("/brand",t),className:"group relative flex flex-col overflow-hidden rounded-xl bg-black transition-colors duration-75 dark:border dark:border-white/20",children:[e(g,{cellSize:20,patternOffset:[0,-5],className:"text-neutral-600 [mask-image:radial-gradient(75%_50%_at_50%_0,black,transparent)]"}),e("div",{className:"pointer-events-none absolute -inset-[50%] opacity-30 blur-[20px] transition-opacity duration-300 group-hover:opacity-40 dark:group-hover:opacity-35",children:e("div",{className:(void 0)("absolute inset-[16%] rounded-xl","bg-[radial-gradient(20%_80%_at_50%_100%,#fd3a4e,transparent),radial-gradient(30%_80%_at_40%_50%,#855afc,transparent),radial-gradient(30%_80%_at_60%_50%,#72fe7d,transparent),radial-gradient(30%_100%_at_50%_50%,#e4c795,transparent)]")})}),a("div",{className:"relative flex items-center justify-between px-5 py-4",children:[a("div",{children:[e("span",{className:"text-sm font-medium leading-none text-white",children:"Dub Brand"}),e("p",{className:"mt-1 text-sm text-white/70",children:"Logos, wordmark, etc."})]}),e(l,{className:"size-6 text-white"})]})]})})]})]})}export{w as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-ZNYEU7EO.mjs";import{a as I}from"./chunk-HBGQJAIF.mjs";import{a as _,e as T}from"./chunk-NBQVAQ2Z.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-N2NCGQCP.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as i}from"./chunk-CGL6YSX7.mjs";import{a as l}from"./chunk-IGIB6XZB.mjs";import{a as c}from"./chunk-GYE7FFDN.mjs";import{a as e}from"./chunk-UUJYTAK4.mjs";import{a as s}from"./chunk-GV2NLM3E.mjs";import{o}from"./chunk-TOM3J6XQ.mjs";import{cva as d}from"class-variance-authority";import{jsx as x,jsxs as b}from"react/jsx-runtime";var f=d("flex gap-1.5 items-center max-w-fit rounded-md px-2 py-1 text-xs font-medium whitespace-nowrap",{variants:{variant:{neutral:"bg-gray-500/[.15] text-gray-600",new:"bg-blue-500/[.15] text-blue-600",success:"bg-green-500/[.15] text-green-600",pending:"bg-orange-500/[.15] text-orange-600",warning:"bg-yellow-500/[.15] text-yellow-600",error:"bg-red-500/[.15] text-red-600"}},defaultVariants:{variant:"neutral"}}),m={neutral:c,new:i,success:s,pending:l,warning:e,error:e};function v({className:g,variant:t,icon:r,onClick:n,children:u,...p}){let a=r!==null?r??m[t??"neutral"]:null;return b("span",{className:(void 0)(f({variant:t}),n&&"cursor-pointer select-none transition-[filter] duration-150 hover:brightness-75 hover:saturate-[1.25]",g),onClick:n,...p,children:[a&&x(a,{className:"h-3 w-3 shrink-0"}),u]})}export{f as a,v as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-A4DNB5TT.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as d}from"./chunk-V6CYMTUE.mjs";import{a as y}from"./chunk-5B75SYSW.mjs";import{a as m}from"./chunk-DDH3RGOS.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as g}from"./chunk-SBK5CRMY.mjs";import{a as p}from"./chunk-55MW6BPC.mjs";import{a as u}from"./chunk-SMHQYHDD.mjs";import{a}from"./chunk-4Y25GOWJ.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a as c}from"./chunk-Q4S6TICU.mjs";import{a as i}from"./chunk-TNAH7N5Q.mjs";import{a as n}from"./chunk-PDSUXFDU.mjs";import{a as s}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as r}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var C=[{title:"Dub Links",description:"Short links with superpowers",icon:g,href:"/home"},{title:"Dub Analytics",description:"Powerful real-time analytics",icon:m,href:"/help/article/dub-analytics"},{title:"Dub API",description:"Programmatic link creation at scale",icon:u,href:"/docs/api-reference/introduction"},{title:"Dub Integrations",description:"Connect Dub with your favorite tools",icon:a,href:"/docs/integrations"},{title:"Customer Stories",description:"See how our customers use Dub",icon:y,href:"/customers"}],x=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Complex link infrastructure",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:d,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],S=[{icon:n,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:r,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:i,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:s,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],P=[{icon:p,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:c,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],v=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],R=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{C as a,x as b,S as c,P as d,v as e,R as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{m as i,o as c}from"./chunk-HVAJT6I7.mjs";import{useId as l}from"react";import{jsx as r,jsxs as e}from"react/jsx-runtime";function h(o){let t=l();return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"336",height:"336",fill:"none",viewBox:"0 0 336 336",...o,className:i("pointer-events-none text-[var(--fg)] [--bg:white] [--fg:#222] [--grid:#e5e5e5] dark:[--bg:black] dark:[--fg:#fffa] dark:[--grid:#fff2]",o.className),children:[e("g",{clipPath:`url(#${t}-a)`,children:[r("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M0 0h48v48H0zM48 0h48v48H48zM96 0h48v48H96zM144 0h48v48h-48zM192 0h48v48h-48zM240 0h48v48h-48zM288 0h48v48h-48zM0 48h48v48H0zM48 48h48v48H48zM96 48h48v48H96zM144 48h48v48h-48zM192 48h48v48h-48zM240 48h48v48h-48zM288 48h48v48h-48zM0 96h48v48H0zM48 96h48v48H48zM96 96h48v48H96zM144 96h48v48h-48zM192 96h48v48h-48zM240 96h48v48h-48zM288 96h48v48h-48zM0 144h48v48H0zM48 144h48v48H48zM96 144h48v48H96zM144 144h48v48h-48zM192 144h48v48h-48zM240 144h48v48h-48zM288 144h48v48h-48zM0 192h48v48H0zM48 192h48v48H48zM96 192h48v48H96zM144 192h48v48h-48zM192 192h48v48h-48zM240 192h48v48h-48zM288 192h48v48h-48zM0 240h48v48H0zM48 240h48v48H48zM96 240h48v48H96zM144 240h48v48h-48zM192 240h48v48h-48zM240 240h48v48h-48zM288 240h48v48h-48zM0 288h48v48H0zM48 288h48v48H48zM96 288h48v48H96zM144 288h48v48h-48zM192 288h48v48h-48zM240 288h48v48h-48zM288 288h48v48h-48z"}),r("circle",{cx:"192",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"192",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-b)`,d:"M192 144v-35"}),r("circle",{cx:"192",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"192",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"192",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-c)`,d:"M192 228v-35"}),r("circle",{cx:"144",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"144",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-d)`,d:"M144 144v-35"}),r("circle",{cx:"144",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"144",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"144",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-e)`,d:"M144 228v-35"}),r("circle",{cx:"96",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"96",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-f)`,d:"M96 144v-35"}),r("circle",{cx:"96",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"96",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"96",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-g)`,d:"M96 228v-35"}),r("circle",{cx:"240",cy:"144",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"108",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"108",r:"2",fill:"#EA580C"}),r("circle",{cx:"240",cy:"144",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-h)`,d:"M240 144v-35"}),r("circle",{cx:"240",cy:"228",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"192",r:"4",fill:"#EA580C",opacity:"0.1"}),r("circle",{cx:"240",cy:"192",r:"2",fill:"#EA580C"}),r("circle",{cx:"240",cy:"228",r:"2",fill:"#EA580C"}),r("path",{stroke:`url(#${t}-i)`,d:"M240 228v-35"}),r("circle",{cx:"48",cy:"168",r:"4",fill:"#EAB308",opacity:"0.1"}),r("circle",{cx:"48",cy:"168",r:"2",fill:"#EAB308"}),r("path",{stroke:`url(#${t}-j)`,d:"M13 168h34"}),r("circle",{cx:"4",cy:"4",r:"4",fill:"#EAB308",opacity:"0.1",transform:"matrix(-1 0 0 1 292 164)"}),r("circle",{cx:"2",cy:"2",r:"2",fill:"#EAB308",transform:"matrix(-1 0 0 1 290 166)"}),r("path",{stroke:`url(#${t}-k)`,d:"M323 168h-34"}),e("g",{children:[r("rect",{width:"24",height:"24",x:"228",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"228.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 92.222V96l2.889 2"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M240 89.555a6.444 6.444 0 0 1 0 12.889"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M235.276 100.891a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.389 96.333a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M235.276 91.776a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.367 102.288a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 98.8a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M233.879 93.868a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M237.368 90.38a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"228",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"228.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M238.889 243.778h-3.556a1.777 1.777 0 0 1-1.777-1.778v-4c0-.982.795-1.778 1.777-1.778h9.334c.982 0 1.777.796 1.777 1.778v.222"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M236.889 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778M240 240.889a.889.889 0 1 0 0-1.778.889.889 0 0 0 0 1.778"}),r("path",{fill:"currentColor",fillOpacity:"0.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M246 242.889h-3.556a.89.89 0 0 0-.888.889v1.777c0 .491.398.889.888.889H246a.89.89 0 0 0 .889-.889v-1.777a.89.89 0 0 0-.889-.889"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M242.889 242.889v-1.778a1.333 1.333 0 0 1 2.667 0v1.778"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"180",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"180.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M188.667 90h-2a.666.666 0 0 0-.667.667v2c0 .368.298.666.667.666h2a.666.666 0 0 0 .666-.666v-2a.666.666 0 0 0-.666-.667M197.333 90h-2a.666.666 0 0 0-.666.667v2c0 .368.298.666.666.666h2a.667.667 0 0 0 .667-.666v-2a.667.667 0 0 0-.667-.667M188.667 98.667h-2a.666.666 0 0 0-.667.666v2c0 .368.298.667.667.667h2a.667.667 0 0 0 .666-.667v-2a.666.666 0 0 0-.666-.666M198 98.667h-2a1.333 1.333 0 0 0-1.333 1.333v2M198 102v.01M192 92.667v2A1.334 1.334 0 0 1 190.667 96h-2M186 96h.01M192 90h.01M192 98.667v.01M194.667 96h.666M198 96v.01M192 102v-.667"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"180",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"180.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M192 246.445a6.445 6.445 0 1 0-.002-12.89 6.445 6.445 0 0 0 .002 12.89M192 238.222v-2M193.778 240h2M192 241.778v2M190.222 240h-2"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"132",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"132.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M148.667 90h-9.334c-.736 0-1.333.597-1.333 1.333v9.334c0 .736.597 1.333 1.333 1.333h9.334c.736 0 1.333-.597 1.333-1.333v-9.334c0-.736-.597-1.333-1.333-1.333"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M142 95.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666M150 98l-2.057-2.057a1.334 1.334 0 0 0-1.886 0L140 102"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"132",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"132.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M138.889 234h4.375c.471 0 .924.188 1.257.521l5.111 5.111c.694.694.694 1.82 0 2.514l-3.486 3.486a1.78 1.78 0 0 1-2.514 0l-5.111-5.111a1.78 1.78 0 0 1-.521-1.257v-4.375c0-.491.398-.889.889-.889"}),r("path",{fill:"currentColor",fillOpacity:"0.5",d:"M141.556 238.667a1.112 1.112 0 1 0-.002-2.224 1.112 1.112 0 0 0 .002 2.224"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"84",y:"84",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"84.5",y:"84.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m96.889 93.778 2 2-2 2"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M98.889 95.778h-3.111c-.982 0-1.778.795-1.778 1.778V98"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m97.258 101.854 4.596-4.597a1.777 1.777 0 0 0 0-2.514l-4.596-4.597a1.78 1.78 0 0 0-2.514 0l-4.597 4.597a1.78 1.78 0 0 0 0 2.514l4.597 4.597c.694.694 1.82.694 2.514 0"})]}),e("g",{children:[r("rect",{width:"24",height:"24",x:"84",y:"228",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"23",height:"23",x:"84.5",y:"228.5",stroke:"currentColor",className:"text-[var(--grid)]",rx:"7.5"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M92.667 246.444a2.222 2.222 0 1 0 .001-4.443 2.222 2.222 0 0 0-.001 4.443M99.333 246.444a2.222 2.222 0 1 0 .002-4.443 2.222 2.222 0 0 0-.002 4.443M98.563 233.556h-5.126a.89.89 0 0 0-.88.763l-.335 2.348-2.666 2.666h12.888l-2.666-2.666-.335-2.348a.89.89 0 0 0-.88-.763M92.222 236.667h7.556"}),r("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M94.738 243.415a1.775 1.775 0 0 1 2.524 0"})]}),r("g",{filter:`url(#${t}-t)`,opacity:"0.16",children:r("ellipse",{cx:"62",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),r("g",{filter:`url(#${t}-u)`,opacity:"0.16",children:r("ellipse",{cx:"276",cy:"168",fill:"#EAB308",rx:"33",ry:"8"})}),r("rect",{width:"240",height:"48",x:"48",y:"144",fill:"currentColor",className:"text-[var(--bg)]",rx:"8"}),r("rect",{width:"240",height:"48",x:"48",y:"144",stroke:"currentColor",className:"text-[var(--grid)]",strokeOpacity:"0.5",strokeWidth:"0.5",rx:"8"}),e("g",{children:[r("rect",{width:"24",height:"24",x:"61",y:"156",fill:`url(#${t}-w)`,rx:"12"}),r("rect",{width:"25",height:"25",x:"60.5",y:"155.5",stroke:"#030712",strokeOpacity:"0.1",rx:"12.5"}),r("circle",{cx:"73",cy:"168",r:"6",fill:`url(#${t}-x)`})]}),r("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"12",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:r("tspan",{x:"97",y:"165.364",children:"d.to/try"})}),r("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"M104.931 176.792h-4.084a.78.78 0 0 1-.778-.778v-1.556"}),r("path",{stroke:"#A3A3A3",strokeLinecap:"round",strokeLinejoin:"round",d:"m103.278 175.139 1.653 1.653-1.653 1.653"}),r("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"9",letterSpacing:"-.02em",style:{whiteSpace:"pre"},children:r("tspan",{x:"110",y:"179.773",children:"app.dub.co/register"})}),r("path",{className:"text-[var(--fg)]",fill:"currentColor",fillOpacity:"0.04",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),r("path",{className:"text-[var(--grid)]",stroke:"currentColor",strokeWidth:"0.5",d:"M229.25 164.6c0-1.684 0-2.932.081-3.92.08-.985.24-1.69.546-2.29a5.75 5.75 0 0 1 2.513-2.513c.6-.306 1.305-.466 2.29-.546.988-.081 2.236-.081 3.92-.081h26.8c1.684 0 2.932 0 3.92.081.985.08 1.69.24 2.29.546a5.75 5.75 0 0 1 2.513 2.513c.306.6.466 1.305.546 2.29.081.988.081 2.236.081 3.92v6.8c0 1.684 0 2.932-.081 3.92-.08.985-.24 1.69-.546 2.29a5.75 5.75 0 0 1-2.513 2.513c-.6.306-1.305.466-2.29.546-.988.081-2.236.081-3.92.081h-26.8c-1.684 0-2.932 0-3.92-.081-.985-.08-1.69-.24-2.29-.546a5.75 5.75 0 0 1-2.513-2.513c-.306-.6-.466-1.305-.546-2.29-.081-.988-.081-2.236-.081-3.92z"}),r("g",{stroke:"currentColor",strokeOpacity:"0.7",strokeLinecap:"round",strokeLinejoin:"round",clipPath:`url(#${t}-y)`,children:r("path",{d:"m240.395 167.185 4.876 1.673c.148.051.15.259.004.313l-2.186.822a.17.17 0 0 0-.097.098l-.822 2.186a.166.166 0 0 1-.313-.005l-1.674-4.876a.167.167 0 0 1 .212-.212zM243.019 170.021l2.808 2.808M240.165 163.167v1.333M242.995 164.338l-.943.943M237.338 169.995l.943-.943M236.166 167.166h1.333M237.338 164.338l.943.943"})}),r("text",{xmlSpace:"preserve",fill:"currentColor",className:"text-[var(--fg)]",fontSize:"10",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:r("tspan",{x:"251",y:"171.636",children:"51K"})})]}),e("defs",{children:[e("linearGradient",{id:`${t}-b`,x1:"192.5",x2:"192.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-c`,x1:"192.5",x2:"192.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-d`,x1:"144.5",x2:"144.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-e`,x1:"144.5",x2:"144.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-f`,x1:"96.5",x2:"96.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-g`,x1:"96.5",x2:"96.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-h`,x1:"240.5",x2:"240.5",y1:"109",y2:"144",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-i`,x1:"240.5",x2:"240.5",y1:"193",y2:"228",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EA580C"}),r("stop",{offset:"0.625",stopColor:"#EA580C",stopOpacity:"0.5"}),r("stop",{offset:"1",stopColor:"#EA580C"})]}),e("linearGradient",{id:`${t}-j`,x1:"13",x2:"47",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EAB308",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#EAB308"})]}),e("linearGradient",{id:`${t}-k`,x1:"323",x2:"289",y1:"168.5",y2:"168.5",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#EAB308",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#EAB308"})]}),e("linearGradient",{id:`${t}-w`,x1:"73",x2:"73",y1:"156",y2:"180",gradientUnits:"userSpaceOnUse",children:[r("stop",{stopColor:"#030712",stopOpacity:"0"}),r("stop",{offset:"1",stopColor:"#030712",stopOpacity:"0.05"})]}),e("filter",{id:`${t}-t`,width:"96",height:"46",x:"14",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[r("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),e("filter",{id:`${t}-u`,width:"96",height:"46",x:"228",y:"145",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[r("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),r("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),r("feGaussianBlur",{result:"effect1_foregroundBlur_5_744",stdDeviation:"7.5"})]}),r("clipPath",{id:`${t}-a`,children:r("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M0 0h336v336H0z"})}),r("clipPath",{id:`${t}-y`,children:r("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M235 162h12v12h-12z"})}),r("pattern",{id:`${t}-x`,width:"1",height:"1",patternContentUnits:"objectBoundingBox",children:r("use",{xlinkHref:`#${t}-z`,transform:"scale(.01563)"})}),r("image",{href:`${c}dub.co`,id:`${t}-z`,width:"64",height:"64"})]})]})}export{h as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{o as C}from"./chunk-TOM3J6XQ.mjs";import{jsx as e,jsxs as o}from"react/jsx-runtime";function V({className:l}){return o("svg",{width:"177",height:"64",viewBox:"0 0 177 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(void 0)("h-6 w-auto text-black dark:text-white",l),children:[e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M106.5 8H112.5V31.8666C112.5 31.911 112.501 31.9554 112.501 31.9999C112.501 32.0444 112.5 32.0888 112.5 32.1332V46H106.5V43.4909C104.232 45.0724 101.475 45.9999 98.5003 45.9999C90.7682 45.9999 84.5 39.7319 84.5 31.9999C84.5 24.2679 90.7682 17.9999 98.5003 17.9999C101.475 17.9999 104.232 18.9274 106.5 20.5089V8ZM98.5 39.9996C102.918 39.9996 106.5 36.418 106.5 31.9998C106.5 27.5816 102.918 24 98.5 24C94.0818 24 90.5 27.5816 90.5 31.9998C90.5 36.418 94.0818 39.9996 98.5 39.9996ZM148.5 8.0001H154.5V20.5096C156.768 18.9278 159.526 18.0002 162.5 18.0002C170.233 18.0002 176.501 24.2682 176.501 32.0002C176.501 39.7322 170.233 46.0002 162.5 46.0002C154.768 46.0002 148.5 39.7322 148.5 32.0002V32.0001V8.0001ZM162.5 39.9997C166.918 39.9997 170.5 36.4181 170.5 31.9999C170.5 27.5817 166.918 24.0001 162.5 24.0001C158.082 24.0001 154.5 27.5817 154.5 31.9999C154.5 36.4181 158.082 39.9997 162.5 39.9997ZM122.5 18H116.5V32C116.5 33.8385 116.862 35.659 117.566 37.3576C118.269 39.0561 119.301 40.5995 120.601 41.8995C121.901 43.1995 123.444 44.2307 125.143 44.9343C126.841 45.6379 128.662 46 130.5 46C132.339 46 134.159 45.6379 135.858 44.9343C137.557 44.2307 139.1 43.1995 140.4 41.8995C141.7 40.5995 142.731 39.0561 143.435 37.3576C144.139 35.659 144.501 33.8385 144.501 32H144.5V18H138.5V32H138.5C138.5 34.1216 137.657 36.1563 136.157 37.6566C134.657 39.1568 132.622 39.9996 130.5 39.9996C128.378 39.9996 126.344 39.1568 124.843 37.6566C123.343 36.1563 122.5 34.1216 122.5 32H122.5V18Z",fill:"currentColor"}),e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z",fill:"currentColor"})]})}export{V as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as v}from"./chunk-NWME2ANF.mjs";import{b as l}from"./chunk-2C5NOZM4.mjs";import{a as h}from"./chunk-4KAIJ2PN.mjs";import{a as b}from"./chunk-U4QIRPVU.mjs";import{a as g}from"./chunk-RKUUDTHF.mjs";import{a as u}from"./chunk-GLJR2QX5.mjs";import{a as f}from"./chunk-3IVWKAUU.mjs";import{a as p}from"./chunk-GHXIGUPQ.mjs";import{o as n}from"./chunk-TOM3J6XQ.mjs";import{useEffect as k,useId as C,useRef as P,useState as A}from"react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var H=[{key:"utm_source",icon:f,label:"Source",placeholder:"google",description:"Where the traffic is coming from"},{key:"utm_medium",icon:h,label:"Medium",placeholder:"cpc",description:"How the traffic is coming"},{key:"utm_campaign",icon:p,label:"Campaign",placeholder:"summer_sale",description:"The name of the campaign"},{key:"utm_term",icon:g,label:"Term",placeholder:"running shoes",description:"The term of the campaign"},{key:"utm_content",icon:b,label:"Content",placeholder:"logolink",description:"The content of the campaign"},{key:"ref",icon:u,label:"Referral",placeholder:"yoursite.com",description:"The referral of the campaign"}];function B({values:t,onChange:a,disabled:y,autoFocus:T,disabledTooltip:c,className:N}){let{isMobile:x}=v(),d=C(),[m,R]=A(!1),r=P(null);return k(()=>{r.current&&!x&&T&&setTimeout(()=>{var o;return(o=r.current)==null?void 0:o.focus()},10)},[]),e("div",{className:(void 0)("grid gap-y-3",N),children:H.map(({key:o,icon:M,label:_,placeholder:w,description:E},S)=>e("div",{className:"group relative",children:s("div",{className:"relative z-10 flex",children:[e(l,{content:s("div",{className:"p-3 text-center text-xs",children:[e("p",{className:"text-gray-600",children:E}),e("span",{className:"font-mono text-gray-400",children:o})]}),sideOffset:4,disableHoverableContent:!0,children:s("div",{className:(void 0)("flex items-center gap-1.5 rounded-l-md border-y border-l border-gray-300 bg-gray-50 px-3 py-1.5 text-gray-700",m?"sm:min-w-36":"sm:min-w-28"),onClick:()=>R(i=>!i),children:[e(M,{className:"size-4 shrink-0"}),e("label",{htmlFor:`${d}-${o}`,className:"select-none text-sm",children:m?e("span",{className:"font-mono text-xs",children:o}):_})]})}),e("div",{className:"min-w-0 grow",children:e(U,{disabledTooltip:c,children:e("input",{type:"text",id:`${d}-${o}`,ref:S===0?r:void 0,placeholder:w,disabled:y||Boolean(c),className:"size-full rounded-r-md border border-gray-300 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500 disabled:cursor-not-allowed sm:text-sm",value:t[o]||"",onChange:i=>a(o,i.target.value)})})})]})},o))})}function U({children:t,disabledTooltip:a}){return a?e(l,{content:a,disableHoverableContent:!0,children:t}):t}export{H as a,B as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{o as r}from"./chunk-TOM3J6XQ.mjs";import{jsx as e,jsxs as t}from"react/jsx-runtime";function l(h){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"349",height:"290",fill:"none",viewBox:"0 0 349 290",...h,className:(void 0)("pointer-events-none [--bg:white] [--grid:#e5e5e5] dark:[--bg:black] dark:[--grid:#fff2]",h.className),children:[t("g",{className:"text-[var(--grid)]",children:[e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M12.667 1h48v48h-48zM60.667 1h48v48h-48zM108.667 1h48v48h-48zM156.667 1h48v48h-48zM204.667 1h48v48h-48zM252.667 1h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 1h48v48h-48zM12.667 49h48v48h-48zM60.667 49h48v48h-48zM108.667 49h48v48h-48zM156.667 49h48v48h-48zM204.667 49h48v48h-48zM252.667 49h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 49h48v48h-48zM12.667 97h48v48h-48zM60.667 97h48v48h-48zM108.667 97h48v48h-48zM156.667 97h48v48h-48zM204.667 97h48v48h-48zM252.667 97h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 97h48v48h-48zM12.667 145h48v48h-48zM60.667 145h48v48h-48zM108.667 145h48v48h-48zM156.667 145h48v48h-48zM204.667 145h48v48h-48zM252.667 145h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 145h48v48h-48zM12.667 193h48v48h-48zM60.667 193h48v48h-48zM108.667 193h48v48h-48zM156.667 193h48v48h-48zM204.667 193h48v48h-48zM252.667 193h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 193h48v48h-48zM12.667 241h48v48h-48zM60.667 241h48v48h-48zM108.667 241h48v48h-48zM156.667 241h48v48h-48zM204.667 241h48v48h-48zM252.667 241h48v48h-48z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",d:"M300.667 241h48v48h-48z"})]}),e("path",{stroke:"#14B8A6",d:"M.667 196.5c93-1 267-35.5 324.5-184.5"}),e("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M204.667 145h96v48h-96z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M204.667 145h96v48h-96z"}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"158.909",children:"Clicks"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"158.909",children:"12.5K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"171.909",children:"Leads"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"171.909",children:"8.2K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"213.667",y:"184.909",children:"Sales"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"244.667",y:"184.909",children:"$10K"})}),e("path",{fill:"currentColor",className:"text-[var(--bg)]",d:"M108.667 193h96v48h-96z"}),e("path",{stroke:"currentColor",strokeWidth:"0.5",className:"text-[var(--grid)]",d:"M108.667 193h96v48h-96z"}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"206.909",children:"Desktop"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"206.909",children:"2.5K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"219.909",children:"Mobile"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"219.909",children:"1.3K"})}),e("text",{xmlSpace:"preserve",fill:"#A3A3A3",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"117.667",y:"232.909",children:"Tablet"})}),e("text",{xmlSpace:"preserve",fill:"#525252",fontSize:"8",fontWeight:"500",letterSpacing:"0em",style:{whiteSpace:"pre"},children:e("tspan",{x:"157.667",y:"232.909",children:"402"})}),e("g",{filter:"url(#a)",children:e("circle",{cx:"204.667",cy:"145",r:"3",fill:"#14B8A6"})}),e("circle",{cx:"204.667",cy:"145",r:"4",stroke:"#3EC5B8",strokeOpacity:"0.3",strokeWidth:"2"}),e("defs",{children:t("filter",{id:"a",width:"10",height:"12",x:"199.667",y:"140",colorInterpolationFilters:"sRGB",filterUnits:"userSpaceOnUse",children:[e("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),e("feColorMatrix",{in:"SourceAlpha",result:"hardAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),e("feOffset",{dy:"2"}),e("feGaussianBlur",{stdDeviation:"1"}),e("feComposite",{in2:"hardAlpha",k2:"-1",k3:"1",operator:"arithmetic"}),e("feColorMatrix",{values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.65 0"}),e("feBlend",{in2:"shape",result:"effect1_innerShadow_9_286"})]})})]})}export{l as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-O66ICUF2.mjs";import{a as I}from"./chunk-XGYRMNAC.mjs";import{a as _,d as T}from"./chunk-GKQ6TXG4.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features","/customers"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-LDG5AWEL.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as f,l as h,m as s}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return n("div",{className:s(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:s("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:s("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:s("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:s("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:g(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as o,jsxs as e}from"react/jsx-runtime";function t(r){return o("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:e("g",{fill:"currentColor",children:[o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"7.954",x2:"5.047",y1:"5.988",y2:"11.511"}),o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"10.046",x2:"12.953",y1:"5.988",y2:"11.511"}),o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"6.25",x2:"11.75",y1:"13.25",y2:"13.25"}),o("circle",{cx:"9",cy:"4",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("circle",{cx:"14",cy:"13.5",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("circle",{cx:"4",cy:"13.5",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})})}export{t as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-6RMWIJL4.mjs";import{a as I}from"./chunk-FYFTNMNX.mjs";import{a as _,e as T}from"./chunk-CR2A3IZX.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as H}from"./chunk-7TXENSLO.mjs";import{a as I}from"./chunk-CXJ7M3UU.mjs";import{a as _,e as T}from"./chunk-R2K3UJO2.mjs";import{a as R}from"./chunk-TEY5O3RA.mjs";import{a as P}from"./chunk-BR2VFDDF.mjs";import{a as E}from"./chunk-ZN3PNOIE.mjs";import{a as V}from"./chunk-AXZJPLZ2.mjs";import{j as g,k as S}from"./chunk-ER4DXXJA.mjs";import{i as N,j as L,l as W,m as a}from"./chunk-HVAJT6I7.mjs";import*as i from"@radix-ui/react-navigation-menu";import{LayoutGroup as ot}from"framer-motion";import rt from"js-cookie";import p from"next/link";import{useParams as at,usePathname as it}from"next/navigation";import{createContext as nt,useId as st}from"react";import dt from"swr";import{useCallback as j,useEffect as D,useState as z}from"react";function B(n){let[r,m]=z(!1),o=j(()=>{m(window.scrollY>n)},[n]);return D(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[o]),D(()=>{o()},[o]),r}import*as l from"@radix-ui/react-popover";import{BoxSelect as F,Home as U,LayoutGrid as $,Type as Y}from"lucide-react";import{useParams as q}from"next/navigation";import{useCallback as J,useContext as K,useState as Q}from"react";import{toast as X}from"sonner";import{jsx as e,jsxs as G}from"react/jsx-runtime";var tt=`<svg width="65" height="64" viewBox="0 0 65 64" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M32.5 64C50.1731 64 64.5 49.6731 64.5 32C64.5 20.1555 58.0648 9.81393 48.5 4.28099V31.9999V47.9998H40.5V45.8594C38.1466 47.2207 35.4143 47.9999 32.5 47.9999C23.6634 47.9999 16.5 40.8364 16.5 31.9999C16.5 23.1633 23.6634 15.9999 32.5 15.9999C35.4143 15.9999 38.1466 16.779 40.5 18.1404V1.00812C37.943 0.350018 35.2624 0 32.5 0C14.8269 0 0.500038 14.3269 0.500038 32C0.500038 49.6731 14.8269 64 32.5 64Z" fill="black"/>
|
|
4
|
+
</svg>`,et=`<svg width="46" height="24" viewBox="0 0 46 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M11 2H14V13.9332L14.0003 13.9731L14.0003 14C14.0003 14.0223 14.0002 14.0445 14 14.0668V21H11V19.7455C9.86619 20.5362 8.48733 21 7.00016 21C3.13408 21 0 17.866 0 14C0 10.134 3.13408 7 7.00016 7C8.48733 7 9.86619 7.46375 11 8.25452V2ZM7 17.9998C9.20914 17.9998 11 16.209 11 13.9999C11 11.7908 9.20914 10 7 10C4.79086 10 3 11.7908 3 13.9999C3 16.209 4.79086 17.9998 7 17.9998ZM32 2H35V8.25474C36.1339 7.46383 37.5128 7 39.0002 7C42.8662 7 46.0003 10.134 46.0003 14C46.0003 17.866 42.8662 21 39.0002 21C35.1341 21 32 17.866 32 14V2ZM39 17.9998C41.2091 17.9998 43 16.209 43 13.9999C43 11.7908 41.2091 10 39 10C36.7909 10 35 11.7908 35 13.9999C35 16.209 36.7909 17.9998 39 17.9998ZM19 7H16V14C16 14.9192 16.1811 15.8295 16.5329 16.6788C16.8846 17.5281 17.4003 18.2997 18.0503 18.9497C18.7003 19.5997 19.472 20.1154 20.3213 20.4671C21.1706 20.8189 22.0809 21 23.0002 21C23.9194 21 24.8297 20.8189 25.679 20.4671C26.5283 20.1154 27.3 19.5997 27.95 18.9497C28.6 18.2997 29.1157 17.5281 29.4675 16.6788C29.8192 15.8295 30.0003 14.9192 30.0003 14H30V7H27V14C27 15.0608 26.5785 16.0782 25.8284 16.8283C25.0783 17.5784 24.0609 17.9998 23 17.9998C21.9391 17.9998 20.9217 17.5784 20.1716 16.8283C19.4215 16.0782 19 15.0608 19 14V7Z" fill="black"/>
|
|
6
|
+
</svg>`;function O({variant:n="full",isInApp:r,className:m}){let{domain:o="dub.co"}=q(),{theme:b}=K(y),[f,d]=Q(!1),h=J(s=>{s.preventDefault(),d(!0)},[]),[,k]=V();function c(s){X.promise(k(s),{success:"Copied to clipboard!",error:"Failed to copy to clipboard"})}return G(l.Root,{open:f,onOpenChange:d,children:[e(l.Anchor,{asChild:!0,children:e("div",{onContextMenu:h,className:"max-w-fit",children:n==="full"?e(R,{className:m}):e(P,{className:a("h-8 w-8 transition-all duration-75 active:scale-95",m)})})}),e(l.Portal,{children:e(l.Content,{sideOffset:14,align:"start",className:a("z-50 -mt-1.5",!r&&"-translate-x-8",b==="dark"&&"dark"),onClick:s=>{s.stopPropagation(),d(!1)},children:G("div",{className:"grid gap-1 rounded-lg border border-gray-200 bg-white p-2 drop-shadow-sm sm:min-w-[240px] dark:border-white/[0.15] dark:bg-black",children:[e(u,{text:"Copy Logo as SVG",variant:"outline",onClick:()=>c(tt),icon:e(P,{className:"h-4 w-4"})}),e(u,{text:"Copy Wordmark as SVG",variant:"outline",onClick:()=>c(et),icon:e(Y,{strokeWidth:2,className:"h-4 w-4"})}),e(u,{text:"Brand Guidelines",variant:"outline",onClick:()=>window.open("https://dub.co/brand","_blank"),icon:e(F,{strokeWidth:2,className:"h-4 w-4"})}),r||o!="dub.co"?e(u,{text:"Home Page",variant:"outline",onClick:()=>window.open(`https://dub.co${r?"/home":""}`,"_blank"),icon:e(U,{strokeWidth:2,className:"h-4 w-4"})}):e(u,{text:"Dashboard",variant:"outline",onClick:()=>window.open("https://app.dub.co","_blank"),icon:e($,{strokeWidth:2,className:"h-4 w-4"})})]})})})]})}function u({className:n,...r}){return e(S,{className:a("h-9 justify-start px-3 font-medium hover:text-gray-700 dark:text-white/70 dark:hover:bg-white/[0.15] dark:hover:text-white",n),...r})}import{Fragment as ct,jsx as t,jsxs as v}from"react/jsx-runtime";var y=nt({theme:"light"}),lt=[{name:"Product",content:H,childItems:_,segments:["/","/home","/features","/customers"]},{name:"Resources",content:I,childItems:T,segments:["/solutions","/blog","/changelog","/docs","/help","/brand"]},{name:"Enterprise",href:"/enterprise",segments:["/enterprise"]},{name:"Pricing",href:"/pricing",segments:["/pricing"]}],Z=a("relative block rounded-md px-4 py-2 text-sm rounded-lg font-medium text-neutral-700 hover:text-neutral-900 transition-colors","dark:text-white/90 dark:hover:text-white","hover:bg-neutral-900/5 dark:hover:bg-white/10","data-[active=true]:bg-neutral-900/5 dark:data-[active=true]:bg-white/10","group-has-[:hover]:data-[active=true]:[&:not(:hover)]:bg-transparent");function At({theme:n="light",staticDomain:r,maxWidthWrapperClassName:m}){let{domain:o="dub.co"}=at();r&&(o=r);let b=st(),f=B(40),d=it(),{data:h,isLoading:k}=dt(o.endsWith("dub.co")&&"/api/auth/session",W,{dedupingInterval:6e4}),c=!!(o==="dub.co"&&rt.get("dub_id"));return t(y.Provider,{value:{theme:n},children:t(ot,{id:b,children:v("div",{className:a("sticky inset-x-0 top-0 z-30 w-full transition-all",n==="dark"&&"dark"),children:[t("div",{className:a("absolute inset-0 block border-b border-transparent transition-all",f&&"border-neutral-100 bg-white/75 backdrop-blur-lg dark:border-white/10 dark:bg-black/75")}),t(E,{className:a("relative",m),children:v("div",{className:"flex h-14 items-center justify-between",children:[t("div",{className:"grow basis-0",children:t(p,{className:"block w-fit py-2 pr-2",href:N("/home",o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:"Logo"}),children:t(O,{})})}),v(i.Root,{delayDuration:0,className:"relative hidden lg:block",children:[t(i.List,{className:"group relative z-0 flex",children:lt.map(({name:s,href:C,segments:A,content:w})=>{let M=A.some(x=>x==="/"?d===x:d==null?void 0:d.startsWith(x));return v(i.Item,{children:[t(mt,{trigger:!!w,children:C!==void 0?t(p,{id:`nav-${C}`,href:N(C,o,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:o,utm_content:s}),className:Z,"data-active":M,children:s}):t("button",{className:Z,"data-active":M,children:s})}),w&&t(i.Content,{className:"data-[motion=from-start]:animate-enter-from-left data-[motion=from-end]:animate-enter-from-right data-[motion=to-start]:animate-exit-to-left data-[motion=to-end]:animate-exit-to-right absolute left-0 top-0",children:t(w,{domain:o})})]},s)})}),t("div",{className:"absolute left-1/2 top-full mt-3 -translate-x-1/2",children:t(i.Viewport,{className:a("relative flex origin-[top_center] justify-start overflow-hidden rounded-[20px] border border-gray-200 bg-white shadow-md dark:border-white/[0.15] dark:bg-black","data-[state=closed]:animate-scale-out-content data-[state=open]:animate-scale-in-content","h-[var(--radix-navigation-menu-viewport-height)] w-[var(--radix-navigation-menu-viewport-width)] transition-[width,height]")})})]}),t("div",{className:"hidden grow basis-0 justify-end gap-2 lg:flex",children:h&&Object.keys(h).length>0?t(p,{href:L,className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Dashboard"}):k?null:v(ct,{children:[t(p,{href:c?"https://app.dub.co/login":"https://d.to/login",className:a(g({variant:"secondary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white/10 dark:bg-black dark:text-white dark:hover:bg-neutral-900"),children:"Log in"}),t(p,{href:c?"https://app.dub.co/register":"https://d.to/register",className:a(g({variant:"primary"}),"flex h-8 items-center rounded-lg border px-4 text-sm","dark:border-white dark:bg-white dark:text-black dark:hover:bg-neutral-50 dark:hover:ring-white/10"),children:"Sign up"})]})})]})})]})})})}function mt({trigger:n,children:r}){return n?t(i.Trigger,{asChild:!0,children:r}):r}export{B as a,y as b,lt as c,At as d,O as e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as d}from"./chunk-IYVNIXK5.mjs";import{m as n}from"./chunk-HVAJT6I7.mjs";import s from"next/link";import{jsx as e,jsxs as o}from"react/jsx-runtime";var b="text-xs uppercase text-neutral-400 dark:text-white/60",m="group rounded-[8px] p-2 transition-colors hover:bg-neutral-50 active:bg-neutral-100 dark:hover:bg-white/[0.15] dark:active:bg-white/20";function v({icon:t,title:a,description:r,descriptionLines:i=1,className:l,showArrow:c,...p}){return e(s,{className:n(m,l),...p,children:o("div",{className:"flex items-center justify-between gap-3",children:[t,o("div",{className:"flex-1",children:[e("p",{className:"text-sm font-medium text-neutral-700 dark:text-white",children:a}),r&&e("p",{className:n("text-xs text-neutral-500 dark:text-white/60",["line-clamp-1","line-clamp-2"][i-1]),children:r})]}),c&&e(d,{className:"invisible -ml-6 h-4 w-4 text-neutral-700 group-aria-selected:visible sm:group-hover:visible dark:text-white/80"})]})})}function k({icon:t}){return e("div",{className:"shrink-0 rounded-[10px] border border-gray-200 bg-white/50 p-3 dark:border-white/20 dark:bg-white/10",children:e(t,{className:"h-4 w-4 text-black transition-transform group-hover:scale-110 dark:text-white/80"})})}function w({name:t,href:a,icon:r}){return o(s,{href:a,className:"group relative isolate overflow-hidden rounded-[8px] border border-gray-100 p-3 text-sm font-medium text-gray-800 transition-colors hover:border-gray-200 hover:bg-gray-100 active:bg-gray-200 dark:border-white/20 dark:text-white/80 dark:hover:bg-white/[0.15] dark:active:bg-white/20",children:[e("div",{className:"absolute -bottom-5 -right-3 -z-[1] w-14",children:r}),t]})}function f({icon:t,title:a,description:r,...i}){return e(s,{...i,className:"group relative flex flex-col rounded-xl border border-neutral-100 bg-neutral-50 transition-colors duration-150 hover:bg-neutral-100 active:bg-neutral-200 dark:border-white/20 dark:bg-white/10 dark:hover:bg-white/15 dark:active:bg-white/20",children:o("div",{className:"flex items-center justify-between px-5 py-4",children:[o("div",{children:[e("span",{className:"text-sm font-medium leading-none text-neutral-900 dark:text-white",children:a}),e("p",{className:"mt-1 text-sm text-neutral-500 dark:text-white/60",children:r})]}),e(t,{className:"size-6 text-neutral-700 dark:text-neutral-200"})]})})}export{b as a,m as b,v as c,k as d,w as e,f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as t}from"react/jsx-runtime";function h(r){return t("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:t("g",{fill:"currentColor",children:t("path",{d:"M15.923,13.069c.006-.013,.015-.023,.02-.036,.034-.083,.049-.169,.052-.258,0-.009,.005-.016,.005-.025V1.75c0-.414-.336-.75-.75-.75H4.75c-1.517,0-2.75,1.233-2.75,2.75V14.5c0,1.378,1.121,2.5,2.5,2.5H15.25c.286,0,.547-.163,.673-.419s.096-.562-.079-.789c-.522-.679-.434-2.013,.004-2.589,.032-.042,.053-.088,.075-.135ZM8.75,4.5h3.5c.414,0,.75,.336,.75,.75s-.336,.75-.75,.75h-3.5c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75Zm0,3h3.5c.414,0,.75,.336,.75,.75s-.336,.75-.75,.75h-3.5c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75ZM3.5,3.75c0-.689,.561-1.25,1.25-1.25h.25V12h-.5c-.356,0-.693,.077-1,.212V3.75ZM14.092,15.5H4.5c-.552,0-1-.449-1-1s.448-1,1-1H14.105c-.155,.629-.174,1.339-.014,2Z",fill:"currentColor"})})})}import{jsx as o,jsxs as f}from"react/jsx-runtime";function n(r){return o("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:f("g",{fill:"currentColor",children:[o("path",{d:"M15.75,10.5h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,14h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,3.5h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("path",{d:"M15.75,7h-7.5c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h7.5c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Z",fill:"currentColor"}),o("circle",{cx:"3.75",cy:"4.25",fill:"currentColor",r:"2.25"}),o("circle",{cx:"3.75",cy:"11.25",fill:"currentColor",r:"2.25"})]})})}import{jsx as l,jsxs as s}from"react/jsx-runtime";function g(r){return l("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:s("g",{fill:"currentColor",children:[l("path",{d:"M17,13h-.878c-.044-.138-.098-.271-.164-.397l.62-.621c.293-.293,.293-.768,0-1.061-.294-.293-.769-.292-1.061,0l-.62,.621c-.127-.066-.259-.121-.397-.164v-.878c0-.414-.336-.75-.75-.75s-.75,.336-.75,.75v.878c-.138,.044-.271,.098-.397,.164l-.62-.621c-.292-.292-.767-.293-1.061,0-.293,.292-.293,.768,0,1.061l.62,.621c-.066,.127-.12,.259-.164,.397h-.878c-.414,0-.75,.336-.75,.75s.336,.75,.75,.75h.878c.044,.138,.098,.271,.164,.397l-.62,.621c-.293,.293-.293,.768,0,1.061,.146,.146,.339,.22,.53,.22,.192,0,.384-.073,.53-.22l.62-.621c.127,.066,.259,.121,.397,.164v.878c0,.414,.336,.75,.75,.75s.75-.336,.75-.75v-.878c.138-.044,.271-.098,.397-.164l.62,.621c.146,.146,.338,.22,.53,.22,.191,0,.384-.073,.53-.22,.293-.292,.293-.768,0-1.061l-.62-.621c.066-.127,.12-.259,.164-.397h.878c.414,0,.75-.336,.75-.75s-.336-.75-.75-.75Zm-2.25,.75c0,.551-.448,1-1,1s-1-.449-1-1,.448-1,1-1,1,.449,1,1Z",fill:"currentColor"}),l("path",{d:"M8.75,14.983v-5.551l4.75-2.755v1.383c0,.414,.336,.75,.75,.75s.75-.336,.75-.75v-1.533c0-.977-.524-1.888-1.37-2.379L9.38,1.683c-.852-.493-1.908-.493-2.76,0L2.369,4.148c-.845,.491-1.369,1.402-1.369,2.379v4.945c0,.977,.524,1.888,1.37,2.379l4.25,2.465c.425,.246,.896,.37,1.368,.37,.449,0,.9-.112,1.315-.335,.365-.197,.501-.651,.305-1.016-.169-.314-.529-.444-.858-.352Zm-5.627-2.428c-.385-.223-.623-.638-.623-1.082V6.677l4.75,2.755v5.516l-4.127-2.394Z",fill:"currentColor"})]})})}import{jsx as e}from"react/jsx-runtime";function w(r){return e("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:e("g",{fill:"currentColor",children:e("path",{d:"M12.259,10.858c-.36,0-.755-.023-1.192-.069-.412-.043-.71-.413-.667-.825,.043-.412,.409-.711,.825-.667,1.405,.149,2.158,.017,2.695-.311,.502-.418,.899-.998,1.116-1.831,.139-.612,.228-1.204,.313-1.776,.135-.901,.262-1.751,.551-2.256,.139-.242,.132-.542-.019-.777-.15-.235-.417-.373-.697-.343C3.521,3.023,2.019,15.044,2.005,15.165c-.047,.411,.248,.782,.659,.83,.029,.003,.058,.005,.087,.005,.375,0,.7-.282,.744-.664,.017-.143,.174-1.323,.711-2.88,.81,.363,1.612,.523,1.659,.531,.854,.156,1.643,.234,2.367,.234,1.507,0,2.73-.338,3.65-1.01,.506-.37,.898-.847,1.198-1.406-.254,.031-.522,.052-.822,.052Z",fill:"currentColor"})})})}import{jsx as c,jsxs as m}from"react/jsx-runtime";function V(r){return c("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:m("g",{fill:"currentColor",children:[c("path",{d:"M10.709,17h-1.959c-.414,0-.75-.336-.75-.75s.336-.75,.75-.75h1.959c.586,0,1.087-.399,1.219-.971l.343-1.451c.095-.403,.498-.65,.902-.558,.402,.095,.652,.5,.557,.902l-.342,1.447c-.287,1.253-1.39,2.131-2.679,2.131Z",fill:"currentColor"}),c("path",{d:"M14.137,14h-1.137c-.227,0-.441-.103-.584-.279-.143-.176-.197-.408-.149-.629l1.084-5c.104-.422,.149-.762,.149-1.091,0-2.481-2.019-4.5-4.5-4.5s-4.5,2.019-4.5,4.5c0,.329,.046,.669,.145,1.071l1.089,5.02c.048,.222-.007,.453-.149,.629-.143,.177-.357,.279-.584,.279h-1.137c-1.285,0-2.416-.912-2.688-2.167l-.335-1.545c-.265-1.224,.332-2.473,1.449-3.037l.712-.359c.059-3.258,2.727-5.891,5.999-5.891s5.94,2.633,5.999,5.891l.712,.359c1.117,.564,1.714,1.813,1.449,3.037l-.335,1.545c-.272,1.256-1.403,2.167-2.688,2.167Z",fill:"currentColor"})]})})}import{jsx as p}from"react/jsx-runtime";function d(r){return p("svg",{height:"18",width:"18",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:p("g",{fill:"currentColor",children:p("path",{d:"m11.5,3h-5C3.1914,3,.5,5.6914.5,9s2.6914,6,6,6h5c3.3086,0,6-2.6914,6-6s-2.6914-6-6-6Zm-5,9c-1.6543,0-3-1.3457-3-3s1.3457-3,3-3,3,1.3457,3,3-1.3457,3-3,3Z",fill:"currentColor",strokeWidth:"0"})})})}export{h as a,n as b,g as c,w as d,V as e,d as f};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{a as b}from"./chunk-V6CYMTUE.mjs";import{a as C}from"./chunk-6JPO26GL.mjs";import{a as y}from"./chunk-32C65ISH.mjs";import{a as m}from"./chunk-LFGWL3ID.mjs";import{a as g}from"./chunk-CZSSD6PV.mjs";import{a as f}from"./chunk-D7SRRREC.mjs";import{a as d}from"./chunk-SBK5CRMY.mjs";import{a as h}from"./chunk-JOEQFNPJ.mjs";import{a as u}from"./chunk-55MW6BPC.mjs";import{a as p}from"./chunk-DWACNU5E.mjs";import{a as c}from"./chunk-HRTLCZFX.mjs";import{a as l}from"./chunk-5SQRHOY4.mjs";import{a}from"./chunk-Q4S6TICU.mjs";import{a as n}from"./chunk-TNAH7N5Q.mjs";import{a as s}from"./chunk-PDSUXFDU.mjs";import{a as r}from"./chunk-PRJVDP45.mjs";import{a as e}from"./chunk-DWW2DMGM.mjs";import{a as i}from"./chunk-KYMBX7DZ.mjs";import{a as t}from"./chunk-2LBJI2KO.mjs";import{a as o}from"./chunk-ZJICX3BL.mjs";var k=[{title:"Advanced Analytics",description:"Powerful Analytics For The Modern Marketer",icon:c,href:"/help/article/dub-analytics"},{title:"Branded Links",description:"Branded Links That Stand Out",icon:d,href:"/features/branded-links"},{title:"QR Codes",description:"Gorgeous QR codes for your links",icon:m,href:"/features/qr-codes"},{title:"Personalization",description:"Personalize Your Short Links",icon:f,href:"/features/personalization"},{title:"Collaboration",description:"Collaborate With Your Team",icon:y,href:"/features/collaboration"},{title:"API",description:"Programmatic Link Creation",icon:C,href:"/docs/api-reference/introduction"}],S=[{icon:t,iconClassName:"group-hover:text-[#FF6363]",title:"Raycast",description:"Complex link infrastructure",href:"/customers/raycast"},{icon:e,iconClassName:"group-hover:text-[#FF6154]",title:"Product Hunt",description:"Unlocking new growth",href:"/customers/product-hunt"},{icon:b,iconClassName:"group-hover:text-[#353D7C]",title:"Elxo",description:"Overcoming API latency",href:"/customers/elxo"}],R=[{icon:p,title:"Developers",description:"API for efficient link management",href:"/docs/introduction"},{icon:g,title:"Enterprise",description:"Scalable link management solutions",href:"/enterprise"}],v=[{icon:s,iconClassName:"py-0.5 group-hover:text-[#3178C6]",title:"Typescript",href:"/solutions/typescript"},{icon:i,iconClassName:"py-0.5 [&_.snake]:transition-colors group-hover:[&_.snake1]:text-[#3776ab] group-hover:[&_.snake2]:text-[#ffd343]",title:"Python",href:"/solutions/python"},{icon:o,iconClassName:"group-hover:text-[#00ACD7]",title:"Go",href:"/solutions/go"},{icon:n,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"Ruby",href:"/solutions/ruby"},{icon:r,iconClassName:"py-[3px] grayscale brightness-150 transition-[filter] group-hover:grayscale-0 group-hover:brightness-100",title:"PHP",href:"/solutions/php"}],A=[{icon:u,title:"Blog",description:"Insights and stories",href:"/blog"},{icon:l,title:"Docs",description:"Platform documentation",href:"/docs"},{icon:a,title:"Changelog",description:"Releases and updates",href:"/changelog"},{icon:h,title:"Help Center",description:"Answers to your questions",href:"/help"}],E=[{name:"Bitly",slug:"bitly"},{name:"Rebrandly",slug:"rebrandly"},{name:"Short.io",slug:"short"},{name:"Bl.ink",slug:"blink"}],F=[{name:"Privacy",slug:"privacy"},{name:"Terms",slug:"terms"},{name:"Trust Center",slug:"trust"},{name:"DPA",slug:"dpa"},{name:"Subprocessors",slug:"subprocessors"},{name:"Report Abuse",slug:"abuse"}];export{k as a,S as b,R as c,v as d,A as e,E as f,F as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as N}from"./chunk-6KBHXJNB.mjs";import{a as b}from"./chunk-JNPLGH3F.mjs";import{a as f,m as g,n as h,o as s}from"./chunk-TOM3J6XQ.mjs";import{ChevronDown as w,Menu as x,X as C}from"lucide-react";import m from"next/link";import{useParams as v}from"next/navigation";import{useEffect as _,useState as y}from"react";import z from"swr";import{Fragment as D,jsx as e,jsxs as n}from"react/jsx-runtime";function $({theme:l="light",staticDomain:o}){let{domain:r="dub.co"}=v();o&&(r=o);let[t,a]=y(!1);_(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:i}=z(r.endsWith("dub.co")&&"/api/auth/session",void 0,{dedupingInterval:6e4});return n("div",{className:(void 0)(l==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:(void 0)("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(C,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(x,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:(void 0)("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:n("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[N.map(({name:u,href:d,childItems:c},p)=>e(L,{name:u,href:d,childItems:c,setOpen:a},p)),i&&Object.keys(i).length>0?e("li",{className:"py-3",children:e(m,{href:f,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):n(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${f}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${f}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:l,href:o,childItems:r,setOpen:t})=>{let{domain:a="dub.co"}=v(),[i,u]=y(!1);return r?e("li",{className:"py-3",children:n(b,{height:!0,children:[n("button",{className:"flex w-full justify-between",onClick:()=>u(!i),children:[e("p",{className:"font-semibold",children:l}),e(w,{className:(void 0)("h-5 w-5 text-gray-500 transition-all dark:text-white/50",i&&"rotate-180")})]}),i&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:r.map(({title:d,href:c,icon:p,iconClassName:k})=>n(m,{href:(void 0)(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full space-x-2",children:[e(p,{className:(void 0)("h-5 w-5 text-gray-500 dark:text-white/80",k)}),e("span",{className:"text-sm",children:d})]},c))})]})}):o?e("li",{className:"py-3",children:e(m,{href:(void 0)(o,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:l}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:l})}):null};export{$ as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{e as w}from"./chunk-RQTSJJ3V.mjs";import{a as x,e as k,f as L}from"./chunk-GKQ6TXG4.mjs";import{a as C}from"./chunk-ZN3PNOIE.mjs";import{a as v}from"./chunk-5UDLEOOZ.mjs";import{a as b}from"./chunk-L4FA5VZW.mjs";import{a as _}from"./chunk-RSJ6GSD7.mjs";import{a as N}from"./chunk-ALEYOCBW.mjs";import{i as m,l as f,m as g,n as h}from"./chunk-HVAJT6I7.mjs";import D from"next/image";import n from"next/link";import{useParams as E}from"next/navigation";import{useEffect as F,useState as y}from"react";import I from"swr";import{jsx as e,jsxs as t}from"react/jsx-runtime";var P=[{name:"Twitter",icon:v,href:"https://twitter.com/dubdotco"},{name:"LinkedIn",icon:_,href:"https://www.linkedin.com/company/dubinc"},{name:"GitHub",icon:N,href:"https://github.com/dubinc/dub"},{name:"YouTube",icon:b,href:"https://www.youtube.com/@dubdotco"}],i={features:x.map(({title:o,href:r})=>({name:o,href:r})),product:[{name:"Blog",href:"/blog"},{name:"Changelog",href:"/changelog"},{name:"Customers",href:"/customers"},{name:"Enterprise",href:"/enterprise"},{name:"Pricing",href:"/pricing"},{name:"Docs",href:"/docs"},{name:"Help Center",href:"/help"},{name:"Brand",href:"/brand"}],compare:k.map(({name:o,slug:r})=>({name:o,href:`/compare/${r}`})),legal:L.map(({name:o,slug:r})=>({name:o,href:`/legal/${r}`})),tools:h.map(({name:o,slug:r})=>({name:o,href:`/tools/${r}`}))},l="text-sm font-medium text-neutral-900",c="flex flex-col mt-2.5 gap-2.5",u="text-sm text-neutral-500 hover:text-neutral-700 transition-colors duration-75";function j({staticDomain:o,className:r}){let{domain:s="dub.co"}=E();return o&&(s=o),e(C,{className:g("relative z-10 overflow-hidden border border-b-0 border-neutral-200 bg-white/50 py-16 backdrop-blur-lg md:rounded-t-2xl",r),children:t("footer",{children:[t("div",{className:"xl:grid xl:grid-cols-3 xl:gap-8",children:[t("div",{className:"flex flex-col gap-6",children:[e("div",{className:"grow",children:t(n,{href:m("/",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"Logo"}),className:"block max-w-fit",children:[t("span",{className:"sr-only",children:[process.env.NEXT_PUBLIC_APP_NAME," Logo"]}),e(w,{className:"h-8 text-gray-800"})]})}),e("div",{className:"flex items-center gap-3",children:P.map(({name:a,icon:d,href:p})=>t("a",{href:p,target:"_blank",rel:"noreferrer",className:"group rounded-full p-1",children:[e("span",{className:"sr-only",children:a}),e(d,{className:"size-4 text-neutral-900 transition-colors duration-75 group-hover:text-neutral-600"})]},a))})]}),t("div",{className:"mt-16 grid grid-cols-2 gap-4 xl:col-span-2 xl:mt-0",children:[t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{children:[e("h3",{className:l,children:"Product"}),e("ul",{role:"list",className:c,children:i.features.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Resources"}),e("ul",{role:"list",className:c,children:i.product.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"md:grid md:grid-cols-2",children:[t("div",{className:"flex flex-col space-y-8",children:[t("div",{children:[e("h3",{className:l,children:"Compare"}),e("ul",{role:"list",className:c,children:i.compare.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]}),t("div",{children:[e("h3",{className:l,children:"Legal"}),e("ul",{role:"list",className:c,children:i.legal.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]}),t("div",{className:"mt-10 md:mt-0",children:[e("h3",{className:l,children:"Tools"}),e("ul",{role:"list",className:c,children:i.tools.map(a=>e("li",{children:e(n,{href:m(a.href,s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:a.name}),className:u,children:a.name})},a.name))})]})]})]})]}),t("div",{className:"mt-12 grid grid-cols-1 items-center gap-8 sm:grid-cols-3",children:[e(z,{}),e(n,{href:m("/blog/soc2",s,{utm_source:"Custom Domain",utm_medium:"Footer",utm_campaign:s,utm_content:"SOC2"}),className:"flex sm:justify-center",children:e(D,{src:"https://assets.dub.co/misc/soc2.svg",alt:"AICPA SOC 2 Type II Certified",width:63,height:32,className:"h-8 transition-[filter] duration-75 hover:brightness-90"})}),t("p",{className:"text-xs text-neutral-500 sm:text-right",children:["\xA9 ",new Date().getFullYear()," Dub Technologies, Inc."]})]})]})})}function z(){let{data:o}=I("https://status.dub.co/api/v1/summary",f),[r,s]=y("bg-neutral-200"),[a,d]=y("Loading status...");return F(()=>{if(!o)return;let{ongoing_incidents:p}=o;if(p.length>0){let{current_worst_impact:A,name:S}=p[0],T=A==="degraded_performance"?"bg-yellow-500":"bg-red-500";d(S),s(T)}else d("All systems operational"),s("bg-green-500")},[o]),t(n,{href:"https://status.dub.co",target:"_blank",className:"group flex max-w-fit items-center gap-2 rounded-lg border border-neutral-200 bg-white py-2 pl-2 pr-2.5 transition-colors hover:bg-neutral-50 active:bg-neutral-100",children:[t("div",{className:"relative size-2",children:[e("div",{className:g("absolute inset-0 m-auto size-2 animate-ping items-center justify-center rounded-full group-hover:animate-none",r,a==="Loading status..."&&"animate-none")}),e("div",{className:g("absolute inset-0 z-10 m-auto size-2 rounded-full",r)})]}),e("p",{className:"text-xs font-medium leading-none text-neutral-600",children:a})]})}export{j as a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{jsx as o,jsxs as t}from"react/jsx-runtime";function n(r){return o("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:t("g",{fill:"currentColor",children:[o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"7.954",x2:"5.047",y1:"5.988",y2:"11.511"}),o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"10.046",x2:"12.953",y1:"5.988",y2:"11.511"}),o("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"6.25",x2:"11.75",y1:"13.25",y2:"13.25"}),o("circle",{cx:"9",cy:"4",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("circle",{cx:"14",cy:"13.5",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),o("circle",{cx:"4",cy:"13.5",fill:"currentColor",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})})}import{jsx as e}from"react/jsx-runtime";function f(r){return e("svg",{viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...r,children:e("g",{fill:"currentColor",children:e("path",{d:"M9,1C4.589,1,1,4.589,1,9c0,1.397,.371,2.778,1.062,3.971,.238,.446-.095,2.002-.842,2.749-.209,.209-.276,.522-.17,.798,.105,.276,.364,.465,.659,.481,.079,.004,.16,.006,.242,.006,1.145,0,2.534-.407,3.44-.871,.675,.343,1.39,.587,2.131,.727,.484,.092,.981,.138,1.478,.138,4.411,0,8-3.589,8-8S13.411,1,9,1Zm3.529,11.538c-.944,.943-2.198,1.462-3.529,1.462s-2.593-.522-3.539-1.47c-.292-.293-.292-.768,0-1.061,.294-.293,.77-.292,1.062,0,1.322,1.326,3.621,1.328,4.947,.006,.293-.294,.768-.292,1.061,0,.292,.293,.292,.768-.002,1.061Z",fill:"currentColor"})})})}export{n as a,f as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import{c as v}from"./chunk-2M3QZ3XT.mjs";import{a as b}from"./chunk-XTK2BTRW.mjs";import{i as g,j as u,l as h,m as r}from"./chunk-HVAJT6I7.mjs";import{ChevronDown as x,Menu as w,X as z}from"lucide-react";import m from"next/link";import{useParams as N}from"next/navigation";import{useEffect as C,useState as y}from"react";import _ from"swr";import{Fragment as D,jsx as e,jsxs as i}from"react/jsx-runtime";function W({theme:n="light",staticDomain:l}){let{domain:o="dub.co"}=N();l&&(o=l);let[t,a]=y(!1);C(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[t]);let{data:s}=_(o.endsWith("dub.co")&&"/api/auth/session",h,{dedupingInterval:6e4});return i("div",{className:r(n==="dark"&&"dark"),children:[e("button",{onClick:()=>a(!t),className:r("fixed right-3 top-3 z-40 rounded-full p-2 transition-colors duration-200 hover:bg-gray-200 focus:outline-none active:bg-gray-300 lg:hidden dark:hover:bg-white/20 dark:active:bg-white/30",t&&"hover:bg-gray-100 active:bg-gray-200"),children:t?e(z,{className:"h-5 w-5 text-gray-600 dark:text-white/70"}):e(w,{className:"h-5 w-5 text-gray-600 dark:text-white/70"})}),e("nav",{className:r("fixed inset-0 z-20 hidden w-full bg-white px-5 py-16 lg:hidden dark:bg-black dark:text-white/70",t&&"block"),children:i("ul",{className:"grid divide-y divide-gray-200 dark:divide-white/[0.15]",children:[v.map(({name:f,href:d,childItems:c},p)=>e(L,{name:f,href:d,childItems:c,setOpen:a},p)),s&&Object.keys(s).length>0?e("li",{className:"py-3",children:e(m,{href:u,className:"flex w-full font-semibold capitalize",children:"Dashboard"})}):i(D,{children:[e("li",{className:"py-3",children:e(m,{href:`${u}/login`,className:"flex w-full font-semibold capitalize",children:"Log in"})}),e("li",{className:"py-3",children:e(m,{href:`${u}/register`,className:"flex w-full font-semibold capitalize",children:"Sign Up"})})]})]})})]})}var L=({name:n,href:l,childItems:o,setOpen:t})=>{let{domain:a="dub.co"}=N(),[s,f]=y(!1);return o?e("li",{className:"py-3",children:i(b,{height:!0,children:[i("button",{className:"flex w-full justify-between",onClick:()=>f(!s),children:[e("p",{className:"font-semibold",children:n}),e(x,{className:r("h-5 w-5 text-gray-500 transition-all dark:text-white/50",s&&"rotate-180")})]}),s&&e("div",{className:"grid gap-4 overflow-hidden py-4",children:o.map(({title:d,href:c,icon:p,description:k})=>i(m,{href:g(c,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:d}),onClick:()=>t(!1),className:"flex w-full gap-3",children:[e("div",{className:"flex size-10 items-center justify-center rounded-lg border border-neutral-200 bg-gradient-to-t from-neutral-100",children:e(p,{className:"size-5 text-neutral-700"})}),i("div",{children:[e("div",{className:"flex items-center gap-2",children:e("h2",{className:"text-sm font-medium text-neutral-900",children:d})}),e("p",{className:"text-sm text-neutral-500",children:k})]})]},c))})]})}):l?e("li",{className:"py-3",children:e(m,{href:g(l,a,{utm_source:"Custom Domain",utm_medium:"Navbar",utm_campaign:a,utm_content:n}),onClick:()=>t(!1),className:"flex w-full font-semibold capitalize",children:n})}):null};export{W as a};
|