@happyvertical/smrt-planner 0.60.10 → 0.60.12
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/app/404.html +18 -18
- package/app/_app/immutable/chunks/B4xtw2J5.js +1 -0
- package/app/_app/immutable/chunks/{aRvtQhMR.js → B9_h_mHe.js} +1 -1
- package/app/_app/immutable/chunks/{D94p5MvB.js → BGT4FOaU.js} +1 -1
- package/app/_app/immutable/chunks/{BK_HCAmp.js → BLxEt6rB.js} +1 -1
- package/app/_app/immutable/chunks/{CGT9KhDE.js → BP0RtFz5.js} +1 -1
- package/app/_app/immutable/chunks/{BRQfzTMs.js → Bm8-8G4Y.js} +1 -1
- package/app/_app/immutable/chunks/{DjNvHrGS.js → Bnevj03f.js} +1 -1
- package/app/_app/immutable/chunks/{CvVhfVy6.js → C719Tukc.js} +1 -1
- package/app/_app/immutable/chunks/{CIBCu69-.js → CEAekex5.js} +1 -1
- package/app/_app/immutable/chunks/{BAGf8MlQ.js → CHw7lFPr.js} +1 -1
- package/app/_app/immutable/chunks/{COh3-HKT.js → CL9bwSUa.js} +1 -1
- package/app/_app/immutable/chunks/{Bx_g8x-6.js → CSVCiMHn.js} +1 -1
- package/app/_app/immutable/chunks/{CdmDUL7w.js → C_qFOhGK.js} +1 -1
- package/app/_app/immutable/chunks/{0Qed_ORs.js → Cz2asSzI.js} +1 -1
- package/app/_app/immutable/chunks/{CTOHtJHu.js → D26vob6f.js} +1 -1
- package/app/_app/immutable/chunks/{M7rkX15k.js → D4QZjNwd.js} +1 -1
- package/app/_app/immutable/chunks/{BNfp6Cvk.js → D5J0PCfu.js} +1 -1
- package/app/_app/immutable/chunks/{2DYScJ-M.js → DRMpwqfm.js} +3 -3
- package/app/_app/immutable/chunks/{DfWpKary.js → DTxtQS7E.js} +1 -1
- package/app/_app/immutable/chunks/{C7iQqUzM.js → DWvXCQ0u.js} +1 -1
- package/app/_app/immutable/chunks/{DUH1hg19.js → DWyzkubm.js} +1 -1
- package/app/_app/immutable/chunks/{CmdBB92u.js → D_YvuBGK.js} +1 -1
- package/app/_app/immutable/chunks/{Pqefy5zs.js → DaAfmwdu.js} +1 -1
- package/app/_app/immutable/chunks/{D0R7V3S5.js → DkzHae6H.js} +1 -1
- package/app/_app/immutable/chunks/DuPnchEK.js +1 -0
- package/app/_app/immutable/chunks/{Df8Iyt2J.js → V9_dolQc.js} +2 -2
- package/app/_app/immutable/chunks/{DBQFBj3m.js → WqCtkIDw.js} +34 -33
- package/app/_app/immutable/chunks/{Cntd-MEA.js → eg3CcFX4.js} +1 -1
- package/app/_app/immutable/chunks/{DbRKo0u3.js → xfMF02Bd.js} +1 -1
- package/app/_app/immutable/entry/{app.DcWZnRLx.js → app.CRID6qGe.js} +2 -2
- package/app/_app/immutable/entry/start.D3xDbVwh.js +1 -0
- package/app/_app/immutable/nodes/{0.BpTytY1E.js → 0.CTb-IJnp.js} +1 -1
- package/app/_app/immutable/nodes/{1.C_v7Gd68.js → 1.IGsdFaQ3.js} +1 -1
- package/app/_app/immutable/nodes/{10.DFd5N3JC.js → 10.BSYIRsjI.js} +1 -1
- package/app/_app/immutable/nodes/{11.AfBMR-SR.js → 11.ICIeF_XJ.js} +1 -1
- package/app/_app/immutable/nodes/{12.DoxWkNoP.js → 12.Cpz1ILGz.js} +1 -1
- package/app/_app/immutable/nodes/{13.DWhviiuj.js → 13.CmF1xD2w.js} +1 -1
- package/app/_app/immutable/nodes/{14.BeoGJEJh.js → 14.B_5uO3Th.js} +1 -1
- package/app/_app/immutable/nodes/{2.DOHr0jbs.js → 2.DiuRJCFB.js} +3 -3
- package/app/_app/immutable/nodes/{3.CnNzt4sl.js → 3.dmVDRXL7.js} +1 -1
- package/app/_app/immutable/nodes/{4.Vp1qbY5O.js → 4.BJwXJq-1.js} +1 -1
- package/app/_app/immutable/nodes/{5.XTb8vZx3.js → 5.BqnCDngZ.js} +1 -1
- package/app/_app/immutable/nodes/{6.Bt9hYKnX.js → 6.CGHLnxOz.js} +1 -1
- package/app/_app/immutable/nodes/{7.Dx6BmCm7.js → 7.DOVOYfzy.js} +1 -1
- package/app/_app/immutable/nodes/{8.BnKzaARQ.js → 8.CLqFK1ER.js} +1 -1
- package/app/_app/immutable/nodes/{9.CobjWSZY.js → 9.DyNA9S0N.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +21 -21
- package/app/ai/index.html +24 -24
- package/app/blueprint/index.html +19 -19
- package/app/cookbook/index.html +19 -19
- package/app/index.html +27 -27
- package/app/m/ads/AdDeliveryTier/index.html +23 -23
- package/app/m/ads/AdEvent/index.html +23 -23
- package/app/m/ads/AdFormat/index.html +23 -23
- package/app/m/ads/AdGroup/index.html +23 -23
- package/app/m/ads/AdVariation/index.html +23 -23
- package/app/m/analytics/AnalyticsDataStream/index.html +23 -23
- package/app/m/analytics/AnalyticsEvent/index.html +23 -23
- package/app/m/analytics/AnalyticsProperty/index.html +23 -23
- package/app/m/analytics/AnalyticsReport/index.html +23 -23
- package/app/m/approvals/ApprovalEvent/index.html +23 -23
- package/app/m/approvals/ApprovalPolicy/index.html +23 -23
- package/app/m/approvals/ApprovalRequest/index.html +23 -23
- package/app/m/assets/Asset/attachments/index.html +24 -24
- package/app/m/assets/Asset/index.html +23 -23
- package/app/m/assets/AssetAssociation/index.html +23 -23
- package/app/m/assets/AssetMetafield/index.html +23 -23
- package/app/m/assets/AssetStatus/index.html +23 -23
- package/app/m/assets/AssetType/index.html +23 -23
- package/app/m/assets/Folder/index.html +23 -23
- package/app/m/chat/AgentSession/index.html +23 -23
- package/app/m/chat/ChatMessage/index.html +23 -23
- package/app/m/chat/ChatParticipant/index.html +23 -23
- package/app/m/chat/ChatReaction/index.html +23 -23
- package/app/m/chat/ChatRoom/index.html +23 -23
- package/app/m/chat/ChatThread/index.html +23 -23
- package/app/m/chat/VoiceGatewayTurn/index.html +23 -23
- package/app/m/chat/VoiceSession/index.html +23 -23
- package/app/m/commerce/Agreement/index.html +23 -23
- package/app/m/commerce/Cart/index.html +23 -23
- package/app/m/commerce/Contract/index.html +23 -23
- package/app/m/commerce/ContractLineItem/index.html +23 -23
- package/app/m/commerce/Customer/index.html +23 -23
- package/app/m/commerce/DocumentTax/index.html +23 -23
- package/app/m/commerce/Estimate/index.html +23 -23
- package/app/m/commerce/Fulfillment/index.html +23 -23
- package/app/m/commerce/FulfillmentLineItem/index.html +23 -23
- package/app/m/commerce/HistoricalCustomerFunds/index.html +23 -23
- package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +23 -23
- package/app/m/commerce/HistoricalSalesLine/index.html +23 -23
- package/app/m/commerce/Invoice/index.html +23 -23
- package/app/m/commerce/InvoiceLineItem/index.html +23 -23
- package/app/m/commerce/Lease/index.html +23 -23
- package/app/m/commerce/LicenseSale/index.html +23 -23
- package/app/m/commerce/Order/index.html +23 -23
- package/app/m/commerce/Payment/index.html +23 -23
- package/app/m/commerce/PaymentAllocation/index.html +23 -23
- package/app/m/commerce/PaymentInstrument/index.html +23 -23
- package/app/m/commerce/PaymentIntent/index.html +23 -23
- package/app/m/commerce/Payout/index.html +23 -23
- package/app/m/commerce/ProductionOrder/index.html +23 -23
- package/app/m/commerce/PurchaseContract/index.html +23 -23
- package/app/m/commerce/PurchaseOrder/index.html +23 -23
- package/app/m/commerce/SalesContract/index.html +23 -23
- package/app/m/commerce/SupplierQuote/index.html +23 -23
- package/app/m/commerce/TaxCode/index.html +23 -23
- package/app/m/commerce/TaxComponent/index.html +23 -23
- package/app/m/commerce/TaxSettings/index.html +23 -23
- package/app/m/commerce/TaxSummaryReport/index.html +23 -23
- package/app/m/commerce/TenantPaymentAccount/index.html +23 -23
- package/app/m/commerce/Vendor/index.html +23 -23
- package/app/m/commerce/WholesaleOrder/index.html +23 -23
- package/app/m/content/Content/articles/index.html +24 -24
- package/app/m/content/Content/index.html +23 -23
- package/app/m/content/ContentContribution/index.html +23 -23
- package/app/m/content/ContentContributionAttachment/index.html +23 -23
- package/app/m/content/ContentContributionRevision/index.html +23 -23
- package/app/m/content/ContentContributionType/index.html +23 -23
- package/app/m/content/ContentContributor/index.html +23 -23
- package/app/m/content/ContentCorrection/index.html +23 -23
- package/app/m/content/ContentFeedSource/index.html +23 -23
- package/app/m/content/ContentGovernanceAssignment/index.html +23 -23
- package/app/m/content/ContentGovernancePolicy/index.html +23 -23
- package/app/m/content/ContentGovernanceProfile/index.html +23 -23
- package/app/m/content/ContentReference/index.html +23 -23
- package/app/m/content/ContentReview/index.html +23 -23
- package/app/m/content/ContentVersion/index.html +23 -23
- package/app/m/events/Event/index.html +23 -23
- package/app/m/events/EventParticipant/index.html +23 -23
- package/app/m/events/EventSeries/index.html +23 -23
- package/app/m/events/EventType/index.html +23 -23
- package/app/m/expenses/Expense/index.html +23 -23
- package/app/m/facts/Fact/index.html +23 -23
- package/app/m/facts/FactContent/index.html +23 -23
- package/app/m/facts/FactEvidence/index.html +23 -23
- package/app/m/facts/FactSource/index.html +23 -23
- package/app/m/facts/FactSubject/index.html +23 -23
- package/app/m/facts/FactTag/index.html +23 -23
- package/app/m/fields/FieldPolicy/index.html +23 -23
- package/app/m/fields/FieldPolicySuggestion/index.html +23 -23
- package/app/m/fields/FieldUsageCounter/index.html +23 -23
- package/app/m/human-resources/Employment/index.html +23 -23
- package/app/m/human-resources/EmploymentTerm/index.html +23 -23
- package/app/m/human-resources/HeldQualification/index.html +23 -23
- package/app/m/human-resources/Qualification/index.html +23 -23
- package/app/m/images/Image/index.html +23 -23
- package/app/m/inventory/InventoryLocation/index.html +23 -23
- package/app/m/inventory/Lot/index.html +23 -23
- package/app/m/inventory/LotCorrection/index.html +23 -23
- package/app/m/inventory/LotDocument/index.html +23 -23
- package/app/m/inventory/LotStockLevel/index.html +23 -23
- package/app/m/inventory/LotUsage/index.html +23 -23
- package/app/m/inventory/StockLevel/index.html +23 -23
- package/app/m/inventory/StockMovement/index.html +23 -23
- package/app/m/ledgers/Account/index.html +23 -23
- package/app/m/ledgers/Journal/index.html +23 -23
- package/app/m/ledgers/JournalEntry/index.html +23 -23
- package/app/m/ledgers/Ledger/index.html +23 -23
- package/app/m/manufacturing/Assembly/index.html +23 -23
- package/app/m/manufacturing/BillOfMaterials/index.html +23 -23
- package/app/m/manufacturing/BomLine/index.html +23 -23
- package/app/m/manufacturing/Operation/index.html +23 -23
- package/app/m/manufacturing/ProductionRun/index.html +23 -23
- package/app/m/manufacturing/ProductionRunCompletion/index.html +23 -23
- package/app/m/manufacturing/RoutingStep/index.html +23 -23
- package/app/m/marketing/Campaign/index.html +23 -23
- package/app/m/marketing/CampaignChannel/index.html +23 -23
- package/app/m/marketing/CampaignMetricSnapshot/index.html +23 -23
- package/app/m/messages/Account/index.html +23 -23
- package/app/m/messages/Attachment/index.html +23 -23
- package/app/m/messages/Blacklist/index.html +23 -23
- package/app/m/messages/Email/failed-sends/index.html +24 -24
- package/app/m/messages/Email/index.html +23 -23
- package/app/m/messages/Email/mailbox/index.html +24 -24
- package/app/m/messages/EmailAccount/index.html +23 -23
- package/app/m/messages/EmailAttachment/index.html +23 -23
- package/app/m/messages/EmailFolder/index.html +23 -23
- package/app/m/messages/Message/index.html +23 -23
- package/app/m/messages/MessagingEndpoint/index.html +23 -23
- package/app/m/messages/PersonaMessageRoute/index.html +23 -23
- package/app/m/messages/SlackAccount/index.html +23 -23
- package/app/m/messages/SlackMessage/index.html +23 -23
- package/app/m/messages/SlackMessage/slack-messages/index.html +24 -24
- package/app/m/messages/TelegramAccount/index.html +23 -23
- package/app/m/messages/Tweet/index.html +23 -23
- package/app/m/messages/TwitterAccount/index.html +23 -23
- package/app/m/messages/Whitelist/index.html +23 -23
- package/app/m/messages/ZulipAccount/index.html +23 -23
- package/app/m/places/Place/index.html +23 -23
- package/app/m/places/PlaceType/index.html +23 -23
- package/app/m/products/Category/index.html +23 -23
- package/app/m/products/Material/index.html +23 -23
- package/app/m/products/Product/index.html +23 -23
- package/app/m/products/Product/ingredients/index.html +24 -24
- package/app/m/products/ProductVariant/index.html +23 -23
- package/app/m/products/Sku/index.html +23 -23
- package/app/m/profiles/ApiKey/index.html +23 -23
- package/app/m/profiles/Bot/index.html +23 -23
- package/app/m/profiles/MagicLinkToken/index.html +23 -23
- package/app/m/profiles/NostrIdentity/index.html +23 -23
- package/app/m/profiles/OidcIdentity/index.html +23 -23
- package/app/m/profiles/Organization/index.html +23 -23
- package/app/m/profiles/Person/index.html +23 -23
- package/app/m/profiles/Profile/index.html +23 -23
- package/app/m/profiles/ProfileMetadata/index.html +23 -23
- package/app/m/profiles/ProfileMetafield/index.html +23 -23
- package/app/m/profiles/ProfileRelationship/index.html +23 -23
- package/app/m/profiles/ProfileRelationshipTerm/index.html +23 -23
- package/app/m/profiles/ProfileRelationshipType/index.html +23 -23
- package/app/m/profiles/ProfileType/index.html +23 -23
- package/app/m/projects/Comment/index.html +23 -23
- package/app/m/projects/Issue/index.html +23 -23
- package/app/m/projects/Label/index.html +23 -23
- package/app/m/projects/Project/index.html +23 -23
- package/app/m/projects/ProjectIntegration/index.html +23 -23
- package/app/m/projects/PullRequest/index.html +23 -23
- package/app/m/projects/Repository/index.html +23 -23
- package/app/m/properties/Property/index.html +23 -23
- package/app/m/properties/Zone/index.html +23 -23
- package/app/m/reports/RuntimeReport/index.html +23 -23
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +23 -23
- package/app/m/reports/SmrtReportLock/index.html +23 -23
- package/app/m/reports/SmrtReportRefreshTask/index.html +23 -23
- package/app/m/reports/SmrtReportRun/index.html +23 -23
- package/app/m/reports/SmrtReportSchedule/index.html +23 -23
- package/app/m/reports/SmrtReportWatermark/index.html +23 -23
- package/app/m/sales/Agreement/index.html +23 -23
- package/app/m/sales/AttributionException/index.html +23 -23
- package/app/m/sales/AttributionPolicy/index.html +23 -23
- package/app/m/sales/Commission/index.html +23 -23
- package/app/m/sales/CommissionAdjustment/index.html +23 -23
- package/app/m/sales/CommissionPayout/index.html +23 -23
- package/app/m/sales/CommissionPlan/index.html +23 -23
- package/app/m/sales/Earner/index.html +23 -23
- package/app/m/sales/EarnerSourceAttribution/index.html +23 -23
- package/app/m/sales/EarningEvent/index.html +23 -23
- package/app/m/sales/ExecutedAgreement/index.html +23 -23
- package/app/m/sales/Lead/index.html +23 -23
- package/app/m/sales/Opportunity/index.html +23 -23
- package/app/m/sales/OpportunityConversion/index.html +23 -23
- package/app/m/sales/PipelineDefinition/index.html +23 -23
- package/app/m/sales/PipelineStage/index.html +23 -23
- package/app/m/sales/Referral/index.html +23 -23
- package/app/m/sales/ReferralAgreement/index.html +23 -23
- package/app/m/sales/ReferralLink/index.html +23 -23
- package/app/m/sales/ReferralProgram/index.html +23 -23
- package/app/m/sales/ReferralTermSnapshot/index.html +23 -23
- package/app/m/sales/ReferralTouch/index.html +23 -23
- package/app/m/sales/Referrer/index.html +23 -23
- package/app/m/sales/SalesActivity/index.html +23 -23
- package/app/m/sales/SalesRepresentative/index.html +23 -23
- package/app/m/sites/Site/index.html +23 -23
- package/app/m/sites/SiteAgentBinding/index.html +23 -23
- package/app/m/social/OAuthState/index.html +23 -23
- package/app/m/social/SocialAccount/index.html +23 -23
- package/app/m/social/SocialPost/index.html +23 -23
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +23 -23
- package/app/m/subscriptions/BillingAdjustment/index.html +23 -23
- package/app/m/subscriptions/ClientCharge/index.html +23 -23
- package/app/m/subscriptions/CreditGrant/index.html +23 -23
- package/app/m/subscriptions/PricingRule/index.html +23 -23
- package/app/m/subscriptions/RetailCharge/index.html +23 -23
- package/app/m/subscriptions/SpendingPolicy/index.html +23 -23
- package/app/m/subscriptions/SubscriptionPlan/index.html +23 -23
- package/app/m/subscriptions/SubscriptionPlanVersion/index.html +23 -23
- package/app/m/subscriptions/TenantSubscription/index.html +23 -23
- package/app/m/subscriptions/TenantUsageMetric/index.html +23 -23
- package/app/m/support/ServiceTimeEntry/index.html +23 -23
- package/app/m/support/SupportAiRun/index.html +23 -23
- package/app/m/support/SupportAvailability/index.html +23 -23
- package/app/m/support/SupportCase/index.html +23 -23
- package/app/m/support/SupportCaseEvent/index.html +23 -23
- package/app/m/support/SupportChannelBinding/index.html +23 -23
- package/app/m/support/SupportCharge/index.html +23 -23
- package/app/m/support/SupportCompensation/index.html +23 -23
- package/app/m/support/SupportCompensationPlan/index.html +23 -23
- package/app/m/support/SupportEscalation/index.html +23 -23
- package/app/m/support/SupportInteraction/index.html +23 -23
- package/app/m/support/SupportPlan/index.html +23 -23
- package/app/m/support/SupportPolicy/index.html +23 -23
- package/app/m/support/SupportQualification/index.html +23 -23
- package/app/m/support/SupportServiceTarget/index.html +23 -23
- package/app/m/support/SupportSpecialist/index.html +23 -23
- package/app/m/support/SupportWorkLink/index.html +23 -23
- package/app/m/tags/Tag/index.html +23 -23
- package/app/m/tags/TagAlias/index.html +23 -23
- package/app/m/timesheets/AttendanceBreak/index.html +23 -23
- package/app/m/timesheets/AttendancePunch/index.html +23 -23
- package/app/m/timesheets/AttendanceSegment/index.html +23 -23
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +23 -23
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +23 -23
- package/app/m/timesheets/ServiceTimeEntry/index.html +23 -23
- package/app/m/users/Group/index.html +23 -23
- package/app/m/users/GroupMember/index.html +23 -23
- package/app/m/users/GroupRole/index.html +23 -23
- package/app/m/users/Membership/index.html +23 -23
- package/app/m/users/MembershipOverride/index.html +23 -23
- package/app/m/users/Permission/index.html +23 -23
- package/app/m/users/Role/index.html +23 -23
- package/app/m/users/RolePermission/index.html +23 -23
- package/app/m/users/Session/index.html +23 -23
- package/app/m/users/Tenant/index.html +23 -23
- package/app/m/users/TenantIntegration/index.html +23 -23
- package/app/m/users/TenantPermissionOverride/index.html +23 -23
- package/app/m/users/User/index.html +23 -23
- package/app/m/video/Character/index.html +23 -23
- package/app/m/video/CharacterAsset/index.html +23 -23
- package/app/m/video/CompositeJob/index.html +23 -23
- package/app/m/video/Performer/index.html +23 -23
- package/app/m/video/PerformerAsset/index.html +23 -23
- package/app/m/video/Scene/index.html +23 -23
- package/app/m/video/SceneAsset/index.html +23 -23
- package/app/m/video/VideoComposition/index.html +23 -23
- package/app/m/video/VideoCompositionAsset/index.html +23 -23
- package/app/m/video/VideoSequence/index.html +23 -23
- package/app/m/video/VideoSequenceAsset/index.html +23 -23
- package/app/m/video/VideoShot/index.html +23 -23
- package/app/m/video/VideoShotAsset/index.html +23 -23
- package/app/m/video/VideoShotCharacter/index.html +23 -23
- package/app/m/video/VideoWorkflow/index.html +23 -23
- package/app/m/voice/VoiceOutput/index.html +23 -23
- package/app/m/voice/VoiceProfile/index.html +23 -23
- package/app/m/voice/VoiceSample/index.html +23 -23
- package/app/mcp.html +2 -2
- package/app/packages/ads/index.html +21 -21
- package/app/packages/analytics/index.html +21 -21
- package/app/packages/approvals/index.html +21 -21
- package/app/packages/assets/index.html +21 -21
- package/app/packages/chat/index.html +21 -21
- package/app/packages/comments/index.html +21 -21
- package/app/packages/commerce/index.html +21 -21
- package/app/packages/content/index.html +21 -21
- package/app/packages/events/index.html +21 -21
- package/app/packages/expenses/index.html +21 -21
- package/app/packages/facts/index.html +21 -21
- package/app/packages/fields/index.html +21 -21
- package/app/packages/human-resources/index.html +21 -21
- package/app/packages/images/index.html +21 -21
- package/app/packages/index.html +20 -20
- package/app/packages/ingestion/index.html +21 -21
- package/app/packages/inventory/index.html +21 -21
- package/app/packages/ledgers/index.html +21 -21
- package/app/packages/manufacturing/index.html +21 -21
- package/app/packages/marketing/index.html +21 -21
- package/app/packages/messages/index.html +21 -21
- package/app/packages/places/index.html +21 -21
- package/app/packages/preferences/index.html +21 -21
- package/app/packages/products/index.html +21 -21
- package/app/packages/profiles/index.html +21 -21
- package/app/packages/projects/index.html +21 -21
- package/app/packages/properties/index.html +21 -21
- package/app/packages/reactions/index.html +21 -21
- package/app/packages/reports/index.html +21 -21
- package/app/packages/sales/index.html +21 -21
- package/app/packages/sites/index.html +21 -21
- package/app/packages/social/index.html +21 -21
- package/app/packages/subscriptions/index.html +21 -21
- package/app/packages/support/index.html +21 -21
- package/app/packages/tags/index.html +21 -21
- package/app/packages/timesheets/index.html +21 -21
- package/app/packages/users/index.html +21 -21
- package/app/packages/video/index.html +21 -21
- package/app/packages/voice/index.html +21 -21
- package/app/packages/webhooks/index.html +21 -21
- package/app/recipes/account-access/help/index.html +21 -21
- package/app/recipes/account-access/index.html +23 -23
- package/app/recipes/activity/help/index.html +21 -21
- package/app/recipes/activity/index.html +23 -23
- package/app/recipes/ads.campaigns/help/index.html +21 -21
- package/app/recipes/ads.campaigns/index.html +23 -23
- package/app/recipes/affiliates.referrals/help/index.html +21 -21
- package/app/recipes/affiliates.referrals/index.html +23 -23
- package/app/recipes/agreements/help/index.html +21 -21
- package/app/recipes/agreements/index.html +23 -23
- package/app/recipes/analytics.reports/help/index.html +21 -21
- package/app/recipes/analytics.reports/index.html +23 -23
- package/app/recipes/approvals.requests/help/index.html +21 -21
- package/app/recipes/approvals.requests/index.html +23 -23
- package/app/recipes/assets/help/index.html +21 -21
- package/app/recipes/assets/index.html +23 -23
- package/app/recipes/billing/help/index.html +21 -21
- package/app/recipes/billing/index.html +23 -23
- package/app/recipes/chat.assistant/help/index.html +21 -21
- package/app/recipes/chat.assistant/index.html +23 -23
- package/app/recipes/comments/help/index.html +21 -21
- package/app/recipes/comments/index.html +23 -23
- package/app/recipes/commerce.customers/help/index.html +21 -21
- package/app/recipes/commerce.customers/index.html +23 -23
- package/app/recipes/commerce.estimates/help/index.html +22 -22
- package/app/recipes/commerce.estimates/index.html +23 -23
- package/app/recipes/commerce.purchases/help/index.html +21 -21
- package/app/recipes/commerce.purchases/index.html +23 -23
- package/app/recipes/commerce.sales/help/index.html +22 -22
- package/app/recipes/commerce.sales/index.html +23 -23
- package/app/recipes/commerce.vendors/help/index.html +21 -21
- package/app/recipes/commerce.vendors/index.html +23 -23
- package/app/recipes/commerce.wholesale/help/index.html +21 -21
- package/app/recipes/commerce.wholesale/index.html +23 -23
- package/app/recipes/content.articles/help/index.html +21 -21
- package/app/recipes/content.articles/index.html +23 -23
- package/app/recipes/events.calendar/help/index.html +21 -21
- package/app/recipes/events.calendar/index.html +23 -23
- package/app/recipes/expenses.tracking/help/index.html +21 -21
- package/app/recipes/expenses.tracking/index.html +23 -23
- package/app/recipes/fields.form-customization/help/index.html +21 -21
- package/app/recipes/fields.form-customization/index.html +23 -23
- package/app/recipes/human-resources.people/help/index.html +21 -21
- package/app/recipes/human-resources.people/index.html +23 -23
- package/app/recipes/human-resources.qualifications/help/index.html +21 -21
- package/app/recipes/human-resources.qualifications/index.html +23 -23
- package/app/recipes/ingestion/help/index.html +21 -21
- package/app/recipes/ingestion/index.html +23 -23
- package/app/recipes/integrations/help/index.html +21 -21
- package/app/recipes/integrations/index.html +23 -23
- package/app/recipes/inventory.stock/help/index.html +21 -21
- package/app/recipes/inventory.stock/index.html +23 -23
- package/app/recipes/ledgers.bookkeeping/help/index.html +21 -21
- package/app/recipes/ledgers.bookkeeping/index.html +23 -23
- package/app/recipes/manufacturing.assemblies/help/index.html +21 -21
- package/app/recipes/manufacturing.assemblies/index.html +23 -23
- package/app/recipes/manufacturing.production/help/index.html +21 -21
- package/app/recipes/manufacturing.production/index.html +23 -23
- package/app/recipes/marketing.campaigns/help/index.html +21 -21
- package/app/recipes/marketing.campaigns/index.html +23 -23
- package/app/recipes/messages/help/index.html +21 -21
- package/app/recipes/messages/index.html +23 -23
- package/app/recipes/places.locations/help/index.html +21 -21
- package/app/recipes/places.locations/index.html +23 -23
- package/app/recipes/products/help/index.html +21 -21
- package/app/recipes/products/index.html +23 -23
- package/app/recipes/projects.tracker/help/index.html +21 -21
- package/app/recipes/projects.tracker/index.html +23 -23
- package/app/recipes/reports.materialized/help/index.html +21 -21
- package/app/recipes/reports.materialized/index.html +23 -23
- package/app/recipes/reports.runtime/help/index.html +21 -21
- package/app/recipes/reports.runtime/index.html +23 -23
- package/app/recipes/sales.pipeline/help/index.html +21 -21
- package/app/recipes/sales.pipeline/index.html +23 -23
- package/app/recipes/social.posts/help/index.html +21 -21
- package/app/recipes/social.posts/index.html +23 -23
- package/app/recipes/subscriptions.plans/help/index.html +21 -21
- package/app/recipes/subscriptions.plans/index.html +23 -23
- package/app/recipes/support.tickets/help/index.html +21 -21
- package/app/recipes/support.tickets/index.html +23 -23
- package/app/recipes/tags.taxonomy/help/index.html +21 -21
- package/app/recipes/tags.taxonomy/index.html +23 -23
- package/app/recipes/team-collaboration/help/index.html +21 -21
- package/app/recipes/team-collaboration/index.html +23 -23
- package/app/recipes/timesheets.time-entries/help/index.html +21 -21
- package/app/recipes/timesheets.time-entries/index.html +23 -23
- package/app/recipes/video.library/help/index.html +21 -21
- package/app/recipes/video.library/index.html +23 -23
- package/app/recipes/voice.profiles/help/index.html +21 -21
- package/app/recipes/voice.profiles/index.html +23 -23
- package/app/s/custom-accounts/index.html +19 -19
- package/app/s/custom-appointments/index.html +19 -19
- package/app/s/custom-billing/index.html +19 -19
- package/app/s/custom-bookings/index.html +19 -19
- package/app/s/custom-buying/index.html +19 -19
- package/app/s/custom-checkout/index.html +19 -19
- package/app/s/custom-classes/index.html +19 -19
- package/app/s/custom-clients/index.html +19 -19
- package/app/s/custom-events/index.html +19 -19
- package/app/s/custom-fleet/index.html +19 -19
- package/app/s/custom-gigs/index.html +19 -19
- package/app/s/custom-giving/index.html +19 -19
- package/app/s/custom-instruments/index.html +19 -19
- package/app/s/custom-jobs/index.html +19 -19
- package/app/s/custom-kitchen/index.html +19 -19
- package/app/s/custom-lessons/index.html +19 -19
- package/app/s/custom-material/index.html +19 -19
- package/app/s/custom-meetings/index.html +19 -19
- package/app/s/custom-members/index.html +19 -19
- package/app/s/custom-merch/index.html +19 -19
- package/app/s/custom-money/index.html +19 -19
- package/app/s/custom-paint/index.html +19 -19
- package/app/s/custom-parts/index.html +19 -19
- package/app/s/custom-rentals/index.html +19 -19
- package/app/s/custom-roastery/index.html +19 -19
- package/app/s/custom-schedule/index.html +19 -19
- package/app/s/custom-shelf/index.html +19 -19
- package/app/s/custom-shop/index.html +19 -19
- package/app/s/custom-students/index.html +19 -19
- package/app/s/custom-wholesale/index.html +19 -19
- package/app/s/custom-work/index.html +19 -19
- package/app/s/custom-yard/index.html +19 -19
- package/app/s/section-access-control/index.html +19 -19
- package/app/s/section-account-security/index.html +19 -19
- package/app/s/section-accounting/index.html +19 -19
- package/app/s/section-activity/index.html +19 -19
- package/app/s/section-agreements/index.html +19 -19
- package/app/s/section-analytics/index.html +19 -19
- package/app/s/section-approvals/index.html +19 -19
- package/app/s/section-assets/index.html +19 -19
- package/app/s/section-billing/index.html +19 -19
- package/app/s/section-calendar/index.html +19 -19
- package/app/s/section-catalog/index.html +19 -19
- package/app/s/section-chat.assistant/index.html +19 -19
- package/app/s/section-comments/index.html +19 -19
- package/app/s/section-fields.form-customization/index.html +19 -19
- package/app/s/section-grow/index.html +19 -19
- package/app/s/section-ingestion/index.html +19 -19
- package/app/s/section-integrations/index.html +19 -19
- package/app/s/section-make/index.html +19 -19
- package/app/s/section-messages/index.html +19 -19
- package/app/s/section-more/index.html +19 -19
- package/app/s/section-operations/index.html +19 -19
- package/app/s/section-places/index.html +19 -19
- package/app/s/section-projects/index.html +19 -19
- package/app/s/section-publish/index.html +19 -19
- package/app/s/section-purchasing/index.html +19 -19
- package/app/s/section-reports.materialized/index.html +19 -19
- package/app/s/section-reports.runtime/index.html +19 -19
- package/app/s/section-sales/index.html +19 -19
- package/app/s/section-staff/index.html +19 -19
- package/app/s/section-support/index.html +19 -19
- package/app/s/section-taxonomy/index.html +19 -19
- package/app/s/section-team/index.html +19 -19
- package/app/s/section-work/index.html +19 -19
- package/dist/catalog/catalog.json +113 -40
- package/dist/core/index.js +111 -42
- package/dist/smrt-version.d.ts +1 -1
- package/dist/smrt-version.js +1 -1
- package/package.json +55 -55
- package/app/_app/immutable/chunks/BNBoQMrp.js +0 -1
- package/app/_app/immutable/chunks/Bpj0RwC_.js +0 -1
- package/app/_app/immutable/entry/start.C9TX8u31.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BGpjZKOE.js","./BaNbYf_w.js","./eBF8D7GD.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,J as d,K as f,L as p,Lt as m,Mt as h,Ot as g,P as _,Pt as v,R as y,Rt as b,T as x,U as S,W as C,X as w,Y as T,Z as E,_ as D,_t as O,a as k,bt as A,ct as j,d as ee,dt as M,f as N,ft as P,gt as F,ht as I,k as te,kt as L,lt as R,mt as z,n as ne,nt as re,ot as ie,pt as B,q as ae,rt as oe,st as V,tt as se,v as H,vt as U,xt as ce,yt as le,z as W}from"./DG3qFFTE.js";import{t as G}from"./BaNbYf_w.js";import"./xihTtKlq.js";import{r as ue}from"./BLUInGBV.js";import{a as K,t as q}from"./Bq8E3AWP.js";import{B as de,Pt as fe,R as J,W as pe}from"./DBQFBj3m.js";import{n as Y}from"./DK8Blf1Y.js";import{C as me,S as X,b as he,x as ge}from"./2DYScJ-M.js";import{n as _e,r as ve}from"./v8gneLl4.js";import{i as ye}from"./BNfp6Cvk.js";import{_ as be,b as xe,c as Se,d as Ce,g as we,h as Te,i as Ee,m as De,n as Oe,p as ke,s as Ae}from"./CGVkRTMI.js";import{n as je}from"./BAGf8MlQ.js";import{n as Me,r as Ne}from"./CsPuvW_W.js";import{c as Pe,t as Fe}from"./eBF8D7GD.js";import{_ as Ie,a as Le,g as Re,h as ze,l as Be,n as Ve,p as He,u as Ue}from"./Df8Iyt2J.js";import{Q as Z,b as We,t as Ge}from"./M7rkX15k.js";import{C as Ke,_ as qe,h as Je,i as Ye,m as Xe,o as Ze,r as Qe,t as $e,u as et}from"./DUH1hg19.js";import{n as tt,t as nt}from"./DjNvHrGS.js";function rt(e,t){let n=t.trim();if(!n)return;let r=e.value,i=typeof document<`u`&&document.activeElement===e,a=e.selectionStart??r.length,o=e.selectionEnd??r.length;!i&&a===0&&o===0&&r.length>0&&(a=r.length,o=r.length);let s=r.slice(0,a),c=r.slice(o),l=`${s.length>0&&!/\s$/.test(s)?` `:``}${n}${/^[\p{L}\p{N}]/u.test(c)?` `:``}`;e.value=`${s}${l}${c}`;let u=s.length+l.length;try{e.setSelectionRange(u,u)}catch{}e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function it(e){let t=e,n=null,r=null,i=0,a=0,o=null,s=!1,c=!1,l=null;function u(){n&&clearTimeout(n),n=null}function d(){u(),r=null,o=null,s=!1}function f(){n&&(d(),t.onCancel?.())}function p(e){let n=!t.filter||t.filter(e);return n?n===!0?e.target instanceof Element?e.target:null:n:null}function m(){c=!0,l&&clearTimeout(l),l=setTimeout(()=>{c=!1,l=null},400)}return{handlePointerDown(e){if(t.disabled||!e.isPrimary||e.pointerType===`mouse`&&e.button!==0)return;let c=p(e);if(!c)return;d(),r=e.pointerId,i=e.clientX,a=e.clientY,o={target:c,pointerType:e.pointerType||`mouse`,clientX:e.clientX,clientY:e.clientY},t.onPressStart?.(o);let l=o;n=setTimeout(()=>{n=null,s=!0,t.onLongPress(l)},t.delay??500)},handlePointerMove(e){if(!n||e.pointerId!==r)return;let o=t.moveTolerance??10;Math.hypot(e.clientX-i,e.clientY-a)>o&&f()},handlePointerUp(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;m(),d(),t.onRelease?.(e)}else d()}},handlePointerCancel(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;d(),t.onRelease?.(e)}else d()}},handleDragStart(){f()},handleContextMenu(e){t.preventContextMenu&&(n||s)&&e.preventDefault()},handleClick(e){c&&(c=!1,l&&clearTimeout(l),l=null,e.preventDefault(),e.stopPropagation())},cancel(){d()},update(e){t=e,e.disabled&&d()},get pending(){return n!==null},get fired(){return s}}}function at(e,t){let n=it(t),r=e=>n.handlePointerDown(e),i=e=>n.handlePointerMove(e),a=e=>n.handlePointerUp(e),o=e=>n.handlePointerCancel(e),s=()=>n.handleDragStart(),c=e=>n.handleContextMenu(e),l=e=>n.handleClick(e);return e.addEventListener(`pointerdown`,r),e.addEventListener(`dragstart`,s),e.addEventListener(`contextmenu`,c),e.addEventListener(`click`,l,!0),window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,o),{update(e){n.update(e)},destroy(){n.cancel(),e.removeEventListener(`pointerdown`,r),e.removeEventListener(`dragstart`,s),e.removeEventListener(`contextmenu`,c),e.removeEventListener(`click`,l,!0),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,o)}}}var ot=new WeakMap;async function st(e,t={}){let n=Math.max(0,t.quietMs??120),r=Math.max(0,t.timeoutMs??5e3),i=Date.now(),a=()=>Math.max(0,r-(Date.now()-i)),o=e=>new Promise(t=>setTimeout(t,e));for(;;){let n=ot.get(e);if(!n||n.size===0||t.signal?.aborted)break;let r=a();if(r===0)return;await Promise.race([Promise.all([...n]),o(r)])}t.signal?.aborted||a()===0||await new Promise(r=>{let i=null,o=[],s=()=>{i&&clearTimeout(i),clearTimeout(l);for(let e of o)e();t.signal?.removeEventListener(`abort`,s),r()},c=()=>{i&&clearTimeout(i),i=setTimeout(s,n)},l=setTimeout(s,a());t.signal?.addEventListener(`abort`,s,{once:!0}),o.push(e.subscribe(e=>{(e.type===`registered`||e.type===`unregistered`)&&c()}));for(let e of t.alsoWatch??[]){let t=e?.subscribe?.(()=>c());t&&o.push(t)}c()})}async function ct(e={}){let t=e.window??(typeof window<`u`?window:void 0),n=e.navigator??(typeof navigator<`u`?navigator:void 0);return!t||!(`SpeechRecognition`in t)&&!(`webkitSpeechRecognition`in t)?`missing`:n&&`brave`in n&&n.brave||/\bElectron\//.test(n?.userAgent??``)?`unreliable`:`works`}function lt(e){return new Worker(new URL(`../workers/local-speech.worker-BzGX7Qdn.js`,import.meta.url).href,{name:e?.name})}var ut=2**28,dt=16,ft=.95;function pt(e){if(e===0)return 1;let t=Math.PI*e;return Math.sin(t)/t}function mt(e,t,n){for(let[e,r]of[[`fromRate`,t],[`toRate`,n]])if(!Number.isFinite(r)||r<=0)throw new Pe(`invalid_argument`,`${e} must be a positive finite number (got ${String(r)})`);let r=Math.floor(e.length*n/t);if(r>ut)throw new Pe(`invalid_argument`,`resampled output would be ${r} samples; the limit is ${ut}`);if(t===n)return e.slice();let i=new Float32Array(r),a=t/n,o=a>1?ft/a:1,s=dt/o,c=e.length-1;for(let t=0;t<r;t+=1){let n=t*a,r=Math.max(0,Math.ceil(n-s)),l=Math.min(c,Math.floor(n+s)),u=0,d=0;for(let t=r;t<=l;t+=1){let r=t-n,i=.5+.5*Math.cos(Math.PI*r/s),a=o*pt(o*r)*i;u+=a*e[t],d+=a}i[t]=d===0?0:u/d}return i}var ht={silenceMs:800,minSpeechMs:150,preRollMs:300,maxUtteranceMs:3e4,sensitivity:.5,calibrateMs:300},gt=.0015,_t=.003,vt=.006,yt=.2,bt=.02,xt=2e3,St=250;function Ct(e,t,n){return Math.min(n,Math.max(t,e))}function wt(e={}){let t=(e,t,n)=>typeof e==`number`&&Number.isFinite(e)?Math.max(n,e):t;return{silenceMs:t(e.silenceMs,ht.silenceMs,20),minSpeechMs:t(e.minSpeechMs,ht.minSpeechMs,0),preRollMs:t(e.preRollMs,ht.preRollMs,0),maxUtteranceMs:t(e.maxUtteranceMs,ht.maxUtteranceMs,1e3),sensitivity:Ct(typeof e.sensitivity==`number`&&Number.isFinite(e.sensitivity)?e.sensitivity:ht.sensitivity,0,1),calibrateMs:t(e.calibrateMs,ht.calibrateMs,0)}}function Tt(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++){let t=e[r];n+=t*t}return Math.sqrt(n/t)}function Et(e={}){let t=wt(e),n=6-4*t.sensitivity,r=.02-.015*t.sensitivity,i=_t,a=0,o=[],s=!1,c=0,l=0,u=0,d=()=>Math.max(i*n,r),f=()=>Math.max(d()*.6,i*1.5),p=()=>{s=!1,c=0,l=0,u=0};return{get speaking(){return s},get noiseFloor(){return i},get threshold(){return d()},push(e,n=20){let r=[],m=Number.isFinite(e)?Math.max(0,e):0,h=Ct(m/(d()*3),0,1),g=a<t.calibrateMs;if(g&&(a+=n,!s)){o.push(m);let e=[...o].sort((e,t)=>e-t);i=Ct(e[Math.min(e.length-1,Math.floor(e.length*yt))]??_t,gt,vt)}if(!s){if(m>d())c+=n,c>=t.minSpeechMs&&(s=!0,l=0,u=c,r.push({type:`start`,leadMs:t.preRollMs+c}),c=0);else if(g)c=0;else{c=0;let e=n/xt*(m<i?4:1);i=Ct(i+(m-i)*Math.min(1,e),gt,bt)}return{events:r,level:h,speaking:s}}return u+=n,m>f()?l=0:l+=n,l>=t.silenceMs?(r.push({type:`end`,reason:`silence`,trailingSilenceMs:l}),p()):u>=t.maxUtteranceMs&&(r.push({type:`split`}),u=0,l=0),{events:r,level:h,speaking:s}},flush(){let e=[];return s&&e.push({type:`end`,reason:`flush`,trailingSilenceMs:l}),p(),e}}}function Dt(e){let t=wt(e),n=Et(t),r=Math.max(1,Math.round(e.sampleRate*20/1e3)),i=r/e.sampleRate*1e3,a=Math.ceil((t.preRollMs+t.minSpeechMs)/i)+1,o=[],s=new Float32Array,c=null,l=!1,u=(t,n,r)=>{let a=Math.max(0,Math.floor((r-St)/i)),o=t.slice(0,Math.max(1,t.length-a)),s=0;for(let e of o)s+=e.length;let c=new Float32Array(s),l=0;for(let e of o)c.set(e,l),l+=e.length;e.onUtterance({pcm:c,sampleRate:e.sampleRate,durationMs:s/e.sampleRate*1e3,reason:n})},d=t=>{t!==l&&(l=t,e.onSpeaking?.(t))},f=s=>{let l=n.push(Tt(s),i);e.onLevel?.(l.level),o.push(s),o.length>a&&o.shift(),c&&c.push(s);for(let e of l.events)if(e.type===`start`){c=[...o];let e=Math.ceil(t.preRollMs/i),n=Math.max(0,o.length-Math.ceil(t.minSpeechMs/i));for(let t=n;t<e;t++)c.unshift(new Float32Array(r))}else if(e.type===`end`){let t=c??[];c=null,o.length=0,t.length>0&&u(t,e.reason,e.trailingSilenceMs)}else if(e.type===`split`){let e=c??[];c=[],e.length>0&&u(e,`max`,0)}d(n.speaking)};return{get speaking(){return n.speaking},segmenter:n,push(e){let t=e;s.length>0&&(t=new Float32Array(s.length+e.length),t.set(s,0),t.set(e,s.length));let n=0;for(;n+r<=t.length;)f(t.slice(n,n+r)),n+=r;s=t.slice(n)},flush(){let t=n.flush();for(let e of t)e.type===`end`&&c&&c.length>0&&u(c,`flush`,e.trailingSilenceMs);c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)},discard(){n.flush(),c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)}}}var Ot=44,kt=4294967295,At=1;function jt(e){let t=new Int16Array(e.length);for(let n=0;n<e.length;n+=1){let r=e[n];Number.isNaN(r)||(t[n]=Math.min(32767,Math.round((r>1?1:r<-1?-1:r)*32768)))}return t}function Mt(e,t){if(!Number.isInteger(e)||e<1||e*2>kt)throw new Pe(`invalid_argument`,`${t} must be a positive integer sample rate (got ${String(e)})`)}function Nt(e,t,n){for(let r=0;r<n.length;r+=1)e.setUint8(t+r,n.charCodeAt(r))}function Pt(e,t){Mt(t,`sampleRate`);let n=e.length*2;if(n+Ot-8>kt)throw new Pe(`invalid_argument`,`too many samples for a single WAV (4 GiB limit)`);let r=e instanceof Int16Array?e:jt(e),i=new Uint8Array(Ot+n),a=new DataView(i.buffer);Nt(a,0,`RIFF`),a.setUint32(4,36+n,!0),Nt(a,8,`WAVE`),Nt(a,12,`fmt `),a.setUint32(16,16,!0),a.setUint16(20,At,!0),a.setUint16(22,1,!0),a.setUint32(24,t,!0),a.setUint32(28,t*2,!0),a.setUint16(32,2,!0),a.setUint16(34,16,!0),Nt(a,36,`data`),a.setUint32(40,n,!0);for(let e=0;e<r.length;e+=1)a.setInt16(Ot+e*2,r[e],!0);return i}var Ft=`hv-pcm-tap`,It=`
|
|
2
|
+
import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,J as d,K as f,L as p,Lt as m,Mt as h,Ot as g,P as _,Pt as v,R as y,Rt as b,T as x,U as S,W as C,X as w,Y as T,Z as E,_ as D,_t as O,a as k,bt as A,ct as j,d as ee,dt as M,f as N,ft as P,gt as F,ht as I,k as te,kt as L,lt as R,mt as z,n as ne,nt as re,ot as ie,pt as B,q as ae,rt as oe,st as V,tt as se,v as H,vt as U,xt as ce,yt as le,z as W}from"./DG3qFFTE.js";import{t as G}from"./BaNbYf_w.js";import"./xihTtKlq.js";import{r as ue}from"./BLUInGBV.js";import{a as K,t as q}from"./Bq8E3AWP.js";import{B as de,Pt as fe,R as J,W as pe}from"./WqCtkIDw.js";import{n as Y}from"./DK8Blf1Y.js";import{C as me,S as X,b as he,x as ge}from"./DRMpwqfm.js";import{n as _e,r as ve}from"./v8gneLl4.js";import{i as ye}from"./D5J0PCfu.js";import{_ as be,b as xe,c as Se,d as Ce,g as we,h as Te,i as Ee,m as De,n as Oe,p as ke,s as Ae}from"./CGVkRTMI.js";import{n as je}from"./CHw7lFPr.js";import{n as Me,r as Ne}from"./CsPuvW_W.js";import{c as Pe,t as Fe}from"./eBF8D7GD.js";import{_ as Ie,a as Le,g as Re,h as ze,l as Be,n as Ve,p as He,u as Ue}from"./V9_dolQc.js";import{Q as Z,b as We,t as Ge}from"./D4QZjNwd.js";import{C as Ke,_ as qe,h as Je,i as Ye,m as Xe,o as Ze,r as Qe,t as $e,u as et}from"./DWyzkubm.js";import{n as tt,t as nt}from"./Bnevj03f.js";function rt(e,t){let n=t.trim();if(!n)return;let r=e.value,i=typeof document<`u`&&document.activeElement===e,a=e.selectionStart??r.length,o=e.selectionEnd??r.length;!i&&a===0&&o===0&&r.length>0&&(a=r.length,o=r.length);let s=r.slice(0,a),c=r.slice(o),l=`${s.length>0&&!/\s$/.test(s)?` `:``}${n}${/^[\p{L}\p{N}]/u.test(c)?` `:``}`;e.value=`${s}${l}${c}`;let u=s.length+l.length;try{e.setSelectionRange(u,u)}catch{}e.dispatchEvent(new Event(`input`,{bubbles:!0}))}function it(e){let t=e,n=null,r=null,i=0,a=0,o=null,s=!1,c=!1,l=null;function u(){n&&clearTimeout(n),n=null}function d(){u(),r=null,o=null,s=!1}function f(){n&&(d(),t.onCancel?.())}function p(e){let n=!t.filter||t.filter(e);return n?n===!0?e.target instanceof Element?e.target:null:n:null}function m(){c=!0,l&&clearTimeout(l),l=setTimeout(()=>{c=!1,l=null},400)}return{handlePointerDown(e){if(t.disabled||!e.isPrimary||e.pointerType===`mouse`&&e.button!==0)return;let c=p(e);if(!c)return;d(),r=e.pointerId,i=e.clientX,a=e.clientY,o={target:c,pointerType:e.pointerType||`mouse`,clientX:e.clientX,clientY:e.clientY},t.onPressStart?.(o);let l=o;n=setTimeout(()=>{n=null,s=!0,t.onLongPress(l)},t.delay??500)},handlePointerMove(e){if(!n||e.pointerId!==r)return;let o=t.moveTolerance??10;Math.hypot(e.clientX-i,e.clientY-a)>o&&f()},handlePointerUp(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;m(),d(),t.onRelease?.(e)}else d()}},handlePointerCancel(e){if(e.pointerId===r){if(n)f();else if(s&&o){let e=o;d(),t.onRelease?.(e)}else d()}},handleDragStart(){f()},handleContextMenu(e){t.preventContextMenu&&(n||s)&&e.preventDefault()},handleClick(e){c&&(c=!1,l&&clearTimeout(l),l=null,e.preventDefault(),e.stopPropagation())},cancel(){d()},update(e){t=e,e.disabled&&d()},get pending(){return n!==null},get fired(){return s}}}function at(e,t){let n=it(t),r=e=>n.handlePointerDown(e),i=e=>n.handlePointerMove(e),a=e=>n.handlePointerUp(e),o=e=>n.handlePointerCancel(e),s=()=>n.handleDragStart(),c=e=>n.handleContextMenu(e),l=e=>n.handleClick(e);return e.addEventListener(`pointerdown`,r),e.addEventListener(`dragstart`,s),e.addEventListener(`contextmenu`,c),e.addEventListener(`click`,l,!0),window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a),window.addEventListener(`pointercancel`,o),{update(e){n.update(e)},destroy(){n.cancel(),e.removeEventListener(`pointerdown`,r),e.removeEventListener(`dragstart`,s),e.removeEventListener(`contextmenu`,c),e.removeEventListener(`click`,l,!0),window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a),window.removeEventListener(`pointercancel`,o)}}}var ot=new WeakMap;async function st(e,t={}){let n=Math.max(0,t.quietMs??120),r=Math.max(0,t.timeoutMs??5e3),i=Date.now(),a=()=>Math.max(0,r-(Date.now()-i)),o=e=>new Promise(t=>setTimeout(t,e));for(;;){let n=ot.get(e);if(!n||n.size===0||t.signal?.aborted)break;let r=a();if(r===0)return;await Promise.race([Promise.all([...n]),o(r)])}t.signal?.aborted||a()===0||await new Promise(r=>{let i=null,o=[],s=()=>{i&&clearTimeout(i),clearTimeout(l);for(let e of o)e();t.signal?.removeEventListener(`abort`,s),r()},c=()=>{i&&clearTimeout(i),i=setTimeout(s,n)},l=setTimeout(s,a());t.signal?.addEventListener(`abort`,s,{once:!0}),o.push(e.subscribe(e=>{(e.type===`registered`||e.type===`unregistered`)&&c()}));for(let e of t.alsoWatch??[]){let t=e?.subscribe?.(()=>c());t&&o.push(t)}c()})}async function ct(e={}){let t=e.window??(typeof window<`u`?window:void 0),n=e.navigator??(typeof navigator<`u`?navigator:void 0);return!t||!(`SpeechRecognition`in t)&&!(`webkitSpeechRecognition`in t)?`missing`:n&&`brave`in n&&n.brave||/\bElectron\//.test(n?.userAgent??``)?`unreliable`:`works`}function lt(e){return new Worker(new URL(`../workers/local-speech.worker-BzGX7Qdn.js`,import.meta.url).href,{name:e?.name})}var ut=2**28,dt=16,ft=.95;function pt(e){if(e===0)return 1;let t=Math.PI*e;return Math.sin(t)/t}function mt(e,t,n){for(let[e,r]of[[`fromRate`,t],[`toRate`,n]])if(!Number.isFinite(r)||r<=0)throw new Pe(`invalid_argument`,`${e} must be a positive finite number (got ${String(r)})`);let r=Math.floor(e.length*n/t);if(r>ut)throw new Pe(`invalid_argument`,`resampled output would be ${r} samples; the limit is ${ut}`);if(t===n)return e.slice();let i=new Float32Array(r),a=t/n,o=a>1?ft/a:1,s=dt/o,c=e.length-1;for(let t=0;t<r;t+=1){let n=t*a,r=Math.max(0,Math.ceil(n-s)),l=Math.min(c,Math.floor(n+s)),u=0,d=0;for(let t=r;t<=l;t+=1){let r=t-n,i=.5+.5*Math.cos(Math.PI*r/s),a=o*pt(o*r)*i;u+=a*e[t],d+=a}i[t]=d===0?0:u/d}return i}var ht={silenceMs:800,minSpeechMs:150,preRollMs:300,maxUtteranceMs:3e4,sensitivity:.5,calibrateMs:300},gt=.0015,_t=.003,vt=.006,yt=.2,bt=.02,xt=2e3,St=250;function Ct(e,t,n){return Math.min(n,Math.max(t,e))}function wt(e={}){let t=(e,t,n)=>typeof e==`number`&&Number.isFinite(e)?Math.max(n,e):t;return{silenceMs:t(e.silenceMs,ht.silenceMs,20),minSpeechMs:t(e.minSpeechMs,ht.minSpeechMs,0),preRollMs:t(e.preRollMs,ht.preRollMs,0),maxUtteranceMs:t(e.maxUtteranceMs,ht.maxUtteranceMs,1e3),sensitivity:Ct(typeof e.sensitivity==`number`&&Number.isFinite(e.sensitivity)?e.sensitivity:ht.sensitivity,0,1),calibrateMs:t(e.calibrateMs,ht.calibrateMs,0)}}function Tt(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++){let t=e[r];n+=t*t}return Math.sqrt(n/t)}function Et(e={}){let t=wt(e),n=6-4*t.sensitivity,r=.02-.015*t.sensitivity,i=_t,a=0,o=[],s=!1,c=0,l=0,u=0,d=()=>Math.max(i*n,r),f=()=>Math.max(d()*.6,i*1.5),p=()=>{s=!1,c=0,l=0,u=0};return{get speaking(){return s},get noiseFloor(){return i},get threshold(){return d()},push(e,n=20){let r=[],m=Number.isFinite(e)?Math.max(0,e):0,h=Ct(m/(d()*3),0,1),g=a<t.calibrateMs;if(g&&(a+=n,!s)){o.push(m);let e=[...o].sort((e,t)=>e-t);i=Ct(e[Math.min(e.length-1,Math.floor(e.length*yt))]??_t,gt,vt)}if(!s){if(m>d())c+=n,c>=t.minSpeechMs&&(s=!0,l=0,u=c,r.push({type:`start`,leadMs:t.preRollMs+c}),c=0);else if(g)c=0;else{c=0;let e=n/xt*(m<i?4:1);i=Ct(i+(m-i)*Math.min(1,e),gt,bt)}return{events:r,level:h,speaking:s}}return u+=n,m>f()?l=0:l+=n,l>=t.silenceMs?(r.push({type:`end`,reason:`silence`,trailingSilenceMs:l}),p()):u>=t.maxUtteranceMs&&(r.push({type:`split`}),u=0,l=0),{events:r,level:h,speaking:s}},flush(){let e=[];return s&&e.push({type:`end`,reason:`flush`,trailingSilenceMs:l}),p(),e}}}function Dt(e){let t=wt(e),n=Et(t),r=Math.max(1,Math.round(e.sampleRate*20/1e3)),i=r/e.sampleRate*1e3,a=Math.ceil((t.preRollMs+t.minSpeechMs)/i)+1,o=[],s=new Float32Array,c=null,l=!1,u=(t,n,r)=>{let a=Math.max(0,Math.floor((r-St)/i)),o=t.slice(0,Math.max(1,t.length-a)),s=0;for(let e of o)s+=e.length;let c=new Float32Array(s),l=0;for(let e of o)c.set(e,l),l+=e.length;e.onUtterance({pcm:c,sampleRate:e.sampleRate,durationMs:s/e.sampleRate*1e3,reason:n})},d=t=>{t!==l&&(l=t,e.onSpeaking?.(t))},f=s=>{let l=n.push(Tt(s),i);e.onLevel?.(l.level),o.push(s),o.length>a&&o.shift(),c&&c.push(s);for(let e of l.events)if(e.type===`start`){c=[...o];let e=Math.ceil(t.preRollMs/i),n=Math.max(0,o.length-Math.ceil(t.minSpeechMs/i));for(let t=n;t<e;t++)c.unshift(new Float32Array(r))}else if(e.type===`end`){let t=c??[];c=null,o.length=0,t.length>0&&u(t,e.reason,e.trailingSilenceMs)}else if(e.type===`split`){let e=c??[];c=[],e.length>0&&u(e,`max`,0)}d(n.speaking)};return{get speaking(){return n.speaking},segmenter:n,push(e){let t=e;s.length>0&&(t=new Float32Array(s.length+e.length),t.set(s,0),t.set(e,s.length));let n=0;for(;n+r<=t.length;)f(t.slice(n,n+r)),n+=r;s=t.slice(n)},flush(){let t=n.flush();for(let e of t)e.type===`end`&&c&&c.length>0&&u(c,`flush`,e.trailingSilenceMs);c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)},discard(){n.flush(),c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)}}}var Ot=44,kt=4294967295,At=1;function jt(e){let t=new Int16Array(e.length);for(let n=0;n<e.length;n+=1){let r=e[n];Number.isNaN(r)||(t[n]=Math.min(32767,Math.round((r>1?1:r<-1?-1:r)*32768)))}return t}function Mt(e,t){if(!Number.isInteger(e)||e<1||e*2>kt)throw new Pe(`invalid_argument`,`${t} must be a positive integer sample rate (got ${String(e)})`)}function Nt(e,t,n){for(let r=0;r<n.length;r+=1)e.setUint8(t+r,n.charCodeAt(r))}function Pt(e,t){Mt(t,`sampleRate`);let n=e.length*2;if(n+Ot-8>kt)throw new Pe(`invalid_argument`,`too many samples for a single WAV (4 GiB limit)`);let r=e instanceof Int16Array?e:jt(e),i=new Uint8Array(Ot+n),a=new DataView(i.buffer);Nt(a,0,`RIFF`),a.setUint32(4,36+n,!0),Nt(a,8,`WAVE`),Nt(a,12,`fmt `),a.setUint32(16,16,!0),a.setUint16(20,At,!0),a.setUint16(22,1,!0),a.setUint32(24,t,!0),a.setUint32(28,t*2,!0),a.setUint16(32,2,!0),a.setUint16(34,16,!0),Nt(a,36,`data`),a.setUint32(40,n,!0);for(let e=0;e<r.length;e+=1)a.setInt16(Ot+e*2,r[e],!0);return i}var Ft=`hv-pcm-tap`,It=`
|
|
3
3
|
class HvPcmTap extends AudioWorkletProcessor {
|
|
4
4
|
process(inputs) {
|
|
5
5
|
const channels = inputs[0];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,F as o,Ft as s,G as c,H as l,J as u,K as d,L as f,Lt as p,Ot as m,Pt as h,R as g,Rt as _,U as v,W as y,X as b,Y as x,Z as S,_ as C,a as w,b as T,bt as E,ct as D,dt as O,ft as k,gt as A,ht as j,it as M,k as N,mt as P,n as F,o as I,pt as L,q as R,s as z,st as B,tt as V,ut as H,v as U,vt as W,xt as G,y as K,z as ee}from"./DG3qFFTE.js";import{n as q}from"./
|
|
1
|
+
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,F as o,Ft as s,G as c,H as l,J as u,K as d,L as f,Lt as p,Ot as m,Pt as h,R as g,Rt as _,U as v,W as y,X as b,Y as x,Z as S,_ as C,a as w,b as T,bt as E,ct as D,dt as O,ft as k,gt as A,ht as j,it as M,k as N,mt as P,n as F,o as I,pt as L,q as R,s as z,st as B,tt as V,ut as H,v as U,vt as W,xt as G,y as K,z as ee}from"./DG3qFFTE.js";import{n as q}from"./C_qFOhGK.js";import"./xihTtKlq.js";import{i as J,r as Y}from"./BLUInGBV.js";import{a as X,t as te}from"./Bq8E3AWP.js";import{$ as ne,C as re,St as ie,X as ae,_ as oe,_t as se,a as ce,bt as le,c as ue,d as de,et as fe,f as pe,g as me,h as he,nt as ge,p as _e,q as ve,t as ye,tt as be,u as xe,ut as Se,v as Ce,yt as we}from"./WqCtkIDw.js";import{n as Z}from"./DK8Blf1Y.js";import{n as Te}from"./v8gneLl4.js";import"./BP0RtFz5.js";import{u as Ee}from"./DIE02RSm.js";import{b as De,d as Oe,f as ke,l as Ae,n as je,r as Me,x as Ne}from"./CGVkRTMI.js";import"./DuPnchEK.js";import{t as Pe}from"./D26vob6f.js";import{S as Fe,_ as Ie,a as Le,d as Re,f as ze,g as Be,h as Ve,m as He,n as Ue,p as We,r as Ge,t as Ke,u as qe,v as Je,x as Ye}from"./CSVCiMHn.js";import{A as Xe,C as Ze,E as Qe,O as $e,S as et,j as tt,k as nt,n as rt,v as it,w as at,x as ot,y as st}from"./V9_dolQc.js";import{G as ct,H as lt,M as ut,Q as dt,U as ft,W as pt,X as mt,b as ht,g as gt,h as _t,q as vt,t as yt,v as bt,x as xt}from"./D4QZjNwd.js";import{a as St,i as Ct,n as wt,r as Tt}from"./CO-Ek-HE.js";import{a as Et,c as Dt,i as Ot,l as kt,n as At}from"./Cz2asSzI.js";import{r as jt}from"./D_U_DYjx.js";import"./DkzHae6H.js";import{t as Mt}from"./DaAfmwdu.js";import{a as Nt,d as Pt,i as Ft,l as It,o as Lt,p as Rt,r as zt,s as Bt,u as Vt}from"./D_YvuBGK.js";import{a as Ht,d as Ut,f as Wt,i as Gt,l as Kt,o as qt,p as Jt,r as Yt,s as Xt,u as Zt}from"./DWvXCQ0u.js";import{n as Qt}from"./CgAkqYsL.js";import{a as $t,i as en,n as tn,o as nn,r as rn,s as an,t as on}from"./BLxEt6rB.js";import{t as sn}from"./JBD5vUbP.js";function cn(e,t){return{key:t,direction:e?.key===t&&e.direction===`ascending`?`descending`:`ascending`}}var ln=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`});function un(e){return e==null||e===``||typeof e==`number`&&!Number.isFinite(e)}function dn(e,t){if(typeof e==`number`&&typeof t==`number`)return e-t;if(typeof e==`boolean`&&typeof t==`boolean`)return Number(e)-Number(t);let n=e instanceof Date?e.getTime():e,r=t instanceof Date?t.getTime():t;return typeof n==`number`&&typeof r==`number`?n-r:ln.compare(String(n),String(r))}function fn(e,t,n){return t?e.map((e,r)=>({row:e,index:r,value:n(e,t.key)})).sort((e,n)=>{let r=un(e.value);if(r!==un(n.value))return r?1:-1;let i=r?0:dn(e.value,n.value);return(t.direction===`ascending`?i:-i)||e.index-n.index}).map(({row:e})=>e):[...e]}var pn={name:`@happyvertical/smrt-assets`,displayName:`Assets`,description:`Provider-agnostic asset management with versioning, metadata, folders, and associations`,uiSlots:{"attachment-list":{id:`attachment-list`,label:`Attachment List`,description:`Authorized private links and supplied version history`,icon:`file-text`,category:`list`,order:8,propsInterface:`AttachmentListProps`},"attachment-upload":{id:`attachment-upload`,label:`Attachment Upload`,description:`Native multipart upload with retained request fields and recovery guidance`,icon:`upload`,category:`form`,order:9,propsInterface:`AttachmentUploadProps`},"attachment-panel":{id:`attachment-panel`,label:`Attachments`,description:`Attachment list and optional native upload composition`,icon:`file-text`,category:`display`,order:10,propsInterface:`AttachmentPanelProps`},"asset-manager":{id:`asset-manager`,label:`Asset Manager`,description:`Combined asset management surface with toolbar, grid/list view, detail, and selection`,icon:`folder-image`,category:`admin`,order:1,propsInterface:`AssetManagerProps`},"asset-grid":{id:`asset-grid`,label:`Asset Grid`,description:`Grid view of asset thumbnails with selection`,icon:`grid`,category:`list`,order:2,propsInterface:`AssetGridProps`},"asset-list":{id:`asset-list`,label:`Asset List`,description:`Sortable list view of assets with metadata columns`,icon:`list`,category:`list`,order:3,propsInterface:`AssetListProps`},"asset-detail":{id:`asset-detail`,label:`Asset Detail`,description:`Detailed view of a single asset with metadata and preview`,icon:`file-text`,category:`detail`,order:4,propsInterface:`AssetDetailProps`},"asset-toolbar":{id:`asset-toolbar`,label:`Asset Toolbar`,description:`Toolbar with view toggle, filters, sort, and upload action`,icon:`sliders`,category:`action`,order:5,propsInterface:`AssetToolbarProps`},"asset-action-bar":{id:`asset-action-bar`,label:`Asset Action Bar`,description:`Bulk action bar shown when assets are selected`,icon:`more-horizontal`,category:`action`,order:6,propsInterface:`ActionBarProps`},"asset-create-modal":{id:`asset-create-modal`,label:`Create Asset Modal`,description:`Modal dialog for uploading and creating a new asset`,icon:`upload`,category:`form`,order:7,propsInterface:`CreateAssetModalProps`}},models:[`Asset`,`AssetType`,`AssetStatus`,`AssetMetafield`,`Folder`],collections:[`AssetCollection`,`AssetTypeCollection`,`AssetStatusCollection`,`AssetMetafieldCollection`,`AssetAssociationCollection`,`FolderCollection`]},Q=X({"assets.action_bar.delete_confirm_title":`Delete {count} asset{plural}?`,"assets.action_bar.delete_confirm_message_one":`This action cannot be undone. The asset and its file data will be permanently removed.`,"assets.action_bar.delete_confirm_message_other":`This action cannot be undone. The assets and their file data will be permanently removed.`,"assets.action_bar.delete":`Delete`,"assets.action_bar.cancel":`Cancel`,"assets.asset_detail.open_pdf_in_new_tab":`Open PDF in new tab`,"assets.asset_detail.alt_text":`Alt Text`,"assets.asset_detail.alt_text_missing_warning":`⚠️ Missing — required for accessibility`,"assets.asset_detail.quick_actions":`Quick Actions`,"assets.asset_detail.copy_url":`📋 Copy URL`,"assets.asset_detail.copy_markdown":`📝 Copy Markdown`,"assets.asset_detail.edit_image":`✏️ Edit Image`,"assets.asset_detail.used_in":`Used In`,"assets.asset_detail.alt_text_placeholder":`Describe this image for screen readers`,"assets.asset_detail.description_placeholder":`Optional description`,"assets.asset_grid.loading":`Loading assets...`,"assets.asset_grid.no_assets_found":`No assets found`,"assets.asset_grid.empty_hint":`Upload an asset or change your search filters to see results.`,"assets.asset_grid.no_alt":`⚠️ No alt`,"assets.asset_grid.missing_alt_text":`Missing alt text`,"assets.asset_grid.open_named":`Open {name}`,"assets.asset_grid.select_named":`Select {name}`,"assets.asset_grid.select_named_checkbox":`Select {name}`,"assets.asset_list.loading":`Loading assets...`,"assets.asset_list.no_assets_found":`No assets found`,"assets.asset_list.empty_hint":`Upload an asset or change your search filters to see results.`,"assets.asset_list.select_all":`Select all`,"assets.asset_list.select_named":`Select {name}`,"assets.asset_manager.drop_file_to_upload":`Drop file to upload`,"assets.asset_toolbar.all_types":`All types`,"assets.asset_toolbar.newest_first":`Newest first`,"assets.asset_toolbar.oldest_first":`Oldest first`,"assets.asset_toolbar.name_a_z":`Name A–Z`,"assets.asset_toolbar.name_z_a":`Name Z–A`,"assets.asset_toolbar.recently_updated":`Recently updated`,"assets.asset_toolbar.search_placeholder":`Search assets...`,"assets.asset_toolbar.search_assets":`Search assets`,"assets.asset_toolbar.clear_search":`Clear search`,"assets.asset_toolbar.filter_by_type":`Filter by type`,"assets.asset_toolbar.sort_assets":`Sort assets`,"assets.asset_toolbar.view_mode":`View mode`,"assets.asset_toolbar.view_label":`{label} view`,"assets.create_asset_modal.dropzone_text":`Drag & drop a file here, or click to browse`,"assets.create_asset_modal.dropzone_hint":`You can also paste an image from your clipboard`,"assets.create_asset_modal.large_file_warning":`⚠️ Large file — may slow page loads`,"assets.create_asset_modal.alt_text":`Alt Text`,"assets.create_asset_modal.alt_text_recommended_warning":`⚠️ Recommended for accessibility`,"assets.create_asset_modal.name_placeholder":`Asset name`,"assets.create_asset_modal.description_placeholder":`Optional description`,"assets.create_asset_modal.alt_text_placeholder":`Describe this image for screen readers`,"assets.create_asset_modal.upload_asset":`Upload Asset`,"assets.create_asset_modal.preview_alt":`Preview`,"assets.create_asset_modal.remove_file":`Remove file`,"assets.create_asset_modal.upload_failed":`Upload failed. Please try again.`,"assets.asset_detail_preview.modal_preview":`Modal Preview`,"assets.asset_detail_preview.description":`Launch the asset detail dialog from inside the preview stage so the shared
|
|
2
2
|
playground stays navigable.`,"assets.asset_detail_preview.open_asset_detail":`Open Asset Detail`,"assets.create_asset_modal_preview.modal_preview":`Modal Preview`,"assets.create_asset_modal_preview.title":`Create Asset Modal`,"assets.create_asset_modal_preview.description":`Open the upload dialog from inside the preview stage to exercise the real
|
|
3
3
|
modal flow without covering the host navigation.`,"assets.create_asset_modal_preview.open_upload_modal":`Open Upload Modal`,"assets.create_asset_modal_preview.alt_text":`Alt Text`,"assets.asset_manager_route.eyebrow":`Package Route Surface`,"assets.asset_manager_route.title":`Asset Manager`,"assets.asset_manager_route.lede":`The reference route for browsing, selecting, and reviewing uploaded
|
|
4
4
|
assets with the package-owned asset manager UI.`,"assets.asset_manager_route.selection_state":`Selection State`,"assets.asset_manager_route.no_assets_selected":`No assets selected.`,"assets.asset_manager_route.assets_selected":`asset{plural} selected.`,"assets.asset_manager_route.custom_action_example":`Custom Action Example`,"assets.asset_manager_route.custom_action_description":`This route keeps package-owned defaults while leaving room for app
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{$ as e,B as t,Ct as n,Dt as r,Ft as i,G as a,H as o,J as s,Ot as c,P as l,U as u,W as d,a as f,bt as p,ct as m,d as h,ft as g,ht as _,i as v,lt as y,pt as b,r as x,st as S,tt as C,vt as w}from"../chunks/DG3qFFTE.js";import{t as T}from"../chunks/BaNbYf_w.js";import"../chunks/xihTtKlq.js";var E={},D=a(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=a(`<!> <!>`,1);function k(a,v){c(v,!0);let T=f(v,`components`,23,()=>[]),E=f(v,`data_0`,3,null),k=f(v,`data_1`,3,null);y(()=>v.stores.page.set(v.page)),m(()=>{v.stores,v.page,v.constructors,T(),v.form,E(),k(),v.stores.page.notify()});let A=p(!1),j=p(!1),M=p(null);x(()=>{let t=v.stores.page.subscribe(()=>{e(A)&&(w(j,!0),C().then(()=>{w(M,document.title||`untitled page`,!0)}))});return w(A,!0),t});let N=n(()=>v.constructors[1]);var P=O(),F=b(P),I=t=>{let r=n(()=>v.constructors[0]);var i=d(),a=b(i);l(a,()=>e(r),(t,n)=>{h(n(t,{get data(){return E()},get form(){return v.form},get params(){return v.page.params},children:(t,n)=>{var r=d(),i=b(r);l(i,()=>e(N),(e,t)=>{h(t(e,{get data(){return k()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),u(t,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),u(t,i)},L=t=>{let r=n(()=>v.constructors[0]);var i=d(),a=b(i);l(a,()=>e(r),(e,t)=>{h(t(e,{get data(){return E()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),u(t,i)};t(F,e=>{v.constructors[1]?e(I):e(L,-1)});var R=_(F,2),z=n=>{var r=D(),a=g(r),c=t=>{var n=s();S(()=>o(n,e(M))),u(t,n)};t(a,t=>{e(j)&&t(c)}),i(r),u(n,r)};t(R,t=>{e(A)&&t(z)}),u(a,P),r()}var A=v(k),j=[()=>T(()=>import(`../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CTb-IJnp.js","../chunks/COiEfhsA.js","../chunks/DG3qFFTE.js","../chunks/C_qFOhGK.js","../chunks/Dt-HX3Vu.js","../chunks/xihTtKlq.js","../chunks/WqCtkIDw.js","../chunks/Bq8E3AWP.js","../chunks/DK8Blf1Y.js","../assets/currency-metadata.ksbBA8-C.css","../assets/app.CNgJdfDA.css","../chunks/DRMpwqfm.js","../chunks/BaNbYf_w.js","../chunks/BLUInGBV.js","../assets/feedback.nSgE8ogy.css","../chunks/v8gneLl4.js","../assets/SegmentedControl.CH_vc242.css","../chunks/DIE02RSm.js","../assets/webmcp-ui-context.hO24Ni5w.css","../chunks/D5J0PCfu.js","../assets/data.B71l2JEr.css","../chunks/CUyVrfsu.js","../chunks/CGVkRTMI.js","../assets/forms.Zvn0Ncy0.css","../chunks/BYcBM-fh.js","../assets/AppShell.CG6RWMlI.css","../chunks/BP0RtFz5.js","../assets/workspace.C40zM0Mb.css","../chunks/eg3CcFX4.js","../chunks/CHw7lFPr.js","../chunks/C7zBd-pD.js","../chunks/CMrsF8nJ.js","../chunks/D042ejzG.js","../chunks/CsPuvW_W.js","../chunks/eBF8D7GD.js","../chunks/V9_dolQc.js","../chunks/CSVCiMHn.js","../chunks/D4QZjNwd.js","../assets/state.C0UZEhxS.css","../assets/labels.Gb0NBp4g.css","../chunks/DWyzkubm.js","../chunks/Bnevj03f.js","../assets/icons.D6X8tgCK.css","../chunks/B4xtw2J5.js","../chunks/DuPnchEK.js","../chunks/D26vob6f.js","../chunks/d934w91N.js","../chunks/Cz2asSzI.js","../chunks/DkzHae6H.js","../assets/planner.DOQVfcOi.css","../chunks/D_U_DYjx.js","../chunks/Bm8-8G4Y.js","../chunks/D_YvuBGK.js","../chunks/DWvXCQ0u.js","../chunks/CEAekex5.js","../chunks/DaAfmwdu.js","../assets/SectionIcons.BGFcFuOf.css","../assets/SectionActions.BE1CPmxk.css","../chunks/BMgzWMdF.js","../chunks/CgAkqYsL.js","../assets/0.BwSv64V0.css","../nodes/1.IGsdFaQ3.js","../nodes/2.DiuRJCFB.js","../chunks/CL9bwSUa.js","../assets/AiSetup.CrvuNhMR.css","../chunks/B9_h_mHe.js","../assets/percent.BGI-foAF.css","../chunks/C719Tukc.js","../assets/2.DONG6EWe.css","../nodes/3.dmVDRXL7.js","../assets/3.D518dbB5.css","../nodes/4.BJwXJq-1.js","../assets/4.B3vt1gMJ.css","../nodes/5.BqnCDngZ.js","../nodes/6.CGHLnxOz.js","../nodes/7.DOVOYfzy.js","../chunks/DRByVC-c.js","../chunks/xfMF02Bd.js","../chunks/CO-Ek-HE.js","../chunks/BLxEt6rB.js","../assets/FieldMapForm.C8SZ3t4N.css","../chunks/JBD5vUbP.js","../assets/ModelPage.SIoeO-AU.css","../nodes/8.CLqFK1ER.js","../nodes/9.DyNA9S0N.js","../nodes/10.BSYIRsjI.js","../assets/10.CdYxvH4G.css","../nodes/11.ICIeF_XJ.js","../chunks/BGT4FOaU.js","../assets/ConnectTools.DTleL8YA.css","../assets/11.nOT5Z4Fv.css","../nodes/12.Cpz1ILGz.js","../assets/12.F7A7zP4J.css","../nodes/13.CmF1xD2w.js","../assets/13.JoySu8W5.css","../nodes/14.B_5uO3Th.js","../assets/14.VAFbAoxW.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,B as t,Ct as n,Dt as r,Ft as i,G as a,H as o,J as s,Ot as c,P as l,U as u,W as d,a as f,bt as p,ct as m,d as h,ft as g,ht as _,i as v,lt as y,pt as b,r as x,st as S,tt as C,vt as w}from"../chunks/DG3qFFTE.js";import{t as T}from"../chunks/BaNbYf_w.js";import"../chunks/xihTtKlq.js";var E={},D=a(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),O=a(`<!> <!>`,1);function k(a,v){c(v,!0);let T=f(v,`components`,23,()=>[]),E=f(v,`data_0`,3,null),k=f(v,`data_1`,3,null);y(()=>v.stores.page.set(v.page)),m(()=>{v.stores,v.page,v.constructors,T(),v.form,E(),k(),v.stores.page.notify()});let A=p(!1),j=p(!1),M=p(null);x(()=>{let t=v.stores.page.subscribe(()=>{e(A)&&(w(j,!0),C().then(()=>{w(M,document.title||`untitled page`,!0)}))});return w(A,!0),t});let N=n(()=>v.constructors[1]);var P=O(),F=b(P),I=t=>{let r=n(()=>v.constructors[0]);var i=d(),a=b(i);l(a,()=>e(r),(t,n)=>{h(n(t,{get data(){return E()},get form(){return v.form},get params(){return v.page.params},children:(t,n)=>{var r=d(),i=b(r);l(i,()=>e(N),(e,t)=>{h(t(e,{get data(){return k()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[1]=e,()=>T()?.[1])}),u(t,r)},$$slots:{default:!0}}),e=>T()[0]=e,()=>T()?.[0])}),u(t,i)},L=t=>{let r=n(()=>v.constructors[0]);var i=d(),a=b(i);l(a,()=>e(r),(e,t)=>{h(t(e,{get data(){return E()},get form(){return v.form},get params(){return v.page.params}}),e=>T()[0]=e,()=>T()?.[0])}),u(t,i)};t(F,e=>{v.constructors[1]?e(I):e(L,-1)});var R=_(F,2),z=n=>{var r=D(),a=g(r),c=t=>{var n=s();S(()=>o(n,e(M))),u(t,n)};t(a,t=>{e(j)&&t(c)}),i(r),u(n,r)};t(R,t=>{e(A)&&t(z)}),u(a,P),r()}var A=v(k),j=[()=>T(()=>import(`../nodes/0.CTb-IJnp.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60]),import.meta.url),()=>T(()=>import(`../nodes/1.IGsdFaQ3.js`),__vite__mapDeps([61,2,1,5,45,3,4]),import.meta.url),()=>T(()=>import(`../nodes/2.DiuRJCFB.js`),__vite__mapDeps([62,2,1,5,13,7,14,6,8,9,10,11,12,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,50,51,43,48,52,53,58,63,64,65,66,67,68]),import.meta.url),()=>T(()=>import(`../nodes/3.dmVDRXL7.js`),__vite__mapDeps([69,2,1,5,6,7,8,9,10,35,12,11,13,14,15,16,17,18,19,20,21,22,23,24,25,36,37,38,39,46,58,70]),import.meta.url),()=>T(()=>import(`../nodes/4.BJwXJq-1.js`),__vite__mapDeps([71,2,1,5,6,7,8,9,10,28,12,13,14,11,15,16,17,18,19,20,21,22,23,24,25,29,30,31,32,33,34,35,36,37,38,39,40,41,42,46,63,64,72]),import.meta.url),()=>T(()=>import(`../nodes/5.BqnCDngZ.js`),__vite__mapDeps([73,2,1,3,4,5,44,46]),import.meta.url),()=>T(()=>import(`../nodes/6.CGHLnxOz.js`),__vite__mapDeps([74,2,1,3,4,5,44,46]),import.meta.url),()=>T(()=>import(`../nodes/7.DOVOYfzy.js`),__vite__mapDeps([75,1,2,5,6,7,8,9,10,76,4,77,3,13,14,15,16,26,11,12,17,18,19,20,21,22,23,24,25,27,44,45,36,37,38,39,35,78,47,40,41,48,49,50,55,56,52,53,59,79,65,32,66,80,81,82]),import.meta.url),()=>T(()=>import(`../nodes/8.CLqFK1ER.js`),__vite__mapDeps([83,1,2,5,6,7,8,9,10,37,13,14,15,16,19,20,38,76,4,77,3,26,11,12,17,18,21,22,23,24,25,27,44,45,36,39,35,78,47,40,41,48,49,50,55,56,52,53,59,79,65,32,66,80,81,82]),import.meta.url),()=>T(()=>import(`../nodes/9.DyNA9S0N.js`),__vite__mapDeps([84,1,2,5,6,7,8,9,10,37,13,14,15,16,19,20,38,76,4,77,3,26,11,12,17,18,21,22,23,24,25,27,44,45,36,39,35,78,47,40,41,48,49,50,55,56,52,53,59,79,65,32,66,80,81,82]),import.meta.url),()=>T(()=>import(`../nodes/10.BSYIRsjI.js`),__vite__mapDeps([85,2,1,5,6,7,8,9,10,17,18,22,15,16,23,67,43,11,12,13,14,19,20,21,24,25,26,27,86]),import.meta.url),()=>T(()=>import(`../nodes/11.ICIeF_XJ.js`),__vite__mapDeps([87,1,2,5,6,7,8,9,10,76,4,88,89,90]),import.meta.url),()=>T(()=>import(`../nodes/12.Cpz1ILGz.js`),__vite__mapDeps([91,1,2,5,6,7,8,9,10,15,16,22,23,37,13,14,19,20,38,55,56,76,4,79,36,17,18,39,50,52,65,21,32,12,66,80,92]),import.meta.url),()=>T(()=>import(`../nodes/13.CmF1xD2w.js`),__vite__mapDeps([93,1,2,5,6,7,8,9,10,37,13,14,15,16,19,20,38,55,56,76,4,81,88,89,94]),import.meta.url),()=>T(()=>import(`../nodes/14.B_5uO3Th.js`),__vite__mapDeps([95,1,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,45,3,4,36,37,38,39,35,78,41,50,55,56,54,57,59,96]),import.meta.url)],M=[],N={"/":[2],"/advanced-styles":[3],"/ai":[4],"/blueprint":[5],"/cookbook":[6],"/m/[package]/[model]":[7],"/m/[package]/[model]/[view]":[8],"/m/[package]/[model]/[view]/edit":[9],"/packages":[10],"/packages/[id]":[11],"/recipes/[id]":[12],"/recipes/[id]/help":[13],"/s/[section]":[14]},P={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},F=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.decode])),I=Object.fromEntries(Object.entries(P.transport).map(([e,t])=>[e,t.encode])),L=!1,R=(e,t)=>F[e](t),z=()=>T(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{R as decode,F as decoders,N as dictionary,I as encoders,z as get_error_template,L as hash,P as hooks,E as matchers,j as nodes,A as root,M as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{l as load_css,o as start}from"../chunks/C_qFOhGK.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,B as n,Ct as r,Dt as i,E as a,F as o,Ft as s,G as c,H as l,J as u,L as d,Lt as f,Ot as p,Pt as m,R as h,T as g,U as _,W as v,X as y,Y as b,Z as x,a as S,b as C,bt as w,ct as T,d as E,dt as D,ft as O,gt as k,ht as A,k as j,kt as ee,l as M,mt as N,nt as P,ot as F,pt as I,r as L,s as te,st as R,ut as ne,v as z,vt as B,wt as re,z as ie}from"../chunks/DG3qFFTE.js";import{a as ae,i as oe,n as V,r as se,t as ce,u as le}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,B as n,Ct as r,Dt as i,E as a,F as o,Ft as s,G as c,H as l,J as u,L as d,Lt as f,Ot as p,Pt as m,R as h,T as g,U as _,W as v,X as y,Y as b,Z as x,a as S,b as C,bt as w,ct as T,d as E,dt as D,ft as O,gt as k,ht as A,k as j,kt as ee,l as M,mt as N,nt as P,ot as F,pt as I,r as L,s as te,st as R,ut as ne,v as z,vt as B,wt as re,z as ie}from"../chunks/DG3qFFTE.js";import{a as ae,i as oe,n as V,r as se,t as ce,u as le}from"../chunks/C_qFOhGK.js";import"../chunks/xihTtKlq.js";import{a as ue,i as de,n as H,o as fe,p as pe,s as me,t as U,vt as he,xt as ge,yt as _e}from"../chunks/WqCtkIDw.js";import{n as W}from"../chunks/DK8Blf1Y.js";import{i as ve,m as ye,n as be,p as xe,t as Se}from"../chunks/DRMpwqfm.js";import{n as Ce}from"../chunks/BP0RtFz5.js";import{u as G}from"../chunks/DIE02RSm.js";import{c as we,d as Te,h as Ee,s as De}from"../chunks/D5J0PCfu.js";import{A as Oe,C as ke,D as Ae,E as je,S as Me,b as Ne,i as K,j as Pe,n as Fe,r as Ie,s as Le,t as Re}from"../chunks/eg3CcFX4.js";import"../chunks/B4xtw2J5.js";import"../chunks/DuPnchEK.js";import{t as q}from"../chunks/D26vob6f.js";import{T as ze,m as Be,n as J,o as Ve,t as He,w as Ue}from"../chunks/V9_dolQc.js";import{M as Y,P as We,U as Ge,V as Ke,b as qe,g as Je,nt as Ye,t as X,u as Xe,v as Ze,z as Qe}from"../chunks/D4QZjNwd.js";import{g as Z,h as $e,v as et}from"../chunks/DWyzkubm.js";import{n as tt,t as nt}from"../chunks/Bnevj03f.js";import"../chunks/d934w91N.js";import{a as rt,n as it,s as at,t as ot,u as st}from"../chunks/Cz2asSzI.js";import{r as ct,t as lt}from"../chunks/D_U_DYjx.js";import{_ as ut,a as dt,c as ft,d as pt,f as mt,h as ht,i as gt,l as _t,m as vt,o as Q,r as yt,s as bt,t as xt}from"../chunks/Bm8-8G4Y.js";import{n as St}from"../chunks/DkzHae6H.js";import{t as Ct}from"../chunks/CEAekex5.js";import{a as wt,i as Tt,n as Et,r as Dt}from"../chunks/BMgzWMdF.js";import{n as Ot}from"../chunks/CgAkqYsL.js";var kt=e({prerender:()=>!0,trailingSlash:()=>At}),At=`always`,jt=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20128%20128'%20role='img'%3e%3cdefs%3e%3clinearGradient%20id='flame'%20x1='26'%20y1='16'%20x2='101'%20y2='112'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f05b2b'/%3e%3cstop%20offset='1'%20stop-color='%23c9381e'/%3e%3c/linearGradient%3e%3clinearGradient%20id='heat'%20x1='51'%20y1='49'%20x2='72'%20y2='111'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23ffd33d'/%3e%3cstop%20offset='1'%20stop-color='%23f2a817'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20fill='url(%23flame)'%20d='M64%205c-3%2018-15%2026-13%2043-9-5-13-13-13-22C20%2043%2015%2062%2022%2082c7%2022%2023%2037%2042%2041%2022-4%2039-21%2043-43%203-17-3-32-18-45%202%2011%200%2018-6%2025C84%2036%2075%2019%2064%205Z'%20/%3e%3cpath%20fill='url(%23heat)'%20d='M64%2045c-2%2015-14%2022-13%2038-5-4-8-9-9-15-7%2010-8%2020-4%2030%205%2012%2014%2020%2026%2023%2013-3%2023-12%2027-25%203-11%200-20-8-29%200%207-2%2012-6%2016%201-16-5-27-13-38Z'%20/%3e%3c!--%20The%20glasses%20render%20as%20two%20stacked%20stroke%20groups:%20a%20pale%20warm%20casing%20under%20a%20dark%20warm-charcoal%20stroke.%20The%20casing%20keeps%20the%20dark%20strokes%20legible%20where%20they%20leave%20the%20flame%20body%20(temple%20tips,%20lower%20rims)%20on%20dark%20backgrounds,%20and%20reads%20as%20a%20rim%20light%20against%20the%20flame%20on%20light%20ones.%20--%3e%3cg%20fill='none'%20stroke='%23ffe3ae'%20stroke-opacity='0.85'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20stroke-width='14'%20d='M7%2063c12-4%2027-5%2043-1M78%2062c16-4%2031-3%2043%201'/%3e%3crect%20x='12'%20y='58'%20width='46'%20height='35'%20rx='13'%20stroke-width='14'/%3e%3crect%20x='70'%20y='58'%20width='46'%20height='35'%20rx='13'%20stroke-width='14'/%3e%3cpath%20stroke-width='13'%20d='M57%2066c5-4%209-4%2014%200'/%3e%3c/g%3e%3cg%20fill='none'%20stroke='%2333221b'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3cpath%20stroke-width='8'%20d='M7%2063c12-4%2027-5%2043-1M78%2062c16-4%2031-3%2043%201'/%3e%3crect%20x='12'%20y='58'%20width='46'%20height='35'%20rx='13'%20stroke-width='8'/%3e%3crect%20x='70'%20y='58'%20width='46'%20height='35'%20rx='13'%20stroke-width='8'/%3e%3cpath%20stroke-width='7'%20d='M57%2066c5-4%209-4%2014%200'/%3e%3c/g%3e%3c/svg%3e`,Mt=c(`<a class="cap svelte-nioco2"><!></a>`),Nt=c(`<div class="ai-status svelte-nioco2" role="group" aria-label="AI models"></div>`);function Pt(e,n){p(n,!1);let r={think:Ie,hear:Re,speak:Fe};M();var a=Nt();d(a,5,()=>K.capabilities,e=>e.id,(e,n)=>{var i=Mt(),a=O(i);Ye(a,{get path(){return r[t(n).id]},size:20}),s(i),R(e=>{z(i,`href`,e),z(i,`data-state`,t(n).state),z(i,`aria-label`,t(n).label),z(i,`title`,t(n).label)},[()=>U(`/ai/`)]),_(e,i)}),s(a),_(e,a),i()}function Ft(e){let t=e.target;return!t||typeof t.closest!=`function`?!1:e.type===`input`?t.matches(`textarea, input[type="text"], input:not([type])`):e.type===`click`&&t.closest(`.smrt-dictation-button`)!==null}function It(e){let t=[{label:`Help me plan my app`,prompt:`Help me plan my app. Ask me what my business needs before adding recipes.`}],n=e[0];return n?(t.push({label:`Report on ${n.label}`,prompt:`Create a runtime report counting ${n.label} in the sample data.`}),n.dateField&&t.push({label:`${n.label} by month`,prompt:`Create a runtime report counting ${n.label} by month using ${n.dateField} in the sample data.`}),n.amountField&&t.push({label:`${n.label} totals`,prompt:`Create a runtime report showing the total ${n.amountField} for ${n.label} in the sample data.`}),t):[...t,{label:`What should my app track?`,prompt:`Help me work out what my business app should track. Ask about my business first.`}]}var Lt=c(`<div><!></div>`);function Rt(e,n){p(n,!0);let a=S(n,`answered`,3,null),o=it(ct()),c=r(()=>J.settings().currency),l=r(()=>o.fieldsFor(n.proposal.spec.source)),u=w(k(a())),d=w(null);function f(e){B(u,e,!0),n.onoutcome?.(e)}function m(e){f({status:`saved`,report:{id:e.id,title:e.title}}),ot(t(d),e)}var h=Lt(),g=O(h);st(g,{get proposal(){return n.proposal},get confirm(){return o.save},reportHref:e=>U(rt(e)),onsaved:m,ondecline:()=>f({status:`declined`}),get outcome(){return t(u)},get fields(){return t(l)},get currency(){return t(c)}}),s(h),E(h,e=>B(d,e),()=>t(d)),_(e,h),i()}var zt=c(`<span role="status" aria-live="polite"> </span> <progress max="100" aria-label="Speech model download" class="svelte-w5gfst"> </progress>`,1),Bt=c(`<span class="error svelte-w5gfst" role="alert"> </span>`),Vt=c(`<span>The speech model is already on this device. Turn on voice typing to
|
|
2
2
|
talk to the assistant?</span>`),Ht=c(`<span> </span>`),Ut=c(`<button type="button">Cancel</button>`),Wt=c(`<button type="button"> </button> <button type="button">Not now</button>`,1),Gt=c(`<div class="voice svelte-w5gfst" role="group" aria-label="Voice typing"><svg class="icon svelte-w5gfst" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3Zm5-3a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.92V22h2v-3.08A7 7 0 0 0 19 12h-2Z"></path></svg> <div class="text svelte-w5gfst"><!></div> <div class="actions svelte-w5gfst"><!></div></div>`);function Kt(e,a){p(a,!0);let o=r(()=>Math.round(a.voice.size/1e6)),c=r(()=>Math.round(a.voice.progress*100)),u=r(()=>a.voice.status===`offer`||a.voice.status===`downloading`||a.voice.status===`error`);var d=v(),f=I(d),m=e=>{var r=Gt(),i=A(O(r),2),u=O(i),d=e=>{var n=zt(),r=I(n),i=N(r),o=A(r,2),s=N(o);R(()=>{l(i,`${a.voice.cached?`Turning on voice typing`:`Downloading speech model`}
|
|
3
3
|
${t(c)??``}%`),C(o,t(c)),l(s,`${t(c)??``}%`)}),_(e,n)},f=e=>{var t=Bt(),n=N(t);R(()=>l(n,`Voice typing could not start: ${a.voice.error??``}`)),_(e,t)},p=e=>{var t=Vt();_(e,t)},m=e=>{var n=Ht(),r=N(n);R(e=>l(r,`Your browser can't do voice typing on its own. Download a ${e??``} speech model to talk to the assistant?`),[()=>je(t(o))]),_(e,n)};n(u,e=>{a.voice.status===`downloading`?e(d):a.voice.status===`error`?e(f,1):a.voice.cached?e(p,2):e(m,-1)}),s(i);var h=A(i,2),g=O(h),v=e=>{var t=Ut();y(`click`,t,()=>a.voice.cancel()),_(e,t)},b=e=>{var t=Wt(),n=I(t),r=N(n,!0),i=A(n,2);R(()=>l(r,a.voice.status===`error`?`Try again`:a.voice.cached?`Turn on`:`Download`)),y(`click`,n,()=>void a.voice.enable()),y(`click`,i,()=>a.voice.dismiss()),_(e,t)};n(g,e=>{a.voice.status===`downloading`?e(v):e(b,-1)}),s(h),s(r),_(e,r)};n(f,e=>{t(u)&&e(m)}),_(e,d),i()}b([`click`]);var qt=c(`<div class="offer svelte-12q53fs" role="group" aria-label="Theme change"><!></div>`),Jt=c(`<p class="offer-note svelte-12q53fs" role="status">Theme restored.</p>`),Yt=c(`<!> <!> <!>`,1),Xt=c(`<li><b> </b> </li>`),Zt=c(`<ul class="offer-menu svelte-12q53fs"></ul>`),Qt=c(`<small class="svelte-12q53fs">Replaces your recipes, menu and sample records.</small>`),$t=c(`<div class="offer svelte-12q53fs" role="group"><div class="offer-text svelte-12q53fs"><strong> </strong> <span class="svelte-12q53fs"> </span> <!></div> <!> <!> <!></div>`),en=c(`<p class="offer-note svelte-12q53fs" role="status"> </p>`),tn=c(`<p class="offer-note svelte-12q53fs" role="alert"> </p>`),nn=c(`<div class="panel svelte-12q53fs" role="status"><h2 class="svelte-12q53fs">Assistant unavailable</h2> <p class="svelte-12q53fs">The assistant runs a small model on your graphics card using WebGPU, and
|
|
4
4
|
this browser does not offer it. Try a recent Chrome, Edge or Safari on a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dt as e,G as t,H as n,Ot as r,U as i,ht as a,mt as o,pt as s,st as c}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/
|
|
1
|
+
import{Dt as e,G as t,H as n,Ot as r,U as i,ht as a,mt as o,pt as s,st as c}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as l}from"../chunks/D26vob6f.js";var u=t(`<h1> </h1> <p> </p>`,1);function d(t,d){r(d,!0);var f=u(),p=s(f),m=o(p,!0),h=a(p,2),g=o(h,!0);c(()=>{n(m,l.status),n(g,l.error?.message)}),i(t,f),e()}export{d as component};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,Ft as o,G as s,H as c,J as l,L as u,M as ee,Ot as d,Pt as f,U as p,X as m,Y as h,_ as g,at as _,bt as v,ft as y,ht as b,mt as x,p as S,pt as C,st as w,ut as T,v as E,vt as D}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{Ct as O,_t as k,a as A,p as j,t as M,vt as N,wt as P}from"../chunks/
|
|
1
|
+
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,Ft as o,G as s,H as c,J as l,L as u,M as ee,Ot as d,Pt as f,U as p,X as m,Y as h,_ as g,at as _,bt as v,ft as y,ht as b,mt as x,p as S,pt as C,st as w,ut as T,v as E,vt as D}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{Ct as O,_t as k,a as A,p as j,t as M,vt as N,wt as P}from"../chunks/WqCtkIDw.js";import{p as te}from"../chunks/DIE02RSm.js";import{i as F}from"../chunks/CGVkRTMI.js";import{t as ne}from"../chunks/C719Tukc.js";var I=s(`<p class="svelte-disfw2">Nothing selected yet. Choose a package below.</p>`),L=s(`<li><a class="svelte-disfw2"> </a></li>`),R=s(`<ul class="chips svelte-disfw2"></ul> <button type="button" class="secondary svelte-disfw2">Clear selection</button>`,1),z=s(`<p class="meta svelte-disfw2"> </p>`),re=s(`<li><h3 class="svelte-disfw2"><a> </a></h3> <p class="description svelte-disfw2"> </p> <p class="meta svelte-disfw2"><!></p> <!> <!></li>`),ie=s(`<li class="none svelte-disfw2"> </li>`),ae=s(`<main class="svelte-disfw2"><header class="svelte-disfw2"><p class="meta svelte-disfw2"><a>Planner</a> / All packages</p> <h1 class="svelte-disfw2">All packages</h1> <p class="svelte-disfw2">The whole catalog, a package at a time. Recipes on the Planner page are
|
|
2
2
|
the smaller way in: they add one section of an app, not every model in a
|
|
3
3
|
package. Your picks live in the URL, so you can share the mock-up.</p></header> <section aria-label="Your selection" class="selection svelte-disfw2"><h2 class="svelte-disfw2">Your app</h2> <!> <p class="notice svelte-disfw2" role="status" aria-live="polite"> </p></section> <section aria-label="Package catalog"><h2 class="svelte-disfw2">Packages <small class="svelte-disfw2"> </small></h2> <label class="search svelte-disfw2"><span class="visually-hidden svelte-disfw2">Search packages</span> <input type="search" placeholder="Search packages, models and fields" class="svelte-disfw2"/></label> <ul class="cards svelte-disfw2"></ul></section></main>`);function B(s,h){d(h,!0);let B=v(``),V=v(``),H=r(()=>O(k.packages,e(B)));function oe(e){let t=new Set(A.ids),n=t.has(e);A.toggle(e);let r=A.ids.filter(n=>!t.has(n)&&n!==e);D(V,n?`Removed ${j(e)}.`:r.length?`Added ${j(e)} and the packages it needs: ${r.map(j).join(`, `)}.`:`Added ${j(e)}.`,!0)}var U=ae();t(`disfw2`,e=>{_(()=>{T.title=`All packages · smrt planner`})});var W=y(U),G=y(W),K=y(G);f(),o(G),f(4),o(W);var q=b(W,2),J=b(y(q),2),se=e=>{var t=I();p(e,t)},ce=e=>{var t=R(),n=C(t);u(n,20,()=>A.ids,e=>e,(e,t)=>{var n=L(),r=y(n),i=x(r,!0);o(n),w((e,t)=>{E(r,`href`,e),c(i,t)},[()=>M(`/packages/${t}/`),()=>j(t)]),p(e,n)}),o(n);var r=b(n,2);m(`click`,r,()=>A.clear()),p(e,t)};n(J,e=>{A.ids.length===0?e(se):e(ce,-1)});var le=b(J,2),ue=x(le,!0);o(q);var Y=b(q,2),X=y(Y),de=b(y(X)),fe=x(de);o(X);var Z=b(X,2),Q=b(y(Z),2);g(Q),o(Z);var $=b(Z,2);u($,29,()=>e(H),e=>e.id,(t,i)=>{let s=r(()=>A.has(e(i).id)),u=r(()=>A.requiredBy(e(i).id));var d=re();let f;var m=y(d),h=y(m),g=x(h,!0);o(m);var _=b(m,2),v=x(_,!0),S=b(_,2),C=y(S),T=t=>{var n=l();w((e,t)=>c(n,`${e??``} models · ${t??``} generated surfaces`),[()=>N(e(i)).length,()=>P(e(i))]),p(t,n)},D=r(()=>N(e(i)).length),O=t=>{var n=l();w(()=>c(n,`${e(i).models.length??``} internal models · closed: no generated surfaces`)),p(t,n)};n(C,t=>{e(D)?t(T):t(O,-1)}),o(S);var k=b(S,2),I=t=>{var n=z(),r=x(n);w(e=>c(r,`Needs: ${e??``}`),[()=>e(i).dependencies.map(j).join(`, `)]),p(t,n)};n(k,t=>{e(i).dependencies.length&&t(I)});var L=b(k,2);{let t=r(()=>e(s)&&e(u).length>0),n=r(()=>`Include ${j(e(i).id)} in my app`),a=r(()=>e(s)&&e(u).length>0?`In your app (needed by ${e(u).map(j).join(`, `)})`:e(s)?`In your app`:`Add to my app`);F(L,{get checked(){return e(s)},get disabled(){return e(t)},onchange:()=>oe(e(i).id),get"aria-label"(){return e(n)},get label(){return e(a)}})}o(d),w((t,n)=>{f=a(d,1,`svelte-disfw2`,null,f,{selected:e(s)}),E(h,`href`,t),c(g,n),c(v,e(i).description)},[()=>M(`/packages/${e(i).id}/`),()=>j(e(i).id)]),ee(d,()=>te,()=>({duration:ne(`medium2`,300)})),p(t,d)},t=>{var n=ie(),r=x(n);w(()=>c(r,`No packages match "${e(B)??``}".`)),p(t,n)}),o($),o(Y),o(U),w(t=>{E(K,`href`,t),c(ue,e(V)),c(fe,`${e(H).length??``} of ${k.packages.length??``}`)},[()=>M(`/`)]),S(Q,()=>e(B),e=>D(B,e)),p(s,U),i()}h([`click`]);export{B as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,Ft as o,G as s,H as c,J as l,L as u,Ot as d,U as f,W as p,ft as m,ht as h,it as g,mt as _,pt as v,st as y,ut as b,v as x}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_t as S,p as C,t as w,vt as T,xt as E}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,Ft as o,G as s,H as c,J as l,L as u,Ot as d,U as f,W as p,ft as m,ht as h,it as g,mt as _,pt as v,st as y,ut as b,v as x}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_t as S,p as C,t as w,vt as T,xt as E}from"../chunks/WqCtkIDw.js";import{t as D}from"../chunks/DRByVC-c.js";import{t as O}from"../chunks/BGT4FOaU.js";var k=e({entries:()=>A,load:()=>j}),A=()=>S.packages.map(e=>({id:e.id})),j=({params:e})=>(E(e.id)||D(404,`Unknown package ${e.id}`),{id:e.id}),M=s(`<!><a> </a>`,1),N=s(`<p class="meta svelte-1md22of">Needs: <!></p>`),P=s(`<li><a> </a> <span class="meta svelte-1md22of"> </span></li>`),F=s(`<main class="svelte-1md22of"><header class="svelte-1md22of"><h1 class="svelte-1md22of"> </h1> <p class="meta svelte-1md22of"><code> </code></p> <p class="svelte-1md22of"> </p> <!></header> <section class="svelte-1md22of"><h2 class="svelte-1md22of">Models</h2> <ul class="svelte-1md22of"></ul></section> <!></main>`),I=s(`<a>Back to the Planner</a>`),L=s(`<main class="svelte-1md22of"><h1 class="svelte-1md22of">Unknown package</h1> <p class="svelte-1md22of">No package is called <code> </code>.<!></p></main>`);function R(e,n){d(n,!0);let s=i(()=>E(n.id));var g=p(),b=v(g),S=e=>{var n=F(),i=m(n),a=m(i),d=_(a,!0),p=h(a,2),g=m(p),b=_(g);o(p);var S=h(p,2),E=_(S,!0),D=h(S,2),k=e=>{var n=N(),i=h(m(n));u(i,18,()=>t(s).dependencies,e=>e,(e,n,i)=>{var a=M(),o=v(a),s=e=>{var t=l(`,`);f(e,t)};r(o,e=>{t(i)>0&&e(s)});var u=h(o),d=_(u,!0);y((e,t)=>{x(u,`href`,e),c(d,t)},[()=>w(`/packages/${n}/`),()=>C(n)]),f(e,a)}),o(n),f(e,n)};r(D,e=>{t(s).dependencies.length&&e(k)}),o(i);var A=h(i,2),j=h(m(A),2);u(j,21,()=>T(t(s)),e=>e.id,(e,n)=>{var r=P(),i=m(r),a=_(i,!0),l=h(i,2),u=_(l);o(r),y((e,r)=>{x(i,`href`,e),c(a,t(n).name),c(u,`${r??``} fields`)},[()=>w(`/m/${t(s).id}/${t(n).name}/`),()=>t(n).fields.filter(e=>!e.system).length]),f(e,r)}),o(j),o(A);var I=h(A,2);O(I,{get models(){return t(s).models}}),o(n),y(e=>{c(d,e),c(b,`${t(s).packageName??``}@${t(s).version??``}`),c(E,t(s).description)},[()=>C(t(s).id)]),f(e,n)},D=e=>{var t=L(),i=h(m(t),2),a=h(m(i)),s=_(a,!0),l=h(a,2),u=e=>{var t=I();y(()=>x(t,`href`,n.backHref)),f(e,t)};r(l,e=>{n.backHref&&e(u)}),o(i),o(t),y(()=>c(s,n.id)),f(e,t)};r(b,e=>{t(s)?e(S):e(D,-1)}),f(e,g),a()}function z(e,t){d(t,!0),n(`88mplm`,e=>{g(e=>{b.title=`${e??``} · smrt planner`},[()=>C(t.data.id)])}),R(e,{get id(){return t.data.id}}),a()}export{z as component,k as universal};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,E as o,Ft as s,G as c,H as l,J as u,L as d,Ot as f,Pt as p,U as m,W as h,X as g,Y as _,Z as v,a as y,bt as b,ft as x,gt as S,ht as C,it as w,j as T,mt as E,pt as D,st as O,ut as k,v as A,vt as j}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{p as ee,t as M}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,E as o,Ft as s,G as c,H as l,J as u,L as d,Ot as f,Pt as p,U as m,W as h,X as g,Y as _,Z as v,a as y,bt as b,ft as x,gt as S,ht as C,it as w,j as T,mt as E,pt as D,st as O,ut as k,v as A,vt as j}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{p as ee,t as M}from"../chunks/WqCtkIDw.js";import{n as N}from"../chunks/v8gneLl4.js";import{i as P}from"../chunks/CGVkRTMI.js";import{A as te,C as F,E as I,O as ne,S as L,T as R,U as re,_ as ie,f as z,g as B,j as ae,k as V,p as H,t as U,v as W,w as G,y as K}from"../chunks/D4QZjNwd.js";import{t as q}from"../chunks/DaAfmwdu.js";import{t as J}from"../chunks/DRByVC-c.js";import{n as Y}from"../chunks/BLxEt6rB.js";var X=e({entries:()=>Z,load:()=>Q}),Z=()=>L.map(e=>({id:e.id})),Q=({params:e})=>(H(e.id)||J(404,`Unknown recipe section ${e.id}`),{id:e.id}),oe=c(`<fieldset class="field svelte-nbkntr"><legend><code> </code> <span class="type svelte-nbkntr"> </span></legend> <!> <div class="controls svelte-nbkntr"><label class="svelte-nbkntr"><span>Label</span> <!></label> <label class="svelte-nbkntr"><span>Help text</span> <!></label> <fieldset class="default svelte-nbkntr"><!></fieldset> <label class="svelte-nbkntr"><span>Order</span> <!></label></div></fieldset>`),se=c(`<p class="hint svelte-nbkntr"> </p>`),ce=c(`<form class="options svelte-nbkntr"><!> <p class="hint svelte-nbkntr">Stored in the <code> </code> table. Switch fields on or
|
|
2
2
|
off and set their label, help, default and order. Saved as field policies.</p> <fieldset class="svelte-nbkntr"><legend>Exposure (can only be narrowed)</legend> <div class="surfaces svelte-nbkntr"></div></fieldset> <!> <!> <div class="actions svelte-nbkntr"><button type="submit" class="svelte-nbkntr">Save options</button> <button type="button" class="secondary svelte-nbkntr">Reset to recipe defaults</button></div> <p class="status svelte-nbkntr" role="status" aria-live="polite"> </p></form>`);function le(e,n){f(n,!0);let c=y(n,`headingLevel`,3,3);function _(){return R(n.model,n.hints,U.rows,U.narrowed[n.model.id]??[])}let w=b(S(_())),k=b(``),ee=i(()=>I(n.model,n.hints)),M=i(()=>te(n.model,n.hints)),L=i(()=>Object.entries(n.hints?.fields??{}).filter(([,e])=>e.visibility===`hidden`).map(([e])=>e));function re(e){e.preventDefault(),U.save(n.model.id,ae(n.model,n.hints,t(w)),V(n.model,n.hints,t(w))),j(k,`Options saved. The views below use them.`)}function ie(){U.reset(n.model.id),j(w,_(),!0),j(k,`Options reset to the recipe defaults.`)}function z(e,n){let r=Number(n);n.trim()!==``&&Number.isFinite(r)&&(t(w).fields[e].order=r)}var B=ce(),H=x(B);T(H,()=>`h${Math.min(c(),6)}`,!1,(e,t)=>{o(e,0,`svelte-nbkntr`);var r=u();O(()=>l(r,`${n.model.name??``} options`)),m(t,r)});var W=C(H,2),K=C(x(W)),q=E(K,!0);p(),s(W);var J=C(W,2),X=C(x(J),2);d(X,20,()=>F,e=>e,(e,r)=>{{let a=i(()=>`Expose ${n.model.name} over ${G[r]}${t(M)[r].available?``:` (none declared)`}`);P(e,{get checked(){return t(w).exposure[r]},get disabled(){return t(M)[r].locked},onchange:e=>t(w).exposure[r]=e.currentTarget.checked,get label(){return t(a)}})}}),s(X),s(J);var Z=C(J,2);d(Z,17,()=>t(ee),e=>e.field.name,(e,a)=>{let o=i(()=>t(a).field.name),c=i(()=>ne(t(a))),u=i(()=>t(a).locked);var d=h(),f=D(d),p=e=>{var r=oe(),d=x(r),f=x(d),p=E(f,!0),h=C(f,2),g=E(h,!0);s(d);var _=C(d,2);{let e=i(()=>`Use field ${t(o)}${t(a).required?` (required)`:t(u)?` (locked)`:``}`);P(_,{get checked(){return t(w).fields[t(o)].use},get disabled(){return t(c)},onchange:e=>t(w).fields[t(o)].use=e.currentTarget.checked,get label(){return t(e)}})}var v=C(_,2),y=x(v),b=C(x(y),2);{let e=i(()=>`Label for ${t(o)}`);N(b,{get disabled(){return t(u)},get"aria-label"(){return t(e)},get value(){return t(w).fields[t(o)].label},set value(e){t(w).fields[t(o)].label=e}})}s(y);var S=C(y,2),T=C(x(S),2);{let e=i(()=>`Help text for ${t(o)}`);N(T,{get disabled(){return t(u)},get"aria-label"(){return t(e)},get value(){return t(w).fields[t(o)].help},set value(e){t(w).fields[t(o)].help=e}})}s(S);var D=C(S,2),k=x(D);{let e=i(()=>({...t(a).field,required:!1})),r=i(()=>`Default value for ${t(o)}`),s=i(()=>`default-${n.model.name}`);Y(k,{get field(){return t(e)},get modelId(){return n.model.id},creatable:!1,get label(){return t(r)},get idPrefix(){return t(s)},get value(){return t(w).fields[t(o)].default},onchange:e=>{t(w).fields[t(o)].default=e}})}s(D);var A=C(D,2),j=C(x(A),2);{let e=i(()=>`Order of ${t(o)}`);N(j,{type:`number`,get value(){return t(w).fields[t(o)].order},get disabled(){return t(u)},oninput:e=>z(t(o),e.currentTarget.value),get"aria-label"(){return t(e)}})}s(A),s(v),s(r),O(()=>{l(p,t(o)),l(g,t(a).field.type),D.disabled=t(u)}),m(e,r)};r(f,e=>{t(w).fields[t(o)]&&e(p)}),m(e,d)});var Q=C(Z,2),le=e=>{var n=se(),r=E(n);O(e=>l(r,`Hidden by the recipe: ${e??``}.`),[()=>t(L).join(`, `)]),m(e,n)};r(Q,e=>{t(L).length&&e(le)});var $=C(Q,2),ue=C(x($),2);s($);var de=C($,2),fe=E(de,!0);s(B),O(()=>{A(B,`aria-label`,`Options for ${n.model.name}`),l(q,n.model.collection),l(fe,t(k))}),v(`submit`,B,re),g(`click`,ue,ie),m(e,B),a()}_([`click`]);var $=c(`<h2 class="svelte-1e5i8ao"> </h2>`),ue=c(`<!><a> </a>`,1),de=c(`<p class="meta svelte-1e5i8ao">Needs: <!></p>`),fe=c(`<a> </a>`),pe=c(`<li><!> <span class="meta svelte-1e5i8ao"> </span></li>`),me=c(`<div class="options svelte-1e5i8ao"><!> <p class="meta svelte-1e5i8ao"> </p> <!></div>`),he=c(`<p class="meta svelte-1e5i8ao">Add this recipe to set its options.</p>`),ge=c(`<section class="recipe svelte-1e5i8ao"><header class="svelte-1e5i8ao"><!> <p class="svelte-1e5i8ao"> </p> <p class="meta svelte-1e5i8ao"><code> </code> </p> <!> <div class="actions"><button type="button"> </button></div></header> <div class="adds svelte-1e5i8ao"><!> <ul class="svelte-1e5i8ao"></ul></div> <!></section>`);function _e(e,n){f(n,!0);let c=y(n,`titled`,3,!1),p=i(()=>c()?`h3`:`h2`),h=i(()=>U.has(n.recipe.id)),_=i(()=>U.requiredBy(n.recipe.id)),v=i(()=>ie(n.recipe)),b=e=>z(e)?.label??e,S=e=>{let t=z(e);return M(`/recipes/${t?re(t):e}/`)};var w=ge(),k=x(w),j=x(k),N=e=>{var t=$(),r=E(t,!0);O(()=>l(r,n.recipe.label)),m(e,t)};r(j,e=>{c()&&e(N)});var P=C(j,2),te=E(P,!0),F=C(P,2),I=x(F),ne=E(I,!0),L=C(I);s(F);var R=C(F,2),ae=e=>{var i=de(),a=C(x(i));d(a,18,()=>n.recipe.requires,e=>e,(e,n,i)=>{var a=ue(),o=D(a),s=e=>{var t=u(`,`);m(e,t)};r(o,e=>{t(i)>0&&e(s)});var c=C(o),d=E(c,!0);O((e,t)=>{A(c,`href`,e),l(d,t)},[()=>S(n),()=>b(n)]),m(e,a)}),s(i),m(e,i)};r(R,e=>{n.recipe.requires.length&&e(ae)});var V=C(R,2),H=x(V);let G;var q=E(H,!0);s(V),s(k);var J=C(k,2),Y=x(J);T(Y,()=>t(p),!1,(e,t)=>{o(e,0,`svelte-1e5i8ao`);var n=u(`What it adds`);m(t,n)});var X=C(Y,2);d(X,21,()=>W(n.recipe),e=>e.model.id,(e,n)=>{var i=pe(),a=x(i),o=e=>{var r=fe(),i=E(r,!0);O(e=>{A(r,`href`,e),l(i,t(n).label)},[()=>M(B(t(n)))]),m(e,r)},c=e=>{var r=u();O(()=>l(r,t(n).label)),m(e,r)};r(a,e=>{t(h)?e(o):e(c,-1)});var d=C(a,2),f=E(d);s(i),O(()=>l(f,`list, create, edit and delete views for ${t(n).model.name??``}`)),m(e,i)}),s(X),s(J);var Z=C(J,2),Q=e=>{var r=me(),a=x(r);T(a,()=>t(p),!1,(e,t)=>{o(e,0,`svelte-1e5i8ao`);var n=u(`Options`);m(t,n)});var f=C(a,2),h=E(f),g=C(f,2);d(g,17,()=>t(v),({model:e})=>e.id,(e,r)=>{let a=()=>t(r).model;{let r=i(()=>n.recipe.options?.[a().id]),o=i(()=>c()?4:3);le(e,{get model(){return a()},get hints(){return t(r)},get headingLevel(){return t(o)}})}}),s(r),O(()=>l(h,`Generated from the parameters ${n.recipe.label??``}'s models declare. Saving
|
|
3
3
|
writes field policies, held in memory for now.`)),m(e,r)},oe=e=>{var t=he();m(e,t)};r(Z,e=>{t(h)?e(Q):e(oe,-1)}),s(w),O((e,r)=>{A(w,`aria-label`,n.recipe.label),l(te,n.recipe.summary),l(ne,n.recipe.id),l(L,` · from
|
|
4
4
|
${e??``}`),H.disabled=t(_).length>0,G=o(H,1,`svelte-1e5i8ao`,null,G,{secondary:t(h)}),l(q,r)},[()=>K(n.recipe)?ee(K(n.recipe)?.id??``):`unknown package`,()=>t(_).length?`Remove ${n.recipe.label} (needed by ${t(_).map(b).join(`, `)})`:t(h)?`Remove ${n.recipe.label} from my app`:`Add ${n.recipe.label} to my app`]),g(`click`,H,()=>t(h)?U.remove(n.recipe.id):U.add(n.recipe.id)),m(e,w),a()}_([`click`]);var ve=c(`<main class="svelte-1r2e3yg"><header class="svelte-1r2e3yg"><div class="bar svelte-1r2e3yg"><p class="meta svelte-1r2e3yg"><a>Planner</a> </p> <!></div> <h1 class="svelte-1r2e3yg"> </h1></header> <!></main>`);function ye(e,o){f(o,!0);let c=i(()=>H(o.data.id));var u=h();n(`1r2e3yg`,e=>{w(()=>{k.title=`${t(c)?.label??o.data.id??``} options · smrt planner`})});var p=D(u),g=e=>{var n=ve(),r=x(n),a=x(r),o=x(a),u=x(o),f=C(u);s(o);var p=C(o,2);q(p,{get section(){return t(c).id},get label(){return t(c).label},current:`options`}),s(a);var h=C(a,2),g=E(h);s(r);var _=C(r,2);d(_,17,()=>t(c).recipes,e=>e.id,(e,n)=>{{let r=i(()=>t(c).recipes.length>1);_e(e,{get recipe(){return t(n)},get titled(){return t(r)}})}}),s(n),O(e=>{A(u,`href`,e),l(f,` / ${t(c).label??``} options`),l(g,`${t(c).label??``} options`)},[()=>M(`/`)]),m(e,n)};r(p,e=>{t(c)&&e(g)}),m(e,u),a()}export{ye as component,X as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,E as o,Ft as s,G as c,H as l,J as u,L as d,Lt as f,Ot as p,Pt as m,R as h,U as g,W as _,a as v,ft as y,ht as b,it as x,j as S,mt as C,pt as w,st as T,ut as E,v as D}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as O}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,E as o,Ft as s,G as c,H as l,J as u,L as d,Lt as f,Ot as p,Pt as m,R as h,U as g,W as _,a as v,ft as y,ht as b,it as x,j as S,mt as C,pt as w,st as T,ut as E,v as D}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as O}from"../chunks/WqCtkIDw.js";import{S as k,_ as A,h as j,p as M,t as N}from"../chunks/D4QZjNwd.js";import{t as P}from"../chunks/DaAfmwdu.js";import{t as F}from"../chunks/DRByVC-c.js";import{t as I}from"../chunks/JBD5vUbP.js";import{t as L}from"../chunks/BGT4FOaU.js";var R=e({entries:()=>z,load:()=>B}),z=()=>k.map(e=>({id:e.id})),B=({params:e})=>(M(e.id)||F(404,`Unknown recipe section ${e.id}`),{id:e.id}),V=(e,n=f)=>{var i=_(),a=w(i);d(a,17,n,h,(e,n)=>{var i=_(),a=w(i),o=e=>{var r=H();V(y(r),()=>t(n).children),s(r),g(e,r)},c=e=>{var r=U();V(y(r),()=>t(n).children),s(r),g(e,r)},d=e=>{var r=W(),i=C(r,!0);T(()=>l(i,t(n).text)),g(e,r)},f=e=>{var r=u();T(()=>l(r,t(n).text)),g(e,r)};r(a,e=>{t(n).type===`strong`?e(o):t(n).type===`em`?e(c,1):t(n).type===`code`?e(d,2):t(n).type===`text`&&e(f,3)}),g(e,i)}),g(e,i)},H=c(`<strong><!></strong>`),U=c(`<em><!></em>`),W=c(`<code> </code>`),G=c(`<p class="svelte-cw30hy"><!></p>`),K=c(`<li><!></li>`),q=c(`<ol class="svelte-cw30hy"></ol>`),J=c(`<ul class="svelte-cw30hy"></ul>`),Y=c(`<dt class="svelte-cw30hy"> </dt> <dd class="svelte-cw30hy"> </dd>`,1),X=c(`<section class="svelte-cw30hy"><!> <dl class="svelte-cw30hy"></dl></section>`),Z=c(`<section aria-label="Fields" class="svelte-cw30hy"><!> <!></section>`),Q=c(`<article class="help svelte-cw30hy"><!> <!></article>`);function $(e,n){p(n,!0);let c=v(n,`idPrefix`,3,``),f=v(n,`startLevel`,3,2),m=e=>Math.min(f()+e,6),x=i(()=>[...new Set(n.glossary.map(e=>e.model))].map(e=>({model:e,entries:n.glossary.filter(t=>t.model===e)})));var E=Q(),O=y(E);d(O,17,()=>n.blocks,h,(e,n)=>{var i=_(),a=w(i),c=e=>{var r=_(),i=w(r);S(i,()=>`h${m(t(n).level-2)}`,!1,(e,r)=>{o(e,0,`svelte-cw30hy`),V(r,()=>t(n).inlines)}),g(e,r)},l=e=>{var r=G();V(y(r),()=>t(n).inlines),s(r),g(e,r)},u=e=>{var r=q();d(r,21,()=>t(n).items,h,(e,n)=>{var r=K();V(y(r),()=>t(n).inlines),s(r),g(e,r)}),s(r),g(e,r)},f=e=>{var r=J();d(r,21,()=>t(n).items,h,(e,n)=>{var r=K();V(y(r),()=>t(n).inlines),s(r),g(e,r)}),s(r),g(e,r)};r(a,e=>{t(n).type===`heading`?e(c):t(n).type===`paragraph`?e(l,1):t(n).ordered?e(u,2):e(f,-1)}),g(e,i)});var k=b(O,2),A=e=>{var n=Z(),i=y(n);S(i,()=>`h${m(0)}`,!1,(e,t)=>{o(e,0,`svelte-cw30hy`);var n=u(`Fields`);g(t,n)});var a=b(i,2);d(a,17,()=>t(x),e=>e.model,(e,n)=>{var i=X(),a=y(i),f=e=>{var r=_(),i=w(r);S(i,()=>`h${m(1)}`,!1,(e,r)=>{o(e,0,`svelte-cw30hy`);var i=u();T(()=>l(i,t(n).model)),g(r,i)}),g(e,r)};r(a,e=>{t(x).length>1&&e(f)});var p=b(a,2);d(p,21,()=>t(n).entries,e=>e.name,(e,n)=>{var r=Y(),i=w(r),a=C(i,!0),o=b(i,2),s=C(o,!0);T(()=>{l(a,t(n).label),l(s,t(n).text)}),g(e,r)}),s(p),s(i),T(()=>{D(i,`id`,`${c()}fields-${t(n).model}`),D(i,`aria-label`,`${t(n).model} fields`)}),g(e,i)}),s(n),g(e,n)};r(k,e=>{t(x).length&&e(A)}),s(E),g(e,E),a()}var ee=c(`<h2 class="svelte-1o06wj"> </h2> <p class="meta svelte-1o06wj"> </p>`,1),te=c(`<p class="svelte-1o06wj"> </p>`),ne=c(`<section class="svelte-1o06wj"><!> <!></section>`);function re(e,n){p(n,!0);let o=v(n,`titled`,3,!1),c=i(()=>j(n.recipe,N.rows)),u=i(()=>n.recipe.help?I(n.recipe.help,t(c)):void 0);var d=ne(),f=y(d),m=e=>{var t=ee(),r=w(t),i=C(r,!0),a=b(r,2),o=C(a,!0);T(()=>{D(r,`id`,`help-${n.recipe.id}`),l(i,n.recipe.label),l(o,n.recipe.summary)}),g(e,t)};r(f,e=>{o()&&e(m)});var h=b(f,2),_=e=>{{let r=i(()=>`${n.recipe.id}-`),a=i(()=>o()?3:2);$(e,{get blocks(){return t(u).blocks},get glossary(){return t(u).glossary},get idPrefix(){return t(r)},get startLevel(){return t(a)}})}},x=e=>{var t=te(),r=C(t);T(()=>l(r,`There is no help for ${n.recipe.label??``} yet.`)),g(e,t)};r(h,e=>{t(u)?e(_):e(x,-1)}),s(d),T(()=>D(d,`aria-label`,n.recipe.label)),g(e,d),a()}var ie=c(`<main class="svelte-1nuwlgo"><header class="svelte-1nuwlgo"><div class="bar svelte-1nuwlgo"><p class="meta svelte-1nuwlgo"><a>Planner</a> / <a> </a> / Help</p> <!></div> <h1 class="svelte-1nuwlgo"> </h1></header> <!> <!></main>`);function ae(e,o){p(o,!0);let c=i(()=>M(o.data.id)),u=i(()=>{let e=new Set;return(t(c)?.recipes??[]).flatMap(t=>A(t).flatMap(({model:t})=>e.has(t.id)?[]:(e.add(t.id),[N.apply(t).model])))});var f=_();n(`1nuwlgo`,e=>{x(()=>{E.title=`${t(c)?.label??o.data.id??``} help · smrt planner`})});var h=w(f),v=e=>{var n=ie(),r=y(n),a=y(r),o=y(a),f=y(o),p=b(f,2),h=C(p,!0);m(),s(o);var _=b(o,2);P(_,{get section(){return t(c).id},get label(){return t(c).label},current:`help`}),s(a);var v=b(a,2),x=C(v);s(r);var S=b(r,2);d(S,17,()=>t(c).recipes,e=>e.id,(e,n)=>{{let r=i(()=>t(c).recipes.length>1);re(e,{get recipe(){return t(n)},get titled(){return t(r)}})}});var w=b(S,2);L(w,{get models(){return t(u)}}),s(n),T((e,n)=>{D(f,`href`,e),D(p,`href`,n),l(h,t(c).label),l(x,`${t(c).label??``} help`)},[()=>O(`/`),()=>O(`/recipes/${t(c).id}/`)]),g(e,n)};r(h,e=>{t(c)&&e(v)}),g(e,f),a()}export{ae as component,R as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,F as o,Ft as s,G as c,H as l,J as u,Lt as d,Ot as f,U as p,W as m,X as h,Y as g,a as _,bt as v,ct as y,ft as b,gt as x,ht as S,it as C,mt as w,n as T,nt as E,pt as D,st as O,ut as k,v as A,vt as j,z as ee}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_ as M,g as N,p as P,t as F,v as te,yt as I}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,A as n,B as r,Ct as i,Dt as a,F as o,Ft as s,G as c,H as l,J as u,Lt as d,Ot as f,U as p,W as m,X as h,Y as g,a as _,bt as v,ct as y,ft as b,gt as x,ht as S,it as C,mt as w,n as T,nt as E,pt as D,st as O,ut as k,v as A,vt as j,z as ee}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_ as M,g as N,p as P,t as F,v as te,yt as I}from"../chunks/WqCtkIDw.js";import{d as L}from"../chunks/DRMpwqfm.js";import"../chunks/BP0RtFz5.js";import{s as R,u as z}from"../chunks/DIE02RSm.js";import{t as B}from"../chunks/D26vob6f.js";import{B as V,H,K as U,L as W}from"../chunks/CSVCiMHn.js";import{D as ne,b as G,n as K,x as q}from"../chunks/V9_dolQc.js";import{M as J,P as Y,U as re,V as X,_ as ie,b as Z,g as Q,t as $,v as ae,x as oe,z as se}from"../chunks/D4QZjNwd.js";import{i as ce,r as le,t as ue}from"../chunks/CO-Ek-HE.js";import{n as de}from"../chunks/Bnevj03f.js";import{r as fe}from"../chunks/D_U_DYjx.js";import{t as pe}from"../chunks/DaAfmwdu.js";import{t as me}from"../chunks/CEAekex5.js";import{r as he,t as ge}from"../chunks/CgAkqYsL.js";var _e=8e3,ve=262144,ye=class extends Error{};function be(e,t,n){let r=new AbortController,i=()=>r.abort();n?.addEventListener(`abort`,i,{once:!0}),n?.aborted&&r.abort();let a,o=new Promise((e,n)=>{a=setTimeout(()=>{r.abort(),n(new ye(`widget load timed out`))},t)});return Promise.race([Promise.resolve().then(()=>e(r.signal)),o]).finally(()=>{a!==void 0&&clearTimeout(a),n?.removeEventListener(`abort`,i)})}function xe(e,t){if(e===void 0)return!0;try{let n=JSON.stringify(e);return n!==void 0&&n.length<=t}catch{return!1}}async function Se(e,t,n,r,i={}){let a=U(e,{registry:n,definition:t}),o=i.timeoutMs??_e,s=i.maxDataLength??ve,c=await Promise.all(a.document.widgets.map(async e=>{let a=n.get(e.type),c={...e,status:`ready`};if(!a?.load)return c;let l=t=>({...e,status:`error`,error:{code:t}});try{let n=await be(n=>a.load?.(e.options,{...r,overviewId:t.id,signal:n}),o,r.signal);return xe(n,s)?n===void 0?c:{...c,data:n}:l(`invalid_data`)}catch(t){return i.onError?.({id:e.id,type:e.type},t),l(t instanceof ye?`timeout`:`load_failed`)}}));return{overviewId:t.id,widgets:c,issues:a.issues}}var Ce=e({entries:()=>we,load:()=>Te}),we=()=>{let e=[...se(Z).map(e=>`section:${e.id}`),`section:${J.id}`,...de.flatMap(e=>(e.document.layout?.customSections??[]).map(e=>e.id))];return[...new Set(e)].map(e=>({section:he(e)}))},Te=({params:e})=>({sectionId:ge(e.section)});function Ee(e,t){let n=e.flatMap(e=>ae(e)),r=new Map;for(let e of n){let t=X(e.packageId,e.model.name,e.key);if(r.has(t))continue;let i=ce(e.model.id,e.key,n);r.set(t,{id:t,model:e.model,path:Q(e),...e.noun?{noun:e.noun}:{},...i?{scope:i}:{}})}for(let e of Y(t)){if(r.has(e.id))continue;let t=I(e.packageId,e.modelName);t&&r.set(e.id,{id:e.id,model:t,path:Q({packageId:e.packageId,model:t})})}return r}function De(e,t){let n=new Set(e),r=[];for(let e of t){let t=ae(e).some(e=>n.has(X(e.packageId,e.model.name,e.key))),i=re(e);t&&!r.some(e=>e.id===i)&&r.push({id:i,label:e.group?.label??e.label})}return r}var Oe=new Map(se(Z).map(e=>[e.id,e])),ke=new Map(de.flatMap(e=>Object.entries(e.sectionDescriptions??{})));function Ae(e){if(e===`section:${J.id}`)return{icon:J.icon,description:J.description};if(e.startsWith(`section:`)){let t=Oe.get(e.slice(8));if(!t)return{};let n=t.recipes.find(e=>e.group?.summary)?.group?.summary;return{icon:t.icon,description:t.description??n}}let t=ke.get(e);return t?{description:t}:{}}function je(e,t=`Planner`){return e?.trim()||t}function Me(e,t){let n=new Set,r=[],i=(e,t)=>{n.has(e)||(n.add(e),r.push({value:e,label:M(P(t))}))};for(let t of e)for(let{model:e}of ie(t))i(e.id,e.name);for(let e of t.values())i(e.model.id,e.model.name);return r}var Ne=c(`<p class="svelte-2penap"> </p>`),Pe=c(`<header class="section-heading svelte-2penap"><span class="mark svelte-2penap"><!></span> <div class="heading svelte-2penap"><h1 class="svelte-2penap"> </h1> <!></div> <!></header>`);function Fe(e,t){var n=Pe(),i=b(n),a=b(i);R(a,{get name(){return t.icon},size:28}),s(i);var c=S(i,2),u=b(c),f=w(u,!0),m=S(u,2),h=e=>{var n=Ne(),r=w(n,!0);O(()=>l(r,t.description)),p(e,n)};r(m,e=>{t.description&&e(h)}),s(c);var g=S(c,2);o(g,()=>t.actions??d),s(n),O(()=>l(f,t.title)),p(e,n)}async function Ie(e,t,n,r){let i=(await Se({widgets:[n]},e,q,{...t,signal:r,locale:`en-US`})).widgets[0];if(!i||i.status===`error`)throw Error(i?.error?.code??`load_failed`);return i.data}function Le(e,t,n){let r=e.id;return V({definition:r.startsWith(`detail:`)?e:G(r,t.overview(r))??e,registry:q,override:()=>t.overview(r),onchange:e=>t.setOverview(r,e),...n?{loadWidget:(t,r)=>Ie(e,n(),t,r)}:{}})}var Re=(e,t=d,n=d)=>{var r=ze(),i=w(r,!0);O(()=>l(i,n())),p(e,r)},ze=c(`<span class="section-heading svelte-1qn3h3g"> </span>`);function Be(e,n){f(n,!0);let i=_(n,`presentation`,3,`card`),o=_(n,`href`,3,F),s=z(),c=fe(),l=Le(E(()=>n.definition),K,()=>({source:c,sections:s.sections,entryIndex:n.entries,href:o()})),u=v(void 0);y(()=>{let e=l.document.widgets.map(e=>e.type),t=!0;return H(e,q).then(e=>{t&&j(u,e,!0)}),()=>{t=!1}});function d(){for(let e of l.document.widgets)l.reload(e.id)}let h=!0;y(()=>{JSON.stringify(s.sections),n.entries,h?h=!1:E(d)}),y(()=>c.onReset?.(()=>d())),T(()=>l.destroy());var g=m(),b=D(g),x=e=>{W(e,{get controller(){return l},get models(){return n.models},get label(){return n.label},get presentation(){return i()},get heading(){return Re},get components(){return t(u)}})};r(b,e=>{t(u)&&e(x)}),p(e,g),a()}var Ve=c(`<section class="entries svelte-1jqhb2e" aria-labelledby="section-entries"><h2 id="section-entries" class="svelte-1jqhb2e">Menu entries</h2> <!></section>`),He=c(`<!> <!>`,1),Ue=c(`<h1>Section not found</h1> <p>This section is not in your app. <a>Back to the Planner</a></p>`,1),We=c(`<main class="section-view svelte-1jqhb2e"><!></main>`);function Ge(e,n){f(n,!0);let c=(e,n=d)=>{var a=m(),o=D(a),s=e=>{var r=u();O(e=>l(r,e),[()=>te(t(H).get(n().id)??0)]),p(e,r)},c=i(()=>t(H).has(n().id));r(o,e=>{t(c)&&e(s)}),p(e,a)},h=_(n,`href`,3,F),g=z(),C=fe(),w=ne(),T=i(()=>g.sections.find(e=>e.id===n.sectionId)),E=i(()=>w?.shell.sections.find(e=>e.id===n.sectionId)),k=i(()=>je(t(T)?.heading||t(E)?.label)),M=i(()=>t(T)?.icon??t(E)?.icon??`folder`),N=i(()=>Ae(n.sectionId).description??t(E)?.description),P=i(()=>t(T)?.items.map(e=>e.id)??[]),I=i(()=>$.ids.flatMap(e=>{let t=oe.get(e);return t?[t]:[]})),R=i(()=>Ee(t(I),$.features)),B=i(()=>G(n.sectionId)),V=i(()=>Me(t(I),t(R))),H=v(x(new Map)),U=0;async function W(){let e=++U,n=new Map;await Promise.all(t(P).map(async e=>{let r=t(R).get(e);if(!r)return;let i=await C.list(r.model);n.set(e,i.filter(e=>le(r.scope,e)).length)})),e===U&&j(H,n,!0)}y(()=>{t(P),t(R),W()}),y(()=>C.onReset?.(()=>void W()));var q=m(),J=D(q),Y=e=>{var a=We(),l=b(a),u=e=>{var a=He(),l=D(a);Fe(l,{get icon(){return t(M)},get title(){return t(k)},get description(){return t(N)},actions:e=>{var r=m(),i=D(r);o(i,()=>n.headerActions??d,()=>({title:t(k),itemIds:t(P)})),p(e,r)},$$slots:{actions:!0}});var u=S(l,2),f=e=>{var a=He(),o=D(a);ee(o,()=>n.sectionId,e=>{{let n=i(()=>`${t(k)} overview`);Be(e,{get definition(){return t(B)},get entries(){return t(R)},get models(){return t(V)},get href(){return h()},get label(){return t(n)}})}});var l=S(o,2),u=e=>{var t=Ve(),r=S(b(t),2);L(r,{get sectionId(){return n.sectionId},get meta(){return c}}),s(t),p(e,t)};r(l,e=>{g.editing&&e(u)}),p(e,a)},_=e=>{L(e,{get sectionId(){return n.sectionId},layout:`cards`,get meta(){return c},get actions(){return n.menuActions}})};r(u,e=>{t(B)?e(f):e(_,-1)}),p(e,a)},f=e=>{var t=Ue(),n=S(D(t),2),r=S(b(n));s(n),O(e=>A(r,`href`,e),[()=>h()(`/`)]),p(e,t)};r(l,e=>{t(T)?e(u):e(f,-1)}),s(a),p(e,a)};r(J,e=>{K.loaded&&e(Y)}),p(e,q),a()}var Ke=c(`<a class="new svelte-sp05yg"> </a>`);function qe(e,o){f(o,!0);let s=(e,n)=>{let a=()=>(n?.()).title,o=()=>(n?.()).itemIds,s=i(()=>De(o(),t(_)));var c=m(),l=D(c),u=e=>{pe(e,{get section(){return t(s)[0].id},get label(){return t(s)[0].label}})},d=e=>{me(e,{get label(){return a()},get groups(){return t(s)}})};r(l,e=>{t(s).length===1?e(u):t(s).length>1&&e(d,1)}),p(e,c)},c=(e,n=d)=>{let a=i(()=>y(n()));var o=m(),s=D(o),c=e=>{var r=Ke(),i=w(r);O(()=>{A(r,`href`,n().href),l(i,`New ${t(a)??``}`)}),h(`click`,r,()=>b(n())),p(e,r)};r(s,e=>{t(a)&&e(c)}),p(e,o)},u=z(),g=i(()=>je(u.sections.find(e=>e.id===o.sectionId)?.heading)),_=i(()=>$.ids.flatMap(e=>{let t=oe.get(e);return t?[t]:[]})),v=i(()=>Ee(t(_),$.features)),y=e=>{let n=t(v).get(e.id);return n?N(e.label,n.noun):void 0};function b(e){ue(new URL(e.href,B.url).pathname)}n(`sp05yg`,e=>{C(()=>{k.title=`${t(g)??``} · smrt planner`})}),Ge(e,{get sectionId(){return o.sectionId},get headerActions(){return s},get menuActions(){return c}}),a()}g([`click`]);function Je(e,t){f(t,!0),qe(e,{get sectionId(){return t.data.sectionId}}),a()}export{Je as component,Ce as universal};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,C as r,Ct as i,Dt as a,E as o,Et as s,Ft as c,G as l,H as u,J as d,K as f,L as p,M as m,Mt as h,Ot as g,Pt as _,S as v,T as y,U as b,W as x,X as S,Y as C,Z as w,_ as T,a as E,b as D,bt as O,ct as k,d as A,dt as j,ft as M,gt as N,ht as P,it as F,lt as I,mt as L,nt as R,pt as z,r as B,st as V,tt as ee,ut as H,v as U,vt as W,wt as te}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{i as G,o as K}from"../chunks/BLUInGBV.js";import{a as ne}from"../chunks/Bq8E3AWP.js";import{At as re,Mt as ie,Nt as ae,W as q,_t as oe,ct as se,i as ce,jt as le,ot as ue,p as J,st as de,t as fe}from"../chunks/
|
|
1
|
+
import{$ as e,A as t,B as n,C as r,Ct as i,Dt as a,E as o,Et as s,Ft as c,G as l,H as u,J as d,K as f,L as p,M as m,Mt as h,Ot as g,Pt as _,S as v,T as y,U as b,W as x,X as S,Y as C,Z as w,_ as T,a as E,b as D,bt as O,ct as k,d as A,dt as j,ft as M,gt as N,ht as P,it as F,lt as I,mt as L,nt as R,pt as z,r as B,st as V,tt as ee,ut as H,v as U,vt as W,wt as te}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{i as G,o as K}from"../chunks/BLUInGBV.js";import{a as ne}from"../chunks/Bq8E3AWP.js";import{At as re,Mt as ie,Nt as ae,W as q,_t as oe,ct as se,i as ce,jt as le,ot as ue,p as J,st as de,t as fe}from"../chunks/WqCtkIDw.js";import{n as Y}from"../chunks/DK8Blf1Y.js";import{E as pe,a as me,g as he,m as ge}from"../chunks/DRMpwqfm.js";import{b as _e,n as ve}from"../chunks/v8gneLl4.js";import{t as ye}from"../chunks/BP0RtFz5.js";import{p as be,u as xe}from"../chunks/DIE02RSm.js";import{f as Se,g as Ce,o as we,p as Te}from"../chunks/D5J0PCfu.js";import{r as Ee}from"../chunks/CUyVrfsu.js";import{a as De,b as Oe,i as ke,n as Ae,p as je,t as Me,x as Ne,y as Pe}from"../chunks/CGVkRTMI.js";import{a as Fe,d as Ie,f as Le,g as Re,h as ze,i as X,m as Be,o as Ve,p as He,u as Ue,x as We,y as Ge}from"../chunks/eg3CcFX4.js";import"../chunks/CSVCiMHn.js";import{_ as Ke,a as qe,m as Je,n as Z,s as Ye}from"../chunks/V9_dolQc.js";import{$ as Xe,F as Ze,I as Qe,L as $e,M as et,N as tt,R as nt,a as rt,b as it,i as at,nt as ot,t as Q,u as st,x as ct,z as lt}from"../chunks/D4QZjNwd.js";import{S as ut,g as dt,h as ft,m as pt,v as mt}from"../chunks/DWyzkubm.js";import{n as ht,r as gt,t as _t}from"../chunks/Bnevj03f.js";import{n as vt,r as yt,t as bt}from"../chunks/D_U_DYjx.js";import{_ as xt,c as $,d as St,f as Ct,g as wt,h as Tt,i as Et,l as Dt,m as Ot,n as kt,o as At,p as jt,r as Mt,t as Nt,u as Pt}from"../chunks/Bm8-8G4Y.js";import{r as Ft}from"../chunks/BMgzWMdF.js";import{t as It}from"../chunks/CL9bwSUa.js";import{n as Lt,s as Rt,t as zt}from"../chunks/B9_h_mHe.js";import{t as Bt}from"../chunks/C719Tukc.js";var Vt={bread:[`M7 3h10a4 4 0 0 1 2.4 7.2L20 19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2l.6-8.8A4 4 0 0 1 7 3z`,`M9 13l1 3`,`M14 13l1 3`],car:[`M5 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0`,`M15 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0`,`M5 17h-2v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0h-6m-6-6h15m-6 0v-5`],flame:[`M12 12c2-2.96 0-7-1-8 0 3.038-1.773 4.741-3 6-1.226 1.26-2 3.24-2 5a6 6 0 1 0 12 0c0-1.532-1.056-3.94-2-5-1.786 3-2.791 3-4 2z`],yoga:[`M11 4a1 1 0 1 0 2 0a1 1 0 1 0-2 0`,`M4 20h4l1.5-3`,`M17 20l-1-5h-5l1-7`,`M4 10l4-1l4-1l4 1.5l4 1.5`],leaf:[`M5 21c.5-4.5 2.5-8 7-10`,`M9 18c6.218 0 10.5-3.288 11-12v-2h-4.014c-9 0-11.986 4-12 9c0 1 0 3 2 5h3z`],scissors:[`M6 7m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0`,`M6 17m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0`,`M8.6 8.6l10.4 10.4`,`M8.6 15.4l10.4-10.4`],coffee:[`M3 14c.83.642 2.077 1.017 3.5 1c1.423.017 2.67-.358 3.5-1c.83-.642 2.077-1.017 3.5-1c1.423-.017 2.67.358 3.5 1`,`M8 3a2.4 2.4 0 0 0-1 2a2.4 2.4 0 0 0 1 2`,`M12 3a2.4 2.4 0 0 0-1 2a2.4 2.4 0 0 0 1 2`,`M3 10h14v5a6 6 0 0 1-6 6h-2a6 6 0 0 1-6-6v-5z`,`M16.746 16.726a3 3 0 1 0 .252-5.555`],forklift:[`M5 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0`,`M13 17m-2 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0`,`M7 17h4`,`M3 17v-6h13v6`,`M5 11v-4h4`,`M9 11v-6h4l3 6`,`M22 15h-3v-10`,`M16 13h3`],heart:[`M19.5 12.572l-7.5 7.428l-7.5-7.428a5 5 0 1 1 7.5-6.566a5 5 0 1 1 7.5 6.572`],pencil:[`M4 20h4l10.5-10.5a2.828 2.828 0 1 0-4-4l-10.5 10.5v4`,`M13.5 6.5l4 4`],tool:[`M7 10h3v-3l-3.5-3.5a6 6 0 0 1 8 8l6 6a2 2 0 0 1-3 3l-6-6a6 6 0 0 1-8-8l3.5 3.5`],bolt:[`M13 3v7h6l-8 11v-7H5l8-11`],brush:[`M3 21v-4a4 4 0 1 1 4 4h-4`,`M21 3a16 16 0 0 0-12.8 10.2`,`M21 3a16 16 0 0 1-10.2 12.8`,`M10.6 9a9 9 0 0 1 4.4 4.4`],home:[`M5 12H3l9-9l9 9h-2`,`M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7`,`M9 21v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v6`],music:[`M3 17a3 3 0 1 0 6 0a3 3 0 0 0-6 0`,`M13 17a3 3 0 1 0 6 0a3 3 0 0 0-6 0`,`M9 17v-13h10v13`,`M9 8h10`],microphone:[`M15 12.9a5 5 0 1 0-3.902-3.9`,`M15 12.9l-3.902-3.899l-7.513 8.584a2 2 0 1 0 2.827 2.83l8.588-7.515z`]};ne({"ui.audit.history":`Record history`,"ui.audit.list":`Audit trail`,"ui.audit.empty":`No audit entries.`,"ui.audit.loading":`Loading audit entries…`,"ui.audit.person":`Person ID`,"ui.audit.record":`Record ID`,"ui.audit.from":`From date`,"ui.audit.to":`To date`,"ui.audit.filter":`Apply filters`,"ui.audit.reason":`Reason: {reason}`,"ui.audit.behalf":`On behalf of {actor}`,"ui.audit.change":`{field}: {before} → {after}`}),ne({"ui.notification_bell.label":`Notifications`,"ui.notification_bell.unread":`{count} unread`,"ui.notification_bell.mark_all":`Mark all read`,"ui.notification_bell.mark_one":`Mark read`,"ui.notification_bell.loading":`Loading notifications`,"ui.notification_bell.empty":`No notifications.`,"ui.notification_bell.unavailable":`Notifications are unavailable.`,"ui.notification_bell.mark_error":`Could not mark notifications read.`,"ui.notification_bell.live_error":`Live notifications are unavailable.`}),C([`click`]);var Ht=l(`<option>Per line</option> <option>Once per document</option>`,1),Ut=l(`<option></option>`),Wt=l(`<li class="svelte-1adyoey"><span class="name"> </span> <span class="rates svelte-1adyoey"> </span></li>`),Gt=l(`<div class="settings svelte-1adyoey"><div class="field svelte-1adyoey"><!> <!></div> <div class="percent svelte-1adyoey"><!> <span class="percent-sign svelte-1adyoey" aria-hidden="true">%</span></div> <div class="field svelte-1adyoey"><!> <!></div> <div class="field switch svelte-1adyoey"><!> <small class="svelte-1adyoey"> </small></div> <div class="field svelte-1adyoey"><!> <!> <datalist></datalist></div></div> <section class="tax-codes svelte-1adyoey"><h3 class="svelte-1adyoey">Tax codes</h3> <p class="meta svelte-1adyoey">New documents use <strong> </strong> </p> <ul class="svelte-1adyoey"></ul> <p class="meta svelte-1adyoey">The country codes are smrt’s examples; check they apply before using one.</p></section>`,1);function Kt(t,n){g(n,!0);let r=E(n,`idPrefix`,3,`app-settings`),o=[`Due on receipt`,`Net 15`,`Net 30`,`Net 60`,`50% deposit, balance on completion`],s=e=>n.onchange({...n.value,...e}),l=i(()=>se(n.value.taxRate)),d=i(()=>[...de,...ue].filter(t=>t.id!==e(l).id)),f=e=>e.components.map(e=>e.name).join(` + `)||`No tax, reported as ${e.kind.replace(/-/g,` `)}`;var m=Gt(),h=z(m),v=M(h),y=M(v);Ne(y,{get for(){return`${r()??``}-currency`},label:`Currency`});var x=P(y,2);Pe(x,{get id(){return`${r()??``}-currency`},get value(){return n.value.currency},onchange:e=>s({currency:e.currentTarget.value})}),c(v);var S=P(v,2),C=M(S);{let t=i(()=>zt(n.value.taxRate));Rt(C,{get name(){return`${r()??``}-tax-rate`},label:`Default tax rate`,min:0,step:.01,get value(){return e(t)},onchange:e=>s({taxRate:Lt(e)??0})})}_(2),c(S);var w=P(S,2),T=M(w);Ne(T,{get for(){return`${r()??``}-rounding`},label:`Tax rounding`});var D=P(T,2);Oe(D,{get id(){return`${r()??``}-rounding`},get value(){return n.value.taxRounding},onchange:e=>s({taxRounding:e.currentTarget.value}),children:(e,t)=>{var n=Ht(),r=z(n);r.value=r.__value=`line`;var i=P(r,2);i.value=i.__value=`document`,b(e,n)},$$slots:{default:!0}}),c(w);var O=P(w,2),k=M(O);ke(k,{get checked(){return n.value.pricesIncludeTax},onchange:e=>s({pricesIncludeTax:e.currentTarget.checked}),label:`Prices include tax`});var A=P(k,2),j=L(A,!0);c(O);var N=P(O,2),F=M(N);Ne(F,{get for(){return`${r()??``}-terms`},label:`Default payment terms`});var I=P(F,2);ve(I,{get id(){return`${r()??``}-terms`},type:`text`,get list(){return`${r()??``}-terms-options`},autocomplete:`off`,placeholder:`Not set`,get value(){return n.value.paymentTerms},oninput:e=>s({paymentTerms:e.currentTarget.value})});var R=P(I,2);p(R,20,()=>o,e=>e,(e,t)=>{var n=Ut(),r={};V(()=>{r!==(r=t)&&(n.value=(n.__value=r)??``)}),b(e,n)}),c(R),c(N),c(h);var B=P(h,2),ee=M(B),H=P(ee,2),W=P(M(H)),te=L(W,!0),G=P(W);c(H);var K=P(H,2);p(K,21,()=>e(d),e=>e.id,(t,n)=>{var r=Wt(),i=M(r),a=L(i,!0),o=P(i,2),s=L(o,!0);c(r),V(t=>{U(r,`data-tax-code`,e(n).code),u(a,e(n).name),u(s,t)},[()=>f(e(n))]),b(t,r)}),c(K),_(2),c(B),V(t=>{u(j,n.value.pricesIncludeTax?`A line’s amount is what the customer pays; tax is part of it.`:`Tax is added on top of each line’s amount.`),U(R,`id`,`${r()??``}-terms-options`),U(B,`aria-labelledby`,`${r()??``}-tax-codes`),U(ee,`id`,`${r()??``}-tax-codes`),u(te,e(l).name),u(G,` (${t??``}),
|
|
2
2
|
from the default tax rate. A line can choose another code; an exempt
|
|
3
3
|
customer pays none.`)},[()=>f(e(l))]),b(t,m),a()}var qt=f(`<path></path>`),Jt=l(`<span class="badge svelte-mzas8k">In use</span>`),Yt=l(`<li><button type="button" class="card svelte-mzas8k"><span class="heading svelte-mzas8k"><svg class="icon svelte-mzas8k" viewBox="0 0 24 24" width="28" height="28" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"></svg> <span class="name svelte-mzas8k"> </span></span> <span class="summary svelte-mzas8k"> </span> <!></button></li>`),Xt=l(`<ul class="grid svelte-mzas8k" aria-label="Cookbooks"></ul>`),Zt=l(`<span aria-hidden="true">←</span> Back to cookbooks`,1),Qt=l(`<li class="svelte-mzas8k"> </li>`),$t=l(`<li> </li>`),en=l(`<div><h4 class="svelte-mzas8k"> </h4> <ul class="svelte-mzas8k"></ul></div>`),tn=l(`<section class="preview svelte-mzas8k" aria-labelledby="preview-heading"><div class="back svelte-mzas8k"><!></div> <h2 id="preview-heading" tabindex="-1" class="svelte-mzas8k"> </h2> <p class="summary svelte-mzas8k"> </p> <div class="block svelte-mzas8k"><h3 class="svelte-mzas8k">Recipes</h3> <ul class="chips svelte-mzas8k" aria-label="Recipes"></ul></div> <div class="block svelte-mzas8k"><h3 class="svelte-mzas8k">Menu</h3> <div class="menu svelte-mzas8k"></div></div> <div class="block svelte-mzas8k"><h3 class="svelte-mzas8k">Settings</h3> <!></div> <div class="actions svelte-mzas8k"><!> <span class="meta svelte-mzas8k">Replaces your current recipes, menu and sample records.</span></div></section>`),nn=l(`<div class="cookbooks svelte-mzas8k"><!> <p class="meta svelte-mzas8k">A cookbook is a ready-made starting point: the recipes, menu and settings a
|
|
4
4
|
kind of business usually needs. Pick one, look it over, then change
|
|
5
|
-
anything in the other tabs.</p> <div class="swap svelte-mzas8k"><!></div> <!></div> <!>`,1);function rn(t,r){g(r,!0);let o=yt(),s=pe(),l=O(!1),f=O(``),m=O(``);B(()=>{mt.load()});let v=i(()=>ht.find(e=>e.id===At.open)),y=O(null),x=O(null),C;k(()=>{let t=e(v)?.id??null,n=C===void 0,r=C!==t;C=t,!n&&r&&ee().then(()=>{if(t){e(x)?.scrollIntoView({block:`nearest`}),e(x)?.focus({preventScroll:!0});return}let n=e(y)?.querySelector(`[data-cookbook="${At.returnTo??``}"]`);n?.scrollIntoView({block:`nearest`}),n?.focus({preventScroll:!0})})});function w(e){W(m,``),W(f,``),At.show(e.id)}function T(){At.back()}function E(t){t.key!==`Escape`||t.defaultPrevented||e(l)||(t.preventDefault(),T())}let D=O(N(st(void 0)));k(()=>{W(D,st(e(v)?.settings),!0)});let j=e=>mt.active===e.id&&wt(e,{recipes:Q.ids,features:Q.features});function F(){e(v)&&(xt(Z)?W(l,!0):I())}function I(){if(W(l,!1),!e(v))return;let t=Tt(e(v),Z,h(e(D)));if(t.ok){o.reset?.(),W(f,``);let t=Ot(e(v).document).length;W(m,`${e(v).name} added ${t} menu sections. Explore them in the left sidebar.`),s?.setPanelState(`left`,`expanded`)}else W(f,t.error,!0),W(m,``)}var R=nn(),H=z(R),te=M(H),ne=t=>{K(t,{variant:`success`,title:`Cookbook applied`,children:(t,n)=>{_();var r=d();V(()=>u(r,e(m))),b(t,r)},$$slots:{default:!0}})};n(te,t=>{e(m)&&t(ne)});var re=P(te,4),ie=M(re),ae=t=>{var r=Xt();p(r,21,()=>ht,e=>e.id,(t,r)=>{let a=i(()=>j(e(r)));var o=Yt(),s=M(o),l=M(s),d=M(l);p(d,20,()=>Vt[e(r).icon]??[],e=>e,(e,t)=>{var n=qt();V(()=>U(n,`d`,t)),b(e,n)}),c(d);var f=P(d,2),m=L(f,!0);c(l);var h=P(l,2),g=L(h,!0),_=P(h,2),v=e=>{var t=Jt();b(e,t)};n(_,t=>{e(a)&&t(v)}),c(s),c(o),V(()=>{U(s,`data-cookbook`,e(r).id),u(m,e(r).name),u(g,e(r).summary)}),S(`click`,s,()=>w(e(r))),b(t,o)}),c(r),A(r,e=>W(y,e),()=>e(y)),b(t,r)},q=t=>{let n=i(()=>Ot(e(v).document));var r=tn(),a=M(r),o=M(a);Y(o,{variant:`ghost`,onclick:T,children:(e,t)=>{var n=Zt();_(),b(e,n)},$$slots:{default:!0}}),c(a);var s=P(a,2),l=L(s,!0);A(s,e=>W(x,e),()=>e(x));var f=P(s,2),m=L(f,!0),h=P(f,2),g=P(M(h),2);p(g,20,()=>gt(e(v)),e=>e,(e,t)=>{var n=Qt(),r=L(n,!0);V(()=>u(r,t)),b(e,n)}),c(g),c(h);var y=P(h,2),C=P(M(y),2);p(C,21,()=>e(n),e=>e.id,(t,n)=>{var r=en(),i=M(r),a=L(i,!0),o=P(i,2);p(o,21,()=>e(n).entries,e=>e.id,(t,n)=>{var r=$t(),i=L(r,!0);V(()=>u(i,e(n).label)),b(t,r)}),c(o),c(r),V(()=>u(a,e(n).label)),b(t,r)}),c(C),c(y);var w=P(y,2);Kt(P(M(w),2),{get value(){return e(D)},onchange:e=>W(D,e,!0),idPrefix:`cookbook-settings`}),c(w);var O=P(w,2),k=M(O);Y(k,{onclick:F,children:(e,t)=>{_();var n=d(`Use this cookbook`);b(e,n)},$$slots:{default:!0}}),_(2),c(O),c(r),V(()=>{U(r,`data-cookbook-detail`,e(v).id),u(l,e(v).name),u(m,e(v).summary)}),S(`keydown`,r,E),b(t,r)};n(ie,t=>{e(v)?t(q,-1):t(ae)}),c(re);var oe=P(re,2),se=t=>{K(t,{variant:`error`,title:`Could not use this cookbook`,children:(t,n)=>{_();var r=d();V(()=>u(r,e(f))),b(t,r)},$$slots:{default:!0}})};n(oe,t=>{e(f)&&t(se)}),c(H);var ce=P(H,2);{let t=i(()=>e(v)?`Use the ${e(v).name} cookbook?`:`Use this cookbook?`);G(ce,{get open(){return e(l)},get title(){return e(t)},message:`Replaces your current recipes, menu and sample records.`,confirmLabel:`Replace`,destructive:!0,onconfirm:I,oncancel:()=>W(l,!1)})}b(t,R),a()}C([`click`,`keydown`]);var an=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,on=new Map(lt(it).map(e=>[e.id,e.label]));function sn(e){return J(e.slice(e.lastIndexOf(`:`)+1))}function cn(e){let t=new Map;for(let n of e){let e=sn(n.objectRef),r=t.get(e)??[],i=J(n.fieldName).toLowerCase();r.includes(i)||r.push(i),t.set(e,r)}return[...t].map(([e,t])=>`${e}: ${t.join(`, `)}`)}function ln(e){let t=[];e.custom?t.push(`brand colour ${e.custom.primary}`):e.preset&&e.preset!==`glass`&&t.push(`${Te(e.preset)?Se(e.preset):e.preset} preset`),e.colorScheme&&e.colorScheme!==`system`&&t.push(`${e.colorScheme} scheme`);let n=e.fontFamily??e.custom?.fontFamily;return n&&t.push(`${n} font`),e.borderRadius&&t.push(`${e.borderRadius} corners`),e.density===`touch`&&t.push(`touch density`),e.contrast&&e.contrast!==`auto`&&t.push(`${e.contrast} contrast`),e.customCss?.trim()&&t.push(`custom CSS`),t}function un(e){let t=[],n=e.customSections??[];if(n.length){let e=n.map(e=>e.label).filter(Boolean);t.push(`${an(n.length,`custom section`)}${e.length&&e.length<=4?` (${e.join(`, `)})`:``}`)}let r=e.hidden?.length??0;r&&t.push(`${r} hidden`);let i=Object.values(e.items??{}).filter(e=>e.label).length+Object.values(e.sections??{}).filter(e=>e.label||e.icon||e.showTitle===!1).length;i&&t.push(`${i} renamed or restyled`);let a=Object.keys(e.moved??{}).length;a&&t.push(`${a} moved`),(e.sectionOrder?.length||Object.keys(e.itemOrder??{}).length)&&t.push(`reordered`);let o=Object.keys(e.placements??{}).length;return o&&t.push(`${an(o,`shell item`)} placed`),Object.keys(e.panels??{}).length&&t.push(`panel settings`),t}function dn(e,t){if(e===`section:${et.id}`)return et.label;if(e.startsWith(`section:`)){let n=e.slice(8);return t?.sections?.[e]?.label??on.get(n)??J(n)}if(e.startsWith(`custom:`))return t?.customSections?.find(t=>t.id===e)?.label??J(e.slice(7));if(e.startsWith(`detail:`)){let t=e.slice(e.lastIndexOf(`.`)+1);return`${J(t)} record`}return J(e)}function fn(e){let t=[];e.recipes.length&&t.push({id:`recipes`,label:an(e.recipes.length,`recipe`),chips:e.recipes.map(e=>ct.get(e)?.label??e)}),e.features.length&&t.push({id:`features`,label:an(e.features.length,`feature`),chips:e.features.map(sn)}),e.policies.length&&t.push({id:`options`,label:an(e.policies.length,`saved option`),chips:cn(e.policies)});let n=Object.entries(e.exposure??{}).filter(([,e])=>e.length);n.length&&t.push({id:`exposure`,label:`Surfaces switched off`,chips:n.map(([e,t])=>`${sn(e)}: ${t.join(`, `)}`)});let r=e.theme?ln(e.theme):[];r.length&&t.push({id:`theme`,label:`Theme`,text:r.join(`, `)});let i=e.layout?un(e.layout):[];i.length&&t.push({id:`layout`,label:`Layout`,text:i.join(`, `)});let a=Object.keys(e.overviews??{});return a.length&&t.push({id:`pages`,label:an(a.length,`customised page`),chips:a.map(t=>dn(t,e.layout))}),t}function pn(e){let t=fn(e);if(!t.length)return`an empty cookbook`;let n=t.map(e=>e.id===`theme`?`a theme`:e.id===`layout`?`a layout`:e.id===`exposure`?`narrowed surfaces`:e.label);return n.length===1?n[0]:`${n.slice(0,-1).join(`, `)} and ${n.at(-1)}`}var mn=`0.60.
|
|
6
|
-
`)),r=t;for(let e=1;n.has(r);e++)r=`${t}_${e}`;return r}function Cn(e,t={}){let n=t.version??`0.60.
|
|
5
|
+
anything in the other tabs.</p> <div class="swap svelte-mzas8k"><!></div> <!></div> <!>`,1);function rn(t,r){g(r,!0);let o=yt(),s=pe(),l=O(!1),f=O(``),m=O(``);B(()=>{mt.load()});let v=i(()=>ht.find(e=>e.id===At.open)),y=O(null),x=O(null),C;k(()=>{let t=e(v)?.id??null,n=C===void 0,r=C!==t;C=t,!n&&r&&ee().then(()=>{if(t){e(x)?.scrollIntoView({block:`nearest`}),e(x)?.focus({preventScroll:!0});return}let n=e(y)?.querySelector(`[data-cookbook="${At.returnTo??``}"]`);n?.scrollIntoView({block:`nearest`}),n?.focus({preventScroll:!0})})});function w(e){W(m,``),W(f,``),At.show(e.id)}function T(){At.back()}function E(t){t.key!==`Escape`||t.defaultPrevented||e(l)||(t.preventDefault(),T())}let D=O(N(st(void 0)));k(()=>{W(D,st(e(v)?.settings),!0)});let j=e=>mt.active===e.id&&wt(e,{recipes:Q.ids,features:Q.features});function F(){e(v)&&(xt(Z)?W(l,!0):I())}function I(){if(W(l,!1),!e(v))return;let t=Tt(e(v),Z,h(e(D)));if(t.ok){o.reset?.(),W(f,``);let t=Ot(e(v).document).length;W(m,`${e(v).name} added ${t} menu sections. Explore them in the left sidebar.`),s?.setPanelState(`left`,`expanded`)}else W(f,t.error,!0),W(m,``)}var R=nn(),H=z(R),te=M(H),ne=t=>{K(t,{variant:`success`,title:`Cookbook applied`,children:(t,n)=>{_();var r=d();V(()=>u(r,e(m))),b(t,r)},$$slots:{default:!0}})};n(te,t=>{e(m)&&t(ne)});var re=P(te,4),ie=M(re),ae=t=>{var r=Xt();p(r,21,()=>ht,e=>e.id,(t,r)=>{let a=i(()=>j(e(r)));var o=Yt(),s=M(o),l=M(s),d=M(l);p(d,20,()=>Vt[e(r).icon]??[],e=>e,(e,t)=>{var n=qt();V(()=>U(n,`d`,t)),b(e,n)}),c(d);var f=P(d,2),m=L(f,!0);c(l);var h=P(l,2),g=L(h,!0),_=P(h,2),v=e=>{var t=Jt();b(e,t)};n(_,t=>{e(a)&&t(v)}),c(s),c(o),V(()=>{U(s,`data-cookbook`,e(r).id),u(m,e(r).name),u(g,e(r).summary)}),S(`click`,s,()=>w(e(r))),b(t,o)}),c(r),A(r,e=>W(y,e),()=>e(y)),b(t,r)},q=t=>{let n=i(()=>Ot(e(v).document));var r=tn(),a=M(r),o=M(a);Y(o,{variant:`ghost`,onclick:T,children:(e,t)=>{var n=Zt();_(),b(e,n)},$$slots:{default:!0}}),c(a);var s=P(a,2),l=L(s,!0);A(s,e=>W(x,e),()=>e(x));var f=P(s,2),m=L(f,!0),h=P(f,2),g=P(M(h),2);p(g,20,()=>gt(e(v)),e=>e,(e,t)=>{var n=Qt(),r=L(n,!0);V(()=>u(r,t)),b(e,n)}),c(g),c(h);var y=P(h,2),C=P(M(y),2);p(C,21,()=>e(n),e=>e.id,(t,n)=>{var r=en(),i=M(r),a=L(i,!0),o=P(i,2);p(o,21,()=>e(n).entries,e=>e.id,(t,n)=>{var r=$t(),i=L(r,!0);V(()=>u(i,e(n).label)),b(t,r)}),c(o),c(r),V(()=>u(a,e(n).label)),b(t,r)}),c(C),c(y);var w=P(y,2);Kt(P(M(w),2),{get value(){return e(D)},onchange:e=>W(D,e,!0),idPrefix:`cookbook-settings`}),c(w);var O=P(w,2),k=M(O);Y(k,{onclick:F,children:(e,t)=>{_();var n=d(`Use this cookbook`);b(e,n)},$$slots:{default:!0}}),_(2),c(O),c(r),V(()=>{U(r,`data-cookbook-detail`,e(v).id),u(l,e(v).name),u(m,e(v).summary)}),S(`keydown`,r,E),b(t,r)};n(ie,t=>{e(v)?t(q,-1):t(ae)}),c(re);var oe=P(re,2),se=t=>{K(t,{variant:`error`,title:`Could not use this cookbook`,children:(t,n)=>{_();var r=d();V(()=>u(r,e(f))),b(t,r)},$$slots:{default:!0}})};n(oe,t=>{e(f)&&t(se)}),c(H);var ce=P(H,2);{let t=i(()=>e(v)?`Use the ${e(v).name} cookbook?`:`Use this cookbook?`);G(ce,{get open(){return e(l)},get title(){return e(t)},message:`Replaces your current recipes, menu and sample records.`,confirmLabel:`Replace`,destructive:!0,onconfirm:I,oncancel:()=>W(l,!1)})}b(t,R),a()}C([`click`,`keydown`]);var an=(e,t,n=`${t}s`)=>`${e} ${e===1?t:n}`,on=new Map(lt(it).map(e=>[e.id,e.label]));function sn(e){return J(e.slice(e.lastIndexOf(`:`)+1))}function cn(e){let t=new Map;for(let n of e){let e=sn(n.objectRef),r=t.get(e)??[],i=J(n.fieldName).toLowerCase();r.includes(i)||r.push(i),t.set(e,r)}return[...t].map(([e,t])=>`${e}: ${t.join(`, `)}`)}function ln(e){let t=[];e.custom?t.push(`brand colour ${e.custom.primary}`):e.preset&&e.preset!==`glass`&&t.push(`${Te(e.preset)?Se(e.preset):e.preset} preset`),e.colorScheme&&e.colorScheme!==`system`&&t.push(`${e.colorScheme} scheme`);let n=e.fontFamily??e.custom?.fontFamily;return n&&t.push(`${n} font`),e.borderRadius&&t.push(`${e.borderRadius} corners`),e.density===`touch`&&t.push(`touch density`),e.contrast&&e.contrast!==`auto`&&t.push(`${e.contrast} contrast`),e.customCss?.trim()&&t.push(`custom CSS`),t}function un(e){let t=[],n=e.customSections??[];if(n.length){let e=n.map(e=>e.label).filter(Boolean);t.push(`${an(n.length,`custom section`)}${e.length&&e.length<=4?` (${e.join(`, `)})`:``}`)}let r=e.hidden?.length??0;r&&t.push(`${r} hidden`);let i=Object.values(e.items??{}).filter(e=>e.label).length+Object.values(e.sections??{}).filter(e=>e.label||e.icon||e.showTitle===!1).length;i&&t.push(`${i} renamed or restyled`);let a=Object.keys(e.moved??{}).length;a&&t.push(`${a} moved`),(e.sectionOrder?.length||Object.keys(e.itemOrder??{}).length)&&t.push(`reordered`);let o=Object.keys(e.placements??{}).length;return o&&t.push(`${an(o,`shell item`)} placed`),Object.keys(e.panels??{}).length&&t.push(`panel settings`),t}function dn(e,t){if(e===`section:${et.id}`)return et.label;if(e.startsWith(`section:`)){let n=e.slice(8);return t?.sections?.[e]?.label??on.get(n)??J(n)}if(e.startsWith(`custom:`))return t?.customSections?.find(t=>t.id===e)?.label??J(e.slice(7));if(e.startsWith(`detail:`)){let t=e.slice(e.lastIndexOf(`.`)+1);return`${J(t)} record`}return J(e)}function fn(e){let t=[];e.recipes.length&&t.push({id:`recipes`,label:an(e.recipes.length,`recipe`),chips:e.recipes.map(e=>ct.get(e)?.label??e)}),e.features.length&&t.push({id:`features`,label:an(e.features.length,`feature`),chips:e.features.map(sn)}),e.policies.length&&t.push({id:`options`,label:an(e.policies.length,`saved option`),chips:cn(e.policies)});let n=Object.entries(e.exposure??{}).filter(([,e])=>e.length);n.length&&t.push({id:`exposure`,label:`Surfaces switched off`,chips:n.map(([e,t])=>`${sn(e)}: ${t.join(`, `)}`)});let r=e.theme?ln(e.theme):[];r.length&&t.push({id:`theme`,label:`Theme`,text:r.join(`, `)});let i=e.layout?un(e.layout):[];i.length&&t.push({id:`layout`,label:`Layout`,text:i.join(`, `)});let a=Object.keys(e.overviews??{});return a.length&&t.push({id:`pages`,label:an(a.length,`customised page`),chips:a.map(t=>dn(t,e.layout))}),t}function pn(e){let t=fn(e);if(!t.length)return`an empty cookbook`;let n=t.map(e=>e.id===`theme`?`a theme`:e.id===`layout`?`a layout`:e.id===`exposure`?`narrowed surfaces`:e.label);return n.length===1?n[0]:`${n.slice(0,-1).join(`, `)} and ${n.at(-1)}`}var mn=`0.60.12`,hn=`Node 26 or newer`,gn=`pnpm 11`,_n=`cookbook.json`,vn=`COOKBOOK_EOF`;function yn(e=mn){return`npx -y @happyvertical/smrt-cli@${e}`}function bn(e,t){return ze(e.name)||ze(t)||`my-app`}function xn(e,t,n=mn){return`${yn(n)} cookbook apply ${e} ${t}`}function Sn(e,t=vn){let n=new Set(e.split(`
|
|
6
|
+
`)),r=t;for(let e=1;n.has(r);e++)r=`${t}_${e}`;return r}function Cn(e,t={}){let n=t.version??`0.60.12`,r=bn(e,t.fallbackName),i=JSON.stringify(e),a=Sn(i),o=yn(n),s=[`Create a new s-m-r-t app from the cookbook below. Work in a new, empty directory outside any existing project, run the steps in order, and when you finish report what you ran and what happened, including anything that failed.`,``,`1. Prerequisites: ${hn} (\`node --version\`), git, and ${gn} or newer (\`npm install -g pnpm\` if missing).`,``,`2. Write the cookbook exactly as given, without reformatting or editing it:`,``,`cat > ${_n} <<'${a}'\n${i}\n${a}`,``,`3. Validate it, then create the app in ./${r}:`,``,`${o} cookbook validate ${_n}`,`${o} cookbook apply ${_n} ${r}`,``,`4. Set it up (in a subshell, so the commands below still run from this directory):`,``,`(cd ${r} && pnpm exec smrt app install)`,``,...e.specs?.trim()?[`5. The cookbook's \`specs\` field lists product requirements beyond the recipes and features: after step 4, implement them in ${r}, and report any you could not build.`,``]:[],`If any step fails, run \`pnpm exec smrt app doctor\` inside ${r} and include its findings in your report. Do not hand-edit the app's smrt.cookbook.json: change ${_n} and run \`${o} cookbook apply ${_n} --into ${r}\` instead.`,``].join(`
|
|
7
7
|
`);return{text:s,bytes:new TextEncoder().encode(s).length,appName:r,version:n,delimiter:a}}function wn(e,t){if(t?.busy)throw Error(`Wait for the assistant to finish, or stop it, then try again.`);let n=e.run({name:`export_cookbook`,input:{}});if(!n.ok)throw Error(n.error.message);return structuredClone({export:n.data,revision:n.snapshot.revision,conversation:t?.conversation()??[]})}function Tn(t,n){g(n,!0);let r=E(n,`copiedLabel`,3,`Copied`),i=E(n,`variant`,3,`primary`),o=E(n,`confirmFor`,3,2e3),s=O(!1),c;async function l(){let e=typeof n.text==`function`?n.text():n.text,t=n.write??(typeof navigator<`u`&&navigator.clipboard?e=>navigator.clipboard.writeText(e):void 0);try{if(!t)throw Error(`no clipboard`);await t(e)}catch{W(s,!1),n.onfail?.();return}W(s,!0),n.oncopied?.(),clearTimeout(c),c=setTimeout(()=>W(s,!1),o())}Y(t,{get variant(){return i()},onclick:l,"aria-live":`polite`,get"aria-describedby"(){return n[`aria-describedby`]},children:(t,i)=>{_();var a=d();V(()=>u(a,e(s)?r():n.label)),b(t,a)},$$slots:{default:!0}}),a()}var En=l(`<!> <div class="actions svelte-1ij12un"><!> <!></div>`,1),Dn=l(`<h2 class="svelte-1ij12un">Project</h2> <p class="meta svelte-1ij12un">Your plan, sample records and settings stay in this browser session by default. Conversations and contact or request drafts stay in the current tab session.</p> <!> <p class="meta svelte-1ij12un">Remembering keeps your cookbook, sample records and settings on this device after the session ends. Conversations and contact or request drafts still stay in the current tab session. Turn it off to remove the remembered project copy.</p> <!>`,1),On=l(`<p class="meta svelte-1ij12un" role="status"> </p>`),kn=l(`<p role="status" class="svelte-1ij12un"> </p>`),An=l(`<section class="project svelte-1ij12un" aria-label="Project"><!> <div class="actions svelte-1ij12un"><!></div> <!> <!> <!></section> <!> <!>`,1);function jn(t,r){g(r,!0);let o=E(r,`controller`,3,pt),s=E(r,`resetOnly`,3,!1),l=E(r,`projectPersistence`,3,Mt),f=yt(),p=O(!1),m=O(!1),h=O(``),v=O(``),y=i(()=>l()?.remembering??!1);function x(e){W(h,l()?.setRemember(e)?``:`Your storage preference could not be changed. Your existing plan is preserved.`,!0)}function S(){W(p,!1),!r.resetDisabledReason&&(W(h,``),kt({controller:o(),dataSource:f,nativeAssistant:r.nativeAssistant,onreset:r.onreset})?W(v,`Project reset. Start a new plan whenever you are ready.`):W(h,`The project could not be fully reset. Please try again.`))}function C(){W(m,!1),!r.resetDisabledReason&&(l()?.recover()?location.reload():W(h,`The previous plan could not be recovered. Its saved copy is preserved.`))}function w(){W(h,l()?.discardRecovery()?``:`The previous saved copy could not be removed. Please try again.`,!0)}var T=An(),D=z(T),k=M(D),A=t=>{var a=Dn(),o=P(z(a),4);ke(o,{label:`Remember this plan`,onchange:async t=>{let n=t.currentTarget;x(n.checked),await ee(),W(y,l()?.remembering??!1),n.checked=e(y)},get checked(){return e(y)},set checked(e){W(y,e)}});var s=P(o,4),u=t=>{var n=En(),a=z(n);K(a,{variant:`info`,title:`Previous saved plan available`,children:(e,t)=>{_();var n=d(`An earlier project has been kept as a recovery copy of its cookbook, sample records and settings. Recover it to replace this project, or discard the copy. Conversations are not remembered.`);b(e,n)},$$slots:{default:!0}});var o=P(a,2),s=M(o);{let t=i(()=>!!r.resetDisabledReason);Y(s,{variant:`secondary`,onclick:()=>W(m,!0),get disabled(){return e(t)},children:(e,t)=>{_();var n=d(`Recover previous plan`);b(e,n)},$$slots:{default:!0}})}var l=P(s,2);Y(l,{variant:`ghost`,onclick:w,children:(e,t)=>{_();var n=d(`Discard saved copy`);b(e,n)},$$slots:{default:!0}}),c(o),b(t,n)};n(s,e=>{l()?.recoveryAvailable&&e(u)}),b(t,a)};n(k,e=>{!s()&&l()&&e(A)});var j=P(k,2),N=M(j);{let t=i(()=>!!r.resetDisabledReason);Y(N,{variant:`ghost`,get disabled(){return e(t)},onclick:()=>W(p,!0),children:(e,t)=>{_();var n=d(`Reset project`);b(e,n)},$$slots:{default:!0}})}c(j);var F=P(j,2),I=e=>{var t=On(),n=L(t,!0);V(()=>u(n,r.resetDisabledReason)),b(e,t)};n(F,e=>{r.resetDisabledReason&&e(I)});var R=P(F,2),B=t=>{K(t,{variant:`error`,title:`Project action could not finish`,children:(t,n)=>{_();var r=d();V(()=>u(r,e(h))),b(t,r)},$$slots:{default:!0}})};n(R,t=>{e(h)&&t(B)});var H=P(R,2),U=t=>{var n=kn(),r=L(n,!0);V(()=>u(r,e(v))),b(t,n)};n(H,t=>{e(v)&&t(U)}),c(D);var te=P(D,2);G(te,{get open(){return e(m)},title:`Recover the previous plan?`,message:`Recovering replaces this project with its previous cookbook, sample records and settings. Current manual edits will be lost. It does not recover conversations or contact and request drafts.`,confirmLabel:`Recover plan`,destructive:!0,onconfirm:C,oncancel:()=>W(m,!1)});var ne=P(te,2);G(ne,{get open(){return e(p)},title:`Reset this project?`,message:`This clears your plan, conversation, sample records, manual edits and current Build it draft. Manual edits will be lost. Your theme preference and identity settings are kept. Download the cookbook first if you want a copy. A reset cannot unsend a request you already sent.`,confirmLabel:`Reset project`,destructive:!0,onconfirm:S,oncancel:()=>W(p,!1)}),b(t,T),a()}var Mn=l(`<div class="build-step svelte-17nkvtk" data-export-actions="primary"><h3 class="svelte-17nkvtk">Build your app</h3> <p class="meta svelte-17nkvtk">Continue with your current plan.</p> <div class="actions svelte-17nkvtk"><!></div></div>`),Nn=l(`<p class="meta svelte-17nkvtk" role="status">Wait for the assistant to finish, or stop it, before continuing.</p>`),Pn=l(`<li><!></li>`),Fn=l(`<ul class="chips svelte-17nkvtk"></ul>`),In=l(`<dt class="svelte-17nkvtk"> </dt> <dd class="svelte-17nkvtk"><!></dd>`,1),Ln=l(`<dl class="summary svelte-17nkvtk"></dl>`),Rn=l(`<p class="quiet svelte-17nkvtk">Nothing customised yet. Add recipes or apply a cookbook first.</p>`),zn=l(`<div class="card-body svelte-17nkvtk"><h3 id="prompt-heading" class="svelte-17nkvtk">Copy prompt</h3> <p class="meta svelte-17nkvtk" id="prompt-note">Paste it into Claude Code, Codex or another coding agent. The prompt
|
|
8
8
|
carries the cookbook, creates the app <code class="svelte-17nkvtk"> </code> </p> <div class="actions svelte-17nkvtk"><!></div> <!> <p class="notice svelte-17nkvtk" role="status" aria-live="polite"> </p></div>`),Bn=l(`<pre class="json svelte-17nkvtk"> </pre>`),Vn=l(`<div class="card-body svelte-17nkvtk"><h3 id="file-heading" class="svelte-17nkvtk">Download cookbook</h3> <p class="meta svelte-17nkvtk">Download writes <code class="svelte-17nkvtk"> </code> </p> <div class="command svelte-17nkvtk"><code data-export-command="" class="svelte-17nkvtk"> </code> <!></div> <p class="notice svelte-17nkvtk" role="status" aria-live="polite"> </p> <div class="actions svelte-17nkvtk" data-export-actions="download"><!> <!></div> <!></div>`),Hn=l(`The kitchen is running, but this page was opened without its one-time
|
|
9
9
|
token. Open the address <code class="svelte-17nkvtk">smrt kitchen</code> printed (it ends in <code class="svelte-17nkvtk">#kitchen=…</code>), or download the cookbook and run <code class="svelte-17nkvtk">smrt cookbook apply</code> on the file.`,1),Un=l(`This version of <code class="svelte-17nkvtk">smrt kitchen</code> puts its one-time token in a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,Ft as o,G as s,H as ee,L as c,Ot as l,Pt as u,R as d,U as f,X as p,Y as m,Z as h,a as g,at as _,b as v,bt as y,ct as b,d as x,ft as S,ht as C,l as w,mt as T,n as E,st as D,ut as O,v as k,vt as A,wt as j}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{n as M,r as N,s as P}from"../chunks/
|
|
1
|
+
import{$ as e,A as t,B as n,Ct as r,Dt as i,E as a,Ft as o,G as s,H as ee,L as c,Ot as l,Pt as u,R as d,U as f,X as p,Y as m,Z as h,a as g,at as _,b as v,bt as y,ct as b,d as x,ft as S,ht as C,l as w,mt as T,n as E,st as D,ut as O,v as k,vt as A,wt as j}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{n as M,r as N,s as P}from"../chunks/WqCtkIDw.js";import{n as F}from"../chunks/V9_dolQc.js";import"../chunks/d934w91N.js";import{a as I,i as te,n as ne,r as re,t as L}from"../chunks/BMgzWMdF.js";function R(e){let t=[],n=/(\/\*[\s\S]*?\*\/|\/\*[\s\S]*$|"(?:\\.|[^"\\])*"?|'(?:\\.|[^'\\])*'?|[{}:;]|[^{}:;'"/]+|\/)/g,r=!1,i=!1;for(let a of e.matchAll(n)){let e=a[0],n=`plain`;e.startsWith(`/*`)?n=`comment`:/^[{}:;]$/.test(e)?(n=`punctuation`,e===`{`&&(r=!0,i=!1),e===`}`&&(r=!1,i=!1),e===`:`&&(i=!0),e===`;`&&(i=!1)):n=r?i?`value`:`property`:`selector`,t.push({text:e,kind:n})}return t}var z=s(`<div class="pending svelte-zdw9y8" role="status"><p class="svelte-zdw9y8">This cookbook brings its own CSS. It is not applied until you review and approve it.</p> <button type="button">Apply these styles</button></div>`),B=s(`<span> </span>`),V=s(`<section class="advanced-styles svelte-zdw9y8" aria-labelledby="advanced-styles-title"><a class="back svelte-zdw9y8">← Back to Theme</a> <div class="heading svelte-zdw9y8"><div><h1 id="advanced-styles-title" class="svelte-zdw9y8">Advanced Styles</h1> <p class="svelte-zdw9y8">Make this app your own with CSS. Changes appear as you type and are saved with your cookbook.</p></div> <span class="live svelte-zdw9y8"><span aria-hidden="true" class="svelte-zdw9y8"></span>Live preview</span></div> <!> <label for="advanced-css" class="svelte-zdw9y8">Custom CSS</label> <div class="editor svelte-zdw9y8"><pre aria-hidden="true" class="svelte-zdw9y8"><code></code></pre> <textarea id="advanced-css" spellcheck="false" maxlength="65536" wrap="off" placeholder="/* Add your app styles here */" aria-describedby="advanced-css-help" class="svelte-zdw9y8"></textarea></div> <p id="advanced-css-help" class="help svelte-zdw9y8">Ask your agent to write styles here, or start with a selector like <code>.smrt-admin-shell</code>. Clearing the editor removes your custom styles. Styles apply only inside the app shell and cannot load files from other sites; add <code>?styles=off</code> to the address to turn them off.</p></section>`);function H(t,s){l(s,!0);let m=g(s,`backHref`,3,`#/configure/`),_=r(()=>F.theme?.customCss??``),w=y(``),O=y(!1),M,N=r(()=>R(e(w))),P=r(()=>!!e(_)&&!e(O)&&!re(e(_))),H=y(null),U=y(null);b(()=>{let t=e(_);(!e(O)||t===e(w))&&(A(w,t,!0),A(O,!1))}),b(()=>{if(typeof document>`u`||!e(O)||!e(w)||te(location.search))return;let t=I(e(U));if(!t)return;let n=ne(e(w),t);if(!n)return;let r=document.createElement(`style`);return r.dataset.smrtPlannerDraft=``,r.textContent=n,document.head.append(r),()=>r.remove()});function W(){e(H)&&e(U)&&(e(H).scrollTop=e(U).scrollTop,e(H).scrollLeft=e(U).scrollLeft)}function G(e){F.setTheme({...F.theme,customCss:e||void 0})}function K(t){L(t),A(w,t,!0),A(O,!0),clearTimeout(M),M=setTimeout(()=>G(e(w)),400)}E(()=>{clearTimeout(M),e(O)&&G(e(w))});var q=V(),J=S(q),Y=C(J,4),ie=t=>{var n=z(),r=C(S(n),2);o(n),p(`click`,r,()=>L(e(_))),f(t,n)};n(Y,t=>{e(P)&&t(ie)});var X=C(Y,4),Z=S(X),Q=S(Z);c(Q,21,()=>e(N),d,(t,n)=>{var r=B();let i;var o=T(r,!0);D(()=>{i=a(r,1,`svelte-zdw9y8`,null,i,{comment:e(n).kind===`comment`,selector:e(n).kind===`selector`,property:e(n).kind===`property`,value:e(n).kind===`value`,punctuation:e(n).kind===`punctuation`}),ee(o,e(n).text)}),f(t,r)}),o(Q),o(Z),x(Z,e=>A(H,e),()=>e(H));var $=C(Z,2);j($),x($,e=>A(U,e),()=>e(U)),o(X),u(2),o(q),D(t=>{k(J,`href`,m()),k(J,`data-sveltekit-reload`,t),v($,e(w))},[()=>m().startsWith(`/`)?!0:void 0]),p(`input`,$,e=>K(e.currentTarget.value)),h(`scroll`,$,W),f(t,q),i()}m([`click`,`input`]);var U=s(`<main class="svelte-72mmow"><!></main>`);function W(e,n){l(n,!1);let r=`${N()}/${P(M(),`theme`)}`;w();var a=U();t(`72mmow`,e=>{_(()=>{O.title=`Advanced Styles · smrt planner`})}),H(S(a),{get backHref(){return r}}),o(a),f(e,a),i()}export{W as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,Dt as n,Ft as r,G as i,H as a,Ot as o,Pt as s,St as c,U as l,at as u,ft as d,ht as f,l as p,mt as m,st as h,ut as g,v as _}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as v}from"../chunks/
|
|
1
|
+
import{$ as e,A as t,Dt as n,Ft as r,G as i,H as a,Ot as o,Pt as s,St as c,U as l,at as u,ft as d,ht as f,l as p,mt as m,st as h,ut as g,v as _}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{t as v}from"../chunks/WqCtkIDw.js";import{i as y}from"../chunks/eg3CcFX4.js";import"../chunks/d934w91N.js";import{t as b}from"../chunks/CL9bwSUa.js";var x=i(`<div class="ai-page svelte-mutbd1"><p class="meta svelte-mutbd1"><a>Planner</a> / AI models</p> <h1 class="svelte-mutbd1">Set up your assistant</h1> <p class="privacy svelte-mutbd1"> </p> <!></div>`);function S(e,t){o(t,!0);var i=x(),c=d(i),u=d(c);s(),r(c);var p=f(c,4),g=m(p,!0),v=f(p,2);b(v,{}),r(i),h(()=>{_(u,`href`,t.backHref),a(g,y.privacyNote)}),l(e,i),n()}var C=i(`<main class="svelte-hyyiz7"><!></main>`);function w(i,a){o(a,!1),p();var s=C();t(`hyyiz7`,e=>{u(()=>{g.title=`AI models · smrt planner`})});var f=d(s);{let t=c(()=>v(`/`));S(f,{get backHref(){return e(t)}})}r(s),l(i,s),n()}export{w as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,Dt as t,Ft as n,G as r,Ot as i,Pt as a,U as o,at as s,ft as c,ht as l,l as u,r as d,st as f,ut as p,v as m}from"../chunks/DG3qFFTE.js";import{n as h,u as g}from"../chunks/
|
|
1
|
+
import{A as e,Dt as t,Ft as n,G as r,Ot as i,Pt as a,U as o,at as s,ft as c,ht as l,l as u,r as d,st as f,ut as p,v as m}from"../chunks/DG3qFFTE.js";import{n as h,u as g}from"../chunks/C_qFOhGK.js";import"../chunks/xihTtKlq.js";import"../chunks/DuPnchEK.js";import"../chunks/d934w91N.js";var _=r(`<main><p>The Blueprint moved to the Planner's <a>Export tab</a>.</p></main>`);function v(r,v){i(v,!1),d(()=>{let e=new URLSearchParams(location.search);e.set(`tab`,`export`),h(`${g}/?${e.toString().replace(/%2C/gi,`,`)}`,{replaceState:!0})}),u();var y=_();e(`1t5f7zw`,e=>{s(()=>{p.title=`Moved · smrt planner`})});var b=c(y),x=l(c(b));a(),n(b),n(y),f(()=>m(x,`href`,`${g}/?tab=export`)),o(r,y),t()}export{v as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,Dt as t,Ft as n,G as r,Ot as i,Pt as a,U as o,at as s,ft as c,ht as l,l as u,r as d,st as f,ut as p,v as m}from"../chunks/DG3qFFTE.js";import{n as h,u as g}from"../chunks/
|
|
1
|
+
import{A as e,Dt as t,Ft as n,G as r,Ot as i,Pt as a,U as o,at as s,ft as c,ht as l,l as u,r as d,st as f,ut as p,v as m}from"../chunks/DG3qFFTE.js";import{n as h,u as g}from"../chunks/C_qFOhGK.js";import"../chunks/xihTtKlq.js";import"../chunks/DuPnchEK.js";import"../chunks/d934w91N.js";var _=r(`<main><p>The Cookbook is in the Planner's <a>Export tab</a>.</p></main>`);function v(r,v){i(v,!1),d(()=>{let e=new URLSearchParams(location.search);e.set(`tab`,`export`),h(`${g}/?${e.toString().replace(/%2C/gi,`,`)}`,{replaceState:!0})}),u();var y=_();e(`9ir3hm`,e=>{s(()=>{p.title=`Moved · smrt planner`})});var b=c(y),x=l(c(b));a(),n(b),n(y),f(()=>m(x,`href`,`${g}/?tab=export`)),o(r,y),t()}export{v as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{Dt as t,Ot as n}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_t as r,vt as i,yt as a}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{Dt as t,Ot as n}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{_t as r,vt as i,yt as a}from"../chunks/WqCtkIDw.js";import{t as o}from"../chunks/DRByVC-c.js";import{t as s}from"../chunks/xfMF02Bd.js";var c=e({entries:()=>l,load:()=>u}),l=()=>r.packages.flatMap(e=>i(e).map(t=>({package:e.id,model:t.name}))),u=({params:e})=>(a(e.package,e.model)||o(404,`Unknown model ${e.package}/${e.model}`),{packageId:e.package,modelName:e.model});function d(e,r){n(r,!0),s(e,{get packageId(){return r.data.packageId},get modelName(){return r.data.modelName}}),t()}export{d as component,c as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{Dt as t,Ot as n}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{yt as r}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{Dt as t,Ot as n}from"../chunks/DG3qFFTE.js";import"../chunks/xihTtKlq.js";import{yt as r}from"../chunks/WqCtkIDw.js";import{b as i,m as a,v as o}from"../chunks/D4QZjNwd.js";import{t as s}from"../chunks/DRByVC-c.js";import{t as c}from"../chunks/xfMF02Bd.js";var l=e({entries:()=>u,load:()=>d}),u=()=>i.flatMap(e=>o(e).flatMap(e=>e.key?[{package:e.packageId,model:e.model.name,view:e.key}]:[])),d=({params:e})=>(r(e.package,e.model)||s(404,`Unknown model ${e.package}/${e.model}`),a(e.package,e.model,e.view)?{packageId:e.package,modelName:e.model,view:e.view}:{packageId:e.package,modelName:e.model,recordId:e.view,mode:`view`});function f(e,r){n(r,!0),c(e,{get packageId(){return r.data.packageId},get modelName(){return r.data.modelName},get view(){return r.data.view},get recordId(){return r.data.recordId},get mode(){return r.data.mode}}),t()}export{f as component,l as universal};
|