@dub/utils 0.1.44 → 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-2MOTUFXD.mjs +1 -0
- package/dist/chunk-2OYB5LKY.mjs +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-4FFWUR5E.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-64YU3W2W.mjs +1 -0
- package/dist/chunk-6LIICFKM.mjs +1 -0
- package/dist/chunk-6OQAYXTQ.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-7JEDYJFC.mjs +1 -0
- package/dist/chunk-7KMDBW5F.mjs +1 -0
- package/dist/chunk-7OD2OCBK.mjs +1 -0
- package/dist/chunk-A4K2ZGCN.mjs +1 -0
- package/dist/chunk-BMESPBRA.mjs +1 -0
- package/dist/chunk-BTS3PZVK.mjs +1 -0
- package/dist/chunk-BWEJXFI3.mjs +1 -0
- package/dist/chunk-Bs44WO9n.d.mts +5 -0
- package/dist/chunk-Bs44WO9n.d.mts.map +1 -0
- package/dist/chunk-CP3KLVJ3.mjs +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-EGYUEBQM.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-FLZ5LSUI.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-GYMWHOFV.mjs +1 -0
- package/dist/chunk-HPPMI4D3.mjs +1 -0
- package/dist/chunk-IEY7AJRJ.mjs +1 -0
- package/dist/chunk-JFQ3HCMK.mjs +1 -0
- package/dist/chunk-KAJV7TUM.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-LBOH7N6E.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-OV7BAKGA.mjs +1 -0
- package/dist/chunk-OZ5XXSGA.mjs +1 -0
- package/dist/chunk-P4CQQB5J.mjs +1 -0
- package/dist/chunk-PGWDHDXW.mjs +1 -0
- package/dist/chunk-PZ5KH242.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-RH3WDV2R.mjs +1 -0
- package/dist/chunk-RIMPQ2IS.mjs +1 -0
- package/dist/chunk-RWDXKYPW.mjs +1 -0
- package/dist/chunk-RZVLVGJX.mjs +1 -0
- package/dist/chunk-SBSVGLOZ.mjs +1 -0
- package/dist/chunk-STHXPKPL.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-UPKDJVX5.mjs +1 -0
- package/dist/chunk-V3U3HUVW.mjs +1 -0
- package/dist/chunk-V6ARAIKV.mjs +1 -0
- package/dist/chunk-VHYL6UC5.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-W2IKYXGJ.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-X55ESCBU.mjs +1 -0
- package/dist/chunk-XT2JOG2B.mjs +1 -0
- package/dist/chunk-XT7QGMLY.mjs +1 -0
- package/dist/chunk-XXID6HHB.mjs +1 -0
- package/dist/chunk-Y2JLLSMJ.mjs +1 -0
- package/dist/chunk-Y3ODRTIN.mjs +1 -0
- package/dist/chunk-YFIGPAHJ.mjs +1 -0
- package/dist/chunk-YSLZXRMB.mjs +1 -0
- package/dist/chunk-Z54VFDFH.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-currency-codes.d.ts +5 -0
- package/dist/constants/country-currency-codes.mjs +1 -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/framer-motion.d.ts +31 -31
- package/dist/constants/index.d.mts +20 -0
- package/dist/constants/index.d.ts +4 -4
- package/dist/constants/index.mjs +1 -1
- package/dist/constants/integrations.d.mts +2 -0
- package/dist/constants/integrations.d.ts +2 -1
- package/dist/constants/integrations.mjs +1 -1
- 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/generate-random-string.mjs +1 -1
- package/dist/functions/hash-string.d.mts +2 -0
- package/dist/functions/index.d.mts +49 -0
- package/dist/functions/index.d.ts +5 -3
- 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/text-fetcher.d.ts +5 -0
- package/dist/functions/text-fetcher.mjs +1 -0
- package/dist/functions/time-ago.d.mts +2 -0
- package/dist/functions/time-ago.mjs +1 -1
- 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 +3 -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 +9 -7
- 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-502267df.d.ts +1016 -0
- package/dist/plan-compare-87660f8f.d.ts +974 -0
- package/dist/plan-compare-97700a47.d.ts +116 -0
- package/dist/plan-compare-97bc79b0.d.ts +126 -0
- package/dist/plan-compare-a39cc647.d.ts +1010 -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-c4d6999b.d.ts +5 -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 +7 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-currency-codes-BY8Eb6j5.d.mts","names":["COUNTRY_CURRENCY_CODES"],"sources":["../src/constants/country-currency-codes.d.ts"],"sourcesContent":["export declare const COUNTRY_CURRENCY_CODES: {\n [key: string]: string;\n};\n"],"mappings":";cAAqBA;EAAAA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e={AF:93,AL:355,DZ:213,AS:1,AD:376,AO:244,AI:1,AQ:672,AG:1,AR:54,AM:374,AW:297,AU:61,AT:43,AZ:994,BS:1,BH:973,BD:880,BB:1,BY:375,BE:32,BZ:501,BJ:229,BM:1,BT:975,BO:591,BA:387,BW:267,BR:55,IO:246,BN:673,BG:359,BF:226,BI:257,KH:855,CM:237,CA:1,CV:238,KY:1,CF:236,TD:235,CL:56,CN:86,CX:61,CC:61,CO:57,KM:269,CG:242,CD:243,CK:682,CR:506,CI:225,HR:385,CU:53,CY:357,CZ:420,DK:45,DJ:253,DM:1,DO:1,EC:593,EG:20,SV:503,GQ:240,ER:291,EE:372,ET:251,FK:500,FO:298,FJ:679,FI:358,FR:33,GF:594,PF:689,GA:241,GM:220,GE:995,DE:49,GH:233,GI:350,GR:30,GL:299,GD:1,GP:590,GU:1,GT:502,GN:224,GW:245,GY:592,HT:509,VA:379,HN:504,HK:852,HU:36,IS:354,IN:91,ID:62,IR:98,IQ:964,IE:353,IL:972,IT:39,JM:1,JP:81,JO:962,KZ:7,KE:254,KI:686,KP:850,KR:82,KW:965,KG:996,LA:856,LV:371,LB:961,LS:266,LR:231,LY:218,LI:423,LT:370,LU:352,MO:853,MG:261,MW:265,MY:60,MV:960,ML:223,MT:356,MH:692,MQ:596,MR:222,MU:230,YT:262,MX:52,FM:691,MD:373,MC:377,MN:976,MS:1,MA:212,MZ:258,MM:95,NA:264,NR:674,NP:977,NL:31,NC:687,NZ:64,NI:505,NE:227,NG:234,NU:683,NF:672,MK:389,MP:1,NO:47,OM:968,PK:92,PW:680,PS:970,PA:507,PG:675,PY:595,PE:51,PH:63,PN:64,PL:48,PT:351,PR:1,QA:974,RE:262,RO:40,RU:7,RW:250,SH:290,KN:1,LC:1,PM:508,VC:1,WS:685,SM:378,ST:239,SA:966,SN:221,SC:248,SL:232,SG:65,SK:421,SI:386,SB:677,SO:252,ZA:27,ES:34,LK:94,SD:249,SR:597,SZ:268,SE:46,CH:41,SY:963,TW:886,TJ:992,TZ:255,TH:66,TL:670,TG:228,TK:690,TO:676,TT:1,TN:216,TR:90,TM:993,TC:1,TV:688,UG:256,UA:380,AE:971,GB:44,US:1,UY:598,UZ:998,VU:678,VE:58,VN:84,VG:1,VI:1,WF:681,EH:212,YE:967,ZM:260,ZW:263,AX:358,BQ:599,CW:599,GG:44,IM:44,JE:44,ME:382,BL:590,MF:590,RS:381,SX:1,SS:211,XK:383};export{e as t};
|
|
2
|
+
//# sourceMappingURL=country-phone-codes-Cw6Skrdf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-phone-codes-Cw6Skrdf.mjs","names":["COUNTRY_PHONE_CODES: { [key: string]: number }"],"sources":["../src/constants/country-phone-codes.ts"],"sourcesContent":["export const COUNTRY_PHONE_CODES: { [key: string]: number } = {\n AF: 93,\n AL: 355,\n DZ: 213,\n AS: 1,\n AD: 376,\n AO: 244,\n AI: 1,\n AQ: 672,\n AG: 1,\n AR: 54,\n AM: 374,\n AW: 297,\n AU: 61,\n AT: 43,\n AZ: 994,\n BS: 1,\n BH: 973,\n BD: 880,\n BB: 1,\n BY: 375,\n BE: 32,\n BZ: 501,\n BJ: 229,\n BM: 1,\n BT: 975,\n BO: 591,\n BA: 387,\n BW: 267,\n BR: 55,\n IO: 246,\n BN: 673,\n BG: 359,\n BF: 226,\n BI: 257,\n KH: 855,\n CM: 237,\n CA: 1,\n CV: 238,\n KY: 1,\n CF: 236,\n TD: 235,\n CL: 56,\n CN: 86,\n CX: 61,\n CC: 61,\n CO: 57,\n KM: 269,\n CG: 242,\n CD: 243,\n CK: 682,\n CR: 506,\n CI: 225,\n HR: 385,\n CU: 53,\n CY: 357,\n CZ: 420,\n DK: 45,\n DJ: 253,\n DM: 1,\n DO: 1,\n EC: 593,\n EG: 20,\n SV: 503,\n GQ: 240,\n ER: 291,\n EE: 372,\n ET: 251,\n FK: 500,\n FO: 298,\n FJ: 679,\n FI: 358,\n FR: 33,\n GF: 594,\n PF: 689,\n GA: 241,\n GM: 220,\n GE: 995,\n DE: 49,\n GH: 233,\n GI: 350,\n GR: 30,\n GL: 299,\n GD: 1,\n GP: 590,\n GU: 1,\n GT: 502,\n GN: 224,\n GW: 245,\n GY: 592,\n HT: 509,\n VA: 379,\n HN: 504,\n HK: 852,\n HU: 36,\n IS: 354,\n IN: 91,\n ID: 62,\n IR: 98,\n IQ: 964,\n IE: 353,\n IL: 972,\n IT: 39,\n JM: 1,\n JP: 81,\n JO: 962,\n KZ: 7,\n KE: 254,\n KI: 686,\n KP: 850,\n KR: 82,\n KW: 965,\n KG: 996,\n LA: 856,\n LV: 371,\n LB: 961,\n LS: 266,\n LR: 231,\n LY: 218,\n LI: 423,\n LT: 370,\n LU: 352,\n MO: 853,\n MG: 261,\n MW: 265,\n MY: 60,\n MV: 960,\n ML: 223,\n MT: 356,\n MH: 692,\n MQ: 596,\n MR: 222,\n MU: 230,\n YT: 262,\n MX: 52,\n FM: 691,\n MD: 373,\n MC: 377,\n MN: 976,\n MS: 1,\n MA: 212,\n MZ: 258,\n MM: 95,\n NA: 264,\n NR: 674,\n NP: 977,\n NL: 31,\n NC: 687,\n NZ: 64,\n NI: 505,\n NE: 227,\n NG: 234,\n NU: 683,\n NF: 672,\n MK: 389,\n MP: 1,\n NO: 47,\n OM: 968,\n PK: 92,\n PW: 680,\n PS: 970,\n PA: 507,\n PG: 675,\n PY: 595,\n PE: 51,\n PH: 63,\n PN: 64,\n PL: 48,\n PT: 351,\n PR: 1,\n QA: 974,\n RE: 262,\n RO: 40,\n RU: 7,\n RW: 250,\n SH: 290,\n KN: 1,\n LC: 1,\n PM: 508,\n VC: 1,\n WS: 685,\n SM: 378,\n ST: 239,\n SA: 966,\n SN: 221,\n SC: 248,\n SL: 232,\n SG: 65,\n SK: 421,\n SI: 386,\n SB: 677,\n SO: 252,\n ZA: 27,\n ES: 34,\n LK: 94,\n SD: 249,\n SR: 597,\n SZ: 268,\n SE: 46,\n CH: 41,\n SY: 963,\n TW: 886,\n TJ: 992,\n TZ: 255,\n TH: 66,\n TL: 670,\n TG: 228,\n TK: 690,\n TO: 676,\n TT: 1,\n TN: 216,\n TR: 90,\n TM: 993,\n TC: 1,\n TV: 688,\n UG: 256,\n UA: 380,\n AE: 971,\n GB: 44,\n US: 1,\n UY: 598,\n UZ: 998,\n VU: 678,\n VE: 58,\n VN: 84,\n VG: 1,\n VI: 1,\n WF: 681,\n EH: 212,\n YE: 967,\n ZM: 260,\n ZW: 263,\n AX: 358,\n BQ: 599,\n CW: 599,\n GG: 44,\n IM: 44,\n JE: 44,\n ME: 382,\n BL: 590,\n MF: 590,\n RS: 381,\n SX: 1,\n SS: 211,\n XK: 383,\n // BV: null,\n // TF: null,\n // HM: null,\n // GS: null,\n // SJ: null,\n // UM: null,\n};\n"],"mappings":"AAAA,MAAaA,EAAiD,CAC5D,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,EACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,EACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,EACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,GACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,EACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,GACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,EACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,GACJ,GAAI,GACJ,GAAI,GACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,IACJ,GAAI,EACJ,GAAI,IACJ,GAAI,IAOL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"country-phone-codes-DfNRdacg.d.mts","names":["COUNTRY_PHONE_CODES"],"sources":["../src/constants/country-phone-codes.d.ts"],"sourcesContent":["export declare const COUNTRY_PHONE_CODES: {\n [key: string]: number;\n};\n"],"mappings":";cAAqBA;EAAAA,CAAAA,GAAAA,EAAAA,MAAAA,CAAAA,EAAAA,MAAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region src/functions/currency-formatter.d.ts
|
|
2
|
+
interface CurrencyFormatterOptions extends Intl.NumberFormatOptions {
|
|
3
|
+
trailingZeroDisplay?: "auto" | "stripIfInteger";
|
|
4
|
+
}
|
|
5
|
+
declare const currencyFormatter: (value: number, options?: CurrencyFormatterOptions) => string;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { currencyFormatter as t };
|
|
8
|
+
//# sourceMappingURL=currency-formatter-DvRObMQ-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-formatter-DvRObMQ-.d.mts","names":["CurrencyFormatterOptions","Intl","NumberFormatOptions","currencyFormatter"],"sources":["../src/functions/currency-formatter.d.ts"],"sourcesContent":["interface CurrencyFormatterOptions extends Intl.NumberFormatOptions {\n trailingZeroDisplay?: \"auto\" | \"stripIfInteger\";\n}\nexport declare const currencyFormatter: (value: number, options?: CurrencyFormatterOptions) => string;\nexport {};\n"],"mappings":";UAAUA,wBAAAA,SAAiCC,IAAAA,CAAKC;EAAtCF,mBAAAA,CAAAA,EAAAA,MAAwB,GAAA,gBAAcE;AAGhD;cAAqBC,6CAA6CH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"currency-formatter-K4_S2-Ja.mjs","names":[],"sources":["../src/functions/currency-formatter.ts"],"sourcesContent":["interface CurrencyFormatterOptions extends Intl.NumberFormatOptions {\n trailingZeroDisplay?: \"auto\" | \"stripIfInteger\";\n}\n\nexport const currencyFormatter = (\n value: number,\n options?: CurrencyFormatterOptions,\n) =>\n Intl.NumberFormat(\"en-US\", {\n style: \"currency\",\n currency: \"USD\",\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n trailingZeroDisplay: \"auto\",\n ...options,\n } as CurrencyFormatterOptions).format(value);\n"],"mappings":"AAIA,MAAa,GACX,EACA,IAEA,KAAK,aAAa,QAAS,CACzB,MAAO,WACP,SAAU,MACV,sBAAuB,EACvB,sBAAuB,EACvB,oBAAqB,OACrB,GAAG,EACJ,CAA6B,CAAC,OAAO,EAAM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=(t,n)=>{if(t===n)return!0;if(typeof t!=`object`||typeof n!=`object`||t===null||n===null)return!1;let r=Object.keys(t),i=Object.keys(n);if(r.length!==i.length)return!1;for(let a of r)if(!i.includes(a)||!e(t[a],n[a]))return!1;return!0};export{e as t};
|
|
2
|
+
//# sourceMappingURL=deep-equal-DKHEsBj3.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deep-equal-DKHEsBj3.mjs","names":["deepEqual: DeepEqual"],"sources":["../src/functions/deep-equal.ts"],"sourcesContent":["type DeepEqual = (\n obj1: Record<string, any>,\n obj2: Record<string, any>,\n) => boolean;\n\nexport const deepEqual: DeepEqual = (obj1, obj2) => {\n if (obj1 === obj2) {\n return true;\n }\n\n if (\n typeof obj1 !== \"object\" ||\n typeof obj2 !== \"object\" ||\n obj1 === null ||\n obj2 === null\n ) {\n return false;\n }\n\n const keys1 = Object.keys(obj1);\n const keys2 = Object.keys(obj2);\n\n if (keys1.length !== keys2.length) {\n return false;\n }\n\n for (const key of keys1) {\n if (!keys2.includes(key) || !deepEqual(obj1[key], obj2[key])) {\n return false;\n }\n }\n\n return true;\n};\n"],"mappings":"AAKA,MAAaA,GAAwB,EAAM,IAAS,CAClD,GAAI,IAAS,EACX,MAAO,GAGT,GACE,OAAO,GAAS,UAChB,OAAO,GAAS,UAChB,IAAS,MACT,IAAS,KAET,MAAO,GAGT,IAAM,EAAQ,OAAO,KAAK,EAAK,CACzB,EAAQ,OAAO,KAAK,EAAK,CAE/B,GAAI,EAAM,SAAW,EAAM,OACzB,MAAO,GAGT,IAAK,IAAM,KAAO,EAChB,GAAI,CAAC,EAAM,SAAS,EAAI,EAAI,CAAC,EAAU,EAAK,GAAM,EAAK,GAAK,CAC1D,MAAO,GAIX,MAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deep-equal-DL7vb8Yq.d.mts","names":["DeepEqual","Record","deepEqual"],"sources":["../src/functions/deep-equal.d.ts"],"sourcesContent":["type DeepEqual = (obj1: Record<string, any>, obj2: Record<string, any>) => boolean;\nexport declare const deepEqual: DeepEqual;\nexport {};\n"],"mappings":";KAAKA,SAAAA,UAAmBC,2BAA2BA;AAA9CD,cACgBE,SADGD,EACQD,SADmBC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./cctlds-DXCBpkmb.mjs";import{n as t,t as n}from"./domains-CaD5cUsD.mjs";import{n as r}from"./dub-domains-cnkoM2TR.mjs";import{h as i}from"./urls-ivBifiO_.mjs";import a from"@sindresorhus/slugify";const o=t=>{let n=a(t,{separator:``});if(n.length<3)return``;if(e.has(n.slice(-2)))return`${n.slice(0,-2)}.${n.slice(-2)}`;let r=n.replace(/[aeiou]/g,``);return r.length>=3&&e.has(r.slice(-2))?`${r.slice(0,-2)}.${r.slice(-2)}`:`${[n,r].reduce((e,t)=>e.length<t.length?e:t)}.link`},s=new RegExp(/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/),c=new RegExp(/^[a-zA-Z0-9\-]+$/),l=(e,t)=>e===t?null:e.slice(0,e.length-t.length-1),u=r=>{let i;try{i=new URL(r.replace(/^[a-zA-Z]+:\/\//,`https://`)).hostname}catch{return``}if(i===`youtu.be`)return`youtube.com`;let a=i.split(`.`);return a.length>2?n.has(a[a.length-2])&&e.has(a[a.length-1])||t.has(a.slice(-2).join(`.`))?a.slice(-3).join(`.`):a.slice(-2).join(`.`):i},d=e=>{if(i(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}},f=e=>r.some(t=>t.slug===e);export{f as a,l as i,u as n,s as o,d as r,c as s,o as t};
|
|
2
|
+
//# sourceMappingURL=domains-CUmgZeco.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains-CUmgZeco.mjs","names":[],"sources":["../src/functions/domains.ts"],"sourcesContent":["import slugify from \"@sindresorhus/slugify\";\nimport {\n DUB_DOMAINS,\n SECOND_LEVEL_DOMAINS,\n SPECIAL_APEX_DOMAINS,\n ccTLDs,\n} from \"../constants\";\nimport { isValidUrl } from \"./urls\";\n\nexport const generateDomainFromName = (name: string) => {\n const normalizedName = slugify(name, { separator: \"\" });\n if (normalizedName.length < 3) {\n return \"\";\n }\n if (ccTLDs.has(normalizedName.slice(-2))) {\n return `${normalizedName.slice(0, -2)}.${normalizedName.slice(-2)}`;\n }\n // remove vowels\n const devowel = normalizedName.replace(/[aeiou]/g, \"\");\n if (devowel.length >= 3 && ccTLDs.has(devowel.slice(-2))) {\n return `${devowel.slice(0, -2)}.${devowel.slice(-2)}`;\n }\n\n const shortestString = [normalizedName, devowel].reduce((a, b) =>\n a.length < b.length ? a : b,\n );\n\n return `${shortestString}.link`;\n};\n\n// courtesy of ChatGPT: https://sharegpt.com/c/pUYXtRs\nexport const validDomainRegex = new RegExp(\n /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,}$/,\n);\n\nexport const validSlugRegex = new RegExp(/^[a-zA-Z0-9\\-]+$/);\n\nexport const getSubdomain = (name: string, apexName: string) => {\n if (name === apexName) return null;\n return name.slice(0, name.length - apexName.length - 1);\n};\n\nexport const getApexDomain = (url: string) => {\n let domain;\n try {\n // replace any custom scheme (e.g. notion://) with https://\n // use the URL constructor to get the hostname\n domain = new URL(url.replace(/^[a-zA-Z]+:\\/\\//, \"https://\")).hostname;\n } catch (e) {\n return \"\";\n }\n if (domain === \"youtu.be\") return \"youtube.com\";\n\n const parts = domain.split(\".\");\n if (parts.length > 2) {\n if (\n // if this is a second-level TLD (e.g. co.uk, .com.ua, .org.tt), we need to return the last 3 parts\n (SECOND_LEVEL_DOMAINS.has(parts[parts.length - 2]) &&\n ccTLDs.has(parts[parts.length - 1])) ||\n // if it's a special subdomain for website builders (e.g. weathergpt.vercel.app/)\n SPECIAL_APEX_DOMAINS.has(parts.slice(-2).join(\".\"))\n ) {\n return parts.slice(-3).join(\".\");\n }\n // otherwise, it's a subdomain (e.g. dub.vercel.app), so we return the last 2 parts\n return parts.slice(-2).join(\".\");\n }\n // if it's a normal domain (e.g. dub.co), we return the domain\n return domain;\n};\n\nexport const getDomainWithoutWWW = (url: string) => {\n if (isValidUrl(url)) {\n return new URL(url).hostname.replace(/^www\\./, \"\");\n }\n try {\n if (url.includes(\".\") && !url.includes(\" \")) {\n return new URL(`https://${url}`).hostname.replace(/^www\\./, \"\");\n }\n } catch (e) {\n return null;\n }\n};\n\nexport const isDubDomain = (domain: string) => {\n return DUB_DOMAINS.some((d) => d.slug === domain);\n};\n"],"mappings":"wNASA,MAAa,EAA0B,GAAiB,CACtD,IAAM,EAAiB,EAAQ,EAAM,CAAE,UAAW,GAAI,CAAC,CACvD,GAAI,EAAe,OAAS,EAC1B,MAAO,GAET,GAAI,EAAO,IAAI,EAAe,MAAM,GAAG,CAAC,CACtC,MAAO,GAAG,EAAe,MAAM,EAAG,GAAG,CAAC,GAAG,EAAe,MAAM,GAAG,GAGnE,IAAM,EAAU,EAAe,QAAQ,WAAY,GAAG,CAStD,OARI,EAAQ,QAAU,GAAK,EAAO,IAAI,EAAQ,MAAM,GAAG,CAAC,CAC/C,GAAG,EAAQ,MAAM,EAAG,GAAG,CAAC,GAAG,EAAQ,MAAM,GAAG,GAO9C,GAJgB,CAAC,EAAgB,EAAQ,CAAC,QAAQ,EAAG,IAC1D,EAAE,OAAS,EAAE,OAAS,EAAI,EAC3B,CAEwB,QAId,EAAmB,IAAI,OAClC,iEACD,CAEY,EAAiB,IAAI,OAAO,mBAAmB,CAE/C,GAAgB,EAAc,IACrC,IAAS,EAAiB,KACvB,EAAK,MAAM,EAAG,EAAK,OAAS,EAAS,OAAS,EAAE,CAG5C,EAAiB,GAAgB,CAC5C,IAAI,EACJ,GAAI,CAGF,EAAS,IAAI,IAAI,EAAI,QAAQ,kBAAmB,WAAW,CAAC,CAAC,cACnD,CACV,MAAO,GAET,GAAI,IAAW,WAAY,MAAO,cAElC,IAAM,EAAQ,EAAO,MAAM,IAAI,CAe/B,OAdI,EAAM,OAAS,EAGd,EAAqB,IAAI,EAAM,EAAM,OAAS,GAAG,EAChD,EAAO,IAAI,EAAM,EAAM,OAAS,GAAG,EAErC,EAAqB,IAAI,EAAM,MAAM,GAAG,CAAC,KAAK,IAAI,CAAC,CAE5C,EAAM,MAAM,GAAG,CAAC,KAAK,IAAI,CAG3B,EAAM,MAAM,GAAG,CAAC,KAAK,IAAI,CAG3B,GAGI,EAAuB,GAAgB,CAClD,GAAI,EAAW,EAAI,CACjB,OAAO,IAAI,IAAI,EAAI,CAAC,SAAS,QAAQ,SAAU,GAAG,CAEpD,GAAI,CACF,GAAI,EAAI,SAAS,IAAI,EAAI,CAAC,EAAI,SAAS,IAAI,CACzC,OAAO,IAAI,IAAI,WAAW,IAAM,CAAC,SAAS,QAAQ,SAAU,GAAG,MAEvD,CACV,OAAO,OAIE,EAAe,GACnB,EAAY,KAAM,GAAM,EAAE,OAAS,EAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains-CaD5cUsD.mjs","names":[],"sources":["../src/constants/domains.ts"],"sourcesContent":["export const SECOND_LEVEL_DOMAINS = new Set([\n \"com\",\n \"co\",\n \"net\",\n \"org\",\n \"edu\",\n \"gov\",\n \"in\",\n]);\n\nexport const SPECIAL_APEX_DOMAINS = new Set([\n \"my.id\",\n \"github.io\",\n \"vercel.app\",\n \"now.sh\",\n \"pages.dev\",\n \"webflow.io\",\n \"netlify.app\",\n \"fly.dev\",\n \"web.app\",\n]);\n"],"mappings":"AAAA,MAAa,EAAuB,IAAI,IAAI,CAC1C,MACA,KACA,MACA,MACA,MACA,MACA,KACD,CAAC,CAEW,EAAuB,IAAI,IAAI,CAC1C,QACA,YACA,aACA,SACA,YACA,aACA,cACA,UACA,UACD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/functions/domains.d.ts
|
|
2
|
+
declare const generateDomainFromName: (name: string) => string;
|
|
3
|
+
declare const validDomainRegex: RegExp;
|
|
4
|
+
declare const validSlugRegex: RegExp;
|
|
5
|
+
declare const getSubdomain: (name: string, apexName: string) => string | null;
|
|
6
|
+
declare const getApexDomain: (url: string) => string;
|
|
7
|
+
declare const getDomainWithoutWWW: (url: string) => string | null | undefined;
|
|
8
|
+
declare const isDubDomain: (domain: string) => boolean;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { isDubDomain as a, getSubdomain as i, getApexDomain as n, validDomainRegex as o, getDomainWithoutWWW as r, validSlugRegex as s, generateDomainFromName as t };
|
|
11
|
+
//# sourceMappingURL=domains-ClJ7JZ8G.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains-ClJ7JZ8G.d.mts","names":["generateDomainFromName","validDomainRegex","RegExp","validSlugRegex","getSubdomain","getApexDomain","getDomainWithoutWWW","isDubDomain"],"sources":["../src/functions/domains.d.ts"],"sourcesContent":["export declare const generateDomainFromName: (name: string) => string;\nexport declare const validDomainRegex: RegExp;\nexport declare const validSlugRegex: RegExp;\nexport declare const getSubdomain: (name: string, apexName: string) => string | null;\nexport declare const getApexDomain: (url: string) => string;\nexport declare const getDomainWithoutWWW: (url: string) => string | null | undefined;\nexport declare const isDubDomain: (domain: string) => boolean;\n"],"mappings":";cAAqBA;AAAAA,cACAC,gBADgD,EAC9BC,MAD8B;AAChDD,cACAE,cADkBD,EACFA,MADQ;AACxBC,cACAC,YADgBF,EAAAA,CAAAA,IAAM,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,GAAA,MAAA,GAAA,IAAA;AACtBE,cACAC,aAD+D,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GAAA,MAAA;AAC/DA,cACAC,mBADsC,EAAA,CAAA,GAAA,EAAA,MAAA,EAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;AACtCA,cACAC,WAD+D,EAAA,CAAA,MAAA,EAAA,MAAA,EAAA,GAAA,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/constants/domains.d.ts
|
|
2
|
+
declare const SECOND_LEVEL_DOMAINS: Set<string>;
|
|
3
|
+
declare const SPECIAL_APEX_DOMAINS: Set<string>;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { SPECIAL_APEX_DOMAINS as n, SECOND_LEVEL_DOMAINS as t };
|
|
6
|
+
//# sourceMappingURL=domains-D0u9WU51.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domains-D0u9WU51.d.mts","names":["SECOND_LEVEL_DOMAINS","Set","SPECIAL_APEX_DOMAINS"],"sources":["../src/constants/domains.d.ts"],"sourcesContent":["export declare const SECOND_LEVEL_DOMAINS: Set<string>;\nexport declare const SPECIAL_APEX_DOMAINS: Set<string>;\n"],"mappings":";cAAqBA,sBAAsBC;AAAtBD,cACAE,oBADsBD,EACAA,GADG,CAAA,MAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/constants/dub-domains.d.ts
|
|
2
|
+
declare const DUB_DOMAINS: {
|
|
3
|
+
id: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
verified: boolean;
|
|
6
|
+
primary: boolean;
|
|
7
|
+
archived: boolean;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
allowedHostnames: string[];
|
|
10
|
+
description: string;
|
|
11
|
+
projectId: string;
|
|
12
|
+
}[];
|
|
13
|
+
declare const DUB_DOMAINS_ARRAY: string[];
|
|
14
|
+
declare const DUB_DEMO_LINKS: {
|
|
15
|
+
id: string;
|
|
16
|
+
domain: string;
|
|
17
|
+
key: string;
|
|
18
|
+
dashboardId: string;
|
|
19
|
+
}[];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { DUB_DOMAINS as n, DUB_DOMAINS_ARRAY as r, DUB_DEMO_LINKS as t };
|
|
22
|
+
//# sourceMappingURL=dub-domains-DT4DbvlB.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dub-domains-DT4DbvlB.d.mts","names":["DUB_DOMAINS","DUB_DOMAINS_ARRAY","DUB_DEMO_LINKS"],"sources":["../src/constants/dub-domains.d.ts"],"sourcesContent":["export declare const DUB_DOMAINS: {\n id: string;\n slug: string;\n verified: boolean;\n primary: boolean;\n archived: boolean;\n placeholder: string;\n allowedHostnames: string[];\n description: string;\n projectId: string;\n}[];\nexport declare const DUB_DOMAINS_ARRAY: string[];\nexport declare const DUB_DEMO_LINKS: {\n id: string;\n domain: string;\n key: string;\n dashboardId: string;\n}[];\n"],"mappings":";cAAqBA;EAAAA,EAAAA,EAAAA,MAAAA;EAWAC,IAAAA,EAAAA,MAAAA;EACAC,QAAAA,EAAAA,OAKlB;;;;;;;;cANkBD;cACAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S as e,h as t}from"./main-C1J_pNfu.mjs";const n=[{id:`clce1z7ch00j0rbstbjufva4j`,slug:e,verified:!0,primary:!0,archived:!1,placeholder:`https://dub.co/help/article/what-is-dub`,allowedHostnames:[],description:`The default domain for all new accounts.`,projectId:t},...process.env.NEXT_PUBLIC_IS_DUB?[{id:`clxp3lfsb00011na8tfs7t0lx`,slug:`dub.link`,verified:!0,primary:!0,archived:!1,placeholder:`https://dub.co/help/article/what-is-dub`,allowedHostnames:[],description:`Premium short domain on Dub – only available on our Pro plan and above.`,projectId:t},{id:`clce1z7cs00y8rbstk4xtnj0k`,slug:`chatg.pt`,verified:!0,primary:!1,archived:!1,placeholder:`https://chat.openai.com/g/g-UGjKKONEe-domainsgpt`,allowedHostnames:[`openai.com`,`chatgpt.com`],description:`Branded domain for ChatGPT links (convos, custom GPTs).`,projectId:t},{id:`cloxw8y2u0003js08a7mqg1j8`,slug:`spti.fi`,verified:!0,primary:!1,archived:!1,placeholder:`https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y`,allowedHostnames:[`spotify.com`],description:`Branded domain for Spotify links (songs, playlists, etc.).`,projectId:t},{id:`cltgtd6s5000341itdszz20u2`,slug:`git.new`,verified:!0,primary:!1,archived:!1,placeholder:`https://github.com/dubinc/dub`,allowedHostnames:[`github.com`],description:`Branded domain for GitHub links (repositories, gists, etc.).`,projectId:t},{id:`cm23qevp4000412mqwvtkthzw`,slug:`cal.link`,verified:!0,primary:!1,archived:!1,placeholder:`https://cal.com/steven`,allowedHostnames:[`cal.com`,`calendly.com`,`calendar.app.google`,`calendar.google.com`,`calendar.notion.so`,`chilipiper.com`,`fantastical.app`,`fillout.com`,`hubspot.com`,`mentordeck.com`,`savvycal.com`,`scheduler.default.com`,`tidycal.com`,`you.ashbyhq.com`,`zcal.co`],description:`Branded domain for your scheduling links (Cal.com, Calendly, etc.).`,projectId:t},{id:`cloxw8qtk000bjt08n9b812vs`,slug:`amzn.id`,verified:!0,primary:!1,archived:!1,placeholder:`https://www.amazon.com/dp/B0BW4SWNC8`,allowedHostnames:[`amazon.com`,`amazon.co.uk`,`amazon.ca`,`amazon.es`,`amazon.fr`],description:`Branded domain for Amazon links (products, wishlists, etc.).`,projectId:t},{id:`clymd6zkc0001elilr1215tj9`,slug:`ggl.link`,verified:!0,primary:!1,archived:!1,placeholder:`https://docs.google.com/document/d/15-GOZA12SXGEh8lNwU5QI1jBi04TCPgY2-LChTbXVpA`,allowedHostnames:[`google.com`,`google.co.uk`,`google.co.id`,`google.ca`,`google.es`,`google.fr`,`googleblog.com`,`blog.google`,`g.co`,`g.page`,`youtube.com`,`youtu.be`],description:`Branded domain for Google links (Search, Docs, Sheets, Slides, Drive, Maps, etc.).`,projectId:t},{id:`clymczttm0001jgkore3ltr37`,slug:`fig.page`,verified:!0,primary:!1,archived:!1,placeholder:`https://www.figma.com/design/YAfTk6SGV2HcSvL2415oED/Dub.co-Brand-Assets-(Public)?node-id=1-36593&t=QMKQNtUzxSSzG3hX-1`,allowedHostnames:[`figma.com`],description:`Branded domain for Figma links (portfolios, prototypes, presentations, etc.).`,projectId:t}]:[]],r=n.map(e=>e.slug),i=[{id:`clqo10sum0006js08vutzfxt3`,domain:`d.to`,key:`try`,dashboardId:`dash_Rqy6tVEO5Ib4iVFvmYYTK4kO`},{id:`cltshzzpd0005126z3rd2lvo4`,domain:`dub.sh`,key:`try`,dashboardId:`dash_bUNOfMQVcKS0VMDa2HaYhOjg`},{id:`clot0z5rg000djp08ue98hxkn`,domain:`chatg.pt`,key:`domains`,dashboardId:`dash_lX4or5Yj6ZrPk3qW4SwgrQ5t`},{id:`clp4jh9av0001l308ormavtlu`,domain:`spti.fi`,key:`hans`,dashboardId:`dash_v2Ygwn3hZNYx6kFYfBT4IApM`},{id:`cltgtsex40003ck8z444hum5u`,domain:`git.new`,key:`dub`,dashboardId:`dash_FX5HKOKhtQ6uoIeSDxWM8eIb`},{id:`clymd5vqj0005jgkorsopklsk`,domain:`fig.page`,key:`dub`,dashboardId:`dash_no9BFlfSjHDG6K7XIAuwLt5p`},{id:`clp3k3yoi0001ju0874nz899q`,domain:`amzn.id`,key:`tv`,dashboardId:`dash_fKwai9V9nsLcC0IaY0rTF1yA`},{id:`clymd73o50001ulmzzxjumr8l`,domain:`ggl.link`,key:`dub`,dashboardId:`dash_rx5c7pQPnx2MUCX3cL4t1Zpn`},{id:`cm24785ki0001ainw2qks4uq5`,domain:`cal.link`,key:`demo`,dashboardId:`dash_zbzP2UVvTrv5SkIEPP2pV5pC`}];export{n,r,i as t};
|
|
2
|
+
//# sourceMappingURL=dub-domains-cnkoM2TR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dub-domains-cnkoM2TR.mjs","names":[],"sources":["../src/constants/dub-domains.ts"],"sourcesContent":["import { DUB_WORKSPACE_ID, SHORT_DOMAIN } from \"./main\";\n\nexport const DUB_DOMAINS = [\n {\n id: \"clce1z7ch00j0rbstbjufva4j\",\n slug: SHORT_DOMAIN,\n verified: true,\n primary: true,\n archived: false,\n placeholder: \"https://dub.co/help/article/what-is-dub\",\n allowedHostnames: [],\n description: \"The default domain for all new accounts.\",\n projectId: DUB_WORKSPACE_ID,\n },\n ...(process.env.NEXT_PUBLIC_IS_DUB\n ? [\n {\n id: \"clxp3lfsb00011na8tfs7t0lx\",\n slug: \"dub.link\",\n verified: true,\n primary: true,\n archived: false,\n placeholder: \"https://dub.co/help/article/what-is-dub\",\n allowedHostnames: [],\n description:\n \"Premium short domain on Dub – only available on our Pro plan and above.\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"clce1z7cs00y8rbstk4xtnj0k\",\n slug: \"chatg.pt\",\n verified: true,\n primary: false,\n archived: false,\n placeholder: \"https://chat.openai.com/g/g-UGjKKONEe-domainsgpt\",\n allowedHostnames: [\"openai.com\", \"chatgpt.com\"],\n description:\n \"Branded domain for ChatGPT links (convos, custom GPTs).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"cloxw8y2u0003js08a7mqg1j8\",\n slug: \"spti.fi\",\n verified: true,\n primary: false,\n archived: false,\n placeholder: \"https://open.spotify.com/album/1SCyi9a5pOasikidToUY5y\",\n allowedHostnames: [\"spotify.com\"],\n description:\n \"Branded domain for Spotify links (songs, playlists, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"cltgtd6s5000341itdszz20u2\",\n slug: \"git.new\",\n verified: true,\n primary: false,\n archived: false,\n placeholder: \"https://github.com/dubinc/dub\",\n allowedHostnames: [\"github.com\"],\n description:\n \"Branded domain for GitHub links (repositories, gists, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"cm23qevp4000412mqwvtkthzw\",\n slug: \"cal.link\",\n verified: true,\n primary: false,\n archived: false,\n placeholder: \"https://cal.com/steven\",\n allowedHostnames: [\n \"cal.com\",\n \"calendly.com\",\n \"calendar.app.google\",\n \"calendar.google.com\",\n \"calendar.notion.so\",\n \"chilipiper.com\",\n \"fantastical.app\",\n \"fillout.com\",\n \"hubspot.com\",\n \"mentordeck.com\",\n \"savvycal.com\",\n \"scheduler.default.com\",\n \"tidycal.com\",\n \"you.ashbyhq.com\",\n \"zcal.co\",\n ],\n description:\n \"Branded domain for your scheduling links (Cal.com, Calendly, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"cloxw8qtk000bjt08n9b812vs\",\n slug: \"amzn.id\",\n verified: true,\n primary: false,\n archived: false,\n placeholder: \"https://www.amazon.com/dp/B0BW4SWNC8\",\n allowedHostnames: [\n \"amazon.com\",\n \"amazon.co.uk\",\n \"amazon.ca\",\n \"amazon.es\",\n \"amazon.fr\",\n ],\n description:\n \"Branded domain for Amazon links (products, wishlists, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"clymd6zkc0001elilr1215tj9\",\n slug: \"ggl.link\",\n verified: true,\n primary: false,\n archived: false,\n placeholder:\n \"https://docs.google.com/document/d/15-GOZA12SXGEh8lNwU5QI1jBi04TCPgY2-LChTbXVpA\",\n allowedHostnames: [\n \"google.com\",\n \"google.co.uk\",\n \"google.co.id\",\n \"google.ca\",\n \"google.es\",\n \"google.fr\",\n \"googleblog.com\",\n \"blog.google\",\n \"g.co\",\n \"g.page\",\n \"youtube.com\",\n \"youtu.be\",\n ],\n description:\n \"Branded domain for Google links (Search, Docs, Sheets, Slides, Drive, Maps, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n {\n id: \"clymczttm0001jgkore3ltr37\",\n slug: \"fig.page\",\n verified: true,\n primary: false,\n archived: false,\n placeholder:\n \"https://www.figma.com/design/YAfTk6SGV2HcSvL2415oED/Dub.co-Brand-Assets-(Public)?node-id=1-36593&t=QMKQNtUzxSSzG3hX-1\",\n allowedHostnames: [\"figma.com\"],\n description:\n \"Branded domain for Figma links (portfolios, prototypes, presentations, etc.).\",\n projectId: DUB_WORKSPACE_ID,\n },\n ]\n : []),\n];\n\nexport const DUB_DOMAINS_ARRAY = DUB_DOMAINS.map((domain) => domain.slug);\n\nexport const DUB_DEMO_LINKS = [\n {\n id: \"clqo10sum0006js08vutzfxt3\",\n domain: \"d.to\",\n key: \"try\",\n dashboardId: \"dash_Rqy6tVEO5Ib4iVFvmYYTK4kO\",\n },\n {\n id: \"cltshzzpd0005126z3rd2lvo4\",\n domain: \"dub.sh\",\n key: \"try\",\n dashboardId: \"dash_bUNOfMQVcKS0VMDa2HaYhOjg\",\n },\n {\n id: \"clot0z5rg000djp08ue98hxkn\",\n domain: \"chatg.pt\",\n key: \"domains\",\n dashboardId: \"dash_lX4or5Yj6ZrPk3qW4SwgrQ5t\",\n },\n {\n id: \"clp4jh9av0001l308ormavtlu\",\n domain: \"spti.fi\",\n key: \"hans\",\n dashboardId: \"dash_v2Ygwn3hZNYx6kFYfBT4IApM\",\n },\n {\n id: \"cltgtsex40003ck8z444hum5u\",\n domain: \"git.new\",\n key: \"dub\",\n dashboardId: \"dash_FX5HKOKhtQ6uoIeSDxWM8eIb\",\n },\n {\n id: \"clymd5vqj0005jgkorsopklsk\",\n domain: \"fig.page\",\n key: \"dub\",\n dashboardId: \"dash_no9BFlfSjHDG6K7XIAuwLt5p\",\n },\n {\n id: \"clp3k3yoi0001ju0874nz899q\",\n domain: \"amzn.id\",\n key: \"tv\",\n dashboardId: \"dash_fKwai9V9nsLcC0IaY0rTF1yA\",\n },\n {\n id: \"clymd73o50001ulmzzxjumr8l\",\n domain: \"ggl.link\",\n key: \"dub\",\n dashboardId: \"dash_rx5c7pQPnx2MUCX3cL4t1Zpn\",\n },\n {\n id: \"cm24785ki0001ainw2qks4uq5\",\n domain: \"cal.link\",\n key: \"demo\",\n dashboardId: \"dash_zbzP2UVvTrv5SkIEPP2pV5pC\",\n },\n];\n"],"mappings":"+CAEA,MAAa,EAAc,CACzB,CACE,GAAI,4BACJ,KAAM,EACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,0CACb,iBAAkB,EAAE,CACpB,YAAa,2CACb,UAAW,EACZ,CACD,GAAI,QAAQ,IAAI,mBACZ,CACE,CACE,GAAI,4BACJ,KAAM,WACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,0CACb,iBAAkB,EAAE,CACpB,YACE,0EACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,WACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,mDACb,iBAAkB,CAAC,aAAc,cAAc,CAC/C,YACE,0DACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,UACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,wDACb,iBAAkB,CAAC,cAAc,CACjC,YACE,6DACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,UACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,gCACb,iBAAkB,CAAC,aAAa,CAChC,YACE,+DACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,WACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,yBACb,iBAAkB,CAChB,UACA,eACA,sBACA,sBACA,qBACA,iBACA,kBACA,cACA,cACA,iBACA,eACA,wBACA,cACA,kBACA,UACD,CACD,YACE,sEACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,UACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YAAa,uCACb,iBAAkB,CAChB,aACA,eACA,YACA,YACA,YACD,CACD,YACE,+DACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,WACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YACE,kFACF,iBAAkB,CAChB,aACA,eACA,eACA,YACA,YACA,YACA,iBACA,cACA,OACA,SACA,cACA,WACD,CACD,YACE,qFACF,UAAW,EACZ,CACD,CACE,GAAI,4BACJ,KAAM,WACN,SAAU,GACV,QAAS,GACT,SAAU,GACV,YACE,wHACF,iBAAkB,CAAC,YAAY,CAC/B,YACE,gFACF,UAAW,EACZ,CACF,CACD,EAAE,CACP,CAEY,EAAoB,EAAY,IAAK,GAAW,EAAO,KAAK,CAE5D,EAAiB,CAC5B,CACE,GAAI,4BACJ,OAAQ,OACR,IAAK,MACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,SACR,IAAK,MACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,WACR,IAAK,UACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,UACR,IAAK,OACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,UACR,IAAK,MACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,WACR,IAAK,MACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,UACR,IAAK,KACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,WACR,IAAK,MACL,YAAa,gCACd,CACD,CACE,GAAI,4BACJ,OAAQ,WACR,IAAK,OACL,YAAa,gCACd,CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/functions/fetch-with-retry.d.ts
|
|
2
|
+
declare function fetchWithRetry(input: RequestInfo | URL, init?: RequestInit | undefined, options?: {
|
|
3
|
+
timeout?: number;
|
|
4
|
+
maxRetries?: number;
|
|
5
|
+
retryDelay?: number;
|
|
6
|
+
}): Promise<Response>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { fetchWithRetry as t };
|
|
9
|
+
//# sourceMappingURL=fetch-with-retry-C6zApdLn.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-with-retry-C6zApdLn.d.mts","names":["fetchWithRetry","RequestInfo","URL","RequestInit","Response","Promise"],"sources":["../src/functions/fetch-with-retry.d.ts"],"sourcesContent":["export declare function fetchWithRetry(input: RequestInfo | URL, init?: RequestInit | undefined, options?: {\n timeout?: number;\n maxRetries?: number;\n retryDelay?: number;\n}): Promise<Response>;\n"],"mappings":";iBAAwBA,cAAAA,QAAsBC,cAAcC,YAAYC,gCAAAA;EAAhDH,OAAAA,CAAAA,EAAAA,MAAAA;EAAsBC,UAAAA,CAAAA,EAAAA,MAAAA;EAAcC,UAAAA,CAAAA,EAAAA,MAAAA;CAAYC,CAAAA,EAIpEE,OAJoEF,CAI5DC,QAJ4DD,CAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
async function e(e,t,n={}){let{timeout:r=5e3,maxRetries:i=10,retryDelay:a=1e3}=n,o=null;for(let n=0;n<i;n++){let s=new AbortController,c=setTimeout(()=>{s.abort()},r);try{let r=await fetch(e,{...t,signal:s.signal});if(clearTimeout(c),r.ok)return r;if(r.status===429||r.status>=500){let e=a+n**2*50;await new Promise(t=>setTimeout(t,e));continue}if(r.status===403)throw Error(`Unauthorized`);if(!r.ok){let e;try{e=(await r.json()).error||`HTTP error ${r.status}`}catch{e=`HTTP error ${r.status}`}throw console.error(`fetchWithRetry error: ${e}`),Error(e)}}catch(e){if(clearTimeout(c),o=e instanceof Error?e:Error(String(e)),n===i-1){let e=`Failed after ${i} retries. Last error: ${o.message}`;throw console.error(`fetchWithRetry error: ${e}`),Error(e)}let t=a+n**2*50;await new Promise(e=>setTimeout(e,t))}}throw Error(`Failed after ${i} retries`)}export{e as t};
|
|
2
|
+
//# sourceMappingURL=fetch-with-retry-CTDDLz3Q.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-with-retry-CTDDLz3Q.mjs","names":["lastError: Error | null","errorMessage: string"],"sources":["../src/functions/fetch-with-retry.ts"],"sourcesContent":["export async function fetchWithRetry(\n input: RequestInfo | URL,\n init?: RequestInit | undefined,\n options: {\n timeout?: number;\n maxRetries?: number;\n retryDelay?: number;\n } = {},\n): Promise<Response> {\n const { timeout = 5000, maxRetries = 10, retryDelay = 1000 } = options;\n\n let lastError: Error | null = null;\n\n for (let i = 0; i < maxRetries; i++) {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => {\n controller.abort();\n }, timeout);\n\n try {\n const response = await fetch(input, {\n ...init,\n signal: controller.signal,\n });\n\n clearTimeout(timeoutId);\n\n if (response.ok) {\n return response;\n }\n\n // Handle rate limiting and server errors\n if (response.status === 429 || response.status >= 500) {\n const delay = retryDelay + Math.pow(i, 2) * 50;\n await new Promise((resolve) => setTimeout(resolve, delay));\n continue;\n }\n\n // Handle unauthorized errors\n if (response.status === 403) {\n throw new Error(\"Unauthorized\");\n }\n\n // Handle other errors\n if (!response.ok) {\n let errorMessage: string;\n try {\n const error = await response.json();\n errorMessage = error.error || `HTTP error ${response.status}`;\n } catch {\n errorMessage = `HTTP error ${response.status}`;\n }\n console.error(`fetchWithRetry error: ${errorMessage}`);\n throw new Error(errorMessage);\n }\n } catch (error) {\n clearTimeout(timeoutId);\n lastError = error instanceof Error ? error : new Error(String(error));\n\n // If this is the last retry, throw the error\n if (i === maxRetries - 1) {\n const errMsg = `Failed after ${maxRetries} retries. Last error: ${lastError.message}`;\n console.error(`fetchWithRetry error: ${errMsg}`);\n throw new Error(errMsg);\n }\n\n // For network errors or timeouts, wait and retry\n const delay = retryDelay + Math.pow(i, 2) * 50;\n await new Promise((resolve) => setTimeout(resolve, delay));\n }\n }\n\n // This should never be reached due to the throw in the last retry,\n // but TypeScript needs it for type safety\n throw new Error(`Failed after ${maxRetries} retries`);\n}\n"],"mappings":"AAAA,eAAsB,EACpB,EACA,EACA,EAII,EAAE,CACa,CACnB,GAAM,CAAE,UAAU,IAAM,aAAa,GAAI,aAAa,KAAS,EAE3DA,EAA0B,KAE9B,IAAK,IAAI,EAAI,EAAG,EAAI,EAAY,IAAK,CACnC,IAAM,EAAa,IAAI,gBACjB,EAAY,eAAiB,CACjC,EAAW,OAAO,EACjB,EAAQ,CAEX,GAAI,CACF,IAAM,EAAW,MAAM,MAAM,EAAO,CAClC,GAAG,EACH,OAAQ,EAAW,OACpB,CAAC,CAIF,GAFA,aAAa,EAAU,CAEnB,EAAS,GACX,OAAO,EAIT,GAAI,EAAS,SAAW,KAAO,EAAS,QAAU,IAAK,CACrD,IAAM,EAAQ,EAAsB,GAAG,EAAK,GAC5C,MAAM,IAAI,QAAS,GAAY,WAAW,EAAS,EAAM,CAAC,CAC1D,SAIF,GAAI,EAAS,SAAW,IACtB,MAAU,MAAM,eAAe,CAIjC,GAAI,CAAC,EAAS,GAAI,CAChB,IAAIC,EACJ,GAAI,CAEF,GADc,MAAM,EAAS,MAAM,EACd,OAAS,cAAc,EAAS,cAC/C,CACN,EAAe,cAAc,EAAS,SAGxC,MADA,QAAQ,MAAM,yBAAyB,IAAe,CAC5C,MAAM,EAAa,QAExB,EAAO,CAKd,GAJA,aAAa,EAAU,CACvB,EAAY,aAAiB,MAAQ,EAAY,MAAM,OAAO,EAAM,CAAC,CAGjE,IAAM,EAAa,EAAG,CACxB,IAAM,EAAS,gBAAgB,EAAW,wBAAwB,EAAU,UAE5E,MADA,QAAQ,MAAM,yBAAyB,IAAS,CACtC,MAAM,EAAO,CAIzB,IAAM,EAAQ,EAAsB,GAAG,EAAK,GAC5C,MAAM,IAAI,QAAS,GAAY,WAAW,EAAS,EAAM,CAAC,EAM9D,MAAU,MAAM,gBAAgB,EAAW,UAAU"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e,t,n=5e3){return new Promise((r,i)=>{let a=new AbortController,o=setTimeout(()=>{a.abort(),i(Error(`Request timed out`))},n);fetch(e,{...t,signal:a.signal}).then(e=>{clearTimeout(o),r(e)}).catch(e=>{clearTimeout(o),i(e)})})}export{e as t};
|
|
2
|
+
//# sourceMappingURL=fetch-with-timeout-Bh66T6IH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-with-timeout-Bh66T6IH.mjs","names":[],"sources":["../src/functions/fetch-with-timeout.ts"],"sourcesContent":["export function fetchWithTimeout(\n input: RequestInfo | URL,\n init?: RequestInit | undefined,\n timeout: number = 5000,\n) {\n return new Promise<Response>((resolve, reject) => {\n const controller = new AbortController();\n const timeoutId = setTimeout(() => {\n controller.abort();\n reject(new Error(\"Request timed out\"));\n }, timeout);\n fetch(input, { ...init, signal: controller.signal })\n .then((response) => {\n clearTimeout(timeoutId);\n resolve(response);\n })\n .catch((error) => {\n clearTimeout(timeoutId);\n reject(error);\n });\n });\n}\n"],"mappings":"AAAA,SAAgB,EACd,EACA,EACA,EAAkB,IAClB,CACA,OAAO,IAAI,SAAmB,EAAS,IAAW,CAChD,IAAM,EAAa,IAAI,gBACjB,EAAY,eAAiB,CACjC,EAAW,OAAO,CAClB,EAAW,MAAM,oBAAoB,CAAC,EACrC,EAAQ,CACX,MAAM,EAAO,CAAE,GAAG,EAAM,OAAQ,EAAW,OAAQ,CAAC,CACjD,KAAM,GAAa,CAClB,aAAa,EAAU,CACvB,EAAQ,EAAS,EACjB,CACD,MAAO,GAAU,CAChB,aAAa,EAAU,CACvB,EAAO,EAAM,EACb,EACJ"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/functions/fetch-with-timeout.d.ts
|
|
2
|
+
declare function fetchWithTimeout(input: RequestInfo | URL, init?: RequestInit | undefined, timeout?: number): Promise<Response>;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { fetchWithTimeout as t };
|
|
5
|
+
//# sourceMappingURL=fetch-with-timeout-_2qhWdGh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-with-timeout-_2qhWdGh.d.mts","names":["fetchWithTimeout","RequestInfo","URL","RequestInit","Response","Promise"],"sources":["../src/functions/fetch-with-timeout.d.ts"],"sourcesContent":["export declare function fetchWithTimeout(input: RequestInfo | URL, init?: RequestInit | undefined, timeout?: number): Promise<Response>;\n"],"mappings":";iBAAwBA,gBAAAA,QAAwBC,cAAcC,YAAYC,4CAA4CE,QAAQD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetcher-Cg7X4B6k.d.mts","names":["fetcher","JSON","RequestInfo","RequestInit","Record","Promise"],"sources":["../src/functions/fetcher.d.ts"],"sourcesContent":["export declare function fetcher<JSON = any>(input: RequestInfo, init?: RequestInit & {\n headers?: Record<string, string>;\n}): Promise<JSON>;\n"],"mappings":";iBAAwBA,2BAA2BE,iBAAAA,GAAoBC;EAA/CH,OAAAA,CAAAA,EACVI,MADiB,CAAAH,MAAAA,EAAAA,MAAA,CAAA;CAAoBC,CAAAA,EAE/CG,OAF+CH,CAEvCD,IAFuCC,CAAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
async function e(e,t){let n=await fetch(e,{...t,...t?.headers&&{headers:t.headers}});if(!n.ok){let e=(await n.json())?.error?.message||`An error occurred while fetching the data.`,t=Error(e);throw t.info=e,t.status=n.status,t}return n.json()}export{e as t};
|
|
2
|
+
//# sourceMappingURL=fetcher-L2jCq775.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetcher-L2jCq775.mjs","names":[],"sources":["../src/functions/fetcher.ts"],"sourcesContent":["interface SWRError extends Error {\n info: any;\n status: number;\n}\n\nexport async function fetcher<JSON = any>(\n input: RequestInfo,\n init?: RequestInit & { headers?: Record<string, string> },\n): Promise<JSON> {\n const res = await fetch(input, {\n ...init,\n ...(init?.headers && { headers: init.headers }),\n });\n\n if (!res.ok) {\n const message =\n (await res.json())?.error?.message ||\n \"An error occurred while fetching the data.\";\n const error = new Error(message) as SWRError;\n error.info = message;\n error.status = res.status;\n\n throw error;\n }\n\n return res.json();\n}\n"],"mappings":"AAKA,eAAsB,EACpB,EACA,EACe,CACf,IAAM,EAAM,MAAM,MAAM,EAAO,CAC7B,GAAG,EACH,GAAI,GAAM,SAAW,CAAE,QAAS,EAAK,QAAS,CAC/C,CAAC,CAEF,GAAI,CAAC,EAAI,GAAI,CACX,IAAM,GACH,MAAM,EAAI,MAAM,GAAG,OAAO,SAC3B,6CACI,EAAY,MAAM,EAAQ,CAIhC,KAHA,GAAM,KAAO,EACb,EAAM,OAAS,EAAI,OAEb,EAGR,OAAO,EAAI,MAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-date-B_PzoM21.d.mts","names":["formatDate","Date","Intl","DateTimeFormatOptions"],"sources":["../src/functions/datetime/format-date.d.ts"],"sourcesContent":["export declare const formatDate: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;\n"],"mappings":";cAAqBA,uBAAuBC,yBAAyBC,IAAAA,CAAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-date-BrsjWtQR.mjs","names":[],"sources":["../src/functions/datetime/format-date.ts"],"sourcesContent":["export const formatDate = (\n datetime: Date | string,\n options?: Intl.DateTimeFormatOptions,\n) => {\n if (datetime.toString() === \"Invalid Date\") return \"\";\n return new Date(datetime).toLocaleDateString(\"en-US\", {\n day: \"numeric\",\n month: \"long\",\n year: \"numeric\",\n ...options,\n });\n};\n"],"mappings":"AAAA,MAAa,GACX,EACA,IAEI,EAAS,UAAU,GAAK,eAAuB,GAC5C,IAAI,KAAK,EAAS,CAAC,mBAAmB,QAAS,CACpD,IAAK,UACL,MAAO,OACP,KAAM,UACN,GAAG,EACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/functions/datetime/format-date-smart.d.ts
|
|
2
|
+
declare const formatDateSmart: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { formatDateSmart as t };
|
|
5
|
+
//# sourceMappingURL=format-date-smart-CRXPO-3d.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-date-smart-CRXPO-3d.d.mts","names":["formatDateSmart","Date","Intl","DateTimeFormatOptions"],"sources":["../src/functions/datetime/format-date-smart.d.ts"],"sourcesContent":["export declare const formatDateSmart: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;\n"],"mappings":";cAAqBA,4BAA4BC,yBAAyBC,IAAAA,CAAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-date-smart-DpagPhcu.mjs","names":[],"sources":["../src/functions/datetime/format-date-smart.ts"],"sourcesContent":["export const formatDateSmart = (\n datetime: Date | string,\n options?: Intl.DateTimeFormatOptions,\n) => {\n const date = new Date(datetime);\n const now = new Date();\n\n return date.toLocaleDateString(\"en-US\", {\n day: \"numeric\",\n month: \"long\",\n // if date is in previous year, show year\n // else, hide year\n ...(date.getUTCFullYear() !== now.getUTCFullYear()\n ? { year: \"numeric\" }\n : {}),\n ...options,\n });\n};\n"],"mappings":"AAAA,MAAa,GACX,EACA,IACG,CACH,IAAM,EAAO,IAAI,KAAK,EAAS,CACzB,EAAM,IAAI,KAEhB,OAAO,EAAK,mBAAmB,QAAS,CACtC,IAAK,UACL,MAAO,OAGP,GAAI,EAAK,gBAAgB,GAAK,EAAI,gBAAgB,CAE9C,EAAE,CADF,CAAE,KAAM,UAAW,CAEvB,GAAG,EACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-datetime-CVqrji_7.d.mts","names":["formatDateTime","Date","Intl","DateTimeFormatOptions"],"sources":["../src/functions/datetime/format-datetime.d.ts"],"sourcesContent":["export declare const formatDateTime: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;\n"],"mappings":";cAAqBA,2BAA2BC,yBAAyBC,IAAAA,CAAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-datetime-DZ470JiK.mjs","names":[],"sources":["../src/functions/datetime/format-datetime.ts"],"sourcesContent":["export const formatDateTime = (\n datetime: Date | string,\n options?: Intl.DateTimeFormatOptions,\n) => {\n if (datetime.toString() === \"Invalid Date\") return \"\";\n return new Date(datetime).toLocaleTimeString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n hour: \"numeric\",\n minute: \"numeric\",\n hour12: true,\n ...options,\n });\n};\n"],"mappings":"AAAA,MAAa,GACX,EACA,IAEI,EAAS,UAAU,GAAK,eAAuB,GAC5C,IAAI,KAAK,EAAS,CAAC,mBAAmB,QAAS,CACpD,MAAO,QACP,IAAK,UACL,KAAM,UACN,KAAM,UACN,OAAQ,UACR,OAAQ,GACR,GAAG,EACJ,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=(e,t)=>{let n=new Date(e),r=new Date;return n.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,...n.getUTCFullYear()===r.getUTCFullYear()?{hour:`numeric`,minute:`numeric`,hour12:!0}:{year:`numeric`},...t})};export{e as t};
|
|
2
|
+
//# sourceMappingURL=format-datetime-smart-CVyK5qx-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-datetime-smart-CVyK5qx-.mjs","names":[],"sources":["../src/functions/datetime/format-datetime-smart.ts"],"sourcesContent":["export const formatDateTimeSmart = (\n datetime: Date | string,\n options?: Intl.DateTimeFormatOptions,\n) => {\n const date = new Date(datetime);\n const now = new Date();\n\n return date.toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n // if date is in previous year, show year\n // else, hide year, show time\n ...(date.getUTCFullYear() !== now.getUTCFullYear()\n ? { year: \"numeric\" }\n : {\n hour: \"numeric\",\n minute: \"numeric\",\n hour12: true,\n }),\n ...options,\n });\n};\n"],"mappings":"AAAA,MAAa,GACX,EACA,IACG,CACH,IAAM,EAAO,IAAI,KAAK,EAAS,CACzB,EAAM,IAAI,KAEhB,OAAO,EAAK,mBAAmB,QAAS,CACtC,MAAO,QACP,IAAK,UAGL,GAAI,EAAK,gBAAgB,GAAK,EAAI,gBAAgB,CAE9C,CACE,KAAM,UACN,OAAQ,UACR,OAAQ,GACT,CALD,CAAE,KAAM,UAAW,CAMvB,GAAG,EACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region src/functions/datetime/format-datetime-smart.d.ts
|
|
2
|
+
declare const formatDateTimeSmart: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { formatDateTimeSmart as t };
|
|
5
|
+
//# sourceMappingURL=format-datetime-smart-d22cix-d.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-datetime-smart-d22cix-d.d.mts","names":["formatDateTimeSmart","Date","Intl","DateTimeFormatOptions"],"sources":["../src/functions/datetime/format-datetime-smart.d.ts"],"sourcesContent":["export declare const formatDateTimeSmart: (datetime: Date | string, options?: Intl.DateTimeFormatOptions) => string;\n"],"mappings":";cAAqBA,gCAAgCC,yBAAyBC,IAAAA,CAAKC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/functions/format-file-size.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Formats a file size in bytes to a human-readable string (KB, MB, GB)
|
|
4
|
+
* @param bytes File size in bytes
|
|
5
|
+
* @param decimals Number of decimal places to show
|
|
6
|
+
* @returns Formatted file size string
|
|
7
|
+
*/
|
|
8
|
+
declare function formatFileSize(bytes: number, decimals?: number): string;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { formatFileSize as t };
|
|
11
|
+
//# sourceMappingURL=format-file-size-BspZw7d5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-file-size-BspZw7d5.d.mts","names":["formatFileSize"],"sources":["../src/functions/format-file-size.d.ts"],"sourcesContent":["/**\n * Formats a file size in bytes to a human-readable string (KB, MB, GB)\n * @param bytes File size in bytes\n * @param decimals Number of decimal places to show\n * @returns Formatted file size string\n */\nexport declare function formatFileSize(bytes: number, decimals?: number): string;\n"],"mappings":";;AAMA;;;;;iBAAwBA,cAAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-file-size-CCHIbZbx.mjs","names":[],"sources":["../src/functions/format-file-size.ts"],"sourcesContent":["/**\n * Formats a file size in bytes to a human-readable string (KB, MB, GB)\n * @param bytes File size in bytes\n * @param decimals Number of decimal places to show\n * @returns Formatted file size string\n */\nexport function formatFileSize(bytes: number, decimals: number = 2): string {\n if (bytes === 0) return \"0 Bytes\";\n\n const k = 1024;\n const sizes = [\"B\", \"KB\", \"MB\", \"GB\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\"];\n const i = Math.floor(Math.log(bytes) / Math.log(k));\n\n return (\n parseFloat((bytes / Math.pow(k, i)).toFixed(decimals)) + \" \" + sizes[i]\n );\n}\n"],"mappings":"AAMA,SAAgB,EAAe,EAAe,EAAmB,EAAW,CAC1E,GAAI,IAAU,EAAG,MAAO,UAExB,IAAM,EAAI,KACJ,EAAQ,CAAC,IAAK,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAK,CAC7D,EAAI,KAAK,MAAM,KAAK,IAAI,EAAM,CAAG,KAAK,IAAI,EAAE,CAAC,CAEnD,OACE,YAAY,EAAiB,IAAG,GAAI,QAAQ,EAAS,CAAC,CAAG,IAAM,EAAM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-period-DJDA7miF.d.mts","names":["formatPeriod","Date"],"sources":["../src/functions/datetime/format-period.d.ts"],"sourcesContent":["export declare const formatPeriod: (d: {\n periodStart?: Date | null;\n periodEnd?: Date | null;\n}) => string;\n"],"mappings":";cAAqBA;EAAAA,WAAAA,CAAAA,EACHC,IAEN,GAAA,IAAA;cADIA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface CurrencyFormatterOptions extends Intl.NumberFormatOptions {
|
|
2
2
|
trailingZeroDisplay?: "auto" | "stripIfInteger";
|
|
3
3
|
}
|
|
4
|
-
declare const currencyFormatter: (
|
|
4
|
+
declare const currencyFormatter: (valueInCents: number, options?: CurrencyFormatterOptions) => string;
|
|
5
5
|
|
|
6
6
|
export { currencyFormatter };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-KDMJUM2I.mjs";import"../chunk-FJFDTHKA.mjs";export{a as currencyFormatter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a}from"../chunk-FJFDTHKA.mjs";export{a as isZeroDecimalCurrency};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{b as a}from"../../chunk-OZ5XXSGA.mjs";import"../../chunk-UWXN5NEH.mjs";import"../../chunk-MP5IS4V2.mjs";import"../../chunk-HR4YFT2T.mjs";import"../../chunk-AQPTJK67.mjs";import"../../chunk-E3EM6ARH.mjs";import"../../chunk-BMESPBRA.mjs";import"../../chunk-KIDNKMJ2.mjs";import"../../chunk-STMJW3HF.mjs";import"../../chunk-CP4WO7MM.mjs";import"../../chunk-2XEQCQCO.mjs";import"../../chunk-53SZZ2QK.mjs";import"../../chunk-IHX4EDUF.mjs";import"../../chunk-RONJDARA.mjs";import"../../chunk-3Q25XO3O.mjs";import"../../chunk-Y37NQHZ4.mjs";import"../../chunk-PPEZOXLP.mjs";import"../../chunk-FKLXONKR.mjs";import"../../chunk-NQP6WK7A.mjs";import"../../chunk-BWEJXFI3.mjs";import"../../chunk-PZ5KH242.mjs";import"../../chunk-RFDM4NES.mjs";import"../../chunk-OWYWG4M6.mjs";import"../../chunk-NWFCCRLG.mjs";import"../../chunk-GRNEXX4Q.mjs";import"../../chunk-N5E6WGFW.mjs";import"../../chunk-EHUYHMHD.mjs";import"../../chunk-LPWMMOGV.mjs";import"../../chunk-EMO4MGOU.mjs";import"../../chunk-VQH3G3BC.mjs";import"../../chunk-ZTPDEOIY.mjs";import"../../chunk-F4P6WJV7.mjs";import"../../chunk-JKFE3UP3.mjs";import"../../chunk-NZ4UYKAT.mjs";import"../../chunk-WKSJXYEU.mjs";import"../../chunk-NEIHTFSW.mjs";import"../../chunk-HJD7AJT4.mjs";import"../../chunk-VZT64RAP.mjs";import"../../chunk-KDMJUM2I.mjs";import"../../chunk-FJFDTHKA.mjs";import"../../chunk-ZECUYKGD.mjs";import"../../chunk-UCO6SXQA.mjs";import"../../chunk-2N7XAD3K.mjs";import"../../chunk-KQ4NF54J.mjs";import"../../chunk-L2U2GMY5.mjs";import"../../chunk-6MXH6P2P.mjs";import"../../chunk-52NREKQ5.mjs";import"../../chunk-ORB6LTBV.mjs";import"../../chunk-PMOQSSOL.mjs";import"../../chunk-2OJAP233.mjs";import"../../chunk-MWDHT2QR.mjs";import"../../chunk-2MOTUFXD.mjs";import"../../chunk-PYD75RYX.mjs";import"../../chunk-2OGPCKQX.mjs";import"../../chunk-C5CCX7UU.mjs";import"../../chunk-DEIZ6NOQ.mjs";import"../../chunk-2YQGBO42.mjs";import"../../chunk-YUMUNL66.mjs";import"../../chunk-JO76EBDG.mjs";import"../../chunk-RRVBMEYA.mjs";import"../../chunk-6YGW3G46.mjs";import"../../chunk-6OQAYXTQ.mjs";import"../../chunk-CELI6EJU.mjs";import"../../chunk-SYT2IXG6.mjs";export{a as formatPeriod};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { n as getBillingStartDate, r as getLastDayOfMonth, t as getAdjustedBillingCycleStart } from "../../billing-utils-Ajfw8K8K.mjs";
|
|
2
|
+
import { t as formatDateSmart } from "../../format-date-smart-CRXPO-3d.mjs";
|
|
3
|
+
import { t as formatDate } from "../../format-date-B_PzoM21.mjs";
|
|
4
|
+
import { t as formatDateTimeSmart } from "../../format-datetime-smart-d22cix-d.mjs";
|
|
5
|
+
import { t as formatDateTime } from "../../format-datetime-CVqrji_7.mjs";
|
|
6
|
+
import { t as formatPeriod } from "../../format-period-DJDA7miF.mjs";
|
|
7
|
+
import { t as getDateTimeLocal } from "../../get-datetime-local-bcjAmD-U.mjs";
|
|
8
|
+
import { t as getDaysDifference } from "../../get-days-difference--WnBYvi_.mjs";
|
|
9
|
+
import { t as getFirstAndLastDay } from "../../get-first-and-last-day-CexC1yYr.mjs";
|
|
10
|
+
import { t as parseDateTime } from "../../parse-datetime-Byk97s6l.mjs";
|
|
11
|
+
import "../../index-B6T7ov8p.mjs";
|
|
12
|
+
export { formatDate, formatDateSmart, formatDateTime, formatDateTimeSmart, formatPeriod, getAdjustedBillingCycleStart, getBillingStartDate, getDateTimeLocal, getDaysDifference, getFirstAndLastDay, getLastDayOfMonth, parseDateTime };
|