shipscreens 0.1.2 → 0.1.3
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/README.md +37 -0
- package/bin/shipscreens.js +15 -1
- package/cli/commands/build.js +19 -4
- package/cli/mcpServer.js +573 -0
- package/dist/app/assets/AgentCli-CJHTv5S4.js +17 -0
- package/dist/app/assets/AgentCli-CJHTv5S4.js.map +1 -0
- package/dist/app/assets/App-BwQ1zI7a.css +1 -0
- package/dist/app/assets/App-DV5XHwn8.js +13 -0
- package/dist/app/assets/App-DV5XHwn8.js.map +1 -0
- package/dist/app/assets/AppReviewAso-Dvh6A_g-.js +4 -0
- package/dist/app/assets/AppReviewAso-Dvh6A_g-.js.map +1 -0
- package/dist/app/assets/{Cancelled-66ixTUrm.js → Cancelled-D6i4ywc8.js} +2 -2
- package/dist/app/assets/{Cancelled-66ixTUrm.js.map → Cancelled-D6i4ywc8.js.map} +1 -1
- package/dist/app/assets/CopyButton-BlPQEoP3.js +2 -0
- package/dist/app/assets/CopyButton-BlPQEoP3.js.map +1 -0
- package/dist/app/assets/FastlaneScreenshots-DF74cNwo.js +52 -0
- package/dist/app/assets/FastlaneScreenshots-DF74cNwo.js.map +1 -0
- package/dist/app/assets/FirstExport-BMHdPGDX.js +6 -0
- package/dist/app/assets/FirstExport-BMHdPGDX.js.map +1 -0
- package/dist/app/assets/FitPanel-Fp4iPZxf.js +2 -0
- package/dist/app/assets/FitPanel-Fp4iPZxf.js.map +1 -0
- package/dist/app/assets/FivePanelFramework-B967Cblg.js +62 -0
- package/dist/app/assets/FivePanelFramework-B967Cblg.js.map +1 -0
- package/dist/{assets/ForgotPassword-B9_si1tH.js → app/assets/ForgotPassword-CApAdwy1.js} +2 -2
- package/dist/app/assets/{ForgotPassword-B9_si1tH.js.map → ForgotPassword-CApAdwy1.js.map} +1 -1
- package/dist/app/assets/Landing-Vxx4PfE4.js +2 -0
- package/dist/app/assets/Landing-Vxx4PfE4.js.map +1 -0
- package/dist/app/assets/{LanguageSwitcher-BD9N-dla.js → LanguageSwitcher-Cp-6zMXz.js} +2 -2
- package/dist/{assets/LanguageSwitcher-BD9N-dla.js.map → app/assets/LanguageSwitcher-Cp-6zMXz.js.map} +1 -1
- package/dist/app/assets/{Legal-D3cAXQXw.js → Legal-CGgUYM9f.js} +2 -2
- package/dist/app/assets/{Legal-D3cAXQXw.js.map → Legal-CGgUYM9f.js.map} +1 -1
- package/dist/app/assets/{NotFound-ClV-6RmP.js → NotFound-DCeMrR7Q.js} +2 -2
- package/dist/app/assets/{NotFound-ClV-6RmP.js.map → NotFound-DCeMrR7Q.js.map} +1 -1
- package/dist/app/assets/Pricing-CGZnCST5.js +2 -0
- package/dist/app/assets/Pricing-CGZnCST5.js.map +1 -0
- package/dist/app/assets/{Privacy-DfxgWwC3.js → Privacy-D86um9Ox.js} +2 -2
- package/dist/{assets/Privacy-DfxgWwC3.js.map → app/assets/Privacy-D86um9Ox.js.map} +1 -1
- package/dist/app/assets/{SignIn-ghQCKcPe.js → SignIn-J1V55TpG.js} +2 -2
- package/dist/app/assets/{SignIn-ghQCKcPe.js.map → SignIn-J1V55TpG.js.map} +1 -1
- package/dist/app/assets/{SignUp-BKB87hd4.js → SignUp-D6y9FaIp.js} +2 -2
- package/dist/{assets/SignUp-BKB87hd4.js.map → app/assets/SignUp-D6y9FaIp.js.map} +1 -1
- package/dist/app/assets/SiteHeader-Ch5fAKkA.js +2 -0
- package/dist/app/assets/SiteHeader-Ch5fAKkA.js.map +1 -0
- package/dist/app/assets/StickyMobileCta-BdjmxjZ4.js +2 -0
- package/dist/app/assets/StickyMobileCta-BdjmxjZ4.js.map +1 -0
- package/dist/app/assets/StoreAssetsPipeline-Cl-3GPfw.js +6 -0
- package/dist/app/assets/StoreAssetsPipeline-Cl-3GPfw.js.map +1 -0
- package/dist/app/assets/{Success-819qvzmp.js → Success-BtaUzpPJ.js} +2 -2
- package/dist/app/assets/{Success-819qvzmp.js.map → Success-BtaUzpPJ.js.map} +1 -1
- package/dist/app/assets/{Terms-7k3nA4SU.js → Terms-D_qNDuwq.js} +2 -2
- package/dist/app/assets/{Terms-7k3nA4SU.js.map → Terms-D_qNDuwq.js.map} +1 -1
- package/dist/app/assets/ToolGuardrailsPanel-Dqo_LDWu.js +2 -0
- package/dist/app/assets/ToolGuardrailsPanel-Dqo_LDWu.js.map +1 -0
- package/dist/app/assets/ToolsIndex-D7Z_LkLt.js +6 -0
- package/dist/app/assets/ToolsIndex-D7Z_LkLt.js.map +1 -0
- package/dist/app/assets/WorkloadCalculator-6PgA8Qfc.js +5 -0
- package/dist/app/assets/WorkloadCalculator-6PgA8Qfc.js.map +1 -0
- package/dist/app/assets/{calculator-CiqKFdRp.js → calculator-BJHViS7f.js} +2 -2
- package/dist/app/assets/{calculator-CiqKFdRp.js.map → calculator-BJHViS7f.js.map} +1 -1
- package/dist/app/assets/check-IxdpNvaC.js +2 -0
- package/dist/app/assets/check-IxdpNvaC.js.map +1 -0
- package/dist/app/assets/chevron-down-DFKVs9n4.js +2 -0
- package/dist/app/assets/{chevron-down-_xIkRLaA.js.map → chevron-down-DFKVs9n4.js.map} +1 -1
- package/dist/app/assets/circle-check-DA-NWInD.js +2 -0
- package/dist/app/assets/circle-check-DA-NWInD.js.map +1 -0
- package/dist/app/assets/{clipboard-copy-DCJioqIc.js → clipboard-copy-B2p9wr40.js} +2 -2
- package/dist/app/assets/{clipboard-copy-DCJioqIc.js.map → clipboard-copy-B2p9wr40.js.map} +1 -1
- package/dist/app/assets/{copy-AQdWJCcs.js → copy-BnUx1vxq.js} +2 -2
- package/dist/app/assets/{copy-AQdWJCcs.js.map → copy-BnUx1vxq.js.map} +1 -1
- package/dist/app/assets/{crop-DOMVp18h.js → crop-BLAB1KK_.js} +2 -2
- package/dist/app/assets/{crop-DOMVp18h.js.map → crop-BLAB1KK_.js.map} +1 -1
- package/dist/app/assets/{download-D5RbyXDm.js → download-DNjju5h9.js} +2 -2
- package/dist/app/assets/{download-D5RbyXDm.js.map → download-DNjju5h9.js.map} +1 -1
- package/dist/app/assets/{eye-CLcZi_uk.js → eye-DkJdJAvt.js} +2 -2
- package/dist/app/assets/{eye-CLcZi_uk.js.map → eye-DkJdJAvt.js.map} +1 -1
- package/dist/app/assets/folder-tree-zQOd55nP.js +2 -0
- package/dist/app/assets/folder-tree-zQOd55nP.js.map +1 -0
- package/dist/app/assets/{grid-3x3-AKmIrhzv.js → grid-3x3-BCPiZxWL.js} +2 -2
- package/dist/{assets/grid-3x3-AKmIrhzv.js.map → app/assets/grid-3x3-BCPiZxWL.js.map} +1 -1
- package/dist/app/assets/hero/cli-build-tree-15s.mp4 +0 -0
- package/dist/app/assets/hero/cli-build-tree-15s.webm +0 -0
- package/dist/app/assets/hero/cli-build-tree-25s.mp4 +0 -0
- package/dist/app/assets/hero/cli-build-tree-25s.webm +0 -0
- package/dist/app/assets/hero/cli-build-tree-poster.png +0 -0
- package/dist/app/assets/hero/demo-25s-poster.jpg +0 -0
- package/dist/app/assets/hero/demo-25s.mp4 +0 -0
- package/dist/app/assets/hero/demo-25s.webm +0 -0
- package/dist/app/assets/hero/demo-poster.jpg +0 -0
- package/dist/app/assets/hero/demo.mp4 +0 -0
- package/dist/app/assets/hero/demo.webm +0 -0
- package/dist/app/assets/{index-Bqv2NztY.js → index-C4xM6WAU.js} +18 -18
- package/dist/app/assets/index-C4xM6WAU.js.map +1 -0
- package/dist/app/assets/index-CQecHUcy.css +1 -0
- package/dist/app/assets/{layout-grid-CpGXUPMR.js → layout-grid-DvMRLTBT.js} +2 -2
- package/dist/app/assets/{layout-grid-CpGXUPMR.js.map → layout-grid-DvMRLTBT.js.map} +1 -1
- package/dist/app/assets/noto-sans-arabic-arabic-400-normal-AAMxebZb.woff2 +0 -0
- package/dist/app/assets/noto-sans-arabic-arabic-400-normal-hsqIUL9Q.woff +0 -0
- package/dist/app/assets/noto-sans-arabic-arabic-500-normal-CoaTbVwZ.woff +0 -0
- package/dist/app/assets/noto-sans-arabic-arabic-500-normal-DPISWLls.woff2 +0 -0
- package/dist/app/assets/noto-sans-arabic-arabic-700-normal-3CqrwsiZ.woff2 +0 -0
- package/dist/app/assets/noto-sans-arabic-arabic-700-normal-DXnsSW3z.woff +0 -0
- package/dist/app/assets/noto-sans-thai-thai-400-normal-BEOmKAI1.woff2 +0 -0
- package/dist/app/assets/noto-sans-thai-thai-400-normal-Dxb_unuU.woff +0 -0
- package/dist/app/assets/noto-sans-thai-thai-500-normal-BOGXO2tw.woff +0 -0
- package/dist/app/assets/noto-sans-thai-thai-500-normal-CU_X86GQ.woff2 +0 -0
- package/dist/app/assets/noto-sans-thai-thai-700-normal-C9ISMlQq.woff +0 -0
- package/dist/app/assets/noto-sans-thai-thai-700-normal-Cm52XUnT.woff2 +0 -0
- package/dist/app/assets/{rocket-IzRFv1aW.js → rocket-fjJ-qzsl.js} +2 -2
- package/dist/app/assets/{rocket-IzRFv1aW.js.map → rocket-fjJ-qzsl.js.map} +1 -1
- package/dist/app/assets/{shield-check-CngdN3zn.js → shield-check-C-qC9fhU.js} +2 -2
- package/dist/app/assets/{shield-check-CngdN3zn.js.map → shield-check-C-qC9fhU.js.map} +1 -1
- package/dist/app/assets/{signIn-Cn6FaQYi.js → signIn-CYNXaR1Y.js} +2 -2
- package/dist/{assets/signIn-Cn6FaQYi.js.map → app/assets/signIn-CYNXaR1Y.js.map} +1 -1
- package/dist/app/assets/{smartphone-CpNG_Pfk.js → smartphone-DRYkbHrn.js} +2 -2
- package/dist/app/assets/{smartphone-CpNG_Pfk.js.map → smartphone-DRYkbHrn.js.map} +1 -1
- package/dist/app/assets/{terminal-BbBESfoU.js → terminal-CY2dKmaU.js} +2 -2
- package/dist/{assets/terminal-BbBESfoU.js.map → app/assets/terminal-CY2dKmaU.js.map} +1 -1
- package/dist/{assets/useAuth-3WWZ3GCD.js → app/assets/useAuth-D_UWt-CP.js} +2 -2
- package/dist/app/assets/{useAuth-3WWZ3GCD.js.map → useAuth-D_UWt-CP.js.map} +1 -1
- package/dist/app/index.html +2 -2
- package/dist/assets/AgentCli-CJHTv5S4.js +17 -0
- package/dist/assets/AgentCli-CJHTv5S4.js.map +1 -0
- package/dist/assets/App-BwQ1zI7a.css +1 -0
- package/dist/assets/App-DV5XHwn8.js +13 -0
- package/dist/assets/App-DV5XHwn8.js.map +1 -0
- package/dist/assets/AppReviewAso-Dvh6A_g-.js +4 -0
- package/dist/assets/AppReviewAso-Dvh6A_g-.js.map +1 -0
- package/dist/assets/{Cancelled-66ixTUrm.js → Cancelled-D6i4ywc8.js} +2 -2
- package/dist/assets/{Cancelled-66ixTUrm.js.map → Cancelled-D6i4ywc8.js.map} +1 -1
- package/dist/assets/CopyButton-BlPQEoP3.js +2 -0
- package/dist/assets/CopyButton-BlPQEoP3.js.map +1 -0
- package/dist/assets/FastlaneScreenshots-DF74cNwo.js +52 -0
- package/dist/assets/FastlaneScreenshots-DF74cNwo.js.map +1 -0
- package/dist/assets/FirstExport-BMHdPGDX.js +6 -0
- package/dist/assets/FirstExport-BMHdPGDX.js.map +1 -0
- package/dist/assets/FitPanel-Fp4iPZxf.js +2 -0
- package/dist/assets/FitPanel-Fp4iPZxf.js.map +1 -0
- package/dist/assets/FivePanelFramework-B967Cblg.js +62 -0
- package/dist/assets/FivePanelFramework-B967Cblg.js.map +1 -0
- package/dist/{app/assets/ForgotPassword-B9_si1tH.js → assets/ForgotPassword-CApAdwy1.js} +2 -2
- package/dist/assets/{ForgotPassword-B9_si1tH.js.map → ForgotPassword-CApAdwy1.js.map} +1 -1
- package/dist/assets/Landing-Vxx4PfE4.js +2 -0
- package/dist/assets/Landing-Vxx4PfE4.js.map +1 -0
- package/dist/assets/{LanguageSwitcher-BD9N-dla.js → LanguageSwitcher-Cp-6zMXz.js} +2 -2
- package/dist/{app/assets/LanguageSwitcher-BD9N-dla.js.map → assets/LanguageSwitcher-Cp-6zMXz.js.map} +1 -1
- package/dist/assets/{Legal-D3cAXQXw.js → Legal-CGgUYM9f.js} +2 -2
- package/dist/assets/{Legal-D3cAXQXw.js.map → Legal-CGgUYM9f.js.map} +1 -1
- package/dist/assets/{NotFound-ClV-6RmP.js → NotFound-DCeMrR7Q.js} +2 -2
- package/dist/assets/{NotFound-ClV-6RmP.js.map → NotFound-DCeMrR7Q.js.map} +1 -1
- package/dist/assets/Pricing-CGZnCST5.js +2 -0
- package/dist/assets/Pricing-CGZnCST5.js.map +1 -0
- package/dist/assets/{Privacy-DfxgWwC3.js → Privacy-D86um9Ox.js} +2 -2
- package/dist/{app/assets/Privacy-DfxgWwC3.js.map → assets/Privacy-D86um9Ox.js.map} +1 -1
- package/dist/assets/{SignIn-ghQCKcPe.js → SignIn-J1V55TpG.js} +2 -2
- package/dist/assets/{SignIn-ghQCKcPe.js.map → SignIn-J1V55TpG.js.map} +1 -1
- package/dist/assets/{SignUp-BKB87hd4.js → SignUp-D6y9FaIp.js} +2 -2
- package/dist/{app/assets/SignUp-BKB87hd4.js.map → assets/SignUp-D6y9FaIp.js.map} +1 -1
- package/dist/assets/SiteHeader-Ch5fAKkA.js +2 -0
- package/dist/assets/SiteHeader-Ch5fAKkA.js.map +1 -0
- package/dist/assets/StickyMobileCta-BdjmxjZ4.js +2 -0
- package/dist/assets/StickyMobileCta-BdjmxjZ4.js.map +1 -0
- package/dist/assets/StoreAssetsPipeline-Cl-3GPfw.js +6 -0
- package/dist/assets/StoreAssetsPipeline-Cl-3GPfw.js.map +1 -0
- package/dist/assets/{Success-819qvzmp.js → Success-BtaUzpPJ.js} +2 -2
- package/dist/assets/{Success-819qvzmp.js.map → Success-BtaUzpPJ.js.map} +1 -1
- package/dist/assets/{Terms-7k3nA4SU.js → Terms-D_qNDuwq.js} +2 -2
- package/dist/assets/{Terms-7k3nA4SU.js.map → Terms-D_qNDuwq.js.map} +1 -1
- package/dist/assets/ToolGuardrailsPanel-Dqo_LDWu.js +2 -0
- package/dist/assets/ToolGuardrailsPanel-Dqo_LDWu.js.map +1 -0
- package/dist/assets/ToolsIndex-D7Z_LkLt.js +6 -0
- package/dist/assets/ToolsIndex-D7Z_LkLt.js.map +1 -0
- package/dist/assets/WorkloadCalculator-6PgA8Qfc.js +5 -0
- package/dist/assets/WorkloadCalculator-6PgA8Qfc.js.map +1 -0
- package/dist/assets/{calculator-CiqKFdRp.js → calculator-BJHViS7f.js} +2 -2
- package/dist/assets/{calculator-CiqKFdRp.js.map → calculator-BJHViS7f.js.map} +1 -1
- package/dist/assets/check-IxdpNvaC.js +2 -0
- package/dist/assets/check-IxdpNvaC.js.map +1 -0
- package/dist/assets/chevron-down-DFKVs9n4.js +2 -0
- package/dist/assets/{chevron-down-_xIkRLaA.js.map → chevron-down-DFKVs9n4.js.map} +1 -1
- package/dist/assets/circle-check-DA-NWInD.js +2 -0
- package/dist/assets/circle-check-DA-NWInD.js.map +1 -0
- package/dist/assets/{clipboard-copy-DCJioqIc.js → clipboard-copy-B2p9wr40.js} +2 -2
- package/dist/assets/{clipboard-copy-DCJioqIc.js.map → clipboard-copy-B2p9wr40.js.map} +1 -1
- package/dist/assets/{copy-AQdWJCcs.js → copy-BnUx1vxq.js} +2 -2
- package/dist/assets/{copy-AQdWJCcs.js.map → copy-BnUx1vxq.js.map} +1 -1
- package/dist/assets/{crop-DOMVp18h.js → crop-BLAB1KK_.js} +2 -2
- package/dist/assets/{crop-DOMVp18h.js.map → crop-BLAB1KK_.js.map} +1 -1
- package/dist/assets/{download-D5RbyXDm.js → download-DNjju5h9.js} +2 -2
- package/dist/assets/{download-D5RbyXDm.js.map → download-DNjju5h9.js.map} +1 -1
- package/dist/assets/{eye-CLcZi_uk.js → eye-DkJdJAvt.js} +2 -2
- package/dist/assets/{eye-CLcZi_uk.js.map → eye-DkJdJAvt.js.map} +1 -1
- package/dist/assets/folder-tree-zQOd55nP.js +2 -0
- package/dist/assets/folder-tree-zQOd55nP.js.map +1 -0
- package/dist/assets/{grid-3x3-AKmIrhzv.js → grid-3x3-BCPiZxWL.js} +2 -2
- package/dist/{app/assets/grid-3x3-AKmIrhzv.js.map → assets/grid-3x3-BCPiZxWL.js.map} +1 -1
- package/dist/assets/hero/cli-build-tree-15s.mp4 +0 -0
- package/dist/assets/hero/cli-build-tree-15s.webm +0 -0
- package/dist/assets/hero/cli-build-tree-25s.mp4 +0 -0
- package/dist/assets/hero/cli-build-tree-25s.webm +0 -0
- package/dist/assets/hero/cli-build-tree-poster.png +0 -0
- package/dist/assets/hero/demo-25s-poster.jpg +0 -0
- package/dist/assets/hero/demo-25s.mp4 +0 -0
- package/dist/assets/hero/demo-25s.webm +0 -0
- package/dist/assets/hero/demo-poster.jpg +0 -0
- package/dist/assets/hero/demo.mp4 +0 -0
- package/dist/assets/hero/demo.webm +0 -0
- package/dist/assets/{index-Bqv2NztY.js → index-C4xM6WAU.js} +18 -18
- package/dist/assets/index-C4xM6WAU.js.map +1 -0
- package/dist/assets/index-CQecHUcy.css +1 -0
- package/dist/assets/{layout-grid-CpGXUPMR.js → layout-grid-DvMRLTBT.js} +2 -2
- package/dist/assets/{layout-grid-CpGXUPMR.js.map → layout-grid-DvMRLTBT.js.map} +1 -1
- package/dist/assets/noto-sans-arabic-arabic-400-normal-AAMxebZb.woff2 +0 -0
- package/dist/assets/noto-sans-arabic-arabic-400-normal-hsqIUL9Q.woff +0 -0
- package/dist/assets/noto-sans-arabic-arabic-500-normal-CoaTbVwZ.woff +0 -0
- package/dist/assets/noto-sans-arabic-arabic-500-normal-DPISWLls.woff2 +0 -0
- package/dist/assets/noto-sans-arabic-arabic-700-normal-3CqrwsiZ.woff2 +0 -0
- package/dist/assets/noto-sans-arabic-arabic-700-normal-DXnsSW3z.woff +0 -0
- package/dist/assets/noto-sans-thai-thai-400-normal-BEOmKAI1.woff2 +0 -0
- package/dist/assets/noto-sans-thai-thai-400-normal-Dxb_unuU.woff +0 -0
- package/dist/assets/noto-sans-thai-thai-500-normal-BOGXO2tw.woff +0 -0
- package/dist/assets/noto-sans-thai-thai-500-normal-CU_X86GQ.woff2 +0 -0
- package/dist/assets/noto-sans-thai-thai-700-normal-C9ISMlQq.woff +0 -0
- package/dist/assets/noto-sans-thai-thai-700-normal-Cm52XUnT.woff2 +0 -0
- package/dist/assets/{rocket-IzRFv1aW.js → rocket-fjJ-qzsl.js} +2 -2
- package/dist/assets/{rocket-IzRFv1aW.js.map → rocket-fjJ-qzsl.js.map} +1 -1
- package/dist/assets/{shield-check-CngdN3zn.js → shield-check-C-qC9fhU.js} +2 -2
- package/dist/assets/{shield-check-CngdN3zn.js.map → shield-check-C-qC9fhU.js.map} +1 -1
- package/dist/assets/{signIn-Cn6FaQYi.js → signIn-CYNXaR1Y.js} +2 -2
- package/dist/{app/assets/signIn-Cn6FaQYi.js.map → assets/signIn-CYNXaR1Y.js.map} +1 -1
- package/dist/assets/{smartphone-CpNG_Pfk.js → smartphone-DRYkbHrn.js} +2 -2
- package/dist/assets/{smartphone-CpNG_Pfk.js.map → smartphone-DRYkbHrn.js.map} +1 -1
- package/dist/assets/{terminal-BbBESfoU.js → terminal-CY2dKmaU.js} +2 -2
- package/dist/{app/assets/terminal-BbBESfoU.js.map → assets/terminal-CY2dKmaU.js.map} +1 -1
- package/dist/{app/assets/useAuth-3WWZ3GCD.js → assets/useAuth-D_UWt-CP.js} +2 -2
- package/dist/assets/{useAuth-3WWZ3GCD.js.map → useAuth-D_UWt-CP.js.map} +1 -1
- package/dist/cancelled/index.html +2 -2
- package/dist/forgot-password/index.html +2 -2
- package/dist/index.html +2 -2
- package/dist/legal/index.html +2 -2
- package/dist/llms-full.txt +106 -0
- package/dist/llms.txt +35 -0
- package/dist/pricing/index.html +33 -0
- package/dist/privacy/index.html +2 -2
- package/dist/robots.txt +2 -0
- package/dist/signin/index.html +2 -2
- package/dist/signup/index.html +2 -2
- package/dist/sitemap.xml +12 -0
- package/dist/success/index.html +2 -2
- package/dist/terms/index.html +2 -2
- package/dist/tools/5-panel-screenshot-framework/index.html +2 -2
- package/dist/tools/agent-cli/index.html +2 -2
- package/dist/tools/app-review-aso/index.html +2 -2
- package/dist/tools/fastlane-screenshots/index.html +2 -2
- package/dist/tools/first-export/index.html +2 -2
- package/dist/tools/index.html +2 -2
- package/dist/tools/screenshot-workload-calculator/index.html +2 -2
- package/dist/tools/store-assets-pipeline/index.html +2 -2
- package/package.json +22 -2
- package/dist/app/assets/AgentCli-FWNCO1pb.js +0 -17
- package/dist/app/assets/AgentCli-FWNCO1pb.js.map +0 -1
- package/dist/app/assets/App-yU7CFXCv.js +0 -13
- package/dist/app/assets/App-yU7CFXCv.js.map +0 -1
- package/dist/app/assets/AppReviewAso-BYfaP1Lu.js +0 -4
- package/dist/app/assets/AppReviewAso-BYfaP1Lu.js.map +0 -1
- package/dist/app/assets/CliPreflightCard-D7utpFux.js +0 -2
- package/dist/app/assets/CliPreflightCard-D7utpFux.js.map +0 -1
- package/dist/app/assets/CopyButton-CmVmSaYn.js +0 -2
- package/dist/app/assets/CopyButton-CmVmSaYn.js.map +0 -1
- package/dist/app/assets/FastlaneScreenshots-CRMcetq-.js +0 -52
- package/dist/app/assets/FastlaneScreenshots-CRMcetq-.js.map +0 -1
- package/dist/app/assets/FirstExport-C0WgL4Hl.js +0 -6
- package/dist/app/assets/FirstExport-C0WgL4Hl.js.map +0 -1
- package/dist/app/assets/FivePanelFramework-BwCRmXIK.js +0 -60
- package/dist/app/assets/FivePanelFramework-BwCRmXIK.js.map +0 -1
- package/dist/app/assets/Landing-s1ni1n-7.js +0 -2
- package/dist/app/assets/Landing-s1ni1n-7.js.map +0 -1
- package/dist/app/assets/SiteHeader-DxsqNPnt.js +0 -2
- package/dist/app/assets/SiteHeader-DxsqNPnt.js.map +0 -1
- package/dist/app/assets/StickyMobileCta-C_x2pUIF.js +0 -2
- package/dist/app/assets/StickyMobileCta-C_x2pUIF.js.map +0 -1
- package/dist/app/assets/StoreAssetsPipeline-4hXRONUd.js +0 -4
- package/dist/app/assets/StoreAssetsPipeline-4hXRONUd.js.map +0 -1
- package/dist/app/assets/ToolsIndex-CzrxymnM.js +0 -6
- package/dist/app/assets/ToolsIndex-CzrxymnM.js.map +0 -1
- package/dist/app/assets/WorkloadCalculator-D2TuKS4B.js +0 -5
- package/dist/app/assets/WorkloadCalculator-D2TuKS4B.js.map +0 -1
- package/dist/app/assets/chevron-down-_xIkRLaA.js +0 -2
- package/dist/app/assets/index-Bqv2NztY.js.map +0 -1
- package/dist/app/assets/index-DGVMa-P7.css +0 -1
- package/dist/assets/AgentCli-FWNCO1pb.js +0 -17
- package/dist/assets/AgentCli-FWNCO1pb.js.map +0 -1
- package/dist/assets/App-yU7CFXCv.js +0 -13
- package/dist/assets/App-yU7CFXCv.js.map +0 -1
- package/dist/assets/AppReviewAso-BYfaP1Lu.js +0 -4
- package/dist/assets/AppReviewAso-BYfaP1Lu.js.map +0 -1
- package/dist/assets/CliPreflightCard-D7utpFux.js +0 -2
- package/dist/assets/CliPreflightCard-D7utpFux.js.map +0 -1
- package/dist/assets/CopyButton-CmVmSaYn.js +0 -2
- package/dist/assets/CopyButton-CmVmSaYn.js.map +0 -1
- package/dist/assets/FastlaneScreenshots-CRMcetq-.js +0 -52
- package/dist/assets/FastlaneScreenshots-CRMcetq-.js.map +0 -1
- package/dist/assets/FirstExport-C0WgL4Hl.js +0 -6
- package/dist/assets/FirstExport-C0WgL4Hl.js.map +0 -1
- package/dist/assets/FivePanelFramework-BwCRmXIK.js +0 -60
- package/dist/assets/FivePanelFramework-BwCRmXIK.js.map +0 -1
- package/dist/assets/Landing-s1ni1n-7.js +0 -2
- package/dist/assets/Landing-s1ni1n-7.js.map +0 -1
- package/dist/assets/SiteHeader-DxsqNPnt.js +0 -2
- package/dist/assets/SiteHeader-DxsqNPnt.js.map +0 -1
- package/dist/assets/StickyMobileCta-C_x2pUIF.js +0 -2
- package/dist/assets/StickyMobileCta-C_x2pUIF.js.map +0 -1
- package/dist/assets/StoreAssetsPipeline-4hXRONUd.js +0 -4
- package/dist/assets/StoreAssetsPipeline-4hXRONUd.js.map +0 -1
- package/dist/assets/ToolsIndex-CzrxymnM.js +0 -6
- package/dist/assets/ToolsIndex-CzrxymnM.js.map +0 -1
- package/dist/assets/WorkloadCalculator-D2TuKS4B.js +0 -5
- package/dist/assets/WorkloadCalculator-D2TuKS4B.js.map +0 -1
- package/dist/assets/chevron-down-_xIkRLaA.js +0 -2
- package/dist/assets/index-Bqv2NztY.js.map +0 -1
- package/dist/assets/index-DGVMa-P7.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Privacy-
|
|
1
|
+
{"version":3,"file":"Privacy-D86um9Ox.js","sources":["../../src/pages/Privacy.jsx"],"sourcesContent":["import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport StagingBadge from '../components/StagingBadge';\nimport SiteHeader from '../components/SiteHeader';\nimport usePageTitle from '../hooks/usePageTitle';\n\nconst Privacy = () => {\n const { t } = useTranslation();\n usePageTitle('titles.privacy');\n const sections = t('privacy.sections', { returnObjects: true }) || [];\n\n return (\n <div className=\"min-h-screen bg-slate-50 text-slate-800\">\n <StagingBadge />\n <SiteHeader variant=\"light\" showX={false} />\n\n <main className=\"max-w-4xl mx-auto px-4 py-12\">\n <h1 className=\"text-3xl font-bold mb-6\">{t('privacy.title')}</h1>\n <p className=\"mb-4\">{t('privacy.intro')}</p>\n {sections.map((section) => (\n <Section key={section.title} title={section.title} body={section.body} items={section.items} />\n ))}\n <p className=\"mt-6 text-sm text-slate-600\">{t('privacy.contact', { email: 'support@shimaumaservices.co.jp' })}</p>\n </main>\n </div>\n );\n};\n\r\nconst Section = ({ title, body, items }) => (\r\n <section>\r\n <h2 className=\"text-xl font-semibold mt-6 mb-2\">{title}</h2>\r\n {items ? (\r\n <ul className=\"list-disc pl-6 space-y-2 mb-4\">\r\n {items.map((item) => (\r\n <li key={item}>{item}</li>\r\n ))}\r\n </ul>\r\n ) : (\r\n <p className=\"mb-3\">{body}</p>\r\n )}\r\n </section>\r\n);\r\n\r\nexport default Privacy;\r\n"],"names":["Privacy","t","useTranslation","usePageTitle","sections","jsxs","jsx","StagingBadge","SiteHeader","section","Section","title","body","items","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as e}from"./index-C4xM6WAU.js";import{u as y}from"./useAuth-D_UWt-CP.js";import{a as v,S as N}from"./LanguageSwitcher-Cp-6zMXz.js";import{S}from"./SiteHeader-Ch5fAKkA.js";import{S as P}from"./smartphone-DRYkbHrn.js";import{E as C,a as E}from"./eye-DkJdJAvt.js";import{s as k}from"./signIn-CYNXaR1Y.js";const I=()=>{if(typeof window>"u")return null;const t=new URLSearchParams(window.location.search).get("next");return!t||!t.startsWith("/")||t.startsWith("//")?null:t},$=()=>{const{t:s}=j();v("titles.signIn");const{isAuthenticated:t,isLoading:o}=y(),a=I(),[i,m]=l.useState(""),[d,p]=l.useState(""),[n,f]=l.useState(!1),[c,u]=l.useState(""),[b,x]=l.useState(!1);l.useEffect(()=>{!o&&t&&(window.location.href=a||"/app/")},[t,o,a]);const w=async r=>{r.preventDefault(),u(""),x(!0);try{await k({username:i,password:d}),window.location.href=a||"/app/"}catch(h){const g=h?.name||h?.code;u(s(`auth.errors.${g}`,s("auth.errors.default")))}finally{x(!1)}};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col",children:[e.jsx(N,{}),e.jsx(S,{variant:"dark",showX:!1}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 pb-12",children:e.jsxs("div",{className:"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-slate-800 border border-slate-700 text-white shadow-lg",children:e.jsx(P,{size:24})}),e.jsx("h1",{className:"text-2xl font-bold",children:s("auth.title")}),e.jsx("p",{className:"text-slate-400 text-sm",children:s("auth.subtitle")})]}),e.jsxs("form",{onSubmit:w,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signin-email",className:"block text-sm text-slate-300",children:s("auth.email")}),e.jsx("input",{id:"signin-email",type:"email",value:i,onChange:r=>m(r.target.value),required:!0,autoComplete:"email",className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:s("auth.placeholders.email")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signin-password",className:"block text-sm text-slate-300",children:s("auth.password")}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{id:"signin-password",type:n?"text":"password",value:d,onChange:r=>p(r.target.value),required:!0,autoComplete:"current-password",className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:s("auth.placeholders.password")}),e.jsx("button",{type:"button",onClick:()=>f(r=>!r),className:"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200","aria-label":n?s("auth.actions.hidePassword",{defaultValue:"Hide password"}):s("auth.actions.showPassword",{defaultValue:"Show password"}),title:n?s("auth.actions.hidePassword",{defaultValue:"Hide password"}):s("auth.actions.showPassword",{defaultValue:"Show password"}),children:n?e.jsx(C,{size:18}):e.jsx(E,{size:18})})]}),e.jsx("div",{className:"flex justify-end",children:e.jsx("a",{href:a?`/forgot-password?next=${encodeURIComponent(a)}`:"/forgot-password",className:"text-xs text-blue-300 hover:text-blue-200 underline underline-offset-4",children:s("auth.links.forgotPassword")})})]}),c&&e.jsx("div",{role:"alert",className:"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2",children:c}),e.jsx("button",{type:"submit",disabled:b,className:"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed",children:s("auth.actions.signIn")})]}),e.jsxs("div",{className:"text-center text-sm text-slate-400 space-y-1",children:[e.jsxs("div",{children:[s("auth.actions.needAccount")," ",e.jsx("button",{type:"button",className:"text-blue-300 hover:text-blue-200 underline",onClick:()=>{window.location.href=a?`/signup?next=${encodeURIComponent(a)}`:"/signup"},children:s("auth.actions.goToSignUp")})]}),e.jsxs("div",{className:"text-slate-500 text-xs",children:[e.jsx("div",{children:s("auth.helper.terms")}),e.jsxs("div",{className:"mt-1 flex items-center justify-center gap-2",children:[e.jsx("a",{href:"/terms",className:"underline underline-offset-4 hover:text-slate-200",children:s("landing.footer.terms")}),e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx("a",{href:"/privacy",className:"underline underline-offset-4 hover:text-slate-200",children:s("landing.footer.privacy")})]})]})]})]})})]})};export{$ as default};
|
|
2
|
+
//# sourceMappingURL=SignIn-J1V55TpG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignIn-ghQCKcPe.js","sources":["../../src/pages/SignIn.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { signIn } from 'aws-amplify/auth';\nimport { Eye, EyeOff, Smartphone } from 'lucide-react';\nimport useAuth from '../hooks/useAuth';\nimport usePageTitle from '../hooks/usePageTitle';\nimport StagingBadge from '../components/StagingBadge';\nimport SiteHeader from '../components/SiteHeader';\n\nconst readNextPath = () => {\n if (typeof window === 'undefined') return null;\n const params = new URLSearchParams(window.location.search);\n const next = params.get('next');\n if (!next) return null;\n if (!next.startsWith('/') || next.startsWith('//')) return null;\n return next;\n};\n\nconst SignIn = () => {\n const { t } = useTranslation();\n usePageTitle('titles.signIn');\n const { isAuthenticated, isLoading } = useAuth();\n const nextPath = readNextPath();\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [error, setError] = useState('');\n const [busy, setBusy] = useState(false);\n\n useEffect(() => {\n if (!isLoading && isAuthenticated) {\n window.location.href = nextPath || '/app/';\n }\n }, [isAuthenticated, isLoading, nextPath]);\n\n const handleSubmit = async (e) => {\n e.preventDefault();\n setError('');\n setBusy(true);\n try {\n await signIn({ username: email, password });\n window.location.href = nextPath || '/app/';\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <div className=\"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col\">\n <StagingBadge />\n <SiteHeader variant=\"dark\" showX={false} />\n <main className=\"flex-1 flex items-center justify-center px-4 pb-12\">\n <div className=\"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6\">\n <div className=\"text-center space-y-2\">\n <div className=\"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-slate-800 border border-slate-700 text-white shadow-lg\">\n <Smartphone size={24} />\n </div>\n <h1 className=\"text-2xl font-bold\">{t('auth.title')}</h1>\n <p className=\"text-slate-400 text-sm\">{t('auth.subtitle')}</p>\n </div>\n <form onSubmit={handleSubmit} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signin-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signin-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signin-password\" className=\"block text-sm text-slate-300\">\n {t('auth.password')}\n </label>\n <div className=\"relative\">\n <input\n id=\"signin-password\"\n type={passwordVisible ? 'text' : 'password'}\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n required\n autoComplete=\"current-password\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.password')}\n />\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((prev) => !prev)}\n className=\"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200\"\n aria-label={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n title={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n >\n {passwordVisible ? <EyeOff size={18} /> : <Eye size={18} />}\n </button>\n </div>\n <div className=\"flex justify-end\">\n <a\n href={nextPath ? `/forgot-password?next=${encodeURIComponent(nextPath)}` : '/forgot-password'}\n className=\"text-xs text-blue-300 hover:text-blue-200 underline underline-offset-4\"\n >\n {t('auth.links.forgotPassword')}\n </a>\n </div>\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.signIn')}\n </button>\n </form>\n <div className=\"text-center text-sm text-slate-400 space-y-1\">\n <div>\n {t('auth.actions.needAccount')}{' '}\n <button\n type=\"button\"\n className=\"text-blue-300 hover:text-blue-200 underline\"\n onClick={() => {\n window.location.href = nextPath ? `/signup?next=${encodeURIComponent(nextPath)}` : '/signup';\n }}\n >\n {t('auth.actions.goToSignUp')}\n </button>\n </div>\n <div className=\"text-slate-500 text-xs\">\n <div>{t('auth.helper.terms')}</div>\n <div className=\"mt-1 flex items-center justify-center gap-2\">\n <a href=\"/terms\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.terms')}\n </a>\n <span aria-hidden=\"true\">·</span>\n <a href=\"/privacy\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.privacy')}\n </a>\n </div>\n </div>\n </div>\n </div>\n </main>\n </div>\n );\n};\n\nexport default SignIn;\n"],"names":["readNextPath","next","SignIn","t","useTranslation","usePageTitle","isAuthenticated","isLoading","useAuth","nextPath","email","setEmail","useState","password","setPassword","passwordVisible","setPasswordVisible","error","setError","busy","setBusy","useEffect","handleSubmit","e","signIn","err","key","jsxs","jsx","StagingBadge","SiteHeader","Smartphone","prev","EyeOff","Eye"],"mappings":"qUASA,MAAMA,EAAe,IAAM,CACzB,GAAI,OAAO,OAAW,IAAa,OAAO,KAE1C,MAAMC,EADS,IAAI,gBAAgB,OAAO,SAAS,MAAM,EACrC,IAAI,MAAM,EAE9B,MADI,CAACA,GACD,CAACA,EAAK,WAAW,GAAG,GAAKA,EAAK,WAAW,IAAI,EAAU,KACpDA,CACT,EAEMC,EAAS,IAAM,CACnB,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACdC,EAAa,eAAe,EAC5B,KAAM,CAAE,gBAAAC,EAAiB,UAAAC,CAAA,EAAcC,EAAA,EACjCC,EAAWT,EAAA,EACX,CAACU,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/B,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAiBC,CAAkB,EAAIJ,EAAAA,SAAS,EAAK,EACtD,CAACK,EAAOC,CAAQ,EAAIN,EAAAA,SAAS,EAAE,EAC/B,CAACO,EAAMC,CAAO,EAAIR,EAAAA,SAAS,EAAK,EAEtCS,EAAAA,UAAU,IAAM,CACV,CAACd,GAAaD,IAChB,OAAO,SAAS,KAAOG,GAAY,QAEvC,EAAG,CAACH,EAAiBC,EAAWE,CAAQ,CAAC,EAEzC,MAAMa,EAAe,MAAOC,GAAM,CAChCA,EAAE,eAAA,EACFL,EAAS,EAAE,EACXE,EAAQ,EAAI,EACZ,GAAI,CACF,MAAMI,EAAO,CAAE,SAAUd,EAAO,SAAAG,EAAU,EAC1C,OAAO,SAAS,KAAOJ,GAAY,OACrC,OAASgB,EAAK,CACZ,MAAMC,EAAMD,GAAK,MAAQA,GAAK,KAC9BP,EAASf,EAAE,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,CAAI,UAAU,yBACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAK,SAAAzB,EAAE,mBAAmB,CAAA,CAAE,EAC7BwB,EAAAA,KAAC,MAAA,CAAI,UAAU,8CACb,SAAA,CAAAC,EAAAA,IAAC,KAAE,KAAK,SAAS,UAAU,oDACxB,SAAAzB,EAAE,sBAAsB,EAC3B,EACAyB,EAAAA,IAAC,OAAA,CAAK,cAAY,OAAO,SAAA,IAAC,EAC1BA,MAAC,KAAE,KAAK,WAAW,UAAU,oDAC1B,SAAAzB,EAAE,wBAAwB,CAAA,CAC7B,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACA,CAAA,CACF,CAAA,EACF,CAEJ"}
|
|
1
|
+
{"version":3,"file":"SignIn-J1V55TpG.js","sources":["../../src/pages/SignIn.jsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { signIn } from 'aws-amplify/auth';\nimport { Eye, EyeOff, Smartphone } from 'lucide-react';\nimport useAuth from '../hooks/useAuth';\nimport usePageTitle from '../hooks/usePageTitle';\nimport StagingBadge from '../components/StagingBadge';\nimport SiteHeader from '../components/SiteHeader';\n\nconst readNextPath = () => {\n if (typeof window === 'undefined') return null;\n const params = new URLSearchParams(window.location.search);\n const next = params.get('next');\n if (!next) return null;\n if (!next.startsWith('/') || next.startsWith('//')) return null;\n return next;\n};\n\nconst SignIn = () => {\n const { t } = useTranslation();\n usePageTitle('titles.signIn');\n const { isAuthenticated, isLoading } = useAuth();\n const nextPath = readNextPath();\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [error, setError] = useState('');\n const [busy, setBusy] = useState(false);\n\n useEffect(() => {\n if (!isLoading && isAuthenticated) {\n window.location.href = nextPath || '/app/';\n }\n }, [isAuthenticated, isLoading, nextPath]);\n\n const handleSubmit = async (e) => {\n e.preventDefault();\n setError('');\n setBusy(true);\n try {\n await signIn({ username: email, password });\n window.location.href = nextPath || '/app/';\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <div className=\"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col\">\n <StagingBadge />\n <SiteHeader variant=\"dark\" showX={false} />\n <main className=\"flex-1 flex items-center justify-center px-4 pb-12\">\n <div className=\"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6\">\n <div className=\"text-center space-y-2\">\n <div className=\"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-slate-800 border border-slate-700 text-white shadow-lg\">\n <Smartphone size={24} />\n </div>\n <h1 className=\"text-2xl font-bold\">{t('auth.title')}</h1>\n <p className=\"text-slate-400 text-sm\">{t('auth.subtitle')}</p>\n </div>\n <form onSubmit={handleSubmit} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signin-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signin-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signin-password\" className=\"block text-sm text-slate-300\">\n {t('auth.password')}\n </label>\n <div className=\"relative\">\n <input\n id=\"signin-password\"\n type={passwordVisible ? 'text' : 'password'}\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n required\n autoComplete=\"current-password\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.password')}\n />\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((prev) => !prev)}\n className=\"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200\"\n aria-label={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n title={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n >\n {passwordVisible ? <EyeOff size={18} /> : <Eye size={18} />}\n </button>\n </div>\n <div className=\"flex justify-end\">\n <a\n href={nextPath ? `/forgot-password?next=${encodeURIComponent(nextPath)}` : '/forgot-password'}\n className=\"text-xs text-blue-300 hover:text-blue-200 underline underline-offset-4\"\n >\n {t('auth.links.forgotPassword')}\n </a>\n </div>\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.signIn')}\n </button>\n </form>\n <div className=\"text-center text-sm text-slate-400 space-y-1\">\n <div>\n {t('auth.actions.needAccount')}{' '}\n <button\n type=\"button\"\n className=\"text-blue-300 hover:text-blue-200 underline\"\n onClick={() => {\n window.location.href = nextPath ? `/signup?next=${encodeURIComponent(nextPath)}` : '/signup';\n }}\n >\n {t('auth.actions.goToSignUp')}\n </button>\n </div>\n <div className=\"text-slate-500 text-xs\">\n <div>{t('auth.helper.terms')}</div>\n <div className=\"mt-1 flex items-center justify-center gap-2\">\n <a href=\"/terms\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.terms')}\n </a>\n <span aria-hidden=\"true\">·</span>\n <a href=\"/privacy\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.privacy')}\n </a>\n </div>\n </div>\n </div>\n </div>\n </main>\n </div>\n );\n};\n\nexport default SignIn;\n"],"names":["readNextPath","next","SignIn","t","useTranslation","usePageTitle","isAuthenticated","isLoading","useAuth","nextPath","email","setEmail","useState","password","setPassword","passwordVisible","setPasswordVisible","error","setError","busy","setBusy","useEffect","handleSubmit","e","signIn","err","key","jsxs","jsx","StagingBadge","SiteHeader","Smartphone","prev","EyeOff","Eye"],"mappings":"qUASA,MAAMA,EAAe,IAAM,CACzB,GAAI,OAAO,OAAW,IAAa,OAAO,KAE1C,MAAMC,EADS,IAAI,gBAAgB,OAAO,SAAS,MAAM,EACrC,IAAI,MAAM,EAE9B,MADI,CAACA,GACD,CAACA,EAAK,WAAW,GAAG,GAAKA,EAAK,WAAW,IAAI,EAAU,KACpDA,CACT,EAEMC,EAAS,IAAM,CACnB,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACdC,EAAa,eAAe,EAC5B,KAAM,CAAE,gBAAAC,EAAiB,UAAAC,CAAA,EAAcC,EAAA,EACjCC,EAAWT,EAAA,EACX,CAACU,EAAOC,CAAQ,EAAIC,EAAAA,SAAS,EAAE,EAC/B,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAiBC,CAAkB,EAAIJ,EAAAA,SAAS,EAAK,EACtD,CAACK,EAAOC,CAAQ,EAAIN,EAAAA,SAAS,EAAE,EAC/B,CAACO,EAAMC,CAAO,EAAIR,EAAAA,SAAS,EAAK,EAEtCS,EAAAA,UAAU,IAAM,CACV,CAACd,GAAaD,IAChB,OAAO,SAAS,KAAOG,GAAY,QAEvC,EAAG,CAACH,EAAiBC,EAAWE,CAAQ,CAAC,EAEzC,MAAMa,EAAe,MAAOC,GAAM,CAChCA,EAAE,eAAA,EACFL,EAAS,EAAE,EACXE,EAAQ,EAAI,EACZ,GAAI,CACF,MAAMI,EAAO,CAAE,SAAUd,EAAO,SAAAG,EAAU,EAC1C,OAAO,SAAS,KAAOJ,GAAY,OACrC,OAASgB,EAA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AAE,yBAAyB,CAAA,CAAA,CAC9B,EACF,EACAkB,EAAAA,KAAC,MAAA,CAAI,UAAU,yBACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAK,SAAAzB,EAAE,mBAAmB,CAAA,CAAE,EAC7BwB,EAAAA,KAAC,MAAA,CAAI,UAAU,8CACb,SAAA,CAAAC,EAAAA,IAAC,KAAE,KAAK,SAAS,UAAU,oDACxB,SAAAzB,EAAE,sBAAsB,EAC3B,EACAyB,EAAAA,IAAC,OAAA,CAAK,cAAY,OAAO,SAAA,IAAC,EAC1BA,MAAC,KAAE,KAAK,WAAW,UAAU,oDAC1B,SAAAzB,EAAE,wBAAwB,CAAA,CAC7B,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACA,CAAA,CACF,CAAA,EACF,CAEJ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as k,r as o,j as e}from"./index-
|
|
2
|
-
//# sourceMappingURL=SignUp-
|
|
1
|
+
import{u as k,r as o,j as e}from"./index-C4xM6WAU.js";import{c as T,D as V,a as D,b as F,d as O,A as _,e as R,f as N,g as U,h as H,i as L,j as M,k as q,l as P,r as z,H as E,m as $,u as B,s as G}from"./useAuth-D_UWt-CP.js";import{a as W,S as X}from"./LanguageSwitcher-Cp-6zMXz.js";import{S as J}from"./SiteHeader-Ch5fAKkA.js";import{E as K,a as Q}from"./eye-DkJdJAvt.js";import{s as Y}from"./signIn-CYNXaR1Y.js";const Z=t=>T(O,F("ConfirmSignUp"),D(),{...V,...t});async function ee(t){const{username:a,confirmationCode:p,options:l}=t,r=_.getConfig().Auth?.Cognito;R(r);const{userPoolId:w,userPoolClientId:i,userPoolEndpoint:f}=r,h=l?.clientMetadata;N(!!a,U.EmptyConfirmSignUpUsername),N(!!p,U.EmptyConfirmSignUpCode);const y=H({username:a,userPoolId:w,userPoolClientId:i}),c=Z({endpointResolver:$({endpointOverride:f})}),{Session:S}=await c({region:M(r.userPoolId),userAgentValue:L(q.ConfirmSignUp)},{Username:a,ConfirmationCode:p,ClientMetadata:h,ForceAliasCreation:l?.forceAliasCreation,ClientId:r.userPoolClientId,UserContextData:y});return new Promise((x,j)=>{try{const n={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}},d=P.getState();if(!d.active||d.username!==a){x(n),z();return}P.dispatch({type:"SET_SESSION",value:S});const u=E.listen("auth-internal",({payload:m})=>{m.event==="autoSignIn"&&(x({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),u())});E.dispatch("auth-internal",{event:"confirmSignUp",data:n})}catch(n){j(n)}})}const te=()=>{if(typeof window>"u")return null;const a=new URLSearchParams(window.location.search).get("next");return!a||!a.startsWith("/")||a.startsWith("//")?null:a},ie=()=>{const{t}=k();W("titles.signUp");const{isAuthenticated:a,isLoading:p}=B(),l=te(),[r,w]=o.useState("form"),[i,f]=o.useState(""),[h,y]=o.useState(""),[c,S]=o.useState(!1),[x,j]=o.useState(""),[n,d]=o.useState(""),[u,m]=o.useState(""),[C,b]=o.useState(!1);o.useEffect(()=>{!p&&a&&(window.location.href=l||"/app/")},[a,p,l]);const A=async s=>{s.preventDefault(),m(""),d(""),b(!0);try{await G({username:i,password:h,options:{userAttributes:{email:i}}}),d(t("auth.success.signup")),w("confirm")}catch(g){const v=g?.name||g?.code;m(t(`auth.errors.${v}`,t("auth.errors.default")))}finally{b(!1)}},I=async s=>{s.preventDefault(),m(""),d(""),b(!0);try{await ee({username:i,confirmationCode:x}),d(t("auth.success.confirm")),await Y({username:i,password:h}),window.location.href=l||"/app/"}catch(g){const v=g?.name||g?.code;m(t(`auth.errors.${v}`,t("auth.errors.default")))}finally{b(!1)}};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col",children:[e.jsx(X,{}),e.jsx(J,{variant:"dark",showX:!1}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 pb-12",children:e.jsxs("div",{className:"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6",children:[e.jsxs("div",{className:"text-center space-y-2",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-blue-500/10 text-blue-300 border border-blue-500/30",children:e.jsx("span",{className:"font-black text-lg",children:"S"})}),e.jsx("h1",{className:"text-2xl font-bold",children:t(r==="form"?"auth.signupTitle":"auth.actions.confirm")}),e.jsx("p",{className:"text-slate-400 text-sm",children:t(r==="form"?"auth.signupSubtitle":"auth.code")})]}),r==="form"&&e.jsxs("form",{onSubmit:A,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signup-email",className:"block text-sm text-slate-300",children:t("auth.email")}),e.jsx("input",{id:"signup-email",type:"email",value:i,onChange:s=>f(s.target.value),required:!0,autoComplete:"email",className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:t("auth.placeholders.email")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signup-password",className:"block text-sm text-slate-300",children:t("auth.password")}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{id:"signup-password",type:c?"text":"password",value:h,onChange:s=>y(s.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:t("auth.placeholders.passwordNew")}),e.jsx("button",{type:"button",onClick:()=>S(s=>!s),className:"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200","aria-label":c?t("auth.actions.hidePassword",{defaultValue:"Hide password"}):t("auth.actions.showPassword",{defaultValue:"Show password"}),title:c?t("auth.actions.hidePassword",{defaultValue:"Hide password"}):t("auth.actions.showPassword",{defaultValue:"Show password"}),children:c?e.jsx(K,{size:18}):e.jsx(Q,{size:18})})]})]}),u&&e.jsx("div",{role:"alert",className:"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2",children:u}),n&&e.jsx("div",{role:"status",className:"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2",children:n}),e.jsx("button",{type:"submit",disabled:C,className:"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed",children:t("auth.actions.createAccount")})]}),r==="confirm"&&e.jsxs("form",{onSubmit:I,className:"space-y-4",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signup-email",className:"block text-sm text-slate-300",children:t("auth.email")}),e.jsx("input",{id:"signup-email",type:"email",value:i,onChange:s=>f(s.target.value),required:!0,autoComplete:"email",className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:t("auth.placeholders.email")})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("label",{htmlFor:"signup-code",className:"block text-sm text-slate-300",children:t("auth.code")}),e.jsx("input",{id:"signup-code",type:"text",value:x,onChange:s=>j(s.target.value),required:!0,className:"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500",placeholder:"123456"})]}),u&&e.jsx("div",{role:"alert",className:"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2",children:u}),n&&e.jsx("div",{role:"status",className:"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2",children:n}),e.jsx("button",{type:"submit",disabled:C,className:"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed",children:t("auth.actions.confirm")})]}),e.jsxs("div",{className:"text-center text-sm text-slate-400 space-y-1",children:[e.jsxs("div",{children:[t("auth.actions.haveAccount")," ",e.jsx("button",{type:"button",className:"text-blue-300 hover:text-blue-200 underline",onClick:()=>{window.location.href=l?`/signin?next=${encodeURIComponent(l)}`:"/signin"},children:t("auth.actions.goToSignIn")})]}),e.jsxs("div",{className:"text-slate-500 text-xs",children:[e.jsx("div",{children:t("auth.helper.terms")}),e.jsxs("div",{className:"mt-1 flex items-center justify-center gap-2",children:[e.jsx("a",{href:"/terms",className:"underline underline-offset-4 hover:text-slate-200",children:t("landing.footer.terms")}),e.jsx("span",{"aria-hidden":"true",children:"·"}),e.jsx("a",{href:"/privacy",className:"underline underline-offset-4 hover:text-slate-200",children:t("landing.footer.privacy")})]})]})]})]})})]})};export{ie as default};
|
|
2
|
+
//# sourceMappingURL=SignUp-D6y9FaIp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SignUp-BKB87hd4.js","sources":["../../node_modules/aws-amplify/node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.mjs","../../node_modules/aws-amplify/node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/confirmSignUp.mjs","../../src/pages/SignUp.jsx"],"sourcesContent":["import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';\nimport { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';\nimport { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '@aws-amplify/core/internals/utils';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst createConfirmSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('ConfirmSignUp'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n\nexport { createConfirmSignUpClient };\n//# sourceMappingURL=createConfirmSignUpClient.mjs.map\n","import { Amplify } from '@aws-amplify/core';\nimport { assertTokenProviderConfig, AuthAction, HubInternal } from '@aws-amplify/core/internals/utils';\nimport { assertValidationError } from '../../../errors/utils/assertValidationError.mjs';\nimport { AuthValidationErrorCode } from '../../../errors/types/validation.mjs';\nimport { getRegionFromUserPoolId } from '../../../foundation/parsers/regionParsers.mjs';\nimport { getAuthUserAgentValue } from '../../../utils/getAuthUserAgentValue.mjs';\nimport { getUserContextData } from '../utils/userContextData.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils/composers';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/constants.mjs';\nimport '../../../common/AuthErrorStrings.mjs';\nimport '../types/errors.mjs';\nimport { createConfirmSignUpClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.mjs';\nimport { createCognitoUserPoolEndpointResolver } from '../factories/createCognitoUserPoolEndpointResolver.mjs';\nimport { autoSignInStore } from '../../../client/utils/store/autoSignInStore.mjs';\nimport '../../../client/utils/store/signInStore.mjs';\nimport { resetAutoSignIn } from './autoSignIn.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Confirms a new user account.\n *\n * @param input - The ConfirmSignUpInput object.\n * @returns ConfirmSignUpOutput\n * @throws -{@link ConfirmSignUpException }\n * Thrown due to an invalid confirmation code.\n * @throws -{@link AuthValidationErrorCode }\n * Thrown due to an empty confirmation code\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function confirmSignUp(input) {\n const { username, confirmationCode, options } = input;\n const authConfig = Amplify.getConfig().Auth?.Cognito;\n assertTokenProviderConfig(authConfig);\n const { userPoolId, userPoolClientId, userPoolEndpoint } = authConfig;\n const clientMetadata = options?.clientMetadata;\n assertValidationError(!!username, AuthValidationErrorCode.EmptyConfirmSignUpUsername);\n assertValidationError(!!confirmationCode, AuthValidationErrorCode.EmptyConfirmSignUpCode);\n const UserContextData = getUserContextData({\n username,\n userPoolId,\n userPoolClientId,\n });\n const confirmSignUpClient = createConfirmSignUpClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n const { Session: session } = await confirmSignUpClient({\n region: getRegionFromUserPoolId(authConfig.userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.ConfirmSignUp),\n }, {\n Username: username,\n ConfirmationCode: confirmationCode,\n ClientMetadata: clientMetadata,\n ForceAliasCreation: options?.forceAliasCreation,\n ClientId: authConfig.userPoolClientId,\n UserContextData,\n });\n return new Promise((resolve, reject) => {\n try {\n const signUpOut = {\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'DONE',\n },\n };\n const autoSignInStoreState = autoSignInStore.getState();\n if (!autoSignInStoreState.active ||\n autoSignInStoreState.username !== username) {\n resolve(signUpOut);\n resetAutoSignIn();\n return;\n }\n autoSignInStore.dispatch({ type: 'SET_SESSION', value: session });\n const stopListener = HubInternal.listen('auth-internal', ({ payload }) => {\n switch (payload.event) {\n case 'autoSignIn':\n resolve({\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'COMPLETE_AUTO_SIGN_IN',\n },\n });\n stopListener();\n }\n });\n HubInternal.dispatch('auth-internal', {\n event: 'confirmSignUp',\n data: signUpOut,\n });\n }\n catch (error) {\n reject(error);\n }\n });\n}\n\nexport { confirmSignUp };\n//# sourceMappingURL=confirmSignUp.mjs.map\n","import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { signUp, confirmSignUp, signIn } from 'aws-amplify/auth';\nimport { Eye, EyeOff } from 'lucide-react';\nimport useAuth from '../hooks/useAuth';\nimport usePageTitle from '../hooks/usePageTitle';\nimport StagingBadge from '../components/StagingBadge';\nimport SiteHeader from '../components/SiteHeader';\n\nconst readNextPath = () => {\n if (typeof window === 'undefined') return null;\n const params = new URLSearchParams(window.location.search);\n const next = params.get('next');\n if (!next) return null;\n if (!next.startsWith('/') || next.startsWith('//')) return null;\n return next;\n};\n\nconst SignUp = () => {\n const { t } = useTranslation();\n usePageTitle('titles.signUp');\n const { isAuthenticated, isLoading } = useAuth();\n const nextPath = readNextPath();\n const [stage, setStage] = useState('form'); // form | confirm\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [code, setCode] = useState('');\n const [message, setMessage] = useState('');\n const [error, setError] = useState('');\n const [busy, setBusy] = useState(false);\n\n useEffect(() => {\n if (!isLoading && isAuthenticated) {\n window.location.href = nextPath || '/app/';\n }\n }, [isAuthenticated, isLoading, nextPath]);\n\n const handleSignUp = async (e) => {\n e.preventDefault();\n setError('');\n setMessage('');\n setBusy(true);\n try {\n await signUp({ username: email, password, options: { userAttributes: { email } } });\n setMessage(t('auth.success.signup'));\n setStage('confirm');\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n const handleConfirm = async (e) => {\n e.preventDefault();\n setError('');\n setMessage('');\n setBusy(true);\n try {\n await confirmSignUp({ username: email, confirmationCode: code });\n setMessage(t('auth.success.confirm'));\n // 自動でサインインして /app へ\n await signIn({ username: email, password });\n window.location.href = nextPath || '/app/';\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <div className=\"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col\">\n <StagingBadge />\n <SiteHeader variant=\"dark\" showX={false} />\n <main className=\"flex-1 flex items-center justify-center px-4 pb-12\">\n <div className=\"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6\">\n <div className=\"text-center space-y-2\">\n <div className=\"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-blue-500/10 text-blue-300 border border-blue-500/30\">\n <span className=\"font-black text-lg\">S</span>\n </div>\n <h1 className=\"text-2xl font-bold\">{stage === 'form' ? t('auth.signupTitle') : t('auth.actions.confirm')}</h1>\n <p className=\"text-slate-400 text-sm\">{stage === 'form' ? t('auth.signupSubtitle') : t('auth.code')}</p>\n </div>\n\n {stage === 'form' && (\n <form onSubmit={handleSignUp} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signup-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-password\" className=\"block text-sm text-slate-300\">\n {t('auth.password')}\n </label>\n <div className=\"relative\">\n <input\n id=\"signup-password\"\n type={passwordVisible ? 'text' : 'password'}\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n required\n autoComplete=\"new-password\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.passwordNew')}\n />\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((prev) => !prev)}\n className=\"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200\"\n aria-label={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n title={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n >\n {passwordVisible ? <EyeOff size={18} /> : <Eye size={18} />}\n </button>\n </div>\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n {message && (\n <div\n role=\"status\"\n className=\"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2\"\n >\n {message}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.createAccount')}\n </button>\n </form>\n )}\n\n {stage === 'confirm' && (\n <form onSubmit={handleConfirm} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signup-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-code\" className=\"block text-sm text-slate-300\">\n {t('auth.code')}\n </label>\n <input\n id=\"signup-code\"\n type=\"text\"\n value={code}\n onChange={(e) => setCode(e.target.value)}\n required\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder=\"123456\"\n />\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n {message && (\n <div\n role=\"status\"\n className=\"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2\"\n >\n {message}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.confirm')}\n </button>\n </form>\n )}\n\n <div className=\"text-center text-sm text-slate-400 space-y-1\">\n <div>\n {t('auth.actions.haveAccount')}{' '}\n <button\n type=\"button\"\n className=\"text-blue-300 hover:text-blue-200 underline\"\n onClick={() => {\n window.location.href = nextPath ? `/signin?next=${encodeURIComponent(nextPath)}` : '/signin';\n }}\n >\n {t('auth.actions.goToSignIn')}\n </button>\n </div>\n <div className=\"text-slate-500 text-xs\">\n <div>{t('auth.helper.terms')}</div>\n <div className=\"mt-1 flex items-center justify-center gap-2\">\n <a href=\"/terms\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.terms')}\n </a>\n <span aria-hidden=\"true\">·</span>\n <a href=\"/privacy\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.privacy')}\n </a>\n </div>\n </div>\n </div>\n </div>\n </main>\n </div>\n );\n};\n\nexport default SignUp;\n"],"names":["createConfirmSignUpClient","config","composeServiceApi","cognitoUserPoolTransferHandler","createUserPoolSerializer","createUserPoolDeserializer","DEFAULT_SERVICE_CLIENT_API_CONFIG","confirmSignUp","input","username","confirmationCode","options","authConfig","Amplify","assertTokenProviderConfig","userPoolId","userPoolClientId","userPoolEndpoint","clientMetadata","assertValidationError","AuthValidationErrorCode","UserContextData","getUserContextData","confirmSignUpClient","createCognitoUserPoolEndpointResolver","session","getRegionFromUserPoolId","getAuthUserAgentValue","AuthAction","resolve","reject","signUpOut","autoSignInStoreState","autoSignInStore","resetAutoSignIn","stopListener","HubInternal","payload","error","readNextPath","next","SignUp","useTranslation","usePageTitle","isAuthenticated","isLoading","useAuth","nextPath","stage","setStage","useState","email","setEmail","password","setPassword","passwordVisible","setPasswordVisible","code","setCode","message","setMessage","setError","busy","setBusy","useEffect","handleSignUp","e","signUp","err","key","handle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,CAAA,CAAA,EAGJqB,GACCc,EAAAA,IAAC,MAAA,CACC,KAAK,SACL,UAAU,+FAET,SAAAd,CAAA,CAAA,EAGLc,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,SAAUX,EACV,UAAU,2IAET,WAAE,sBAAsB,CAAA,CAAA,CAC3B,EACF,EAGFU,EAAAA,KAAC,MAAA,CAAI,UAAU,+CACb,SAAA,CAAAA,OAAC,MAAA,CACE,SAAA,CAAA,EAAE,0BAA0B,EAAG,IAChCC,EAAAA,IAAC,SAAA,CACC,KAAK,SACL,UAAU,8CACV,QAAS,IAAM,CACb,OAAO,SAAS,KAAO1B,EAAW,gBAAgB,mBAAmBA,CAAQ,CAAC,GAAK,SACrF,EAEC,WAAE,yBAAyB,CAAA,CAAA,CAC9B,EACF,EACAyB,EAAAA,KAAC,MAAA,CAAI,UAAU,yBACb,SAAA,CAAAC,EAAAA,IAAC,MAAA,CAAK,SAAA,EAAE,mBAAmB,CAAA,CAAE,EAC7BD,EAAAA,KAAC,MAAA,CAAI,UAAU,8CACb,SAAA,CAAAC,EAAAA,IAAC,KAAE,KAAK,SAAS,UAAU,oDACxB,SAAA,EAAE,sBAAsB,EAC3B,EACAA,EAAAA,IAAC,OAAA,CAAK,cAAY,OAAO,SAAA,IAAC,EAC1BA,MAAC,KAAE,KAAK,WAAW,UAAU,oDAC1B,SAAA,EAAE,wBAAwB,CAAA,CAC7B,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACA,CAAA,CACF,CAAA,EACF,CAEJ","x_google_ignoreList":[0,1]}
|
|
1
|
+
{"version":3,"file":"SignUp-D6y9FaIp.js","sources":["../../node_modules/aws-amplify/node_modules/@aws-amplify/auth/dist/esm/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.mjs","../../node_modules/aws-amplify/node_modules/@aws-amplify/auth/dist/esm/providers/cognito/apis/confirmSignUp.mjs","../../src/pages/SignUp.jsx"],"sourcesContent":["import { composeServiceApi } from '@aws-amplify/core/internals/aws-client-utils/composers';\nimport { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants.mjs';\nimport { cognitoUserPoolTransferHandler } from './shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport { createUserPoolSerializer } from './shared/serde/createUserPoolSerializer.mjs';\nimport { createUserPoolDeserializer } from './shared/serde/createUserPoolDeserializer.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '@aws-amplify/core/internals/utils';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst createConfirmSignUpClient = (config) => composeServiceApi(cognitoUserPoolTransferHandler, createUserPoolSerializer('ConfirmSignUp'), createUserPoolDeserializer(), {\n ...DEFAULT_SERVICE_CLIENT_API_CONFIG,\n ...config,\n});\n\nexport { createConfirmSignUpClient };\n//# sourceMappingURL=createConfirmSignUpClient.mjs.map\n","import { Amplify } from '@aws-amplify/core';\nimport { assertTokenProviderConfig, AuthAction, HubInternal } from '@aws-amplify/core/internals/utils';\nimport { assertValidationError } from '../../../errors/utils/assertValidationError.mjs';\nimport { AuthValidationErrorCode } from '../../../errors/types/validation.mjs';\nimport { getRegionFromUserPoolId } from '../../../foundation/parsers/regionParsers.mjs';\nimport { getAuthUserAgentValue } from '../../../utils/getAuthUserAgentValue.mjs';\nimport { getUserContextData } from '../utils/userContextData.mjs';\nimport '@aws-amplify/core/internals/aws-client-utils/composers';\nimport '@aws-amplify/core/internals/aws-client-utils';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/shared/handler/cognitoUserPoolTransferHandler.mjs';\nimport '../../../foundation/factories/serviceClients/cognitoIdentityProvider/constants.mjs';\nimport '../../../common/AuthErrorStrings.mjs';\nimport '../types/errors.mjs';\nimport { createConfirmSignUpClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.mjs';\nimport { createCognitoUserPoolEndpointResolver } from '../factories/createCognitoUserPoolEndpointResolver.mjs';\nimport { autoSignInStore } from '../../../client/utils/store/autoSignInStore.mjs';\nimport '../../../client/utils/store/signInStore.mjs';\nimport { resetAutoSignIn } from './autoSignIn.mjs';\n\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * Confirms a new user account.\n *\n * @param input - The ConfirmSignUpInput object.\n * @returns ConfirmSignUpOutput\n * @throws -{@link ConfirmSignUpException }\n * Thrown due to an invalid confirmation code.\n * @throws -{@link AuthValidationErrorCode }\n * Thrown due to an empty confirmation code\n * @throws AuthTokenConfigException - Thrown when the token provider config is invalid.\n */\nasync function confirmSignUp(input) {\n const { username, confirmationCode, options } = input;\n const authConfig = Amplify.getConfig().Auth?.Cognito;\n assertTokenProviderConfig(authConfig);\n const { userPoolId, userPoolClientId, userPoolEndpoint } = authConfig;\n const clientMetadata = options?.clientMetadata;\n assertValidationError(!!username, AuthValidationErrorCode.EmptyConfirmSignUpUsername);\n assertValidationError(!!confirmationCode, AuthValidationErrorCode.EmptyConfirmSignUpCode);\n const UserContextData = getUserContextData({\n username,\n userPoolId,\n userPoolClientId,\n });\n const confirmSignUpClient = createConfirmSignUpClient({\n endpointResolver: createCognitoUserPoolEndpointResolver({\n endpointOverride: userPoolEndpoint,\n }),\n });\n const { Session: session } = await confirmSignUpClient({\n region: getRegionFromUserPoolId(authConfig.userPoolId),\n userAgentValue: getAuthUserAgentValue(AuthAction.ConfirmSignUp),\n }, {\n Username: username,\n ConfirmationCode: confirmationCode,\n ClientMetadata: clientMetadata,\n ForceAliasCreation: options?.forceAliasCreation,\n ClientId: authConfig.userPoolClientId,\n UserContextData,\n });\n return new Promise((resolve, reject) => {\n try {\n const signUpOut = {\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'DONE',\n },\n };\n const autoSignInStoreState = autoSignInStore.getState();\n if (!autoSignInStoreState.active ||\n autoSignInStoreState.username !== username) {\n resolve(signUpOut);\n resetAutoSignIn();\n return;\n }\n autoSignInStore.dispatch({ type: 'SET_SESSION', value: session });\n const stopListener = HubInternal.listen('auth-internal', ({ payload }) => {\n switch (payload.event) {\n case 'autoSignIn':\n resolve({\n isSignUpComplete: true,\n nextStep: {\n signUpStep: 'COMPLETE_AUTO_SIGN_IN',\n },\n });\n stopListener();\n }\n });\n HubInternal.dispatch('auth-internal', {\n event: 'confirmSignUp',\n data: signUpOut,\n });\n }\n catch (error) {\n reject(error);\n }\n });\n}\n\nexport { confirmSignUp };\n//# sourceMappingURL=confirmSignUp.mjs.map\n","import React, { useEffect, useState } from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { signUp, confirmSignUp, signIn } from 'aws-amplify/auth';\nimport { Eye, EyeOff } from 'lucide-react';\nimport useAuth from '../hooks/useAuth';\nimport usePageTitle from '../hooks/usePageTitle';\nimport StagingBadge from '../components/StagingBadge';\nimport SiteHeader from '../components/SiteHeader';\n\nconst readNextPath = () => {\n if (typeof window === 'undefined') return null;\n const params = new URLSearchParams(window.location.search);\n const next = params.get('next');\n if (!next) return null;\n if (!next.startsWith('/') || next.startsWith('//')) return null;\n return next;\n};\n\nconst SignUp = () => {\n const { t } = useTranslation();\n usePageTitle('titles.signUp');\n const { isAuthenticated, isLoading } = useAuth();\n const nextPath = readNextPath();\n const [stage, setStage] = useState('form'); // form | confirm\n const [email, setEmail] = useState('');\n const [password, setPassword] = useState('');\n const [passwordVisible, setPasswordVisible] = useState(false);\n const [code, setCode] = useState('');\n const [message, setMessage] = useState('');\n const [error, setError] = useState('');\n const [busy, setBusy] = useState(false);\n\n useEffect(() => {\n if (!isLoading && isAuthenticated) {\n window.location.href = nextPath || '/app/';\n }\n }, [isAuthenticated, isLoading, nextPath]);\n\n const handleSignUp = async (e) => {\n e.preventDefault();\n setError('');\n setMessage('');\n setBusy(true);\n try {\n await signUp({ username: email, password, options: { userAttributes: { email } } });\n setMessage(t('auth.success.signup'));\n setStage('confirm');\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n const handleConfirm = async (e) => {\n e.preventDefault();\n setError('');\n setMessage('');\n setBusy(true);\n try {\n await confirmSignUp({ username: email, confirmationCode: code });\n setMessage(t('auth.success.confirm'));\n // 自動でサインインして /app へ\n await signIn({ username: email, password });\n window.location.href = nextPath || '/app/';\n } catch (err) {\n const key = err?.name || err?.code;\n setError(t(`auth.errors.${key}`, t('auth.errors.default')));\n } finally {\n setBusy(false);\n }\n };\n\n return (\n <div className=\"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white flex flex-col\">\n <StagingBadge />\n <SiteHeader variant=\"dark\" showX={false} />\n <main className=\"flex-1 flex items-center justify-center px-4 pb-12\">\n <div className=\"w-full max-w-md bg-slate-900/70 border border-slate-800 rounded-2xl shadow-2xl p-8 space-y-6\">\n <div className=\"text-center space-y-2\">\n <div className=\"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-blue-500/10 text-blue-300 border border-blue-500/30\">\n <span className=\"font-black text-lg\">S</span>\n </div>\n <h1 className=\"text-2xl font-bold\">{stage === 'form' ? t('auth.signupTitle') : t('auth.actions.confirm')}</h1>\n <p className=\"text-slate-400 text-sm\">{stage === 'form' ? t('auth.signupSubtitle') : t('auth.code')}</p>\n </div>\n\n {stage === 'form' && (\n <form onSubmit={handleSignUp} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signup-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-password\" className=\"block text-sm text-slate-300\">\n {t('auth.password')}\n </label>\n <div className=\"relative\">\n <input\n id=\"signup-password\"\n type={passwordVisible ? 'text' : 'password'}\n value={password}\n onChange={(e) => setPassword(e.target.value)}\n required\n autoComplete=\"new-password\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 pr-12 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.passwordNew')}\n />\n <button\n type=\"button\"\n onClick={() => setPasswordVisible((prev) => !prev)}\n className=\"absolute inset-y-0 right-0 flex items-center px-3 text-slate-400 hover:text-slate-200\"\n aria-label={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n title={\n passwordVisible\n ? t('auth.actions.hidePassword', { defaultValue: 'Hide password' })\n : t('auth.actions.showPassword', { defaultValue: 'Show password' })\n }\n >\n {passwordVisible ? <EyeOff size={18} /> : <Eye size={18} />}\n </button>\n </div>\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n {message && (\n <div\n role=\"status\"\n className=\"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2\"\n >\n {message}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.createAccount')}\n </button>\n </form>\n )}\n\n {stage === 'confirm' && (\n <form onSubmit={handleConfirm} className=\"space-y-4\">\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-email\" className=\"block text-sm text-slate-300\">\n {t('auth.email')}\n </label>\n <input\n id=\"signup-email\"\n type=\"email\"\n value={email}\n onChange={(e) => setEmail(e.target.value)}\n required\n autoComplete=\"email\"\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder={t('auth.placeholders.email')}\n />\n </div>\n <div className=\"space-y-2\">\n <label htmlFor=\"signup-code\" className=\"block text-sm text-slate-300\">\n {t('auth.code')}\n </label>\n <input\n id=\"signup-code\"\n type=\"text\"\n value={code}\n onChange={(e) => setCode(e.target.value)}\n required\n className=\"w-full rounded-lg bg-slate-950 border border-slate-700 px-4 py-3 text-sm focus:outline-none focus:ring-2 focus:ring-blue-500\"\n placeholder=\"123456\"\n />\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"text-sm text-rose-400 bg-rose-950/40 border border-rose-700/50 rounded-lg px-3 py-2\"\n >\n {error}\n </div>\n )}\n {message && (\n <div\n role=\"status\"\n className=\"text-sm text-emerald-300 bg-emerald-950/40 border border-emerald-700/50 rounded-lg px-3 py-2\"\n >\n {message}\n </div>\n )}\n <button\n type=\"submit\"\n disabled={busy}\n className=\"w-full bg-blue-500 hover:bg-blue-600 text-white font-semibold rounded-lg py-3 transition disabled:opacity-60 disabled:cursor-not-allowed\"\n >\n {t('auth.actions.confirm')}\n </button>\n </form>\n )}\n\n <div className=\"text-center text-sm text-slate-400 space-y-1\">\n <div>\n {t('auth.actions.haveAccount')}{' '}\n <button\n type=\"button\"\n className=\"text-blue-300 hover:text-blue-200 underline\"\n onClick={() => {\n window.location.href = nextPath ? `/signin?next=${encodeURIComponent(nextPath)}` : '/signin';\n }}\n >\n {t('auth.actions.goToSignIn')}\n </button>\n </div>\n <div className=\"text-slate-500 text-xs\">\n <div>{t('auth.helper.terms')}</div>\n <div className=\"mt-1 flex items-center justify-center gap-2\">\n <a href=\"/terms\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.terms')}\n </a>\n <span aria-hidden=\"true\">·</span>\n <a href=\"/privacy\" className=\"underline underline-offset-4 hover:text-slate-200\">\n {t('landing.footer.privacy')}\n </a>\n </div>\n </div>\n </div>\n </div>\n </main>\n </div>\n );\n};\n\nexport default SignUp;\n"],"names":["createConfirmSignUpClient","config","composeServiceApi","cognitoUserPoolTransferHandler","createUserPoolSerializer","createUserPoolDeserializer","DEFAULT_SERVICE_CLIENT_API_CONFIG","confirmSignUp","input","username","confirmationCode","options","authConfig","Amplify","assertTokenProviderConfig","userPoolId","userPoolClientId","userPoolEndpoint","clientMetadata","assertValidationError","AuthValidationErrorCode","UserContextData","getUserContextData","confirmSignUpClient","createCognitoUserPoolEndpointResolver","session","getRegionFromUserPoolId","getAuthUserAgentValue","AuthAction","resolve","reject","signUpOut","autoSignInStoreState","autoSignInStore","resetAutoSignIn","stopListener","HubInternal","payload","error","readNextPath","next","SignUp","useTranslation","usePageTitle","isAuthenticated","isLoading","useAuth","nextPath","stage","setStage","useState","email","setEmail","password","setPassword","passwordVisible","setPasswordVisible","code","setCode","message","setMessage","setError","busy","setBusy","useEffect","handleSignUp","e","signUp","err","key","handleConfirm","signIn","jsxs","jsx","StagingBadge","SiteHeader","prev","EyeOff","Eye"],"mappings":"2ZAUA,MAAMA,EAA6BC,GAAWC,EAAkBC,EAAgCC,EAAyB,eAAe,EAAGC,IAA8B,CACrK,GAAGC,EACH,GAAGL,CACP,CAAC,ECmBD,eAAeM,GAAcC,EAAO,CAChC,KAAM,CAAE,SAAAC,EAAU,iBAAAC,EAAkB,QAAAC,CAAO,EAAKH,EAC1CI,EAAaC,EAAQ,UAAS,EAAG,MAAM,QAC7CC,EAA0BF,CAAU,EACpC,KAAM,CAAE,WAAAG,EAAY,iBAAAC,EAAkB,iBAAAC,CAAgB,EAAKL,EACrDM,EAAiBP,GAAS,eAChCQ,EAAsB,CAAC,CAACV,EAAUW,EAAwB,0BAA0B,EACpFD,EAAsB,CAAC,CAACT,EAAkBU,EAAwB,sBAAsB,EACxF,MAAMC,EAAkBC,EAAmB,CACvC,SAAAb,EACA,WAAAM,EACA,iBAAAC,CACR,CAAK,EACKO,EAAsBvB,EAA0B,CAClD,iBAAkBwB,EAAsC,CACpD,iBAAkBP,CAC9B,CAAS,CACT,CAAK,EACK,CAAE,QA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DACxB,SAAA,EAAE,sBAAsB,EAC3B,EACAA,EAAAA,IAAC,OAAA,CAAK,cAAY,OAAO,SAAA,IAAC,EAC1BA,MAAC,KAAE,KAAK,WAAW,UAAU,oDAC1B,SAAA,EAAE,wBAAwB,CAAA,CAC7B,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACA,CAAA,CACF,CAAA,EACF,CAEJ","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as K,r as h,j as e}from"./index-C4xM6WAU.js";import{c as Q,u as U,L as S,X as W}from"./LanguageSwitcher-Cp-6zMXz.js";const Y=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],D=Q("menu",Y),E=({className:x})=>e.jsx("a",{href:"https://x.com/shipscreenscom",target:"_blank",rel:"noopener noreferrer",className:`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-md ${x}`,"aria-label":"ShipScreens on X (opens in new tab)",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:e.jsx("path",{d:"M20.5 3h-2.4L12 9.6 6.9 3H3l7.2 9.1L3.2 21h2.4L12 14l6.6 7h3.1l-7.7-9.5L20.5 3Z"})})}),H=({variant:x="dark",active:t=null,logoHref:L="/",toolsHref:b="/tools/",pricingHref:m="/pricing",openAppHref:f="/app/",showTools:p=!0,showPricing:g=!0,showOpenApp:j=!0,showX:v=!0,showLanguageSwitcher:N=!0,languageSwitcherClassName:B="hidden sm:flex",onToolsClick:w,onPricingClick:$,onOpenAppClick:k,primaryCta:s=null})=>{const{t:n}=K(),a=x==="dark",R=!!(s?.href&&s?.label),[o,y]=h.useState(!1),V=h.useRef(null),C=h.useRef(null),c=h.useCallback(()=>y(!1),[]);U({isOpen:o,onClose:c,panelRef:V,initialFocusRef:C});const l=a?"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-950 rounded-md":"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white rounded-md",F=a?`text-sm text-slate-300 hover:text-white transition-colors ${l}`:`text-sm text-slate-600 hover:text-slate-900 transition-colors ${l}`,X=a?"text-white font-semibold":"text-slate-900 font-semibold",i=r=>`${F}${t===r?` ${X}`:""}`,z=a?`flex items-center justify-between px-3 py-2 rounded-lg border border-slate-800 bg-slate-950 text-sm text-slate-200 hover:bg-slate-900 transition ${l}`:`flex items-center justify-between px-3 py-2 rounded-lg border border-slate-200 bg-white text-sm text-slate-800 hover:bg-slate-50 transition ${l}`,I=a?"border-blue-500 text-white":"border-blue-600 text-slate-900",M=r=>`${z}${t===r?` ${I}`:""}`,P=()=>{if(!o)return null;const r=a?"bg-slate-900/70":"bg-slate-900/40",q=a?"bg-slate-950 border-slate-800 text-white":"bg-white border-slate-200 text-slate-800",A=a?"border-slate-800":"border-slate-200",G=a?`border-slate-800 text-slate-200 hover:bg-slate-900 ${l}`:`border-slate-200 text-slate-600 hover:bg-slate-50 ${l}`,d=u=>J=>{u?.(J),c()},_=n("common.menu",{defaultValue:"Menu"});return e.jsx("div",{className:`fixed inset-0 z-[2200] ${r} backdrop-blur-sm p-4 sm:hidden`,role:"dialog","aria-modal":"true","aria-label":_,onMouseDown:u=>{u.target===u.currentTarget&&c()},children:e.jsxs("div",{ref:V,id:"shipscreens-mobile-menu",className:`w-full max-w-sm ml-auto rounded-2xl shadow-2xl border overflow-hidden ${q}`,children:[e.jsxs("div",{className:`flex items-center justify-between px-4 py-3 border-b ${A}`,children:[e.jsx("div",{className:"text-sm font-bold",children:_}),e.jsx("button",{ref:C,type:"button",onClick:c,className:`p-2 rounded-lg border transition ${G}`,"aria-label":n("common.close",{defaultValue:"Close"}),title:n("common.close",{defaultValue:"Close"}),children:e.jsx(W,{size:16})})]}),e.jsxs("div",{className:"p-4 space-y-3",children:[N&&e.jsx(S,{className:"w-full justify-center"}),e.jsxs("div",{className:"space-y-2",children:[p&&e.jsx("a",{href:b,onClick:d(w),className:M("tools"),"aria-current":t==="tools"?"page":void 0,children:e.jsx("span",{children:n("landing.nav.tools")})}),g&&e.jsx("a",{href:m,onClick:d($),className:M("pricing"),"aria-current":t==="pricing"?"page":void 0,children:e.jsx("span",{children:n("landing.nav.pricing",{defaultValue:"Pricing"})})}),j&&e.jsx("a",{href:f,onClick:d(k),className:M("app"),"aria-current":t==="app"?"page":void 0,children:e.jsx("span",{children:n("landing.nav.openApp")})}),v&&e.jsx("a",{href:"https://x.com/shipscreenscom",target:"_blank",rel:"noopener noreferrer",className:z,children:e.jsx("span",{children:"X"})})]}),s?.href&&s?.label&&e.jsx("a",{href:s.href,onClick:d(s.onClick),className:`w-full inline-flex items-center justify-center px-4 py-2 rounded-lg font-semibold transition ${a?"bg-white text-slate-900 hover:scale-[1.02]":"bg-slate-900 text-white hover:bg-slate-800"} ${l}`,children:s.label})]})]})})},Z=a?e.jsxs("header",{className:"max-w-6xl mx-auto px-4 py-4 sm:px-6 sm:py-6 flex items-center justify-between gap-4",children:[e.jsxs("a",{href:L,className:`flex items-center gap-3 hover:opacity-90 transition-opacity ${l}`,children:[e.jsx("div",{className:"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 p-1 flex items-center justify-center overflow-hidden shadow-sm",children:e.jsx("img",{src:"/app/assets/icons/favicon-32x32.png",alt:"ShipScreens",className:"w-full h-full object-contain",loading:"lazy"})}),e.jsx("span",{className:"text-lg font-bold",children:"ShipScreens"})]}),e.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[N&&e.jsx(S,{className:B}),v&&e.jsx(E,{className:"hidden sm:inline text-slate-300 hover:text-white transition-colors"}),p&&e.jsx("a",{href:b,onClick:w,className:`hidden sm:inline ${i("tools")}`,"aria-current":t==="tools"?"page":void 0,children:n("landing.nav.tools")}),g&&e.jsx("a",{href:m,onClick:$,className:`hidden sm:inline ${i("pricing")}`,"aria-current":t==="pricing"?"page":void 0,children:n("landing.nav.pricing",{defaultValue:"Pricing"})}),j&&e.jsx("a",{href:f,onClick:k,className:`${R?"hidden sm:inline ":""}${i("app")}`,"aria-current":t==="app"?"page":void 0,children:n("landing.nav.openApp")}),R&&e.jsx("a",{href:s.href,onClick:s.onClick,className:`px-3 py-1.5 sm:px-4 sm:py-2 text-sm whitespace-nowrap rounded-lg bg-white text-slate-900 font-semibold hover:scale-[1.02] transition ${l}`,children:s.label}),e.jsx("button",{type:"button",onClick:()=>y(!0),className:`sm:hidden p-2 rounded-lg border border-slate-800 bg-slate-950 text-slate-200 hover:bg-slate-900 transition ${l}`,"aria-label":n("common.menu",{defaultValue:"Menu"}),"aria-controls":"shipscreens-mobile-menu","aria-expanded":o,children:e.jsx(D,{size:18})})]})]}):e.jsx("header",{className:"border-b border-slate-200 bg-white",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-4 flex items-center justify-between gap-4",children:[e.jsxs("a",{href:L,className:`flex items-center gap-3 hover:opacity-90 transition-opacity ${l}`,children:[e.jsx("div",{className:"w-9 h-9 rounded-xl border border-slate-200 bg-white p-1 flex items-center justify-center overflow-hidden shadow-sm",children:e.jsx("img",{src:"/app/assets/icons/favicon-32x32.png",alt:"ShipScreens",className:"w-full h-full object-contain",loading:"lazy"})}),e.jsx("span",{className:"font-bold text-slate-900",children:"ShipScreens"})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[N&&e.jsx(S,{className:B}),v&&e.jsx(E,{className:"hidden sm:inline text-slate-500 hover:text-slate-900 transition-colors"}),p&&e.jsx("a",{href:b,onClick:w,className:`hidden sm:inline ${i("tools")}`,"aria-current":t==="tools"?"page":void 0,children:n("landing.nav.tools")}),g&&e.jsx("a",{href:m,onClick:$,className:`hidden sm:inline ${i("pricing")}`,"aria-current":t==="pricing"?"page":void 0,children:n("landing.nav.pricing",{defaultValue:"Pricing"})}),j&&e.jsx("a",{href:f,onClick:k,className:i("app"),"aria-current":t==="app"?"page":void 0,children:n("landing.nav.openApp")}),s?.href&&s?.label&&e.jsx("a",{href:s.href,onClick:s.onClick,className:`px-4 py-2 rounded-lg bg-slate-900 text-white font-semibold hover:bg-slate-800 transition ${l}`,children:s.label}),e.jsx("button",{type:"button",onClick:()=>y(!0),className:`sm:hidden p-2 rounded-lg border border-slate-200 bg-white text-slate-700 hover:bg-slate-50 transition ${l}`,"aria-label":n("common.menu",{defaultValue:"Menu"}),"aria-controls":"shipscreens-mobile-menu","aria-expanded":o,children:e.jsx(D,{size:18})})]})]})});return e.jsxs(e.Fragment,{children:[Z,P()]})};export{H as S};
|
|
2
|
+
//# sourceMappingURL=SiteHeader-Ch5fAKkA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteHeader-Ch5fAKkA.js","sources":["../../node_modules/lucide-react/dist/esm/icons/menu.js","../../src/components/SiteHeader.jsx"],"sourcesContent":["/**\n * @license lucide-react v0.563.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"path\", { d: \"M4 5h16\", key: \"1tepv9\" }],\n [\"path\", { d: \"M4 12h16\", key: \"1lakjw\" }],\n [\"path\", { d: \"M4 19h16\", key: \"1djgab\" }]\n];\nconst Menu = createLucideIcon(\"menu\", __iconNode);\n\nexport { __iconNode, Menu as default };\n//# sourceMappingURL=menu.js.map\n","import React, { useCallback, useRef, useState } from 'react';\nimport { Menu, X } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\nimport LanguageSwitcher from './LanguageSwitcher';\nimport useModalA11y from '../hooks/useModalA11y';\n\nconst XLink = ({ className }) => (\n <a\n href=\"https://x.com/shipscreenscom\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-md ${className}`}\n aria-label=\"ShipScreens on X (opens in new tab)\"\n >\n <svg width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M20.5 3h-2.4L12 9.6 6.9 3H3l7.2 9.1L3.2 21h2.4L12 14l6.6 7h3.1l-7.7-9.5L20.5 3Z\" />\n </svg>\n </a>\n);\n\nconst SiteHeader = ({\n variant = 'dark',\n active = null, // 'tools' | 'pricing' | 'app' | null\n logoHref = '/',\n toolsHref = '/tools/',\n pricingHref = '/pricing',\n openAppHref = '/app/',\n showTools = true,\n showPricing = true,\n showOpenApp = true,\n showX = true,\n showLanguageSwitcher = true,\n languageSwitcherClassName = 'hidden sm:flex',\n onToolsClick,\n onPricingClick,\n onOpenAppClick,\n primaryCta = null, // { href, label, onClick }\n}) => {\n const { t } = useTranslation();\n const isDark = variant === 'dark';\n const hasPrimaryCta = Boolean(primaryCta?.href && primaryCta?.label);\n const [mobileMenuOpen, setMobileMenuOpen] = useState(false);\n const mobileMenuPanelRef = useRef(null);\n const mobileMenuCloseRef = useRef(null);\n\n const closeMobileMenu = useCallback(() => setMobileMenuOpen(false), []);\n\n useModalA11y({\n isOpen: mobileMenuOpen,\n onClose: closeMobileMenu,\n panelRef: mobileMenuPanelRef,\n initialFocusRef: mobileMenuCloseRef,\n });\n\n const focusRing = isDark\n ? 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-400 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-950 rounded-md'\n : 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600 focus-visible:ring-offset-2 focus-visible:ring-offset-white rounded-md';\n const linkBase = isDark\n ? `text-sm text-slate-300 hover:text-white transition-colors ${focusRing}`\n : `text-sm text-slate-600 hover:text-slate-900 transition-colors ${focusRing}`;\n const linkActive = isDark ? 'text-white font-semibold' : 'text-slate-900 font-semibold';\n const linkClass = (id) => `${linkBase}${active === id ? ` ${linkActive}` : ''}`;\n\n const mobileMenuLinkBase = isDark\n ? `flex items-center justify-between px-3 py-2 rounded-lg border border-slate-800 bg-slate-950 text-sm text-slate-200 hover:bg-slate-900 transition ${focusRing}`\n : `flex items-center justify-between px-3 py-2 rounded-lg border border-slate-200 bg-white text-sm text-slate-800 hover:bg-slate-50 transition ${focusRing}`;\n const mobileMenuLinkActive = isDark ? 'border-blue-500 text-white' : 'border-blue-600 text-slate-900';\n const mobileMenuLinkClass = (id) => `${mobileMenuLinkBase}${active === id ? ` ${mobileMenuLinkActive}` : ''}`;\n\n const renderMobileMenu = () => {\n if (!mobileMenuOpen) return null;\n\n const menuBg = isDark ? 'bg-slate-900/70' : 'bg-slate-900/40';\n const panelBase = isDark ? 'bg-slate-950 border-slate-800 text-white' : 'bg-white border-slate-200 text-slate-800';\n const panelHeaderBorder = isDark ? 'border-slate-800' : 'border-slate-200';\n const closeButtonStyle = isDark\n ? `border-slate-800 text-slate-200 hover:bg-slate-900 ${focusRing}`\n : `border-slate-200 text-slate-600 hover:bg-slate-50 ${focusRing}`;\n\n const handleNav = (callback) => (event) => {\n callback?.(event);\n closeMobileMenu();\n };\n\n const menuLabel = t('common.menu', { defaultValue: 'Menu' });\n\n return (\n <div\n className={`fixed inset-0 z-[2200] ${menuBg} backdrop-blur-sm p-4 sm:hidden`}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={menuLabel}\n onMouseDown={(event) => {\n if (event.target === event.currentTarget) closeMobileMenu();\n }}\n >\n <div\n ref={mobileMenuPanelRef}\n id=\"shipscreens-mobile-menu\"\n className={`w-full max-w-sm ml-auto rounded-2xl shadow-2xl border overflow-hidden ${panelBase}`}\n >\n <div className={`flex items-center justify-between px-4 py-3 border-b ${panelHeaderBorder}`}>\n <div className=\"text-sm font-bold\">{menuLabel}</div>\n <button\n ref={mobileMenuCloseRef}\n type=\"button\"\n onClick={closeMobileMenu}\n className={`p-2 rounded-lg border transition ${closeButtonStyle}`}\n aria-label={t('common.close', { defaultValue: 'Close' })}\n title={t('common.close', { defaultValue: 'Close' })}\n >\n <X size={16} />\n </button>\n </div>\n\n <div className=\"p-4 space-y-3\">\n {showLanguageSwitcher && <LanguageSwitcher className=\"w-full justify-center\" />}\n\n <div className=\"space-y-2\">\n {showTools && (\n <a\n href={toolsHref}\n onClick={handleNav(onToolsClick)}\n className={mobileMenuLinkClass('tools')}\n aria-current={active === 'tools' ? 'page' : undefined}\n >\n <span>{t('landing.nav.tools')}</span>\n </a>\n )}\n\n {showPricing && (\n <a\n href={pricingHref}\n onClick={handleNav(onPricingClick)}\n className={mobileMenuLinkClass('pricing')}\n aria-current={active === 'pricing' ? 'page' : undefined}\n >\n <span>{t('landing.nav.pricing', { defaultValue: 'Pricing' })}</span>\n </a>\n )}\n\n {showOpenApp && (\n <a\n href={openAppHref}\n onClick={handleNav(onOpenAppClick)}\n className={mobileMenuLinkClass('app')}\n aria-current={active === 'app' ? 'page' : undefined}\n >\n <span>{t('landing.nav.openApp')}</span>\n </a>\n )}\n\n {showX && (\n <a\n href=\"https://x.com/shipscreenscom\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n className={mobileMenuLinkBase}\n >\n <span>X</span>\n </a>\n )}\n </div>\n\n {primaryCta?.href && primaryCta?.label && (\n <a\n href={primaryCta.href}\n onClick={handleNav(primaryCta.onClick)}\n className={`w-full inline-flex items-center justify-center px-4 py-2 rounded-lg font-semibold transition ${\n isDark ? 'bg-white text-slate-900 hover:scale-[1.02]' : 'bg-slate-900 text-white hover:bg-slate-800'\n } ${focusRing}`}\n >\n {primaryCta.label}\n </a>\n )}\n </div>\n </div>\n </div>\n );\n };\n\n const headerContent = isDark ? (\n <header className=\"max-w-6xl mx-auto px-4 py-4 sm:px-6 sm:py-6 flex items-center justify-between gap-4\">\n <a href={logoHref} className={`flex items-center gap-3 hover:opacity-90 transition-opacity ${focusRing}`}>\n <div className=\"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 p-1 flex items-center justify-center overflow-hidden shadow-sm\">\n <img\n src=\"/app/assets/icons/favicon-32x32.png\"\n alt=\"ShipScreens\"\n className=\"w-full h-full object-contain\"\n loading=\"lazy\"\n />\n </div>\n <span className=\"text-lg font-bold\">ShipScreens</span>\n </a>\n\n <div className=\"flex items-center gap-2 sm:gap-3\">\n {showLanguageSwitcher && <LanguageSwitcher className={languageSwitcherClassName} />}\n {showX && <XLink className=\"hidden sm:inline text-slate-300 hover:text-white transition-colors\" />}\n\n {showTools && (\n <a\n href={toolsHref}\n onClick={onToolsClick}\n className={`hidden sm:inline ${linkClass('tools')}`}\n aria-current={active === 'tools' ? 'page' : undefined}\n >\n {t('landing.nav.tools')}\n </a>\n )}\n\n {showPricing && (\n <a\n href={pricingHref}\n onClick={onPricingClick}\n className={`hidden sm:inline ${linkClass('pricing')}`}\n aria-current={active === 'pricing' ? 'page' : undefined}\n >\n {t('landing.nav.pricing', { defaultValue: 'Pricing' })}\n </a>\n )}\n\n {showOpenApp && (\n <a\n href={openAppHref}\n onClick={onOpenAppClick}\n className={`${hasPrimaryCta ? 'hidden sm:inline ' : ''}${linkClass('app')}`}\n aria-current={active === 'app' ? 'page' : undefined}\n >\n {t('landing.nav.openApp')}\n </a>\n )}\n\n {hasPrimaryCta && (\n <a\n href={primaryCta.href}\n onClick={primaryCta.onClick}\n className={`px-3 py-1.5 sm:px-4 sm:py-2 text-sm whitespace-nowrap rounded-lg bg-white text-slate-900 font-semibold hover:scale-[1.02] transition ${focusRing}`}\n >\n {primaryCta.label}\n </a>\n )}\n\n <button\n type=\"button\"\n onClick={() => setMobileMenuOpen(true)}\n className={`sm:hidden p-2 rounded-lg border border-slate-800 bg-slate-950 text-slate-200 hover:bg-slate-900 transition ${focusRing}`}\n aria-label={t('common.menu', { defaultValue: 'Menu' })}\n aria-controls=\"shipscreens-mobile-menu\"\n aria-expanded={mobileMenuOpen}\n >\n <Menu size={18} />\n </button>\n </div>\n </header>\n ) : (\n <header className=\"border-b border-slate-200 bg-white\">\n <div className=\"max-w-4xl mx-auto px-4 py-4 flex items-center justify-between gap-4\">\n <a href={logoHref} className={`flex items-center gap-3 hover:opacity-90 transition-opacity ${focusRing}`}>\n <div className=\"w-9 h-9 rounded-xl border border-slate-200 bg-white p-1 flex items-center justify-center overflow-hidden shadow-sm\">\n <img\n src=\"/app/assets/icons/favicon-32x32.png\"\n alt=\"ShipScreens\"\n className=\"w-full h-full object-contain\"\n loading=\"lazy\"\n />\n </div>\n <span className=\"font-bold text-slate-900\">ShipScreens</span>\n </a>\n\n <div className=\"flex items-center gap-3\">\n {showLanguageSwitcher && <LanguageSwitcher className={languageSwitcherClassName} />}\n {showX && <XLink className=\"hidden sm:inline text-slate-500 hover:text-slate-900 transition-colors\" />}\n\n {showTools && (\n <a\n href={toolsHref}\n onClick={onToolsClick}\n className={`hidden sm:inline ${linkClass('tools')}`}\n aria-current={active === 'tools' ? 'page' : undefined}\n >\n {t('landing.nav.tools')}\n </a>\n )}\n\n {showPricing && (\n <a\n href={pricingHref}\n onClick={onPricingClick}\n className={`hidden sm:inline ${linkClass('pricing')}`}\n aria-current={active === 'pricing' ? 'page' : undefined}\n >\n {t('landing.nav.pricing', { defaultValue: 'Pricing' })}\n </a>\n )}\n\n {showOpenApp && (\n <a\n href={openAppHref}\n onClick={onOpenAppClick}\n className={linkClass('app')}\n aria-current={active === 'app' ? 'page' : undefined}\n >\n {t('landing.nav.openApp')}\n </a>\n )}\n\n {primaryCta?.href && primaryCta?.label && (\n <a\n href={primaryCta.href}\n onClick={primaryCta.onClick}\n className={`px-4 py-2 rounded-lg bg-slate-900 text-white font-semibold hover:bg-slate-800 transition ${focusRing}`}\n >\n {primaryCta.label}\n </a>\n )}\n\n <button\n type=\"button\"\n onClick={() => setMobileMenuOpen(true)}\n className={`sm:hidden p-2 rounded-lg border border-slate-200 bg-white text-slate-700 hover:bg-slate-50 transition ${focusRing}`}\n aria-label={t('common.menu', { defaultValue: 'Menu' })}\n aria-controls=\"shipscreens-mobile-menu\"\n aria-expanded={mobileMenuOpen}\n >\n <Menu size={18} />\n </button>\n </div>\n </div>\n </header>\n );\n\n return (\n <>\n {headerContent}\n {renderMobileMenu()}\n </>\n );\n};\n\nexport default SiteHeader;\n"],"names":["__iconNode","Menu","createLucideIcon","XLink","className","jsx","SiteHeader","variant","active","logoHref","toolsHref","pricingHref","openAppHref","showTools","showPricing","showOpenApp","showX","showLanguageSwitcher","languageSwitcherClassName","onToolsClick","onPricingClick","onOpenAppClick","primaryCta","t","useTranslation","isDark","hasPrimaryCta","mobileMenuOpen","setMobileMenuOpen","useState","mobileMenuPanelRef","useRef","mobileMenuCloseRef","closeMobileMenu","useCallback","useModalA11y","focusRing","linkBase","linkActive","linkClass","id","mobileMenuLinkBase","mobileMenuLinkActive","mobileMenuLinkClass","renderMobileMenu","menuBg","panelBase","panelHeaderBorder","closeButtonStyle","handleNav","callback","event","menuLabel","jsxs","X","LanguageSwitcher","headerContent","Fragment"],"mappings":"8HASA,MAAMA,EAAa,CACjB,CAAC,OAAQ,CAAE,EAAG,UAAW,IAAK,QAAQ,CAAE,EACxC,CAAC,OAAQ,CAAE,EAAG,WAAY,IAAK,QAAQ,CAAE,EACzC,CAAC,OAAQ,CAAE,EAAG,WAAY,IAAK,QAAQ,CAAE,CAC3C,EACMC,EAAOC,EAAiB,OAAQF,CAAU,ECR1CG,EAAQ,CAAC,CAAE,UAAAC,CAAA,IACfC,EAAAA,IAAC,IAAA,CACC,KAAK,+BACL,OAAO,SACP,IAAI,sBACJ,UAAW,0FAA0FD,CAAS,GAC9G,aAAW,sCAEX,eAAC,MAAA,CAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,eAAe,cAAY,OAC9E,SAAAC,EAAAA,IAAC,OAAA,CAAK,EAAE,kFAAkF,CAAA,CAC5F,CAAA,CACF,EAGIC,EAAa,CAAC,CAClB,QAAAC,EAAU,OACV,OAAAC,EAAS,KACT,SAAAC,EAAW,IACX,UAAAC,EAAY,UACZ,YAAAC,EAAc,WACd,YAAAC,EAAc,QACd,UAAAC,EAAY,GACZ,YAAAC,EAAc,GAC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CACG,SAAA,CAAAD,EACAZ,EAAA,CAAiB,EACpB,CAEJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as d,j as e}from"./index-C4xM6WAU.js";import{C as c}from"./circle-check-DA-NWInD.js";import{A as b}from"./CopyButton-BlPQEoP3.js";const u=({href:l,onClick:i,compact:t=!1,className:x=""})=>{const{t:o}=d(),s=o("common.cliPreflight",{returnObjects:!0})||{},a=s.bullets||[],r=t?a.slice(0,3):a;return s.title?e.jsxs("div",{className:`rounded-2xl border border-slate-800 bg-slate-900/60 ${t?"p-4":"p-6"} space-y-2 ${x}`,children:[e.jsx("div",{className:`${t?"text-sm":"text-lg"} font-bold text-white`,children:s.title}),s.body&&e.jsx("p",{className:`${t?"text-xs":"text-sm"} text-slate-300`,children:s.body}),r.length>0&&e.jsx("ul",{className:`space-y-1 ${t?"text-xs":"text-sm"} text-slate-300`,children:r.map(n=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(c,{size:t?14:16,className:"text-emerald-400"}),n]},n))}),s.note&&e.jsx("p",{className:"text-[11px] text-slate-500",children:s.note}),l&&s.cta&&e.jsxs("a",{href:l,onClick:i,className:`inline-flex items-center gap-2 text-xs font-semibold text-blue-200 hover:text-blue-100 transition-colors ${t?"pt-1":"pt-2"}`,children:[s.cta," ",e.jsx(b,{size:12})]})]}):null},j=({primary:l,secondary:i,note:t})=>!l?.label||!l?.href?null:e.jsx("div",{className:"fixed inset-x-4 bottom-4 z-[1200] sm:hidden",style:{paddingBottom:"env(safe-area-inset-bottom)"},children:e.jsxs("div",{className:"rounded-2xl border border-slate-700 bg-slate-950/95 backdrop-blur p-3 shadow-xl shadow-slate-900/40",children:[t&&e.jsx("div",{className:"text-[10px] text-slate-400 mb-2",children:t}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("a",{href:l.href,onClick:l.onClick,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl bg-blue-500 text-white text-sm font-semibold hover:bg-blue-600 transition",children:l.label}),i?.label&&i?.href&&e.jsx("a",{href:i.href,onClick:i.onClick,className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 text-sm font-semibold hover:bg-slate-900 transition",children:i.label})]})]})});export{u as C,j as S};
|
|
2
|
+
//# sourceMappingURL=StickyMobileCta-BdjmxjZ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyMobileCta-BdjmxjZ4.js","sources":["../../src/components/CliPreflightCard.jsx","../../src/components/StickyMobileCta.jsx"],"sourcesContent":["import React from 'react';\nimport { ArrowRight, CheckCircle2 } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\n\nconst CliPreflightCard = ({ href, onClick, compact = false, className = '' }) => {\n const { t } = useTranslation();\n const copy = t('common.cliPreflight', { returnObjects: true }) || {};\n const bullets = copy.bullets || [];\n const showBullets = compact ? bullets.slice(0, 3) : bullets;\n\n if (!copy.title) return null;\n\n return (\n <div\n className={`rounded-2xl border border-slate-800 bg-slate-900/60 ${compact ? 'p-4' : 'p-6'} space-y-2 ${className}`}\n >\n <div className={`${compact ? 'text-sm' : 'text-lg'} font-bold text-white`}>{copy.title}</div>\n {copy.body && <p className={`${compact ? 'text-xs' : 'text-sm'} text-slate-300`}>{copy.body}</p>}\n {showBullets.length > 0 && (\n <ul className={`space-y-1 ${compact ? 'text-xs' : 'text-sm'} text-slate-300`}>\n {showBullets.map((item) => (\n <li key={item} className=\"flex items-center gap-2\">\n <CheckCircle2 size={compact ? 14 : 16} className=\"text-emerald-400\" />\n {item}\n </li>\n ))}\n </ul>\n )}\n {copy.note && <p className=\"text-[11px] text-slate-500\">{copy.note}</p>}\n {href && copy.cta && (\n <a\n href={href}\n onClick={onClick}\n className={`inline-flex items-center gap-2 text-xs font-semibold text-blue-200 hover:text-blue-100 transition-colors ${compact ? 'pt-1' : 'pt-2'}`}\n >\n {copy.cta} <ArrowRight size={12} />\n </a>\n )}\n </div>\n );\n};\n\nexport default CliPreflightCard;\n","import React from 'react';\n\nconst StickyMobileCta = ({ primary, secondary, note }) => {\n if (!primary?.label || !primary?.href) return null;\n\n return (\n <div\n className=\"fixed inset-x-4 bottom-4 z-[1200] sm:hidden\"\n style={{ paddingBottom: 'env(safe-area-inset-bottom)' }}\n >\n <div className=\"rounded-2xl border border-slate-700 bg-slate-950/95 backdrop-blur p-3 shadow-xl shadow-slate-900/40\">\n {note && <div className=\"text-[10px] text-slate-400 mb-2\">{note}</div>}\n <div className=\"flex gap-2\">\n <a\n href={primary.href}\n onClick={primary.onClick}\n className=\"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl bg-blue-500 text-white text-sm font-semibold hover:bg-blue-600 transition\"\n >\n {primary.label}\n </a>\n {secondary?.label && secondary?.href && (\n <a\n href={secondary.href}\n onClick={secondary.onClick}\n className=\"flex-1 inline-flex items-center justify-center gap-2 px-4 py-2 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 text-sm font-semibold hover:bg-slate-900 transition\"\n >\n {secondary.label}\n </a>\n )}\n </div>\n </div>\n </div>\n );\n};\n\nexport default StickyMobileCta;\n"],"names":["CliPreflightCard","href","onClick","compact","className","t","useTranslation","copy","bullets","showBullets","jsxs","jsx","item","CheckCircle2","ArrowRight","StickyMobileCta","primary","secondary","note"],"mappings":"2IAIA,MAAMA,EAAmB,CAAC,CAAE,KAAAC,EAAM,QAAAC,EAAS,QAAAC,EAAU,GAAO,UAAAC,EAAY,MAAS,CAC/E,KAAM,CAAE,EAAAC,CAAA,EAAMC,EAAA,EACRC,EAAOF,EAAE,sBAAuB,CAAE,cAAe,EAAA,CAAM,GAAK,CAAA,EAC5DG,EAAUD,EAAK,SAAW,CAAA,EAC1BE,EAAcN,EAAUK,EAAQ,MAAM,EAAG,CAAC,EAAIA,EAEpD,OAAKD,EAAK,MAGRG,EAAAA,KAAC,MAAA,CACC,UAAW,uDAAuDP,EAAU,MAAQ,KAAK,cA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OAASA,GAAW,MAC9BN,EAAAA,IAAC,IAAA,CACC,KAAMM,EAAU,KAChB,QAASA,EAAU,QACnB,UAAU,oLAET,SAAAA,EAAU,KAAA,CAAA,CACb,CAAA,CAEJ,CAAA,CAAA,CACF,CAAA,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{u as T,r as L,t as a,j as e,b as o}from"./index-C4xM6WAU.js";import{C as U,S as I}from"./StickyMobileCta-BdjmxjZ4.js";import{A as r,C as A}from"./CopyButton-BlPQEoP3.js";import{F as z}from"./FitPanel-Fp4iPZxf.js";import{c as B,a as E,S as H}from"./LanguageSwitcher-Cp-6zMXz.js";import{S as V}from"./SiteHeader-Ch5fAKkA.js";import{T as F}from"./ToolGuardrailsPanel-Dqo_LDWu.js";import{F as p}from"./folder-tree-zQOd55nP.js";import{G as g}from"./grid-3x3-BCPiZxWL.js";import{C as y}from"./crop-BLAB1KK_.js";import{C as O}from"./copy-BnUx1vxq.js";import{C as R}from"./chevron-down-DFKVs9n4.js";import"./circle-check-DA-NWInD.js";const D=[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]],b=B("tablet",D),K=i=>(i||"").split("-")[0]==="ja"?"ja":"en",_={en:{badge:"Store assets pipeline kit",title:"Store Assets Pipeline Kit",subtitle:"Capture -> copy -> layout -> export. Keep your existing design tools, then lock an outcome-first panel order + path naming with reproducible outputs and verify/stage before App Store / Google Play upload.",heroCliTitle:"CLI quickstart (2 steps)",heroCliNote:"wizard → build (raw mode, no Playwright).",heroCliSummary:"Outputs: fastlane/ + reproducible ZIP (local/CI) with verify/stage guardrails.",heroCliCopyLabel:"Copy all commands",heroCliTemplatesLabel:"Starter templates",heroCliConfigLabel:"config.yml",heroCliCsvLabel:"copy.csv",heroCliCmd:["npx --yes shipscreens wizard","npx --yes shipscreens build --mode raw --zip --out out/agent"].join(`
|
|
2
|
+
`),proUnlockTitle:"Unlock Pro (CLI)",proUnlockBody:"Remove the watermark and unlock full matrix batch exports via CLI auth:",proUnlockCmd:"npx --yes shipscreens auth login",proUnlockNote:"Completes a one-time browser sign-in; then rerun build with --require-pro.",navTools:"Tools",overviewTitle:"Pipeline overview",overviewSteps:["Capture","Copy","Layout","Export","Upload (ASC/Play)"],checklistTitle:"Checklists",checklists:[{key:"ipad13",icon:b,title:"iPad 13-inch capture",body:"Get the right source before you generate.",bullets:["Use a real device shot when possible (13-inch / 2064x2752).","If you use Simulator, export at native size (no scaling).","Keep UI clean; avoid overlays that won’t match store previews."]},{key:"ordering",icon:p,title:"Stable ordering + per-locale folders",body:"Make re-uploads boring and predictable.",bullets:["Pick a fixed screenshot count (e.g. 5) and zero-pad names: 01.png..05.png.","Keep panel #1 focused on one user outcome and target audience.","Clarity check: if panel #1 could fit many apps, rewrite it with one concrete outcome.","Use one folder per locale (en-US/, ja-JP/) so exports never mix.","Re-export the same tree every release; the stores stay consistent."]},{key:"buckets",icon:g,title:"Size bucket shortcuts",body:"Start minimal, expand later.",bullets:["iPhone-only: pick the largest iPhone bucket first.","Add iPad 13-inch only if you ship iPad-first.","Android: one phone bucket; add tablet only if needed."]},{key:"play-safe",icon:y,title:"Play feature graphic safe area",body:"Avoid hidden crops in Play previews.",bullets:["Keep text/logos inside the central 80-86% area.","Avoid edge-aligned UI; Play crops in some previews.","Preview in Play Console before you finalize.","If screenshots still look generic, add a short app preview video as supporting proof."]}],treeTitle:"Minimal folder tree (manual uploads)",treeBody:"Start iPhone-only with 5 screenshots. Add more buckets later if needed.",treeExample:["screenshots/"," en-US/"," 01.png"," 02.png"," 03.png"," 04.png"," 05.png"," de-DE/"," 01.png"," 02.png"," 03.png"," 04.png"," 05.png"].join(`
|
|
3
|
+
`),note:"Translation happens outside ShipScreens; we focus on reproducible exports, Fastlane-ready outputs, and CI guardrails (verify + stage) while keeping your brand style intact.",scopeNote:"Upload is handled in App Store Connect / Play Console.",assetsTitle:"Templates & tools",assetsCta:"Open tool",assets:[{key:"csv",title:"Screenshot copy CSV template",desc:"Download a copy template and estimate workload.",href:"/tools/screenshot-workload-calculator/"},{key:"framework",title:"5-panel screenshot script",desc:"Hook -> Problem -> Proof -> How -> CTA.",href:"/tools/5-panel-screenshot-framework/"}],nextTitle:"Next: start from a sample project",nextBody:"Open a sample project, swap screenshots + copy, then export the first set.",nextCtaSample:"Open sample project",ctaPrimary:"Run CLI first export",ctaSecondary:"Back to tools"},ja:{badge:"ストア素材パイプラインキット",title:"ストア素材パイプラインキット",subtitle:"Capture -> Copy -> Layout -> Export。既存ツールはそのまま使い、成果訴求順 + パス命名を固定した再現性出力と verify/stage で提出前事故を減らす。",heroCliTitle:"CLIクイックスタート(2ステップ)",heroCliNote:"wizard → build(raw / Playwright不要)。",heroCliSummary:"出力: fastlane/ + 再現性ZIP(ローカル/CI)+ verify/stage ガードレール。",heroCliCopyLabel:"コマンドをすべてコピー",heroCliTemplatesLabel:"スターター雛形",heroCliConfigLabel:"config.yml",heroCliCsvLabel:"copy.csv",heroCliCmd:["npx --yes shipscreens wizard","npx --yes shipscreens build --mode raw --zip --out out/agent"].join(`
|
|
4
|
+
`),proUnlockTitle:"Proを解除(CLI)",proUnlockBody:"透かし解除&フル一括(端末×言語)のために、まずはCLI認証を実行:",proUnlockCmd:"npx --yes shipscreens auth login",proUnlockNote:"初回のみブラウザでサインインします。以後は --require-pro で再実行。",navTools:"ツール一覧",overviewTitle:"パイプライン概要",overviewSteps:["素材取り","コピー","レイアウト","出力","アップロード (ASC/Play)"],checklistTitle:"チェックリスト",checklists:[{key:"ipad13",icon:b,title:"iPad 13-inch 実スクショ",body:"生成前の素材を揃える。",bullets:["実機があれば 13-inch / 2064x2752 の実スクショを用意。","Simulator を使う場合は native サイズで書き出す。","ストア表示とズレるUIオーバーレイは避ける。"]},{key:"ordering",icon:p,title:"順序固定 (01..05) + ロケール別フォルダ",body:"毎回の更新を退屈にする。",bullets:["枚数を固定し、ファイル名は 01..05 のゼロ埋めにする(1,10,2 を防止)。","1枚目は「誰が・何を得るか」を1メッセージに絞る。","確認: 1枚目の訴求が他の多くのアプリにも当てはまるなら、成果を具体化して書き直す。","ロケールごとにフォルダを分ける(en-US/, ja-JP/)。","毎リリース同じツリーを再出力してアップロードする。"]},{key:"buckets",icon:g,title:"サイズバケット削減",body:"最小セットでまず出す。",bullets:["iPhone-only は最大サイズ1バケットから。","iPad は13-inchが必要な場合のみ追加。","Android はスマホ1バケット、必要ならタブレット。"]},{key:"play-safe",icon:y,title:"Play feature graphic 安全域",body:"隠れクロップを避ける。",bullets:["文字/ロゴは中央 80-86% に収める。","端に寄せすぎない(プレビューで切れる)。","Play Console のプレビューで最終確認。","スクショだけで埋もれる場合は短いアプリ動画を補助で追加。"]}],treeTitle:"最小フォルダツリー(手動アップロード)",treeBody:"まずは iPhone-only + 5枚から。必要になってからバケットを増やす。",treeExample:["screenshots/"," en-US/"," 01.png"," 02.png"," 03.png"," 04.png"," 05.png"," de-DE/"," 01.png"," 02.png"," 03.png"," 04.png"," 05.png"].join(`
|
|
5
|
+
`),note:"翻訳は外部でOK。ShipScreensは見た目を崩さずに、レイアウト/順序の安定・再現性出力・Fastlane公式パス生成(CI)と verify+stage の事故防止を担います。",scopeNote:"アップロードは App Store Connect / Play Console 側で行います。",assetsTitle:"テンプレ/ツール",assetsCta:"ツールを開く",assets:[{key:"csv",title:"コピーCSVテンプレ + 作業量見積もり",desc:"CSV雛形と端末x言語の計算。",href:"/tools/screenshot-workload-calculator/"},{key:"framework",title:"5枚構成スクリプト",desc:"Hook -> Problem -> Proof -> How -> CTA。",href:"/tools/5-panel-screenshot-framework/"}],nextTitle:"次: サンプルから開始",nextBody:"サンプルを開いて、スクショ差し替え → CSV copy → Export まで最短で。",nextCtaSample:"サンプルを開く",ctaPrimary:"CLIで初回エクスポート",ctaSecondary:"ツール一覧へ"}},le=()=>{const{i18n:i,t:l}=T(),d=K(i.resolvedLanguage||i.language),s=_[d]||_.en,n="support@shimaumaservices.co.jp",C=l("landing.partner.emailSubject",{defaultValue:"ShipScreens first export review"}),j=l("landing.partner.emailBody",{defaultValue:""}),k=`mailto:${n}?subject=${encodeURIComponent(C)}&body=${encodeURIComponent(j)}`,w="/app/?sample=5panel&entry_source=store_assets_pipeline_open_app_header",x="/tools/agent-cli/",v="/tools/first-export/?entry_source=store_assets_pipeline_primary_cta",m="/app/?sample=5panel&entry_source=store_assets_pipeline_open_sample_project",N="/downloads/shipscreens-agent-cli-config.yml",P="/downloads/shipscreens-agent-cli-copy.csv",h=l("common.copy",{defaultValue:"Copy"}),u=l("common.showCommands",{defaultValue:"Show commands"}),S=typeof window>"u"?!0:window.matchMedia("(min-width: 640px)").matches;return E("titles.storeAssetsPipeline",{defaultValue:s.title}),L.useEffect(()=>{a("tool_view",{tool:"store_assets_pipeline"})},[]),e.jsxs("div",{className:"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white",children:[e.jsx(H,{}),e.jsx(V,{variant:"dark",active:"tools",openAppHref:w,onToolsClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_tools_header"}),onPricingClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"pricing_header"}),onOpenAppClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_app_header"}),primaryCta:{href:v,label:e.jsxs("span",{className:"inline-flex items-center gap-2",children:[l("landing.nav.primaryCta")," ",e.jsx(r,{size:16})]}),onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_first_export_header"})}}),e.jsxs("main",{className:"max-w-5xl mx-auto px-6 pb-24 space-y-10",children:[e.jsxs("section",{className:"max-w-3xl mx-auto text-center space-y-4",children:[e.jsx("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-slate-800 bg-slate-900/60 text-slate-200 text-xs font-semibold",children:s.badge}),e.jsx("h1",{className:"text-3xl md:text-5xl font-black leading-tight",children:s.title}),e.jsx("p",{className:"text-slate-300 text-lg leading-relaxed",children:s.subtitle}),e.jsxs("div",{className:"max-w-xl mx-auto text-left bg-slate-900/60 border border-slate-800 rounded-2xl p-4 space-y-2",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-slate-500 font-semibold",children:s.heroCliTitle}),e.jsx("p",{className:"text-xs text-slate-400",children:s.heroCliNote}),e.jsx("p",{className:"text-xs text-slate-500",children:s.heroCliSummary}),e.jsx(A,{value:s.heroCliCmd,onCopied:()=>a("tool_cta_click",{tool:"store_assets_pipeline",cta:"copy_cli_hero"}),className:"inline-flex items-center justify-center gap-2 px-3 py-2 rounded-lg border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition text-xs font-semibold",children:({copyLabel:t,copyState:c})=>e.jsxs(e.Fragment,{children:[e.jsx(O,{size:14}),c==="idle"?s.heroCliCopyLabel:t||h]})}),e.jsxs("details",{className:"group",open:S,children:[e.jsxs("summary",{className:"flex items-center justify-between text-[11px] font-semibold text-slate-400 cursor-pointer list-none",children:[e.jsx("span",{children:u}),e.jsx(R,{size:14,className:"text-slate-500 transition-transform duration-200 group-open:rotate-180"})]}),e.jsx("div",{className:"mt-2 rounded-xl border border-slate-800 bg-slate-950 p-3",children:e.jsx("pre",{className:"text-xs text-slate-200 whitespace-pre-wrap",children:s.heroCliCmd})})]}),e.jsxs("div",{className:"pt-1 space-y-2",children:[e.jsx("div",{className:"text-[10px] uppercase tracking-[0.2em] text-slate-500 font-semibold",children:s.heroCliTemplatesLabel}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx("a",{href:N,download:!0,onClick:()=>a("tool_download",{tool:"store_assets_pipeline",asset:"config_template"}),className:"inline-flex items-center justify-center gap-2 px-2.5 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-[11px] text-slate-200 hover:bg-slate-900 transition",children:s.heroCliConfigLabel}),e.jsx("a",{href:P,download:!0,onClick:()=>a("tool_download",{tool:"store_assets_pipeline",asset:"copy_template"}),className:"inline-flex items-center justify-center gap-2 px-2.5 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-[11px] text-slate-200 hover:bg-slate-900 transition",children:s.heroCliCsvLabel})]})]})]}),e.jsx(F,{title:d==="ja"?"詳細: CLIガードレール + Pro解除":"Advanced: CLI guardrails + Pro unlock",codeToggleLabel:u,copyButtonLabel:h,preflightHref:"/tools/agent-cli/#preflight",onPreflightClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_cli_preflight"}),proUnlockTitle:s.proUnlockTitle,proUnlockBody:s.proUnlockBody,proUnlockCmd:s.proUnlockCmd,proUnlockNote:s.proUnlockNote,onProUnlockCopied:()=>a("tool_cta_click",{tool:"store_assets_pipeline",cta:"copy_cli_pro_unlock"})}),e.jsx(U,{compact:!0,href:"/tools/agent-cli/#preflight",onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_cli_preflight_card"}),className:"max-w-xl mx-auto"})]}),e.jsx(z,{className:"max-w-4xl mx-auto w-full"}),e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-lg font-bold text-white text-center",children:s.overviewTitle}),e.jsx("div",{className:"flex flex-wrap justify-center gap-2 text-sm text-slate-300",children:s.overviewSteps.map(t=>e.jsx("span",{className:"px-3 py-1 rounded-full border border-slate-800 bg-slate-900/70",children:t},t))})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-lg font-bold text-white text-center",children:s.checklistTitle}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6",children:s.checklists.map(t=>{const c=t.icon;return e.jsxs("div",{className:"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 flex items-center justify-center",children:e.jsx(c,{size:18,className:"text-slate-200"})}),e.jsx("div",{className:"text-lg font-bold text-white",children:t.title})]}),e.jsx("p",{className:"text-sm text-slate-300 leading-relaxed",children:t.body}),e.jsx("ul",{className:"text-xs text-slate-400 list-disc pl-4 space-y-1",children:t.bullets.map(f=>e.jsx("li",{children:f},f))})]},t.key)})}),e.jsxs("div",{className:"text-xs text-slate-500 text-center space-y-1",children:[e.jsx("p",{children:s.note}),e.jsx("p",{children:s.scopeNote})]}),e.jsxs("div",{className:"max-w-3xl mx-auto bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 flex items-center justify-center",children:e.jsx(p,{size:18,className:"text-slate-200"})}),e.jsx("div",{className:"text-lg font-bold text-white",children:s.treeTitle})]}),e.jsx("p",{className:"text-sm text-slate-300 leading-relaxed",children:s.treeBody}),e.jsx("div",{className:"rounded-xl border border-slate-800 bg-slate-950/80 p-4 overflow-x-auto",children:e.jsx("pre",{className:"text-xs text-slate-200 whitespace-pre",children:s.treeExample})})]})]}),e.jsxs("section",{className:"space-y-4",children:[e.jsx("h2",{className:"text-lg font-bold text-white text-center",children:s.assetsTitle}),e.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:s.assets.map(t=>e.jsxs("a",{href:t.href,onClick:()=>a("tool_cta_click",{tool:"store_assets_pipeline",cta:`open_${t.key}`}),className:"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-3 hover:border-slate-700 transition",children:[e.jsx("div",{className:"text-lg font-bold text-white",children:t.title}),e.jsx("div",{className:"text-sm text-slate-300",children:t.desc}),e.jsxs("div",{className:"text-xs text-blue-200 flex items-center gap-2",children:[s.assetsCta," ",e.jsx(r,{size:14})]})]},t.key))})]}),e.jsxs("section",{className:"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx("div",{className:"text-sm font-bold text-white",children:s.nextTitle}),e.jsx("div",{className:"text-sm text-slate-300",children:s.nextBody})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 w-full md:w-auto",children:[e.jsxs("a",{href:m,onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_sample_project_body"}),className:"inline-flex items-center justify-center gap-2 px-5 py-3 rounded-xl bg-blue-500 text-white font-bold hover:bg-blue-600 transition w-full md:w-auto",children:[s.nextCtaSample," ",e.jsx(r,{size:16})]}),e.jsxs("a",{href:x,onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"open_agent_cli_footer"}),className:"inline-flex items-center justify-center gap-2 px-5 py-3 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition w-full md:w-auto",children:[s.ctaPrimary," ",e.jsx(r,{size:16})]})]})]}),e.jsxs("section",{id:"design-partner",className:"max-w-3xl mx-auto bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4",children:[e.jsx("div",{className:"text-lg font-bold text-white",children:l("landing.partner.title")}),e.jsx("div",{className:"text-sm text-slate-300 leading-relaxed",children:l("landing.partner.body")}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3",children:[e.jsxs("a",{href:k,onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"email_design_partner"}),className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 rounded-xl bg-blue-500 text-white font-bold hover:bg-blue-600 transition",children:[l("landing.partner.emailCta")," ",e.jsx(r,{size:16})]}),e.jsx("a",{href:"https://x.com/shipscreenscom",target:"_blank",rel:"noopener noreferrer",onClick:()=>a("tool_cta_click",{tool:"store_assets_pipeline",cta:"dm_design_partner"}),className:"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition",children:l("landing.partner.dmCta")})]}),e.jsxs("div",{className:"text-xs text-slate-500",children:[l("landing.partner.emailLabel")," ",e.jsx("a",{href:`mailto:${n}`,className:"underline underline-offset-4 hover:text-white",children:n})]})]}),e.jsx("section",{className:"max-w-3xl mx-auto text-center space-y-4 pt-2",children:e.jsx("a",{href:"/tools/",onClick:()=>a("tool_cta_click",{tool:"store_assets_pipeline",cta:"back_to_tools"}),className:"text-xs text-slate-500 hover:text-slate-300 transition-colors underline underline-offset-4",children:s.ctaSecondary})})]}),e.jsx(I,{primary:{label:s.nextCtaSample,href:m,onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"sticky_primary_sample"})},secondary:{label:s.ctaPrimary,href:x,onClick:t=>o(t,"tool_cta_click",{tool:"store_assets_pipeline",cta:"sticky_secondary_cli"})}})]})};export{le as default};
|
|
6
|
+
//# sourceMappingURL=StoreAssetsPipeline-Cl-3GPfw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoreAssetsPipeline-Cl-3GPfw.js","sources":["../../node_modules/lucide-react/dist/esm/icons/tablet.js","../../src/pages/StoreAssetsPipeline.jsx"],"sourcesContent":["/**\n * @license lucide-react v0.563.0 - ISC\n *\n * This source code is licensed under the ISC license.\n * See the LICENSE file in the root directory of this source tree.\n */\n\nimport createLucideIcon from '../createLucideIcon.js';\n\nconst __iconNode = [\n [\"rect\", { width: \"16\", height: \"20\", x: \"4\", y: \"2\", rx: \"2\", ry: \"2\", key: \"76otgf\" }],\n [\"line\", { x1: \"12\", x2: \"12.01\", y1: \"18\", y2: \"18\", key: \"1dp563\" }]\n];\nconst Tablet = createLucideIcon(\"tablet\", __iconNode);\n\nexport { __iconNode, Tablet as default };\n//# sourceMappingURL=tablet.js.map\n","import React, { useEffect, useMemo } from 'react';\nimport { ArrowRight, ChevronDown, Copy, Crop, FolderTree, Grid, Tablet } from 'lucide-react';\nimport { useTranslation } from 'react-i18next';\nimport CliPreflightCard from '../components/CliPreflightCard';\nimport CopyButton from '../components/CopyButton';\nimport FitPanel from '../components/FitPanel';\nimport StagingBadge from '../components/StagingBadge';\nimport StickyMobileCta from '../components/StickyMobileCta';\nimport SiteHeader from '../components/SiteHeader';\nimport ToolGuardrailsPanel from '../components/ToolGuardrailsPanel';\nimport usePageTitle from '../hooks/usePageTitle';\nimport { trackEvent, trackEventAndFollowLink } from '../lib/analytics';\n\nconst normalizeLang = (lang) => {\n const base = (lang || '').split('-')[0];\n return base === 'ja' ? 'ja' : 'en';\n};\n\nconst COPY = {\n en: {\n badge: 'Store assets pipeline kit',\n title: 'Store Assets Pipeline Kit',\n subtitle:\n 'Capture -> copy -> layout -> export. Keep your existing design tools, then lock an outcome-first panel order + path naming with reproducible outputs and verify/stage before App Store / Google Play upload.',\n heroCliTitle: 'CLI quickstart (2 steps)',\n heroCliNote: 'wizard → build (raw mode, no Playwright).',\n heroCliSummary: 'Outputs: fastlane/ + reproducible ZIP (local/CI) with verify/stage guardrails.',\n heroCliCopyLabel: 'Copy all commands',\n heroCliTemplatesLabel: 'Starter templates',\n heroCliConfigLabel: 'config.yml',\n heroCliCsvLabel: 'copy.csv',\n heroCliCmd: [\n 'npx --yes shipscreens wizard',\n 'npx --yes shipscreens build --mode raw --zip --out out/agent',\n ].join('\\n'),\n proUnlockTitle: 'Unlock Pro (CLI)',\n proUnlockBody: 'Remove the watermark and unlock full matrix batch exports via CLI auth:',\n proUnlockCmd: 'npx --yes shipscreens auth login',\n proUnlockNote: 'Completes a one-time browser sign-in; then rerun build with --require-pro.',\n navTools: 'Tools',\n overviewTitle: 'Pipeline overview',\n overviewSteps: ['Capture', 'Copy', 'Layout', 'Export', 'Upload (ASC/Play)'],\n checklistTitle: 'Checklists',\n checklists: [\n {\n key: 'ipad13',\n icon: Tablet,\n title: 'iPad 13-inch capture',\n body: 'Get the right source before you generate.',\n bullets: [\n 'Use a real device shot when possible (13-inch / 2064x2752).',\n 'If you use Simulator, export at native size (no scaling).',\n 'Keep UI clean; avoid overlays that won’t match store previews.',\n ],\n },\n {\n key: 'ordering',\n icon: FolderTree,\n title: 'Stable ordering + per-locale folders',\n body: 'Make re-uploads boring and predictable.',\n bullets: [\n 'Pick a fixed screenshot count (e.g. 5) and zero-pad names: 01.png..05.png.',\n 'Keep panel #1 focused on one user outcome and target audience.',\n 'Clarity check: if panel #1 could fit many apps, rewrite it with one concrete outcome.',\n 'Use one folder per locale (en-US/, ja-JP/) so exports never mix.',\n 'Re-export the same tree every release; the stores stay consistent.',\n ],\n },\n {\n key: 'buckets',\n icon: Grid,\n title: 'Size bucket shortcuts',\n body: 'Start minimal, expand later.',\n bullets: [\n 'iPhone-only: pick the largest iPhone bucket first.',\n 'Add iPad 13-inch only if you ship iPad-first.',\n 'Android: one phone bucket; add tablet only if needed.',\n ],\n },\n {\n key: 'play-safe',\n icon: Crop,\n title: 'Play feature graphic safe area',\n body: 'Avoid hidden crops in Play previews.',\n bullets: [\n 'Keep text/logos inside the central 80-86% area.',\n 'Avoid edge-aligned UI; Play crops in some previews.',\n 'Preview in Play Console before you finalize.',\n 'If screenshots still look generic, add a short app preview video as supporting proof.',\n ],\n },\n ],\n treeTitle: 'Minimal folder tree (manual uploads)',\n treeBody: 'Start iPhone-only with 5 screenshots. Add more buckets later if needed.',\n treeExample: [\n 'screenshots/',\n ' en-US/',\n ' 01.png',\n ' 02.png',\n ' 03.png',\n ' 04.png',\n ' 05.png',\n ' de-DE/',\n ' 01.png',\n ' 02.png',\n ' 03.png',\n ' 04.png',\n ' 05.png',\n ].join('\\n'),\n note: 'Translation happens outside ShipScreens; we focus on reproducible exports, Fastlane-ready outputs, and CI guardrails (verify + stage) while keeping your brand style intact.',\n scopeNote: 'Upload is handled in App Store Connect / Play Console.',\n assetsTitle: 'Templates & tools',\n assetsCta: 'Open tool',\n assets: [\n {\n key: 'csv',\n title: 'Screenshot copy CSV template',\n desc: 'Download a copy template and estimate workload.',\n href: '/tools/screenshot-workload-calculator/',\n },\n {\n key: 'framework',\n title: '5-panel screenshot script',\n desc: 'Hook -> Problem -> Proof -> How -> CTA.',\n href: '/tools/5-panel-screenshot-framework/',\n },\n ],\n nextTitle: 'Next: start from a sample project',\n nextBody: 'Open a sample project, swap screenshots + copy, then export the first set.',\n nextCtaSample: 'Open sample project',\n ctaPrimary: 'Run CLI first export',\n ctaSecondary: 'Back to tools',\n },\n ja: {\n badge: 'ストア素材パイプラインキット',\n title: 'ストア素材パイプラインキット',\n subtitle:\n 'Capture -> Copy -> Layout -> Export。既存ツールはそのまま使い、成果訴求順 + パス命名を固定した再現性出力と verify/stage で提出前事故を減らす。',\n heroCliTitle: 'CLIクイックスタート(2ステップ)',\n heroCliNote: 'wizard → build(raw / Playwright不要)。',\n heroCliSummary: '出力: fastlane/ + 再現性ZIP(ローカル/CI)+ verify/stage ガードレール。',\n heroCliCopyLabel: 'コマンドをすべてコピー',\n heroCliTemplatesLabel: 'スターター雛形',\n heroCliConfigLabel: 'config.yml',\n heroCliCsvLabel: 'copy.csv',\n heroCliCmd: [\n 'npx --yes shipscreens wizard',\n 'npx --yes shipscreens build --mode raw --zip --out out/agent',\n ].join('\\n'),\n proUnlockTitle: 'Proを解除(CLI)',\n proUnlockBody: '透かし解除&フル一括(端末×言語)のために、まずはCLI認証を実行:',\n proUnlockCmd: 'npx --yes shipscreens auth login',\n proUnlockNote: '初回のみブラウザでサインインします。以後は --require-pro で再実行。',\n navTools: 'ツール一覧',\n overviewTitle: 'パイプライン概要',\n overviewSteps: ['素材取り', 'コピー', 'レイアウト', '出力', 'アップロード (ASC/Play)'],\n checklistTitle: 'チェックリスト',\n checklists: [\n {\n key: 'ipad13',\n icon: Tablet,\n title: 'iPad 13-inch 実スクショ',\n body: '生成前の素材を揃える。',\n bullets: [\n '実機があれば 13-inch / 2064x2752 の実スクショを用意。',\n 'Simulator を使う場合は native サイズで書き出す。',\n 'ストア表示とズレるUIオーバーレイは避ける。',\n ],\n },\n {\n key: 'ordering',\n icon: FolderTree,\n title: '順序固定 (01..05) + ロケール別フォルダ',\n body: '毎回の更新を退屈にする。',\n bullets: [\n '枚数を固定し、ファイル名は 01..05 のゼロ埋めにする(1,10,2 を防止)。',\n '1枚目は「誰が・何を得るか」を1メッセージに絞る。',\n '確認: 1枚目の訴求が他の多くのアプリにも当てはまるなら、成果を具体化して書き直す。',\n 'ロケールごとにフォルダを分ける(en-US/, ja-JP/)。',\n '毎リリース同じツリーを再出力してアップロードする。',\n ],\n },\n {\n key: 'buckets',\n icon: Grid,\n title: 'サイズバケット削減',\n body: '最小セットでまず出す。',\n bullets: [\n 'iPhone-only は最大サイズ1バケットから。',\n 'iPad は13-inchが必要な場合のみ追加。',\n 'Android はスマホ1バケット、必要ならタブレット。',\n ],\n },\n {\n key: 'play-safe',\n icon: Crop,\n title: 'Play feature graphic 安全域',\n body: '隠れクロップを避ける。',\n bullets: [\n '文字/ロゴは中央 80-86% に収める。',\n '端に寄せすぎない(プレビューで切れる)。',\n 'Play Console のプレビューで最終確認。',\n 'スクショだけで埋もれる場合は短いアプリ動画を補助で追加。',\n ],\n },\n ],\n treeTitle: '最小フォルダツリー(手動アップロード)',\n treeBody: 'まずは iPhone-only + 5枚から。必要になってからバケットを増やす。',\n treeExample: [\n 'screenshots/',\n ' en-US/',\n ' 01.png',\n ' 02.png',\n ' 03.png',\n ' 04.png',\n ' 05.png',\n ' de-DE/',\n ' 01.png',\n ' 02.png',\n ' 03.png',\n ' 04.png',\n ' 05.png',\n ].join('\\n'),\n note: '翻訳は外部でOK。ShipScreensは見た目を崩さずに、レイアウト/順序の安定・再現性出力・Fastlane公式パス生成(CI)と verify+stage の事故防止を担います。',\n scopeNote: 'アップロードは App Store Connect / Play Console 側で行います。',\n assetsTitle: 'テンプレ/ツール',\n assetsCta: 'ツールを開く',\n assets: [\n {\n key: 'csv',\n title: 'コピーCSVテンプレ + 作業量見積もり',\n desc: 'CSV雛形と端末x言語の計算。',\n href: '/tools/screenshot-workload-calculator/',\n },\n {\n key: 'framework',\n title: '5枚構成スクリプト',\n desc: 'Hook -> Problem -> Proof -> How -> CTA。',\n href: '/tools/5-panel-screenshot-framework/',\n },\n ],\n nextTitle: '次: サンプルから開始',\n nextBody: 'サンプルを開いて、スクショ差し替え → CSV copy → Export まで最短で。',\n nextCtaSample: 'サンプルを開く',\n ctaPrimary: 'CLIで初回エクスポート',\n ctaSecondary: 'ツール一覧へ',\n },\n};\n\nconst StoreAssetsPipeline = () => {\n const { i18n, t } = useTranslation();\n const lang = normalizeLang(i18n.resolvedLanguage || i18n.language);\n const copy = COPY[lang] || COPY.en;\n const supportEmail = 'support@shimaumaservices.co.jp';\n const partnerSubject = t('landing.partner.emailSubject', { defaultValue: 'ShipScreens first export review' });\n const partnerBody = t('landing.partner.emailBody', { defaultValue: '' });\n const partnerMailto = `mailto:${supportEmail}?subject=${encodeURIComponent(partnerSubject)}&body=${encodeURIComponent(\n partnerBody\n )}`;\n const openAppHref = '/app/?sample=5panel&entry_source=store_assets_pipeline_open_app_header';\n const agentCliHref = '/tools/agent-cli/';\n const firstExportHref = '/tools/first-export/?entry_source=store_assets_pipeline_primary_cta';\n const sampleProjectHref = '/app/?sample=5panel&entry_source=store_assets_pipeline_open_sample_project';\n const configDownloadHref = '/downloads/shipscreens-agent-cli-config.yml';\n const csvDownloadHref = '/downloads/shipscreens-agent-cli-copy.csv';\n const copyButtonLabel = t('common.copy', { defaultValue: 'Copy' });\n const codeToggleLabel = t('common.showCommands', { defaultValue: 'Show commands' });\n const defaultCodeOpen = typeof window === 'undefined' ? true : window.matchMedia('(min-width: 640px)').matches;\n\n usePageTitle('titles.storeAssetsPipeline', { defaultValue: copy.title });\n\n useEffect(() => {\n trackEvent('tool_view', { tool: 'store_assets_pipeline' });\n }, []);\n\n return (\n <div className=\"min-h-screen bg-gradient-to-b from-slate-950 via-slate-900 to-slate-950 text-white\">\n <StagingBadge />\n <SiteHeader\n variant=\"dark\"\n active=\"tools\"\n openAppHref={openAppHref}\n onToolsClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'open_tools_header' })\n }\n onPricingClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'pricing_header' })\n }\n onOpenAppClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'open_app_header' })\n }\n primaryCta={{\n href: firstExportHref,\n label: (\n <span className=\"inline-flex items-center gap-2\">\n {t('landing.nav.primaryCta')} <ArrowRight size={16} />\n </span>\n ),\n onClick: (event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'open_first_export_header' }),\n }}\n />\n\n <main className=\"max-w-5xl mx-auto px-6 pb-24 space-y-10\">\n <section className=\"max-w-3xl mx-auto text-center space-y-4\">\n <div className=\"inline-flex items-center gap-2 px-3 py-1.5 rounded-full border border-slate-800 bg-slate-900/60 text-slate-200 text-xs font-semibold\">\n {copy.badge}\n </div>\n <h1 className=\"text-3xl md:text-5xl font-black leading-tight\">{copy.title}</h1>\n <p className=\"text-slate-300 text-lg leading-relaxed\">{copy.subtitle}</p>\n <div className=\"max-w-xl mx-auto text-left bg-slate-900/60 border border-slate-800 rounded-2xl p-4 space-y-2\">\n <div className=\"text-[11px] uppercase tracking-[0.2em] text-slate-500 font-semibold\">{copy.heroCliTitle}</div>\n <p className=\"text-xs text-slate-400\">{copy.heroCliNote}</p>\n <p className=\"text-xs text-slate-500\">{copy.heroCliSummary}</p>\n <CopyButton\n value={copy.heroCliCmd}\n onCopied={() => trackEvent('tool_cta_click', { tool: 'store_assets_pipeline', cta: 'copy_cli_hero' })}\n className=\"inline-flex items-center justify-center gap-2 px-3 py-2 rounded-lg border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition text-xs font-semibold\"\n >\n {({ copyLabel, copyState }) => (\n <>\n <Copy size={14} />\n {copyState === 'idle' ? copy.heroCliCopyLabel : copyLabel || copyButtonLabel}\n </>\n )}\n </CopyButton>\n <details className=\"group\" open={defaultCodeOpen}>\n <summary className=\"flex items-center justify-between text-[11px] font-semibold text-slate-400 cursor-pointer list-none\">\n <span>{codeToggleLabel}</span>\n <ChevronDown size={14} className=\"text-slate-500 transition-transform duration-200 group-open:rotate-180\" />\n </summary>\n <div className=\"mt-2 rounded-xl border border-slate-800 bg-slate-950 p-3\">\n <pre className=\"text-xs text-slate-200 whitespace-pre-wrap\">{copy.heroCliCmd}</pre>\n </div>\n </details>\n <div className=\"pt-1 space-y-2\">\n <div className=\"text-[10px] uppercase tracking-[0.2em] text-slate-500 font-semibold\">\n {copy.heroCliTemplatesLabel}\n </div>\n <div className=\"flex flex-wrap gap-2\">\n <a\n href={configDownloadHref}\n download\n onClick={() => trackEvent('tool_download', { tool: 'store_assets_pipeline', asset: 'config_template' })}\n className=\"inline-flex items-center justify-center gap-2 px-2.5 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-[11px] text-slate-200 hover:bg-slate-900 transition\"\n >\n {copy.heroCliConfigLabel}\n </a>\n <a\n href={csvDownloadHref}\n download\n onClick={() => trackEvent('tool_download', { tool: 'store_assets_pipeline', asset: 'copy_template' })}\n className=\"inline-flex items-center justify-center gap-2 px-2.5 py-1.5 rounded-md border border-slate-700 bg-slate-950 text-[11px] text-slate-200 hover:bg-slate-900 transition\"\n >\n {copy.heroCliCsvLabel}\n </a>\n </div>\n </div>\n </div>\n <ToolGuardrailsPanel\n title={lang === 'ja' ? '詳細: CLIガードレール + Pro解除' : 'Advanced: CLI guardrails + Pro unlock'}\n codeToggleLabel={codeToggleLabel}\n copyButtonLabel={copyButtonLabel}\n preflightHref=\"/tools/agent-cli/#preflight\"\n onPreflightClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', {\n tool: 'store_assets_pipeline',\n cta: 'open_cli_preflight',\n })\n }\n proUnlockTitle={copy.proUnlockTitle}\n proUnlockBody={copy.proUnlockBody}\n proUnlockCmd={copy.proUnlockCmd}\n proUnlockNote={copy.proUnlockNote}\n onProUnlockCopied={() =>\n trackEvent('tool_cta_click', { tool: 'store_assets_pipeline', cta: 'copy_cli_pro_unlock' })\n }\n />\n <CliPreflightCard\n compact\n href=\"/tools/agent-cli/#preflight\"\n onClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', {\n tool: 'store_assets_pipeline',\n cta: 'open_cli_preflight_card',\n })\n }\n className=\"max-w-xl mx-auto\"\n />\n </section>\n\n <FitPanel className=\"max-w-4xl mx-auto w-full\" />\n\n <section className=\"space-y-4\">\n <h2 className=\"text-lg font-bold text-white text-center\">{copy.overviewTitle}</h2>\n <div className=\"flex flex-wrap justify-center gap-2 text-sm text-slate-300\">\n {copy.overviewSteps.map((step) => (\n <span key={step} className=\"px-3 py-1 rounded-full border border-slate-800 bg-slate-900/70\">\n {step}\n </span>\n ))}\n </div>\n </section>\n\n <section className=\"space-y-4\">\n <h2 className=\"text-lg font-bold text-white text-center\">{copy.checklistTitle}</h2>\n <div className=\"grid md:grid-cols-3 gap-6\">\n {copy.checklists.map((item) => {\n const Icon = item.icon;\n return (\n <div key={item.key} className=\"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4\">\n <div className=\"flex items-center gap-3\">\n <div className=\"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 flex items-center justify-center\">\n <Icon size={18} className=\"text-slate-200\" />\n </div>\n <div className=\"text-lg font-bold text-white\">{item.title}</div>\n </div>\n <p className=\"text-sm text-slate-300 leading-relaxed\">{item.body}</p>\n <ul className=\"text-xs text-slate-400 list-disc pl-4 space-y-1\">\n {item.bullets.map((bullet) => (\n <li key={bullet}>{bullet}</li>\n ))}\n </ul>\n </div>\n );\n })}\n </div>\n <div className=\"text-xs text-slate-500 text-center space-y-1\">\n <p>{copy.note}</p>\n <p>{copy.scopeNote}</p>\n </div>\n <div className=\"max-w-3xl mx-auto bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4\">\n <div className=\"flex items-center gap-3\">\n <div className=\"w-10 h-10 rounded-xl border border-slate-800 bg-slate-950 flex items-center justify-center\">\n <FolderTree size={18} className=\"text-slate-200\" />\n </div>\n <div className=\"text-lg font-bold text-white\">{copy.treeTitle}</div>\n </div>\n <p className=\"text-sm text-slate-300 leading-relaxed\">{copy.treeBody}</p>\n <div className=\"rounded-xl border border-slate-800 bg-slate-950/80 p-4 overflow-x-auto\">\n <pre className=\"text-xs text-slate-200 whitespace-pre\">{copy.treeExample}</pre>\n </div>\n </div>\n </section>\n\n <section className=\"space-y-4\">\n <h2 className=\"text-lg font-bold text-white text-center\">{copy.assetsTitle}</h2>\n <div className=\"grid md:grid-cols-2 gap-6\">\n {copy.assets.map((asset) => (\n <a\n key={asset.key}\n href={asset.href}\n onClick={() => trackEvent('tool_cta_click', { tool: 'store_assets_pipeline', cta: `open_${asset.key}` })}\n className=\"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-3 hover:border-slate-700 transition\"\n >\n <div className=\"text-lg font-bold text-white\">{asset.title}</div>\n <div className=\"text-sm text-slate-300\">{asset.desc}</div>\n <div className=\"text-xs text-blue-200 flex items-center gap-2\">\n {copy.assetsCta} <ArrowRight size={14} />\n </div>\n </a>\n ))}\n </div>\n </section>\n\n <section className=\"bg-slate-900/60 border border-slate-800 rounded-2xl p-6 flex flex-col md:flex-row items-start md:items-center justify-between gap-4\">\n <div className=\"space-y-1\">\n <div className=\"text-sm font-bold text-white\">{copy.nextTitle}</div>\n <div className=\"text-sm text-slate-300\">{copy.nextBody}</div>\n </div>\n <div className=\"flex flex-col sm:flex-row gap-3 w-full md:w-auto\">\n <a\n href={sampleProjectHref}\n onClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'open_sample_project_body' })\n }\n className=\"inline-flex items-center justify-center gap-2 px-5 py-3 rounded-xl bg-blue-500 text-white font-bold hover:bg-blue-600 transition w-full md:w-auto\"\n >\n {copy.nextCtaSample} <ArrowRight size={16} />\n </a>\n <a\n href={agentCliHref}\n onClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'open_agent_cli_footer' })\n }\n className=\"inline-flex items-center justify-center gap-2 px-5 py-3 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition w-full md:w-auto\"\n >\n {copy.ctaPrimary} <ArrowRight size={16} />\n </a>\n </div>\n </section>\n\n <section\n id=\"design-partner\"\n className=\"max-w-3xl mx-auto bg-slate-900/60 border border-slate-800 rounded-2xl p-6 space-y-4\"\n >\n <div className=\"text-lg font-bold text-white\">{t('landing.partner.title')}</div>\n <div className=\"text-sm text-slate-300 leading-relaxed\">{t('landing.partner.body')}</div>\n <div className=\"flex flex-col sm:flex-row gap-3\">\n <a\n href={partnerMailto}\n onClick={(event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'email_design_partner' })\n }\n className=\"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 rounded-xl bg-blue-500 text-white font-bold hover:bg-blue-600 transition\"\n >\n {t('landing.partner.emailCta')} <ArrowRight size={16} />\n </a>\n <a\n href=\"https://x.com/shipscreenscom\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n onClick={() => trackEvent('tool_cta_click', { tool: 'store_assets_pipeline', cta: 'dm_design_partner' })}\n className=\"flex-1 inline-flex items-center justify-center gap-2 px-4 py-3 rounded-xl border border-slate-700 bg-slate-950 text-slate-200 hover:bg-slate-900 transition\"\n >\n {t('landing.partner.dmCta')}\n </a>\n </div>\n <div className=\"text-xs text-slate-500\">\n {t('landing.partner.emailLabel')}{' '}\n <a href={`mailto:${supportEmail}`} className=\"underline underline-offset-4 hover:text-white\">\n {supportEmail}\n </a>\n </div>\n </section>\n\n <section className=\"max-w-3xl mx-auto text-center space-y-4 pt-2\">\n <a\n href=\"/tools/\"\n onClick={() => trackEvent('tool_cta_click', { tool: 'store_assets_pipeline', cta: 'back_to_tools' })}\n className=\"text-xs text-slate-500 hover:text-slate-300 transition-colors underline underline-offset-4\"\n >\n {copy.ctaSecondary}\n </a>\n </section>\n </main>\n <StickyMobileCta\n primary={{\n label: copy.nextCtaSample,\n href: sampleProjectHref,\n onClick: (event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'sticky_primary_sample' }),\n }}\n secondary={{\n label: copy.ctaPrimary,\n href: agentCliHref,\n onClick: (event) =>\n trackEventAndFollowLink(event, 'tool_cta_click', { tool: 'store_assets_pipeline', cta: 'sticky_secondary_cli' }),\n }}\n />\n </div>\n );\n};\n\nexport default StoreAssetsPipeline;\n"],"names":["__iconNode","Tablet","createLucideIcon","normalizeLang","lang","COPY","FolderTree","Grid","Crop","StoreAssetsPipeline","i18n","t","useTranslation","copy","supportEmail","partnerSubject","partnerBody","partnerMailto","openAppHref","agentCliHref","firstExportHref","sampleProjectHref","configDownloadHref","csvDownloadHref","copyButtonLabel","codeToggleLabel","defaultCodeOpen","usePageTitle","useEffect","trackEvent","jsxs","jsx","StagingBadge","SiteHeader","event","trackEventAndFollowLink","ArrowRight","CopyButton","copyLabel","copyState","Fragment","Copy","ChevronDown","ToolGuardrailsPanel","CliPreflightCard","FitPanel","step","item","Icon","bullet","asset","StickyMobileCta"],"mappings":"ynBASA,MAAMA,EAAa,CACjB,CAAC,OAAQ,CAAE,MAAO,KAAM,OAAQ,KAAM,EAAG,IAAK,EAAG,IAAK,GAAI,IAAK,GAAI,IAAK,IAAK,SAAU,EACvF,CAAC,OAAQ,CAAE,GAAI,KAAM,GAAI,QAAS,GAAI,KAAM,GAAI,KAAM,IAAK,QAAQ,CAAE,CACvE,EACMC,EAASC,EAAiB,SAAUF,CAAU,ECA9CG,EAAiBC,IACPA,GAAQ,IAAI,MAAM,GAAG,EAAE,CAAC,IACtB,KAAO,KAAO,KAG1BC,EAAO,CACX,GAAI,CACF,MAAO,4BACP,MAAO,4BACP,SACE,+MACF,aAAc,2BACd,YAAa,4CACb,eAAgB,iFAChB,iBAAkB,oBAClB,sBAAuB,oBACvB,mBAAoB,aACpB,gBAAiB,WACjB,WAAY,CACV,+BACA,8DAAA,EACA,KAAK;AAAA,CAAI,EACX,eAAgB,mBAChB,cAAe,0EACf,aAAc,mCACd,cAAe,6EACf,SAAU,QACV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