shopify 4.9.4 → 4.9.6
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/analytics-BTM7UNF6.js +1 -0
- package/dist/analytics-KFRP2KGG.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-2YVSZFXJ.js → chunk-242NOO4T.js} +1 -1
- package/dist/{chunk-4ES7BJEK.js → chunk-27WWE5QN.js} +1 -1
- package/dist/{chunk-GPRZYFDE.js → chunk-2EFFU2J3.js} +1 -1
- package/dist/{chunk-3V4VL3SD.js → chunk-2TCPTRLF.js} +3 -3
- package/dist/{chunk-R7YJNDXW.js → chunk-36TJJREK.js} +1 -1
- package/dist/{chunk-LYIXRMQJ.js → chunk-3CSRZM3Q.js} +1 -1
- package/dist/{chunk-7HWMURCW.js → chunk-3EY3ULS6.js} +1 -1
- package/dist/{chunk-W4KE7AO6.js → chunk-3LR3IQRE.js} +1 -1
- package/dist/chunk-3OSGEQWG.js +4 -0
- package/dist/{chunk-C6IBY7NW.js → chunk-3QBQSNON.js} +1 -1
- package/dist/chunk-3WNWP3ZV.js +20 -0
- package/dist/{chunk-AVMNIZAJ.js → chunk-3XFVLDKZ.js} +1 -1
- package/dist/{chunk-Y3PY5LP7.js → chunk-43RTNZ6T.js} +1 -1
- package/dist/{chunk-TVCWDEVS.js → chunk-4CH5XVYP.js} +1 -1
- package/dist/{chunk-3LHE4GIX.js → chunk-4GD2RMV4.js} +1 -1
- package/dist/{chunk-AMLCWRHU.js → chunk-4LUOXUQX.js} +1 -1
- package/dist/{chunk-FEQHCE2E.js → chunk-4MLDRZ3X.js} +2 -2
- package/dist/{chunk-J4J2YXH3.js → chunk-4SOWK7OZ.js} +1 -1
- package/dist/{chunk-6YDLNP4G.js → chunk-4UROHXMF.js} +1 -1
- package/dist/{chunk-GSE6FXZU.js → chunk-4XDMN6DI.js} +1 -1
- package/dist/{chunk-43URS56H.js → chunk-4XVDLMXZ.js} +1 -1
- package/dist/{chunk-A2VCTDKH.js → chunk-5EVQSYMN.js} +1 -1
- package/dist/chunk-5IQ42V5M.js +11 -0
- package/dist/{chunk-LKXFHYLI.js → chunk-5K7B3MYY.js} +1 -1
- package/dist/chunk-5LDJ4CAJ.js +3 -0
- package/dist/{chunk-AYIU6Z4C.js → chunk-5W3YFFC2.js} +1 -1
- package/dist/{chunk-UQ6ALA3Y.js → chunk-5WN5FGRS.js} +1 -1
- package/dist/{chunk-73D5O7A3.js → chunk-5YMLUN2H.js} +1 -1
- package/dist/{chunk-EMH7OHCW.js → chunk-6AFURA34.js} +1 -1
- package/dist/{chunk-PFXNBHQQ.js → chunk-6ALQJACW.js} +1 -1
- package/dist/{chunk-4O7LK5RG.js → chunk-6HC6JBXZ.js} +1 -1
- package/dist/{chunk-ZTICX3AO.js → chunk-6I5ATJK6.js} +1 -1
- package/dist/{chunk-RXTLNUPF.js → chunk-6KWTCDUU.js} +1 -1
- package/dist/{chunk-RUHQNF2W.js → chunk-6LHYAB44.js} +1 -1
- package/dist/{chunk-LLPB6JN5.js → chunk-6M36S2RZ.js} +1 -1
- package/dist/{chunk-DSS4ECIH.js → chunk-6MELTJU3.js} +1 -1
- package/dist/{chunk-PHG4DASY.js → chunk-6R4CZJEP.js} +1 -1
- package/dist/{chunk-R3KSOCMB.js → chunk-6XKLKUE3.js} +1 -1
- package/dist/chunk-77G2GTZU.js +1 -0
- package/dist/{chunk-EO4YJFMY.js → chunk-7JAZMNHL.js} +1 -1
- package/dist/{chunk-QAJZUJR5.js → chunk-7VH257QN.js} +1 -1
- package/dist/{chunk-Q43LBSPT.js → chunk-7VHNMRXX.js} +1 -1
- package/dist/{chunk-PVAZCZSY.js → chunk-7XGP35CV.js} +1 -1
- package/dist/{chunk-LWU5TKNA.js → chunk-A5RXJNQ5.js} +1 -1
- package/dist/{chunk-RSC5NQAT.js → chunk-A7KQUQLZ.js} +1 -1
- package/dist/{chunk-N55MSO3X.js → chunk-AQRJ76WH.js} +1 -1
- package/dist/{chunk-7HNRK2CR.js → chunk-AY5OUOJX.js} +1 -1
- package/dist/{chunk-7VAKNVFD.js → chunk-B6BTX7WU.js} +1 -1
- package/dist/{chunk-NGSEF3UX.js → chunk-BAAM465I.js} +1 -1
- package/dist/{chunk-IPZ6LUJV.js → chunk-BAPGKXWM.js} +1 -1
- package/dist/chunk-BSNPN72J.js +5 -0
- package/dist/{chunk-4O5GQ3DS.js → chunk-BUERBYLS.js} +1 -1
- package/dist/{chunk-D3KFKT4D.js → chunk-BYZU7YS7.js} +1 -1
- package/dist/{chunk-UU6BRRYS.js → chunk-CNHSSTET.js} +1 -1
- package/dist/{chunk-67EBF76X.js → chunk-CUKGLLVJ.js} +1 -1
- package/dist/{chunk-K3HUQLIC.js → chunk-CYXIVHAF.js} +1 -1
- package/dist/{chunk-VGBUN3CZ.js → chunk-D2XXDJOB.js} +1 -1
- package/dist/{chunk-HQJ62PII.js → chunk-D65CUTKT.js} +1 -1
- package/dist/{chunk-KQFA5YTT.js → chunk-DP64USHX.js} +1 -1
- package/dist/{chunk-NU5WLZ6Y.js → chunk-DWMRVMKX.js} +1 -1
- package/dist/{chunk-ALK66U3O.js → chunk-DXDKHVOZ.js} +1 -1
- package/dist/{chunk-TPHHQAUD.js → chunk-DXVMT37F.js} +1 -1
- package/dist/{chunk-TFXUDHCP.js → chunk-EBAV3Z54.js} +1 -1
- package/dist/{chunk-YHESTFMZ.js → chunk-ECUMY7EP.js} +1 -1
- package/dist/{chunk-4JGWKUJN.js → chunk-EDUQUCXK.js} +1 -1
- package/dist/chunk-EGWRLGF4.js +1 -0
- package/dist/{chunk-S36VGP37.js → chunk-FASYFQVN.js} +1 -1
- package/dist/{chunk-NYYXH2SX.js → chunk-FJUE4LQ6.js} +1 -1
- package/dist/{chunk-XNVOKAF2.js → chunk-FLKGDGRR.js} +1 -1
- package/dist/{chunk-GM4EFJJF.js → chunk-FMFU75ON.js} +1 -1
- package/dist/{chunk-MW3IMZJ5.js → chunk-FMT52ZOY.js} +1 -1
- package/dist/{chunk-YBSX53QP.js → chunk-FRHB4IFP.js} +1 -1
- package/dist/{chunk-4ZNBEMRT.js → chunk-FSWOB535.js} +3 -3
- package/dist/{chunk-HJHS23Q3.js → chunk-FUJAJKL2.js} +1 -1
- package/dist/{chunk-HPM3HF7A.js → chunk-FX27WXGC.js} +1 -1
- package/dist/{chunk-SNE4RHM4.js → chunk-G73DLMVM.js} +1 -1
- package/dist/{chunk-ZEBMW5KS.js → chunk-G76W6NZP.js} +1 -1
- package/dist/chunk-G7HOEDC3.js +6 -0
- package/dist/{chunk-SQAS5RVZ.js → chunk-GAWWWWUZ.js} +1 -1
- package/dist/{chunk-6IMHGT7F.js → chunk-GB3AA3X5.js} +1 -1
- package/dist/{chunk-ONF7XXEL.js → chunk-GDNCENVE.js} +1 -1
- package/dist/{chunk-IGDVKRB4.js → chunk-HCKLWXCL.js} +1 -1
- package/dist/{chunk-Z6X2GT6Q.js → chunk-HK3GFNMW.js} +1 -1
- package/dist/{chunk-XGKCPD6W.js → chunk-HP4GSH4V.js} +1 -1
- package/dist/{chunk-4IFY7V7W.js → chunk-HUWP2XMA.js} +1 -1
- package/dist/{chunk-J4NBPC57.js → chunk-HYLSV7GC.js} +1 -1
- package/dist/{chunk-MCNK5SJ6.js → chunk-I3QLXR5S.js} +1 -1
- package/dist/{chunk-6MC2BEW4.js → chunk-IAFTSCIL.js} +1 -1
- package/dist/{chunk-OE3HSNSE.js → chunk-ICRQVAFM.js} +1 -1
- package/dist/{chunk-NCVGCVQ5.js → chunk-IRF43DMG.js} +1 -1
- package/dist/{chunk-5BTLE67Z.js → chunk-ITO5UZMZ.js} +1 -1
- package/dist/{chunk-MMQZO2W2.js → chunk-J47LE4T7.js} +1 -1
- package/dist/{chunk-47IQIIFX.js → chunk-J6XOTLT5.js} +1 -1
- package/dist/{chunk-DMDLJRLW.js → chunk-JDAQL76H.js} +1 -1
- package/dist/{chunk-QPQS2YU3.js → chunk-JNHEAOMV.js} +1 -1
- package/dist/{chunk-UEBUGSBT.js → chunk-JTEP5MP2.js} +1 -1
- package/dist/{chunk-XWQM2NZ2.js → chunk-KACAGYNQ.js} +1 -1
- package/dist/{chunk-MW3JKGJH.js → chunk-KCO5GEOP.js} +1 -1
- package/dist/{chunk-3G2ZQ2EF.js → chunk-KK6PJIJT.js} +1 -1
- package/dist/{chunk-QTLGMJDW.js → chunk-KW5SQ6PG.js} +1 -1
- package/dist/{chunk-DEF2G7S4.js → chunk-LXCVWQK4.js} +1 -1
- package/dist/{chunk-PG4S5HJJ.js → chunk-MEWNJLRS.js} +1 -1
- package/dist/{chunk-B3M3KIOU.js → chunk-MJIGXNI3.js} +1 -1
- package/dist/{chunk-WEXOA4C4.js → chunk-MKNCBJVY.js} +1 -1
- package/dist/{chunk-I5PQZRYM.js → chunk-MLZAI55C.js} +1 -1
- package/dist/{chunk-66YRAUWX.js → chunk-MNYLFNXN.js} +1 -1
- package/dist/{chunk-SZI6G247.js → chunk-N5YS4PAM.js} +1 -1
- package/dist/{chunk-VNFUCH6T.js → chunk-NB2KT7G6.js} +1 -1
- package/dist/{chunk-RJSQMKKS.js → chunk-NLXVPUOO.js} +1 -1
- package/dist/{chunk-GE4MLO3C.js → chunk-NQ5PKMPV.js} +1 -1
- package/dist/{chunk-YTR5JHNJ.js → chunk-NQVG4W5U.js} +1 -1
- package/dist/{chunk-PB5ZZET5.js → chunk-NY5ESCDK.js} +1 -1
- package/dist/{chunk-QUXQM3S3.js → chunk-O4Q3UXIN.js} +1 -1
- package/dist/{chunk-GZ7VGCVW.js → chunk-ON4RFEHN.js} +1 -1
- package/dist/{chunk-CLD3NZYD.js → chunk-OPIEU37B.js} +1 -1
- package/dist/{chunk-4TFJ5RW7.js → chunk-OTQUZLAC.js} +1 -1
- package/dist/{chunk-WEPO4J2F.js → chunk-OYMJI3MD.js} +1 -1
- package/dist/{chunk-UIC7K2HX.js → chunk-PCWXGO4K.js} +1 -1
- package/dist/{chunk-K7D53KSJ.js → chunk-PDAOTRLF.js} +1 -1
- package/dist/{chunk-IDKRJ2F4.js → chunk-PI6M7EZF.js} +1 -1
- package/dist/{chunk-G7JW4UIM.js → chunk-PJ273A7N.js} +1 -1
- package/dist/{chunk-YHCP326A.js → chunk-PUMOQZDB.js} +1 -1
- package/dist/{chunk-O5FFMTJE.js → chunk-PZA7BBAC.js} +4 -4
- package/dist/{chunk-Q37WAD6F.js → chunk-QF453PH7.js} +1 -1
- package/dist/{chunk-Q2XLIWG4.js → chunk-QFMATBKM.js} +1 -1
- package/dist/chunk-QG3GJSLN.js +15 -0
- package/dist/chunk-QLHPTMIH.js +1 -0
- package/dist/{chunk-JYGZD4HM.js → chunk-QMFD6EWX.js} +1 -1
- package/dist/{chunk-37BGAWAW.js → chunk-QREFTU4W.js} +1 -1
- package/dist/{chunk-UWI76E2L.js → chunk-QY73XOBU.js} +3 -3
- package/dist/{chunk-FQL2WEKX.js → chunk-QYV5QN44.js} +1 -1
- package/dist/{chunk-BOE2ST6J.js → chunk-ROUPL6WR.js} +1 -1
- package/dist/{chunk-VMNOSVPT.js → chunk-RV54HI5A.js} +1 -1
- package/dist/{chunk-6A4H3HPY.js → chunk-S43YCHAN.js} +1 -1
- package/dist/chunk-SAA32TAK.js +5 -0
- package/dist/{chunk-XNPUZRWP.js → chunk-SBVYAGNC.js} +1 -1
- package/dist/{chunk-YYA5VGDW.js → chunk-SFQGGQDB.js} +1 -1
- package/dist/{chunk-FK7GA4QQ.js → chunk-SM3X5GTB.js} +1 -1
- package/dist/{chunk-F3PZGSOY.js → chunk-SNBJDHF2.js} +1 -1
- package/dist/{chunk-HASIOUH2.js → chunk-SPWX6OQR.js} +1 -1
- package/dist/{chunk-LJIJEGND.js → chunk-ST75AW7Z.js} +1 -1
- package/dist/{chunk-45SZ5PSE.js → chunk-SUIVO7GI.js} +1 -1
- package/dist/{chunk-7556AIVG.js → chunk-T2RE2K3N.js} +1 -1
- package/dist/{chunk-HLPAVELJ.js → chunk-TC63IUVI.js} +1 -1
- package/dist/{chunk-PO5T44H3.js → chunk-TFVIG4I7.js} +1 -1
- package/dist/{chunk-7SJHVJ3W.js → chunk-TJ2QQ2YQ.js} +1 -1
- package/dist/{chunk-MUM34KUM.js → chunk-TM3PHZKF.js} +1 -1
- package/dist/{chunk-N5AZZYQA.js → chunk-TV37VCLT.js} +1 -1
- package/dist/{chunk-YT27FIQN.js → chunk-TYBZNIRM.js} +2 -2
- package/dist/{chunk-QO5RNGWA.js → chunk-U5U5E7K5.js} +1 -1
- package/dist/chunk-UPAV44WQ.js +1 -0
- package/dist/{chunk-WLWHCUPZ.js → chunk-UQPAHTBH.js} +1 -1
- package/dist/{chunk-PP4VCR4Y.js → chunk-UZR3JSH2.js} +1 -1
- package/dist/{chunk-XSMCQLJW.js → chunk-V2XUMMTV.js} +1 -1
- package/dist/{chunk-4OCVXE5Y.js → chunk-VEYIT46B.js} +1 -1
- package/dist/{chunk-J6LQR2F6.js → chunk-VI7XF2HZ.js} +1 -1
- package/dist/{chunk-HQY6JM6G.js → chunk-VMMPBOTN.js} +1 -1
- package/dist/{chunk-ENQXB532.js → chunk-VOVBMABU.js} +1 -1
- package/dist/{chunk-FO2R6KHG.js → chunk-VVHUYIID.js} +1 -1
- package/dist/{chunk-DYPZX7MW.js → chunk-VWKMTYCN.js} +1 -1
- package/dist/chunk-VYEPVORB.js +2 -0
- package/dist/{chunk-Y62EMOQA.js → chunk-W2PLTMI4.js} +1 -1
- package/dist/{chunk-BVB3DTNE.js → chunk-WPVPRCCD.js} +1 -1
- package/dist/{chunk-4TZCRMBJ.js → chunk-WQG4QDC5.js} +1 -1
- package/dist/{chunk-YPCXVZ2N.js → chunk-WYAOSSZV.js} +1 -1
- package/dist/{chunk-UNHT4ZFP.js → chunk-X4767EMJ.js} +1 -1
- package/dist/chunk-X5VPFSL3.js +16 -0
- package/dist/{chunk-HSYMUYEZ.js → chunk-XAATRAER.js} +1 -1
- package/dist/{chunk-MJZSSCGD.js → chunk-XEL7K7VT.js} +1 -1
- package/dist/chunk-XUZXQC5H.js +1 -0
- package/dist/{chunk-NCRWOW6F.js → chunk-XWQIX3T7.js} +1 -1
- package/dist/{chunk-6HPUOCFF.js → chunk-Y4USH7MD.js} +1 -1
- package/dist/{chunk-RK2V6OIJ.js → chunk-Y54LCKE7.js} +1 -1
- package/dist/{chunk-2PDVBGQH.js → chunk-YMB7HPMN.js} +1 -1
- package/dist/{chunk-35WQTGN3.js → chunk-Z5RA2TNT.js} +1 -1
- package/dist/{chunk-ZEE32UH6.js → chunk-Z6TXDTXR.js} +1 -1
- package/dist/{chunk-LOWSU4BB.js → chunk-ZG4M63GT.js} +1 -1
- package/dist/chunk-ZHTG2T5Y.js +1 -0
- package/dist/{chunk-VS7QVU3Z.js → chunk-ZY353ZNN.js} +1 -1
- package/dist/{chunk-NT4A37HG.js → chunk-ZYZU37KT.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +1 -1
- package/dist/cli/commands/app/env/pull.js +1 -1
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -1
- package/dist/cli/commands/app/graphiql.js +1 -1
- package/dist/cli/commands/app/import/channel-config.js +1 -1
- package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/security/check.js +1 -1
- package/dist/cli/commands/app/security/clean.js +1 -1
- package/dist/cli/commands/app/security/instructions.js +1 -1
- package/dist/cli/commands/app/security/record.js +1 -1
- package/dist/cli/commands/app/security/review.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
- package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.js +1 -1
- package/dist/cli/commands/doc/search.js +1 -1
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/send-analytics.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/help.js +1 -1
- package/dist/{command-json-schema-SS4GDJTQ.js → command-json-schema-V4OTY4MX.js} +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-54YJCIDK.js → conf-store-LWBJNYPC.js} +1 -1
- package/dist/{custom-oclif-loader-3UBH7Q7R.js → custom-oclif-loader-KS3MBI4W.js} +1 -1
- package/dist/{deprecations-ZX7ZKF6L.js → deprecations-NAJ4JNON.js} +1 -1
- package/dist/dist-HTXIQ6TQ.js +1 -0
- package/dist/dist-XYFXZS4I.js +1 -0
- package/dist/environments-65BJOXLA.js +1 -0
- package/dist/{error-AA6LW3PN.js → error-TTZRUUUI.js} +1 -1
- package/dist/error-handler-TJG7IDLT.js +1 -0
- package/dist/{fs-4QZCAEP7.js → fs-VHUA5OHC.js} +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{is-global-FKG327CG.js → is-global-7BDGLRND.js} +1 -1
- package/dist/{json-error-32ETFU3V.js → json-error-OSDR2S56.js} +1 -1
- package/dist/{local-R3UAQN7T.js → local-BQ5FJYX6.js} +1 -1
- package/dist/{metadata-JWJG4JV4.js → metadata-GFLDQ2I7.js} +1 -1
- package/dist/{node-package-manager-M4XHUTQR.js → node-package-manager-FQZ7XFU4.js} +1 -1
- package/dist/notifications-system-BESW6Q65.js +1 -0
- package/dist/{os-FEHBQQKP.js → os-GPZXOHDI.js} +1 -1
- package/dist/{output-2LS5AOAH.js → output-TLYSXAUL.js} +1 -1
- package/dist/{system-TMD2LYZM.js → system-KVPOFMPA.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-FNPICAAH.js → ui-CM3VQLC2.js} +1 -1
- package/dist/upgrade-CPOWDAOD.js +1 -0
- package/dist/version-ILYYDNX7.js +1 -0
- package/dist/version-SN7J7ZYL.js +1 -0
- package/dist/{workerd-TKVRZK2F.js → workerd-SBI5B2H5.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/analytics-APDNTBDE.js +0 -1
- package/dist/analytics-LX52KYSE.js +0 -1
- package/dist/chunk-3C4WVKSO.js +0 -6
- package/dist/chunk-5JIJDUXX.js +0 -20
- package/dist/chunk-7A3RW2VM.js +0 -1
- package/dist/chunk-BIWG3FQQ.js +0 -5
- package/dist/chunk-BQ3U3CQV.js +0 -1
- package/dist/chunk-CQF5NDTJ.js +0 -4
- package/dist/chunk-CVFPY2SH.js +0 -3
- package/dist/chunk-DMNWSUKV.js +0 -5
- package/dist/chunk-GN66BRYF.js +0 -1
- package/dist/chunk-KTD7VLHL.js +0 -2
- package/dist/chunk-L4DFMMOI.js +0 -1
- package/dist/chunk-LJZTSQRD.js +0 -11
- package/dist/chunk-PWS4VFSD.js +0 -1
- package/dist/chunk-R74WHKHH.js +0 -15
- package/dist/chunk-XUUIBSLW.js +0 -1
- package/dist/chunk-Y743UVBS.js +0 -16
- package/dist/dist-JMNE7MP6.js +0 -1
- package/dist/dist-M2AXGBOL.js +0 -1
- package/dist/environments-KD2IDYPG.js +0 -1
- package/dist/error-handler-4VW3AV2G.js +0 -1
- package/dist/notifications-system-QVM2JWKB.js +0 -1
- package/dist/upgrade-YYPP5VZY.js +0 -1
- package/dist/version-OX3MORI6.js +0 -1
- package/dist/version-P7D5ME4Z.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-6LHYAB44.js";import{b as e}from"./chunk-FSWOB535.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{P as B}from"./chunk-
|
|
1
|
+
import{P as B}from"./chunk-2TCPTRLF.js";import{u as O}from"./chunk-J6XOTLT5.js";import{J as w,j as m}from"./chunk-QY73XOBU.js";import{c as g,e as s,g as o}from"./chunk-VKWPEFWQ.js";var f=g((Q,c)=>{o();function j(r,e,t,n){for(var a=-1,i=r==null?0:r.length;++a<i;){var u=r[a];e(n,u,t(u),r)}return n}c.exports=j});var A=g((S,h)=>{o();var l=O();function E(r,e,t,n){return l(r,function(a,i,u){e(n,a,t(a),u)}),n}h.exports=E});var p=g((U,q)=>{o();var G=f(),I=A(),V=w(),C=m();function D(r,e){return function(t,n){var a=C(t)?G:I,i=e?e():{};return a(t,r,V(n,2),i)}}q.exports=D});var x=g((X,v)=>{o();var F=B(),H=p(),J=Object.prototype,K=J.hasOwnProperty,L=H(function(r,e,t){K.call(r,t)?r[t].push(e):F(r,t,[e])});v.exports=L});var y=g((Z,b)=>{o();var M=p(),N=M(function(r,e,t){r[t?0:1].push(e)},function(){return[[],[]]});b.exports=N});o();var P=s(x()),d=s(y());function $(r,e){return(0,P.default)(r,e)}function k(r,e){return(0,d.default)(r,e)}export{$ as a,k as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as i,c as n}from"./chunk-
|
|
1
|
+
import{b as i,c as n}from"./chunk-DWMRVMKX.js";import{b as u}from"./chunk-FSWOB535.js";import{M as a}from"./chunk-2TCPTRLF.js";import{a as e}from"./chunk-B6BTX7WU.js";import{Ib as c,Lb as r,b as t}from"./chunk-QY73XOBU.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var m=e({name:"AuthLogoutResult",schema:t.object({status:t.literal("success")}).strict()}),o=class p extends u{static descriptionWithMarkdown="Logs you out of the Shopify account or Partner account and store.";static description=this.descriptionForHelp();static flags={...i,...n};static get jsonOutputSchema(){return m}async run(){let{flags:l}=await this.parse(p);await a(),l.json?c(m.encode({status:"success"})):r("Logged out from all the accounts")}};export{o as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as P}from"./chunk-
|
|
1
|
+
import{a as P}from"./chunk-XUZXQC5H.js";import{a as D}from"./chunk-TFVIG4I7.js";import{Aa as m,Ba as _,Ha as L}from"./chunk-X4767EMJ.js";import{b as A,c as $}from"./chunk-DWMRVMKX.js";import{A as R,z as F}from"./chunk-J6XOTLT5.js";import{a as S}from"./chunk-B6BTX7WU.js";import{i}from"./chunk-QF453PH7.js";import{Aa as N,Ib as v,Xa as T,b as s,fb as O,ya as C}from"./chunk-QY73XOBU.js";import{b as Y}from"./chunk-I3J63RFV.js";import{c as l,f as d,h as b,i as E}from"./chunk-6IDEDOXW.js";import{e as H,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function j({remoteApp:o,developerPlatformClient:e}){let t=await e.channelSpecExport(o);if(t.status===404)throw new i("The channel spec export endpoint is not available for this app.","Check that the app and organization are correct.");if(!t.ok){let r=typeof t.body?.reason=="string"?t.body.reason:void 0;if(t.status===426)throw new i(`Failed to fetch the channel spec export: ${r??"This version of the Shopify CLI is no longer supported."}`,"Upgrade the Shopify CLI and try again.");if(t.status===422)return{success:!1,reason:r??`http_${t.status}`};throw t.status===401||t.status===403?new i(`Failed to fetch the channel spec export: authentication failed (status ${t.status}).`,"Run `shopify auth logout` and try again."):new i(`Failed to fetch the channel spec export: the server responded with status ${t.status}.`,"Try again in a moment.")}let{handle:a,filename:p,toml:h,warnings:n}=t.body;if(typeof a!="string"||typeof p!="string"||typeof h!="string")throw new i("Failed to fetch the channel spec export: the response was missing required fields.");return{success:!0,handle:a,filename:p,toml:h,warnings:J(n)}}function J(o){return Array.isArray(o)?o.flatMap(e=>e&&typeof e=="object"&&typeof e.code=="string"&&typeof e.message=="string"?[e]:[]):[]}c();var k=s.object({code:s.string(),message:s.string()}),w=S({name:"ImportChannelConfigResult",schema:s.object({handle:s.string(),filename:s.string(),path:s.string(),toml:s.string(),warnings:s.array(k)}),definitions:{ChannelSpecExportWarning:k}});var u=l("extensions","channel-config"),pe=l(u,_),x="shopify.extension.toml",G=`name = "Channel config"
|
|
2
2
|
type = "${m}"
|
|
3
3
|
handle = "channel-config"
|
|
4
4
|
`,X=["extensions/*"],z={no_exportable_frozen_record:"This app doesn't have a channel spec that can be exported yet.",multiple_exportable_records:"This app has more than one channel spec, so it can't be exported automatically.",not_allowlisted:"This app isn't part of the channel spec export prototype yet.",contains_no_public_fields:"This app's channel spec has no public channel_config fields.",invalid_public_schema:"This app's channel spec doesn't match the public channel_config schema."};async function M(o){let{app:e,remoteApp:t,developerPlatformClient:a,force:p,json:h}=o,n=await j({remoteApp:t,developerPlatformClient:a});if(!n.success){let g=z[n.reason];throw g?new i(g):new i(`The channel spec for this app could not be exported (reason: ${n.reason}).`)}let{extensionDirectory:r,createExtension:y}=B(e),f=l(r,_,E(n.filename));if(!p&&await T(f))throw new i(`A channel spec already exists at ${d(e.directory,f)}.`,"Re-run with `--force` to replace it.");if(await N(b(f)),y&&await C(l(r,x),G),await C(f,n.toml),h){v(w.encode({handle:n.handle,filename:E(n.filename),path:d(e.directory,f),toml:n.toml,warnings:n.warnings}));return}n.warnings.forEach(g=>R({body:g.message})),F({headline:["Imported the channel spec for",{userInput:t.title},{char:"."}],body:["The spec was written to",{filePath:d(e.directory,f)},{char:"."},...y?["Also created",{filePath:d(e.directory,l(r,x))},"so the spec is included when your app is deployed."]:[]],nextSteps:["Review the generated spec and make any changes your channel needs.",["Run",{command:"shopify app dev"},"to try the spec on a development store before releasing it."],["Run",{command:"shopify app deploy"},"to deploy the spec as part of your app."]]})}function B(o){let e=o.allExtensions.filter(r=>r.type===m);if(e.length>1){let r=e.map(y=>d(o.directory,y.directory)).join(", ");throw new i(`This app has more than one ${m} extension (${r}).`,"Only one is allowed. Remove the extras and try again.")}if(e.length===1)return{extensionDirectory:e[0].directory,createExtension:!1};let t=o.configuration.extension_directories,a=t&&t.length>0?t:X;if(!a.some(r=>O(`${u}/${x}`,`${r}/*.extension.toml`)))throw new i(`Your shopify.app.toml only loads extensions from ${a.join(", ")}, so a new extension at ${u} wouldn't be deployed.`,`Create a ${m} extension in one of those directories with a ${x} like:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
1
|
+
import{a as s}from"./chunk-G76W6NZP.js";import{a as e}from"./chunk-6LHYAB44.js";import{a as o}from"./chunk-YMB7HPMN.js";import{b as i}from"./chunk-FSWOB535.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=class extends i{static description="View all the available UI kit components";static hiddenAliases=["kitchen-sink all"];static hidden=!0;async run(){await o(),await e(),await s()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as l,f as m}from"./chunk-
|
|
1
|
+
import{b as o,c as l,f as m}from"./chunk-X4767EMJ.js";import{A as a,S as h}from"./chunk-J6XOTLT5.js";import{Xa as f,ra as c}from"./chunk-QY73XOBU.js";import{c as s}from"./chunk-6IDEDOXW.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function d(n){if(n.features.includes("function")&&n.isJavaScript){let e=await m(n);return o(e.functionRunner)}return o()}function p(n){return n.configuration.build?.path?s(n.directory,n.configuration.build.path):n.outputPath}async function y(n,e){try{if(!await f(e))return;let i=c(e);if(!WebAssembly.validate(i))return;let t=new WebAssembly.Module(i);if(WebAssembly.Module.customSections(t,"name").length>0)return;if(n.isJavaScript){a({headline:"The profile won't contain names for your function.",body:"JavaScript functions built with Javy don't include a WebAssembly function name section, regardless of the wasm_opt setting. Function names will appear as <unknown> in the profile."});return}a({headline:"The profile won't contain names for your function.",body:["The built WebAssembly module doesn't contain a function name section. The default wasm-opt step removes this section, and the function compiler can also omit it. To preserve function names, set ",{userInput:"wasm_opt = false"}," under ",{userInput:"[extensions.build]"}," in shopify.extension.toml, configure the compiler to emit function names, and rebuild the function."]})}catch{}}async function W(n){let e=n.functionExtension,i=await d(e);await l(i);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.profile&&t.push("--profile"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let r=p(e);return n.profile&&await y(e,r),h(i.path,["-f",r,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{W as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as N}from"./chunk-LFOBYEWG.js";import{C as E}from"./chunk-
|
|
1
|
+
import{b as N}from"./chunk-LFOBYEWG.js";import{C as E}from"./chunk-2TCPTRLF.js";import{V as j}from"./chunk-J6XOTLT5.js";import{a as O}from"./chunk-5YMLUN2H.js";import{b}from"./chunk-HILYTMVA.js";import{d as _}from"./chunk-6MELTJU3.js";import{i as f}from"./chunk-QF453PH7.js";import{Cb as d,Eb as h,Ib as S,da as T}from"./chunk-QY73XOBU.js";import{d as P}from"./chunk-JTEP5MP2.js";import{b as A}from"./chunk-I3J63RFV.js";import{a as w}from"./chunk-JD5P5RAJ.js";import{e as C,g as F}from"./chunk-VKWPEFWQ.js";F();var l=C(A()),g=class extends l.Command{static baseFlags={"json-schema":l.Flags.boolean({description:"Print the command's JSON schemas.",env:"SHOPIFY_FLAG_JSON_SCHEMA"})};static descriptionWithMarkdown;static get jsonOutputSchema(){}static get requiresSyncAnalytics(){return!1}static nonTTYFlagRequirements(e){return[]}static descriptionForHelp(){let e=(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)');return W(e,this.jsonOutputSchema)}static descriptionWithoutMarkdown(){return this.descriptionForHelp()}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(e){e.skipOclifErrorHandling=!0;let{errorHandler:t}=await import("./error-handler-TJG7IDLT.js");return await t(e,this.config),l.Errors.handle(e)}async _run(){return O(this.argv,()=>super._run())}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),N(this.id??""),!P()){let{registerCleanBugsnagErrorsFromWithinPlugins:t}=await import("./error-handler-TJG7IDLT.js");await t(this.config)}await Y(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:e}=await import("./notifications-system-BESW6Q65.js");return await e(),super.init()}showNpmFlagWarning(){let e=this.constructor;Object.keys(e.flags||{}).map(r=>`npm_config_${T(r).replace(/^no_/,"")}`).some(r=>process.env[r]!==void 0)&&import("./ui-CM3VQLC2.js").then(({renderWarning:r})=>{r({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){w(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(S(`
|
|
2
2
|
SHOPIFY_CLI_TIMESTAMP_START
|
|
3
3
|
{ "timestamp": ${Date.now()} }
|
|
4
4
|
SHOPIFY_CLI_TIMESTAMP_END
|
|
@@ -7,7 +7,7 @@ import{b as N}from"./chunk-LFOBYEWG.js";import{C as E}from"./chunk-3V4VL3SD.js";
|
|
|
7
7
|
|
|
8
8
|
${d.cyan(i)}
|
|
9
9
|
|
|
10
|
-
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-
|
|
10
|
+
${a} in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the options in the command, or run the command in an interactive environment such as your local terminal.")}applicableNonTTYFlagRequirements(e){let t=this.constructor,n={...t.baseFlags,...t.flags},r=Object.entries(n).filter(([,a])=>!!a.requiredIfNonInteractive).map(([a])=>({flags:[a]})),i=(t.nonTTYFlagRequirements?.(e)??[]).filter(a=>a.when?.(e)??!0);return[...r,...i]}async resultWithEnvironment(e,t,n){let r=e.flags,i=this.environmentsFilename();if(!i)return e;let{environmentFilePath:a}=await import("./environments-65BJOXLA.js"),o=await a(i,{from:r.path}),m=[];r.environment&&(m=Array.isArray(r.environment)?r.environment:[r.environment]);let u=m.length>0;if(!o&&!u||u&&m.length>1)return e;let{environment:c,isDefaultEnvironment:p}=await this.loadEnvironmentForCommand(r.path,i,m[0]);if(!c||p&&!$(t?.flags,"environment"))return e;let v=await super.parse(M(t),n),y=await super.parse(t,[...n??this.argv,...R(c,t,v),...p?["--environment","default"]:[]]);return q(v.flags,y.flags,p?"default":m[0],c),y}async loadEnvironmentForCommand(e,t,n){let{loadEnvironment:r}=await import("./environments-65BJOXLA.js");return n?{environment:await r(n,t,{from:e}),isDefaultEnvironment:!1}:{environment:await r("default",t,{from:e,silent:!0}),isDefaultEnvironment:!0}}};async function I(s){await _(()=>({cmd_all_verbose:s.verbose,cmd_all_path_override:s.path!==void 0,cmd_all_path_override_hash:s.path===void 0?void 0:b(s.path)}))}function q(s,e,t,n){let r={};for(let[a,o]of Object.entries(e)){let m=Object.prototype.hasOwnProperty.call(s,a),u=Object.prototype.hasOwnProperty.call(n,a);if(!m&&u){let c=a==="password"?`********${o.substr(-4)}`:o;r[a]=c}}if(Object.keys(r).length===0)return;let i=Object.entries(r).map(([a,o])=>`${a}: ${o}`);import("./ui-CM3VQLC2.js").then(({renderInfo:a})=>{a({headline:["Using applicable flags from",{userInput:t},"environment:"],body:[{list:{items:i}}]})})}function M(s){return s?.flags?{...s,flags:Object.fromEntries(Object.entries(s.flags).map(([e,t])=>{let n={...t};return delete n.default,[e,n]}))}:s}function R(s,e,t){let n=[];for(let[r,i]of Object.entries(s)){let a=$(e?.flags,r),o=t.flags&&Object.prototype.hasOwnProperty.call(t.flags,r);if(a&&!o)if(typeof i=="boolean")if(i)n.push(`--${r}`);else throw new f(h`Environments can only specify true for boolean flags. Attempted to set ${d.yellow(r)} to false.`);else Array.isArray(i)?i.forEach(m=>n.push(`--${r}`,`${m}`)):n.push(`--${r}`,`${i}`)}return n}function $(s,e){return!!s&&Object.prototype.hasOwnProperty.call(s,e)}function W(s,e){if(!e)return s;let t=`Use \`--json-schema\` to print the result, error, and event schemas.
|
|
11
11
|
|
|
12
12
|
Output from \`--json\` conforms to the \`${e.name}\` schema.
|
|
13
13
|
|
|
@@ -16,5 +16,5 @@ ${JSON.stringify(e.jsonSchema,null,2)}
|
|
|
16
16
|
\`\`\``;return[s,t].filter(Boolean).join(`
|
|
17
17
|
|
|
18
18
|
`)}async function Y(s){let e=Array.from(s.plugins.values()),t=["@shopify/app","@shopify/plugin-cloudflare"],n=e.filter(i=>t.includes(i.name));if(n.length>0){let i=n.map(o=>` - shopify plugins remove ${o.name}`).join(`
|
|
19
|
-
`),{renderWarning:a}=await import("./ui-
|
|
19
|
+
`),{renderWarning:a}=await import("./ui-CM3VQLC2.js");a({headline:`Unsupported plugins detected: ${n.map(o=>o.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
|
|
20
20
|
${i}`]})}let r=e.filter(i=>!t.includes(i.name));s.plugins=new Map(r.map(i=>[i.name,i]))}var K=g;export{M as a,K as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as u,I as a,L as s,j as f,t as g,w as h,z as y}from"./chunk-
|
|
1
|
+
import{D as u,I as a,L as s,j as f,t as g,w as h,z as y}from"./chunk-7JAZMNHL.js";import{i as o}from"./chunk-QF453PH7.js";import{i as d}from"./chunk-6IDEDOXW.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();async function k(t,e){let r=u(t);if(await h(t.appDirectory,r))return;let{scan:n}=a(t,e);throw new o(`No app security check results for ${r} in ${t.appDirectory}.`,`Run \`${s(n)}\`.`)}async function T(t,e){await k(t,e);let r=g(t.appDirectory,u(t)),[n,i]=await Promise.all([b(r.deterministicFindingsPath,"deterministic"),b(r.agentFindingsPath,"agent")]),c=[S(n,"deterministic"),S(i,"agent")].filter(w=>w!==void 0);c.length>0&&D(c,a(t,e));let l=v(n),m=v(i);return{sources:{deterministic:l,agent:m},checks:f({deterministic:l?.document??null,agent:m?.document??null})}}async function b(t,e){return{path:t,result:await y(t,e)}}function S(t,e){if(t.result.status==="invalid")return{source:e,path:t.path,errors:t.result.errors}}function v(t){return t.result.status!=="ok"?null:{path:t.path,document:t.result.value}}function D(t,e){let r=t.length===1?"The app security check results could not be loaded because a results file is invalid.":"The app security check results could not be loaded because both results files are invalid.",n=[...t.map(i=>F(i.source,e,`${d(i.path)}.`)),["Or run",{command:s(e.clean)},"to delete both results files and start over."]];throw new o(r,null,n,t.map(R))}function F(t,e,r){return t==="deterministic"?["Run",{command:s(e.scan)},`to regenerate ${r}`]:["Have your coding agent run",{command:s(e.record)},`again to regenerate ${r}`]}function R(t){return{title:t.path,body:{list:{items:t.errors}}}}export{k as a,T as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,c as b,d as D,e as _}from"./chunk-
|
|
1
|
+
import{a as l,c as b,d as D,e as _}from"./chunk-HP4GSH4V.js";import{g as T,p as y,v as O}from"./chunk-43RTNZ6T.js";import{b as L,c as S}from"./chunk-DWMRVMKX.js";import{e as d}from"./chunk-KW5SQ6PG.js";import{y as v}from"./chunk-J6XOTLT5.js";import{Eb as s,Ib as F,Nb as a}from"./chunk-QY73XOBU.js";import{b as G}from"./chunk-I3J63RFV.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var w;function f(){return w??=new d({projectName:"shopify-cli-host-theme-conf"}),w}function E(t){return a(s`Getting host theme...`),f().get(t)}function Y(t,e){a(s`Setting host theme...`),f().set(t,e)}function C(t){a(s`Removing host theme...`),f().delete(t)}function j(t,e){return{title:t,body:{tabularData:e}}}async function I(t,e){let r=e.storeFqdn,p=new _({...l.reduce((n,i)=>(n[i]=t.role===i,n),{}),theme:t.id?.toString()??t.name}),m=await b(e),x=T(),H=E(r);if(p.any()&&(m=D(r,m,p)),t.json)return F(JSON.stringify(m,null,2));let A=m.map(({id:n,name:i,role:g})=>{let c="";return g&&(c=`[${g}]`,[x,H].includes(`${n}`)&&(c+=" [current]")),[i,c,`#${n}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];v({customSections:[...t.environment?[{title:`${r} theme library`,body:[{subdued:`Environment name: ${t.environment}`}]}]:[],j("",R)]})}var h=$(G(),1);var u=class extends O{static description="Lists the themes in your store, along with their IDs and statuses.";static flags={...L,...S,...y,role:h.Flags.custom({description:"Only list themes with the given role.",options:l,env:"SHOPIFY_FLAG_ROLE"})(),name:h.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:h.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,r){await I(e,r)}};export{E as a,Y as b,C as c,u as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-TJ2QQ2YQ.js";import{a as r,b as c}from"./chunk-W2PLTMI4.js";import{d as s}from"./chunk-DP64USHX.js";import{a}from"./chunk-XUZXQC5H.js";import{Ha as n}from"./chunk-X4767EMJ.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class d extends a{static summary="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.";static descriptionWithMarkdown="Schedules manual-billing subscriptions to migrate to Shopify-managed app pricing.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV columns: `shop_id`, `target_plan_handle`, and `price_behavior`.\n- Optional CSV column: `notification`.\n- Example header: `shop_id,target_plan_handle,price_behavior,notification`.\n- Example row: `123456789,pro,HONOR_BILLING_PRICE,WHEN_REQUIRED`.\n\n`price_behavior` must be `HONOR_BILLING_PRICE` or `PLAN_PRICE`. `notification` can be `OPT_OUT` or `WHEN_REQUIRED` and defaults to `WHEN_REQUIRED` when omitted or blank.\n\nValidation is atomic: the command submits no operations unless the entire CSV is valid. Valid rows are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.\n\nUse `--force` to skip confirmation and immediately submit every valid row. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:i}=await this.parse(d),{app:m,remoteApp:l}=await n({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),u=await p({action:"schedule",input:i.input??"-",clientId:l.apiKey,skipConfirmation:i.force,watch:i.watch,...i.watch&&!i.json?{onSubmissionAccepted:r}:{}}),e=c(u,{json:i.json,watch:i.watch});return e!==0&&(process.exitCode=e),{app:m}}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{H as m,I as d,x as c}from"./chunk-
|
|
1
|
+
import{H as m,I as d,x as c}from"./chunk-J6XOTLT5.js";import{Bb as w,Cb as n,Eb as a}from"./chunk-QY73XOBU.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();async function P(){let r,l=new Promise(function(e,i){r=e});await c({processes:[{prefix:"backend",action:async(e,i,s)=>{e.write("first backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second backend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third backend message"),await new Promise(t=>setTimeout(t,1e3)),r()}},{prefix:"frontend",action:async(e,i,s)=>{await l,e.write("first frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("second frontend message"),await new Promise(t=>setTimeout(t,1e3)),e.write("third frontend message")}}]}),await m([{title:"Installing dependencies",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}},{title:"Downloading assets",task:async()=>{await new Promise(e=>setTimeout(e,2e3))}}]),await d({title:new w("Importing data"),task:async e=>{for(let i=1;i<=10;i++){await new Promise(t=>setTimeout(t,500));let s=a`Importing data ${n.italic(a`(${n.green(i.toString())} complete)`)}`;e(s)}return"completed"}})}export{P as a};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{l as O,n as W}from"./chunk-KW5SQ6PG.js";import{S as v,a as S}from"./chunk-J6XOTLT5.js";import{f as y}from"./chunk-6MELTJU3.js";import{i as u,l as L}from"./chunk-QF453PH7.js";import{Cb as c,Eb as s,Nb as d,Xa as w,Ya as i,_a as D,db as F,qa as x,wb as B,ya as _}from"./chunk-QY73XOBU.js";import{c as r,h as k}from"./chunk-6IDEDOXW.js";import{a as I}from"./chunk-CX5CC6P5.js";import{e as R,g as f}from"./chunk-VKWPEFWQ.js";f();f();function b(e,n){try{return JSON.parse(e)}catch(a){let t=a instanceof Error?a.message:String(a),o=n?` from ${n}`:"";throw new u(`Failed to parse JSON${o}.
|
|
2
|
+
${t}`)}}var l=R(I(),1),N="yarn.lock",j="package-lock.json",$="pnpm-lock.yaml",C="bun.lockb",J="bun.lock",T="pnpm-workspace.yaml",we=[N,$,j,C,J],ye={yarn:[N],npm:[j],pnpm:[$],bun:[C,J],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],M=class extends u{constructor(){super("Unknown package manager")}},h=class extends u{constructor(n){super(s`The directory ${c.path(n)} doesn't have a package.json.`)}},P=class extends L{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${c.path(n)}`)}};function V(e=process.env){let n=e.npm_config_user_agent;return["yarn","pnpm","bun","npm"].find(a=>n?.includes(a))??"unknown"}function U(e){return i(r(e,C))||i(r(e,J))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function A(e){let n=e;for(d(s`Looking for a lockfile in ${c.path(n)}...`);;){if(i(r(n,N)))return"yarn";if(i(r(n,$))||i(r(n,T)))return"pnpm";if(U(n))return"bun";if(i(r(n,j)))return"npm";let t=k(n);if(t===n)break;n=t}let a=V();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let t=G(await A(e));return K(t,n,...a)}async function xe(e){let n=await D(r(e.directory,"**/package.json"),{ignore:[r(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new S;try{await Promise.all(n.map(async t=>{let o=k(t);await z({directory:o,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(t){throw a.abort(),t}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await y("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function ve(e){return(await m(e)).name}async function be(e){return(await m(e)).version}async function H(e){let n=await m(e),a=n.dependencies??{},t=n.devDependencies??{};return{...a,...t}}async function Me(e){let n=r(e,"package.json"),a=await m(n),t=r(e,T);return!!a.workspaces||w(t)}async function Pe(e,n,{cacheExpiryInHours:a=0}={}){let t=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),o=`npm-package-${e}`,p;try{p=await O(o,t,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function Ne(e,n){let a=`npm-package-${e}`,t=W(a)?.value;if(t&&new l.SemVer(n).compare(t)<0)return t}function je(e,n){return(0,l.satisfies)(e,n)}async function m(e){if(!await w(e))throw new h(k(e));return b(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
|
|
3
|
+
${c.json(e)}
|
|
4
|
+
With options:
|
|
5
|
+
${c.json(n)}
|
|
6
|
+
`);let a=r(n.directory,"package.json");if(!await w(a))throw new h(n.directory);let t=Object.keys(await H(a)),o=e.filter(p=>!t.includes(p.name));o.length!==0&&await q(o,n)}async function q(e,n){let a=e.map(t=>t.version?`${t.name}@${t.version}`:t.name);switch(n.stdout?.write(`Installing ${a.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let t of a)await g(n,Q(t,n.type));break;case"yarn":await g(n,X(a,n.type,!!n.addToRootDirectory));break;case"pnpm":await g(n,Z(a,n.type,!!n.addToRootDirectory));break;case"bun":await g(n,ee(a,n.type)),await g(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new M}}async function g(e,n){return y("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function $e(e,n){await Y(e.map(a=>({name:a,version:void 0})),n)}function Q(e,n){let t=["install",e,{dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"}[n]];return e.match(/@\d/g)&&t.push("--save-exact"),t}function X(e,n,a=!1){let t={dev:"--dev",peer:"--peer",prod:"--prod"};return["add",...a?["-W"]:[],...e,t[n]]}function Z(e,n,a=!1){let t={dev:"--save-dev",peer:"--save-peer",prod:"--save-prod"};return["add",...a?["-w"]:[],...e,t[n]]}function ee(e,n){let t={dev:"--development",peer:"--optional"}[n];return["add",...e,...t?[t]:[]]}async function Ce(e){let n=await F("package.json",{cwd:e,type:"file"});if(n){let a=b(await x(n),n);return{path:n,content:a}}else throw new P(e)}async function Je(e,n){let a=await A(e),t=await m(r(e,"package.json")),o=a==="yarn"?"resolutions":"overrides";t[o]={...t[o],...n},await ae(e,t)}async function ne(e){return d(s`Getting the latest version of NPM package: ${c.raw(e)}`),y("cmd_all_timing_network_ms")(async()=>{let{default:n}=await import("./latest-version-LDWU5F7A.js");return n(e)})}async function ae(e,n){d(s`JSON-encoding and writing content to package.json at ${c.path(e)}...`);let a=r(e,"package.json");await _(a,JSON.stringify(n,null,2))}function _e(e,n=process.env){if(e&&E.includes(e))return e;let a=V(n);if(a!=="unknown")return a;let t=B();return t!=="unknown"?t:"npm"}export{N as a,j as b,$ as c,C as d,T as e,we as f,ye as g,E as h,M as i,h as j,P as k,V as l,A as m,he as n,xe as o,z as p,ve as q,be as r,H as s,Me as t,Pe as u,Ne as v,je as w,m as x,Y as y,q as z,$e as A,Ce as B,Je as C,ae as D,_e as E};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as ge}from"./chunk-
|
|
1
|
+
import{c as ge}from"./chunk-6I5ATJK6.js";import{a as he,c as ye}from"./chunk-4MLDRZ3X.js";import{b as ue}from"./chunk-3EY3ULS6.js";import{a as Te}from"./chunk-XUZXQC5H.js";import{Da as Fe,Ha as Le,J as ve,R as Pe,T as Ae,V as ke,da as xe,ga as Ce,h as we}from"./chunk-X4767EMJ.js";import{A as be,qa as Ie,va as Re}from"./chunk-X5VPFSL3.js";import{b as fe,f as de}from"./chunk-DWMRVMKX.js";import{B as ie,D as re,E as oe,f as C,g as ee,i as te,p as ae}from"./chunk-G7HOEDC3.js";import{e as Q}from"./chunk-KW5SQ6PG.js";import{a as z}from"./chunk-EGWRLGF4.js";import{D as $,H as ce,y as le,z as pe}from"./chunk-J6XOTLT5.js";import{c as ne}from"./chunk-VWKMTYCN.js";import{d as se}from"./chunk-6MELTJU3.js";import{i as m}from"./chunk-QF453PH7.js";import{Aa as Y,Cb as h,Db as F,Eb as b,Ga as I,Na as V,Sa as K,Xa as R,Ya as x,Za as B,_a as W,ca as H,db as Z,oa as q,qa as O,ub as X,vb as J,wa as T,ya as _}from"./chunk-QY73XOBU.js";import{f as me}from"./chunk-JTEP5MP2.js";import{b as He}from"./chunk-I3J63RFV.js";import{c as l,d as k,e as M,o as U,p as D}from"./chunk-6IDEDOXW.js";import{e as De,g as c}from"./chunk-VKWPEFWQ.js";c();c();var y={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},S=Object.keys(y),L=S.filter(e=>y[e].visible),qe=["reactRouter","none"],Oe=async e=>{let t=e.template,a=e.flavor,r={template:y.reactRouter.url};t??=await $({choices:qe.map(o=>({label:y[o].label||o,value:o})),message:"Get started building your app:",defaultValue:S.find(o=>y[o].url===r.template)});let i={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(i.templateType!=="custom"){let o=y[i.templateType];n=o.url,o.branches&&(a?s=o.branches.options[a]?.branch:s=await $({message:o.branches.prompt||"Choose a flavor:",choices:Object.entries(o.branches.options).map(([f,u])=>({value:u.branch,label:u.label}))}))}return s&&(n=`${n}#${s}`),i.template=n||i.template||r.template,i.globalCLIResult=await J(),i},_e=Oe;function P(e){return S.includes(e)}function $e(e){return e!==void 0&&P(e)&&y[e].branches!==void 0}c();c();import{platform as Ye}from"os";async function Se({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=z,delete e.dependencies["@shopify/app"],t){let r=await Ve("cli");e.dependencies["@shopify/cli"]=r;let i={"@shopify/cli":r};e.overrides=e.overrides?{...e.overrides,...i}:i,e.resolutions=e.resolutions?{...e.resolutions,...i}:i}return e}async function Ve(e){return`file:${await Z(`packages/${e}`,{type:"directory",cwd:U(import.meta.url)})}`}async function Ge({from:e,packageManager:t}){let a=Ye()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return ae({directory:k(e),packageManager:t,args:a})}c();async function G(e,t){let r=(await W([l(e,"**",".git"),l(e,"**",".github"),l(e,"**",".gitmodules"),l(e,"**",".cli-liquid-bypass"),l(e,"LICENSE*"),l(e,"**","frontend/LICENSE*"),l(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>I(s,{force:!0})),i=new Set(ee[t]),n=C.filter(s=>!i.has(s)).map(s=>{let o=l(e,s);if(x(o))return V(o)});return Promise.all([...r,...n])}async function Ke(e){let t=e.packageManager,a=H(e.name),r=l(e.directory,a),i=ge(e.template);await Ee(r,a),await Be(r),le({body:["Initializing project with",{command:t},`
|
|
2
2
|
Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await q(async o=>{let f=l(o,"download"),u=i.filePath?l(f,i.filePath):f,d=l(o,"app"),A=i.branch?`${i.baseURL}#${i.branch}`:i.baseURL;await Y(f);let w=[{title:`Downloading template from ${A}`,task:async()=>{await ye({repoUrl:A,destination:f,shallow:!0})}}];w.push({title:"Parsing liquid",task:async()=>{await ue(u,d,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let p=(await ie(d)).content;p.name=a,p.author=await ne()??"",p.private=!0;let v=["extensions/*"].concat(We(d));switch(t){case"npm":case"yarn":case"bun":p.workspaces=v;break;case"pnpm":{await Ze(d,v),await T(l(d,".npmrc"),`auto-install-peers=true
|
|
3
3
|
`);break}case"homebrew":case"unknown":throw new te}await Se({packageJSON:p,local:e.local,directory:d,useGlobalCLI:e.useGlobalCLI}),await re(d,p)}}),e.postCloneActions.removeLockfilesFromGitignore&&w.push({title:"Removing lockfiles from .gitignore",task:async()=>{let p=l(d,".gitignore");if(await R(p)){let v=await O(p);C.forEach(Me=>{let Ue=new RegExp(`^${Me.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");v=v.replace(Ue,"")}),await _(p,v.trim())}}}),await me()&&w.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let p=l(d,".npmrc");await T(p,`@shopify:registry=https://registry.npmjs.org
|
|
4
4
|
`)}});let N=!1;w.push({title:"Preparing project directory",task:async()=>{await Ee(r,a),N=!0,await K(d,r)}}),w.push({title:`Installing dependencies with ${t}`,task:async()=>{await Ge({from:r,packageManager:t})}},{title:"Cleaning up",task:async()=>{await G(r,t)}},{title:"Initializing a Git repository...",task:async()=>{await he(r)}});try{await ce(w)}catch(p){throw N&&await I(r).catch(()=>{}),p}});let n;if(e.selectedAppOrNameResult.result==="new"){let o=await ve(r,e.name),f=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(f,o)}else n=e.selectedAppOrNameResult.app;await Fe({directory:r,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1);let s=await Le({directory:r,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0});return pe({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:F(t,"shopify app generate extension")}],["To see your app, run",{command:F(t,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:F(t,"shopify app","--help")}]]}),{app:s.app}}async function Ee(e,t){if(await R(e))throw new m(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as J}from"./chunk-
|
|
1
|
+
import{c as J}from"./chunk-4MLDRZ3X.js";import{b as k}from"./chunk-3EY3ULS6.js";import{a as re}from"./chunk-FJUE4LQ6.js";import{a as ae}from"./chunk-XUZXQC5H.js";import{a as z}from"./chunk-TFVIG4I7.js";import{Ha as ne,I as ee,K as te,d as Q,e as Z}from"./chunk-X4767EMJ.js";import{q as F,s as X,t as K}from"./chunk-X5VPFSL3.js";import{a as T}from"./chunk-SUIVO7GI.js";import{b as H,f as I}from"./chunk-DWMRVMKX.js";import{C as $,p as b,x as G,y as _}from"./chunk-G7HOEDC3.js";import{A as q,D as Y,F as V,H as O,J as W,z as U}from"./chunk-J6XOTLT5.js";import{e as E}from"./chunk-HILYTMVA.js";import{i as u}from"./chunk-QF453PH7.js";import{$ as f,Aa as w,Ca as v,Db as P,Sa as D,Xa as h,Ya as j,_a as L,ca as S,oa as g,ua as N}from"./chunk-QY73XOBU.js";import{f as B}from"./chunk-JTEP5MP2.js";import{b as ge}from"./chunk-I3J63RFV.js";import{c as p,m as R}from"./chunk-6IDEDOXW.js";import{e as xe,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function ie(e,t,r,n={}){let{templates:a,groupOrder:i}=await e.templateSpecifications(t,n);return{templates:a.filter(o=>r.includes(o.identifier)||r.includes(o.type)),groupOrder:i}}d();d();async function oe(e,t){let r=e?.path??"",n=p(t,r);if(!await h(n))throw new u(`
|
|
2
2
|
The extension is not available for ${e?.value}`);return n}async function se({name:e,app:t}){let r=S(e),n=p(t.directory,K.extensions.directoryName,r);if(await h(n))throw new u(`
|
|
3
3
|
A directory with this name (${r}) already exists.
|
|
4
4
|
Choose a new name for your extension.`);return await w(n),await N(p(n,F.lockFile)),n}function A(e){switch(e){case"vanilla-js":case"preact":case"react":case"typescript":case"typescript-react":return"javascript";case"rust":case"wasm":return e;case void 0:case"liquid":case"config-only":return}}async function ce(e){let t=e.extensionChoices.name,r=e.extensionChoices.flavor,n=e.extensionTemplate.supportedFlavors.find(o=>o.value===r),a=await se({app:e.app,name:t}),i=e.cloneUrl??e.extensionTemplate.url,s={directory:a,url:i,app:e.app,project:e.project,type:e.extensionTemplate.type,name:t,extensionFlavor:n,onGetTemplateRepository:e.onGetTemplateRepository??(async(o,c)=>{await J({repoUrl:o,destination:c,shallow:!0})})};return await we(s),{directory:R(a),extensionTemplate:e.extensionTemplate}}async function we(e){try{switch(e.type){case"theme":await Pe(e);break;case"function":await ke(e);break;default:await Fe(e);break}let t=p(e.directory,F.lockFile);await v(t)}catch(t){throw await ve(e.directory),e.project.packageManager==="pnpm"&&Ee(t)?new u("Your extension couldn't be generated because pnpm blocked the build scripts of some of its dependencies.",null,[["Run",{command:"pnpm approve-builds"},"in your app directory to approve the build scripts."],["Run",{command:P(e.project.packageManager,"shopify app generate extension")},"again."]]):t}}async function ve(e){try{await v(e,{maxRetries:10,retryDelay:100})}catch{q({headline:["Couldn't remove",{filePath:e},{char:"."}],body:"Delete this directory manually before generating an extension with the same name."})}}function Ee(e){return e instanceof Error&&e.message.includes("ERR_PNPM_IGNORED_BUILDS")}async function Pe({directory:e,url:t,type:r,name:n,extensionFlavor:a,onGetTemplateRepository:i}){return g(async s=>{let o=await M(t,a,s,i);await k(o,e,{name:n,type:r,uid:E(f(n))})})}async function ke({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[];c.push({title:"Generating function extension",task:async()=>{if(await g(async l=>{let m=await M(t,i,l,s);await k(m,e,{name:a,handle:f(a),flavor:i?.value,uid:E(f(a))})}),o==="javascript"){let l=le(i?.value??"rust");await pe(e,l,"!(*.graphql)")}}}),o==="javascript"&&c.push({title:"Installing additional dependencies",task:async()=>{n.usesWorkspaces&&await b({packageManager:n.packageManager,directory:n.directory});let l=Te(o);await _(l,{packageManager:n.packageManager,type:"prod",directory:n.usesWorkspaces?e:n.directory})}}),o==="javascript"&&c.push({title:"Building GraphQL types",task:async()=>{await Z({directory:e,isJavaScript:!0},{stdout:process.stdout,stderr:process.stderr,app:r})}}),await O(c)}async function Fe({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[{title:"Generating extension",task:async()=>{let l=le(i?.value??"vanilla-js");await g(async m=>{let y=await M(t,i,m,s);await k(y,e,{srcFileExtension:l,name:a,handle:f(a),flavor:i?.value??"",uid:E(f(a))})}),o==="javascript"&&await pe(e,l)}},{title:"Installing dependencies",task:async()=>{let l=n.packageManager;if(n.usesWorkspaces)A(i?.value)==="javascript"&&await b({packageManager:l,directory:n.directory});else{await be(n.directory,i?.value);let m=p(e,"package.json"),y=await _e(m);await _(y,{packageManager:l,type:"prod",directory:n.directory}),await v(m)}}}];c.push({title:"Update shared type definition",task:async()=>{await te(r)}}),await O(c)}function le(e){return{"vanilla-js":"js",preact:"jsx",react:"jsx",typescript:"ts","typescript-react":"tsx",rust:"rs",wasm:"wasm",liquid:"liquid","config-only":""}[e]??"js"}function Te(e){let t=[];return e==="javascript"&&t.push({name:"@shopify/shopify_function",version:`~${Q}.0.0`}),t}async function pe(e,t,r="*"){let n=await L(p(e,"src",r)),a=[];for(let i of n)a.push(D(i,`${i}.${t}`));await Promise.all(a)}async function be(e,t){t==="typescript-react"&&await $(e,{"@types/react":X.reactTypes})}async function _e(e){if(!await h(e))return[];let t=await G(e);return Object.entries(t?.dependencies??{}).map(([r,n])=>({name:r,version:n}))}async function M(e,t,r,n){let a=p(r,"download");return await w(a),await n(e,a),oe(t,a)}d();function Oe(e,t=[]){let r=[...e.map(a=>({label:a.name,value:a.identifier,group:a.group||"Other",sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER})),...t.map(a=>({label:`${a.name} (limit reached)`,value:a.identifier,group:a.group||"Other",disabled:!0,sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER}))],n=(a,i)=>a.sortPriority===i.sortPriority?a.label.localeCompare(i.label):a.sortPriority-i.sortPriority;return r.sort(n)}var Ie=async e=>{let t=e.extensionTemplates,r=e.templateType,n=e.extensionFlavor;if(!r){if(n&&(t=t.filter(c=>c.supportedFlavors.map(l=>l.value).includes(n))),t.length===0)throw new u("You have reached the limit for the number of extensions you can create.");r=await V({message:"Type of extension?",choices:Oe(t,e.unavailableExtensions),groupOrder:e.groupOrder})}let a=t.find(c=>c.identifier===r),i=e.name||await de(e.directory,a.defaultName),s=e.extensionFlavor??await Ae(a);return{extensionTemplate:a,extensionContent:{name:i,flavor:s}}};async function de(e,t,r=1){let n=t.includes(" ")?" ":"-",a=r<=1?t:`${t}${n}${r}`,i=p(e,f(a));return j(i)?de(e,t,r+1):W({message:"Name your extension:",defaultValue:a})}async function Ae(e){if(e.supportedFlavors.length!==0)return e.supportedFlavors.length===1&&e.supportedFlavors[0]?e.supportedFlavors[0].value:Y({message:"What would you like to work in?",choices:e.supportedFlavors.map(t=>({label:t.name,value:t.value})),defaultValue:"react"})}var ue=Ie;async function Me(e){let{app:t,developerPlatformClient:r,remoteApp:n,specifications:a,template:i}=e,s=a.map(he=>he.identifier),{templates:o,groupOrder:c}=await ie(r,n,s,{requestedTemplate:i}),l=await Ce(o,c,a,t,e),m=await ue(l);await Se(m,i);let y=Ne(m,t,e,r),ye=await ce(y);De(ye,e.project.packageManager)}async function Ce(e,t,r,n,a){let i=await Ge(a.template,n,e,r);je(i,a.flavor);let{validTemplates:s,templatesOverlimit:o}=Re(e,r,n);return{templateType:i?.identifier,name:a.name,extensionFlavor:a.flavor,directory:p(a.directory,"extensions"),app:n,extensionTemplates:s??[],unavailableExtensions:o??[],reset:a.reset,groupOrder:t}}function Re(e,t,r){return re(e,a=>!me(r,t,a)?"validTemplates":"templatesOverlimit")}function me(e,t,r){let n=r.type,a=t.find(s=>s.identifier===n||s.externalIdentifier===n);return e.extensionsForType({identifier:n,externalIdentifier:n}).length>=(a?.registrationLimit??1)}async function Se(e,t){let{extensionContent:r}=e;return T.addPublicMetadata(()=>({cmd_scaffold_template_flavor:r.flavor,cmd_scaffold_type:e.extensionTemplate.identifier,cmd_scaffold_used_prompts_for_type:!t}))}function Ne(e,t,r,n){return{app:t,project:r.project,cloneUrl:r.cloneUrl,extensionChoices:e.extensionContent,extensionTemplate:e.extensionTemplate,developerPlatformClient:n}}function De(e,t){let r=Le(e.extensionTemplate,e.directory,t);U(r)}function je(e,t){if(!t||!e)return;let r=e.supportedFlavors.map(n=>n.value);if(!r.includes(t))throw new u("Invalid template for extension type",`Expected template to be one of the following: ${r.join(", ")}.`)}function Le(e,t,r){let n={headline:["Your extension was created in",{filePath:t},{char:"."}],nextSteps:[],reference:[]};return e.type!=="function"&&n.nextSteps.push(["To preview this extension along with the rest of the project, run",{command:P(r,"shopify app dev")}]),e.supportLinks[0]&&n.reference.push(["For more details, see the",{link:{label:"docs",url:e.supportLinks[0]}}]),n}async function Ge(e,t,r,n){if(!e)return;let a=r.find(i=>i.identifier===e);if(!a){let i=await B(),s=r.map(c=>c.identifier),o=i?"You might need to enable some flags on your Organization or App":void 0;throw new u(`Unknown extension type: ${e}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,b as f,c as g,d as x,g as C}from"./chunk-
|
|
1
|
+
import{a as d,b as f,c as g,d as x,g as C}from"./chunk-Y54LCKE7.js";import{a as c}from"./chunk-XUZXQC5H.js";import{a as l}from"./chunk-TFVIG4I7.js";import{Ha as m}from"./chunk-X4767EMJ.js";import{b as p}from"./chunk-DWMRVMKX.js";import{z as s}from"./chunk-J6XOTLT5.js";import{b as I}from"./chunk-I3J63RFV.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var o=class u extends c{static description="Import dashboard-managed extensions into your app.";static flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};async run(){let{flags:i}=await this.parse(u),e=await m({directory:i.path,clientId:i["client-id"],forceRelink:i.reset,userProvidedConfigName:i.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=d(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-G76W6NZP.js";import{b as a}from"./chunk-FSWOB535.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var t=class extends a{static description="View the UI kit components that process async tasks";static hidden=!0;async run(){await o()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m,c as u}from"./chunk-
|
|
1
|
+
import{b as m,c as u}from"./chunk-SFQGGQDB.js";import{a as p}from"./chunk-77G2GTZU.js";import{a as n}from"./chunk-TFVIG4I7.js";import{Ia as c,q as a}from"./chunk-X4767EMJ.js";import{b as e}from"./chunk-DWMRVMKX.js";import{z as i}from"./chunk-J6XOTLT5.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as l}from"./chunk-
|
|
1
|
+
import{h as l}from"./chunk-4GD2RMV4.js";import{K as c}from"./chunk-2TCPTRLF.js";import{i as u}from"./chunk-QF453PH7.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();var s=["live","unpublished","development"];async function x(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function b(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{queryProps;constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,x as b,p as c,b as d,a as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as p,b as c,c as d}from"./chunk-
|
|
1
|
+
import{a as p,b as c,c as d}from"./chunk-SFQGGQDB.js";import{a as r}from"./chunk-XUZXQC5H.js";import{a as n}from"./chunk-TFVIG4I7.js";import{Ha as s}from"./chunk-X4767EMJ.js";import{b as a}from"./chunk-DWMRVMKX.js";import{b as y}from"./chunk-I3J63RFV.js";import{e as g,g as i}from"./chunk-VKWPEFWQ.js";i();var f=g(y(),1);var o=class m extends r{static summary="Fetch the latest GraphQL schema for a function.";static descriptionWithMarkdown="Generates the latest [GraphQL schema](https://shopify.dev/docs/apps/functions/input-output#graphql-schema) for a function in your app. Run this command from the function directory.\n\n This command uses the API type and version of your function, as defined in your extension TOML file, to generate the latest GraphQL schema. The schema is written to the `schema.graphql` file.";static description=this.descriptionForHelp();static flags={...a,...n,...c,stdout:f.Flags.boolean({description:"Output the schema to stdout instead of writing to a file.",required:!1,default:!1,env:"SHOPIFY_FLAG_STDOUT"})};async run(){let{flags:t}=await this.parse(m),{app:e,developerPlatformClient:h,organization:l}=await s({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),u=await d(e,t.path);return await p({app:e,extension:u,stdout:t.stdout,developerPlatformClient:h,orgId:l.id}),{app:e}}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c}from"./chunk-
|
|
1
|
+
import{b as a,c}from"./chunk-DWMRVMKX.js";import{b as u}from"./chunk-FSWOB535.js";import{a as i}from"./chunk-EGWRLGF4.js";import{a as p}from"./chunk-B6BTX7WU.js";import{Ib as m,b as r}from"./chunk-QY73XOBU.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();async function f(){return{version:i}}t();t();var o=p({name:"VersionResult",schema:r.object({version:r.string()})});function l(e,s){m(s==="json"?o.encode(e):e.version)}var n=class e extends u{static descriptionWithMarkdown="Shopify CLI version currently installed.";static description=this.descriptionForHelp();static flags={...a,...c};static get jsonOutputSchema(){return o}async run(){let{flags:s}=await this.parse(e),v=await f();l(v,s.json?"json":"text")}};export{n as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
1
|
+
import{a as c}from"./chunk-B6BTX7WU.js";import{l as m}from"./chunk-QF453PH7.js";import{Ib as u,b as e}from"./chunk-QY73XOBU.js";import{b as H}from"./chunk-I3J63RFV.js";import{e as b,g as n}from"./chunk-VKWPEFWQ.js";n();var p=e.object({id:e.string(),summary:e.string().optional(),hidden:e.boolean().default(!1)}),l=e.object({name:e.string(),description:e.string().optional(),hidden:e.boolean().default(!1)}),g=e.object({name:e.string(),description:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional()}),h=e.object({name:e.string(),type:e.enum(["boolean","option"]),char:e.string().optional(),summary:e.string().optional(),description:e.string().optional(),env:e.string().optional(),required:e.boolean().default(!1),hidden:e.boolean().default(!1),options:e.array(e.string()).optional(),default:e.unknown().optional(),multiple:e.boolean().optional(),allowNo:e.boolean().optional(),aliases:e.array(e.string()).optional(),dependsOn:e.array(e.string()).optional(),exclusive:e.array(e.string()).optional(),exactlyOne:e.array(e.string()).optional()}),f=p.extend({description:e.string().optional(),aliases:e.array(e.string()),usage:e.union([e.string(),e.array(e.string())]).optional(),examples:e.array(e.union([e.string(),e.object({description:e.string(),command:e.string()})])).optional(),strict:e.boolean().default(!0),args:e.record(g),flags:e.record(h)}),a={commands:e.array(p),topics:e.array(l)},s=c({name:"HelpResult",schema:e.discriminatedUnion("kind",[e.object({kind:e.literal("root"),...a}),e.object({kind:e.literal("topic"),topic:l,...a}),e.object({kind:e.literal("command"),command:f,...a})]),definitions:{HelpCommandSummary:p,HelpTopic:l,HelpArgument:g,HelpFlag:h,HelpCommand:f}});n();var y=b(H(),1);async function k(r,o,i=!1){let t=new d(r,{all:i});if(await t.showHelp(o),!t.result)throw new m("Oclif did not resolve a help subject.");return t.result}var d=class extends y.Help{result;async showCommandHelp(o){let i=t=>this.opts.all===!0||!t.hidden;this.result=s.validate({kind:"command",command:{...o,args:Object.fromEntries(Object.entries(o.args).filter(([,t])=>i(t))),flags:Object.fromEntries(Object.entries(o.flags).filter(([,t])=>i(t)))},...this.listings(o.id)})}async showRootHelp(){this.result=s.validate({kind:"root",...this.listings()})}async showTopicHelp(o){this.result=s.validate({kind:"topic",topic:o,...this.listings(o.name)})}listings(o){let i=t=>o===void 0?this.opts.all===!0||!t.includes(":"):t.startsWith(`${o}:`)&&t.split(":").length===o.split(":").length+1;return{commands:this.sortedCommands.filter(t=>t.id&&i(t.id)).map(t=>({id:t.id,summary:t.summary??t.description?.split(`
|
|
2
2
|
`)[0],hidden:t.hidden??!1})),topics:this.sortedTopics.filter(t=>i(t.name))}}};n();function T(r){u(s.encode(r))}export{s as a,k as b,T as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v}from"./chunk-
|
|
1
|
+
import{a as v}from"./chunk-FRHB4IFP.js";import{b as y,c as P,d as b}from"./chunk-SFQGGQDB.js";import{a as F}from"./chunk-77G2GTZU.js";import{a as m}from"./chunk-TFVIG4I7.js";import{Ia as x}from"./chunk-X4767EMJ.js";import{b as d,c as h}from"./chunk-DWMRVMKX.js";import{F as g,M as l}from"./chunk-J6XOTLT5.js";import{Nb as n}from"./chunk-QY73XOBU.js";import{b as _}from"./chunk-I3J63RFV.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
1
|
+
import{b as s}from"./chunk-FSWOB535.js";import{e as w}from"./chunk-KW5SQ6PG.js";import{C,E as x,y as a}from"./chunk-J6XOTLT5.js";import{i as S}from"./chunk-QF453PH7.js";import{Nb as I}from"./chunk-QY73XOBU.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();n();var m={on:"Autocorrect on. The system will automatically run commands even when you mistype them.",off:"Autocorrect off. You'll need to confirm corrections for mistyped commands."};n();function p(o=v()){return!!o.get("autocorrectEnabled")}function y(o,e=v()){e.set("autocorrectEnabled",o)}function v(){return A??=new w({projectName:"did-you-mean"}),A}var A;var u=class extends s{static summary="Enable autocorrect. Off by default.";static descriptionWithMarkdown=`Enable autocorrect. Off by default.
|
|
2
2
|
|
|
3
3
|
When autocorrection is enabled, Shopify CLI automatically runs a corrected version of your command if a correction is available.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-FJUE4LQ6.js";import{K as H}from"./chunk-X4767EMJ.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-X5VPFSL3.js";import{a as O,o as D,w as k}from"./chunk-J6XOTLT5.js";import{i as N}from"./chunk-QF453PH7.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-QY73XOBU.js";import{g as S}from"./chunk-JTEP5MP2.js";import{c as x,d as E,f as v,h as C}from"./chunk-6IDEDOXW.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
|
|
2
2
|
`)}`;h(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(o=>o.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(n=>y(t.path,n));if(i){let o=v(t.extensionPath,t.path);return i.ignores(o)}return!1}handleFileEvent=(t,e)=>{let s=w(),i=E(e),o=e===this.app.configPath,n=e.endsWith(".extension.toml");if(h(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
|
|
3
3
|
`),o)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!n){let c=this.discoverFileOwners(i);c.size>0&&(this.extensionWatchedFiles.set(i,c),a=c,d=!1)}if(d&&!n&&!o){h(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let l=this.app.realExtensions.find(f=>f.handle===c),u=l?E(l.directory):this.app.directory;this.handleEventForExtension(t,e,u,s,!1,c)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=E(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),o=v(E(e.directory),t);return i.some(n=>y(o,n))?!1:s.some(n=>y(o,n))}handleEventForExtension(t,e,s,i,o,n){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(o)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:n,startTime:i});break}let c=0,l=C(e),u=setInterval(()=>{P(x(l,I.lockFile))?(h(`Waiting for extension to complete creation: ${e}
|
|
4
4
|
`),c+=L):(clearInterval(u),this.extensionPaths.push(l),this.pushEvent({type:"extension_folder_created",path:l,extensionPath:s,startTime:i}),this.debouncedEmit()),c>=K&&(clearInterval(u),this.options.stderr.write(`Error loading new extension at path: ${e}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as i,i as t}from"./chunk-
|
|
1
|
+
import{h as i,i as t}from"./chunk-QF453PH7.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var o=e=>new a(e),s=e=>new u(e),a=class{value;constructor(r){this.value=r}isErr(){return!1}doOnOk(r){return r(this.value),o(this.value)}valueOrBug(){return this.value}valueOrAbort(){return this.value}map(r){return o(r(this.value))}mapError(r){return o(this.value)}},u=class{error;constructor(r){this.error=r}isErr(){return!0}doOnOk(r){return s(this.error)}valueOrBug(){throw this.error}valueOrAbort(){if(this.error instanceof i)throw this.error;if(this.error instanceof Error){let r=new t(this.error.message);throw r.stack=this.error.stack,r}else throw new t(`${this.error}`)}map(r){return s(this.error)}mapError(r){return s(r(this.error))}};export{o as a,s as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ia as r}from"./chunk-
|
|
1
|
+
import{Ia as r}from"./chunk-X4767EMJ.js";import{a}from"./chunk-SUIVO7GI.js";import{p as i}from"./chunk-6IDEDOXW.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var c=3e3;async function n(o){let t;try{if(a.getAllPublicMetadata().api_key!==void 0)return;await Promise.race([r({directory:o,skipPrompts:!0}),new Promise(l=>{t=setTimeout(l,c)})])}catch{}finally{t&&clearTimeout(t)}}var m=async()=>(await n(i()),a.getAllPublicMetadata()),f=m;export{f as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as yn,b as Fy,c as qy,f as kA,g as Np,h as KB,i as To,j as jy,k as SR,l as ms,m as vR,n as Xy,o as RR,p as NR}from"./chunk-7E4MJCVE.js";import{b as Ky,d as Mg}from"./chunk-DYPZX7MW.js";import{a as yR}from"./chunk-5HBIIYSK.js";import{d as Dp}from"./chunk-HILYTMVA.js";import{a as hR}from"./chunk-7UNQOKZW.js";import{f as Hg}from"./chunk-DSS4ECIH.js";import{i as ps,j as xp,k as ky,l as Wy,p as Py}from"./chunk-Q37WAD6F.js";import{a as Rp}from"./chunk-4JGWKUJN.js";import{Ab as Vy,C as BR,Cb as t1,D as dR,Eb as uQ,G as mR,I as pR,J as CR,Kb as Up,L as IR,N as QR,Nb as qB,Ob as e1,Tb as Ol,Ub as Jc,X as Ly,e as oR,ib as xg,j as rR,jb as Jy,kb as Lc,p as sR,pb as Yy,q as fR,rb as bo,sb as Ug,x as lQ,y as gR,yb as Zy,zb as DR}from"./chunk-UWI76E2L.js";import{e as cR,g as ER,h as YB,i as uA}from"./chunk-B4OMIONW.js";import{g as FB,o as $y}from"./chunk-UEBUGSBT.js";import{b as aQ}from"./chunk-L4DFMMOI.js";import{a as nQ}from"./chunk-JD5P5RAJ.js";import{e as _y,p as zy}from"./chunk-6IDEDOXW.js";import{j as uR}from"./chunk-TR4OWSEX.js";import{a as iR}from"./chunk-JFBCE4HN.js";import{a as wy,c as ze,e as xt,g as R}from"./chunk-VKWPEFWQ.js";var C1=ze(Qe=>{"use strict";R();var rQ=Symbol.for("react.transitional.element"),_R=Symbol.for("react.portal"),zR=Symbol.for("react.fragment"),LR=Symbol.for("react.strict_mode"),JR=Symbol.for("react.profiler"),YR=Symbol.for("react.consumer"),KR=Symbol.for("react.context"),FR=Symbol.for("react.forward_ref"),qR=Symbol.for("react.suspense"),jR=Symbol.for("react.memo"),g1=Symbol.for("react.lazy"),XR=Symbol.for("react.activity"),c1=Symbol.iterator;function ZR(n){return n===null||typeof n!="object"?null:(n=c1&&n[c1]||n["@@iterator"],typeof n=="function"?n:null)}var E1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B1=Object.assign,d1={};function Tg(n,u,c){this.props=n,this.context=u,this.refs=d1,this.updater=c||E1}Tg.prototype.isReactComponent={};Tg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")};Tg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function m1(){}m1.prototype=Tg.prototype;function sQ(n,u,c){this.props=n,this.context=u,this.refs=d1,this.updater=c||E1}var fQ=sQ.prototype=new m1;fQ.constructor=sQ;B1(fQ,Tg.prototype);fQ.isPureReactComponent=!0;var r1=Array.isArray;function cQ(){}var HA={H:null,A:null,T:null,S:null},p1=Object.prototype.hasOwnProperty;function gQ(n,u,c){var r=c.ref;return{$$typeof:rQ,type:n,key:u,ref:r!==void 0?r:null,props:c}}function VR(n,u){return gQ(n.type,u,n.props)}function EQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===rQ}function kR(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var s1=/\/+/g;function oQ(n,u){return typeof n=="object"&&n!==null&&n.key!=null?kR(""+n.key):u.toString(36)}function WR(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(cQ,cQ):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function bg(n,u,c,r,E){var p=typeof n;(p==="undefined"||p==="boolean")&&(n=null);var C=!1;if(n===null)C=!0;else switch(p){case"bigint":case"string":case"number":C=!0;break;case"object":switch(n.$$typeof){case rQ:case _R:C=!0;break;case g1:return C=n._init,bg(C(n._payload),u,c,r,E)}}if(C)return E=E(n),C=r===""?"."+oQ(n,0):r,r1(E)?(c="",C!=null&&(c=C.replace(s1,"$&/")+"/"),bg(E,u,c,"",function(N){return N})):E!=null&&(EQ(E)&&(E=VR(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(s1,"$&/")+"/")+C)),u.push(E)),1;C=0;var h=r===""?".":r+":";if(r1(n))for(var Q=0;Q<n.length;Q++)r=n[Q],p=h+oQ(r,Q),C+=bg(r,u,c,p,E);else if(Q=ZR(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,p=h+oQ(r,Q++),C+=bg(r,u,c,p,E);else if(p==="object"){if(typeof n.then=="function")return bg(WR(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return C}function Hp(n,u,c){if(n==null)return n;var r=[],E=0;return bg(n,r,"","",function(p){return u.call(c,p,E++)}),r}function PR(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var f1=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},$R={map:Hp,forEach:function(n,u,c){Hp(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return Hp(n,function(){u++}),u},toArray:function(n){return Hp(n,function(u){return u})||[]},only:function(n){if(!EQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=XR;Qe.Children=$R;Qe.Component=Tg;Qe.Fragment=zR;Qe.Profiler=JR;Qe.PureComponent=sQ;Qe.StrictMode=LR;Qe.Suspense=qR;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=B1({},n.props),E=n.key;if(u!=null)for(p in u.key!==void 0&&(E=""+u.key),u)!p1.call(u,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&u.ref===void 0||(r[p]=u[p]);var p=arguments.length-2;if(p===1)r.children=c;else if(1<p){for(var C=Array(p),h=0;h<p;h++)C[h]=arguments[h+2];r.children=C}return gQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:KR,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:YR,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},p=null;if(u!=null)for(r in u.key!==void 0&&(p=""+u.key),u)p1.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var C=arguments.length-2;if(C===1)E.children=c;else if(1<C){for(var h=Array(C),Q=0;Q<C;Q++)h[Q]=arguments[Q+2];E.children=h}if(n&&n.defaultProps)for(r in C=n.defaultProps,C)E[r]===void 0&&(E[r]=C[r]);return gQ(n,p,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:FR,render:n}};Qe.isValidElement=EQ;Qe.lazy=function(n){return{$$typeof:g1,_payload:{_status:-1,_result:n},_init:PR}};Qe.memo=function(n,u){return{$$typeof:jR,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(cQ,f1)}catch(p){f1(p)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var I1=ze((de,bp)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(y,F){Object.defineProperty(r.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(y){return y===null||typeof y!="object"?null:(y=Et&&y[Et]||y["@@iterator"],typeof y=="function"?y:null)}function c(y,F){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var st=y+"."+F;At[st]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",F,y),At[st]=!0)}function r(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function p(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function C(){}function h(y){return""+y}function Q(y){try{h(y);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),h(y)}}function N(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Fe?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case re:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case cA:return"Suspense";case H:return"SuspenseList";case V:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case _t:return"Portal";case We:return y.displayName||"Context";case Ve:return(y._context.displayName||"Context")+".Consumer";case bA:var F=y.render;return y=y.displayName,y||(y=F.displayName||F.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case T:return F=y.displayName||null,F!==null?F:N(y.type)||"Memo";case M:F=y._payload,y=y._init;try{return N(y(F))}catch{}}return null}function b(y){if(y===re)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===M)return"<...>";try{var F=N(y);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var y=Wt.A;return y===null?null:y.getOwner()}function x(){return Error("react-stack-top-frame")}function J(y){if(gn.call(y,"key")){var F=Object.getOwnPropertyDescriptor(y,"key").get;if(F&&F.isReactWarning)return!1}return y.key!==void 0}function Z(y,F){function st(){TA||(TA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}st.isReactWarning=!0,Object.defineProperty(y,"key",{get:st,configurable:!0})}function P(){var y=N(this.type);return ha[y]||(ha[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function Y(y,F,st,ht,Gt,le){var Pt=st.ref;return y={$$typeof:wt,type:y,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:P}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function Nt(y,F){return F=Y(y.type,F,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(F._store.validated=y._store.validated),F}function St(y){Bt(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===M&&(y._payload.status==="fulfilled"?Bt(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Bt(y){return typeof y=="object"&&y!==null&&y.$$typeof===wt}function vt(y){var F={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(st){return F[st]})}function qt(y,F){return typeof y=="object"&&y!==null&&y.key!=null?(Q(y.key),vt(""+y.key)):F.toString(36)}function ce(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(C,C):(y.status="pending",y.then(function(F){y.status==="pending"&&(y.status="fulfilled",y.value=F)},function(F){y.status==="pending"&&(y.status="rejected",y.reason=F)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,F,st,ht,Gt){var le=typeof y;(le==="undefined"||le==="boolean")&&(y=null);var Pt=!1;if(y===null)Pt=!0;else switch(le){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(y.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=y._init,ee(Pt(y._payload),F,st,ht,Gt)}}if(Pt){Pt=y,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(Ll,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Bt(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(Ll,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Bt(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(y))for(var Be=0;Be<y.length;Be++)ht=y[Be],le=Me+qt(ht,Be),Pt+=ee(ht,F,st,le,Gt);else if(Be=u(y),typeof Be=="function")for(Be===y.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),y=Be.call(y),Be=0;!(ht=y.next()).done;)ht=ht.value,le=Me+qt(ht,Be++),Pt+=ee(ht,F,st,le,Gt);else if(le==="object"){if(typeof y.then=="function")return ee(ce(y),F,st,ht,Gt);throw F=String(y),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function Rt(y,F,st){if(y==null)return y;var ht=[],Gt=0;return ee(y,ht,"","",function(le){return F.call(st,le,Gt++)}),ht}function It(y){if(y._status===-1){var F=y._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=y._result;var st=F();if(st.then(function(Gt){if(y._status===0||y._status===-1){y._status=1,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(y._status===0||y._status===-1){y._status=2,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=y._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}y._status===-1&&(y._status=0,y._result=st)}if(y._status===1)return F=y._result,F===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
1
|
+
import{a as yn,b as Fy,c as qy,f as kA,g as Np,h as KB,i as To,j as jy,k as SR,l as ms,m as vR,n as Xy,o as RR,p as NR}from"./chunk-7E4MJCVE.js";import{b as Ky,d as Mg}from"./chunk-VWKMTYCN.js";import{a as yR}from"./chunk-5HBIIYSK.js";import{d as Dp}from"./chunk-HILYTMVA.js";import{a as hR}from"./chunk-7UNQOKZW.js";import{f as Hg}from"./chunk-6MELTJU3.js";import{i as ps,j as xp,k as ky,l as Wy,p as Py}from"./chunk-QF453PH7.js";import{a as Rp}from"./chunk-EDUQUCXK.js";import{Ab as Vy,C as BR,Cb as t1,D as dR,Eb as uQ,G as mR,I as pR,J as CR,Kb as Up,L as IR,N as QR,Nb as qB,Ob as e1,Tb as Ol,Ub as Jc,X as Ly,e as oR,ib as xg,j as rR,jb as Jy,kb as Lc,p as sR,pb as Yy,q as fR,rb as bo,sb as Ug,x as lQ,y as gR,yb as Zy,zb as DR}from"./chunk-QY73XOBU.js";import{e as cR,g as ER,h as YB,i as uA}from"./chunk-B4OMIONW.js";import{g as FB,o as $y}from"./chunk-JTEP5MP2.js";import{b as aQ}from"./chunk-QLHPTMIH.js";import{a as nQ}from"./chunk-JD5P5RAJ.js";import{e as _y,p as zy}from"./chunk-6IDEDOXW.js";import{j as uR}from"./chunk-TR4OWSEX.js";import{a as iR}from"./chunk-JFBCE4HN.js";import{a as wy,c as ze,e as xt,g as R}from"./chunk-VKWPEFWQ.js";var C1=ze(Qe=>{"use strict";R();var rQ=Symbol.for("react.transitional.element"),_R=Symbol.for("react.portal"),zR=Symbol.for("react.fragment"),LR=Symbol.for("react.strict_mode"),JR=Symbol.for("react.profiler"),YR=Symbol.for("react.consumer"),KR=Symbol.for("react.context"),FR=Symbol.for("react.forward_ref"),qR=Symbol.for("react.suspense"),jR=Symbol.for("react.memo"),g1=Symbol.for("react.lazy"),XR=Symbol.for("react.activity"),c1=Symbol.iterator;function ZR(n){return n===null||typeof n!="object"?null:(n=c1&&n[c1]||n["@@iterator"],typeof n=="function"?n:null)}var E1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B1=Object.assign,d1={};function Tg(n,u,c){this.props=n,this.context=u,this.refs=d1,this.updater=c||E1}Tg.prototype.isReactComponent={};Tg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")};Tg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function m1(){}m1.prototype=Tg.prototype;function sQ(n,u,c){this.props=n,this.context=u,this.refs=d1,this.updater=c||E1}var fQ=sQ.prototype=new m1;fQ.constructor=sQ;B1(fQ,Tg.prototype);fQ.isPureReactComponent=!0;var r1=Array.isArray;function cQ(){}var HA={H:null,A:null,T:null,S:null},p1=Object.prototype.hasOwnProperty;function gQ(n,u,c){var r=c.ref;return{$$typeof:rQ,type:n,key:u,ref:r!==void 0?r:null,props:c}}function VR(n,u){return gQ(n.type,u,n.props)}function EQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===rQ}function kR(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var s1=/\/+/g;function oQ(n,u){return typeof n=="object"&&n!==null&&n.key!=null?kR(""+n.key):u.toString(36)}function WR(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(cQ,cQ):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function bg(n,u,c,r,E){var p=typeof n;(p==="undefined"||p==="boolean")&&(n=null);var C=!1;if(n===null)C=!0;else switch(p){case"bigint":case"string":case"number":C=!0;break;case"object":switch(n.$$typeof){case rQ:case _R:C=!0;break;case g1:return C=n._init,bg(C(n._payload),u,c,r,E)}}if(C)return E=E(n),C=r===""?"."+oQ(n,0):r,r1(E)?(c="",C!=null&&(c=C.replace(s1,"$&/")+"/"),bg(E,u,c,"",function(N){return N})):E!=null&&(EQ(E)&&(E=VR(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(s1,"$&/")+"/")+C)),u.push(E)),1;C=0;var h=r===""?".":r+":";if(r1(n))for(var Q=0;Q<n.length;Q++)r=n[Q],p=h+oQ(r,Q),C+=bg(r,u,c,p,E);else if(Q=ZR(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,p=h+oQ(r,Q++),C+=bg(r,u,c,p,E);else if(p==="object"){if(typeof n.then=="function")return bg(WR(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return C}function Hp(n,u,c){if(n==null)return n;var r=[],E=0;return bg(n,r,"","",function(p){return u.call(c,p,E++)}),r}function PR(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var f1=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},$R={map:Hp,forEach:function(n,u,c){Hp(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return Hp(n,function(){u++}),u},toArray:function(n){return Hp(n,function(u){return u})||[]},only:function(n){if(!EQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=XR;Qe.Children=$R;Qe.Component=Tg;Qe.Fragment=zR;Qe.Profiler=JR;Qe.PureComponent=sQ;Qe.StrictMode=LR;Qe.Suspense=qR;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=B1({},n.props),E=n.key;if(u!=null)for(p in u.key!==void 0&&(E=""+u.key),u)!p1.call(u,p)||p==="key"||p==="__self"||p==="__source"||p==="ref"&&u.ref===void 0||(r[p]=u[p]);var p=arguments.length-2;if(p===1)r.children=c;else if(1<p){for(var C=Array(p),h=0;h<p;h++)C[h]=arguments[h+2];r.children=C}return gQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:KR,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:YR,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},p=null;if(u!=null)for(r in u.key!==void 0&&(p=""+u.key),u)p1.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var C=arguments.length-2;if(C===1)E.children=c;else if(1<C){for(var h=Array(C),Q=0;Q<C;Q++)h[Q]=arguments[Q+2];E.children=h}if(n&&n.defaultProps)for(r in C=n.defaultProps,C)E[r]===void 0&&(E[r]=C[r]);return gQ(n,p,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:FR,render:n}};Qe.isValidElement=EQ;Qe.lazy=function(n){return{$$typeof:g1,_payload:{_status:-1,_result:n},_init:PR}};Qe.memo=function(n,u){return{$$typeof:jR,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(cQ,f1)}catch(p){f1(p)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var I1=ze((de,bp)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(y,F){Object.defineProperty(r.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(y){return y===null||typeof y!="object"?null:(y=Et&&y[Et]||y["@@iterator"],typeof y=="function"?y:null)}function c(y,F){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var st=y+"."+F;At[st]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",F,y),At[st]=!0)}function r(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function p(y,F,st){this.props=y,this.context=F,this.refs=Ht,this.updater=st||Mt}function C(){}function h(y){return""+y}function Q(y){try{h(y);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),h(y)}}function N(y){if(y==null)return null;if(typeof y=="function")return y.$$typeof===Fe?null:y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case re:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case cA:return"Suspense";case H:return"SuspenseList";case V:return"Activity"}if(typeof y=="object")switch(typeof y.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case _t:return"Portal";case We:return y.displayName||"Context";case Ve:return(y._context.displayName||"Context")+".Consumer";case bA:var F=y.render;return y=y.displayName,y||(y=F.displayName||F.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case T:return F=y.displayName||null,F!==null?F:N(y.type)||"Memo";case M:F=y._payload,y=y._init;try{return N(y(F))}catch{}}return null}function b(y){if(y===re)return"<>";if(typeof y=="object"&&y!==null&&y.$$typeof===M)return"<...>";try{var F=N(y);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var y=Wt.A;return y===null?null:y.getOwner()}function x(){return Error("react-stack-top-frame")}function J(y){if(gn.call(y,"key")){var F=Object.getOwnPropertyDescriptor(y,"key").get;if(F&&F.isReactWarning)return!1}return y.key!==void 0}function Z(y,F){function st(){TA||(TA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}st.isReactWarning=!0,Object.defineProperty(y,"key",{get:st,configurable:!0})}function P(){var y=N(this.type);return ha[y]||(ha[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function Y(y,F,st,ht,Gt,le){var Pt=st.ref;return y={$$typeof:wt,type:y,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:P}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:le}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function Nt(y,F){return F=Y(y.type,F,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(F._store.validated=y._store.validated),F}function St(y){Bt(y)?y._store&&(y._store.validated=1):typeof y=="object"&&y!==null&&y.$$typeof===M&&(y._payload.status==="fulfilled"?Bt(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function Bt(y){return typeof y=="object"&&y!==null&&y.$$typeof===wt}function vt(y){var F={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(st){return F[st]})}function qt(y,F){return typeof y=="object"&&y!==null&&y.key!=null?(Q(y.key),vt(""+y.key)):F.toString(36)}function ce(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status=="string"?y.then(C,C):(y.status="pending",y.then(function(F){y.status==="pending"&&(y.status="fulfilled",y.value=F)},function(F){y.status==="pending"&&(y.status="rejected",y.reason=F)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,F,st,ht,Gt){var le=typeof y;(le==="undefined"||le==="boolean")&&(y=null);var Pt=!1;if(y===null)Pt=!0;else switch(le){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(y.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=y._init,ee(Pt(y._payload),F,st,ht,Gt)}}if(Pt){Pt=y,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(Ll,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Bt(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(Ll,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Bt(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(y))for(var Be=0;Be<y.length;Be++)ht=y[Be],le=Me+qt(ht,Be),Pt+=ee(ht,F,st,le,Gt);else if(Be=u(y),typeof Be=="function")for(Be===y.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),y=Be.call(y),Be=0;!(ht=y.next()).done;)ht=ht.value,le=Me+qt(ht,Be++),Pt+=ee(ht,F,st,le,Gt);else if(le==="object"){if(typeof y.then=="function")return ee(ce(y),F,st,ht,Gt);throw F=String(y),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function Rt(y,F,st){if(y==null)return y;var ht=[],Gt=0;return ee(y,ht,"","",function(le){return F.call(st,le,Gt++)}),ht}function It(y){if(y._status===-1){var F=y._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=y._result;var st=F();if(st.then(function(Gt){if(y._status===0||y._status===-1){y._status=1,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(y._status===0||y._status===-1){y._status=2,y._result=Gt;var le=y._ioInfo;le!=null&&(le.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=y._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}y._status===-1&&(y._status=0,y._result=st)}if(y._status===1)return F=y._result,F===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
2
|
|
|
3
3
|
Your code should look like:
|
|
4
4
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as i,h as r,o as s}from"./chunk-6IDEDOXW.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-
|
|
1
|
+
import{c as i,h as r,o as s}from"./chunk-6IDEDOXW.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();import{existsSync as f,readFileSync as u}from"fs";import{fileURLToPath as p,pathToFileURL as g}from"url";var a;function h(){if(!a){let n=i(s(import.meta.url),"..","oclif.manifest.json");a=JSON.parse(u(n,"utf8")).commands}return a}var m=new Map;function y(n){let t=m.get(n);if(!t){for(t=r(p(import.meta.resolve(n)));t!==r(t);){try{if(JSON.parse(u(i(t,"package.json"),"utf8")).name===n)break}catch(o){if(o instanceof SyntaxError){t=r(t);continue}if(o.code==="ENOENT"){t=r(t);continue}throw o}t=r(t)}m.set(n,t)}return t}var P={"app:logs:sources":"dist/cli/commands/app/app-logs/sources.js","demo:watcher":"dist/cli/commands/app/demo/watcher.js","kitchen-sink":"dist/cli/commands/kitchen-sink/index.js","doctor-release":"dist/cli/commands/doctor-release/doctor-release.js","doctor-release:theme":"dist/cli/commands/doctor-release/theme/index.js"};function l(n){return P[n]??`dist/cli/commands/${n.replace(/:/g,"/")}.js`}var C=new Set(["@shopify/cli","@shopify/app","@shopify/theme"]);async function D(n){let o=h()[n];if(!o)return;let e=o.customPluginName??o.pluginName;if(e)return C.has(e)?j(n,e):k(n,e)}var d=i(s(import.meta.url),"..");function w(n,t){let o=l(n),e=i(d,o);return f(e)?d:y(t)}async function j(n,t){let o=l(n),e=w(n,t);return(await import(g(i(e,o)).href)).default}async function k(n,t){if(t==="@shopify/cli-hydrogen"){let{COMMANDS:o}=await import("./dist-HTXIQ6TQ.js");return o?.[n]}if(t==="@oclif/plugin-commands"){let{commands:o}=await import("./lib-PH52G55H.js");return o[n]}if(t==="@oclif/plugin-plugins"){let{commands:o}=await import("./lib-TYM5B75S.js");return o[n]}if(t==="@shopify/plugin-did-you-mean"){let{DidYouMeanCommands:o}=await import("./dist-XYFXZS4I.js");return o[n]}}export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-HB3MJYBK.js";import{a as I}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-HB3MJYBK.js";import{a as I}from"./chunk-4XDMN6DI.js";import{a as x}from"./chunk-FUJAJKL2.js";import{A as _,D as T,F,I as d,L as u,a as b,e as A,f as k,r as v,v as R}from"./chunk-7JAZMNHL.js";import{b as S}from"./chunk-DWMRVMKX.js";import{b as w}from"./chunk-FSWOB535.js";import{_ as y,z as g}from"./chunk-J6XOTLT5.js";import{i as c}from"./chunk-QF453PH7.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();a();var B=5e6,$={readStdin:y,engineVersion:k,writeAgentFindings:R,recordMetadata:I};function E(t){return u(t.record)}function s(t,e){throw new c("The findings document was rejected. Nothing was recorded.",null,[["Fix every error, then run",{command:E(e)},"again."]],[{title:"Errors",body:{list:{items:t}}}])}async function z(t,e){try{return await e.readStdin()}catch(i){throw i instanceof c&&s([i.message],t),i}}async function V(t,e){let i=await z(t,e);if(i===void 0)throw new c("No findings document was piped on stdin.",null,[["Pipe the findings document on stdin:",{command:E(t)}]]);let n=Buffer.byteLength(i,"utf8");n>B&&s([`The findings document is ${n} bytes; the limit is 5 MB.`],t);try{return JSON.parse(i)}catch(o){let r=o instanceof Error?o.message:String(o);s([`The findings document is not valid JSON: ${r}`],t)}}async function m(t,e=$){let{selection:i}=t,n=d(i,t.path),o=await V(n,e),r=A(o,{engineVersion:e.engineVersion()});r.ok||s(r.errors,n);let h=_(r.document);h>v&&s([`The recorded findings would be stored as ${h} bytes; the limit is 5 MB. Shorten or remove findings.`],n);let C=await e.writeAgentFindings(i.appDirectory,T(i),r.document),l=r.document.checks.reduce((D,N)=>D+N.findings.length,0);return await e.recordMetadata({num_security_findings:l}),{path:C,checks:r.document.checks.length,findings:l}}function M(t,e,i){let n=d(e,i);g({headline:"Agent findings recorded.",body:[`Recorded ${f(t.checks,"check")} and ${f(t.findings,"finding")} in`,{filePath:t.path}],nextSteps:[["Run",{command:u(n.review)},"to see the results."]]})}var p=class t extends w{static summary="Record agent findings from an app security check.";static descriptionWithMarkdown="Reads a coding agent's complete findings document from stdin, validates it, and replaces `agent-findings.json` in the results directory, `.shopify/app-security/<results key>/`. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. `--client-id` is checked against your Shopify account before anything is read, so it needs you to be logged in.\n\nThe document must include a `scope` with the `include_dirs`, `excludes` and `no_git_ignore` values of the `check` run it describes, exactly as typed. It's recorded as reported and never compared with the scan's files.\n\nThe document is recorded all or nothing: if anything is invalid, the command fails with every error, writes nothing, and exits with a non-zero code. It needs the results directory that `shopify app security check` creates.\n\nReports the number of findings to Shopify as usage telemetry, but not finding details. See [usage reporting](https://shopify.dev/docs/api/shopify-cli#usage-reporting) for details.";static description=this.descriptionForHelp();static flags={...S,...b};async run(){let{flags:e}=await this.parse(t),i=await F({path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"],allowPrompts:!1,validateClientIdFlag:!0});await x(i,e.path);let n=await m({selection:i,path:e.path});M(n,i,e.path)}};export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as u}from"./chunk-
|
|
1
|
+
import{b as u}from"./chunk-QLHPTMIH.js";import{b as r,c as I,e as p}from"./chunk-FOAV642V.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();function i(t){return!(t===void 0||t.trim()==="")}function s(t,e){switch(t){case"bitbucket":return{branch:e.BITBUCKET_BRANCH,build:e.BITBUCKET_BUILD_NUMBER,commitSha:e.BITBUCKET_COMMIT,run:e.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${e.BITBUCKET_WORKSPACE}/${e.BITBUCKET_REPO_SLUG}/pipelines/results/${e.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:e.CIRCLE_USERNAME,branch:e.CIRCLE_BRANCH,build:e.CIRCLE_BUILD_NUM,commitSha:e.CIRCLE_SHA1,run:e.CIRCLE_WORKFLOW_ID,url:e.CIRCLE_BUILD_URL};case"github":return{actor:e.GITHUB_ACTOR,attempt:e.GITHUB_RUN_ATTEMPT,branch:e.GITHUB_REF_NAME,build:e.GITHUB_RUN_ID,commitSha:e.GITHUB_SHA,run:e.GITHUB_RUN_ID,runNumber:e.GITHUB_RUN_NUMBER,url:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`};case"gitlab":return{actor:e.GITLAB_USER_LOGIN,branch:e.CI_COMMIT_REF_NAME,build:e.CI_PIPELINE_ID,commitSha:e.CI_COMMIT_SHA,commitMessage:e.CI_COMMIT_MESSAGE,run:e.CI_RUNNER_ID,url:e.CI_PIPELINE_URL};case"buildkite":return{branch:e.BUILDKITE_BRANCH,build:e.BUILDKITE_BUILD_NUMBER,commitSha:e.BUILDKITE_COMMIT,commitMessage:e.BUILDKITE_MESSAGE,run:e.BUILDKITE_BUILD_NUMBER,url:e.BUILDKITE_BUILD_URL};default:return{}}}import{randomUUID as m}from"crypto";import{homedir as f,networkInterfaces as U}from"os";async function _(t){let{fileExists:e}=await import("./fs-VHUA5OHC.js");return e(t)}async function T(t,e){let{exec:a}=await import("./system-KVPOFMPA.js");await a(t,e)}function N(){return!!(!u()&&process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function A(){return f()}var d,l;function y(){l=void 0}function B(t=process.env){return t[r.env]==="development"}function g(t=process.env){return t===process.env?d??=o(t[r.verbose])||process.argv.includes("--verbose"):o(t[r.verbose])||process.argv.includes("--verbose")}async function S(t=process.env){return Object.prototype.hasOwnProperty.call(t,r.runAsUser)?!o(t[r.runAsUser]):await _(p.executables.dev)}function K(t=process.env){return t===process.env?l??=o(t[r.unitTest]):o(t[r.unitTest])}function G(t=process.env){return o(t[r.noAnalytics])||o(t[r.optOutInstrumentation])||B(t)}function O(t=process.env){return o(t[r.alwaysLogAnalytics])}function H(t=process.env){return o(t[r.alwaysLogMetrics])}function w(t=process.env){return o(t[r.doctor])}function P(t=process.env){return t[r.gitpod]}function k(t=process.env){return t[r.codespaceName]}function z(t=process.env){return t[r.codespacePortForwardingDomain]}function F(t=process.env){return E(t).platform!=="localhost"}function $(t=process.env){return t[r.themeToken]}function E(t=process.env){return i(t[r.codespaces])?{platform:"codespaces",editor:!0}:i(t[r.gitpod])?{platform:"gitpod",editor:!0}:i(t[r.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function V(){try{return await T("git",["--version"]),!0}catch{return!1}}function W(t=process.env){if(o(t.CI)){let e="unknown";return i(t.BITBUCKET_BUILD_NUMBER)?e="bitbucket":o(t.CIRCLECI)?e="circleci":i(t.GITHUB_ACTION)?e="github":o(t.GITLAB_CI)?e="gitlab":i(t.BUILDKITE)&&(e="buildkite"),{isCI:!0,name:e,metadata:s(e,t)}}else if(o(t.TF_BUILD))return{isCI:!0,name:"azure",metadata:s("azure",t)};return{isCI:!1}}async function j(){let t="00:00:00:00:00:00",e=Object.values(U()).flat().filter(n=>!!(n&&n.mac!==t));return(e.find(n=>!n.internal)??e[0])?.mac??m()}function Y(t=process.env){let e=t[r.themeKitAccessDomain];return i(e)?e:I}function q(t=process.env){let e=t[r.otelURL];return i(e)?e:"https://otlp-http-production-cli.shopifysvc.com"}export{N as a,A as b,y as c,B as d,g as e,S as f,K as g,G as h,O as i,H as j,w as k,P as l,k as m,z as n,F as o,$ as p,E as q,V as r,W as s,j as t,Y as u,q as v};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as y}from"./chunk-
|
|
1
|
+
import{a as y}from"./chunk-XUZXQC5H.js";import{a as d}from"./chunk-TFVIG4I7.js";import{Ha as h}from"./chunk-X4767EMJ.js";import{b as g,c as l}from"./chunk-DWMRVMKX.js";import{a as m}from"./chunk-B6BTX7WU.js";import{Ib as u,Vb as f,b as e}from"./chunk-QY73XOBU.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();function S(s){return s.allExtensions.filter(t=>t.isFunctionExtension).map(t=>({source:`extensions.${t.configuration.handle}`,namespace:"extensions",handle:t.handle,name:t.name,type:t.type,externalType:t.externalType,humanName:t.humanName,uid:t.uid,directory:t.directory,configurationPath:t.configurationPath,configuration:t.configuration,entrySourceFilePath:t.entrySourceFilePath,outputPath:t.outputPath,surface:t.surface,features:t.features,dependency:t.dependency}))}o();var P=e.object({source:e.string(),namespace:e.literal("extensions"),handle:e.string(),name:e.string(),type:e.string(),externalType:e.string(),humanName:e.string(),uid:e.string(),directory:e.string(),configurationPath:e.string(),configuration:e.record(e.unknown()),entrySourceFilePath:e.string(),outputPath:e.string(),surface:e.string(),features:e.array(e.string()),dependency:e.string().optional()}).strict(),c=m({name:"AppLogSourcesResult",schema:e.object({sources:e.array(P)}).strict(),definitions:{AppLogSource:P}});o();function j(s,t){if(t==="json"){u(c.encode({sources:s}));return}let r=new Map;s.forEach(({source:a})=>{let n=a.split(".");if(n.length>=2){let i=n[0];r.has(i)||r.set(i,[]),r.set(i,[...r.get(i),a])}});for(let[a,n]of r)u(f(a,n.join(`
|
|
2
2
|
`)))}var p=class s extends y{static summary="Print out a list of sources that may be used with the logs command.";static descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";static get jsonOutputSchema(){return c}static description=this.descriptionForHelp();static flags={...g,...d,...l};async run(){let{flags:t}=await this.parse(s),{app:r}=await h({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return r.errors.isEmpty()?j(S(r),t.json?"json":"text"):process.exit(2),{app:r}}};export{p as a};
|