@dub/utils 0.1.45 → 0.1.46
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/array-equal-DBO5cTVq.mjs +2 -0
- package/dist/array-equal-DBO5cTVq.mjs.map +1 -0
- package/dist/array-equal-I7RH2929.d.mts +9 -0
- package/dist/array-equal-I7RH2929.d.mts.map +1 -0
- package/dist/billing-utils-Ajfw8K8K.d.mts +7 -0
- package/dist/billing-utils-Ajfw8K8K.d.mts.map +1 -0
- package/dist/billing-utils-eMTiGLzG.mjs +2 -0
- package/dist/billing-utils-eMTiGLzG.mjs.map +1 -0
- package/dist/camel-case-BAzkYO0i.d.mts +5 -0
- package/dist/camel-case-BAzkYO0i.d.mts.map +1 -0
- package/dist/camel-case-C8EXnrVO.mjs +2 -0
- package/dist/camel-case-C8EXnrVO.mjs.map +1 -0
- package/dist/capitalize-DGA5yhLU.mjs +2 -0
- package/dist/capitalize-DGA5yhLU.mjs.map +1 -0
- package/dist/capitalize-DISwJgmA.d.mts +5 -0
- package/dist/capitalize-DISwJgmA.d.mts.map +1 -0
- package/dist/cctlds-DMPxi7pF.d.mts +5 -0
- package/dist/cctlds-DMPxi7pF.d.mts.map +1 -0
- package/dist/cctlds-DXCBpkmb.mjs +2 -0
- package/dist/cctlds-DXCBpkmb.mjs.map +1 -0
- package/dist/chunk-2SUO5ED7.mjs +1 -0
- package/dist/chunk-3D47OFQ4.mjs +1 -0
- package/dist/chunk-3H2VYASP.mjs +1 -0
- package/dist/chunk-3WJ3B3A3.mjs +1 -0
- package/dist/chunk-42JGIUBR.mjs +1 -0
- package/dist/chunk-46IJ6UIH.mjs +1 -0
- package/dist/chunk-4ED7MKAS.mjs +1 -0
- package/dist/chunk-4IDZNKQV.mjs +1 -0
- package/dist/chunk-4KMGJKDU.mjs +1 -0
- package/dist/chunk-5GEHVOQC.mjs +1 -0
- package/dist/chunk-5UUQSLIG.mjs +1 -0
- package/dist/chunk-5VEYJI62.mjs +1 -0
- package/dist/chunk-6LIICFKM.mjs +1 -0
- package/dist/chunk-6PZZFAWB.mjs +1 -0
- package/dist/chunk-6SK2R3JD.mjs +1 -0
- package/dist/chunk-773MOEVT.mjs +1 -0
- package/dist/chunk-7KMDBW5F.mjs +1 -0
- package/dist/chunk-BMESPBRA.mjs +1 -0
- package/dist/chunk-BTS3PZVK.mjs +1 -0
- package/dist/chunk-Bs44WO9n.d.mts +5 -0
- package/dist/chunk-Bs44WO9n.d.mts.map +1 -0
- package/dist/chunk-CT63K7Y4.mjs +1 -0
- package/dist/chunk-DCOCMEMH.mjs +1 -0
- package/dist/chunk-DHBMVDIF.mjs +1 -0
- package/dist/chunk-DUQZS4IF.mjs +1 -0
- package/dist/chunk-EV2V74YL.mjs +1 -0
- package/dist/chunk-FCQXIKHJ.mjs +1 -0
- package/dist/chunk-FG7IE54U.mjs +1 -0
- package/dist/chunk-FJFDTHKA.mjs +1 -0
- package/dist/chunk-FOF4S2IU.mjs +1 -0
- package/dist/chunk-FRLPLCKN.mjs +1 -0
- package/dist/chunk-FSQIOTWL.mjs +1 -0
- package/dist/chunk-G5LHCV5W.mjs +1 -0
- package/dist/chunk-GAZHN4WQ.mjs +1 -0
- package/dist/chunk-GQJPX3D2.mjs +1 -0
- package/dist/chunk-GR4TLX6Q.mjs +1 -0
- package/dist/chunk-GURGZ7QY.mjs +1 -0
- package/dist/chunk-GV75SOJY.mjs +1 -0
- package/dist/chunk-HPPMI4D3.mjs +1 -0
- package/dist/chunk-JFQ3HCMK.mjs +1 -0
- package/dist/chunk-KCMLTM3P.mjs +1 -0
- package/dist/chunk-KDMJUM2I.mjs +1 -0
- package/dist/chunk-KMX6APZN.mjs +1 -0
- package/dist/chunk-L2U2GMY5.mjs +1 -0
- package/dist/chunk-L36NECHU.mjs +1 -0
- package/dist/chunk-LBVPSZED.mjs +1 -0
- package/dist/chunk-LPWMMOGV.mjs +1 -0
- package/dist/chunk-MWDHT2QR.mjs +1 -0
- package/dist/chunk-MWXZWALP.mjs +1 -0
- package/dist/chunk-N4OJWEWU.mjs +1 -0
- package/dist/chunk-N5E6WGFW.mjs +1 -0
- package/dist/chunk-NALLJ4DN.mjs +1 -0
- package/dist/chunk-NTIWVBKK.mjs +1 -0
- package/dist/chunk-O77TTQJR.mjs +1 -0
- package/dist/chunk-OUFPCU5E.mjs +1 -0
- package/dist/chunk-OZ5XXSGA.mjs +1 -0
- package/dist/chunk-PZKXL75U.mjs +1 -0
- package/dist/chunk-QMOXTC65.mjs +1 -0
- package/dist/chunk-QWZ6SNRA.mjs +1 -0
- package/dist/chunk-RFSS3EW3.mjs +1 -0
- package/dist/chunk-RIMPQ2IS.mjs +1 -0
- package/dist/chunk-RZVLVGJX.mjs +1 -0
- package/dist/chunk-SYRFGND4.mjs +1 -0
- package/dist/chunk-TOE4FWLM.mjs +1 -0
- package/dist/chunk-TZVYM6XK.mjs +1 -0
- package/dist/chunk-UHKMTSRR.mjs +1 -0
- package/dist/chunk-UNMXX46D.mjs +1 -0
- package/dist/chunk-UP5ANTW6.mjs +1 -0
- package/dist/chunk-V3U3HUVW.mjs +1 -0
- package/dist/chunk-V6ARAIKV.mjs +1 -0
- package/dist/chunk-VKLOD6M3.mjs +1 -0
- package/dist/chunk-VO6C24FG.mjs +1 -0
- package/dist/chunk-VQ66X74V.mjs +1 -0
- package/dist/chunk-VZIZCZGN.mjs +1 -0
- package/dist/chunk-WCSMOSHJ.mjs +1 -0
- package/dist/chunk-WGOCXGNU.mjs +1 -0
- package/dist/chunk-WHYPDWLF.mjs +1 -0
- package/dist/chunk-XT2JOG2B.mjs +1 -0
- package/dist/chunk-XXID6HHB.mjs +1 -0
- package/dist/chunk-YFIGPAHJ.mjs +1 -0
- package/dist/chunk-ZRZIS4IN.mjs +1 -0
- package/dist/chunk-ZXK34EEV.mjs +1 -0
- package/dist/chunk-ZYT3NCX6.mjs +1 -0
- package/dist/chunk-pVrr2QRR.mjs +2 -0
- package/dist/chunk-pVrr2QRR.mjs.map +1 -0
- package/dist/cn-BTSOW7kH.mjs +2 -0
- package/dist/cn-BTSOW7kH.mjs.map +1 -0
- package/dist/cn-BiYf047b.d.mts +7 -0
- package/dist/cn-BiYf047b.d.mts.map +1 -0
- package/dist/combine-words-1pGDmuMF.d.mts +5 -0
- package/dist/combine-words-1pGDmuMF.d.mts.map +1 -0
- package/dist/combine-words-Br_lSncT.mjs +2 -0
- package/dist/combine-words-Br_lSncT.mjs.map +1 -0
- package/dist/connect-supported-countries-BD-eJcNa.d.mts +5 -0
- package/dist/connect-supported-countries-BD-eJcNa.d.mts.map +1 -0
- package/dist/connect-supported-countries-BxwwGf3y.mjs +2 -0
- package/dist/connect-supported-countries-BxwwGf3y.mjs.map +1 -0
- package/dist/constants/cctlds.d.mts +2 -0
- package/dist/constants/connect-supported-countries.d.mts +2 -0
- package/dist/constants/continents.d.mts +2 -0
- package/dist/constants/countries.d.mts +2 -0
- package/dist/constants/country-currency-codes.d.mts +2 -0
- package/dist/constants/country-phone-codes.d.mts +2 -0
- package/dist/constants/domains.d.mts +2 -0
- package/dist/constants/dub-domains.d.mts +2 -0
- package/dist/constants/dub-domains.mjs +1 -1
- package/dist/constants/index.d.mts +20 -0
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/integrations.d.mts +2 -0
- package/dist/constants/layout.d.mts +2 -0
- package/dist/constants/localhost.d.mts +2 -0
- package/dist/constants/main.d.mts +2 -0
- package/dist/constants/middleware.d.mts +2 -0
- package/dist/constants/misc.d.mts +2 -0
- package/dist/constants/misc.d.ts +2 -2
- package/dist/constants/misc.mjs +1 -1
- package/dist/constants/paypal-supported-countries.d.mts +2 -0
- package/dist/constants/regions.d.mts +2 -0
- package/dist/constants/reserved-slugs.d.mts +2 -0
- package/dist/constants/reserved-slugs.mjs +1 -1
- package/dist/constants/saml.d.mts +2 -0
- package/dist/constants-DfGFdd9U.mjs +2 -0
- package/dist/constants-DfGFdd9U.mjs.map +1 -0
- package/dist/construct-metadata-BN8VET-6.mjs +2 -0
- package/dist/construct-metadata-BN8VET-6.mjs.map +1 -0
- package/dist/construct-metadata-CrMm6q6l.d.mts +29 -0
- package/dist/construct-metadata-CrMm6q6l.d.mts.map +1 -0
- package/dist/continents-D6S-SHqh.d.mts +11 -0
- package/dist/continents-D6S-SHqh.d.mts.map +1 -0
- package/dist/continents-Dfk7IHcI.mjs +2 -0
- package/dist/continents-Dfk7IHcI.mjs.map +1 -0
- package/dist/countries-CaocrmXr.mjs +2 -0
- package/dist/countries-CaocrmXr.mjs.map +1 -0
- package/dist/countries-EmCwapWh.d.mts +9 -0
- package/dist/countries-EmCwapWh.d.mts.map +1 -0
- package/dist/country-currency-codes-B61rAyTK.mjs +2 -0
- package/dist/country-currency-codes-B61rAyTK.mjs.map +1 -0
- package/dist/country-currency-codes-BY8Eb6j5.d.mts +7 -0
- package/dist/country-currency-codes-BY8Eb6j5.d.mts.map +1 -0
- package/dist/country-phone-codes-Cw6Skrdf.mjs +2 -0
- package/dist/country-phone-codes-Cw6Skrdf.mjs.map +1 -0
- package/dist/country-phone-codes-DfNRdacg.d.mts +7 -0
- package/dist/country-phone-codes-DfNRdacg.d.mts.map +1 -0
- package/dist/currency-formatter-DvRObMQ-.d.mts +8 -0
- package/dist/currency-formatter-DvRObMQ-.d.mts.map +1 -0
- package/dist/currency-formatter-K4_S2-Ja.mjs +2 -0
- package/dist/currency-formatter-K4_S2-Ja.mjs.map +1 -0
- package/dist/currency-zero-decimal-2c14b925.d.ts +3 -0
- package/dist/deep-equal-DKHEsBj3.mjs +2 -0
- package/dist/deep-equal-DKHEsBj3.mjs.map +1 -0
- package/dist/deep-equal-DL7vb8Yq.d.mts +6 -0
- package/dist/deep-equal-DL7vb8Yq.d.mts.map +1 -0
- package/dist/domains-CUmgZeco.mjs +2 -0
- package/dist/domains-CUmgZeco.mjs.map +1 -0
- package/dist/domains-CaD5cUsD.mjs +2 -0
- package/dist/domains-CaD5cUsD.mjs.map +1 -0
- package/dist/domains-ClJ7JZ8G.d.mts +11 -0
- package/dist/domains-ClJ7JZ8G.d.mts.map +1 -0
- package/dist/domains-D0u9WU51.d.mts +6 -0
- package/dist/domains-D0u9WU51.d.mts.map +1 -0
- package/dist/dub-domains-DT4DbvlB.d.mts +22 -0
- package/dist/dub-domains-DT4DbvlB.d.mts.map +1 -0
- package/dist/dub-domains-cnkoM2TR.mjs +2 -0
- package/dist/dub-domains-cnkoM2TR.mjs.map +1 -0
- package/dist/fetch-with-retry-C6zApdLn.d.mts +9 -0
- package/dist/fetch-with-retry-C6zApdLn.d.mts.map +1 -0
- package/dist/fetch-with-retry-CTDDLz3Q.mjs +2 -0
- package/dist/fetch-with-retry-CTDDLz3Q.mjs.map +1 -0
- package/dist/fetch-with-timeout-Bh66T6IH.mjs +2 -0
- package/dist/fetch-with-timeout-Bh66T6IH.mjs.map +1 -0
- package/dist/fetch-with-timeout-_2qhWdGh.d.mts +5 -0
- package/dist/fetch-with-timeout-_2qhWdGh.d.mts.map +1 -0
- package/dist/fetcher-Cg7X4B6k.d.mts +7 -0
- package/dist/fetcher-Cg7X4B6k.d.mts.map +1 -0
- package/dist/fetcher-L2jCq775.mjs +2 -0
- package/dist/fetcher-L2jCq775.mjs.map +1 -0
- package/dist/format-date-B_PzoM21.d.mts +5 -0
- package/dist/format-date-B_PzoM21.d.mts.map +1 -0
- package/dist/format-date-BrsjWtQR.mjs +2 -0
- package/dist/format-date-BrsjWtQR.mjs.map +1 -0
- package/dist/format-date-smart-CRXPO-3d.d.mts +5 -0
- package/dist/format-date-smart-CRXPO-3d.d.mts.map +1 -0
- package/dist/format-date-smart-DpagPhcu.mjs +2 -0
- package/dist/format-date-smart-DpagPhcu.mjs.map +1 -0
- package/dist/format-datetime-CVqrji_7.d.mts +5 -0
- package/dist/format-datetime-CVqrji_7.d.mts.map +1 -0
- package/dist/format-datetime-DZ470JiK.mjs +2 -0
- package/dist/format-datetime-DZ470JiK.mjs.map +1 -0
- package/dist/format-datetime-smart-CVyK5qx-.mjs +2 -0
- package/dist/format-datetime-smart-CVyK5qx-.mjs.map +1 -0
- package/dist/format-datetime-smart-d22cix-d.d.mts +5 -0
- package/dist/format-datetime-smart-d22cix-d.d.mts.map +1 -0
- package/dist/format-file-size-BspZw7d5.d.mts +11 -0
- package/dist/format-file-size-BspZw7d5.d.mts.map +1 -0
- package/dist/format-file-size-CCHIbZbx.mjs +2 -0
- package/dist/format-file-size-CCHIbZbx.mjs.map +1 -0
- package/dist/format-period-DJDA7miF.d.mts +8 -0
- package/dist/format-period-DJDA7miF.d.mts.map +1 -0
- package/dist/functions/array-equal.d.mts +2 -0
- package/dist/functions/camel-case.d.mts +2 -0
- package/dist/functions/capitalize.d.mts +2 -0
- package/dist/functions/chunk.d.mts +2 -0
- package/dist/functions/cn.d.mts +2 -0
- package/dist/functions/combine-words.d.mts +2 -0
- package/dist/functions/construct-metadata.d.mts +2 -0
- package/dist/functions/currency-formatter.d.mts +2 -0
- package/dist/functions/currency-formatter.d.ts +1 -1
- package/dist/functions/currency-formatter.mjs +1 -1
- package/dist/functions/currency-zero-decimal.d.ts +3 -0
- package/dist/functions/currency-zero-decimal.mjs +1 -0
- package/dist/functions/datetime/billing-utils.d.mts +2 -0
- package/dist/functions/datetime/format-date-smart.d.mts +2 -0
- package/dist/functions/datetime/format-date.d.mts +2 -0
- package/dist/functions/datetime/format-datetime-smart.d.mts +2 -0
- package/dist/functions/datetime/format-datetime.d.mts +2 -0
- package/dist/functions/datetime/format-period.d.mts +2 -0
- package/dist/functions/datetime/format-period.mjs +1 -1
- package/dist/functions/datetime/get-datetime-local.d.mts +2 -0
- package/dist/functions/datetime/get-days-difference.d.mts +2 -0
- package/dist/functions/datetime/get-first-and-last-day.d.mts +2 -0
- package/dist/functions/datetime/index.d.mts +12 -0
- package/dist/functions/datetime/index.mjs +1 -1
- package/dist/functions/datetime/parse-datetime.d.mts +2 -0
- package/dist/functions/deep-equal.d.mts +2 -0
- package/dist/functions/domains.d.mts +2 -0
- package/dist/functions/domains.mjs +1 -1
- package/dist/functions/fetch-with-retry.d.mts +2 -0
- package/dist/functions/fetch-with-timeout.d.mts +2 -0
- package/dist/functions/fetcher.d.mts +2 -0
- package/dist/functions/format-file-size.d.mts +2 -0
- package/dist/functions/hash-string.d.mts +2 -0
- package/dist/functions/index.d.mts +49 -0
- package/dist/functions/index.d.ts +4 -2
- package/dist/functions/index.mjs +1 -1
- package/dist/functions/is-click-on-interactive-child.d.mts +2 -0
- package/dist/functions/is-iframeable.d.mts +2 -0
- package/dist/functions/keys.d.mts +2 -0
- package/dist/functions/link-constructor.d.mts +2 -0
- package/dist/functions/link-constructor.mjs +1 -1
- package/dist/functions/log.d.mts +2 -0
- package/dist/functions/nanoid.d.mts +2 -0
- package/dist/functions/nformatter.d.mts +2 -0
- package/dist/functions/normalize-string.d.mts +2 -0
- package/dist/functions/pick.d.ts +3 -0
- package/dist/functions/pick.mjs +1 -0
- package/dist/functions/pluralize.d.mts +2 -0
- package/dist/functions/promises.d.mts +2 -0
- package/dist/functions/promises.d.ts +10 -1
- package/dist/functions/promises.mjs +1 -1
- package/dist/functions/punycode.d.mts +2 -0
- package/dist/functions/random-value.d.mts +2 -0
- package/dist/functions/regex-escape.d.mts +2 -0
- package/dist/functions/resize-image.d.mts +2 -0
- package/dist/functions/smart-truncate.d.mts +2 -0
- package/dist/functions/stable-sort.d.mts +2 -0
- package/dist/functions/text-fetcher.d.mts +2 -0
- package/dist/functions/time-ago.d.mts +2 -0
- package/dist/functions/trim.d.mts +2 -0
- package/dist/functions/truncate.d.mts +2 -0
- package/dist/functions/urls.d.mts +2 -0
- package/dist/functions/urls.d.ts +2 -1
- package/dist/functions/urls.mjs +1 -1
- package/dist/get-datetime-local-C7KbfIMK.mjs +2 -0
- package/dist/get-datetime-local-C7KbfIMK.mjs.map +1 -0
- package/dist/get-datetime-local-bcjAmD-U.d.mts +5 -0
- package/dist/get-datetime-local-bcjAmD-U.d.mts.map +1 -0
- package/dist/get-days-difference--WnBYvi_.d.mts +5 -0
- package/dist/get-days-difference--WnBYvi_.d.mts.map +1 -0
- package/dist/get-days-difference-CVtk5yUe.mjs +2 -0
- package/dist/get-days-difference-CVtk5yUe.mjs.map +1 -0
- package/dist/get-first-and-last-day-CexC1yYr.d.mts +8 -0
- package/dist/get-first-and-last-day-CexC1yYr.d.mts.map +1 -0
- package/dist/get-first-and-last-day-DtD3kURS.mjs +2 -0
- package/dist/get-first-and-last-day-DtD3kURS.mjs.map +1 -0
- package/dist/hash-string-BHFn4lnc.mjs +2 -0
- package/dist/hash-string-BHFn4lnc.mjs.map +1 -0
- package/dist/hash-string-CtOpk77-.d.mts +5 -0
- package/dist/hash-string-CtOpk77-.d.mts.map +1 -0
- package/dist/index-B6T7ov8p.d.mts +1 -0
- package/dist/index-CDFDM37z.d.mts +1016 -0
- package/dist/index-CDFDM37z.d.mts.map +1 -0
- package/dist/index-DghcoV7h.d.mts +1 -0
- package/dist/index.d.mts +68 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.mjs +1 -1
- package/dist/integrations-Bh8t-O3g.mjs +2 -0
- package/dist/integrations-Bh8t-O3g.mjs.map +1 -0
- package/dist/integrations-DDwL2i19.d.mts +10 -0
- package/dist/integrations-DDwL2i19.d.mts.map +1 -0
- package/dist/is-click-on-interactive-child-BiqIe6cM.mjs +2 -0
- package/dist/is-click-on-interactive-child-BiqIe6cM.mjs.map +1 -0
- package/dist/is-click-on-interactive-child-C9b9PwIE.d.mts +7 -0
- package/dist/is-click-on-interactive-child-C9b9PwIE.d.mts.map +1 -0
- package/dist/is-iframeable-Ck9l_B5X.mjs +2 -0
- package/dist/is-iframeable-Ck9l_B5X.mjs.map +1 -0
- package/dist/is-iframeable-DyfqG8lY.d.mts +11 -0
- package/dist/is-iframeable-DyfqG8lY.d.mts.map +1 -0
- package/dist/keys-Dm2_B4ZQ.mjs +2 -0
- package/dist/keys-Dm2_B4ZQ.mjs.map +1 -0
- package/dist/keys-lBgnWmIW.d.mts +7 -0
- package/dist/keys-lBgnWmIW.d.mts.map +1 -0
- package/dist/layout-BHzXziT5.d.mts +8 -0
- package/dist/layout-BHzXziT5.d.mts.map +1 -0
- package/dist/layout-Cbhjxh5i.mjs +2 -0
- package/dist/layout-Cbhjxh5i.mjs.map +1 -0
- package/dist/link-constructor-1d70H0Ke.d.mts +22 -0
- package/dist/link-constructor-1d70H0Ke.d.mts.map +1 -0
- package/dist/localhost-CfOpCdYg.d.mts +13 -0
- package/dist/localhost-CfOpCdYg.d.mts.map +1 -0
- package/dist/localhost-D7DxXpIC.mjs +2 -0
- package/dist/localhost-D7DxXpIC.mjs.map +1 -0
- package/dist/log-B19eGrt5.mjs +2 -0
- package/dist/log-B19eGrt5.mjs.map +1 -0
- package/dist/log-Cd9wRvUs.d.mts +13 -0
- package/dist/log-Cd9wRvUs.d.mts.map +1 -0
- package/dist/main-C1J_pNfu.mjs +2 -0
- package/dist/main-C1J_pNfu.mjs.map +1 -0
- package/dist/main-s8z7mt9Z.d.mts +26 -0
- package/dist/main-s8z7mt9Z.d.mts.map +1 -0
- package/dist/middleware-Bf9EP7Fw.mjs +2 -0
- package/dist/middleware-Bf9EP7Fw.mjs.map +1 -0
- package/dist/middleware-C8AhsVC2.d.mts +22 -0
- package/dist/middleware-C8AhsVC2.d.mts.map +1 -0
- package/dist/misc-CUlwIGkJ.mjs +2 -0
- package/dist/misc-CUlwIGkJ.mjs.map +1 -0
- package/dist/misc-CYVV9PKw.d.mts +11 -0
- package/dist/misc-CYVV9PKw.d.mts.map +1 -0
- package/dist/nanoid-CG3yhYEE.mjs +2 -0
- package/dist/nanoid-CG3yhYEE.mjs.map +1 -0
- package/dist/nanoid-Ccx9Tib2.d.mts +5 -0
- package/dist/nanoid-Ccx9Tib2.d.mts.map +1 -0
- package/dist/nformatter-BD3whgb_.mjs +2 -0
- package/dist/nformatter-BD3whgb_.mjs.map +1 -0
- package/dist/nformatter-CAja4QhH.d.mts +8 -0
- package/dist/nformatter-CAja4QhH.d.mts.map +1 -0
- package/dist/normalize-string-D-09W-eX.mjs +2 -0
- package/dist/normalize-string-D-09W-eX.mjs.map +1 -0
- package/dist/normalize-string-vd95aQMw.d.mts +5 -0
- package/dist/normalize-string-vd95aQMw.d.mts.map +1 -0
- package/dist/parse-datetime-Byk97s6l.d.mts +5 -0
- package/dist/parse-datetime-Byk97s6l.d.mts.map +1 -0
- package/dist/parse-datetime-mDZnUjZS.mjs +2 -0
- package/dist/parse-datetime-mDZnUjZS.mjs.map +1 -0
- package/dist/paypal-supported-countries-Bq8_WN4m.mjs +2 -0
- package/dist/paypal-supported-countries-Bq8_WN4m.mjs.map +1 -0
- package/dist/paypal-supported-countries-lqKLNq7N.d.mts +6 -0
- package/dist/paypal-supported-countries-lqKLNq7N.d.mts.map +1 -0
- package/dist/pick-b2604b42.d.ts +3 -0
- package/dist/plan-compare-27ce8e4e.d.ts +126 -0
- package/dist/plan-compare-33b84c8e.d.ts +109 -0
- package/dist/plan-compare-367d67ea.d.ts +110 -0
- package/dist/plan-compare-97700a47.d.ts +116 -0
- package/dist/plan-compare-97bc79b0.d.ts +126 -0
- package/dist/plan-compare-b173e633.d.ts +110 -0
- package/dist/plan-compare-b2d1b5ec.d.ts +155 -0
- package/dist/plan-compare-b3b80a0a.d.ts +109 -0
- package/dist/plan-compare-d6c2a413.d.ts +126 -0
- package/dist/pluralize-QqvEFeLY.d.mts +7 -0
- package/dist/pluralize-QqvEFeLY.d.mts.map +1 -0
- package/dist/pluralize-ZblMy4zT.mjs +2 -0
- package/dist/pluralize-ZblMy4zT.mjs.map +1 -0
- package/dist/promises-CT9s1DJ9.d.mts +15 -0
- package/dist/promises-CT9s1DJ9.d.mts.map +1 -0
- package/dist/promises-DDmW9pcL.mjs +2 -0
- package/dist/promises-DDmW9pcL.mjs.map +1 -0
- package/dist/punycode-C53XddJy.mjs +2 -0
- package/dist/punycode-C53XddJy.mjs.map +1 -0
- package/dist/punycode-Cpm0x-BY.d.mts +6 -0
- package/dist/punycode-Cpm0x-BY.d.mts.map +1 -0
- package/dist/random-value-Cq4bOTHN.mjs +2 -0
- package/dist/random-value-Cq4bOTHN.mjs.map +1 -0
- package/dist/random-value-CrrRC--E.d.mts +5 -0
- package/dist/random-value-CrrRC--E.d.mts.map +1 -0
- package/dist/regex-escape-CK4NyBtI.d.mts +9 -0
- package/dist/regex-escape-CK4NyBtI.d.mts.map +1 -0
- package/dist/regex-escape-D-s-2YvM.mjs +2 -0
- package/dist/regex-escape-D-s-2YvM.mjs.map +1 -0
- package/dist/regions-BCfpIPZ8.mjs +2 -0
- package/dist/regions-BCfpIPZ8.mjs.map +1 -0
- package/dist/regions-XImL1JIW.d.mts +8 -0
- package/dist/regions-XImL1JIW.d.mts.map +1 -0
- package/dist/reserved-slugs-DcvFdp0j.mjs +2 -0
- package/dist/reserved-slugs-DcvFdp0j.mjs.map +1 -0
- package/dist/reserved-slugs-Pt8Mzvr6.d.mts +10 -0
- package/dist/reserved-slugs-Pt8Mzvr6.d.mts.map +1 -0
- package/dist/resize-image-C2igYbk2.mjs +2 -0
- package/dist/resize-image-C2igYbk2.mjs.map +1 -0
- package/dist/resize-image-D43n6p_q.d.mts +9 -0
- package/dist/resize-image-D43n6p_q.d.mts.map +1 -0
- package/dist/saml-CfA07QWD.mjs +2 -0
- package/dist/saml-CfA07QWD.mjs.map +1 -0
- package/dist/saml-XZ0Yugat.d.mts +16 -0
- package/dist/saml-XZ0Yugat.d.mts.map +1 -0
- package/dist/smart-truncate-ZkjOWu6I.d.mts +5 -0
- package/dist/smart-truncate-ZkjOWu6I.d.mts.map +1 -0
- package/dist/smart-truncate-rnnVmdlf.mjs +2 -0
- package/dist/smart-truncate-rnnVmdlf.mjs.map +1 -0
- package/dist/src-XRl8K33L.mjs +2 -0
- package/dist/src-XRl8K33L.mjs.map +1 -0
- package/dist/stable-sort-BuC7RxbU.mjs +2 -0
- package/dist/stable-sort-BuC7RxbU.mjs.map +1 -0
- package/dist/stable-sort-DhyKnAhf.d.mts +9 -0
- package/dist/stable-sort-DhyKnAhf.d.mts.map +1 -0
- package/dist/text-fetcher--5fqEt6h.d.mts +7 -0
- package/dist/text-fetcher--5fqEt6h.d.mts.map +1 -0
- package/dist/text-fetcher-e-DKQHg9.mjs +2 -0
- package/dist/text-fetcher-e-DKQHg9.mjs.map +1 -0
- package/dist/time-ago-3x39IVui.mjs +2 -0
- package/dist/time-ago-3x39IVui.mjs.map +1 -0
- package/dist/time-ago-BCbFEp2b.d.mts +9 -0
- package/dist/time-ago-BCbFEp2b.d.mts.map +1 -0
- package/dist/trim-CJrtQEgb.d.mts +5 -0
- package/dist/trim-CJrtQEgb.d.mts.map +1 -0
- package/dist/trim-Z_pXMru1.mjs +2 -0
- package/dist/trim-Z_pXMru1.mjs.map +1 -0
- package/dist/truncate--NEd5u1m.mjs +2 -0
- package/dist/truncate--NEd5u1m.mjs.map +1 -0
- package/dist/truncate-BXoSqKKx.d.mts +5 -0
- package/dist/truncate-BXoSqKKx.d.mts.map +1 -0
- package/dist/urls-CGNgImqv.d.mts +25 -0
- package/dist/urls-CGNgImqv.d.mts.map +1 -0
- package/dist/urls-ivBifiO_.mjs +2 -0
- package/dist/urls-ivBifiO_.mjs.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A}from"./chunk-BMESPBRA.mjs";import{a as g}from"./chunk-CP4WO7MM.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as x}from"./chunk-IHX4EDUF.mjs";import{a as _}from"./chunk-Y2JLLSMJ.mjs";import{g as d}from"./chunk-2YQGBO42.mjs";import{a as h}from"./chunk-YUMUNL66.mjs";import{a as E,b as P}from"./chunk-SYT2IXG6.mjs";import{Fragment as a,jsx as i,jsxs as l}from"react/jsx-runtime";var U=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[i("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[i("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[i("strong",{children:e.limits.tags===d?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[i("strong",{children:e.limits.folders===d?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[i("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[i("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[i("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[i("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[i("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[i("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[i("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>i(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",i("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",i("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[i("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[i("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>i(a,{children:i("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[i("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(h.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&h.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((n,s)=>n.length<s.length?n:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),se=new RegExp(/^[a-zA-Z0-9\-]+$/),ie=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&h.has(r[r.length-1])||P.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},ae=e=>_.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:o}){if(!e)return"";let n=`https://${x(e)}${t&&t!=="_root"?`/${x(t)}`:""}`;if(o){let s=new URLSearchParams;for(let[u,m]of Object.entries(o))s.set(u,m);n+=`?${s.toString()}`}return r?n.replace(/^https?:\/\//,""):n}function ue({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var L=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],w={2:["price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},R=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(w).flat()],I=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],v={2:["price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},N=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(v).flat()],k={2:["price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},D=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...L,...R]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:w[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...I,...N]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:v[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:D},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],C=c.find(e=>e.name==="Free"),q=c.find(e=>e.name==="Pro"),He=c.find(e=>e.name==="Business"),et=c.find(e=>e.name==="Advanced"),V=c.find(e=>e.name==="Enterprise"),tt=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),rt=2,S=(e,t)=>{var n;let r=e.tiers&&t>1?e.tiers[t]:void 0,o=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...o},price:{...e.price,...r==null?void 0:r.price},features:(n=e.features)==null?void 0:n.map(s=>({...s,text:s.id==="clicks"?`${p(o.clicks)} tracked clicks/mo`:s.id==="links"?`${p(o.links)} new links/mo`:s.text}))}},st=({priceId:e})=>{var o;let t=c.find(n=>{var s;return(s=n.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers?((o=Object.entries(t.tiers).find(([n,{price:s}])=>s.ids.includes(e)))==null?void 0:o[0])??1:1;return{plan:S(t,r),planTier:r}},it=({plan:e,planTier:t=1})=>{let r=c.find(o=>o.name.toLowerCase()===e.toLowerCase());return S(r,t)},ot=e=>c.find(t=>t.name.toLowerCase()===e.toLowerCase())||C,nt=e=>{if(!e)return q;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},at=({currentPlan:e,newPlan:t,currentTier:r,newTier:o})=>{let n=c.findIndex(u=>u.name.toLowerCase()===e.toLowerCase()),s=c.findIndex(u=>u.name.toLowerCase()===t.toLowerCase());return n>s||n===s&&(r??1)>(o??1)},lt=({events:e,links:t,suggestFree:r=!1})=>{var n;let o=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let u=[1,...Object.keys(s.tiers??{}).map(Number).filter(m=>m>=2)].find(m=>{var b,y;let f=m===1?s.limits:((y=(b=s.tiers)==null?void 0:b[m])==null?void 0:y.limits)??s.limits;return f.clicks>=(e??0)&&f.links>=(t??0)});if(u!==void 0){let m=enrichPlanWithTier(s,u),f=u>1?(n=s.tiers)==null?void 0:n[u]:void 0;o={plan:{...m,price:{...s.price,...f==null?void 0:f.price}},planTier:u};break}}return o??{plan:V,planTier:1}},ct=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Vt=e=>!e.periodStart||!e.periodEnd?"-":`${g(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${g(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{U as a,Vt as b,te as c,re as d,se as e,ie as f,oe as g,ne as h,ae as i,pe as j,ue as k,N as l,c as m,C as n,q as o,He as p,et as q,V as r,tt as s,rt as t,st as u,it as v,ot as w,nt as x,at as y,lt as z,ct as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-CP4WO7MM.mjs";import{g as u}from"./chunk-2YQGBO42.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{a as P}from"./chunk-Y2JLLSMJ.mjs";import{a as A}from"./chunk-BMESPBRA.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as g}from"./chunk-IHX4EDUF.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{Fragment as a,jsx as o,jsxs as l}from"react/jsx-runtime";var O=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.tags===u?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.folders===u?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===u?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(a,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import S from"@sindresorhus/slugify";var ee=e=>{let t=S(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((s,i)=>s.length<i.length?s:i)}.link`},te=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),re=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),ie=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},oe=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},ne=e=>P.some(t=>t.slug===e);function ce({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let s=`https://${g(e)}${t&&t!=="_root"?`/${g(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[d,m]of Object.entries(n))i.set(d,m);s+=`?${i.toString()}`}return r?s.replace(/^https?:\/\//,""):s}function pe({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var v=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],J={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},L=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(J).flat()],R=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],w={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},I=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(w).flat()],k={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},N=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...v,...L]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:J[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...R,...I]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:u,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:w[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:N},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:u,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:u,domains:250,tags:u,folders:u,groups:u,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],q=c.find(e=>e.name==="Free"),V=c.find(e=>e.name==="Pro"),We=c.find(e=>e.name==="Business"),He=c.find(e=>e.name==="Advanced"),D=c.find(e=>e.name==="Enterprise"),et=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),tt=2,x=(e,t)=>{var s;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(s=e.features)==null?void 0:s.map(i=>({...i,text:i.id==="clicks"?`${p(n.clicks)} tracked clicks/mo`:i.id==="links"?`${p(n.links)} new links/mo`:i.text}))}},rt=({priceId:e})=>{var n;let t=c.find(s=>{var i;return(i=s.price.ids)==null?void 0:i.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([s,{price:i}])=>i.ids.includes(e)))==null?void 0:n[0])||1;return{plan:x(t,r),planTier:r}},st=({plan:e,planTier:t=1})=>{let r=c.find(n=>n.name.toLowerCase()===e.toLowerCase());return x(r,t)},it=e=>c.find(t=>t.name.toLowerCase()===e.toLowerCase())||q,ot=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},nt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let s=c.findIndex(d=>d.name.toLowerCase()===e.toLowerCase()),i=c.findIndex(d=>d.name.toLowerCase()===t.toLowerCase());return s>i||s===i&&(r??1)>(n??1)},at=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let i=[1,...Object.keys(s.tiers??{}).map(Number).filter(d=>d>=2)].find(d=>{var b,y;let m=d===1?s.limits:((y=(b=s.tiers)==null?void 0:b[d])==null?void 0:y.limits)??s.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(i!==void 0){n={plan:x(s,i),planTier:i};break}}return n??{plan:D,planTier:1}},lt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Dt=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{O as a,Dt as b,ee as c,te as d,re as e,se as f,ie as g,oe as h,ne as i,ce as j,pe as k,I as l,c as m,q as n,V as o,We as p,He as q,D as r,et as s,tt as t,rt as u,st as v,it as w,ot as x,nt as y,at as z,lt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as l}from"./chunk-2YQGBO42.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{Fragment as s,jsx as r,jsxs as n}from"react/jsx-runtime";var R=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>n(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.tags===l?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.folders===l?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":n(s,{children:[r("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===l?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>n(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>n(s,{children:["Free ",r("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>n(s,{children:[r("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>r(s,{children:r("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>n(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var y=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],b={2:["price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},P=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(b).flat()],_=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],x={2:["price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},E=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(x).flat()],f={2:["price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},A=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(f).flat()],a=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...y,...P]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:b[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[..._,...E]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:l,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:x[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:A},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:l,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:f[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:f[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:l,domains:250,tags:l,folders:l,groups:l,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],w=a.find(e=>e.name==="Free"),v=a.find(e=>e.name==="Pro"),C=a.find(e=>e.name==="Business"),V=a.find(e=>e.name==="Advanced"),J=a.find(e=>e.name==="Enterprise"),L=a.filter(e=>["Pro","Business","Advanced"].includes(e.name)),D=2,O=e=>{var u;let t=a.find(c=>{var i;return(i=c.price.ids)==null?void 0:i.includes(e)});if(!t)return null;let o=t.tiers?((u=Object.entries(t.tiers).find(([c,{price:i}])=>i.ids.includes(e)))==null?void 0:u[0])??null:null;return{plan:t,planTier:o?Number(o):1}},U=({plan:e})=>L.find(t=>t.name.toLowerCase()===e.toLowerCase()),T=({plan:e,planTier:t})=>{let o=a.find(c=>c.name.toLowerCase()===e.toLowerCase()),u=o.tiers&&t?o.tiers[t].limits:o.limits;return{...o.limits,...u}},F=e=>a.find(t=>t.name.toLowerCase()===e.toLowerCase())||w,B=e=>{if(!e)return v;let t=e.toLowerCase().split(" ")[0];return a[Math.min(a.findIndex(o=>o.name.toLowerCase()===t)+1,a.length-1)]},j=({currentPlan:e,newPlan:t,currentTier:o,newTier:u})=>{let c=a.findIndex(m=>m.name.toLowerCase()===e.toLowerCase()),i=a.findIndex(m=>m.name.toLowerCase()===t.toLowerCase());return c>i||c===i&&(o??0)>(u??0)},Q=({events:e,links:t,suggestFree:o=!1})=>{var c;let u=null;for(let i of a){if(!o&&i.price.monthly===0)continue;let m=[0,...Object.keys(i.tiers??{}).map(Number)].find(d=>{var k,g;let h=d==0?i.limits:((g=(k=i.tiers)==null?void 0:k[d])==null?void 0:g.limits)??i.limits;return h.clicks>=(e??0)&&h.links>=(t??0)});if(m!==void 0){let d=(c=i.tiers)==null?void 0:c[m];u={...i,limits:{...i.limits,...d==null?void 0:d.limits},price:{...i.price,...d==null?void 0:d.price},tier:Number(m)};break}}return u??{...J,tier:0}},G=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{R as a,E as b,a as c,w as d,v as e,C as f,V as g,J as h,L as i,D as j,O as k,U as l,T as m,F as n,B as o,j as p,Q as q,G as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A}from"./chunk-BMESPBRA.mjs";import{a as h}from"./chunk-CP4WO7MM.mjs";import{a as g}from"./chunk-IHX4EDUF.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as P}from"./chunk-MWDHT2QR.mjs";import{g as u}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as a,jsx as o,jsxs as l}from"react/jsx-runtime";var T=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.tags===u?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.folders===u?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===u?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(a,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import S from"@sindresorhus/slugify";var H=e=>{let t=S(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((s,i)=>s.length<i.length?s:i)}.link`},ee=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),te=new RegExp(/^[a-zA-Z0-9\-]+$/),re=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),se=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ie=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},oe=e=>P.some(t=>t.slug===e);function le({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let s=`https://${g(e)}${t&&t!=="_root"?`/${g(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[d,m]of Object.entries(n))i.set(d,m);s+=`?${i.toString()}`}return r?s.replace(/^https?:\/\//,""):s}function ce({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var v=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],J={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},L=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(J).flat()],R=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],w={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},I=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(w).flat()],k={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},N=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:1,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...v,...L]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:J[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...R,...I]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:u,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:w[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:N},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:u,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:u,domains:250,tags:u,folders:u,groups:u,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],He=c.find(e=>e.name==="Free"),q=c.find(e=>e.name==="Pro"),et=c.find(e=>e.name==="Business"),tt=c.find(e=>e.name==="Advanced"),V=c.find(e=>e.name==="Enterprise"),rt=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),st=2,x=(e,t)=>{var s;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(s=e.features)==null?void 0:s.map(i=>({...i,text:i.id==="clicks"?`${p(n.clicks)} tracked clicks/mo`:i.id==="links"?`${p(n.links)} new links/mo`:i.text}))}},it=({priceId:e})=>{var n;let t=c.find(s=>{var i;return(i=s.price.ids)==null?void 0:i.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([s,{price:i}])=>i.ids.includes(e)))==null?void 0:n[0])||1;return{plan:x(t,r),planTier:r}},ot=({plan:e,planTier:t=1})=>{let r=c.find(n=>n.name.toLowerCase()===e.toLowerCase());return x(r,t)},nt=e=>{if(!e)return q;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},at=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let s=c.findIndex(d=>d.name.toLowerCase()===e.toLowerCase()),i=c.findIndex(d=>d.name.toLowerCase()===t.toLowerCase());return s>i||s===i&&(r??1)>(n??1)},lt=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let i=[1,...Object.keys(s.tiers??{}).map(Number).filter(d=>d>=2)].find(d=>{var b,y;let m=d===1?s.limits:((y=(b=s.tiers)==null?void 0:b[d])==null?void 0:y.limits)??s.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(i!==void 0){n={plan:x(s,i),planTier:i};break}}return n??{plan:V,planTier:1}},ct=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Ct=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{T as a,Ct as b,H as c,ee as d,te as e,re as f,se as g,ie as h,oe as i,le as j,ce as k,I as l,c as m,He as n,q as o,et as p,tt as q,V as r,rt as s,st as t,it as u,ot as v,nt as w,at as x,lt as y,ct as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as l}from"./chunk-2YQGBO42.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{Fragment as s,jsx as r,jsxs as n}from"react/jsx-runtime";var R=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>n(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.tags===l?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.folders===l?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":n(s,{children:[r("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===l?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>n(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>n(s,{children:["Free ",r("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>n(s,{children:[r("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>r(s,{children:r("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>n(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var y=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],b={2:["price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},P=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(b).flat()],_=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],x={2:["price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},E=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(x).flat()],f={2:["price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},A=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(f).flat()],a=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...y,...P]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:b[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[..._,...E]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:l,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:x[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:A},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:l,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:f[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:f[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:l,domains:250,tags:l,folders:l,groups:l,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],w=a.find(e=>e.name==="Free"),v=a.find(e=>e.name==="Pro"),C=a.find(e=>e.name==="Business"),V=a.find(e=>e.name==="Advanced"),J=a.find(e=>e.name==="Enterprise"),L=a.filter(e=>["Pro","Business","Advanced"].includes(e.name)),D=2,O=({priceId:e})=>{var u;let t=a.find(c=>{var i;return(i=c.price.ids)==null?void 0:i.includes(e)});if(!t)return null;let o=t.tiers?((u=Object.entries(t.tiers).find(([c,{price:i}])=>i.ids.includes(e)))==null?void 0:u[0])??null:null;return{plan:t,planTier:o?Number(o):1}},T=({plan:e})=>L.find(t=>t.name.toLowerCase()===e.toLowerCase()),U=({plan:e,planTier:t})=>{let o=a.find(c=>c.name.toLowerCase()===e.toLowerCase()),u=o.tiers&&t?o.tiers[t].limits:o.limits;return{...o.limits,...u}},F=e=>a.find(t=>t.name.toLowerCase()===e.toLowerCase())||w,B=e=>{if(!e)return v;let t=e.toLowerCase().split(" ")[0];return a[Math.min(a.findIndex(o=>o.name.toLowerCase()===t)+1,a.length-1)]},j=({currentPlan:e,newPlan:t,currentTier:o,newTier:u})=>{let c=a.findIndex(m=>m.name.toLowerCase()===e.toLowerCase()),i=a.findIndex(m=>m.name.toLowerCase()===t.toLowerCase());return c>i||c===i&&(o??0)>(u??0)},Q=({events:e,links:t,suggestFree:o=!1})=>{var c;let u=null;for(let i of a){if(!o&&i.price.monthly===0)continue;let m=[0,...Object.keys(i.tiers??{}).map(Number)].find(d=>{var k,g;let h=d==0?i.limits:((g=(k=i.tiers)==null?void 0:k[d])==null?void 0:g.limits)??i.limits;return h.clicks>=(e??0)&&h.links>=(t??0)});if(m!==void 0){let d=(c=i.tiers)==null?void 0:c[m];u={plan:{...i,limits:{...i.limits,...d==null?void 0:d.limits},price:{...i.price,...d==null?void 0:d.price}},planTier:m};break}}return u??{plan:J,planTier:1}},G=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{R as a,E as b,a as c,w as d,v as e,C as f,V as g,J as h,L as i,D as j,O as k,T as l,U as m,F as n,B as o,j as p,Q as q,G as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A}from"./chunk-BMESPBRA.mjs";import{a as h}from"./chunk-CP4WO7MM.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as x}from"./chunk-IHX4EDUF.mjs";import{a as P}from"./chunk-Y2JLLSMJ.mjs";import{g as d}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as n,jsx as o,jsxs as l}from"react/jsx-runtime";var T=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(n,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(n,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(n,{children:[o("strong",{children:e.limits.tags===d?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(n,{children:[o("strong",{children:e.limits.folders===d?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(n,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(n,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(n,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(n,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===d?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(n,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(n,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(n,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(n,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(n,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(n,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(n,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(n,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(n,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(n,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import J from"@sindresorhus/slugify";var te=e=>{let t=J(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((i,s)=>i.length<s.length?i:s)}.link`},re=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),se=new RegExp(/^[a-zA-Z0-9\-]+$/),ie=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),oe=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ne=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},ae=e=>P.some(t=>t.slug===e);function pe({domain:e,key:t,pretty:r,searchParams:a}){if(!e)return"";let i=`https://${x(e)}${t&&t!=="_root"?`/${x(t)}`:""}`;if(a){let s=new URLSearchParams;for(let[m,u]of Object.entries(a))s.set(m,u);i+=`?${s.toString()}`}return r?i.replace(/^https?:\/\//,""):i}function ue({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var L=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],w={2:["price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},R=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(w).flat()],I=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],v={2:["price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},D=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(v).flat()],g={2:["price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},N=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(g).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...L,...R]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:w[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...I,...D]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:d,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:v[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:N},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:d,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:g[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:g[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:d,domains:250,tags:d,folders:d,groups:d,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],C=c.find(e=>e.name==="Free"),q=c.find(e=>e.name==="Pro"),He=c.find(e=>e.name==="Business"),et=c.find(e=>e.name==="Advanced"),V=c.find(e=>e.name==="Enterprise"),tt=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),rt=2,S=(e,t)=>{var a;let r=e.tiers&&t>1?e.tiers[t].limits:e.limits;return{...e,limits:{...e.limits,...r},features:(a=e.features)==null?void 0:a.map(i=>({...i,text:i.id==="clicks"?`${p(r.clicks)} tracked clicks/mo`:i.id==="links"?`${p(r.links)} new links/mo`:i.text}))}},st=({priceId:e})=>{var a;let t=c.find(i=>{var s;return(s=i.price.ids)==null?void 0:s.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers?((a=Object.entries(t.tiers).find(([i,{price:s}])=>s.ids.includes(e)))==null?void 0:a[0])??1:1;return{plan:S(t,r),planTier:r}},it=({plan:e,planTier:t=1})=>{let r=c.find(a=>a.name.toLowerCase()===e.toLowerCase());return S(r,t)},ot=e=>c.find(t=>t.name.toLowerCase()===e.toLowerCase())||C,nt=e=>{if(!e)return q;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},at=({currentPlan:e,newPlan:t,currentTier:r,newTier:a})=>{let i=c.findIndex(m=>m.name.toLowerCase()===e.toLowerCase()),s=c.findIndex(m=>m.name.toLowerCase()===t.toLowerCase());return i>s||i===s&&(r??1)>(a??1)},lt=({events:e,links:t,suggestFree:r=!1})=>{var i;let a=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let m=[0,...Object.keys(s.tiers??{}).map(Number)].find(u=>{var b,y;let k=u===1?s.limits:((y=(b=s.tiers)==null?void 0:b[u])==null?void 0:y.limits)??s.limits;return k.clicks>=(e??0)&&k.links>=(t??0)});if(m!==void 0){let u=(i=s.tiers)==null?void 0:i[m];a={plan:{...s,limits:{...s.limits,...u==null?void 0:u.limits},price:{...s.price,...u==null?void 0:u.price}},planTier:m};break}}return a??{plan:V,planTier:1}},ct=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Vt=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{T as a,Vt as b,te as c,re as d,se as e,ie as f,oe as g,ne as h,ae as i,pe as j,ue as k,D as l,c as m,C as n,q as o,He as p,et as q,V as r,tt as s,rt as t,st as u,it as v,ot as w,nt as x,at as y,lt as z,ct as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=r=>["BIF","CLP","DJF","GNF","JPY","KMF","KRW","MGA","PYG","RWF","UGX","VND","VUV","XAF","XOF","XPF"].includes(r.toUpperCase());var a=(r,e)=>{let t=(e==null?void 0:e.currency)||"USD";return Intl.NumberFormat("en-US",{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2,trailingZeroDisplay:"auto",...e}).format(n(t)?r:r/100)};export{n as a,a as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A}from"./chunk-BMESPBRA.mjs";import{a as h}from"./chunk-CP4WO7MM.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as g}from"./chunk-IHX4EDUF.mjs";import{a as P}from"./chunk-MWDHT2QR.mjs";import{g as u}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as a,jsx as o,jsxs as l}from"react/jsx-runtime";var T=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.tags===u?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.folders===u?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===u?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(a,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import S from"@sindresorhus/slugify";var H=e=>{let t=S(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((s,i)=>s.length<i.length?s:i)}.link`},ee=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),te=new RegExp(/^[a-zA-Z0-9\-]+$/),re=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),se=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ie=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},oe=e=>P.some(t=>t.slug===e);function le({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let s=`https://${g(e)}${t&&t!=="_root"?`/${g(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[d,m]of Object.entries(n))i.set(d,m);s+=`?${i.toString()}`}return r?s.replace(/^https?:\/\//,""):s}function ce({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var ue=(e,t)=>Object.fromEntries(t.map(r=>[r,e[r]]));var v=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],J={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},L=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(J).flat()],R=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],w={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},I=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(w).flat()],k={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},N=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,analyticsApi:1,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...v,...L]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,analyticsApi:2,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:J[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...R,...I]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:u,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,analyticsApi:4,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:w[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:N},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:u,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,analyticsApi:8,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:u,domains:250,tags:u,folders:u,groups:u,networkInvites:20,users:30,ai:1e3,api:3e3,analyticsApi:16,retention:"Unlimited"}}],tt=c.find(e=>e.name==="Free"),q=c.find(e=>e.name==="Pro"),rt=c.find(e=>e.name==="Business"),st=c.find(e=>e.name==="Advanced"),V=c.find(e=>e.name==="Enterprise"),it=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),ot=2,x=(e,t)=>{var s;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(s=e.features)==null?void 0:s.map(i=>({...i,text:i.id==="clicks"?`${p(n.clicks)} tracked clicks/mo`:i.id==="links"?`${p(n.links)} new links/mo`:i.text}))}},nt=({priceId:e})=>{var n;let t=c.find(s=>{var i;return(i=s.price.ids)==null?void 0:i.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([s,{price:i}])=>i.ids.includes(e)))==null?void 0:n[0])||1;return{plan:x(t,r),planTier:r}},at=({plan:e,planTier:t=1})=>{let r=c.find(n=>n.name.toLowerCase()===e.toLowerCase());return x(r,t)},lt=e=>{if(!e)return q;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},ct=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let s=c.findIndex(d=>d.name.toLowerCase()===e.toLowerCase()),i=c.findIndex(d=>d.name.toLowerCase()===t.toLowerCase());return s>i||s===i&&(r??1)>(n??1)},pt=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let i=[1,...Object.keys(s.tiers??{}).map(Number).filter(d=>d>=2)].find(d=>{var b,y;let m=d===1?s.limits:((y=(b=s.tiers)==null?void 0:b[d])==null?void 0:y.limits)??s.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(i!==void 0){n={plan:x(s,i),planTier:i};break}}return n??{plan:V,planTier:1}},ut=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Ot=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{T as a,Ot as b,H as c,ee as d,te as e,re as f,se as g,ie as h,oe as i,le as j,ce as k,ue as l,I as m,c as n,tt as o,q as p,rt as q,st as r,V as s,it as t,ot as u,nt as v,at as w,lt as x,ct as y,pt as z,ut as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as h}from"./chunk-CP4WO7MM.mjs";import{g as u}from"./chunk-2YQGBO42.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{a as P}from"./chunk-MWDHT2QR.mjs";import{a as J}from"./chunk-BMESPBRA.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as g}from"./chunk-IHX4EDUF.mjs";import{a as A}from"./chunk-KDMJUM2I.mjs";import{Fragment as a,jsx as o,jsxs as l}from"react/jsx-runtime";var F=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.tags===u?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.folders===u?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`${A(t.limits.payouts)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===u?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(a,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import v from"@sindresorhus/slugify";var re=e=>{let t=v(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((s,i)=>s.length<i.length?s:i)}.link`},se=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),ie=new RegExp(/^[a-zA-Z0-9\-]+$/),oe=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),ne=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},ae=e=>{if(J(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},le=e=>P.some(t=>t.slug===e);function ue({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let s=`https://${g(e)}${t&&t!=="_root"?`/${g(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[d,m]of Object.entries(n))i.set(d,m);s+=`?${i.toString()}`}return r?s.replace(/^https?:\/\//,""):s}function de({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var L=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],w={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},R=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(w).flat()],I=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],S={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},N=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(S).flat()],k={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...L,...R]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:w[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...I,...N]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:u,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:S[2]},limits:{links:25e3,clicks:6e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:u,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:u,domains:250,tags:u,folders:u,groups:u,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],V=c.find(e=>e.name==="Free"),D=c.find(e=>e.name==="Pro"),tt=c.find(e=>e.name==="Business"),rt=c.find(e=>e.name==="Advanced"),C=c.find(e=>e.name==="Enterprise"),st=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),it=2,x=(e,t)=>{var s;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(s=e.features)==null?void 0:s.map(i=>({...i,text:i.id==="clicks"?`${p(n.clicks)} tracked clicks/mo`:i.id==="links"?`${p(n.links)} new links/mo`:i.text}))}},ot=({priceId:e})=>{var n;let t=c.find(s=>{var i;return(i=s.price.ids)==null?void 0:i.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers&&Number((n=Object.entries(t.tiers).find(([s,{price:i}])=>i.ids.includes(e)))==null?void 0:n[0])||1;return{plan:x(t,r),planTier:r}},nt=({plan:e,planTier:t=1})=>{let r=c.find(n=>n.name.toLowerCase()===e.toLowerCase());return x(r,t)},at=e=>c.find(t=>t.name.toLowerCase()===e.toLowerCase())||V,lt=e=>{if(!e)return D;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},ct=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let s=c.findIndex(d=>d.name.toLowerCase()===e.toLowerCase()),i=c.findIndex(d=>d.name.toLowerCase()===t.toLowerCase());return s>i||s===i&&(r??1)>(n??1)},pt=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let i=[1,...Object.keys(s.tiers??{}).map(Number).filter(d=>d>=2)].find(d=>{var b,y;let m=d===1?s.limits:((y=(b=s.tiers)==null?void 0:b[d])==null?void 0:y.limits)??s.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(i!==void 0){n={plan:x(s,i),planTier:i};break}}return n??{plan:C,planTier:1}},ut=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Ot=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{F as a,Ot as b,re as c,se as d,ie as e,oe as f,ne as g,ae as h,le as i,ue as j,de as k,N as l,c as m,V as n,D as o,tt as p,rt as q,C as r,st as s,it as t,ot as u,nt as v,at as w,lt as x,ct as y,pt as z,ut as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var a=t=>{try{return new URL(t),!0}catch{return!1}},c=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return t},u=t=>{if(a(t))return new URL(t);try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`)}catch{}return null},l=t=>{if(a(t))return t;try{if(t.includes(".")&&!t.includes(" "))return new URL(`https://${t}`).toString()}catch{}return null},p=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){e[n]=r}),e},m=t=>{let e={};return new URL(t).searchParams.forEach(function(r,n){if(n in e){let s=e[n];Array.isArray(s)?s.push(r):e[n]=[s,r]}else e[n]=r}),e},g=t=>{if(!t)return{};try{let e=new URL(t).searchParams,r={};for(let[n,s]of e.entries())s&&s!==""&&(r[n]=s);return r}catch{return{}}},h=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","ref"],d=(t,e)=>{if(!t)return"";try{let r=new URL(t);for(let[n,s]of Object.entries(e))s?r.searchParams.set(n,s.replace("+"," ")):r.searchParams.delete(n);return r.toString()}catch{return""}},i=[{display:"UTM Source",key:"utm_source",examples:"google, twitter"},{display:"UTM Medium",key:"utm_medium",examples:"social, email"},{display:"UTM Campaign",key:"utm_campaign",examples:"summer sale"},{display:"UTM Term",key:"utm_term",examples:"blue shoes"},{display:"UTM Content",key:"utm_content",examples:"logo link"},{display:"Referral (ref)",key:"ref",examples:"google, twitter"}],U=t=>{try{let e=new URL(t);return i.forEach(r=>e.searchParams.delete(r.key)),e.toString()}catch{return t}},f=t=>t?t.replace(/(^\w+:|^)\/\//,"").replace("www.","").replace(/\/$/,""):"",y=(t,e,r)=>{if(e==="dub.co")return t;let n=new URL(t.startsWith("/")?`https://dub.co${t}`:t);return r&&Object.entries(r).forEach(([s,o])=>{n.searchParams.set(s,o)}),n.toString()},w=t=>{try{let e=new URL(t,"https://dummy-base.local"),r=e.pathname+e.search;return r=r.startsWith("/")?r.slice(1):r,r}catch{return t}},x=t=>{try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`}catch{return t}};function R(t,e){let r=new URL(t,typeof window<"u"?window.location.origin:"http://localhost");return e&&Object.entries(e).forEach(([n,s])=>{s!=null&&s!==""&&r.searchParams.append(n,String(s))}),r.toString()}var L=t=>{var e;try{let n=new URL(t).pathname.split(".").pop();return n?n.toUpperCase():null}catch{let r=(e=t.split(".").pop())==null?void 0:e.split("?")[0];return r?r.toUpperCase():null}};export{a,c as b,u as c,l as d,p as e,m as f,g,h,d as i,i as j,U as k,f as l,y as m,w as n,x as o,R as p,L as q};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as A}from"./chunk-BMESPBRA.mjs";import{a as h}from"./chunk-CP4WO7MM.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{a as g}from"./chunk-IHX4EDUF.mjs";import{a as P}from"./chunk-Y2JLLSMJ.mjs";import{g as u}from"./chunk-2YQGBO42.mjs";import{a as f}from"./chunk-YUMUNL66.mjs";import{a as E,b as _}from"./chunk-SYT2IXG6.mjs";import{Fragment as a,jsx as o,jsxs as l}from"react/jsx-runtime";var O=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>l(a,{children:[o("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.tags===u?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.folders===u?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":l(a,{children:[o("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":l(a,{children:[o("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.groups===0?"No":e.limits.groups===u?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>l(a,{children:[o("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>o(a,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>l(a,{children:["Premium ",o("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>l(a,{children:["Free ",o("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>l(a,{children:[o("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>l(a,{children:[o("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>o(a,{children:o("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>l(a,{children:[o("strong",{children:"Dedicated"})," success manager"]})}]}];import S from"@sindresorhus/slugify";var ee=e=>{let t=S(e,{separator:""});if(t.length<3)return"";if(f.has(t.slice(-2)))return`${t.slice(0,-2)}.${t.slice(-2)}`;let r=t.replace(/[aeiou]/g,"");return r.length>=3&&f.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[t,r].reduce((s,i)=>s.length<i.length?s:i)}.link`},te=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),re=new RegExp(/^[a-zA-Z0-9\-]+$/),se=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),ie=e=>{let t;try{t=new URL(e.replace(/^[a-zA-Z]+:\/\//,"https://")).hostname}catch{return""}if(t==="youtu.be")return"youtube.com";let r=t.split(".");return r.length>2?E.has(r[r.length-2])&&f.has(r[r.length-1])||_.has(r.slice(-2).join("."))?r.slice(-3).join("."):r.slice(-2).join("."):t},oe=e=>{if(A(e))return new URL(e).hostname.replace(/^www\./,"");try{if(e.includes(".")&&!e.includes(" "))return new URL(`https://${e}`).hostname.replace(/^www\./,"")}catch{return null}},ne=e=>P.some(t=>t.slug===e);function ce({domain:e,key:t,pretty:r,searchParams:n}){if(!e)return"";let s=`https://${g(e)}${t&&t!=="_root"?`/${g(t)}`:""}`;if(n){let i=new URLSearchParams;for(let[d,m]of Object.entries(n))i.set(d,m);s+=`?${i.toString()}`}return r?s.replace(/^https?:\/\//,""):s}function pe({domain:e,key:t}){return`https://${e}${t==="_root"?"":`/${t}`}`}var v=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],J={2:["price_1SQtg3AlJJEpqkPVVhDSyd9u","price_1SQtg3AlJJEpqkPVNHYhTRy7","price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},L=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(J).flat()],R=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],w={2:["price_1SQtdxAlJJEpqkPV4kNkRHZr","price_1SQtdxAlJJEpqkPV7cvJTv4g","price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},I=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(w).flat()],k={2:["price_1SQtg6AlJJEpqkPVAJdrStq7","price_1SQtg6AlJJEpqkPVaZNisQdm","price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQtg8AlJJEpqkPVvQVU7uQ3","price_1SQtg8AlJJEpqkPV4Nks8MkS","price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},q=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(k).flat()],c=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",price:{monthly:30,yearly:25,ids:[...v,...L]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:J[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[...R,...I]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:u,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:w[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"partners",text:"Dub Partners",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"customerinsights",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}},{id:"tests",text:"A/B testing"}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:q},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:u,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:k[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:k[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"email",text:"Email campaigns",tooltip:{title:"Send marketing and transactional emails to your partners to increase engagement and drive conversions.",cta:"Learn more.",href:"https://dub.co/help/article/email-campaigns"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:u,domains:250,tags:u,folders:u,groups:u,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],N=c.find(e=>e.name==="Free"),V=c.find(e=>e.name==="Pro"),We=c.find(e=>e.name==="Business"),He=c.find(e=>e.name==="Advanced"),D=c.find(e=>e.name==="Enterprise"),et=c.filter(e=>["Pro","Business","Advanced"].includes(e.name)),tt=2,x=(e,t)=>{var s;let r=e.tiers&&t>1?e.tiers[t]:void 0,n=(r==null?void 0:r.limits)??e.limits;return{...e,limits:{...e.limits,...n},price:{...e.price,...r==null?void 0:r.price},features:(s=e.features)==null?void 0:s.map(i=>({...i,text:i.id==="clicks"?`${p(n.clicks)} tracked clicks/mo`:i.id==="links"?`${p(n.links)} new links/mo`:i.text}))}},rt=({priceId:e})=>{var n;let t=c.find(s=>{var i;return(i=s.price.ids)==null?void 0:i.includes(e)});if(!t)return{plan:null,planTier:1};let r=t.tiers?((n=Object.entries(t.tiers).find(([s,{price:i}])=>i.ids.includes(e)))==null?void 0:n[0])??1:1;return{plan:x(t,r),planTier:r}},st=({plan:e,planTier:t=1})=>{let r=c.find(n=>n.name.toLowerCase()===e.toLowerCase());return x(r,t)},it=e=>c.find(t=>t.name.toLowerCase()===e.toLowerCase())||N,ot=e=>{if(!e)return V;let t=e.toLowerCase().split(" ")[0];return c[Math.min(c.findIndex(r=>r.name.toLowerCase()===t)+1,c.length-1)]},nt=({currentPlan:e,newPlan:t,currentTier:r,newTier:n})=>{let s=c.findIndex(d=>d.name.toLowerCase()===e.toLowerCase()),i=c.findIndex(d=>d.name.toLowerCase()===t.toLowerCase());return s>i||s===i&&(r??1)>(n??1)},at=({events:e,links:t,suggestFree:r=!1})=>{let n=null;for(let s of c){if(!r&&s.price.monthly===0)continue;let i=[1,...Object.keys(s.tiers??{}).map(Number).filter(d=>d>=2)].find(d=>{var b,y;let m=d===1?s.limits:((y=(b=s.tiers)==null?void 0:b[d])==null?void 0:y.limits)??s.limits;return m.clicks>=(e??0)&&m.links>=(t??0)});if(i!==void 0){n={plan:x(s,i),planTier:i};break}}return n??{plan:D,planTier:1}},lt=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;var Dt=e=>!e.periodStart||!e.periodEnd?"-":`${h(e.periodStart,{month:"short",year:new Date(e.periodStart).getUTCFullYear()===new Date(e.periodEnd).getUTCFullYear()?void 0:"numeric",timeZone:"utc"})}-${h(e.periodEnd,{month:"short",timeZone:"utc"})}`;export{O as a,Dt as b,ee as c,te as d,re as e,se as f,ie as g,oe as h,ne as i,ce as j,pe as k,I as l,c as m,N as n,V as o,We as p,He as q,D as r,et as s,tt as t,rt as u,st as v,it as w,ot as x,nt as y,at as z,lt as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-Bs44WO9n.d.mts","names":["chunk","T"],"sources":["../src/functions/chunk.d.ts"],"sourcesContent":["export declare const chunk: <T>(array: T[], chunk_size: number) => T[][];\n"],"mappings":";cAAqBA,kBAAkBC,4BAA4BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as l}from"./chunk-2YQGBO42.mjs";import{a as p}from"./chunk-NWFCCRLG.mjs";import{Fragment as s,jsx as r,jsxs as n}from"react/jsx-runtime";var R=[{category:"Links",href:"https://dub.co/links",features:[{text:()=>n(s,{children:[r("strong",{children:"Unlimited"})," clicks"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.links)})," ","new links",e.name==="Enterprise"?"":"/mo"]})},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.tags===l?"Unlimited":p(e.limits.tags)})," ","tags"]}),href:"https://dub.co/help/article/how-to-use-tags"},{check:{free:!1,default:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.folders===l?"Unlimited":p(e.limits.folders)})," ","folders"]})},{text:"Custom QR codes",href:"https://dub.co/help/article/custom-qr-codes"},{text:"UTM builder + templates",href:"https://dub.co/help/article/how-to-create-utm-templates"},{check:{free:!1,default:!0},text:"Custom link previews",href:"https://dub.co/help/article/custom-link-previews"},{check:{free:!1,default:!0},text:"Deep links",href:"https://dub.co/docs/concepts/deep-links/quickstart"},{check:{free:!1,default:!0},text:"Link cloaking",href:"https://dub.co/help/article/link-cloaking"},{check:{free:!1,default:!0},text:"Link expiration",href:"https://dub.co/help/article/link-expiration"},{check:{free:!1,default:!0},text:"Password protection",href:"https://dub.co/help/article/password-protected-links"},{check:{free:!1,default:!0},text:"Device targeting",href:"https://dub.co/help/article/device-targeting"},{check:{free:!1,default:!0},text:"Geo targeting",href:"https://dub.co/help/article/geo-targeting"},{check:{free:!1,pro:!1,default:!0},text:"A/B testing"}]},{category:"Partners",href:"https://dub.co/partners",features:[{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Unlimited partners"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Automated global payouts",href:"https://dub.co/help/article/partner-payouts"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:t.name==="Enterprise"?"Unlimited":`$${p(t.limits.payouts/100)}`})," ","partner payouts",t.name==="Enterprise"?"":"/mo"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e})=>e==="free"||e==="pro"?"No partner payouts":n(s,{children:[r("strong",{children:{business:"5%",advanced:"5%",enterprise:"3%"}[e]})," ","payout fees"]}),href:"https://dub.co/help/article/partner-payouts#payout-fees-and-timing"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Tax compliance",href:"https://dub.co/help/article/partner-payouts#tax-compliance"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({id:e,plan:t})=>e==="free"||e==="pro"?"No partner rewards":n(s,{children:[r("strong",{children:t.name==="Business"?"Basic":"Advanced"})," ","partner rewards"]}),href:"https://dub.co/help/article/partner-rewards"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Dual-sided incentives",href:"https://dub.co/help/article/dual-sided-incentives"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"AI landing page generator",href:"https://dub.co/help/article/program-landing-page"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.groups===0?"No":e.limits.groups===l?"Unlimited":p(e.limits.groups)})," ","partner groups"]}),href:"https://dub.co/help/article/partner-groups"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Embedded referral dashboard",href:"https://dub.co/docs/partners/embedded-referrals"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Partners API",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Messaging center"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Email campaigns (beta)"},{check:{default:!1,advanced:!0,enterprise:!0},text:"Fraud & risk prevention"},{check:{default:!1,enterprise:!0},text:"Partner network access"}]},{category:"Analytics",href:"https://dub.co/analytics",features:[{text:"Advanced analytics",href:"https://dub.co/help/article/dub-analytics"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.clicks)})," ","tracked clicks",e.name==="Enterprise"?"":"/mo"]}),href:"https://dub.co/help/article/dub-analytics-limits"},{text:({plan:e})=>n(s,{children:[r("strong",{children:e.limits.retention})," retention"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Conversion tracking",href:"https://dub.co/help/article/dub-conversions"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Customer insights",href:"https://dub.co/help/article/customer-insights"},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Real-time events stream",href:"https://dub.co/help/article/real-time-events-stream"}]},{category:"Domains",href:"https://dub.co/help/category/custom-domains",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.domains,{full:!0})})," ","custom domains"]})},{text:()=>r(s,{children:"SSL certificates"})},{check:{default:!0,free:!1},text:()=>n(s,{children:["Premium ",r("strong",{children:"dub.link"})," domain"]}),href:"https://dub.co/help/article/default-dub-domains#premium-dublink-domain"},{check:{default:!0,free:!1},text:()=>n(s,{children:["Free ",r("strong",{children:".link"})," domain"]}),href:"https://dub.co/help/article/free-dot-link-domain"}]},{category:"API",href:"https://dub.co/docs/api-reference/introduction",features:[{text:"API Access",href:"https://dub.co/docs/api-reference/introduction"},{text:"Native SDKs",href:"https://dub.co/docs/sdks/overview"},{text:({id:e,plan:t})=>n(s,{children:[r("strong",{children:e==="enterprise"?"Custom":p(t.limits.api,{full:!0})+"/min"})," ","rate limit"]})},{check:{default:!1,business:!0,advanced:!0,enterprise:!0},text:"Event webhooks",href:"https://dub.co/docs/concepts/webhooks/introduction"}]},{category:"Workspace",href:"https://dub.co/help/category/workspaces",features:[{text:({plan:e})=>n(s,{children:[r("strong",{children:e.name==="Enterprise"?"Unlimited":p(e.limits.users)})," ","user",e.limits.users===1?"":"s"]})},{check:{default:!1,advanced:!0,enterprise:!0},text:"Role-based access control"},{check:{default:!1,enterprise:!0},text:"SAML/SSO",href:"https://dub.co/help/category/saml-sso"},{check:{default:!1,enterprise:!0},text:"Audit logs"}]},{category:"Support",href:"https://dub.co/contact/support",features:[{text:({id:e})=>r(s,{children:r("strong",{children:{free:"Basic support",pro:"Elevated support",business:"Priority support",advanced:"Priority via Slack",enterprise:"Priority with SLA"}[e]})})},{check:{default:!1,enterprise:!0},text:()=>n(s,{children:[r("strong",{children:"Dedicated"})," success manager"]})}]}];var y=["price_1LodNLAlJJEpqkPVQSrt33Lc","price_1LodNLAlJJEpqkPVRxUyCQgZ","price_1OTcQBAlJJEpqkPViGtGEsbb","price_1OYJeBAlJJEpqkPVLjTsjX0E","price_1OTcQBAlJJEpqkPVYlCMqdLL","price_1OYJeBAlJJEpqkPVnPGEZeb0"],b={2:["price_1SQ8hiAlJJEpqkPVIy8pfvAC","price_1SQ8gwAlJJEpqkPVb78Oc9Yc"]},P=["price_1R8XtyAlJJEpqkPV5WZ4c0jF","price_1R8XtEAlJJEpqkPV4opVvVPq","price_1R8XxZAlJJEpqkPVqGi0wOqD","price_1R7oeBAlJJEpqkPVh6q5q3h8",...Object.values(b).flat()],_=["price_1LodLoAlJJEpqkPV9rD0rlNL","price_1LodLoAlJJEpqkPVJdwv5zrG","price_1OZgmnAlJJEpqkPVOj4kV64R","price_1OzNlmAlJJEpqkPV7s9HXNAC","price_1OzNmXAlJJEpqkPVYO89lTdx","price_1OzOFIAlJJEpqkPVJxzc9irl","price_1OzOXMAlJJEpqkPV9ERrjjbw"],x={2:["price_1SQ8iwAlJJEpqkPVEGmKd6Lg","price_1SQ8iSAlJJEpqkPVQ5crmBtF"]},E=["price_1R3j01AlJJEpqkPVXuG1eNzm","price_1R6JedAlJJEpqkPVMUkfjch4","price_1R8XypAlJJEpqkPVdjzOcYUC","price_1R7ofLAlJJEpqkPV3MlgDpyx",...Object.values(x).flat()],f={2:["price_1SQ8jlAlJJEpqkPV6EanvSXl","price_1SQ8jJAlJJEpqkPVIwY9QZSP"],3:["price_1SQ8lqAlJJEpqkPVzBaioV3I","price_1SQ8lOAlJJEpqkPVz2R8SRss"]},A=["price_1R8Xw4AlJJEpqkPV6nwdink9","price_1R3j0qAlJJEpqkPVkfGNXRwb","price_1R8XztAlJJEpqkPVnHmIU2tf","price_1R7ofzAlJJEpqkPV0L2TwyJo",...Object.values(f).flat()],a=[{name:"Free",price:{monthly:0,yearly:0},limits:{links:25,clicks:1e3,payouts:0,domains:3,tags:5,folders:0,groups:0,networkInvites:0,users:1,ai:10,api:60,retention:"30-day"}},{name:"Pro",link:"https://dub.co/help/article/pro-plan",price:{monthly:30,yearly:25,ids:[...y,...P]},limits:{links:1e3,clicks:5e4,payouts:0,domains:10,tags:25,folders:3,groups:0,networkInvites:0,users:3,ai:1e3,api:600,retention:"1-year"},tiers:{2:{price:{monthly:60,yearly:50,ids:b[2]},limits:{links:5e3,clicks:15e4}}},featureTitle:"Everything in Free, plus:",features:[{id:"clicks",text:"50K tracked clicks/mo"},{id:"links",text:"1K new links/mo"},{id:"retention",text:"1-year analytics retention"},{id:"domains",text:"10 domains"},{id:"users",text:"3 users"},{id:"advanced",text:"Advanced link features",tooltip:"ADVANCED_LINK_FEATURES"},{id:"ai",text:"Unlimited AI credits",tooltip:{title:"Subject to fair use policy \u2013 you will be notified if you exceed the limit, which are high enough for frequent usage.",cta:"Learn more.",href:"https://dub.co/blog/introducing-dub-ai"}},{id:"dotlink",text:"Free .link domain",tooltip:{title:"All our paid plans come with a free .link custom domain, which helps improve click-through rates.",cta:"Learn more.",href:"https://dub.co/help/article/free-dot-link-domain"}},{id:"folders",text:"Link folders",tooltip:{title:"Organize and manage access to your links on Dub using folders.",cta:"Learn more.",href:"https://dub.co/help/article/link-folders"}},{id:"deeplinks",text:"Deep links",tooltip:{title:"Redirect users to a specific page within your mobile application using deep links.",cta:"Learn more.",href:"https://dub.co/docs/concepts/deep-links/quickstart"}}]},{name:"Business",price:{monthly:90,yearly:75,ids:[..._,...E]},limits:{links:1e4,clicks:25e4,payouts:25e4,domains:100,tags:l,folders:20,groups:3,networkInvites:0,users:10,ai:1e3,api:1200,retention:"3-year"},tiers:{2:{price:{monthly:180,yearly:150,ids:x[2]},limits:{links:25e3,clicks:5e5}}},featureTitle:"Everything in Pro, plus:",features:[{id:"clicks",text:"250K tracked clicks/mo"},{id:"links",text:"10K new links/mo"},{id:"retention",text:"3-year analytics retention"},{id:"payouts",text:"$2.5K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"10 users"},{id:"events",text:"Real-time events stream",tooltip:{title:"Get more data on your link clicks and QR code scans with a detailed, real-time stream of events in your workspace",cta:"Learn more.",href:"https://dub.co/help/article/real-time-events-stream"}},{id:"partners",text:"Partner management",tooltip:{title:"Use Dub Partners to manage and pay out your affiliates.",cta:"Learn more.",href:"https://dub.co/partners"}},{id:"tests",text:"A/B testing"},{id:"roles",text:"Customer insights",tooltip:{title:"Get real-time insights into your customers' behavior and preferences.",cta:"Learn more.",href:"https://dub.co/help/article/customer-insights"}},{id:"webhooks",text:"Event webhooks",tooltip:{title:"Get real-time notifications when a link is clicked or a QR code is scanned using webhooks.",cta:"Learn more.",href:"https://dub.co/docs/concepts/webhooks/introduction"}}]},{name:"Advanced",price:{monthly:300,yearly:250,ids:A},limits:{links:5e4,clicks:1e6,payouts:15e5,domains:250,tags:l,folders:50,groups:10,networkInvites:0,users:20,ai:1e3,api:3e3,retention:"5-year"},tiers:{2:{price:{monthly:600,yearly:500,ids:f[2]},limits:{links:15e4,clicks:2e6}},3:{price:{monthly:900,yearly:750,ids:f[3]},limits:{links:3e5,clicks:35e5}}},featureTitle:"Everything in Business, plus:",features:[{id:"clicks",text:"1M tracked clicks/mo"},{id:"links",text:"50K new links/mo"},{id:"retention",text:"5-year analytics retention"},{id:"payouts",text:"$15K partner payouts/mo",tooltip:{title:"Send payouts to your partners with 1-click (or automate it completely) \u2013 all across the world.",cta:"Learn more.",href:"https://dub.co/help/article/partner-payouts"}},{id:"users",text:"20 users"},{id:"flexiblerewards",text:"Advanced reward structures",tooltip:{title:"Create dynamic click, lead, or sale-based rewards with country and product-specific modifiers.",cta:"Learn more.",href:"https://dub.co/help/article/partner-rewards"}},{id:"embeddedreferrals",text:"Embedded referral dashboard",tooltip:{title:"Create an embedded referral dashboard directly in your app in just a few lines of code.",cta:"Learn more.",href:"https://dub.co/docs/partners/embedded-referrals"}},{id:"messages",text:"Messaging center",tooltip:{title:"Easily communicate with your partners using our messaging center."}},{id:"api",text:"Partners API",tooltip:{title:"Leverage our partners API to build a bespoke, white-labeled referral program that lives within your app.",cta:"Learn more.",href:"https://dub.co/docs/api-reference/endpoint/create-a-partner"}},{id:"slack",text:"Priority Slack support"}]},{name:"Enterprise",price:{monthly:null,yearly:null},limits:{links:5e5,clicks:5e6,payouts:l,domains:250,tags:l,folders:l,groups:l,networkInvites:20,users:30,ai:1e3,api:3e3,retention:"Unlimited"}}],w=a.find(e=>e.name==="Free"),v=a.find(e=>e.name==="Pro"),C=a.find(e=>e.name==="Business"),V=a.find(e=>e.name==="Advanced"),J=a.find(e=>e.name==="Enterprise"),L=a.filter(e=>["Pro","Business","Advanced"].includes(e.name)),D=2,O=({priceId:e})=>{var u;let t=a.find(c=>{var i;return(i=c.price.ids)==null?void 0:i.includes(e)});if(!t)return null;let o=t.tiers?((u=Object.entries(t.tiers).find(([c,{price:i}])=>i.ids.includes(e)))==null?void 0:u[0])??null:null;return{plan:t,planTier:o?Number(o):1}},U=({plan:e})=>L.find(t=>t.name.toLowerCase()===e.toLowerCase()),T=({plan:e,planTier:t})=>{let o=a.find(c=>c.name.toLowerCase()===e.toLowerCase()),u=o.tiers&&t?o.tiers[t].limits:o.limits;return{...o.limits,...u}},F=e=>a.find(t=>t.name.toLowerCase()===e.toLowerCase())||w,B=e=>{if(!e)return v;let t=e.toLowerCase().split(" ")[0];return a[Math.min(a.findIndex(o=>o.name.toLowerCase()===t)+1,a.length-1)]},j=({currentPlan:e,newPlan:t,currentTier:o,newTier:u})=>{let c=a.findIndex(m=>m.name.toLowerCase()===e.toLowerCase()),i=a.findIndex(m=>m.name.toLowerCase()===t.toLowerCase());return c>i||c===i&&(o??0)>(u??0)},Q=({events:e,links:t,suggestFree:o=!1})=>{var c;let u=null;for(let i of a){if(!o&&i.price.monthly===0)continue;let m=[0,...Object.keys(i.tiers??{}).map(Number)].find(d=>{var k,g;let h=d==0?i.limits:((g=(k=i.tiers)==null?void 0:k[d])==null?void 0:g.limits)??i.limits;return h.clicks>=(e??0)&&h.links>=(t??0)});if(m!==void 0){let d=(c=i.tiers)==null?void 0:c[m];u={plan:{...i,limits:{...i.limits,...d==null?void 0:d.limits},price:{...i.price,...d==null?void 0:d.price}},planTier:m};break}}return u??{plan:J,planTier:1}},G=({plan:e="business",payoutsLimit:t=0})=>e==="business"&&t===0;export{R as a,E as b,a as c,w as d,v as e,C as f,V as g,J as h,L as i,D as j,O as k,U as l,T as m,F as n,B as o,j as p,Q as q,G as r};
|