@shopify/cli-hydrogen 4.0.0-alpha.8 → 4.0.0
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/commands/hydrogen/build.d.ts +20 -0
- package/dist/commands/hydrogen/build.js +42 -37
- package/dist/commands/hydrogen/check.d.ts +18 -0
- package/dist/commands/hydrogen/check.js +35 -0
- package/dist/commands/hydrogen/dev.d.ts +14 -0
- package/dist/commands/hydrogen/dev.js +57 -61
- package/dist/commands/hydrogen/generate/route.d.ts +34 -0
- package/dist/commands/hydrogen/generate/route.js +165 -0
- package/dist/commands/hydrogen/generate/route.test.d.ts +1 -0
- package/dist/commands/hydrogen/generate/route.test.js +126 -0
- package/dist/commands/hydrogen/generate/routes.d.ts +16 -0
- package/dist/commands/hydrogen/generate/routes.js +22 -0
- package/dist/commands/hydrogen/init.d.ts +22 -0
- package/dist/commands/hydrogen/init.js +169 -25
- package/dist/commands/hydrogen/preview.d.ts +17 -0
- package/dist/commands/hydrogen/preview.js +2 -2
- package/dist/create-app.d.ts +1 -0
- package/dist/create-app.js +4 -0
- package/dist/{templates/demo-store/app → generator-templates}/routes/[robots.txt].tsx +2 -1
- package/dist/{templates/demo-store/app → generator-templates}/routes/[sitemap.xml].tsx +6 -4
- package/dist/generator-templates/routes/account/login.tsx +74 -0
- package/dist/generator-templates/routes/account/register.tsx +74 -0
- package/dist/generator-templates/routes/cart.tsx +43 -0
- package/dist/generator-templates/routes/collections/$collectionHandle.tsx +65 -0
- package/dist/{templates/demo-store/app → generator-templates}/routes/graphiql.tsx +0 -0
- package/dist/{templates/hello-world/app → generator-templates}/routes/index.tsx +0 -0
- package/dist/generator-templates/routes/pages/$pageHandle.tsx +74 -0
- package/dist/{templates/demo-store/app → generator-templates}/routes/policies/$policyHandle.tsx +8 -37
- package/dist/generator-templates/routes/policies/index.tsx +65 -0
- package/dist/generator-templates/routes/products/$productHandle.tsx +57 -0
- package/dist/hooks/init.d.ts +5 -0
- package/dist/utils/check-lockfile.d.ts +3 -0
- package/dist/utils/check-lockfile.js +78 -0
- package/dist/utils/check-version.d.ts +3 -0
- package/dist/utils/check-version.js +50 -0
- package/dist/utils/config.d.ts +18 -0
- package/dist/utils/config.js +116 -43
- package/dist/utils/flags.d.ts +10 -0
- package/dist/utils/flags.js +15 -3
- package/dist/utils/flags.test.d.ts +1 -0
- package/dist/utils/flags.test.js +18 -0
- package/dist/utils/log.d.ts +5 -0
- package/dist/utils/mini-oxygen.d.ts +11 -0
- package/dist/utils/mini-oxygen.js +7 -4
- package/dist/utils/missing-routes.d.ts +6 -0
- package/dist/utils/missing-routes.js +71 -0
- package/dist/utils/template-downloader.d.ts +11 -0
- package/dist/utils/template-downloader.js +66 -0
- package/dist/utils/transpile-ts.d.ts +16 -0
- package/dist/utils/transpile-ts.js +161 -0
- package/dist/utils/virtual-routes.d.ts +7 -0
- package/dist/utils/virtual-routes.js +47 -0
- package/dist/utils/virtual-routes.test.d.ts +1 -0
- package/dist/utils/virtual-routes.test.js +46 -0
- package/dist/virtual-routes/assets/dummy.d.ts +1 -0
- package/dist/virtual-routes/assets/dummy.js +1 -0
- package/dist/virtual-routes/assets/dummy.ts +1 -0
- package/dist/{templates/demo-store/dist/client → virtual-routes/assets}/favicon.svg +0 -0
- package/dist/virtual-routes/assets/styles.css +207 -0
- package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +7 -0
- package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +13 -0
- package/dist/virtual-routes/components/IconBanner.jsx +47 -0
- package/dist/virtual-routes/components/IconDiscord.jsx +4 -0
- package/dist/virtual-routes/components/IconError.jsx +20 -0
- package/dist/virtual-routes/components/IconGithub.jsx +4 -0
- package/dist/virtual-routes/components/IconTwitter.jsx +4 -0
- package/dist/virtual-routes/components/Layout.jsx +6 -0
- package/dist/virtual-routes/routes/graphiql.jsx +5 -0
- package/dist/virtual-routes/routes/index.jsx +140 -0
- package/dist/virtual-routes/virtual-root.jsx +38 -0
- package/oclif.manifest.json +1 -131
- package/package.json +36 -7
- package/dist/templates/demo-store/.cache/content-v2/sha512/00/06/24c89d558123b63259495c8099c0f959320fa2e54d907b3544baca5e0e6116c6c817c33423097ae1ba93f9506f6870cc37df232b376f8c264573b7aa72b5 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/02/76/13bbea15bb42b81a204b0dc5f14726e0bfa8d012a7b284f887cc2e3c92195d6b07a78f199f990b311ca5fafa9079563503cdd81808cd9b7e496d86c72732 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/08/56/c9a478b8c5c2fbfb6eed219f0861db568eceecbb45155124491ca25125ca421aac7e1b10d29151e5294a776ae10e02e01dc2da3561da793d111c4f908502 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/11/0c/195071c290a61e22dd825b300c9f93e5315b2effefc3e5545440ac704d629e177bc877333ce73232ac72703bcc69fb425632d84b3caefe7f5c0fd12537ee +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/13/f6/b7f804d45a961ca1e392429e75ad80f23ba46cbba0e960c6a70f8de81f3f3763af59651474176798d1a1a4bd2a5109b1d441f6d1c8ba070b678b38378adf +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/15/61/a4cf6ccc2120c217346ecee6299fddf06e5555f6c9371305f118fdb382ff88588b31ec36b034ed785d36e3b18a8e8751702bbed4e101a97396f92ea35612 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/17/08/03dabbacd40d4a2b132018a520d1dbcf29ffb2c659bbe01cb91f700202d5016ab4104831b95a05b98535549be4a6520ddcd6504ba361692549a5cd0458ee +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/27/a0/d277ff364ced6a2d01639f1e2b8675ef95eff3a4aa4d2fda0990392526e0f18def66116a8623096d1bdafabe1dc8efc56ef0956054b3370dfa9ad6596a29 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/28/53/96d2a5c3d4b08a7191e545d4d961f7690f814a331dc8efcc11e45854fbccd04f825ec8d3a1070b05aca51dd63e06c778316395446055cc3cfc90c8b30615 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/28/7c/c71b0c6367bdf7307a8061fe1c4568c9f1e9603d835b6fc917fe8042535a867c37154e35376a01ad6bdb3c2d6f29b88b41902fd6f20b1227e02081682d01 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/29/2e/db501d168869cc6b7d5e51bfbf399e920773ed905b9e2b782ebfb29c5260f05b67d0b7d4599e8c5666253789d545ecfdfdb9e020da8ac262d99d0e69e5b0 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/2b/05/f4684d5f729778c589ac1c471d21826137034b5f1163d67118f6cd0e1672e92cc3e2408a50da44d156bd3e574f7512a2245558ecdce896af8924cf966c73 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/32/c2/8f62057f7082cddef5cd3d912d1a4c2c8eb9be28edefeb3d398181606f5bed84eac45a2edd8bb390d05278ca3ff6964e7594d8be9a0200cc8193f3dbb025 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/35/3c/f46f8adbcf210210bac8ab00267ab16c16393ab4a95920f69c4452b298a83c9785d3d2c2bb4a63937cb4eed028197a18f0d2929024ebae18b0751f07ebf5 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/36/3e/ece5cc6633a23301aa4f05fc1efddd8876aec2d8bf7afe504526e2866ed67263e99bffbb1e0d99a65622a7246f9d662217032aca47f70b6f0f13b75e7df1 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/37/19/de54f68ea7b2a79f86d12ec1107e99d04217817fb6de9a5ba2dc5cdd16d16e1dda4cc9f7cf2b6ece5a6330f47ca20fa27a08aeffc17eb23fd11399e601fd +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/39/3e/7839c7699ead2ece5a07c6f0116dcbdd4cd5fce00cb6fafb349d3ab4ff6fdb626f056c05f1dd25ad453996209e5a1870f7b937714791c3fe2c43887d8dfa +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/46/04/af285aee74d96b28b24f75d7911de65e6c7bb26475ab5219fe5308028fda55060cf45650dfa09c0731ec73ece453c1e24e0c38715e8d4c5c80fd6365a1f4 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/46/1c/c69c5b9150a9f76dff13c0d6a768540636e6569f4f3f56795d1b4c494045d5908674f292815212ac52e6d8a597b4ad35783506113f195a09f1057f09f00c +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/46/70/1f052bc78bf18274412ed7e7305d42fb50cbe5a6a0fbf62e0f9a775e667a541bc17352850fa8759a26f51b3459cfc6834fbf4a8b15527dc432be6ca76852 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/4b/48/ca635670e7d1b1a5550d32f51389a5754234da55c6d7c900f348c8bf1ccc84bdcefc620e08979b7aa1d04a49a1138b46346f126d20c0126eb0c3261deb5b +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/51/ab/e165384df6374c7b2d0ebebc8642ecb0e0c14f7c5b57970ec5d2e17f7d1643e0b01eda69e5ffbefde85ecba6d613bcc5175c5564e36bfb73d966c8ea4153 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/54/86/917224aeb3e04e19a51534244f5ed28f3529d85276452f52af9af3657798246c97a0948bcf62c707394ab80f0062a87e7079bd71c05e0d16f927091617d2 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/56/bf/57423492125064302f4b06c3e3ebb8c0263ad049865c299eedb7026b56de4cc3d0790bc370d0fe1bc448cb8df31f38a8fe3f6644b91d9f88e85764205ef2 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/65/a8/8322f339f24b58dc82746c373ccaff8847aa0f315db64e6efa4ae357e8a24d36d2664cf60d387582a6d60155940e6c72c6edd5a68ca3066d6173d4e04f13 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/69/8b/226dd183d716cf3d632e447afc7dfab45d90664f1d0cbb51c9d69a65e9811484c7ba5940e045306824d1dffeb4abb8f2e51b4a3289d4afeee445cfc4e6af +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/69/e4/b067c1beb51c176168380eef47aee15632f7e50c24c8a66d9675fdecd8ac5bd6a294a634228e926894cc8b96789432103a7e6e01f3d58daf793178fc85ff +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/6b/6d/71211d4cebfd1e1c86788ede5784a53cf366a85f4e2646a300c820958a5219bfa5492b169d1cca1b431e946b41d15a526ee7f77db65a6e730dead281f777 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/6e/ae/615197316ce9be03e9d63a85984c0752583325087b827210d5e681f52dd532738371a0dab76a42d3eb68c2f21808974d13847b5514a92450af40d578e973 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/70/ec/37e2f634bc66cf777929488d19db018d338d1a1d2ccd338b1cb99d2d67a23dcaad2e46f77f63ce1280b7125038523a5d3ea42873780e8fb04cf408c08a4c +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/73/40/c822831f11f08a9ceea944d0145b072ba6164a3e2e75f98fda5437cda6dfddf9ca9450445c1f3236228d6259ac95e4cde9bb6e5996490ed00b7b13b06121 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/75/02/c799e50ebd6988abb7b1090074668ce459a711a347069f905971e11126c3779d0f6c14b89f8350b7bf4f0712e8fbf48290205b1b5c2d427f21a80c32190c +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/77/fd/28951020ad9dc57df6e80976e714302d5b639eb69e28a184d9e4a4ee1322f39980bf3906f4176d62ab97d899bbced462187ea2a71a750694ac743c99cd9e +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/7a/4d/47fb716aef6fb90bd6883dccba9e1359e409cf1291762a0a2c6b7ad56097e67267b617ab8ebf3cb57ef256c00d22f778a8d6688df388ed181b866fcda132 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/7b/15/d1749be8fa73f2f123e5e9a0807f343cdfa14fd263f9073fe7cd73352b7318b976a43687096a06acbbed2a2f0f86119d45cdd1e9ad6d09208c06b6232db2 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/87/97/27cde85115daefca4a74cd9a2e87c66cf71e68ad7ca1a53c3d8a95f0b78dc50e89cc2d73aa293747b1b10650c9c703a97e17ecad24b46a50eac73aa0602f +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/88/76/d18fdfbb05293909609d42368642fc6da4bd138c5864ec2f721212b52e595b84ae46f48021ed3e6240edf443f78bdea557d56d700e3da848459ea3077a80 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/8a/d1/ca384452cdc8a2fb92fa1c70a4db303dd5f9887475e0e4ddf4bc711b5ebceb684ba5fd8bf596c3d491ab8598bd52ffe20f98564f8110da0730f46f39e790 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/8c/51/88e1fc4d8365cb6ad1a755e8bca81fbb64abb1c8ef08a8314471952910e0e29eadfa283d482233d500893a57b57470171ab98ebacb4b93780b37e7a87c93 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/8f/81/8e238bb1d4654dcc554d661194c9415fe36dc6f20624dd26e47c0043f06ee69d1abd49947b11954508bfd01823fdf97a3ca9196521f05cb471473095c5c5 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/91/39/2d6842760bb34dde16e9aad46162f546e8cab25d2440a69cb01bf4b2ed8fb3122490666d3eb9b70225259f7ed47e182bc6b83fe455647dde30d61cefa07d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/93/6b/e60098157f6bff8ba570cab2ffd97a14983109006f7fa87e4432728366f96dfb19e957d28754daa45f1b6cb2421d26ab59bbd5ce5a448d6102e8e662403d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/94/4a/a539de5a6348e4ecc4e05ea18301c0077a30ed452550660f8b13440a40f7e3858a03ef0aad25b559c49dbbe51455cc5d8e2a7b6c2b0c57e31875b5f8e6be +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/9e/2e/945fdc4a4fb8c2186645c71b48ef341e6f0da2a6b3ddd38761210fcf713c2249160f87387ac66547fa30732269fbf9ad6b24b6c6a50ae914284b96be8571 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/9e/42/2999364d90a1a410573f5de0dea3765defcb24ccf54937c92995a3fcaf1fffe8fca06c15ab433d60b595617e89707ba1a292b66cbb9aae8d8e617bc59879 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/9f/76/504ec4500726300092be4c0d162b3694e388778e8a59ace118572149b8f31da4661b3bee2f950ea6608154f0cc105422f39f92f8fddda49053712b5cc81d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/9f/e5/f8840af1702b9e2e9005708f2513779d889a88d8d7379d5d93cf28390fd6c0300ba5cac0fe429d67a22ddeb884f85917c73f4ae286328a5cf437f568b73f +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/9f/f7/d8f3eb03a1a2eefae7d7e52b2a15391b7012eab4507c37385ccfcfcad13c095c93a99dcfc2a6a44b73ab2fa50be0e3b64ab1153f56bd833536b7a3f06852 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/a0/92/dc5bc315864cebde3ccd84e2a2e4228d8f467aa14efdcc3ef13b8815abbf495afeccb531cc4e049fe4d81d0b3e5afc0139b4450fb2cfca2b2c82cdd450ac +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/ad/44/f00b1b89c5d7778be4cd40cff421c77e97a937e945491777256fafa6ac80cc334b7118b4248fd13c3cb7fb37d86e1b54afaf688b295542694f276d359082 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/b0/02/9ef55507e114e4391048df8e43101c006d5b3852e33450030d3ba974d438dd3ac489b084b15445ff5e1747e642eda2d969a13c8ba5a778669f9ab019789a +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/ba/08/9238d2f1bec0536eed757ab6583e384da966814a1c83896409f032bb673a056d62bb6f3b8a5bef36d61daf0e15617154b106b3bbc721354690bc930bb649 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/bb/58/6a8a15508eab54d23bb1ae0dc4e28925c945258fffbf51d126a8ad3413d5396b3b2211493be551641d5b55dbf0c84d34cc06de906c3127e84b04eb46080d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/bc/33/6e26ece5ac53d9eac9ac8a192ef39faf2a587a5808253c659fb1d371c477fc8074d428c8d1929b0d85dd1fec66fc79ea6b9fcb01507e2efec75fb7fbc2cc +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/c2/66/bc5f0b229dcdcab36104e3a3b531e3adc88a84622db081d73664f13cd7f6f4639d94e0d85ec075309735d51aa30bb26ea05ccff534f7e1ced5bf8115077a +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/c3/02/833766a7cfde6705e73ecd14cfa40f18bb470af44b39b856473411d00b9bda679d93ff62e49267263318aba287a74a1395b7e1559e786d955a19d8ba5ad7 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/c9/bf/f82a49d275c8c16097122d6c71e3e64e45902413b6973b56974ed0f03bf8e0974328cfb006067036348f9473ef241927a68562848a1bdb2a8a9ce7d3cd9d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/d1/fd/7a54f9c08d3a6e60f396a8033b49ce9c1129e877eef39bfa18467b04cd39c6c94423ef7e099fde8a8cca3a2b405d4725d7b2d51abf2be59853454afebfc5 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/da/84/b6d27e02f9b109d7cff3095b08e2e2ed1802c8b6829c98f6e297d1c404059f8bacfdc278afd07e2f81cbc487318396a3775037b678ab6aff9a5231c94c0d +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/e8/ae/9b467e1d23913d4584d9417875b3cdc25f6dfed8b228f3a0c818129010b778aae1af1eb200b015ab428e79afe0ef1061262392fbdb96ed7da95efbe7f758 +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/ec/30/c2d6a93b0ab69c9d176e1db911bc276c6b81ef13d4ac2241bf2b6824979a157817f26c8a508ca87697f89b98afd86e8d7203878bb02e60e8442ab4620d8c +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/ed/15/aabcbf6d4b36151e7bb25d8751396c6c22a4a38b0505f9b244a060634e97399617ba8936870dc4ad25a3a1ad1fb1e4428d9989b2d52ff61070bfbca5ef1a +0 -1
- package/dist/templates/demo-store/.cache/content-v2/sha512/fd/f3/986b7ee5ea5ad1d89af5c08de69d43c025b54381092e0a19fd7e7a1e0352552aa85c056315ce5e11a46ec75a252b1a44e2083abb73cd6df8407dfdb0ac48 +0 -1
- package/dist/templates/demo-store/.cache/index-v5/06/7e/7376a38676aa7f0543ab03fc451602dab8ad66e6ddebc44d94ee6f5c1df2 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/06/84/719070270981ac7d003eefa98569d499d2d93dd2f1828da9825b87d03160 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/08/b4/0d9cf6db265587df0990c07ef4bc1e61fa9fe85d6cfe4d6cbbf839c2313c +0 -2
- package/dist/templates/demo-store/.cache/index-v5/09/f6/fe4b05c4157320b8b59b3f84116195be0437d87357d743d21acd638a4606 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/0a/75/d3baf53012b62018cb60557f47601d810ec57c564bdc0b24c4990c73a833 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/0c/43/721b2c2b054af973286c2ea3c51c612d347365682b5aae5b9e98554f91e1 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/12/83/1a44e36774d9014fe186e18a3691e1ec3f37f2c30c22d38787a3cd157d7f +0 -2
- package/dist/templates/demo-store/.cache/index-v5/13/bd/14a326bd4cb6fb280eb85ecca60d6519738bf7e80df5285ec626d129baf3 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/19/b1/b0877b4141a2ee6f7c173e2407c0b26958c0919238934a89a03049397aec +0 -2
- package/dist/templates/demo-store/.cache/index-v5/1b/6a/418ff1309326b48db3963d5ad40eacb0728d138b7f24896390e484b34c50 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/24/d9/e0e8006f3c8deb17314475a674698161e207f116d9056bf0e1aabfa6c430 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/28/f4/466108ec4c6619222c94f178cc3962ed49f5f9a1e3783ad55335de0cdad3 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/2e/ae/45167cd92f49c852d660e05a29b7484c886b3c0579fb9c148162b1a88fb6 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/35/95/be51ab071b6bd2259e4acb91185c5e0affeee223c15a822ba226607d5616 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/36/74/12368a4a642be74c83dfdb5eaca244dc624ca78c3528edc49262807f9f96 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/37/56/4cbfef349acf26ffb05aa7f17742913d7bd956c920a5bb1941ca0dda3a22 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/3b/e5/5841b3445af43a34c7b560d6cf329ade1bfb64584b85fbb10ac4a7313ef4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/40/67/0807c50d176836338cf5fe4864622d377a143dc97f0a86a702bf11dd7d72 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/45/4b/1a3af253b3e2ef123d3872ad54d71865cc788ff5373a00414d2ae0243421 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/4f/8a/4672c73b9b76b90b7b378fbf9bc1a09426d0b5dbe97404e1f1f5a354013c +0 -2
- package/dist/templates/demo-store/.cache/index-v5/51/da/70f3331e7c62bab563cf9f86297b1bda6f6215420807d7710aaee0b8ca5d +0 -2
- package/dist/templates/demo-store/.cache/index-v5/55/0e/4666f091383137a5168d8052b246b3a7a28e05215dc7d8ff7f6b921f0142 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/58/93/287077465c80a2bfba306f218e51893019895137562df4a116326a0b222a +0 -2
- package/dist/templates/demo-store/.cache/index-v5/68/63/f781b7764101dfe1c192f68e1083513974e2396c9db609adf220a983bd88 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/68/f1/4a98caa6e2ab43e78781b99c7833cab4e722cd716bf9718e001a43efb27b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/7d/de/0d76288297eecd2ad4b07dd881631b481b19a83f7c9d36cfa4f967332943 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/7e/12/528dc5a6aebfe1fb1d5b4b7d56097f25291dd9454e0ab8faa0a26f296815 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/7e/bf/17c5f07b52df7946e14e733afa8f3880a40c1032bd3fb307cae4319e0fa8 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/81/59/14da935263d86e18f99d2391d6731d29cd2d5c0d8c81c65293816e6ad32a +0 -2
- package/dist/templates/demo-store/.cache/index-v5/85/85/0475166b36ce12e75c5a6352b12ea2fa872f696b8161dd08fdfab09a7273 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/88/bd/84904435de02c12b5b01c5aadd782e65a48d44006d98b864e01961a109dc +0 -2
- package/dist/templates/demo-store/.cache/index-v5/88/f6/729e4bad26ebd2b792dee6d1f96f87546ff9c4fa95518f603627fdd1126f +0 -2
- package/dist/templates/demo-store/.cache/index-v5/8a/7c/f5287da63fd3884889fef7019b2679f9a53ce5a268097295682ddad5131b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/95/40/bed10ab9e6081915bc6dc1ffb23a589f407c22ab7d254453f0b3ce53e5f5 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/96/b8/090abc56d6e9489d08af9564fb75d34477730aa1ece14ad85ba516549f2b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/9b/e4/8aa4e95d52644490afdb862c05cb2dccb9f5c1aa45157f3af5c37aad080a +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a1/e7/85ee850c85c329791d2123dd8231464fa27317290756b459012830d0f57e +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a2/27/f2e299e50a8a3b2b54a89bb3be85f3118081b3c6cfed704bb7d2802e2a49 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/a2/88/971871174c14875c70ca7bc9cea8d6b01465c1716d99440b059fa493947c +0 -2
- package/dist/templates/demo-store/.cache/index-v5/aa/57/05b67f08f71909d263fe9c357786097f5683394dbd65b0e4da2f9aa25288 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/ac/25/d778b282ab78dbafcc1b4fb19695aed368081c76fa680140b89af08b07b1 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/af/79/e80586a8b4bd0086246d97823d95bd64c77ad44b1fae591fdcd3883f776e +0 -2
- package/dist/templates/demo-store/.cache/index-v5/b3/75/d3e7a4a5df68530007409daf1d2e66ab789c8b658d1819d7e5fd183f5f57 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/b8/22/805af62bf21b63052b47f2f85322cb615ee786c214c0abc63b593a9f80ac +0 -2
- package/dist/templates/demo-store/.cache/index-v5/b8/67/17d551f86553b2a3a30c80b1d9797cbfcaa3d00f5239f39c1727c4d4fe8e +0 -2
- package/dist/templates/demo-store/.cache/index-v5/bc/52/538f70c9e2857f944f17c9121f6018d5c26ba916801b78d75484b130cd78 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/c1/77/182e74b8e456fd321a98e8b23f5616eaf2968ccc0dd0eeff016624a89534 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/c2/b6/58c9b05294374187ca9a342d46ed1b1f9e0afaf619acf88014f7f1a5dd8b +0 -2
- package/dist/templates/demo-store/.cache/index-v5/c6/72/887059f60c91b6fa41fbdab6bc1e1b6f4e3596cadd7a22457466fc1c2f67 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/c8/52/09bfbca72b45aec745fc339c27986edefa85e40bd69113275a6ecd6495e9 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/cb/f3/c8983d3f6b148ff6b70a42e0c3ccc4ca2f368df0aca086b8f0279d49f5be +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d0/c4/d960260ece228d28f70e317741b3f3f3df05c53956d870235837ae2b73b4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d2/7b/9476cfbc06c75a311a1951bcdea3b843d3f8763c916468901c3cd85ae7a4 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d7/2f/11fb6fd9a383d1edb40e2a774ca2de45a4f4b2c02e3f10d772427ef813d1 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/d7/a8/e21243c97a68bff4874453358b21815d4dc4c804b63fce7cba9cc567c3d6 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/db/34/e258d66ddeae0e8df2f3a92f0fc0a0472adc9b48c8d2f38087a828da4bc0 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/de/8a/31224d2c63a17ccc13c25e35f4e5882c9a5f5553a3ffeb916c84aa73a15d +0 -2
- package/dist/templates/demo-store/.cache/index-v5/e0/9c/a50143959e2a05f23db12f6e7f9982a0889c4105004c9f58115f9fdb19e0 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/f3/45/ed5a71628f7babbcd96f9d316ba1a9a7cdea5be1ef54d931ed5d6fcbfc21 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/f4/20/fefac33b4499a27824ee7ef5a84779df38eca55b00ec3046fcb028efb593 +0 -2
- package/dist/templates/demo-store/.cache/index-v5/f6/1d/25c4d10714262d4559d2c43d3e64ebfc038d37b0edbbf02246bdd6dcdacb +0 -2
- package/dist/templates/demo-store/.cache/index-v5/f8/f2/017d33a8105299b5a1d72ea80b7cce0d4bafbcd8409437a212735325631a +0 -2
- package/dist/templates/demo-store/.cache/index-v5/fd/f2/f7f55dae9bf6b65ea883eb44dc2fd24a2d2a97c5b68cb559255c6574d239 +0 -2
- package/dist/templates/demo-store/.editorconfig +0 -8
- package/dist/templates/demo-store/.eslintignore +0 -4
- package/dist/templates/demo-store/.eslintrc.js +0 -16
- package/dist/templates/demo-store/.graphqlrc.yml +0 -1
- package/dist/templates/demo-store/.prettierignore +0 -2
- package/dist/templates/demo-store/_env +0 -6
- package/dist/templates/demo-store/_gitignore +0 -13
- package/dist/templates/demo-store/app/components/AccountAddressBook.tsx +0 -97
- package/dist/templates/demo-store/app/components/AccountDetails.tsx +0 -41
- package/dist/templates/demo-store/app/components/AddToCartButton.tsx +0 -42
- package/dist/templates/demo-store/app/components/Breadcrumbs.tsx +0 -36
- package/dist/templates/demo-store/app/components/Button.tsx +0 -56
- package/dist/templates/demo-store/app/components/Cart.tsx +0 -431
- package/dist/templates/demo-store/app/components/CartLoading.tsx +0 -50
- package/dist/templates/demo-store/app/components/CountrySelector.tsx +0 -180
- package/dist/templates/demo-store/app/components/Drawer.tsx +0 -115
- package/dist/templates/demo-store/app/components/FeaturedCollections.tsx +0 -54
- package/dist/templates/demo-store/app/components/FeaturedProducts.tsx +0 -116
- package/dist/templates/demo-store/app/components/FeaturedSection.tsx +0 -39
- package/dist/templates/demo-store/app/components/GenericError.tsx +0 -58
- package/dist/templates/demo-store/app/components/Grid.tsx +0 -44
- package/dist/templates/demo-store/app/components/Hero.tsx +0 -130
- package/dist/templates/demo-store/app/components/Icon.tsx +0 -253
- package/dist/templates/demo-store/app/components/Input.tsx +0 -24
- package/dist/templates/demo-store/app/components/Layout.tsx +0 -492
- package/dist/templates/demo-store/app/components/Link.tsx +0 -46
- package/dist/templates/demo-store/app/components/Modal.tsx +0 -46
- package/dist/templates/demo-store/app/components/NotFound.tsx +0 -22
- package/dist/templates/demo-store/app/components/OrderCard.tsx +0 -85
- package/dist/templates/demo-store/app/components/Pagination.tsx +0 -277
- package/dist/templates/demo-store/app/components/ProductCard.tsx +0 -145
- package/dist/templates/demo-store/app/components/ProductGallery.tsx +0 -114
- package/dist/templates/demo-store/app/components/ProductGrid.tsx +0 -93
- package/dist/templates/demo-store/app/components/ProductSwimlane.tsx +0 -30
- package/dist/templates/demo-store/app/components/Skeleton.tsx +0 -24
- package/dist/templates/demo-store/app/components/SortFilter.tsx +0 -411
- package/dist/templates/demo-store/app/components/Text.tsx +0 -192
- package/dist/templates/demo-store/app/components/index.ts +0 -28
- package/dist/templates/demo-store/app/data/countries.ts +0 -194
- package/dist/templates/demo-store/app/data/index.ts +0 -1027
- package/dist/templates/demo-store/app/entry.client.tsx +0 -4
- package/dist/templates/demo-store/app/entry.server.tsx +0 -26
- package/dist/templates/demo-store/app/hooks/useCartFetchers.tsx +0 -14
- package/dist/templates/demo-store/app/hooks/useIsHydrated.tsx +0 -12
- package/dist/templates/demo-store/app/lib/const.ts +0 -10
- package/dist/templates/demo-store/app/lib/placeholders.ts +0 -242
- package/dist/templates/demo-store/app/lib/seo/common.tsx +0 -367
- package/dist/templates/demo-store/app/lib/seo/debugger.tsx +0 -175
- package/dist/templates/demo-store/app/lib/seo/image.tsx +0 -32
- package/dist/templates/demo-store/app/lib/seo/index.ts +0 -4
- package/dist/templates/demo-store/app/lib/seo/seo.tsx +0 -24
- package/dist/templates/demo-store/app/lib/seo/types.ts +0 -84
- package/dist/templates/demo-store/app/lib/session.server.ts +0 -57
- package/dist/templates/demo-store/app/lib/type.ts +0 -21
- package/dist/templates/demo-store/app/lib/utils.ts +0 -310
- package/dist/templates/demo-store/app/root.tsx +0 -279
- package/dist/templates/demo-store/app/routes/$.tsx +0 -7
- package/dist/templates/demo-store/app/routes/$lang/$.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/[robots.txt].tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/[sitemap.xml].tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__private/address/$id.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__private/edit.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__private/logout.ts +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__private/orders.$id.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__public/activate.$id.$activationToken.tsx +0 -6
- package/dist/templates/demo-store/app/routes/$lang/account/__public/login.tsx +0 -7
- package/dist/templates/demo-store/app/routes/$lang/account/__public/recover.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/account/__public/register.tsx +0 -6
- package/dist/templates/demo-store/app/routes/$lang/account/__public/reset.$id.$resetToken.tsx +0 -5
- package/dist/templates/demo-store/app/routes/$lang/account.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/api/countries.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/api/products.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/cart.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/collections/$collectionHandle.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/collections/all.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/collections/index.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/featured-products.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/index.tsx +0 -6
- package/dist/templates/demo-store/app/routes/$lang/journal/$journalHandle.tsx +0 -7
- package/dist/templates/demo-store/app/routes/$lang/journal/index.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/og-image.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/pages/$pageHandle.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/policies/$policyHandle.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/policies/index.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/products/$productHandle.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/products/index.tsx +0 -1
- package/dist/templates/demo-store/app/routes/$lang/search.tsx +0 -1
- package/dist/templates/demo-store/app/routes/account/__private/address/$id.tsx +0 -320
- package/dist/templates/demo-store/app/routes/account/__private/edit.tsx +0 -273
- package/dist/templates/demo-store/app/routes/account/__private/logout.ts +0 -25
- package/dist/templates/demo-store/app/routes/account/__private/orders.$id.tsx +0 -324
- package/dist/templates/demo-store/app/routes/account/__public/activate.$id.$activationToken.tsx +0 -218
- package/dist/templates/demo-store/app/routes/account/__public/login.tsx +0 -197
- package/dist/templates/demo-store/app/routes/account/__public/recover.tsx +0 -144
- package/dist/templates/demo-store/app/routes/account/__public/register.tsx +0 -184
- package/dist/templates/demo-store/app/routes/account/__public/reset.$id.$resetToken.tsx +0 -214
- package/dist/templates/demo-store/app/routes/account.tsx +0 -188
- package/dist/templates/demo-store/app/routes/api/countries.tsx +0 -22
- package/dist/templates/demo-store/app/routes/api/products.tsx +0 -116
- package/dist/templates/demo-store/app/routes/cart.tsx +0 -510
- package/dist/templates/demo-store/app/routes/collections/$collectionHandle.tsx +0 -301
- package/dist/templates/demo-store/app/routes/collections/all.tsx +0 -5
- package/dist/templates/demo-store/app/routes/collections/index.tsx +0 -188
- package/dist/templates/demo-store/app/routes/discounts.$code.tsx +0 -60
- package/dist/templates/demo-store/app/routes/featured-products.tsx +0 -58
- package/dist/templates/demo-store/app/routes/index.tsx +0 -241
- package/dist/templates/demo-store/app/routes/journal/$journalHandle.tsx +0 -141
- package/dist/templates/demo-store/app/routes/journal/index.tsx +0 -149
- package/dist/templates/demo-store/app/routes/og-image.tsx +0 -19
- package/dist/templates/demo-store/app/routes/pages/$pageHandle.tsx +0 -75
- package/dist/templates/demo-store/app/routes/policies/index.tsx +0 -97
- package/dist/templates/demo-store/app/routes/products/$productHandle.tsx +0 -551
- package/dist/templates/demo-store/app/routes/products/index.tsx +0 -148
- package/dist/templates/demo-store/app/routes/search.tsx +0 -198
- package/dist/templates/demo-store/app/styles/app.css +0 -4203
- package/dist/templates/demo-store/app/styles/custom-font.css +0 -13
- package/dist/templates/demo-store/dist/client/build/_assets/app-QCTC5PWY.css +0 -4203
- package/dist/templates/demo-store/dist/client/build/_assets/custom-font-COCMVHUB.css +0 -13
- package/dist/templates/demo-store/dist/client/build/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-3HDCZC7Z.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-3HDCZC7Z.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6DT2GXU6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6DT2GXU6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6IZ7NY57.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6IZ7NY57.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6KICVRFE.js +0 -32
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6KICVRFE.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6KPVFOMZ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6KPVFOMZ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6RKYTPO7.js +0 -27
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6RKYTPO7.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6SSSJOFL.js +0 -68
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-6SSSJOFL.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AOOMA6GB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AOOMA6GB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYENMH4R.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYENMH4R.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYHDHSL7.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-AYHDHSL7.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DHA7C3MW.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DHA7C3MW.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DIIFYFWW.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DIIFYFWW.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DS7W4L22.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-DS7W4L22.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-GHUOM4KB.js +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-GHUOM4KB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-ISW2I2ME.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-ISW2I2ME.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-J43VR2R2.js +0 -133
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-J43VR2R2.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-KSKV5IK6.js +0 -20
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-KSKV5IK6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MENU2OIC.js +0 -25
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MENU2OIC.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MMBB6JJY.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-MMBB6JJY.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-RESK5RQB.js +0 -54
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-RESK5RQB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-TVK2D2ZT.js +0 -83
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-TVK2D2ZT.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-TZEM5AYX.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-TZEM5AYX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-US5NIJUM.js +0 -105
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-US5NIJUM.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-V66AOKO6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-V66AOKO6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WFLLVPNQ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WFLLVPNQ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WYHUKY3H.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WYHUKY3H.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WYLDLOSN.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-WYLDLOSN.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-X2L7EU2T.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-X2L7EU2T.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-X4LCECW4.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-X4LCECW4.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-XDBJQDOE.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-XDBJQDOE.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YGLSE5Z5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YGLSE5Z5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YPGAXYYV.js +0 -24
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-YPGAXYYV.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-ZNLABNO4.js +0 -66
- package/dist/templates/demo-store/dist/client/build/_shared/chunk-ZNLABNO4.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/entry.client-UGG4BFNY.js +0 -2
- package/dist/templates/demo-store/dist/client/build/entry.client-UGG4BFNY.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/manifest-483612AE.js +0 -1
- package/dist/templates/demo-store/dist/client/build/root-FWYSHVLP.js +0 -32
- package/dist/templates/demo-store/dist/client/build/root-FWYSHVLP.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$-T6CCBQXB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$-T6CCBQXB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/$-RML44FPI.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/$-RML44FPI.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/[robots.txt]-Q6A4ELVO.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/[robots.txt]-Q6A4ELVO.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/[sitemap.xml]-XRXAWWFM.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/[sitemap.xml]-XRXAWWFM.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/address/$id-NA5FIOXG.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/address/$id-NA5FIOXG.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/edit-IFFD5E3I.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/edit-IFFD5E3I.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/logout-W2VRZWGS.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/logout-W2VRZWGS.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/orders.$id-JLCBC7CQ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__private/orders.$id-JLCBC7CQ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/activate.$id.$activationToken-SKVJFAYX.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/activate.$id.$activationToken-SKVJFAYX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/login-J6JGOFW4.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/login-J6JGOFW4.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/recover-ELRPFD3J.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/recover-ELRPFD3J.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/register-PBVQNHER.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/register-PBVQNHER.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/reset.$id.$resetToken-5AF75Z6H.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account/__public/reset.$id.$resetToken-5AF75Z6H.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account-XVIGQX2R.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/account-XVIGQX2R.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/api/countries-D74K7HOY.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/api/countries-D74K7HOY.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/api/products-WTFHLYFB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/api/products-WTFHLYFB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/cart-SGDEGK6Q.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/cart-SGDEGK6Q.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/$collectionHandle-JIY2JRDZ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/$collectionHandle-JIY2JRDZ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/all-I3ZQ3MBD.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/all-I3ZQ3MBD.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/index-JM35U6E2.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/collections/index-JM35U6E2.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/featured-products-UU24CXMU.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/featured-products-UU24CXMU.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/index-Z4YYZ6FV.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/index-Z4YYZ6FV.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/journal/$journalHandle-VTU5XZ3X.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/journal/$journalHandle-VTU5XZ3X.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/journal/index-GJ635OK2.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/journal/index-GJ635OK2.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/og-image-JHBOIC2Z.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/og-image-JHBOIC2Z.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/pages/$pageHandle-56OQSRT6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/pages/$pageHandle-56OQSRT6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/policies/$policyHandle-FT77Q33E.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/policies/$policyHandle-FT77Q33E.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/policies/index-7VIBEBDP.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/policies/index-7VIBEBDP.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/products/$productHandle-TD3SUUAT.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/products/$productHandle-TD3SUUAT.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/products/index-VQNYHSDW.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/products/index-VQNYHSDW.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/$lang/search-TCZIEYJL.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/$lang/search-TCZIEYJL.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/[robots.txt]-JOBE7OD7.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/[robots.txt]-JOBE7OD7.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/[sitemap.xml]-UQB7RN5M.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/[sitemap.xml]-UQB7RN5M.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/address/$id-JZNTMKYB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/address/$id-JZNTMKYB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/edit-VVTK3HGS.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/edit-VVTK3HGS.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/logout-MRH6DVPZ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/logout-MRH6DVPZ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/orders.$id-IUXEUMTN.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__private/orders.$id-IUXEUMTN.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/activate.$id.$activationToken-XRNXDJJR.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/activate.$id.$activationToken-XRNXDJJR.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/login-BC3LC2DV.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/login-BC3LC2DV.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/recover-YTA3AC27.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/recover-YTA3AC27.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/register-WKKKPNUZ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/register-WKKKPNUZ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/reset.$id.$resetToken-6JGBLMXT.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account/__public/reset.$id.$resetToken-6JGBLMXT.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/account-TPCHO77K.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/account-TPCHO77K.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/api/countries-FOQSZPCF.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/api/countries-FOQSZPCF.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/api/products-DX4VJAR6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/api/products-DX4VJAR6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/cart-JKTAKPRZ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/cart-JKTAKPRZ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/collections/$collectionHandle-WHEXWZAQ.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/collections/$collectionHandle-WHEXWZAQ.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/collections/all-EXLOY5Y6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/collections/all-EXLOY5Y6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/collections/index-OA2FOHWI.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/collections/index-OA2FOHWI.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/discounts.$code-ORRT2Y6X.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/discounts.$code-ORRT2Y6X.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/featured-products-ECR7IJXB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/featured-products-ECR7IJXB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/graphiql-5V34JTF6.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/graphiql-5V34JTF6.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/index-7ZRVAEPC.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/index-7ZRVAEPC.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/journal/$journalHandle-HH345EW5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/journal/$journalHandle-HH345EW5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/journal/index-QRHMDGSX.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/journal/index-QRHMDGSX.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/og-image-DYICG2WR.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/og-image-DYICG2WR.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/pages/$pageHandle-SOTJN3BG.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/pages/$pageHandle-SOTJN3BG.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/policies/$policyHandle-2E6C2YSR.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/policies/$policyHandle-2E6C2YSR.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/policies/index-3U7GEIT5.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/policies/index-3U7GEIT5.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/products/$productHandle-N365DTJW.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/products/$productHandle-N365DTJW.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/products/index-ZYSA55SB.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/products/index-ZYSA55SB.js.map +0 -7
- package/dist/templates/demo-store/dist/client/build/routes/search-4CEESFTV.js +0 -2
- package/dist/templates/demo-store/dist/client/build/routes/search-4CEESFTV.js.map +0 -7
- package/dist/templates/demo-store/dist/client/fonts/IBMPlexSerif-Text.woff2 +0 -0
- package/dist/templates/demo-store/dist/client/fonts/IBMPlexSerif-TextItalic.woff2 +0 -0
- package/dist/templates/demo-store/dist/worker/_assets/app-QCTC5PWY.css +0 -4203
- package/dist/templates/demo-store/dist/worker/_assets/custom-font-COCMVHUB.css +0 -13
- package/dist/templates/demo-store/dist/worker/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/demo-store/dist/worker/index.js +0 -1563
- package/dist/templates/demo-store/dist/worker/index.js.map +0 -7
- package/dist/templates/demo-store/package.json +0 -67
- package/dist/templates/demo-store/playwright.config.ts +0 -109
- package/dist/templates/demo-store/postcss.config.js +0 -10
- package/dist/templates/demo-store/public/favicon.svg +0 -28
- package/dist/templates/demo-store/public/fonts/IBMPlexSerif-Text.woff2 +0 -0
- package/dist/templates/demo-store/public/fonts/IBMPlexSerif-TextItalic.woff2 +0 -0
- package/dist/templates/demo-store/remix.env.d.ts +0 -40
- package/dist/templates/demo-store/remix.init/index.js +0 -25
- package/dist/templates/demo-store/remix.init/package.json +0 -7
- package/dist/templates/demo-store/server.ts +0 -73
- package/dist/templates/demo-store/styles/app.css +0 -182
- package/dist/templates/demo-store/tailwind.config.js +0 -70
- package/dist/templates/demo-store/tests/cart.test.ts +0 -70
- package/dist/templates/demo-store/tests/seo.test.ts +0 -36
- package/dist/templates/demo-store/tests/utils.ts +0 -100
- package/dist/templates/demo-store/tsconfig.json +0 -25
- package/dist/templates/hello-world/.cache/content-v2/sha512/13/f6/b7f804d45a961ca1e392429e75ad80f23ba46cbba0e960c6a70f8de81f3f3763af59651474176798d1a1a4bd2a5109b1d441f6d1c8ba070b678b38378adf +0 -1
- package/dist/templates/hello-world/.cache/content-v2/sha512/e5/8f/bcb6cb6a00ef5f377be15d4ce4a8fe978d42eafa3bab9c28a0fe5540568df35c0975de5060ad2a25f4a23bf58ee2e472068854ce7d6904d6e7fa4b784f33 +0 -1
- package/dist/templates/hello-world/.cache/content-v2/sha512/fa/dd/9bc10a1cb1f145eabd96bdba509178e20484197fefd8469ace9f53bf277e875751db3c4dddf229807c48cbe8db19494fe2a5aab7d2a4b7ae8bebbd67509c +0 -1
- package/dist/templates/hello-world/.cache/index-v5/09/f6/fe4b05c4157320b8b59b3f84116195be0437d87357d743d21acd638a4606 +0 -2
- package/dist/templates/hello-world/.cache/index-v5/b3/75/d3e7a4a5df68530007409daf1d2e66ab789c8b658d1819d7e5fd183f5f57 +0 -2
- package/dist/templates/hello-world/.cache/index-v5/d0/c4/d960260ece228d28f70e317741b3f3f3df05c53956d870235837ae2b73b4 +0 -2
- package/dist/templates/hello-world/.eslintignore +0 -4
- package/dist/templates/hello-world/.eslintrc.js +0 -6
- package/dist/templates/hello-world/.graphqlrc.yml +0 -1
- package/dist/templates/hello-world/README.md +0 -20
- package/dist/templates/hello-world/_env +0 -6
- package/dist/templates/hello-world/_gitignore +0 -8
- package/dist/templates/hello-world/app/components/Layout.tsx +0 -15
- package/dist/templates/hello-world/app/components/index.ts +0 -1
- package/dist/templates/hello-world/app/entry.client.tsx +0 -4
- package/dist/templates/hello-world/app/entry.server.tsx +0 -21
- package/dist/templates/hello-world/app/root.tsx +0 -212
- package/dist/templates/hello-world/app/routes/graphiql.tsx +0 -10
- package/dist/templates/hello-world/app/styles/app.css +0 -38
- package/dist/templates/hello-world/dist/client/build/_assets/app-2MJQXVFI.css +0 -38
- package/dist/templates/hello-world/dist/client/build/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-HGED52H5.js +0 -66
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-HGED52H5.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-KSKV5IK6.js +0 -20
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-KSKV5IK6.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-X4LCECW4.js +0 -2
- package/dist/templates/hello-world/dist/client/build/_shared/chunk-X4LCECW4.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/entry.client-JOU7NZGC.js +0 -27
- package/dist/templates/hello-world/dist/client/build/entry.client-JOU7NZGC.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/manifest-A04F2945.js +0 -1
- package/dist/templates/hello-world/dist/client/build/root-QUDT4I4G.js +0 -2
- package/dist/templates/hello-world/dist/client/build/root-QUDT4I4G.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/routes/graphiql-5V34JTF6.js +0 -2
- package/dist/templates/hello-world/dist/client/build/routes/graphiql-5V34JTF6.js.map +0 -7
- package/dist/templates/hello-world/dist/client/build/routes/index-4WJ36H3A.js +0 -2
- package/dist/templates/hello-world/dist/client/build/routes/index-4WJ36H3A.js.map +0 -7
- package/dist/templates/hello-world/dist/client/favicon.svg +0 -28
- package/dist/templates/hello-world/dist/worker/_assets/app-2MJQXVFI.css +0 -38
- package/dist/templates/hello-world/dist/worker/_assets/favicon-5FIZBM2K.svg +0 -28
- package/dist/templates/hello-world/dist/worker/index.js +0 -267
- package/dist/templates/hello-world/dist/worker/index.js.map +0 -7
- package/dist/templates/hello-world/package.json +0 -41
- package/dist/templates/hello-world/public/favicon.svg +0 -28
- package/dist/templates/hello-world/remix.env.d.ts +0 -35
- package/dist/templates/hello-world/remix.init/index.js +0 -25
- package/dist/templates/hello-world/remix.init/package.json +0 -7
- package/dist/templates/hello-world/server.ts +0 -129
- package/dist/templates/hello-world/tsconfig.json +0 -25
- package/dist/tmp-create-app.js +0 -33
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{a as fe,b as xr,d as no,e as br,f as ao,g as so,h as io,j as wr}from"/build/_shared/chunk-WYHUKY3H.js";import{a as Ye,b as Qe,c as lo,d as uo,e as vt}from"/build/_shared/chunk-6IZ7NY57.js";import{a as Dn}from"/build/_shared/chunk-6RKYTPO7.js";import{a as xe,b as Ft,e as yr,g as Mt,i as vr,j as to,k as Ne,o as yt,p as ke,s as ro,t as oe,u as oo}from"/build/_shared/chunk-ZNLABNO4.js";import{a as P,b as C}from"/build/_shared/chunk-KSKV5IK6.js";import{b as p}from"/build/_shared/chunk-X4LCECW4.js";var L=p(P(),1);function R(e,t,...r){if(e in t){let n=t[e];return typeof n=="function"?n(...r):n}let o=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(n=>`"${n}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,R),o}var ie=p(P(),1);var le=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(le||{}),be=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(be||{});function O({ourProps:e,theirProps:t,slot:r,defaultTag:o,features:n,visible:a=!0,name:s}){let i=po(t,e);if(a)return At(i,r,o,s);let l=n??0;if(l&2){let{static:u=!1,...c}=i;if(u)return At(c,r,o,s)}if(l&1){let{unmount:u=!0,...c}=i;return R(u?0:1,{[0](){return null},[1](){return At({...c,hidden:!0,style:{display:"none"}},r,o,s)}})}return At(i,r,o,s)}function At(e,t={},r,o){let{as:n=r,children:a,refName:s="ref",...i}=Cr(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof a=="function"?a(t):a;i.className&&typeof i.className=="function"&&(i.className=i.className(t));let c={};if(t){let d=!1,y=[];for(let[b,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&y.push(b);d&&(c["data-headlessui-state"]=y.join(" "))}if(n===ie.Fragment&&Object.keys(co(i)).length>0){if(!(0,ie.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map(d=>` - ${d}`).join(`
|
|
2
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
3
|
-
`)].join(`
|
|
4
|
-
`));return(0,ie.cloneElement)(u,Object.assign({},po(u.props,co(Cr(i,["ref"]))),c,l,Fn(u.ref,l.ref)))}return(0,ie.createElement)(n,Object.assign({},Cr(i,["ref"]),n!==ie.Fragment&&l,n!==ie.Fragment&&c),u)}function Fn(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}}function po(...e){var t;if(e.length===0)return{};if(e.length===1)return e[0];let r={},o={};for(let n of e)for(let a in n)a.startsWith("on")&&typeof n[a]=="function"?((t=o[a])!=null||(o[a]=[]),o[a].push(n[a])):r[a]=n[a];if(r.disabled||r["aria-disabled"])return Object.assign(r,Object.fromEntries(Object.keys(o).map(n=>[n,void 0])));for(let n in o)Object.assign(r,{[n](a,...s){let i=o[n];for(let l of i){if((a instanceof Event||a?.nativeEvent instanceof Event)&&a.defaultPrevented)return;l(a,...s)}}});return r}function M(e){var t;return Object.assign((0,ie.forwardRef)(e),{displayName:(t=e.displayName)!=null?t:e.name})}function co(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Cr(e,t=[]){let r=Object.assign({},e);for(let o of t)o in r&&delete r[o];return r}var Ht=p(P(),1);var mo=p(P(),1);var fo=p(P(),1);var Ot=p(P(),1);var He=typeof window>"u"||typeof document>"u";var A=He?Ot.useEffect:Ot.useLayoutEffect;function Q(e){let t=(0,fo.useRef)(e);return A(()=>{t.current=e},[e]),t}var E=function(e){let t=Q(e);return mo.default.useCallback((...r)=>t.current(...r),[t])};var go=Symbol();function _t(e,t=!0){return Object.assign(e,{[go]:t})}function _(...e){let t=(0,Ht.useRef)(e);(0,Ht.useEffect)(()=>{t.current=e},[e]);let r=E(o=>{for(let n of t.current)n!=null&&(typeof n=="function"?n(o):n.current=o)});return e.every(o=>o==null||o?.[go])?void 0:r}var Nr=p(P(),1);var xt=p(P(),1),Pr={serverHandoffComplete:!1};function me(){let[e,t]=(0,xt.useState)(Pr.serverHandoffComplete);return(0,xt.useEffect)(()=>{e!==!0&&t(!0)},[e]),(0,xt.useEffect)(()=>{Pr.serverHandoffComplete===!1&&(Pr.serverHandoffComplete=!0)},[]),e}var ho,Mn=0;function yo(){return++Mn}var J=(ho=Nr.default.useId)!=null?ho:function(){let e=me(),[t,r]=Nr.default.useState(e?yo:null);return A(()=>{t===null&&r(yo())},[t]),t!=null?""+t:void 0};var H=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(H||{});function Je(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let o=t?.getAttribute("disabled")==="";return o&&An(r)?!1:o}function An(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}var Xe=p(P(),1),kr=(0,Xe.createContext)(null);kr.displayName="OpenClosedContext";var G=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(G||{});function Ie(){return(0,Xe.useContext)(kr)}function et({value:e,children:t}){return Xe.default.createElement(kr.Provider,{value:e},t)}var xo=p(P(),1);function vo(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function $t(e,t){let[r,o]=(0,xo.useState)(()=>vo(e));return A(()=>{o(vo(e))},[e.type,e.as]),A(()=>{r||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&o("button")},[r,t]),r}function ge(e){return He?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var On=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(On||{}),Hn=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Hn||{}),_n={[0]:e=>({...e,disclosureState:R(e.disclosureState,{[0]:1,[1]:0})}),[1]:e=>e.disclosureState===1?e:{...e,disclosureState:1},[4](e){return e.linkedPanel===!0?e:{...e,linkedPanel:!0}},[5](e){return e.linkedPanel===!1?e:{...e,linkedPanel:!1}},[2](e,t){return e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId}},[3](e,t){return e.panelId===t.panelId?e:{...e,panelId:t.panelId}}},Ir=(0,L.createContext)(null);Ir.displayName="DisclosureContext";function Er(e){let t=(0,L.useContext)(Ir);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Er),r}return t}var Sr=(0,L.createContext)(null);Sr.displayName="DisclosureAPIContext";function bo(e){let t=(0,L.useContext)(Sr);if(t===null){let r=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,bo),r}return t}var Tr=(0,L.createContext)(null);Tr.displayName="DisclosurePanelContext";function $n(){return(0,L.useContext)(Tr)}function Bn(e,t){return R(t.type,_n,e,t)}var Un=L.Fragment,Vn=M(function(e,t){let{defaultOpen:r=!1,...o}=e,n=`headlessui-disclosure-button-${J()}`,a=`headlessui-disclosure-panel-${J()}`,s=(0,L.useRef)(null),i=_(t,_t(m=>{s.current=m},e.as===void 0||e.as===L.Fragment)),l=(0,L.useRef)(null),u=(0,L.useRef)(null),c=(0,L.useReducer)(Bn,{disclosureState:r?0:1,linkedPanel:!1,buttonRef:u,panelRef:l,buttonId:n,panelId:a}),[{disclosureState:d},y]=c;(0,L.useEffect)(()=>y({type:2,buttonId:n}),[n,y]),(0,L.useEffect)(()=>y({type:3,panelId:a}),[a,y]);let b=E(m=>{y({type:1});let T=ge(s);if(!T)return;let se=(()=>m?m instanceof HTMLElement?m:m.current instanceof HTMLElement?m.current:T.getElementById(n):T.getElementById(n))();se?.focus()}),h=(0,L.useMemo)(()=>({close:b}),[b]),v=(0,L.useMemo)(()=>({open:d===0,close:b}),[d,b]),w={ref:i};return L.default.createElement(Ir.Provider,{value:c},L.default.createElement(Sr.Provider,{value:h},L.default.createElement(et,{value:R(d,{[0]:G.Open,[1]:G.Closed})},O({ourProps:w,theirProps:o,slot:v,defaultTag:Un,name:"Disclosure"}))))}),jn="button",Wn=M(function(e,t){let[r,o]=Er("Disclosure.Button"),n=$n(),a=n===null?!1:n===r.panelId,s=(0,L.useRef)(null),i=_(s,t,a?null:r.buttonRef),l=E(v=>{var w;if(a){if(r.disclosureState===1)return;switch(v.key){case H.Space:case H.Enter:v.preventDefault(),v.stopPropagation(),o({type:0}),(w=r.buttonRef.current)==null||w.focus();break}}else switch(v.key){case H.Space:case H.Enter:v.preventDefault(),v.stopPropagation(),o({type:0});break}}),u=E(v=>{switch(v.key){case H.Space:v.preventDefault();break}}),c=E(v=>{var w;Je(v.currentTarget)||e.disabled||(a?(o({type:0}),(w=r.buttonRef.current)==null||w.focus()):o({type:0}))}),d=(0,L.useMemo)(()=>({open:r.disclosureState===0}),[r]),y=$t(e,s),b=e,h=a?{ref:i,type:y,onKeyDown:l,onClick:c}:{ref:i,id:r.buttonId,type:y,"aria-expanded":e.disabled?void 0:r.disclosureState===0,"aria-controls":r.linkedPanel?r.panelId:void 0,onKeyDown:l,onKeyUp:u,onClick:c};return O({ourProps:h,theirProps:b,slot:d,defaultTag:jn,name:"Disclosure.Button"})}),zn="div",Gn=le.RenderStrategy|le.Static,qn=M(function(e,t){let[r,o]=Er("Disclosure.Panel"),{close:n}=bo("Disclosure.Panel"),a=_(t,r.panelRef,d=>{o({type:d?4:5})}),s=Ie(),i=(()=>s!==null?s===G.Open:r.disclosureState===0)(),l=(0,L.useMemo)(()=>({open:r.disclosureState===0,close:n}),[r,n]),u=e,c={ref:a,id:r.panelId};return L.default.createElement(Tr.Provider,{value:r.panelId},O({ourProps:c,theirProps:u,slot:l,defaultTag:zn,features:Gn,visible:i,name:"Disclosure.Panel"}))}),he=Object.assign(Vn,{Button:Wn,Panel:qn});var st=p(P());var Bt=p(P(),1);function _e(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function X(){let e=[],t=[],r={enqueue(o){t.push(o)},addEventListener(o,n,a,s){return o.addEventListener(n,a,s),r.add(()=>o.removeEventListener(n,a,s))},requestAnimationFrame(...o){let n=requestAnimationFrame(...o);return r.add(()=>cancelAnimationFrame(n))},nextFrame(...o){return r.requestAnimationFrame(()=>r.requestAnimationFrame(...o))},setTimeout(...o){let n=setTimeout(...o);return r.add(()=>clearTimeout(n))},microTask(...o){let n={current:!0};return _e(()=>{n.current&&o[0]()}),r.add(()=>{n.current=!1})},add(o){return e.push(o),()=>{let n=e.indexOf(o);if(n>=0){let[a]=e.splice(n,1);a()}}},dispose(){for(let o of e.splice(0))o()},async workQueue(){for(let o of t.splice(0))await o()}};return r}function $e(){let[e]=(0,Bt.useState)(X);return(0,Bt.useEffect)(()=>()=>e.dispose(),[e]),e}var Pt=p(P(),1);var Rr=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Le=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Le||{}),Lr=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Lr||{}),Kn=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Kn||{});function wo(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Rr))}var bt=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(bt||{});function wt(e,t=0){var r;return e===((r=ge(e))==null?void 0:r.body)?!1:R(t,{[0](){return e.matches(Rr)},[1](){let o=e;for(;o!==null;){if(o.matches(Rr))return!0;o=o.parentElement}return!1}})}function Dr(e){let t=ge(e);X().nextFrame(()=>{t&&!wt(t.activeElement,0)&&De(e)})}function De(e){e?.focus({preventScroll:!0})}var Zn=["textarea","input"].join(",");function Yn(e){var t,r;return(r=(t=e?.matches)==null?void 0:t.call(e,Zn))!=null?r:!1}function Fr(e,t=r=>r){return e.slice().sort((r,o)=>{let n=t(r),a=t(o);if(n===null||a===null)return 0;let s=n.compareDocumentPosition(a);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Co(e,t){return Ct(wo(),t,!0,e)}function Ct(e,t,r=!0,o=null){let n=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?r?Fr(e):e:wo(e);o=o??n.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),i=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(o))-1;if(t&4)return Math.max(0,a.indexOf(o))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=t&32?{preventScroll:!0}:{},u=0,c=a.length,d;do{if(u>=c||u+c<=0)return 0;let y=i+u;if(t&16)y=(y+c)%c;else{if(y<0)return 3;if(y>=c)return 1}d=a[y],d?.focus(l),u+=s}while(d!==n.activeElement);return t&6&&Yn(d)&&d.select(),d.hasAttribute("tabindex")||d.setAttribute("tabindex","0"),2}var Po=p(P(),1);function Ut(e,t,r){let o=Q(t);(0,Po.useEffect)(()=>{function n(a){o.current(a)}return document.addEventListener(e,n,r),()=>document.removeEventListener(e,n,r)},[e,r])}function Vt(e,t,r=!0){let o=(0,Pt.useRef)(!1);(0,Pt.useEffect)(()=>{requestAnimationFrame(()=>{o.current=r})},[r]);function n(s,i){if(!o.current||s.defaultPrevented)return;let l=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e),u=i(s);if(u!==null&&!!u.ownerDocument.documentElement.contains(u)){for(let c of l){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(u))return}return!wt(u,bt.Loose)&&u.tabIndex!==-1&&s.preventDefault(),t(s,u)}}let a=(0,Pt.useRef)(null);Ut("mousedown",s=>{o.current&&(a.current=s.target)},!0),Ut("click",s=>{!a.current||(n(s,()=>a.current),a.current=null)},!0),Ut("blur",s=>n(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var Nt=p(P(),1);function No({container:e,accept:t,walk:r,enabled:o=!0}){let n=(0,Nt.useRef)(t),a=(0,Nt.useRef)(r);(0,Nt.useEffect)(()=>{n.current=t,a.current=r},[t,r]),A(()=>{if(!e||!o)return;let s=ge(e);if(!s)return;let i=n.current,l=a.current,u=Object.assign(d=>i(d),{acceptNode:i}),c=s.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)l(c.currentNode)},[e,o,n,a])}function Qn(e){throw new Error("Unexpected object: "+e)}var ue=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ue||{});function ko(e,t){let r=t.resolveItems();if(r.length<=0)return null;let o=t.resolveActiveIndex(),n=o??-1,a=(()=>{switch(e.focus){case 0:return r.findIndex(s=>!t.resolveDisabled(s));case 1:{let s=r.slice().reverse().findIndex((i,l,u)=>n!==-1&&u.length-l-1>=n?!1:!t.resolveDisabled(i));return s===-1?s:r.length-1-s}case 2:return r.findIndex((s,i)=>i<=n?!1:!t.resolveDisabled(s));case 3:{let s=r.slice().reverse().findIndex(i=>!t.resolveDisabled(i));return s===-1?s:r.length-1-s}case 4:return r.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:Qn(e)}})();return a===-1?o:a}var Jn="div",tt=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(tt||{}),kt=M(function(e,t){let{features:r=1,...o}=e,n={ref:t,"aria-hidden":(r&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return O({ourProps:n,theirProps:o,slot:{},defaultTag:Jn,name:"Hidden"})});var jt=p(P(),1);function Mr(e,t){let r=(0,jt.useRef)([]),o=E(e);(0,jt.useEffect)(()=>{let n=[...r.current];for(let[a,s]of t.entries())if(r.current[a]!==s){let i=o(t,n);return r.current=t,i}},[o,...t])}var I=p(P(),1);var ce=p(P(),1);var So=p(P(),1);var Io=p(P(),1);function Eo(e,t,r){let o=Q(t);(0,Io.useEffect)(()=>{function n(a){o.current(a)}return window.addEventListener(e,n,r),()=>window.removeEventListener(e,n,r)},[e,r])}var Wt=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Wt||{});function To(){let e=(0,So.useRef)(0);return Eo("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}var Ro=p(P(),1);function Be(){let e=(0,Ro.useRef)(!1);return A(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Lo=p(P(),1);function Ee(...e){return(0,Lo.useMemo)(()=>ge(...e),[...e])}var Do=p(P(),1);function It(e,t,r,o){let n=Q(r);(0,Do.useEffect)(()=>{e=e??window;function a(s){n.current(s)}return e.addEventListener(t,a,o),()=>e.removeEventListener(t,a,o)},[e,t,o])}var Xn="div",Fo=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Fo||{}),rt=Object.assign(M(function(e,t){let r=(0,ce.useRef)(null),o=_(r,t),{initialFocus:n,containers:a,features:s=30,...i}=e;me()||(s=1);let l=Ee(r);ea({ownerDocument:l},Boolean(s&16));let u=ta({ownerDocument:l,container:r,initialFocus:n},Boolean(s&2));ra({ownerDocument:l,container:r,containers:a,previousActiveElement:u},Boolean(s&8));let c=To(),d=E(()=>{let b=r.current;!b||R(c.current,{[Wt.Forwards]:()=>Ct(b,Le.First),[Wt.Backwards]:()=>Ct(b,Le.Last)})}),y={ref:o};return ce.default.createElement(ce.default.Fragment,null,Boolean(s&4)&&ce.default.createElement(kt,{as:"button",type:"button",onFocus:d,features:tt.Focusable}),O({ourProps:y,theirProps:i,defaultTag:Xn,name:"FocusTrap"}),Boolean(s&4)&&ce.default.createElement(kt,{as:"button",type:"button",onFocus:d,features:tt.Focusable}))}),{features:Fo});function ea({ownerDocument:e},t){let r=(0,ce.useRef)(null);It(e?.defaultView,"focusout",n=>{!t||r.current||(r.current=n.target)},!0),Mr(()=>{t||(e?.activeElement===e?.body&&De(r.current),r.current=null)},[t]);let o=(0,ce.useRef)(!1);(0,ce.useEffect)(()=>(o.current=!1,()=>{o.current=!0,_e(()=>{!o.current||(De(r.current),r.current=null)})}),[])}function ta({ownerDocument:e,container:t,initialFocus:r},o){let n=(0,ce.useRef)(null),a=Be();return Mr(()=>{if(!o)return;let s=t.current;!s||_e(()=>{if(!a.current)return;let i=e?.activeElement;if(r!=null&&r.current){if(r?.current===i){n.current=i;return}}else if(s.contains(i)){n.current=i;return}r!=null&&r.current?De(r.current):Ct(s,Le.First)===Lr.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),n.current=e?.activeElement})},[o]),n}function ra({ownerDocument:e,container:t,containers:r,previousActiveElement:o},n){let a=Be();It(e?.defaultView,"focus",s=>{if(!n||!a.current)return;let i=new Set(r?.current);i.add(t);let l=o.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?oa(i,u)?(o.current=u,De(u)):(s.preventDefault(),s.stopPropagation(),De(l)):De(o.current)},!0)}function oa(e,t){var r;for(let o of e)if((r=o.current)!=null&&r.contains(t))return!0;return!1}var ot=new Set,Fe=new Map;function Mo(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function Ao(e){let t=Fe.get(e);!t||(t["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function Oo(e,t=!0){A(()=>{if(!t||!e.current)return;let r=e.current,o=ge(r);if(o){ot.add(r);for(let n of Fe.keys())n.contains(r)&&(Ao(n),Fe.delete(n));return o.querySelectorAll("body > *").forEach(n=>{if(n instanceof HTMLElement){for(let a of ot)if(n.contains(a))return;ot.size===1&&(Fe.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),Mo(n))}}),()=>{if(ot.delete(r),ot.size>0)o.querySelectorAll("body > *").forEach(n=>{if(n instanceof HTMLElement&&!Fe.has(n)){for(let a of ot)if(n.contains(a))return;Fe.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),Mo(n)}});else for(let n of Fe.keys())Ao(n),Fe.delete(n)}}},[t])}var W=p(P(),1),$o=p(Dn(),1);var nt=p(P(),1),Ho=(0,nt.createContext)(!1);function _o(){return(0,nt.useContext)(Ho)}function zt(e){return nt.default.createElement(Ho.Provider,{value:e.force},e.children)}function na(e){let t=_o(),r=(0,W.useContext)(Bo),o=Ee(e),[n,a]=(0,W.useState)(()=>{if(!t&&r!==null||He)return null;let s=o?.getElementById("headlessui-portal-root");if(s)return s;if(o===null)return null;let i=o.createElement("div");return i.setAttribute("id","headlessui-portal-root"),o.body.appendChild(i)});return(0,W.useEffect)(()=>{n!==null&&(o!=null&&o.body.contains(n)||o==null||o.body.appendChild(n))},[n,o]),(0,W.useEffect)(()=>{t||r!==null&&a(r.current)},[r,a,t]),n}var aa=W.Fragment,sa=M(function(e,t){let r=e,o=(0,W.useRef)(null),n=_(_t(c=>{o.current=c}),t),a=Ee(o),s=na(o),[i]=(0,W.useState)(()=>{var c;return He?null:(c=a?.createElement("div"))!=null?c:null}),l=me(),u=(0,W.useRef)(!1);return A(()=>{if(u.current=!1,!(!s||!i))return s.contains(i)||(i.setAttribute("data-headlessui-portal",""),s.appendChild(i)),()=>{u.current=!0,_e(()=>{var c;!u.current||!s||!i||(s.removeChild(i),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))})}},[s,i]),l?!s||!i?null:(0,$o.createPortal)(O({ourProps:{ref:n},theirProps:r,defaultTag:aa,name:"Portal"}),i):null}),ia=W.Fragment,Bo=(0,W.createContext)(null),la=M(function(e,t){let{target:r,...o}=e,n={ref:_(t)};return W.default.createElement(Bo.Provider,{value:r},O({ourProps:n,theirProps:o,defaultTag:ia,name:"Popover.Group"}))}),Gt=Object.assign(sa,{Group:la});var ye=p(P(),1);var Uo=(0,ye.createContext)(null);function Vo(){let e=(0,ye.useContext)(Uo);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Vo),t}return e}function jo(){let[e,t]=(0,ye.useState)([]);return[e.length>0?e.join(" "):void 0,(0,ye.useMemo)(()=>function(r){let o=E(a=>(t(s=>[...s,a]),()=>t(s=>{let i=s.slice(),l=i.indexOf(a);return l!==-1&&i.splice(l,1),i}))),n=(0,ye.useMemo)(()=>({register:o,slot:r.slot,name:r.name,props:r.props}),[o,r.slot,r.name,r.props]);return ye.default.createElement(Uo.Provider,{value:n},r.children)},[t])]}var ua="p",Wo=M(function(e,t){let r=Vo(),o=`headlessui-description-${J()}`,n=_(t);A(()=>r.register(o),[o,r.register]);let a=e,s={ref:n,...r.props,id:o};return O({ourProps:s,theirProps:a,slot:r.slot||{},defaultTag:ua,name:r.name||"Description"})});var at=p(P(),1);var Ar=(0,at.createContext)(()=>{});Ar.displayName="StackContext";var qt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(qt||{});function ca(){return(0,at.useContext)(Ar)}function zo({children:e,onUpdate:t,type:r,element:o,enabled:n}){let a=ca(),s=E((...i)=>{t?.(...i),a(...i)});return A(()=>{let i=n===void 0||n===!0;return i&&s(0,r,o),()=>{i&&s(1,r,o)}},[s,r,o,n]),at.default.createElement(Ar.Provider,{value:s},e)}function Go(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var da=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(da||{}),pa=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(pa||{}),fa={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Kt=(0,I.createContext)(null);Kt.displayName="DialogContext";function Et(e){let t=(0,I.useContext)(Kt);if(t===null){let r=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Et),r}return t}function ma(e,t){(0,I.useEffect)(()=>{var r;if(!t||!e)return;let o=X();function n(i,l,u){let c=i.style.getPropertyValue(l);return Object.assign(i.style,{[l]:u}),o.add(()=>{Object.assign(i.style,{[l]:c})})}let a=e.documentElement,s=((r=e.defaultView)!=null?r:window).innerWidth-a.clientWidth;if(n(a,"overflow","hidden"),s>0){let i=a.clientWidth-a.offsetWidth,l=s-i;n(a,"paddingRight",`${l}px`)}if(Go()){let i=window.pageYOffset;n(a,"position","fixed"),n(a,"marginTop",`-${i}px`),n(a,"width","100%"),o.add(()=>window.scrollTo(0,i))}return o.dispose},[e,t])}function ga(e,t){return R(t.type,fa,e,t)}var ha="div",ya=le.RenderStrategy|le.Static,va=M(function(e,t){let{open:r,onClose:o,initialFocus:n,__demoMode:a=!1,...s}=e,[i,l]=(0,I.useState)(0),u=Ie();r===void 0&&u!==null&&(r=R(u,{[G.Open]:!0,[G.Closed]:!1}));let c=(0,I.useRef)(new Set),d=(0,I.useRef)(null),y=_(d,t),b=(0,I.useRef)(null),h=Ee(d),v=e.hasOwnProperty("open")||u!==null,w=e.hasOwnProperty("onClose");if(!v&&!w)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!v)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!w)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof r!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${r}`);if(typeof o!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let m=r?0:1,[T,se]=(0,I.useReducer)(ga,{titleId:null,descriptionId:null,panelRef:(0,I.createRef)()}),B=E(()=>o(!1)),Ge=E(q=>se({type:0,id:q})),qe=me()?a?!1:m===0:!1,Pe=i>1,Ke=(0,I.useContext)(Kt)!==null,ft=Pe?"parent":"leaf";Oo(d,Pe?qe:!1),Vt(()=>{var q,pe;return[...Array.from((q=h?.querySelectorAll("body > *, [data-headlessui-portal]"))!=null?q:[]).filter(re=>!(!(re instanceof HTMLElement)||re.contains(b.current)||T.panelRef.current&&re.contains(T.panelRef.current))),(pe=T.panelRef.current)!=null?pe:d.current]},B,qe&&!Pe),It(h?.defaultView,"keydown",q=>{q.defaultPrevented||q.key===H.Escape&&m===0&&(Pe||(q.preventDefault(),q.stopPropagation(),B()))}),ma(h,m===0&&!Ke),(0,I.useEffect)(()=>{if(m!==0||!d.current)return;let q=new IntersectionObserver(pe=>{for(let re of pe)re.boundingClientRect.x===0&&re.boundingClientRect.y===0&&re.boundingClientRect.width===0&&re.boundingClientRect.height===0&&B()});return q.observe(d.current),()=>q.disconnect()},[m,d,B]);let[gr,Ze]=jo(),mt=`headlessui-dialog-${J()}`,gt=(0,I.useMemo)(()=>[{dialogState:m,close:B,setTitleId:Ge},T],[m,T,B,Ge]),Dt=(0,I.useMemo)(()=>({open:m===0}),[m]),hr={ref:y,id:mt,role:"dialog","aria-modal":m===0?!0:void 0,"aria-labelledby":T.titleId,"aria-describedby":gr};return I.default.createElement(zo,{type:"Dialog",enabled:m===0,element:d,onUpdate:E((q,pe,re)=>{pe==="Dialog"&&R(q,{[qt.Add](){c.current.add(re),l(ht=>ht+1)},[qt.Remove](){c.current.add(re),l(ht=>ht-1)}})})},I.default.createElement(zt,{force:!0},I.default.createElement(Gt,null,I.default.createElement(Kt.Provider,{value:gt},I.default.createElement(Gt.Group,{target:d},I.default.createElement(zt,{force:!1},I.default.createElement(Ze,{slot:Dt,name:"Dialog.Description"},I.default.createElement(rt,{initialFocus:n,containers:c,features:qe?R(ft,{parent:rt.features.RestoreFocus,leaf:rt.features.All&~rt.features.FocusLock}):rt.features.None},O({ourProps:hr,theirProps:s,slot:Dt,defaultTag:ha,features:ya,visible:m===0,name:"Dialog"})))))))),I.default.createElement(kt,{features:tt.Hidden,ref:b}))}),xa="div",ba=M(function(e,t){let[{dialogState:r,close:o}]=Et("Dialog.Overlay"),n=_(t),a=`headlessui-dialog-overlay-${J()}`,s=E(l=>{if(l.target===l.currentTarget){if(Je(l.currentTarget))return l.preventDefault();l.preventDefault(),l.stopPropagation(),o()}}),i=(0,I.useMemo)(()=>({open:r===0}),[r]);return O({ourProps:{ref:n,id:a,"aria-hidden":!0,onClick:s},theirProps:e,slot:i,defaultTag:xa,name:"Dialog.Overlay"})}),wa="div",Ca=M(function(e,t){let[{dialogState:r},o]=Et("Dialog.Backdrop"),n=_(t),a=`headlessui-dialog-backdrop-${J()}`;(0,I.useEffect)(()=>{if(o.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[o.panelRef]);let s=(0,I.useMemo)(()=>({open:r===0}),[r]);return I.default.createElement(zt,{force:!0},I.default.createElement(Gt,null,O({ourProps:{ref:n,id:a,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:wa,name:"Dialog.Backdrop"})))}),Pa="div",Na=M(function(e,t){let[{dialogState:r},o]=Et("Dialog.Panel"),n=_(t,o.panelRef),a=`headlessui-dialog-panel-${J()}`,s=(0,I.useMemo)(()=>({open:r===0}),[r]),i=E(l=>{l.stopPropagation()});return O({ourProps:{ref:n,id:a,onClick:i},theirProps:e,slot:s,defaultTag:Pa,name:"Dialog.Panel"})}),ka="h2",Ia=M(function(e,t){let[{dialogState:r,setTitleId:o}]=Et("Dialog.Title"),n=`headlessui-dialog-title-${J()}`,a=_(t);(0,I.useEffect)(()=>(o(n),()=>o(null)),[n,o]);let s=(0,I.useMemo)(()=>({open:r===0}),[r]);return O({ourProps:{ref:a,id:n},theirProps:e,slot:s,defaultTag:ka,name:"Dialog.Title"})}),St=Object.assign(va,{Backdrop:Ca,Panel:Na,Overlay:ba,Title:Ia,Description:Wo});var $=p(P(),1);var Ea=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ea||{}),Sa=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Sa||{}),Ta=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e))(Ta||{});function Or(e,t=r=>r){let r=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,o=Fr(t(e.items.slice()),a=>a.dataRef.current.domRef.current),n=r?o.indexOf(r):null;return n===-1&&(n=null),{items:o,activeItemIndex:n}}var Ra={[1](e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},[0](e){return e.menuState===0?e:{...e,menuState:0}},[2]:(e,t)=>{var r;let o=Or(e),n=ko(t,{resolveItems:()=>o.items,resolveActiveIndex:()=>o.activeItemIndex,resolveId:a=>a.id,resolveDisabled:a=>a.dataRef.current.disabled});return{...e,...o,searchQuery:"",activeItemIndex:n,activationTrigger:(r=t.trigger)!=null?r:1}},[3]:(e,t)=>{let r=e.searchQuery!==""?0:1,o=e.searchQuery+t.value.toLowerCase(),n=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(s=>{var i;return((i=s.dataRef.current.textValue)==null?void 0:i.startsWith(o))&&!s.dataRef.current.disabled}),a=n?e.items.indexOf(n):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:o}:{...e,searchQuery:o,activeItemIndex:a,activationTrigger:1}},[4](e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},[5]:(e,t)=>{let r=Or(e,o=>[...o,{id:t.id,dataRef:t.dataRef}]);return{...e,...r}},[6]:(e,t)=>{let r=Or(e,o=>{let n=o.findIndex(a=>a.id===t.id);return n!==-1&&o.splice(n,1),o});return{...e,...r,activationTrigger:1}}},Hr=(0,$.createContext)(null);Hr.displayName="MenuContext";function Zt(e){let t=(0,$.useContext)(Hr);if(t===null){let r=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Zt),r}return t}function La(e,t){return R(t.type,Ra,e,t)}var Da=$.Fragment,Fa=M(function(e,t){let r=(0,$.useReducer)(La,{menuState:1,buttonRef:(0,$.createRef)(),itemsRef:(0,$.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsRef:n,buttonRef:a},s]=r,i=_(t);Vt([a,n],(d,y)=>{var b;s({type:1}),wt(y,bt.Loose)||(d.preventDefault(),(b=a.current)==null||b.focus())},o===0);let l=(0,$.useMemo)(()=>({open:o===0}),[o]),u=e,c={ref:i};return $.default.createElement(Hr.Provider,{value:r},$.default.createElement(et,{value:R(o,{[0]:G.Open,[1]:G.Closed})},O({ourProps:c,theirProps:u,slot:l,defaultTag:Da,name:"Menu"})))}),Ma="button",Aa=M(function(e,t){var r;let[o,n]=Zt("Menu.Button"),a=_(o.buttonRef,t),s=`headlessui-menu-button-${J()}`,i=$e(),l=E(h=>{switch(h.key){case H.Space:case H.Enter:case H.ArrowDown:h.preventDefault(),h.stopPropagation(),n({type:0}),i.nextFrame(()=>n({type:2,focus:ue.First}));break;case H.ArrowUp:h.preventDefault(),h.stopPropagation(),n({type:0}),i.nextFrame(()=>n({type:2,focus:ue.Last}));break}}),u=E(h=>{switch(h.key){case H.Space:h.preventDefault();break}}),c=E(h=>{if(Je(h.currentTarget))return h.preventDefault();e.disabled||(o.menuState===0?(n({type:1}),i.nextFrame(()=>{var v;return(v=o.buttonRef.current)==null?void 0:v.focus({preventScroll:!0})})):(h.preventDefault(),n({type:0})))}),d=(0,$.useMemo)(()=>({open:o.menuState===0}),[o]),y=e,b={ref:a,id:s,type:$t(e,o.buttonRef),"aria-haspopup":!0,"aria-controls":(r=o.itemsRef.current)==null?void 0:r.id,"aria-expanded":e.disabled?void 0:o.menuState===0,onKeyDown:l,onKeyUp:u,onClick:c};return O({ourProps:b,theirProps:y,slot:d,defaultTag:Ma,name:"Menu.Button"})}),Oa="div",Ha=le.RenderStrategy|le.Static,_a=M(function(e,t){var r,o;let[n,a]=Zt("Menu.Items"),s=_(n.itemsRef,t),i=Ee(n.itemsRef),l=`headlessui-menu-items-${J()}`,u=$e(),c=Ie(),d=(()=>c!==null?c===G.Open:n.menuState===0)();(0,$.useEffect)(()=>{let m=n.itemsRef.current;!m||n.menuState===0&&m!==i?.activeElement&&m.focus({preventScroll:!0})},[n.menuState,n.itemsRef,i]),No({container:n.itemsRef.current,enabled:n.menuState===0,accept(m){return m.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:m.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(m){m.setAttribute("role","none")}});let y=E(m=>{var T,se;switch(u.dispose(),m.key){case H.Space:if(n.searchQuery!=="")return m.preventDefault(),m.stopPropagation(),a({type:3,value:m.key});case H.Enter:if(m.preventDefault(),m.stopPropagation(),a({type:1}),n.activeItemIndex!==null){let{dataRef:B}=n.items[n.activeItemIndex];(se=(T=B.current)==null?void 0:T.domRef.current)==null||se.click()}Dr(n.buttonRef.current);break;case H.ArrowDown:return m.preventDefault(),m.stopPropagation(),a({type:2,focus:ue.Next});case H.ArrowUp:return m.preventDefault(),m.stopPropagation(),a({type:2,focus:ue.Previous});case H.Home:case H.PageUp:return m.preventDefault(),m.stopPropagation(),a({type:2,focus:ue.First});case H.End:case H.PageDown:return m.preventDefault(),m.stopPropagation(),a({type:2,focus:ue.Last});case H.Escape:m.preventDefault(),m.stopPropagation(),a({type:1}),X().nextFrame(()=>{var B;return(B=n.buttonRef.current)==null?void 0:B.focus({preventScroll:!0})});break;case H.Tab:m.preventDefault(),m.stopPropagation(),a({type:1}),X().nextFrame(()=>{Co(n.buttonRef.current,m.shiftKey?Le.Previous:Le.Next)});break;default:m.key.length===1&&(a({type:3,value:m.key}),u.setTimeout(()=>a({type:4}),350));break}}),b=E(m=>{switch(m.key){case H.Space:m.preventDefault();break}}),h=(0,$.useMemo)(()=>({open:n.menuState===0}),[n]),v=e,w={"aria-activedescendant":n.activeItemIndex===null||(r=n.items[n.activeItemIndex])==null?void 0:r.id,"aria-labelledby":(o=n.buttonRef.current)==null?void 0:o.id,id:l,onKeyDown:y,onKeyUp:b,role:"menu",tabIndex:0,ref:s};return O({ourProps:w,theirProps:v,slot:h,defaultTag:Oa,features:Ha,visible:d,name:"Menu.Items"})}),$a=$.Fragment,Ba=M(function(e,t){let{disabled:r=!1,...o}=e,[n,a]=Zt("Menu.Item"),s=`headlessui-menu-item-${J()}`,i=n.activeItemIndex!==null?n.items[n.activeItemIndex].id===s:!1,l=(0,$.useRef)(null),u=_(t,l);A(()=>{if(n.menuState!==0||!i||n.activationTrigger===0)return;let w=X();return w.requestAnimationFrame(()=>{var m,T;(T=(m=l.current)==null?void 0:m.scrollIntoView)==null||T.call(m,{block:"nearest"})}),w.dispose},[l,i,n.menuState,n.activationTrigger,n.activeItemIndex]);let c=(0,$.useRef)({disabled:r,domRef:l});A(()=>{c.current.disabled=r},[c,r]),A(()=>{var w,m;c.current.textValue=(m=(w=l.current)==null?void 0:w.textContent)==null?void 0:m.toLowerCase()},[c,l]),A(()=>(a({type:5,id:s,dataRef:c}),()=>a({type:6,id:s})),[c,s]);let d=E(w=>{if(r)return w.preventDefault();a({type:1}),Dr(n.buttonRef.current)}),y=E(()=>{if(r)return a({type:2,focus:ue.Nothing});a({type:2,focus:ue.Specific,id:s})}),b=E(()=>{r||i||a({type:2,focus:ue.Specific,id:s,trigger:0})}),h=E(()=>{r||!i||a({type:2,focus:ue.Nothing})}),v=(0,$.useMemo)(()=>({active:i,disabled:r}),[i,r]);return O({ourProps:{id:s,ref:u,role:"menuitem",tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,disabled:void 0,onClick:d,onFocus:y,onPointerMove:b,onMouseMove:b,onPointerLeave:h,onMouseLeave:h},theirProps:o,slot:v,defaultTag:$a,name:"Menu.Item"})}),Tt=Object.assign(Fa,{Button:Aa,Items:_a,Item:Ba});var k=p(P(),1);function qo(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function _r(e,...t){e&&t.length>0&&e.classList.add(...t)}function $r(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Yt=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Yt||{});function Ua(e,t){let r=X();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:n}=getComputedStyle(e),[a,s]=[o,n].map(i=>{let[l=0]=i.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,c)=>c-u);return l});if(a+s!==0){let i=[];i.push(r.addEventListener(e,"transitionrun",l=>{l.target===l.currentTarget&&(i.splice(0).forEach(u=>u()),i.push(r.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t("ended"),i.splice(0).forEach(c=>c()))}),r.addEventListener(e,"transitioncancel",u=>{u.target===u.currentTarget&&(t("cancelled"),i.splice(0).forEach(c=>c()))})))}))}else t("ended");return r.add(()=>t("cancelled")),r.dispose}function Ko(e,t,r,o){let n=r?"enter":"leave",a=X(),s=o!==void 0?qo(o):()=>{};n==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let i=R(n,{enter:()=>t.enter,leave:()=>t.leave}),l=R(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=R(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return $r(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_r(e,...i,...u),a.nextFrame(()=>{$r(e,...u),_r(e,...l),Ua(e,c=>(c==="ended"&&($r(e,...i),_r(e,...t.entered)),s(c)))}),a.dispose}function Zo({container:e,direction:t,classes:r,onStart:o,onStop:n}){let a=Be(),s=$e(),i=Q(t);A(()=>{let l=X();s.add(l.dispose);let u=e.current;if(!!u&&i.current!=="idle"&&!!a.current)return l.dispose(),o.current(i.current),l.add(Ko(u,r.current,i.current==="enter",c=>{l.dispose(),R(c,{[Yt.Ended](){n.current(i.current)},[Yt.Cancelled]:()=>{}})})),l.dispose},[t])}function Ue(e=""){return e.split(" ").filter(t=>t.trim().length>1)}var Qt=(0,k.createContext)(null);Qt.displayName="TransitionContext";var Va=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Va||{});function ja(){let e=(0,k.useContext)(Qt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Wa(){let e=(0,k.useContext)(Jt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}var Jt=(0,k.createContext)(null);Jt.displayName="NestingContext";function Xt(e){return"children"in e?Xt(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qo(e,t){let r=Q(e),o=(0,k.useRef)([]),n=Be(),a=$e(),s=E((b,h=be.Hidden)=>{let v=o.current.findIndex(({el:w})=>w===b);v!==-1&&(R(h,{[be.Unmount](){o.current.splice(v,1)},[be.Hidden](){o.current[v].state="hidden"}}),a.microTask(()=>{var w;!Xt(o)&&n.current&&((w=r.current)==null||w.call(r))}))}),i=E(b=>{let h=o.current.find(({el:v})=>v===b);return h?h.state!=="visible"&&(h.state="visible"):o.current.push({el:b,state:"visible"}),()=>s(b,be.Unmount)}),l=(0,k.useRef)([]),u=(0,k.useRef)(Promise.resolve()),c=(0,k.useRef)({enter:[],leave:[],idle:[]}),d=E((b,h,v)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==b)),t?.chains.current[h].push([b,new Promise(w=>{l.current.push(w)})]),t?.chains.current[h].push([b,new Promise(w=>{Promise.all(c.current[h].map(([m,T])=>T)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t?.wait.current).then(()=>v(h)):v(h)}),y=E((b,h,v)=>{Promise.all(c.current[h].splice(0).map(([w,m])=>m)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>v(h))});return(0,k.useMemo)(()=>({children:o,register:i,unregister:s,onStart:d,onStop:y,wait:u,chains:c}),[i,s,o,d,y,c,u])}function za(){}var Ga=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Yo(e){var t;let r={};for(let o of Ga)r[o]=(t=e[o])!=null?t:za;return r}function qa(e){let t=(0,k.useRef)(Yo(e));return(0,k.useEffect)(()=>{t.current=Yo(e)},[e]),t}var Ka="div",Jo=le.RenderStrategy,Xo=M(function(e,t){let{beforeEnter:r,afterEnter:o,beforeLeave:n,afterLeave:a,enter:s,enterFrom:i,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:y,...b}=e,h=(0,k.useRef)(null),v=_(h,t),w=b.unmount?be.Unmount:be.Hidden,{show:m,appear:T,initial:se}=ja(),[B,Ge]=(0,k.useState)(m?"visible":"hidden"),qe=Wa(),{register:Pe,unregister:Ke}=qe,ft=(0,k.useRef)(null);(0,k.useEffect)(()=>Pe(h),[Pe,h]),(0,k.useEffect)(()=>{if(w===be.Hidden&&!!h.current){if(m&&B!=="visible"){Ge("visible");return}return R(B,{hidden:()=>Ke(h),visible:()=>Pe(h)})}},[B,h,Pe,Ke,m,w]);let gr=Q({enter:Ue(s),enterFrom:Ue(i),enterTo:Ue(l),entered:Ue(u),leave:Ue(c),leaveFrom:Ue(d),leaveTo:Ue(y)}),Ze=qa({beforeEnter:r,afterEnter:o,beforeLeave:n,afterLeave:a}),mt=me();(0,k.useEffect)(()=>{if(mt&&B==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,B,mt]);let gt=se&&!T,Dt=(()=>!mt||gt||ft.current===m?"idle":m?"enter":"leave")(),hr=E(Re=>R(Re,{enter:()=>Ze.current.beforeEnter(),leave:()=>Ze.current.beforeLeave(),idle:()=>{}})),q=E(Re=>R(Re,{enter:()=>Ze.current.afterEnter(),leave:()=>Ze.current.afterLeave(),idle:()=>{}})),pe=Qo(()=>{Ge("hidden"),Ke(h)},qe);Zo({container:h,classes:gr,direction:Dt,onStart:Q(Re=>{pe.onStart(h,Re,hr)}),onStop:Q(Re=>{pe.onStop(h,Re,q),Re==="leave"&&!Xt(pe)&&(Ge("hidden"),Ke(h))})}),(0,k.useEffect)(()=>{!gt||(w===be.Hidden?ft.current=null:ft.current=m)},[m,gt,B]);let re=b,ht={ref:v};return k.default.createElement(Jt.Provider,{value:pe},k.default.createElement(et,{value:R(B,{visible:G.Open,hidden:G.Closed})},O({ourProps:ht,theirProps:re,defaultTag:Ka,features:Jo,visible:B==="visible",name:"Transition.Child"})))}),Br=M(function(e,t){let{show:r,appear:o=!1,unmount:n,...a}=e,s=(0,k.useRef)(null),i=_(s,t);me();let l=Ie();if(r===void 0&&l!==null&&(r=R(l,{[G.Open]:!0,[G.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,k.useState)(r?"visible":"hidden"),d=Qo(()=>{c("hidden")}),[y,b]=(0,k.useState)(!0),h=(0,k.useRef)([r]);A(()=>{y!==!1&&h.current[h.current.length-1]!==r&&(h.current.push(r),b(!1))},[h,r]);let v=(0,k.useMemo)(()=>({show:r,appear:o,initial:y}),[r,o,y]);(0,k.useEffect)(()=>{if(r)c("visible");else if(!Xt(d))c("hidden");else{let m=s.current;if(!m)return;let T=m.getBoundingClientRect();T.x===0&&T.y===0&&T.width===0&&T.height===0&&c("hidden")}},[r,d]);let w={unmount:n};return k.default.createElement(Jt.Provider,{value:d},k.default.createElement(Qt.Provider,{value:v},O({ourProps:{...w,as:k.Fragment,children:k.default.createElement(Xo,{ref:i,...w,...a})},theirProps:{},defaultTag:k.Fragment,features:Jo,visible:u==="visible",name:"Transition"})))}),Za=M(function(e,t){let r=(0,k.useContext)(Qt)!==null,o=Ie()!==null;return k.default.createElement(k.default.Fragment,null,!r&&o?k.default.createElement(Br,{ref:t,...e}):k.default.createElement(Xo,{ref:t,...e}))}),er=Object.assign(Br,{Child:Za,Root:Br});var ee=p(C());function Rt({heading:e,open:t,onClose:r,openFrom:o="right",children:n}){let a={right:"translate-x-full",left:"-translate-x-full"};return(0,ee.jsx)(er,{appear:!0,show:t,as:st.Fragment,children:(0,ee.jsxs)(St,{as:"div",className:"relative z-50",onClose:r,children:[(0,ee.jsx)(er.Child,{as:st.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 left-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,ee.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-25"})}),(0,ee.jsx)("div",{className:"fixed inset-0",children:(0,ee.jsx)("div",{className:"absolute inset-0 overflow-hidden",children:(0,ee.jsx)("div",{className:`fixed inset-y-0 flex max-w-full ${o==="right"?"right-0":""}`,children:(0,ee.jsx)(er.Child,{as:st.Fragment,enter:"transform transition ease-in-out duration-300",enterFrom:a[o],enterTo:"translate-x-0",leave:"transform transition ease-in-out duration-300",leaveFrom:"translate-x-0",leaveTo:a[o],children:(0,ee.jsxs)(St.Panel,{className:"w-screen max-w-lg text-left align-middle transition-all transform shadow-xl h-screen-dynamic bg-contrast",children:[(0,ee.jsxs)("header",{className:`sticky top-0 flex items-center px-6 h-nav sm:px-8 md:px-12 ${e?"justify-between":"justify-end"}`,children:[e!==null&&(0,ee.jsx)(St.Title,{children:(0,ee.jsx)(V,{as:"span",size:"lead",id:"cart-contents",children:e})}),(0,ee.jsx)("button",{type:"button",className:"p-4 -m-4 transition text-primary hover:text-primary/50",onClick:r,"data-test":"close-cart",children:(0,ee.jsx)(rr,{"aria-label":"Close panel"})})]}),n]})})})})})]})})}Rt.Title=St.Title;function tr(e=!1){let[t,r]=(0,st.useState)(e);function o(){r(!0)}function n(){r(!1)}return{isOpen:t,openDrawer:o,closeDrawer:n}}function en(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=en(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Ya(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=en(e))&&(o&&(o+=" "),o+=t);return o}var F=Ya;var je=p(C());function S({as:e="span",className:t,color:r="default",format:o,size:n="copy",width:a="default",children:s,...i}){let l={default:"inherit",primary:"text-primary/90",subtle:"text-primary/50",notice:"text-notice",contrast:"text-contrast/90"},u={lead:"text-lead font-medium",copy:"text-copy",fine:"text-fine subpixel-antialiased"},c={default:"max-w-prose",narrow:"max-w-prose-narrow",wide:"max-w-prose-wide"},d=F(fe(t,"max-w-")&&c[a],fe(t,"whitespace-")&&"whitespace-pre-wrap",fe(t,"text-")&&l[r],u[n],t);return(0,je.jsx)(e,{...i,className:d,children:o?xr(s):s})}function V({as:e="h2",children:t,className:r="",format:o,size:n="heading",width:a="default",...s}){let i={display:"font-bold text-display",heading:"font-bold text-heading",lead:"font-bold text-lead",copy:"font-medium text-copy"},l={default:"max-w-prose",narrow:"max-w-prose-narrow",wide:"max-w-prose-wide"},u=F(fe(r,"whitespace-")&&"whitespace-pre-wrap",fe(r,"max-w-")&&l[a],fe(r,"font-")&&i[n],r);return(0,je.jsx)(e,{...s,className:u,children:o?xr(t):t})}function Ve({as:e="section",children:t,className:r,divider:o="none",display:n="grid",heading:a,padding:s="all",...i}){let l={x:"px-6 md:px-8 lg:px-12",y:"py-6 md:py-8 lg:py-12",swimlane:"pt-4 md:pt-8 lg:pt-12 md:pb-4 lg:pb-8",all:"p-6 md:p-8 lg:p-12"},u={none:"border-none",top:"border-t border-primary/05",bottom:"border-b border-primary/05",both:"border-y border-primary/05"},d=F("w-full gap-4 md:gap-8",{flex:"flex",grid:"grid"}[n],fe(r,"\\mp[xy]?-")&&l[s],u[o],r);return(0,je.jsxs)(e,{...i,className:d,children:[a&&(0,je.jsx)(V,{size:"lead",className:s==="y"?l.x:"",children:a}),t]})}function Qa({children:e,className:t,heading:r,variant:o="default",...n}){let s=F({default:"grid w-full gap-8 p-6 py-8 md:p-8 lg:p-12 justify-items-start",blogPost:"grid md:text-center w-full gap-4 p-6 py-8 md:p-8 lg:p-12 md:justify-items-center",allCollections:"flex justify-between items-baseline gap-8 p-6 md:p-8 lg:p-12"}[o],t);return(0,je.jsxs)("header",{...n,className:s,children:[r&&(0,je.jsx)(V,{as:"h1",width:"narrow",size:"heading",className:"inline-block",children:r}),e]})}var Ja=p(C());function or({className:e="",type:t,variant:r,...o}){let a=F({search:"bg-transparent px-0 py-2 text-heading w-full focus:ring-0 border-x-0 border-t-0 transition border-b-2 border-primary/10 focus:border-primary/90",minisearch:"bg-transparent hidden md:inline-block text-left lg:text-right border-b transition border-transparent -mb-px border-x-0 border-t-0 appearance-none px-0 py-1 focus:ring-transparent placeholder:opacity-20 placeholder:text-inherit"}[r],e);return(0,Ja.jsx)("input",{type:t,...o,className:a})}var nr="eager";function tn(e,t=4){return e<t?nr:void 0}var Ur=p(C());function Xa({media:e,className:t}){return e.length?(0,Ur.jsx)("div",{className:`swimlane md:grid-flow-row hiddenScroll md:p-0 md:overflow-x-auto md:grid-cols-2 ${t}`,children:e.map((r,o)=>{let n={},a=o===0,s=o===3,i=o%3===0,l={...r,image:{...r.image,altText:r.alt||"Product image"}};switch(r.mediaContentType){case"IMAGE":n={width:800,widths:[400,800,1200,1600,2e3,2400]};break;case"VIDEO":n={width:"100%",autoPlay:!0,controls:!1,muted:!0,loop:!0,preload:"auto"};break;case"EXTERNAL_VIDEO":n={width:"100%"};break;case"MODEL_3D":n={width:"100%",interactionPromptThreshold:"0",ar:!0,loading:nr,disableZoom:!0};break}o===0&&r.mediaContentType==="IMAGE"&&(n.loading=nr);let u=[i?"md:col-span-2":"md:col-span-1",a||s?"":"md:aspect-[4/5]","aspect-square snap-center card-image bg-white dark:bg-contrast/10 w-mobileGallery md:w-full"].join(" ");return(0,Ur.jsx)("div",{className:u,children:r.image&&(0,Ur.jsx)("img",{src:l.image.url,alt:l.image.altText,className:"w-full h-full aspect-square fadeIn object-cover"})},r.id||r.image.id)})}):null}var rn={HEROS:[{heading:{value:"All Mountain All Season"},byline:{value:"The All New Hydrogen Snowboard Exclusively From Shopify"},cta:{value:"Shop Now \u2192"},handle:"freestyle",spread:{reference:{mediaContentType:"IMAGE",alt:"Tracks in the snow leading to a person on a mountain top with a red jacket contrasting to an epic blue horizon with a mountain range in the distance.",previewImage:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Hydrogen_Hero_Feature_1.jpg?v=1654902468"},id:"gid://shopify/MediaImage/29259478466616",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Hydrogen_Hero_Feature_1.jpg?v=1654902468",width:2500,height:3155}}},spreadSecondary:{reference:{__typename:"MediaImage",mediaContentType:"IMAGE",alt:"A snowboarder standing on a mountain top in choppy snow, shows off the back of his snowboard which reads Hydrogen in a cursive script.",previewImage:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Hydrogen_Hero_Feature_2.jpg?v=1654902468"},id:"gid://shopify/MediaImage/29259478499384",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Hydrogen_Hero_Feature_2.jpg?v=1654902468",width:2500,height:3155}}},height:"full",top:!0,loading:"eager"},{heading:{value:"From the Slopes to the Chalet"},byline:null,cta:{value:"Shop Now \u2192"},handle:"backcountry",spread:{reference:{__typename:"MediaImage",mediaContentType:"IMAGE",alt:"A skier hikes up a mountain through the snow with skis over their shoulder.",previewImage:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Chalet_Collection_Feature_1.jpg?v=1654902306"},id:"gid://shopify/MediaImage/29259478368312",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Chalet_Collection_Feature_1.jpg?v=1654902306",width:2500,height:2500}}},spreadSecondary:{reference:{__typename:"MediaImage",mediaContentType:"IMAGE",alt:"A snow covered lodge is illuminated by lights at night with a dark starry sky and mountain backdrop.",previewImage:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Chalet_Collection_Feature_2.jpg?v=1654902306"},id:"gid://shopify/MediaImage/29259478401080",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Chalet_Collection_Feature_2.jpg?v=1654902306",width:2500,height:2500}}}},{heading:{value:"The Winter 2022 Collection"},byline:{value:"Just Dropped"},cta:{value:"Shop Now \u2192"},handle:"winter-2022",spread:{reference:{__typename:"MediaImage",mediaContentType:"IMAGE",alt:"Three young women in snowboarding attire embracing and laughing while snow falls around them",previewImage:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Collection_Feature_Wide.jpg?v=1654902160"},id:"gid://shopify/MediaImage/29259478302776",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/files/Collection_Feature_Wide.jpg?v=1654902160",width:5e3,height:2500}}},spreadSecondary:null}],PRODUCT_INFO:[{title:"Description",content:"We threw snow tires on our core classics... Good for all year round! Named after my favorite football match of the year. Just like any of our joints, dress them up or down..."},{title:"Size and Fit",content:"We threw snow tires on our core classics... Good for all year round! Named after my favorite football match of the year. Just like any of our joints, dress them up or down..."},{title:"Delivery and Returns",content:"The towels had been hanging from the rod for years. They were stained and worn, and quite frankly, just plain ugly. Debra didn't want to touch them but she really didn't have a choice. It was important for her to see what was living within them. Patrick didn't want to go. The fact that she was insisting they must go made him want to go even less. He had no desire to make small talk with strangers he would never again see just to be polite. But she insisted that Patrick go, and she would soon find out that this would be the biggest mistake she could make in their relationship."}],PRODUCT:{label:"Limited Edition",id:"gid://shopify/Product/6730850828344",title:"The Hydrogen",publishedAt:"2021-06-17T18:33:17Z",handle:"snowboard",description:"Description Our flagship board, ideal for technical terrain and those who dare to go where the chairlift can't take you. The Hydrogen excels in the backcountry making riding out of bounds as easy as resort groomers. New for 2021, the Hydrogen Snowboard has Oxygen Pack inserts giving you more float on the deepest days. Care Guide Clean well after use Wax regularly Specs Weight: 5 lb Length: 4 ft Width: 1 ft Manufactured on: 8/2/2021, 3:30:00 PM Manufactured by: Shopify",priceRange:{minVariantPrice:{amount:"775.0",currencyCode:"CAD"},maxVariantPrice:{amount:"775.0",currencyCode:"CAD"}},options:[{name:"Color",values:["Morning","Evening","Night"]},{name:"Size",values:["154","158","160"]}],variants:{nodes:[{id:"gid://shopify/ProductVariant/41007289630776",image:{url:"https://cdn.shopify.com/s/files/1/0551/4566/0472/products/hydrogen-morning.jpg?v=1636146509",altText:"The Hydrogen snowboard, color Morning",width:1200,height:1504},price:{amount:"775.0",currencyCode:"CAD"},compareAtPrice:{amount:"840.0",currencyCode:"CAD"}}]}}};function Cc(e){return e?.length?e.map((t,r)=>{if(t?.heading?.value)return t;let o=rn.HEROS[r],n=t?.byLine||t?.descriptionHtml?{value:t.descriptionHtml}:o.byline;return{heading:t?.heading||t?.title?{value:t.title}:o.heading,byLine:n,cta:t?.cta||o.cta,handle:t?.handle||o.handle,id:t?.id||r,spread:t?.spread||o.spread,spreadSecondary:t?.spreadSecondary||o.spreadSecondary,height:o?.height||void 0,top:o?.top||void 0}}):[]}function on(){return rn.PRODUCT}var K=p(C());function We({product:e,label:t,className:r,loading:o,onClick:n}){let a,s=e?.variants?e:on();if(!s?.variants?.nodes?.length)return null;let i=Ye(s?.variants)[0];if(!i)return null;let{image:l,price:u,compareAtPrice:c}=i;return t?a=t:br(u,c)?a="Sale":no(e.publishedAt)&&(a="New"),(0,K.jsxs)("div",{className:"flex flex-col",children:[(0,K.jsx)(D,{onClick:n,to:`/products/${e.handle}`,prefetch:"intent",children:(0,K.jsxs)("div",{className:F("grid gap-6",r),children:[(0,K.jsxs)("div",{className:"card-image aspect-[4/5] bg-primary/5",children:[l&&(0,K.jsx)(Qe,{className:"aspect-[4/5] w-full object-cover fadeIn",widths:[320],sizes:"320px",loaderOptions:{crop:"center",scale:2,width:320,height:400},data:l,alt:l.altText||`Picture of ${e.title}`,loading:o}),(0,K.jsx)(S,{as:"label",size:"fine",className:"absolute top-0 right-0 m-4 text-right text-notice",children:a})]}),(0,K.jsxs)("div",{className:"grid gap-1",children:[(0,K.jsx)(S,{className:"w-full overflow-hidden whitespace-nowrap text-ellipsis ",as:"h3",children:e.title}),(0,K.jsx)("div",{className:"flex gap-4",children:(0,K.jsxs)(S,{className:"flex gap-4",children:[(0,K.jsx)(vt,{withoutTrailingZeros:!0,data:u}),br(u,c)&&(0,K.jsx)(es,{className:"opacity-50",data:c})]})})]})]})}),i?.id&&(0,K.jsx)(Vr,{lines:[{quantity:1,merchandiseId:i.id}],variant:"secondary",className:"mt-2",children:(0,K.jsx)(S,{as:"span",className:"flex items-center justify-center gap-2",children:"Add to Bag"})})]})}function es({data:e,className:t}){let{currencyNarrowSymbol:r,withoutTrailingZerosAndCurrency:o}=uo(e),n=F("strike",t);return(0,K.jsxs)("span",{className:n,children:[r,o]})}var jr=p(C()),ts=new Array(12).fill("");function rs({title:e="Featured Products",products:t=ts,count:r=12,...o}){return(0,jr.jsx)(Ve,{heading:e,padding:"y",...o,children:(0,jr.jsx)("div",{className:"swimlane hiddenScroll md:pb-8 md:scroll-px-8 lg:scroll-px-12 md:px-8 lg:px-12",children:t.map(n=>(0,jr.jsx)(We,{product:n,className:"snap-start w-80"},n.id))})})}var ze=p(P()),ne=p(C());function os({url:e,collection:t,...r}){let[o,n]=(0,ze.useState)(t?.products?.nodes||[]),[a,s]=(0,ze.useState)(t?.products?.pageInfo?.hasNextPage),[i,l]=(0,ze.useState)(t?.products?.pageInfo?.endCursor),[u,c]=(0,ze.useState)(o),d=t?.products?.nodes||[];o!==d&&(n(d),c(d));let y=oe();function b(){y.load(`${e}?index&cursor=${i}`)}return(0,ze.useEffect)(()=>{if(!y.data)return;let{collection:v}=y.data;c(w=>[...w,...v.products.nodes]),s(v.products.pageInfo.hasNextPage),l(v.products.pageInfo.endCursor)},[y.data]),o.length>0?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)(Lt,{layout:"products",...r,children:u.map((v,w)=>(0,ne.jsx)(We,{product:v,loading:tn(w)},v.id))}),a&&(0,ne.jsx)("div",{className:"flex items-center justify-center mt-6",children:(0,ne.jsx)(de,{disabled:y.state!=="idle",variant:"secondary",onClick:b,width:"full",prefetch:"intent",children:y.state!=="idle"?"Loading...":"Load more products"})})]}):(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("p",{children:"No products found on this collection"}),(0,ne.jsx)(D,{to:"/products",children:(0,ne.jsx)("p",{className:"underline",children:"Browse catalog"})})]})}var ns=p(C());function ar({as:e="div",width:t,height:r,className:o,...n}){let a=F("rounded bg-primary/10",o);return(0,ns.jsx)(e,{...n,width:t,height:r,className:a})}var nn=p(P());var as=p(C()),de=(0,nn.forwardRef)(({as:e="button",className:t="",variant:r="primary",width:o="auto",...n},a)=>{let s=n?.to?Ne:e,i="inline-block rounded font-medium text-center py-3 px-6",l={primary:`${i} bg-primary text-contrast`,secondary:`${i} border border-primary/10 bg-contrast text-primary`,inline:"border-b border-primary/10 leading-none pb-1"},u={auto:"w-auto",full:"w-full"},c=F(fe(t,"bg-")&&l[r],fe(t,"w-")&&u[o],t);return(0,as.jsx)(s,{className:c,...n,ref:a})});var Me=p(P());var we=p(P(),1);var Wr=new Map,sr=new WeakMap,an=0,ss;function is(e){return e?(sr.has(e)||(an+=1,sr.set(e,an.toString())),sr.get(e)):"0"}function ls(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?is(e.root):e[t]}`).toString()}function us(e){let t=ls(e),r=Wr.get(t);if(!r){let o=new Map,n,a=new IntersectionObserver(s=>{s.forEach(i=>{var l;let u=i.isIntersecting&&n.some(c=>i.intersectionRatio>=c);e.trackVisibility&&typeof i.isVisible>"u"&&(i.isVisible=u),(l=o.get(i.target))==null||l.forEach(c=>{c(u,i)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:o},Wr.set(t,r)}return r}function cs(e,t,r={},o=ss){if(typeof window.IntersectionObserver>"u"&&o!==void 0){let l=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:typeof r.threshold=="number"?r.threshold:0,time:0,boundingClientRect:l,intersectionRect:l,rootBounds:l}),()=>{}}let{id:n,observer:a,elements:s}=us(r),i=s.get(e)||[];return s.has(e)||s.set(e,i),i.push(t),a.observe(e),function(){i.splice(i.indexOf(t),1),i.length===0&&(s.delete(e),a.unobserve(e)),s.size===0&&(a.disconnect(),Wr.delete(n))}}function ir({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:n,triggerOnce:a,skip:s,initialInView:i,fallbackInView:l,onChange:u}={}){var c;let[d,y]=we.useState(null),b=we.useRef(),[h,v]=we.useState({inView:!!i,entry:void 0});b.current=u,we.useEffect(()=>{if(s||!d)return;let T;return T=cs(d,(se,B)=>{v({inView:se,entry:B}),b.current&&b.current(se,B),B.isIntersecting&&a&&T&&(T(),T=void 0)},{root:n,rootMargin:o,threshold:e,trackVisibility:r,delay:t},l),()=>{T&&T()}},[Array.isArray(e)?e.toString():e,d,n,o,a,s,r,l,t]);let w=(c=h.entry)==null?void 0:c.target;we.useEffect(()=>{!d&&w&&!a&&!s&&v({inView:!!i,entry:void 0})},[d,w,a,s,i]);let m=[y,h.inView,h.entry];return m.ref=m[0],m.inView=m[1],m.entry=m[2],m}var Z=p(C());function zr(){let[e]=ke(),t=oe(),r=(0,Me.useRef)(null),o=e.data?.selectedLocale??io,{pathname:n,search:a}=xe(),s=`${n.replace(o.pathPrefix,"")}${a}`,i=t.data??{},l=i?.default,u=l?`${l?.language}-${l?.country}`:"",{ref:c,inView:d}=ir({threshold:0,triggerOnce:!0}),y=(0,Me.useRef)(null);(0,Me.useEffect)(()=>{c(y.current)},[c,y]),(0,Me.useEffect)(()=>{!d||t.data||t.state==="loading"||t.load("/api/countries")},[d,t]);let b=(0,Me.useCallback)(()=>{r.current?.removeAttribute("open")},[]);return(0,Z.jsxs)("section",{ref:y,className:"grid gap-4 w-full md:max-w-[335px] md:ml-auto",onMouseLeave:b,children:[(0,Z.jsx)(V,{size:"lead",className:"cursor-default",as:"h3",children:"Country"}),(0,Z.jsx)("div",{className:"relative",children:(0,Z.jsxs)("details",{className:"border rounded border-contrast/30 dark:border-white open:round-b-none",ref:r,children:[(0,Z.jsx)("summary",{className:"flex items-center justify-between w-full py-3 px-4 cursor-pointer",children:o.label}),(0,Z.jsx)("div",{className:"overflow-auto border-t py-2 bg-contrast w-full max-h-36",children:i&&Object.keys(i).map(h=>{let v=i[h],w=v.language===o.language&&v.country===o.country,m=fs({countryLocale:v,defaultLocalePrefix:u,pathWithoutLocale:s});return(0,Z.jsx)(ds,{closeDropdown:b,countryUrlPath:m,isSelected:w,countryLocale:v},h)})})]})})]})}function ds({closeDropdown:e,countryLocale:t,countryUrlPath:r,isSelected:o}){return(0,Z.jsx)(ps,{redirectTo:r,buyerIdentity:{countryCode:t.country},children:(0,Z.jsxs)(de,{className:F(["text-contrast dark:text-primary","bg-primary dark:bg-contrast w-full p-2 transition rounded flex justify-start","items-center text-left cursor-pointer py-2 px-4"]),type:"submit",variant:"primary",onClick:e,children:[t.label,o?(0,Z.jsx)("span",{className:"ml-2",children:(0,Z.jsx)(ln,{})}):null]})},t.country)}function ps({children:e,buyerIdentity:t,redirectTo:r}){let o=oe();return(0,Z.jsxs)(o.Form,{action:"/cart",method:"post",children:[(0,Z.jsx)("input",{type:"hidden",name:"cartAction",value:"UPDATE_BUYER_IDENTITY"}),(0,Z.jsx)("input",{type:"hidden",name:"buyerIdentity",value:JSON.stringify(t)}),(0,Z.jsx)("input",{type:"hidden",name:"redirectTo",value:r}),e]})}function fs({countryLocale:e,defaultLocalePrefix:t,pathWithoutLocale:r}){let o="",n=`${e.language}-${e.country}`;return n!==t&&(o=`/${n.toLowerCase()}`),`${o}${r}`}var Kr=p(P());function lr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function ur(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Gr=typeof window<"u";var un=p(P());var ve=p(P());function qr(e,t){t===void 0&&(t=0);var r=(0,ve.useRef)(!1),o=(0,ve.useRef)(),n=(0,ve.useRef)(e),a=(0,ve.useCallback)(function(){return r.current},[]),s=(0,ve.useCallback)(function(){r.current=!1,o.current&&clearTimeout(o.current),o.current=setTimeout(function(){r.current=!0,n.current()},t)},[t]),i=(0,ve.useCallback)(function(){r.current=null,o.current&&clearTimeout(o.current)},[]);return(0,ve.useEffect)(function(){n.current=e},[e]),(0,ve.useEffect)(function(){return s(),i},[t]),[a,i,s]}function cr(e,t,r){t===void 0&&(t=0),r===void 0&&(r=[]);var o=qr(e,t),n=o[0],a=o[1],s=o[2];return(0,un.useEffect)(s,r),[n,a]}var cn=p(P()),ms=function(e){(0,cn.useEffect)(e,[])},dn=ms;var it=p(P());var pn=p(P());var gs=function(e){var t=(0,pn.useRef)(e);t.current=e,dn(function(){return function(){return t.current()}})},fn=gs;var hs=function(e){var t=(0,it.useRef)(0),r=(0,it.useState)(e),o=r[0],n=r[1],a=(0,it.useCallback)(function(s){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){n(s)})},[]);return fn(function(){cancelAnimationFrame(t.current)}),[o,a]},dr=hs;var mn=p(P());var ys=function(e){var t=dr({x:0,y:0}),r=t[0],o=t[1];return(0,mn.useEffect)(function(){var n=function(){e.current&&o({x:e.current.scrollLeft,y:e.current.scrollTop})};return e.current&&lr(e.current,"scroll",n,{capture:!1,passive:!0}),function(){e.current&&ur(e.current,"scroll",n)}},[e]),r},pr=ys;var gn=p(P());var vs=function(){var e=dr(function(){return{x:Gr?window.pageXOffset:0,y:Gr?window.pageYOffset:0}}),t=e[0],r=e[1];return(0,gn.useEffect)(function(){var o=function(){r(function(n){var a=window.pageXOffset,s=window.pageYOffset;return n.x!==a||n.y!==s?{x:a,y:s}:n})};return o(),lr(window,"scroll",o,{capture:!1,passive:!0}),function(){ur(window,"scroll",o)}},[]),t},fr=vs;var g=p(C());function Zr({layout:e,onClose:t,cart:r}){let o=Boolean(r?.lines?.edges?.length||0);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Ss,{hidden:o,onClose:t,layout:e}),(0,g.jsx)(xs,{cart:r,layout:e})]})}function xs({layout:e,cart:t}){let r=!t||t?.cost?.subtotalAmount?.amount==="0.0";return(0,g.jsxs)("div",{className:{drawer:"grid grid-cols-1 h-screen-no-nav grid-rows-[1fr_auto]",page:"w-full pb-12 grid md:grid-cols-2 md:items-start gap-8 md:gap-8 lg:gap-12"}[e],children:[(0,g.jsx)(ws,{lines:t?.lines,layout:e}),!r&&(0,g.jsxs)(Ps,{cost:t.cost,layout:e,children:[(0,g.jsx)(bs,{discountCodes:t.discountCodes}),(0,g.jsx)(Cs,{checkoutUrl:t.checkoutUrl})]})]})}function bs({discountCodes:e}){let t=e?.map(({code:r})=>r).join(", ")||null;return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("dl",{className:F(t?"grid":"hidden"),children:(0,g.jsxs)("div",{className:"flex items-center justify-between font-medium",children:[(0,g.jsx)(S,{as:"dt",children:"Discount(s)"}),(0,g.jsxs)("div",{className:"flex items-center justify-between",children:[(0,g.jsx)(hn,{children:(0,g.jsx)("button",{children:(0,g.jsx)(Qr,{"aria-hidden":"true",style:{height:18,marginRight:4}})})}),(0,g.jsx)(S,{as:"dd",children:t})]})]})}),(0,g.jsx)(hn,{children:(0,g.jsxs)("div",{className:F(t?"hidden":"flex","items-center justify-between"),children:[(0,g.jsx)("input",{className:ao(),type:"text",name:"discountCode"}),(0,g.jsx)("button",{className:"w-[150px] flex justify-end",children:(0,g.jsx)(S,{size:"fine",children:"Apply Discount"})})]})})]})}function hn({children:e}){let t=oe();return(0,g.jsxs)(t.Form,{action:"/cart",method:"post",children:[(0,g.jsx)("input",{type:"hidden",name:"cartAction",value:"UPDATE_DISCOUNT"}),e]})}function ws({layout:e="drawer",lines:t}){let r=t?Ye(t):[],o=(0,Kr.useRef)(null),{y:n}=pr(o),a=F([n>0?"border-t":"",e==="page"?"flex-grow md:translate-y-4":"px-6 pb-6 sm-max:pt-2 overflow-auto transition md:px-12"]);return(0,g.jsx)("section",{ref:o,"aria-labelledby":"cart-contents",className:a,children:(0,g.jsx)("ul",{className:"grid gap-6 md:gap-10",children:r.map(s=>(0,g.jsx)(Ns,{line:s},s.id))})})}function Cs({checkoutUrl:e}){return e?(0,g.jsx)("div",{className:"flex flex-col mt-2",children:(0,g.jsx)("a",{href:e,target:"_self",children:(0,g.jsx)(de,{as:"span",width:"full",children:"Continue to Checkout"})})}):null}function Ps({cost:e,layout:t,children:r=null}){return(0,g.jsxs)("section",{"aria-labelledby":"summary-heading",className:{drawer:"grid gap-4 p-6 border-t md:px-12",page:"sticky top-nav grid gap-6 p-4 md:px-6 md:translate-y-4 bg-primary/5 rounded w-full"}[t],children:[(0,g.jsx)("h2",{id:"summary-heading",className:"sr-only",children:"Order summary"}),(0,g.jsx)("dl",{className:"grid",children:(0,g.jsxs)("div",{className:"flex items-center justify-between font-medium",children:[(0,g.jsx)(S,{as:"dt",children:"Subtotal"}),(0,g.jsx)(S,{as:"dd","data-test":"subtotal",children:e?.subtotalAmount?.amount?(0,g.jsx)(vt,{data:e?.subtotalAmount}):"-"})]})}),r]})}function Ns({line:e}){if(!e?.id)return null;let{id:t,quantity:r,merchandise:o}=e;return typeof r>"u"||!o?.product?null:(0,g.jsxs)("li",{className:"flex gap-4",children:[(0,g.jsx)("div",{className:"flex-shrink",children:o.image&&(0,g.jsx)(Qe,{width:220,height:220,data:o.image,className:"object-cover object-center w-24 h-24 border rounded md:w-28 md:h-28",alt:o.title})}),(0,g.jsxs)("div",{className:"flex justify-between flex-grow",children:[(0,g.jsxs)("div",{className:"grid gap-2",children:[(0,g.jsx)(V,{as:"h3",size:"copy",children:o?.product?.handle?(0,g.jsx)(D,{to:`/products/${o.product.handle}`,children:o?.product?.title||""}):(0,g.jsx)(S,{children:o?.product?.title||""})}),(0,g.jsx)("div",{className:"grid pb-2",children:(o?.selectedOptions||[]).map(n=>(0,g.jsxs)(S,{color:"subtle",children:[n.name,": ",n.value]},n.name))}),(0,g.jsxs)("div",{className:"flex items-center gap-2",children:[(0,g.jsx)("div",{className:"flex justify-start text-copy",children:(0,g.jsx)(Is,{line:e})}),(0,g.jsx)(ks,{lineIds:[t]})]})]}),(0,g.jsx)(S,{children:(0,g.jsx)(Es,{line:e,as:"span"})})]})]},t)}function ks({lineIds:e}){let t=oe();return(0,g.jsxs)(t.Form,{action:"/cart",method:"post",children:[(0,g.jsx)("input",{type:"hidden",name:"cartAction",value:"REMOVE_FROM_CART"}),(0,g.jsx)("input",{type:"hidden",name:"linesIds",value:JSON.stringify(e)}),(0,g.jsxs)("button",{className:"flex items-center justify-center w-10 h-10 border rounded",type:"submit",children:[(0,g.jsx)("span",{className:"sr-only",children:"Remove"}),(0,g.jsx)(Qr,{"aria-hidden":"true"})]})]})}function Is({line:e}){if(!e||typeof e?.quantity>"u")return null;let{id:t,quantity:r}=e,o=Number(Math.max(0,r-1).toFixed(0)),n=Number((r+1).toFixed(0));return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("label",{htmlFor:`quantity-${t}`,className:"sr-only",children:["Quantity, ",r]}),(0,g.jsxs)("div",{className:"flex items-center border rounded",children:[(0,g.jsx)(yn,{lines:[{id:t,quantity:o}],children:(0,g.jsx)("button",{name:"decrease-quantity","aria-label":"Decrease quantity",className:"w-10 h-10 transition text-primary/50 hover:text-primary disabled:text-primary/10",value:o,disabled:r<=1,children:(0,g.jsx)("span",{children:"\u2212"})})}),(0,g.jsx)("div",{className:"px-2 text-center","data-test":"item-quantity",children:r}),(0,g.jsx)(yn,{lines:[{id:t,quantity:n}],children:(0,g.jsx)("button",{className:"w-10 h-10 transition text-primary/50 hover:text-primary",name:"increase-quantity",value:n,"aria-label":"Increase quantity",children:(0,g.jsx)("span",{children:"+"})})})]})]})}function yn({children:e,lines:t}){let r=oe();return(0,g.jsxs)(r.Form,{action:"/cart",method:"post",children:[(0,g.jsx)("input",{type:"hidden",name:"cartAction",value:"UPDATE_CART"}),(0,g.jsx)("input",{type:"hidden",name:"lines",value:JSON.stringify(t)}),e]})}function Es({line:e,priceType:t="regular",...r}){if(!e?.cost?.amountPerQuantity||!e?.cost?.totalAmount)return null;let o=t==="regular"?e.cost.totalAmount:e.cost.compareAtAmountPerQuantity;return o==null?null:(0,g.jsx)(vt,{withoutTrailingZeros:!0,...r,data:o})}function Ss({hidden:e=!1,layout:t="drawer",onClose:r}){let o=(0,Kr.useRef)(null),{y:n}=pr(o),a={drawer:F(["content-start gap-4 px-6 pb-8 transition overflow-y-scroll md:gap-12 md:px-12 h-screen-no-nav md:pb-12",n>0?"border-t":""]),page:F([e?"":"grid","pb-12 w-full md:items-start gap-4 md:gap-8 lg:gap-12"])};return(0,g.jsxs)("div",{ref:o,className:a[t],hidden:e,children:[(0,g.jsxs)("section",{className:"grid gap-6",children:[(0,g.jsx)(S,{format:!0,children:"Looks like you haven\u2019t added anything yet, let\u2019s get you started!"}),(0,g.jsx)("div",{children:(0,g.jsx)(de,{onClick:r,children:"Continue shopping"})})]}),(0,g.jsx)("section",{className:"grid gap-8 pt-4",children:(0,g.jsx)(Yr,{count:4,heading:"Shop Best Sellers",layout:t,onClose:r,sortKey:"BEST_SELLING"})})]})}var te=p(C());function Jr(){return(0,te.jsx)("div",{className:"flex w-full h-screen-no-nav justify-center items-center",children:(0,te.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:38,height:38,viewBox:"0 0 38 38",children:[(0,te.jsx)("defs",{children:(0,te.jsxs)("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"a",children:[(0,te.jsx)("stop",{stopColor:"#fff",stopOpacity:0,offset:"0%"}),(0,te.jsx)("stop",{stopColor:"#fff",stopOpacity:".631",offset:"63.146%"}),(0,te.jsx)("stop",{stopColor:"#fff",offset:"100%"})]})}),(0,te.jsx)("g",{fill:"none",fillRule:"evenodd",children:(0,te.jsxs)("g",{transform:"translate(1 1)",children:[(0,te.jsx)("path",{d:"M36 18c0-9.94-8.06-18-18-18",id:"Oval-2",stroke:"url(#a)",strokeWidth:2,children:(0,te.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})}),(0,te.jsx)("circle",{fill:"#fff",cx:36,cy:18,r:1,children:(0,te.jsx)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"0.9s",repeatCount:"indefinite"})})]})})]})})}var j=p(C());function Ts({order:e}){if(!e?.id)return null;let[t,r]=e.id.split("/").pop().split("?"),o=Ye(e?.lineItems);return(0,j.jsxs)("li",{className:"grid text-center border rounded",children:[(0,j.jsxs)(D,{className:"grid items-center gap-4 p-4 md:gap-6 md:p-6 md:grid-cols-2",to:`/account/orders/${t}?${r}`,prefetch:"intent",children:[o[0].variant?.image&&(0,j.jsx)("div",{className:"card-image aspect-square bg-primary/5",children:(0,j.jsx)("img",{width:168,height:168,className:"w-full fadeIn cover",alt:o[0].variant?.image?.altText??"Order image",src:o[0].variant?.image.url})}),(0,j.jsxs)("div",{className:`flex-col justify-center text-left ${!o[0].variant?.image&&"md:col-span-2"}`,children:[(0,j.jsx)(V,{as:"h3",format:!0,size:"copy",children:o.length>1?`${o[0].title} +${o.length-1} more`:o[0].title}),(0,j.jsxs)("dl",{className:"grid grid-gap-1",children:[(0,j.jsx)("dt",{className:"sr-only",children:"Order ID"}),(0,j.jsx)("dd",{children:(0,j.jsxs)(S,{size:"fine",color:"subtle",children:["Order No. ",e.orderNumber]})}),(0,j.jsx)("dt",{className:"sr-only",children:"Order Date"}),(0,j.jsx)("dd",{children:(0,j.jsx)(S,{size:"fine",color:"subtle",children:new Date(e.processedAt).toDateString()})}),(0,j.jsx)("dt",{className:"sr-only",children:"Fulfillment Status"}),(0,j.jsx)("dd",{className:"mt-2",children:(0,j.jsx)("span",{className:`px-3 py-1 text-xs font-medium rounded-full ${e.fulfillmentStatus==="FULFILLED"?"bg-green-100 text-green-800":"bg-primary/5 text-primary/50"}`,children:(0,j.jsx)(S,{size:"fine",children:so(e.fulfillmentStatus)})})})]})]})]}),(0,j.jsx)("div",{className:"self-end border-t",children:(0,j.jsx)(D,{className:"block w-full p-2 text-center",to:`/account/orders/${t}?${r}`,prefetch:"intent",children:(0,j.jsx)(S,{color:"subtle",className:"ml-3",children:"View Details"})})})]})}var z=p(C());function Rs({customer:e}){let{firstName:t,lastName:r,email:o,phone:n}=e;return(0,z.jsx)(z.Fragment,{children:(0,z.jsxs)("div",{className:"grid w-full gap-4 p-4 py-6 md:gap-8 md:p-8 lg:p-12",children:[(0,z.jsx)("h3",{className:"font-bold text-lead",children:"Account Details"}),(0,z.jsxs)("div",{className:"lg:p-8 p-6 border border-gray-200 rounded",children:[(0,z.jsxs)("div",{className:"flex",children:[(0,z.jsx)("h3",{className:"font-bold text-base flex-1",children:"Profile & Security"}),(0,z.jsx)(D,{prefetch:"intent",className:"underline text-sm font-normal",to:"/account/edit",children:"Edit"})]}),(0,z.jsx)("div",{className:"mt-4 text-sm text-primary/50",children:"Name"}),(0,z.jsxs)("p",{className:"mt-1",children:[t||r?(t?t+" ":"")+r:"Add name"," "]}),(0,z.jsx)("div",{className:"mt-4 text-sm text-primary/50",children:"Contact"}),(0,z.jsx)("p",{className:"mt-1",children:n??"Add mobile"}),(0,z.jsx)("div",{className:"mt-4 text-sm text-primary/50",children:"Email address"}),(0,z.jsx)("p",{className:"mt-1",children:o}),(0,z.jsx)("div",{className:"mt-4 text-sm text-primary/50",children:"Password"}),(0,z.jsx)("p",{className:"mt-1",children:"**************"})]})]})})}var U=p(C());function Ls({customer:e,addresses:t}){return(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{className:"grid w-full gap-4 p-4 py-6 md:gap-8 md:p-8 lg:p-12",children:[(0,U.jsx)("h3",{className:"font-bold text-lead",children:"Address Book"}),(0,U.jsxs)("div",{children:[!t?.length&&(0,U.jsx)(S,{className:"mb-1",width:"narrow",as:"p",size:"copy",children:"You haven't saved any addresses yet."}),(0,U.jsx)("div",{className:"w-48",children:(0,U.jsx)(de,{to:"address/add",className:"mt-2 text-sm w-full mb-6",variant:"secondary",children:"Add an Address"})}),Boolean(t?.length)&&(0,U.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6",children:[e.defaultAddress&&(0,U.jsx)(vn,{address:e.defaultAddress,defaultAddress:!0}),t.filter(r=>r.id!==e.defaultAddress?.id).map(r=>(0,U.jsx)(vn,{address:r},r.id))]})]})]})})}function vn({address:e,defaultAddress:t}){return(0,U.jsxs)("div",{className:"lg:p-8 p-6 border border-gray-200 rounded flex flex-col",children:[t&&(0,U.jsx)("div",{className:"mb-3 flex flex-row",children:(0,U.jsx)("span",{className:"px-3 py-1 text-xs font-medium rounded-full bg-primary/20 text-primary/50",children:"Default"})}),(0,U.jsxs)("ul",{className:"flex-1 flex-row",children:[(e.firstName||e.lastName)&&(0,U.jsx)("li",{children:""+(e.firstName&&e.firstName+" ")+e?.lastName}),e.formatted&&e.formatted.map(r=>(0,U.jsx)("li",{children:r},r))]}),(0,U.jsxs)("div",{className:"flex flex-row font-medium mt-6",children:[(0,U.jsx)(D,{to:`/account/address/${encodeURIComponent(e.id)}`,className:"text-left underline text-sm",prefetch:"intent",children:"Edit"}),(0,U.jsxs)(yt,{action:"address/delete",method:"delete",children:[(0,U.jsx)("input",{type:"hidden",name:"addressId",value:e.id}),(0,U.jsx)("button",{className:"text-left text-primary/50 ml-6 text-sm",children:"Remove"})]})]})]})}var Se=p(C());function Ds({children:e,cancelLink:t}){return(0,Se.jsxs)("div",{className:"relative z-50","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",id:"modal-bg",children:[(0,Se.jsx)("div",{className:"fixed inset-0 transition-opacity bg-opacity-75 bg-primary/40"}),(0,Se.jsx)("div",{className:"fixed inset-0 z-50 overflow-y-auto",children:(0,Se.jsx)("div",{className:"flex items-center justify-center min-h-full p-4 text-center sm:p-0",children:(0,Se.jsxs)("div",{className:"relative flex-1 px-4 pt-5 pb-4 overflow-hidden text-left transition-all transform rounded shadow-xl bg-contrast sm:my-12 sm:flex-none sm:w-full sm:max-w-sm sm:p-6",role:"button",onClick:r=>{r.stopPropagation()},onKeyPress:r=>{r.stopPropagation()},tabIndex:0,children:[(0,Se.jsx)("div",{className:"absolute top-0 right-0 hidden pt-4 pr-4 sm:block",children:(0,Se.jsx)(D,{to:t,className:"p-4 -m-4 transition text-primary hover:text-primary/50",children:(0,Se.jsx)(rr,{"aria-label":"Close panel"})})}),e]})})})]})}var xn=p(C());function D(e){let{to:t,className:r,...o}=e,[n]=ke(),a=n.data?.selectedLocale,s=t;return typeof t=="string"&&(s=a?`${a.pathPrefix}${t}`:t),typeof r=="function"?(0,xn.jsx)(to,{to:s,className:r,...o}):(0,xn.jsx)(Ne,{to:s,className:r,...o})}var Ae=p(C());function Fs({collections:e,title:t="Collections",...r}){let o=e.filter(a=>a.image).length;return e.length>0?(0,Ae.jsx)(Ve,{...r,heading:t,children:(0,Ae.jsx)(Lt,{items:o,children:e.map(a=>a?.image?(0,Ae.jsx)(D,{to:`/collections/${a.handle}`,children:(0,Ae.jsxs)("div",{className:"grid gap-4",children:[(0,Ae.jsx)("div",{className:"card-image bg-primary/5 aspect-[3/2]",children:a?.image&&(0,Ae.jsx)(Qe,{alt:`Image of ${a.title}`,data:a.image,height:400,sizes:"(max-width: 32em) 100vw, 33vw",width:600,widths:[400,500,600,700,800,900],loaderOptions:{scale:2,crop:"center"}})}),(0,Ae.jsx)(V,{size:"copy",children:a.title})]})},a.id):null)})}):null}var ae=p(C());function Ms({byline:e,cta:t,handle:r,heading:o,height:n,loading:a,spread:s,spreadSecondary:i,top:l}){return(0,ae.jsx)(D,{to:`/collections/${r}`,children:(0,ae.jsxs)("section",{className:F("relative justify-end flex flex-col w-full",l&&"-mt-nav",n==="full"?"h-screen":"aspect-[4/5] sm:aspect-square md:aspect-[5/4] lg:aspect-[3/2] xl:aspect-[2/1]"),children:[(0,ae.jsxs)("div",{className:"absolute inset-0 grid flex-grow grid-flow-col pointer-events-none auto-cols-fr -z-10 content-stretch overflow-clip",children:[s?.reference&&(0,ae.jsx)("div",{children:(0,ae.jsx)(bn,{scale:2,sizes:i?.reference?"(min-width: 80em) 700px, (min-width: 48em) 450px, 500px":"(min-width: 80em) 1400px, (min-width: 48em) 900px, 500px",widths:i?.reference?[500,450,700]:[500,900,1400],width:i?.reference?375:750,data:s.reference,loading:a})}),i?.reference&&(0,ae.jsx)("div",{className:"hidden md:block",children:(0,ae.jsx)(bn,{sizes:"(min-width: 80em) 700, (min-width: 48em) 450, 500",widths:[450,700],width:375,data:i.reference})})]}),(0,ae.jsxs)("div",{className:"flex flex-col items-baseline justify-between gap-4 px-6 py-8 sm:px-8 md:px-12 bg-gradient-to-t dark:from-contrast/60 dark:text-primary from-primary/60 text-contrast",children:[o?.value&&(0,ae.jsx)(V,{format:!0,as:"h2",size:"display",className:"max-w-md",children:o.value}),e?.value&&(0,ae.jsx)(S,{format:!0,width:"narrow",as:"p",size:"lead",children:e.value}),t?.value&&(0,ae.jsx)(S,{size:"lead",children:t.value})]})]})})}function bn({data:e,loading:t,scale:r,sizes:o,width:n,widths:a}){return(0,ae.jsx)(lo,{data:e,alt:e.alt,className:"block object-cover w-full h-full",mediaOptions:{video:{controls:!1,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,width:(r??1)*n,previewImageOptions:{scale:r,src:e.previewImage?.url??""}},image:{loading:t,loaderOptions:{scale:r,crop:"center"},widths:a,sizes:o,width:n}}})}var lt=p(P());var x=p(C());function As({filters:e,appliedFilters:t=[],children:r,collections:o=[]}){let[n,a]=(0,lt.useState)(!1);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,x.jsx)("button",{onClick:()=>a(!n),className:"relative flex items-center justify-center w-8 h-8 focus:ring-primary/5",children:(0,x.jsx)(Nn,{})}),(0,x.jsx)(Cn,{})]}),(0,x.jsxs)("div",{className:"flex flex-wrap flex-col md:flex-row",children:[(0,x.jsx)("div",{className:`transition-all duration-200 ${n?"opacity-100 min-w-full md:min-w-[240px] md:w-[240px] md:pr-8 max-h-full":"opacity-0 md:min-w-[0px] md:w-[0px] pr-0 max-h-0 md:max-h-full"}`,children:(0,x.jsx)(Os,{collections:o,filters:e,appliedFilters:t})}),(0,x.jsx)("div",{className:"flex-1",children:r})]})]})}function Os({filters:e=[],appliedFilters:t=[],collections:r=[]}){let[o]=Mt(),n=xe(),a=(i,l)=>{switch(i.type){case"PRICE_RANGE":let u=o.has("minPrice")&&!isNaN(Number(o.get("minPrice")))?Number(o.get("minPrice")):void 0,c=o.has("maxPrice")&&!isNaN(Number(o.get("maxPrice")))?Number(o.get("maxPrice")):void 0;return(0,x.jsx)(Vs,{min:u,max:c});default:let d=Bs(i,l.input,o,n);return(0,x.jsx)(Ne,{className:"focus:underline hover:underline",prefetch:"intent",to:d,children:l.label})}},s=r.map(i=>(0,x.jsx)("li",{className:"pb-4",children:(0,x.jsx)(Ne,{to:`/collections/${i.handle}`,className:"focus:underline hover:underline",prefetch:"intent",children:i.title},i.handle)},i.handle));return(0,x.jsx)(x.Fragment,{children:(0,x.jsxs)("nav",{className:"py-8",children:[t.length>0?(0,x.jsx)("div",{className:"pb-8",children:(0,x.jsx)(Hs,{filters:t})}):null,(0,x.jsx)(he,{as:"div",className:"w-full",children:({open:i})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(he.Button,{className:"py-4 w-full flex justify-between",children:[(0,x.jsx)(S,{size:"lead",children:"Collection"}),(0,x.jsx)(ut,{direction:i?"up":"down"})]}),(0,x.jsx)(he.Panel,{children:(0,x.jsx)("ul",{className:"py-2",children:s})})]})}),(0,x.jsx)(V,{as:"h4",size:"lead",className:"pb-4",children:"Filter By"}),(0,x.jsx)("div",{className:"divide-y",children:e.map(i=>(0,x.jsx)(he,{as:"div",className:"w-full",children:({open:l})=>(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(he.Button,{className:"py-4 w-full flex justify-between",children:[(0,x.jsx)(S,{size:"lead",children:i.label}),(0,x.jsx)(ut,{direction:l?"up":"down"})]}),(0,x.jsx)(he.Panel,{children:(0,x.jsx)("ul",{className:"py-2",children:i.values?.map(u=>(0,x.jsx)("li",{className:"pb-4",children:a(i,u)},u.id))},i.id)},i.id)]})},i.id))})]})})}function Hs({filters:e=[]}){let[t]=Mt(),r=xe();return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(V,{as:"h4",size:"lead",className:"pb-4",children:"Applied filters"}),(0,x.jsx)("div",{className:"flex flex-wrap gap-2",children:e.map(o=>(0,x.jsxs)(Ne,{to:_s(o,t,r),className:"rounded-full border px-2 flex gap",children:[(0,x.jsx)("span",{className:"flex-grow",children:o.label}),(0,x.jsx)("span",{children:(0,x.jsx)(Pn,{})})]},`${o.label}-${o.urlParam}`))})]})}function _s(e,t,r){let o=new URLSearchParams(t);if(e.urlParam.key==="variantOption"){let a=o.getAll("variantOption").filter(s=>!s.includes(e.urlParam.value));o.delete(e.urlParam.key);for(let s of a)o.append(e.urlParam.key,s)}else o.delete(e.urlParam.key);return`${r.pathname}?${o.toString()}`}function $s(e,t,r){return t.set("sort",e),`${r.pathname}?${t.toString()}`}function Bs(e,t,r,o){let n=new URLSearchParams(r),a=wn(e.type,t,n);return`${o.pathname}?${a.toString()}`}var Us=500;function Vs({max:e,min:t}){let r=xe(),o=(0,lt.useMemo)(()=>new URLSearchParams(r.search),[r.search]),n=Ft(),[a,s]=(0,lt.useState)(t?String(t):""),[i,l]=(0,lt.useState)(e?String(e):"");return cr(()=>{if((a===""||a===String(t))&&(i===""||i===String(e)))return;let d={};a!==""&&(d.min=a),i!==""&&(d.max=i);let y=wn("PRICE_RANGE",{price:d},o);n(`${r.pathname}?${y.toString()}`)},Us,[a,i]),(0,x.jsxs)("div",{className:"flex flex-col",children:[(0,x.jsxs)("label",{className:"mb-4",children:[(0,x.jsx)("span",{children:"from"}),(0,x.jsx)("input",{name:"maxPrice",className:"text-black",type:"text",defaultValue:t,placeholder:"$",onChange:d=>{let y=d.target.value;s(y)}})]}),(0,x.jsxs)("label",{children:[(0,x.jsx)("span",{children:"to"}),(0,x.jsx)("input",{name:"minPrice",className:"text-black",type:"number",defaultValue:e,placeholder:"$",onChange:d=>{let y=d.target.value;l(y)}})]})]})}function wn(e,t,r){let o=typeof t=="string"?JSON.parse(t):t;switch(e){case"PRICE_RANGE":o.price.min&&r.set("minPrice",o.price.min),o.price.max&&r.set("maxPrice",o.price.max);break;case"LIST":Object.entries(o).forEach(([n,a])=>{if(typeof a=="string")r.set(n,a);else if(typeof a=="boolean")r.set(n,a.toString());else{let{name:s,value:i}=a,l=r.getAll("variantOption"),u=`${s}:${i}`;l.includes(u)||r.append("variantOption",u)}});break}return r}function Cn(){let e=[{label:"Featured",key:"featured"},{label:"Price: Low - High",key:"price-low-high"},{label:"Price: High - Low",key:"price-high-low"},{label:"Best Selling",key:"best-selling"},{label:"Newest",key:"newest"}],[t]=Mt(),r=xe(),o=e.find(n=>n.key===t.get("sort"));return(0,x.jsxs)(Tt,{as:"div",className:"relative z-40",children:[(0,x.jsxs)(Tt.Button,{className:"flex items-center",children:[(0,x.jsxs)("span",{className:"px-2",children:[(0,x.jsx)("span",{className:"px-2 font-medium",children:"Sort by:"}),(0,x.jsx)("span",{children:(o||e[0]).label})]}),(0,x.jsx)(ut,{})]}),(0,x.jsx)(Tt.Items,{as:"nav",className:"rounded-sm bg-contrast flex flex-col absolute text-right right-0 p-4",children:e.map(n=>(0,x.jsx)(Tt.Item,{children:()=>(0,x.jsx)(Ne,{className:`block text-sm pb-2 px-3 ${o?.key===n.key?"font-bold":"font-normal"}`,to:$s(n.key,t,r),children:n.label})},n.label))})]})}var ct=p(C());function js({breadcrumbs:e}){if(!e||e.length===0)return null;let t=e.map((r,o)=>o===e.length-1?(0,ct.jsx)(S,{as:"span",children:r.title},r.id):(0,ct.jsxs)("span",{children:[(0,ct.jsx)(D,{to:`/collections/${r.handle}`,children:r.title}),(0,ct.jsx)("span",{className:"px-2",children:"/"})]},r.id));return(0,ct.jsx)("nav",{className:"flex items-center",children:t})}var Ws=p(C());function Lt({as:e="div",className:t,flow:r="row",gap:o="default",items:n=4,layout:a="default",...s}){let i={default:`grid-cols-1 ${n===2&&"md:grid-cols-2"} ${n===3&&"sm:grid-cols-3"} ${n>3&&"md:grid-cols-3"} ${n>=4&&"lg:grid-cols-4"}`,products:`grid-cols-2 ${n>=3&&"md:grid-cols-3"} ${n>=4&&"lg:grid-cols-4"}`,auto:"auto-cols-auto",blog:"grid-cols-1 md:grid-cols-2"},l={default:"grid gap-2 gap-y-6 md:gap-4 lg:gap-6",blog:"grid gap-6"},c=F({row:"grid-flow-row",col:"grid-flow-col"}[r],l[o],i[a],t);return(0,Ws.jsx)(e,{...s,className:c})}var dt=p(P());var Y=p(C());function Yr({count:e=4,heading:t="Shop Best Sellers",layout:r="drawer",onClose:o,query:n,reverse:a,sortKey:s="BEST_SELLING"}){let{load:i,data:l}=oe(),u=(0,dt.useMemo)(()=>Object.entries({count:e,sortKey:s,query:n,reverse:a}).map(([c,d])=>d?`${c}=${d}`:null).filter(Boolean).join("&"),[e,s,n,a]);return(0,dt.useEffect)(()=>{i(`/api/products?${u}`)},[i,u]),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(V,{format:!0,size:"copy",className:"t-4",children:t}),(0,Y.jsx)("div",{className:F(["grid grid-cols-2 gap-x-6 gap-y-8",r==="page"?"md:grid-cols-4 sm:grid-col-4":""]),children:(0,Y.jsx)(zs,{count:e,onClick:o,products:l?.products})})]})}function zs({count:e=4,onClick:t,products:r}){let o=(0,dt.useId)();return r?r?.length===0?(0,Y.jsx)(S,{format:!0,children:"No products found."}):(0,Y.jsx)(Y.Fragment,{children:r.map(n=>(0,Y.jsx)(We,{product:n,onClick:t},n.id))}):(0,Y.jsx)(Y.Fragment,{children:[...new Array(e)].map((n,a)=>(0,Y.jsxs)("div",{className:"grid gap-2",children:[(0,Y.jsx)(ar,{className:"aspect-[3/4]"}),(0,Y.jsx)(ar,{className:"w-32 h-4"})]},`${o+a}`))})}var Te=p(P());function Gs({connection:e,children:t=()=>null,autoLoadOnScroll:r=!0}){let n=ro().state==="loading",a=Boolean(r),s=a?r:{threshold:0,rootMargin:"1000px 0px 0px 0px"},{ref:i,inView:l}=ir(s),{endCursor:u,hasNextPage:c,hasPreviousPage:d,nextPageUrl:y,nodes:b,prevPageUrl:h,startCursor:v}=kn(e);return qs({disabled:!a,connection:{pageInfo:{startCursor:v,endCursor:u,hasPreviousPage:d,hasNextPage:c},nodes:b},inView:l,isLoading:n}),t({endCursor:u,hasNextPage:c,hasPreviousPage:d,isLoading:n,nextLinkRef:i,nextPageUrl:y,nodes:b,prevPageUrl:h,startCursor:v})}function kn(e){let[t,r]=(0,Te.useState)(e.nodes),{state:o,search:n}=xe(),i=new URLSearchParams(n).get("direction")==="previous",{hasNextPage:l,hasPreviousPage:u,startCursor:c,endCursor:d}=e.pageInfo,y=(0,Te.useMemo)(()=>{let v=o?.pageInfo?.startCursor===void 0?c:o.pageInfo.startCursor,w=o?.pageInfo?.endCursor===void 0?d:o.pageInfo.endCursor;o?.nodes&&(i?v=c:w=d);let m=o?.pageInfo?.hasPreviousPage===void 0?u:o.pageInfo.hasPreviousPage,T=o?.pageInfo?.hasNextPage===void 0?l:o.pageInfo.hasNextPage;return{startCursor:v,endCursor:w,hasPreviousPage:m,hasNextPage:T}},[i,o,l,u,c,d]),b=(0,Te.useMemo)(()=>{let v=new URLSearchParams(n);return v.set("direction","previous"),y.startCursor&&v.set("cursor",y.startCursor),`?${v.toString()}`},[n,y.startCursor]),h=(0,Te.useMemo)(()=>{let v=new URLSearchParams(n);return v.set("direction","next"),y.endCursor&&v.set("cursor",y.endCursor),`?${v.toString()}`},[n,y.endCursor]);return(0,Te.useEffect)(()=>{if(!o||!o?.nodes){r(e.nodes);return}r(i?[...e.nodes,...o.nodes]:[...o.nodes,...e.nodes])},[o,i,e.nodes]),{...y,prevPageUrl:b,nextPageUrl:h,nodes:t}}function qs({disabled:e,inView:t,isLoading:r,connection:o}){let n=xe(),a=Ft(),{pageInfo:{startCursor:s,endCursor:i,hasPreviousPage:l,hasNextPage:u},nodes:c}=o;(0,Te.useEffect)(()=>{if(!t||!u||!i||e||r)return;let d=n.pathname+`?index&cursor=${i}&direction=next`;a(d,{state:{pageInfo:{endCursor:i,hasPreviousPage:l,startCursor:s},nodes:c}})},[e,i,u,l,t,r,c,n.pathname,a,s])}var pt=p(C());function Vr({children:e,lines:t,className:r="",variant:o="primary",width:n="full",...a}){let[s]=ke(),i=s?.data?.selectedLocale,l=oe();return(0,pt.jsxs)(l.Form,{action:"/cart",method:"post",children:[(0,pt.jsx)("input",{type:"hidden",name:"cartAction",value:"ADD_TO_CART"}),(0,pt.jsx)("input",{type:"hidden",name:"countryCode",value:i.country}),(0,pt.jsx)("input",{type:"hidden",name:"lines",value:JSON.stringify(t)}),(0,pt.jsx)(de,{as:"button",type:"submit",width:n,variant:o,className:r,...a,children:e})]})}var N=p(C());function Ce({children:e,className:t,fill:r="currentColor",stroke:o,...n}){return(0,N.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...n,fill:r,stroke:o,className:F("w-5 h-5",t),children:e})}function In(e){return(0,N.jsxs)(Ce,{...e,stroke:e.stroke||"currentColor",children:[(0,N.jsx)("title",{children:"Menu"}),(0,N.jsx)("line",{x1:"3",y1:"6.375",x2:"17",y2:"6.375",strokeWidth:"1.25"}),(0,N.jsx)("line",{x1:"3",y1:"10.375",x2:"17",y2:"10.375",strokeWidth:"1.25"}),(0,N.jsx)("line",{x1:"3",y1:"14.375",x2:"17",y2:"14.375",strokeWidth:"1.25"})]})}function rr(e){return(0,N.jsxs)(Ce,{...e,stroke:e.stroke||"currentColor",children:[(0,N.jsx)("title",{children:"Close"}),(0,N.jsx)("line",{x1:"4.44194",y1:"4.30806",x2:"15.7556",y2:"15.6218",strokeWidth:"1.25"}),(0,N.jsx)("line",{y1:"-0.625",x2:"16",y2:"-0.625",transform:"matrix(-0.707107 0.707107 0.707107 0.707107 16 4.75)",strokeWidth:"1.25"})]})}function ut({direction:e="down",stroke:t="currentColor",...r}){let o;switch(e){case"down":o="rotate-0";break;case"up":o="rotate-180";break;case"left":o="-rotate-90";break;case"right":o="rotate-90";break;default:o="rotate-0"}return(0,N.jsxs)(Ce,{...r,className:`w-5 h-5 transition ${o}`,fill:"transparent",stroke:t,children:[(0,N.jsx)("title",{children:"Caret"}),(0,N.jsx)("path",{d:"M14 8L10 12L6 8",strokeWidth:"1.25"})]})}function En(e){return(0,N.jsxs)(Ce,{...e,children:[(0,N.jsx)("title",{children:"Bag"}),(0,N.jsx)("path",{fillRule:"evenodd",d:"M8.125 5a1.875 1.875 0 0 1 3.75 0v.375h-3.75V5Zm-1.25.375V5a3.125 3.125 0 1 1 6.25 0v.375h3.5V15A2.625 2.625 0 0 1 14 17.625H6A2.625 2.625 0 0 1 3.375 15V5.375h3.5ZM4.625 15V6.625h10.75V15c0 .76-.616 1.375-1.375 1.375H6c-.76 0-1.375-.616-1.375-1.375Z"})]})}function Xr(e){return(0,N.jsxs)(Ce,{...e,children:[(0,N.jsx)("title",{children:"Account"}),(0,N.jsx)("path",{fillRule:"evenodd",d:"M9.9998 12.625c-1.9141 0-3.6628.698-5.0435 1.8611C3.895 13.2935 3.25 11.7221 3.25 10c0-3.728 3.022-6.75 6.75-6.75 3.7279 0 6.75 3.022 6.75 6.75 0 1.7222-.645 3.2937-1.7065 4.4863-1.3807-1.1632-3.1295-1.8613-5.0437-1.8613ZM10 18c-2.3556 0-4.4734-1.0181-5.9374-2.6382C2.7806 13.9431 2 12.0627 2 10c0-4.4183 3.5817-8 8-8s8 3.5817 8 8-3.5817 8-8 8Zm0-12.5c-1.567 0-2.75 1.394-2.75 3s1.183 3 2.75 3 2.75-1.394 2.75-3-1.183-3-2.75-3Z"})]})}function eo(e){return(0,N.jsxs)(Ce,{...e,children:[(0,N.jsx)("title",{children:"Search"}),(0,N.jsx)("path",{fillRule:"evenodd",d:"M13.3 8.52a4.77 4.77 0 1 1-9.55 0 4.77 4.77 0 0 1 9.55 0Zm-.98 4.68a6.02 6.02 0 1 1 .88-.88l4.3 4.3-.89.88-4.3-4.3Z"})]})}function ln({stroke:e="currentColor",...t}){return(0,N.jsxs)(Ce,{...t,fill:"transparent",stroke:e,children:[(0,N.jsx)("title",{children:"Check"}),(0,N.jsx)("circle",{cx:"10",cy:"10",r:"7.25",strokeWidth:"1.25"}),(0,N.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m7.04 10.37 2.42 2.41 3.5-5.56"})]})}function Pn({stroke:e="currentColor",...t}){return(0,N.jsxs)(Ce,{...t,fill:"transparent",stroke:e,children:[(0,N.jsx)("title",{children:"Delete"}),(0,N.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})]})}function Qr(e){return(0,N.jsxs)(Ce,{...e,fill:"transparent",stroke:e.stroke||"currentColor",children:[(0,N.jsx)("title",{children:"Remove"}),(0,N.jsx)("path",{d:"M4 6H16",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,N.jsx)("path",{d:"M8.5 9V14",strokeLinecap:"round",strokeLinejoin:"round"}),(0,N.jsx)("path",{d:"M11.5 9V14",strokeLinecap:"round",strokeLinejoin:"round"}),(0,N.jsx)("path",{d:"M5.5 6L6 17H14L14.5 6",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round"}),(0,N.jsx)("path",{d:"M8 6L8 5C8 4 8.75 3 10 3C11.25 3 12 4 12 5V6",strokeWidth:"1.25"})]})}function Nn(e){return(0,N.jsxs)(Ce,{...e,fill:"transparent",stroke:e.stroke||"currentColor",children:[(0,N.jsx)("title",{children:"Filters"}),(0,N.jsx)("circle",{cx:"4.5",cy:"6.5",r:"2"}),(0,N.jsx)("line",{x1:"6",y1:"6.5",x2:"14",y2:"6.5"}),(0,N.jsx)("line",{x1:"4.37114e-08",y1:"6.5",x2:"3",y2:"6.5"}),(0,N.jsx)("line",{x1:"4.37114e-08",y1:"13.5",x2:"8",y2:"13.5"}),(0,N.jsx)("line",{x1:"11",y1:"13.5",x2:"14",y2:"13.5"}),(0,N.jsx)("circle",{cx:"9.5",cy:"13.5",r:"2"})]})}var Oe=p(P());var mr=p(P());function Sn(){let[e,t]=(0,mr.useState)(!1);return(0,mr.useEffect)(()=>{t(!0)},[]),e}function Tn(e){let t=oo(),r=[];for(let o of t){let n=o.submission?.formData;n&&n.get("cartAction")===e&&r.push(o)}return r}var f=p(C());function Ks({children:e,layout:t}){return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)("div",{className:"flex flex-col min-h-screen",children:[(0,f.jsx)("div",{className:"",children:(0,f.jsx)("a",{href:"#mainContent",className:"sr-only",children:"Skip to content"})}),(0,f.jsx)(Zs,{title:t?.shop.name??"Hydrogen",menu:t?.headerMenu}),(0,f.jsx)("main",{role:"main",id:"mainContent",className:"flex-grow",children:e})]}),(0,f.jsx)(ti,{menu:t?.footerMenu})]})}function Zs({title:e,menu:t}){let r=wr(),{isOpen:o,openDrawer:n,closeDrawer:a}=tr(),{isOpen:s,openDrawer:i,closeDrawer:l}=tr(),u=Tn("ADD_TO_CART");return(0,Oe.useEffect)(()=>{o||!u.length||n()},[u,o,n]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(Ys,{isOpen:o,onClose:a}),t&&(0,f.jsx)(Qs,{isOpen:s,onClose:l,menu:t}),(0,f.jsx)(ei,{isHome:r,title:e,menu:t,openCart:n}),(0,f.jsx)(Xs,{isHome:r,title:e,openCart:n,openMenu:i})]})}function Ys({isOpen:e,onClose:t}){let[r]=ke();return(0,f.jsx)(Rt,{open:e,onClose:t,heading:"Cart",openFrom:"right",children:(0,f.jsx)("div",{className:"grid",children:(0,f.jsx)(Oe.Suspense,{fallback:(0,f.jsx)(Jr,{}),children:(0,f.jsx)(vr,{resolve:r.data?.cart,children:o=>(0,f.jsx)(Zr,{layout:"drawer",onClose:t,cart:o})})})})})}function Qs({isOpen:e,onClose:t,menu:r}){return(0,f.jsx)(Rt,{open:e,onClose:t,openFrom:"left",heading:"Menu",children:(0,f.jsx)("div",{className:"grid",children:(0,f.jsx)(Js,{menu:r,onClose:t})})})}function Js({menu:e,onClose:t}){let r={link:"pb-1",linkActive:"pb-1 border-b -mb-px"};return(0,f.jsx)("nav",{className:"grid gap-4 p-6 sm:gap-6 sm:px-12 sm:py-8",children:(e?.items||[]).map(o=>(0,f.jsx)("span",{className:"block",children:(0,f.jsx)(D,{to:o.to,target:o.target,onClick:t,className:({isActive:n})=>n?r.linkActive:r.link,children:(0,f.jsx)(S,{as:"span",size:"copy",children:o.title})})},o.id))})}function Xs({title:e,isHome:t,openCart:r,openMenu:o}){let{y:n}=fr(),a={button:"relative flex items-center justify-center w-8 h-8",container:`${t?"bg-primary/80 dark:bg-contrast/60 text-contrast dark:text-primary shadow-darkHeader":"bg-contrast/80 text-primary"} ${n>50&&!t?"shadow-lightHeader ":""}flex lg:hidden items-center h-nav sticky backdrop-blur-lg z-40 top-0 justify-between w-full leading-none gap-4 px-4 md:px-8`},s=yr();return(0,f.jsxs)("header",{role:"banner",className:a.container,children:[(0,f.jsxs)("div",{className:"flex items-center justify-start w-full gap-4",children:[(0,f.jsx)("button",{onClick:o,className:a.button,children:(0,f.jsx)(In,{})}),(0,f.jsxs)(yt,{method:"get",action:s.lang?`/${s.lang}/search`:"/search",className:"items-center gap-2 sm:flex",children:[(0,f.jsx)("button",{type:"submit",className:a.button,children:(0,f.jsx)(eo,{})}),(0,f.jsx)(or,{className:t?"focus:border-contrast/20 dark:focus:border-primary/20":"focus:border-primary/20",type:"search",variant:"minisearch",placeholder:"Search",name:"q"})]})]}),(0,f.jsx)(D,{className:"flex items-center self-stretch leading-[3rem] md:leading-[4rem] justify-center flex-grow w-full h-full",to:"/",children:(0,f.jsx)(V,{className:"font-bold text-center",as:t?"h1":"h2",children:e})}),(0,f.jsxs)("div",{className:"flex items-center justify-end w-full gap-4",children:[(0,f.jsx)(D,{to:"/account",className:a.button,children:(0,f.jsx)(Xr,{})}),(0,f.jsx)(Ln,{isHome:t,openCart:r})]})]})}function ei({isHome:e,menu:t,openCart:r,title:o}){let{y:n}=fr(),a=yr(),s={link:"pb-1",linkActive:"pb-1 border-b -mb-px",button:"relative flex items-center justify-center w-8 h-8 focus:ring-primary/5",container:`${e?"bg-primary/80 dark:bg-contrast/60 text-contrast dark:text-primary shadow-darkHeader":"bg-contrast/80 text-primary"} ${n>50&&!e?"shadow-lightHeader ":""}hidden h-nav lg:flex items-center sticky transition duration-300 backdrop-blur-lg z-40 top-0 justify-between w-full leading-none gap-8 px-12 py-8`};return(0,f.jsxs)("header",{role:"banner",className:s.container,children:[(0,f.jsxs)("div",{className:"flex gap-12",children:[(0,f.jsx)(D,{className:"font-bold",to:"/",prefetch:"intent",children:o}),(0,f.jsx)("nav",{className:"flex gap-8",children:(t?.items||[]).map(i=>(0,f.jsx)(D,{to:i.to,target:i.target,prefetch:"intent",className:({isActive:l})=>l?s.linkActive:s.link,children:i.title},i.id))})]}),(0,f.jsxs)("div",{className:"flex items-center gap-1",children:[(0,f.jsxs)(yt,{method:"get",action:a.lang?`/${a.lang}/search`:"/search",className:"flex items-center gap-2",children:[(0,f.jsx)(or,{className:e?"focus:border-contrast/20 dark:focus:border-primary/20":"focus:border-primary/20",type:"search",variant:"minisearch",placeholder:"Search",name:"q"}),(0,f.jsx)("button",{type:"submit",className:s.button,children:(0,f.jsx)(eo,{})})]}),(0,f.jsx)(D,{to:"/account",className:s.button,children:(0,f.jsx)(Xr,{})}),(0,f.jsx)(Ln,{isHome:e,openCart:r})]})]})}function Ln({isHome:e,openCart:t}){let[r]=ke();return(0,f.jsx)(Oe.Suspense,{fallback:(0,f.jsx)(Rn,{count:0,dark:e,openCart:t}),children:(0,f.jsx)(vr,{resolve:r.data?.cart,children:o=>(0,f.jsx)(Rn,{dark:e,openCart:t,count:o?.totalQuantity||0})})})}function Rn({openCart:e,dark:t,count:r}){let o=Sn(),n=(0,Oe.useMemo)(()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(En,{}),(0,f.jsx)("div",{className:`${t?"text-primary bg-contrast dark:text-contrast dark:bg-primary":"text-contrast bg-primary"} absolute bottom-1 right-1 text-[0.625rem] font-medium subpixel-antialiased h-3 min-w-[0.75rem] flex items-center justify-center leading-none text-center rounded-full w-auto px-[0.125rem] pb-px`,children:(0,f.jsx)("span",{children:r||0})})]}),[r,t]);return o?(0,f.jsx)("button",{onClick:e,className:"relative flex items-center justify-center w-8 h-8 focus:ring-primary/5",children:n}):(0,f.jsx)(D,{to:"/cart",className:"relative flex items-center justify-center w-8 h-8 focus:ring-primary/5",children:n})}function ti({menu:e}){let t=wr(),r=e?e?.items?.length+1>4?4:e?.items?.length+1:[];return(0,f.jsxs)(Ve,{divider:t?"none":"top",as:"footer",role:"contentinfo",className:`grid min-h-[25rem] items-start grid-flow-row w-full gap-6 py-8 px-6 md:px-8 lg:px-12
|
|
5
|
-
border-b md:gap-8 lg:gap-12 grid-cols-1 md:grid-cols-2 lg:grid-cols-${r}
|
|
6
|
-
bg-primary dark:bg-contrast dark:text-primary text-contrast overflow-hidden`,children:[(0,f.jsx)(oi,{menu:e}),(0,f.jsx)(zr,{}),(0,f.jsxs)("div",{className:`self-end pt-8 opacity-50 md:col-span-2 lg:col-span-${r}`,children:["\xA9 ",new Date().getFullYear()," / Shopify, Inc. Hydrogen is an MIT Licensed Open Source project. This website is carbon\xA0neutral."]})]})}var ri=({item:e})=>e.to.startsWith("http")?(0,f.jsx)("a",{href:e.to,target:e.target,rel:"noopener noreferrer",children:e.title}):(0,f.jsx)(D,{to:e.to,target:e.target,prefetch:"intent",children:e.title});function oi({menu:e}){let t={section:"grid gap-4",nav:"grid gap-2 pb-6"};return(0,f.jsxs)(f.Fragment,{children:[(e?.items||[]).map(r=>(0,f.jsx)("section",{className:t.section,children:(0,f.jsx)(he,{children:({open:o})=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(he.Button,{className:"text-left md:cursor-default",children:(0,f.jsxs)(V,{className:"flex justify-between",size:"lead",as:"h3",children:[r.title,r?.items?.length>0&&(0,f.jsx)("span",{className:"md:hidden",children:(0,f.jsx)(ut,{direction:o?"up":"down"})})]})}),r?.items?.length>0?(0,f.jsx)("div",{className:`${o?"max-h-48 h-fit":"max-h-0 md:max-h-fit"} overflow-hidden transition-all duration-300`,children:(0,f.jsx)(Oe.Suspense,{"data-comment":"This suspense fixes a hydration bug in Disclosure.Panel with static prop",children:(0,f.jsx)(he.Panel,{static:!0,children:(0,f.jsx)("nav",{className:t.nav,children:r.items.map(n=>(0,f.jsx)(ri,{item:n},n.id))})})})}):null]})})},r.id))," "]})}export{A as a,Q as b,X as c,$e as d,E as e,J as f,R as g,ge as h,bt as i,wt as j,Fr as k,Vt as l,$t as m,_ as n,ue as o,ko as p,le as q,O as r,M as s,co as t,Je as u,tt as v,kt as w,G as x,Ie as y,et as z,H as A,he as B,Ks as C,F as D,S as E,V as F,Ve as G,Qa as H,or as I,nr as J,tn as K,Xa as L,Cc as M,We as N,rs as O,os as P,ar as Q,de as R,Zr as S,Jr as T,Ts as U,Rs as V,Ls as W,Ds as X,D as Y,Fs as Z,Ms as _,As as $,js as aa,Lt as ba,Gs as ca,Vr as da,rr as ea,ut as fa,ln as ga};
|
|
7
|
-
//# sourceMappingURL=/build/_shared/chunk-GHUOM4KB.js.map
|