@happyvertical/smrt-planner 0.57.15 → 0.57.17
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/agents/shell.md +4 -1
- package/app/404.html +19 -19
- package/app/_app/immutable/chunks/{DccCqD3p.js → 47rG5f1n.js} +1 -1
- package/app/_app/immutable/chunks/BDBI1GHG.js +1 -0
- package/app/_app/immutable/chunks/{hBMuE5Bx.js → BEQ1toJ7.js} +1 -1
- package/app/_app/immutable/chunks/{B7IsOdeU.js → BEfnNZ_r.js} +1 -1
- package/app/_app/immutable/chunks/BF1b-PyI.js +2 -0
- package/app/_app/immutable/chunks/{uMyA9vh1.js → BPtTI21R.js} +1 -1
- package/app/_app/immutable/chunks/{U_YAf_lA.js → BRb3XNWx.js} +1 -1
- package/app/_app/immutable/chunks/{BEfgj-XP.js → BRphH2sp.js} +1 -1
- package/app/_app/immutable/chunks/{cr-zdIiU.js → BXYF4p6C.js} +3 -3
- package/app/_app/immutable/chunks/BaNbYf_w.js +1 -0
- package/app/_app/immutable/chunks/{BbwIep6z.js → Bcfb5I9y.js} +2 -2
- package/app/_app/immutable/chunks/{C5qDLfXy.js → BiGt7FLz.js} +1 -1
- package/app/_app/immutable/chunks/{C6vmjDVg.js → BkEeNbLN.js} +1 -1
- package/app/_app/immutable/chunks/{CmwZFYXJ.js → CHp1-Djt.js} +1 -1
- package/app/_app/immutable/chunks/{B2rhYkoB.js → CMgP05SN.js} +1 -1
- package/app/_app/immutable/chunks/CMr90D2v.js +1 -0
- package/app/_app/immutable/chunks/{D7hhQvDO.js → CMrsF8nJ.js} +1 -1
- package/app/_app/immutable/chunks/{C5DQWmBa.js → CWmRZDhs.js} +1 -1
- package/app/_app/immutable/chunks/{DRA2gZNq.js → Cp6EyiHL.js} +1 -1
- package/app/_app/immutable/chunks/D042ejzG.js +1 -0
- package/app/_app/immutable/chunks/{DGeUS20p.js → Dbk0PTBM.js} +1 -1
- package/app/_app/immutable/chunks/{BwQnfuaZ.js → DdiQBZrC.js} +1 -1
- package/app/_app/immutable/chunks/DiDXEaeE.js +2 -0
- package/app/_app/immutable/chunks/Die26Dpp.js +1 -0
- package/app/_app/immutable/chunks/{yGfNI8oR.js → Dij7Mzy3.js} +1 -1
- package/app/_app/immutable/chunks/{Dud4r5Jx.js → DkYxX008.js} +1 -1
- package/app/_app/immutable/chunks/{0spQrfdd.js → DtyQVtuI.js} +21 -21
- package/app/_app/immutable/chunks/{DEy5w6rs.js → H-AOqvBm.js} +2 -2
- package/app/_app/immutable/chunks/{vcEpvgxL.js → JHAQM1Si.js} +1 -1
- package/app/_app/immutable/chunks/{BH-IcfAn.js → LqlI_3J_.js} +3 -3
- package/app/_app/immutable/chunks/cGI232sj.js +4 -0
- package/app/_app/immutable/chunks/{CaYLEdnq.js → ca0lfv12.js} +1 -1
- package/app/_app/immutable/chunks/{y_YhL-Jh.js → eI3Mmq4z.js} +5 -5
- package/app/_app/immutable/chunks/jGR6M6GD.js +16 -0
- package/app/_app/immutable/chunks/{CUqms96o.js → pwK8zqRY.js} +1 -1
- package/app/_app/immutable/chunks/{DCdUJsvL.js → xfjCb9hA.js} +1 -1
- package/app/_app/immutable/entry/{app.D8ErdGLu.js → app.DBMyUqvv.js} +2 -2
- package/app/_app/immutable/entry/start.wMO3ZYuE.js +1 -0
- package/app/_app/immutable/nodes/{0.BRhjnzgS.js → 0.DiMcia2m.js} +2 -2
- package/app/_app/immutable/nodes/{1.i7liuUEv.js → 1.D-mIIzUL.js} +1 -1
- package/app/_app/immutable/nodes/{10.C3_AufYj.js → 10.BFt6ON7M.js} +1 -1
- package/app/_app/immutable/nodes/{11.B0hIiOqN.js → 11.Cxs1R6fC.js} +1 -1
- package/app/_app/immutable/nodes/{12.BSOZ4bO5.js → 12.BCudMLPz.js} +3 -3
- package/app/_app/immutable/nodes/{13.BVs8e3JB.js → 13.DAt_b1gK.js} +1 -1
- package/app/_app/immutable/nodes/14.CQQuhb60.js +1 -0
- package/app/_app/immutable/nodes/{2.CDeoJM-_.js → 2.U2UZdfCQ.js} +8 -8
- package/app/_app/immutable/nodes/{3.BEVyZIIW.js → 3.BNTsN4bw.js} +1 -1
- package/app/_app/immutable/nodes/{4.BWGexoUS.js → 4.eKv786mR.js} +1 -1
- package/app/_app/immutable/nodes/{5.BhlS2sOI.js → 5.k0okSbWb.js} +1 -1
- package/app/_app/immutable/nodes/{6.CjZ4T96O.js → 6.RSsmFdBk.js} +1 -1
- package/app/_app/immutable/nodes/{7.CcMSlqwb.js → 7.BZAahN28.js} +1 -1
- package/app/_app/immutable/nodes/{8.DxCvFjK2.js → 8.B9PW4VE1.js} +1 -1
- package/app/_app/immutable/nodes/{9.DDfmTabv.js → 9.DYbPqDvx.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +22 -22
- package/app/ai/index.html +25 -25
- package/app/blueprint/index.html +20 -20
- package/app/cookbook/index.html +20 -20
- package/app/index.html +28 -28
- package/app/m/ads/AdDeliveryTier/index.html +24 -24
- package/app/m/ads/AdEvent/index.html +24 -24
- package/app/m/ads/AdFormat/index.html +24 -24
- package/app/m/ads/AdGroup/index.html +24 -24
- package/app/m/ads/AdVariation/index.html +24 -24
- package/app/m/analytics/AnalyticsDataStream/index.html +24 -24
- package/app/m/analytics/AnalyticsEvent/index.html +24 -24
- package/app/m/analytics/AnalyticsProperty/index.html +24 -24
- package/app/m/analytics/AnalyticsReport/index.html +24 -24
- package/app/m/approvals/ApprovalEvent/index.html +24 -24
- package/app/m/approvals/ApprovalPolicy/index.html +24 -24
- package/app/m/approvals/ApprovalRequest/index.html +24 -24
- package/app/m/assets/Asset/attachments/index.html +25 -25
- package/app/m/assets/Asset/index.html +24 -24
- package/app/m/assets/AssetAssociation/index.html +24 -24
- package/app/m/assets/AssetMetafield/index.html +24 -24
- package/app/m/assets/AssetStatus/index.html +24 -24
- package/app/m/assets/AssetType/index.html +24 -24
- package/app/m/assets/Folder/index.html +24 -24
- package/app/m/chat/AgentSession/index.html +24 -24
- package/app/m/chat/ChatMessage/index.html +24 -24
- package/app/m/chat/ChatParticipant/index.html +24 -24
- package/app/m/chat/ChatReaction/index.html +24 -24
- package/app/m/chat/ChatRoom/index.html +24 -24
- package/app/m/chat/ChatThread/index.html +24 -24
- package/app/m/chat/VoiceGatewayTurn/index.html +24 -24
- package/app/m/chat/VoiceSession/index.html +24 -24
- package/app/m/commerce/Agreement/index.html +24 -24
- package/app/m/commerce/Cart/index.html +24 -24
- package/app/m/commerce/Contract/index.html +24 -24
- package/app/m/commerce/ContractLineItem/index.html +24 -24
- package/app/m/commerce/Customer/index.html +24 -24
- package/app/m/commerce/DocumentTax/index.html +24 -24
- package/app/m/commerce/Estimate/index.html +24 -24
- package/app/m/commerce/Fulfillment/index.html +24 -24
- package/app/m/commerce/FulfillmentLineItem/index.html +24 -24
- package/app/m/commerce/HistoricalCustomerFunds/index.html +24 -24
- package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +24 -24
- package/app/m/commerce/HistoricalSalesLine/index.html +24 -24
- package/app/m/commerce/Invoice/index.html +24 -24
- package/app/m/commerce/InvoiceLineItem/index.html +24 -24
- package/app/m/commerce/Lease/index.html +24 -24
- package/app/m/commerce/LicenseSale/index.html +24 -24
- package/app/m/commerce/Order/index.html +24 -24
- package/app/m/commerce/Payment/index.html +24 -24
- package/app/m/commerce/PaymentAllocation/index.html +24 -24
- package/app/m/commerce/PaymentInstrument/index.html +24 -24
- package/app/m/commerce/PaymentIntent/index.html +24 -24
- package/app/m/commerce/Payout/index.html +24 -24
- package/app/m/commerce/ProductionOrder/index.html +24 -24
- package/app/m/commerce/PurchaseContract/index.html +24 -24
- package/app/m/commerce/PurchaseOrder/index.html +24 -24
- package/app/m/commerce/SalesContract/index.html +24 -24
- package/app/m/commerce/SupplierQuote/index.html +24 -24
- package/app/m/commerce/TaxCode/index.html +24 -24
- package/app/m/commerce/TaxComponent/index.html +24 -24
- package/app/m/commerce/TaxSettings/index.html +24 -24
- package/app/m/commerce/TaxSummaryReport/index.html +24 -24
- package/app/m/commerce/TenantPaymentAccount/index.html +24 -24
- package/app/m/commerce/Vendor/index.html +24 -24
- package/app/m/commerce/WholesaleOrder/index.html +24 -24
- package/app/m/content/Content/index.html +24 -24
- package/app/m/content/ContentContribution/index.html +24 -24
- package/app/m/content/ContentContributionAttachment/index.html +24 -24
- package/app/m/content/ContentContributionRevision/index.html +24 -24
- package/app/m/content/ContentContributionType/index.html +24 -24
- package/app/m/content/ContentContributor/index.html +24 -24
- package/app/m/content/ContentCorrection/index.html +24 -24
- package/app/m/content/ContentFeedSource/index.html +24 -24
- package/app/m/content/ContentGovernanceAssignment/index.html +24 -24
- package/app/m/content/ContentGovernancePolicy/index.html +24 -24
- package/app/m/content/ContentGovernanceProfile/index.html +24 -24
- package/app/m/content/ContentReference/index.html +24 -24
- package/app/m/content/ContentReview/index.html +24 -24
- package/app/m/content/ContentVersion/index.html +24 -24
- package/app/m/events/Event/index.html +24 -24
- package/app/m/events/EventParticipant/index.html +24 -24
- package/app/m/events/EventSeries/index.html +24 -24
- package/app/m/events/EventType/index.html +24 -24
- package/app/m/expenses/Expense/index.html +24 -24
- package/app/m/facts/Fact/index.html +24 -24
- package/app/m/facts/FactContent/index.html +24 -24
- package/app/m/facts/FactEvidence/index.html +24 -24
- package/app/m/facts/FactSource/index.html +24 -24
- package/app/m/facts/FactSubject/index.html +24 -24
- package/app/m/facts/FactTag/index.html +24 -24
- package/app/m/fields/FieldPolicy/index.html +24 -24
- package/app/m/fields/FieldPolicySuggestion/index.html +24 -24
- package/app/m/fields/FieldUsageCounter/index.html +24 -24
- package/app/m/images/Image/index.html +24 -24
- package/app/m/inventory/InventoryLocation/index.html +24 -24
- package/app/m/inventory/StockLevel/index.html +24 -24
- package/app/m/inventory/StockMovement/index.html +24 -24
- package/app/m/ledgers/Account/index.html +24 -24
- package/app/m/ledgers/Journal/index.html +24 -24
- package/app/m/ledgers/JournalEntry/index.html +24 -24
- package/app/m/ledgers/Ledger/index.html +24 -24
- package/app/m/manufacturing/Assembly/index.html +24 -24
- package/app/m/manufacturing/BillOfMaterials/index.html +24 -24
- package/app/m/manufacturing/BomLine/index.html +24 -24
- package/app/m/manufacturing/Operation/index.html +24 -24
- package/app/m/manufacturing/ProductionRun/index.html +24 -24
- package/app/m/manufacturing/ProductionRunCompletion/index.html +24 -24
- package/app/m/manufacturing/RoutingStep/index.html +24 -24
- package/app/m/marketing/Campaign/index.html +24 -24
- package/app/m/marketing/CampaignChannel/index.html +24 -24
- package/app/m/marketing/CampaignMetricSnapshot/index.html +24 -24
- package/app/m/messages/Account/index.html +24 -24
- package/app/m/messages/Attachment/index.html +24 -24
- package/app/m/messages/Blacklist/index.html +24 -24
- package/app/m/messages/Email/failed-sends/index.html +25 -25
- package/app/m/messages/Email/index.html +24 -24
- package/app/m/messages/Email/mailbox/index.html +25 -25
- package/app/m/messages/EmailAccount/index.html +24 -24
- package/app/m/messages/EmailAttachment/index.html +24 -24
- package/app/m/messages/EmailFolder/index.html +24 -24
- package/app/m/messages/Message/index.html +24 -24
- package/app/m/messages/MessagingEndpoint/index.html +24 -24
- package/app/m/messages/PersonaMessageRoute/index.html +24 -24
- package/app/m/messages/SlackAccount/index.html +24 -24
- package/app/m/messages/SlackMessage/index.html +24 -24
- package/app/m/messages/TelegramAccount/index.html +24 -24
- package/app/m/messages/Tweet/index.html +24 -24
- package/app/m/messages/TwitterAccount/index.html +24 -24
- package/app/m/messages/Whitelist/index.html +24 -24
- package/app/m/messages/ZulipAccount/index.html +24 -24
- package/app/m/places/Place/index.html +24 -24
- package/app/m/places/PlaceType/index.html +24 -24
- package/app/m/products/Category/index.html +24 -24
- package/app/m/products/Material/index.html +24 -24
- package/app/m/products/Product/index.html +24 -24
- package/app/m/products/Product/ingredients/index.html +25 -25
- package/app/m/products/ProductVariant/index.html +24 -24
- package/app/m/products/Sku/index.html +24 -24
- package/app/m/profiles/ApiKey/index.html +24 -24
- package/app/m/profiles/Bot/index.html +24 -24
- package/app/m/profiles/MagicLinkToken/index.html +24 -24
- package/app/m/profiles/NostrIdentity/index.html +24 -24
- package/app/m/profiles/OidcIdentity/index.html +24 -24
- package/app/m/profiles/Organization/index.html +24 -24
- package/app/m/profiles/Person/index.html +24 -24
- package/app/m/profiles/Profile/index.html +24 -24
- package/app/m/profiles/ProfileMetadata/index.html +24 -24
- package/app/m/profiles/ProfileMetafield/index.html +24 -24
- package/app/m/profiles/ProfileRelationship/index.html +24 -24
- package/app/m/profiles/ProfileRelationshipTerm/index.html +24 -24
- package/app/m/profiles/ProfileRelationshipType/index.html +24 -24
- package/app/m/profiles/ProfileType/index.html +24 -24
- package/app/m/projects/Comment/index.html +24 -24
- package/app/m/projects/Issue/index.html +24 -24
- package/app/m/projects/Label/index.html +24 -24
- package/app/m/projects/Project/index.html +24 -24
- package/app/m/projects/ProjectIntegration/index.html +24 -24
- package/app/m/projects/PullRequest/index.html +24 -24
- package/app/m/projects/Repository/index.html +24 -24
- package/app/m/properties/Property/index.html +24 -24
- package/app/m/properties/Zone/index.html +24 -24
- package/app/m/reports/RuntimeReport/index.html +24 -24
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +24 -24
- package/app/m/reports/SmrtReportLock/index.html +24 -24
- package/app/m/reports/SmrtReportRefreshTask/index.html +24 -24
- package/app/m/reports/SmrtReportRun/index.html +24 -24
- package/app/m/reports/SmrtReportSchedule/index.html +24 -24
- package/app/m/reports/SmrtReportWatermark/index.html +24 -24
- package/app/m/sales/Agreement/index.html +24 -24
- package/app/m/sales/AttributionException/index.html +24 -24
- package/app/m/sales/AttributionPolicy/index.html +24 -24
- package/app/m/sales/Commission/index.html +24 -24
- package/app/m/sales/CommissionAdjustment/index.html +24 -24
- package/app/m/sales/CommissionPayout/index.html +24 -24
- package/app/m/sales/CommissionPlan/index.html +24 -24
- package/app/m/sales/Earner/index.html +24 -24
- package/app/m/sales/EarnerSourceAttribution/index.html +24 -24
- package/app/m/sales/EarningEvent/index.html +24 -24
- package/app/m/sales/ExecutedAgreement/index.html +24 -24
- package/app/m/sales/Lead/index.html +24 -24
- package/app/m/sales/Opportunity/index.html +24 -24
- package/app/m/sales/OpportunityConversion/index.html +24 -24
- package/app/m/sales/PipelineDefinition/index.html +24 -24
- package/app/m/sales/PipelineStage/index.html +24 -24
- package/app/m/sales/Referral/index.html +24 -24
- package/app/m/sales/ReferralAgreement/index.html +24 -24
- package/app/m/sales/ReferralLink/index.html +24 -24
- package/app/m/sales/ReferralProgram/index.html +24 -24
- package/app/m/sales/ReferralTermSnapshot/index.html +24 -24
- package/app/m/sales/ReferralTouch/index.html +24 -24
- package/app/m/sales/Referrer/index.html +24 -24
- package/app/m/sales/SalesActivity/index.html +24 -24
- package/app/m/sales/SalesRepresentative/index.html +24 -24
- package/app/m/sites/Site/index.html +24 -24
- package/app/m/sites/SiteAgentBinding/index.html +24 -24
- package/app/m/social/OAuthState/index.html +24 -24
- package/app/m/social/SocialAccount/index.html +24 -24
- package/app/m/social/SocialPost/index.html +24 -24
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +24 -24
- package/app/m/subscriptions/BillingAdjustment/index.html +24 -24
- package/app/m/subscriptions/ClientCharge/index.html +24 -24
- package/app/m/subscriptions/CreditGrant/index.html +24 -24
- package/app/m/subscriptions/PricingRule/index.html +24 -24
- package/app/m/subscriptions/RetailCharge/index.html +24 -24
- package/app/m/subscriptions/SpendingPolicy/index.html +24 -24
- package/app/m/subscriptions/SubscriptionPlan/index.html +24 -24
- package/app/m/subscriptions/SubscriptionPlanVersion/index.html +24 -24
- package/app/m/subscriptions/TenantSubscription/index.html +24 -24
- package/app/m/subscriptions/TenantUsageMetric/index.html +24 -24
- package/app/m/support/ServiceTimeEntry/index.html +24 -24
- package/app/m/support/SupportAiRun/index.html +24 -24
- package/app/m/support/SupportAvailability/index.html +24 -24
- package/app/m/support/SupportCase/index.html +24 -24
- package/app/m/support/SupportCaseEvent/index.html +24 -24
- package/app/m/support/SupportChannelBinding/index.html +24 -24
- package/app/m/support/SupportCharge/index.html +24 -24
- package/app/m/support/SupportCompensation/index.html +24 -24
- package/app/m/support/SupportCompensationPlan/index.html +24 -24
- package/app/m/support/SupportEscalation/index.html +24 -24
- package/app/m/support/SupportInteraction/index.html +24 -24
- package/app/m/support/SupportPlan/index.html +24 -24
- package/app/m/support/SupportPolicy/index.html +24 -24
- package/app/m/support/SupportQualification/index.html +24 -24
- package/app/m/support/SupportServiceTarget/index.html +24 -24
- package/app/m/support/SupportSpecialist/index.html +24 -24
- package/app/m/support/SupportWorkLink/index.html +24 -24
- package/app/m/tags/Tag/index.html +24 -24
- package/app/m/tags/TagAlias/index.html +24 -24
- package/app/m/timesheets/AttendanceBreak/index.html +24 -24
- package/app/m/timesheets/AttendancePunch/index.html +24 -24
- package/app/m/timesheets/AttendanceSegment/index.html +24 -24
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +24 -24
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +24 -24
- package/app/m/timesheets/ServiceTimeEntry/index.html +24 -24
- package/app/m/users/Group/index.html +24 -24
- package/app/m/users/GroupMember/index.html +24 -24
- package/app/m/users/GroupRole/index.html +24 -24
- package/app/m/users/Membership/index.html +24 -24
- package/app/m/users/MembershipOverride/index.html +24 -24
- package/app/m/users/Permission/index.html +24 -24
- package/app/m/users/Role/index.html +24 -24
- package/app/m/users/RolePermission/index.html +24 -24
- package/app/m/users/Session/index.html +24 -24
- package/app/m/users/Tenant/index.html +24 -24
- package/app/m/users/TenantIntegration/index.html +24 -24
- package/app/m/users/TenantPermissionOverride/index.html +24 -24
- package/app/m/users/User/index.html +24 -24
- package/app/m/video/Character/index.html +24 -24
- package/app/m/video/CharacterAsset/index.html +24 -24
- package/app/m/video/CompositeJob/index.html +24 -24
- package/app/m/video/Performer/index.html +24 -24
- package/app/m/video/PerformerAsset/index.html +24 -24
- package/app/m/video/Scene/index.html +24 -24
- package/app/m/video/SceneAsset/index.html +24 -24
- package/app/m/video/VideoComposition/index.html +24 -24
- package/app/m/video/VideoCompositionAsset/index.html +24 -24
- package/app/m/video/VideoSequence/index.html +24 -24
- package/app/m/video/VideoSequenceAsset/index.html +24 -24
- package/app/m/video/VideoShot/index.html +24 -24
- package/app/m/video/VideoShotAsset/index.html +24 -24
- package/app/m/video/VideoShotCharacter/index.html +24 -24
- package/app/m/video/VideoWorkflow/index.html +24 -24
- package/app/m/voice/VoiceOutput/index.html +24 -24
- package/app/m/voice/VoiceProfile/index.html +24 -24
- package/app/m/voice/VoiceSample/index.html +24 -24
- package/app/mcp.html +2 -2
- package/app/packages/ads/index.html +22 -22
- package/app/packages/analytics/index.html +22 -22
- package/app/packages/approvals/index.html +22 -22
- package/app/packages/assets/index.html +22 -22
- package/app/packages/chat/index.html +22 -22
- package/app/packages/comments/index.html +22 -22
- package/app/packages/commerce/index.html +22 -22
- package/app/packages/content/index.html +22 -22
- package/app/packages/events/index.html +22 -22
- package/app/packages/expenses/index.html +22 -22
- package/app/packages/facts/index.html +22 -22
- package/app/packages/fields/index.html +22 -22
- package/app/packages/human-resources/index.html +22 -22
- package/app/packages/images/index.html +22 -22
- package/app/packages/index.html +21 -21
- package/app/packages/ingestion/index.html +22 -22
- package/app/packages/inventory/index.html +22 -22
- package/app/packages/ledgers/index.html +22 -22
- package/app/packages/manufacturing/index.html +22 -22
- package/app/packages/marketing/index.html +22 -22
- package/app/packages/messages/index.html +22 -22
- package/app/packages/places/index.html +22 -22
- package/app/packages/preferences/index.html +22 -22
- package/app/packages/products/index.html +22 -22
- package/app/packages/profiles/index.html +22 -22
- package/app/packages/projects/index.html +22 -22
- package/app/packages/properties/index.html +22 -22
- package/app/packages/reports/index.html +22 -22
- package/app/packages/sales/index.html +22 -22
- package/app/packages/sites/index.html +22 -22
- package/app/packages/social/index.html +22 -22
- package/app/packages/subscriptions/index.html +22 -22
- package/app/packages/support/index.html +22 -22
- package/app/packages/tags/index.html +22 -22
- package/app/packages/timesheets/index.html +22 -22
- package/app/packages/users/index.html +22 -22
- package/app/packages/video/index.html +22 -22
- package/app/packages/voice/index.html +22 -22
- package/app/packages/webhooks/index.html +22 -22
- package/app/recipes/account-access/help/index.html +22 -22
- package/app/recipes/account-access/index.html +25 -25
- package/app/recipes/activity/help/index.html +22 -22
- package/app/recipes/activity/index.html +25 -25
- package/app/recipes/agreements/help/index.html +22 -22
- package/app/recipes/agreements/index.html +25 -25
- package/app/recipes/analytics.reports/help/index.html +22 -22
- package/app/recipes/analytics.reports/index.html +25 -25
- package/app/recipes/assets/help/index.html +22 -22
- package/app/recipes/assets/index.html +25 -25
- package/app/recipes/billing/help/index.html +22 -22
- package/app/recipes/billing/index.html +25 -25
- package/app/recipes/chat.assistant/help/index.html +22 -22
- package/app/recipes/chat.assistant/index.html +25 -25
- package/app/recipes/comments/help/index.html +22 -22
- package/app/recipes/comments/index.html +25 -25
- package/app/recipes/commerce.customers/help/index.html +22 -22
- package/app/recipes/commerce.customers/index.html +25 -25
- package/app/recipes/commerce.estimates/help/index.html +22 -22
- package/app/recipes/commerce.estimates/index.html +25 -25
- package/app/recipes/commerce.purchases/help/index.html +22 -22
- package/app/recipes/commerce.purchases/index.html +25 -25
- package/app/recipes/commerce.sales/help/index.html +22 -22
- package/app/recipes/commerce.sales/index.html +25 -25
- package/app/recipes/commerce.vendors/help/index.html +22 -22
- package/app/recipes/commerce.vendors/index.html +25 -25
- package/app/recipes/commerce.wholesale/help/index.html +22 -22
- package/app/recipes/commerce.wholesale/index.html +25 -25
- package/app/recipes/events.calendar/help/index.html +22 -22
- package/app/recipes/events.calendar/index.html +25 -25
- package/app/recipes/expenses.tracking/help/index.html +22 -22
- package/app/recipes/expenses.tracking/index.html +25 -25
- package/app/recipes/fields.form-customization/help/index.html +22 -22
- package/app/recipes/fields.form-customization/index.html +25 -25
- package/app/recipes/ingestion/help/index.html +22 -22
- package/app/recipes/ingestion/index.html +25 -25
- package/app/recipes/integrations/help/index.html +22 -22
- package/app/recipes/integrations/index.html +25 -25
- package/app/recipes/inventory.stock/help/index.html +22 -22
- package/app/recipes/inventory.stock/index.html +25 -25
- package/app/recipes/ledgers.bookkeeping/help/index.html +22 -22
- package/app/recipes/ledgers.bookkeeping/index.html +25 -25
- package/app/recipes/messages/help/index.html +22 -22
- package/app/recipes/messages/index.html +25 -25
- package/app/recipes/products/help/index.html +22 -22
- package/app/recipes/products/index.html +25 -25
- package/app/recipes/projects.tracker/help/index.html +22 -22
- package/app/recipes/projects.tracker/index.html +25 -25
- package/app/recipes/reports.materialized/help/index.html +22 -22
- package/app/recipes/reports.materialized/index.html +25 -25
- package/app/recipes/reports.runtime/help/index.html +22 -22
- package/app/recipes/reports.runtime/index.html +25 -25
- package/app/recipes/sales.pipeline/help/index.html +22 -22
- package/app/recipes/sales.pipeline/index.html +25 -25
- package/app/recipes/tags.taxonomy/help/index.html +22 -22
- package/app/recipes/tags.taxonomy/index.html +25 -25
- package/app/recipes/team-collaboration/help/index.html +22 -22
- package/app/recipes/team-collaboration/index.html +25 -25
- package/app/recipes/timesheets.time-entries/help/index.html +22 -22
- package/app/recipes/timesheets.time-entries/index.html +25 -25
- package/app/s/custom-accounts/index.html +20 -20
- package/app/s/custom-appointments/index.html +20 -20
- package/app/s/custom-billing/index.html +20 -20
- package/app/s/custom-bookings/index.html +20 -20
- package/app/s/custom-buying/index.html +20 -20
- package/app/s/custom-checkout/index.html +20 -20
- package/app/s/custom-classes/index.html +20 -20
- package/app/s/custom-clients/index.html +20 -20
- package/app/s/custom-events/index.html +20 -20
- package/app/s/custom-fleet/index.html +20 -20
- package/app/s/custom-gigs/index.html +20 -20
- package/app/s/custom-giving/index.html +20 -20
- package/app/s/custom-instruments/index.html +20 -20
- package/app/s/custom-jobs/index.html +20 -20
- package/app/s/custom-kitchen/index.html +20 -20
- package/app/s/custom-lessons/index.html +20 -20
- package/app/s/custom-material/index.html +20 -20
- package/app/s/custom-meetings/index.html +20 -20
- package/app/s/custom-members/index.html +20 -20
- package/app/s/custom-merch/index.html +20 -20
- package/app/s/custom-money/index.html +20 -20
- package/app/s/custom-paint/index.html +20 -20
- package/app/s/custom-parts/index.html +20 -20
- package/app/s/custom-rentals/index.html +20 -20
- package/app/s/custom-roastery/index.html +20 -20
- package/app/s/custom-schedule/index.html +20 -20
- package/app/s/custom-shelf/index.html +20 -20
- package/app/s/custom-shop/index.html +20 -20
- package/app/s/custom-students/index.html +20 -20
- package/app/s/custom-wholesale/index.html +20 -20
- package/app/s/custom-work/index.html +20 -20
- package/app/s/custom-yard/index.html +20 -20
- package/app/s/section-access-control/index.html +20 -20
- package/app/s/section-account-security/index.html +20 -20
- package/app/s/section-accounting/index.html +20 -20
- package/app/s/section-activity/index.html +20 -20
- package/app/s/section-agreements/index.html +20 -20
- package/app/s/section-analytics/index.html +20 -20
- package/app/s/section-assets/index.html +20 -20
- package/app/s/section-billing/index.html +20 -20
- package/app/s/section-calendar/index.html +20 -20
- package/app/s/section-catalog/index.html +20 -20
- package/app/s/section-chat.assistant/index.html +20 -20
- package/app/s/section-comments/index.html +20 -20
- package/app/s/section-fields.form-customization/index.html +20 -20
- package/app/s/section-ingestion/index.html +20 -20
- package/app/s/section-integrations/index.html +20 -20
- package/app/s/section-messages/index.html +20 -20
- package/app/s/section-more/index.html +20 -20
- package/app/s/section-operations/index.html +20 -20
- package/app/s/section-projects/index.html +20 -20
- package/app/s/section-purchasing/index.html +20 -20
- package/app/s/section-reports.materialized/index.html +20 -20
- package/app/s/section-reports.runtime/index.html +20 -20
- package/app/s/section-sales/index.html +20 -20
- package/app/s/section-taxonomy/index.html +20 -20
- package/app/s/section-team/index.html +20 -20
- package/app/s/section-work/index.html +20 -20
- package/dist/catalog/catalog.json +38 -39
- package/dist/catalog/generate/extract.d.ts +2 -0
- package/dist/catalog/generate/extract.d.ts.map +1 -1
- package/dist/catalog/generate/extract.js +9 -6
- package/dist/overviews/registry.d.ts.map +1 -1
- package/dist/overviews/registry.js +24 -11
- 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/36UmRiHN.js +0 -1
- package/app/_app/immutable/chunks/9YQb8EzH.js +0 -4
- package/app/_app/immutable/chunks/BrGblPBG.js +0 -16
- package/app/_app/immutable/chunks/CA-A9Ngs.js +0 -1
- package/app/_app/immutable/chunks/CFtM7G4O.js +0 -2
- package/app/_app/immutable/chunks/CJqE_e1I.js +0 -2
- package/app/_app/immutable/chunks/D9JiVd8Y.js +0 -1
- package/app/_app/immutable/chunks/Sj1Sr1av.js +0 -1
- package/app/_app/immutable/chunks/uBIymjUX.js +0 -1
- package/app/_app/immutable/entry/start.BbchxoB8.js +0 -1
- package/app/_app/immutable/nodes/14.DD0wkvaL.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,B as n,Ct as r,Dt as i,F as a,Ft as o,G as s,H as c,J as l,L as u,Lt as d,Ot as f,Pt as p,R as m,T as h,U as g,W as _,X as v,Y as y,Z as b,a as x,b as S,bt as C,ct as w,d as T,dt as E,ft as D,gt as O,ht as k,k as A,kt as ee,l as j,mt as M,nt as N,ot as P,pt as F,r as I,s as te,st as L,ut as ne,v as R,vt as z,wt as B,z as re}from"../chunks/DG3qFFTE.js";import{a as ie,i as ae,n as V,r as oe,t as se,u as ce}from"../chunks/
|
|
1
|
+
import{n as e}from"../chunks/COiEfhsA.js";import{$ as t,B as n,Ct as r,Dt as i,F as a,Ft as o,G as s,H as c,J as l,L as u,Lt as d,Ot as f,Pt as p,R as m,T as h,U as g,W as _,X as v,Y as y,Z as b,a as x,b as S,bt as C,ct as w,d as T,dt as E,ft as D,gt as O,ht as k,k as A,kt as ee,l as j,mt as M,nt as N,ot as P,pt as F,r as I,s as te,st as L,ut as ne,v as R,vt as z,wt as B,z as re}from"../chunks/DG3qFFTE.js";import{a as ie,i as ae,n as V,r as oe,t as se,u as ce}from"../chunks/BRphH2sp.js";import"../chunks/xihTtKlq.js";import{a as le,i as ue,n as H,o as de,p as fe,s as pe,t as U,vt as me,xt as he,yt as ge}from"../chunks/DtyQVtuI.js";import{n as W}from"../chunks/DK8Blf1Y.js";import{i as _e,m as ve,n as ye,p as be,t as xe}from"../chunks/LqlI_3J_.js";import{n as Se}from"../chunks/CHp1-Djt.js";import{u as Ce}from"../chunks/DIE02RSm.js";import{c as G,d as we,h as Te,s as Ee}from"../chunks/Dij7Mzy3.js";import{A as De,C as Oe,D as ke,E as Ae,S as je,b as Me,i as K,j as Ne,n as Pe,r as Fe,s as Ie,t as Le}from"../chunks/BXYF4p6C.js";import"../chunks/BDBI1GHG.js";import"../chunks/Die26Dpp.js";import{t as q}from"../chunks/Cp6EyiHL.js";import{T as Re,m as ze,n as J,o as Be,t as Ve,w as He}from"../chunks/DiDXEaeE.js";import{M as Y,P as Ue,U as We,V as Ge,b as X,g as Ke,nt as qe,t as Z,u as Je,v as Ye,z as Xe}from"../chunks/jGR6M6GD.js";import{g as Q,h as Ze,v as Qe}from"../chunks/pwK8zqRY.js";import{n as $e,t as et}from"../chunks/xfjCb9hA.js";import"../chunks/d934w91N.js";import{a as tt,n as nt,s as rt,t as it,u as at}from"../chunks/BF1b-PyI.js";import{r as ot,t as st}from"../chunks/D_U_DYjx.js";import{_ as ct,a as lt,c as ut,d as dt,f as ft,h as pt,i as mt,l as ht,m as gt,o as $,r as _t,s as vt,t as yt}from"../chunks/BEQ1toJ7.js";import{n as bt}from"../chunks/ca0lfv12.js";import{t as xt}from"../chunks/Dbk0PTBM.js";import{a as St,i as Ct,n as wt,r as Tt}from"../chunks/BMgzWMdF.js";import{n as Et}from"../chunks/CgAkqYsL.js";var Dt=e({prerender:()=>!0,trailingSlash:()=>Ot}),Ot=`always`,kt=`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`,At=s(`<a class="cap svelte-nioco2"><!></a>`),jt=s(`<div class="ai-status svelte-nioco2" role="group" aria-label="AI models"></div>`);function Mt(e,n){f(n,!1);let r={think:Fe,hear:Le,speak:Pe};j();var a=jt();u(a,5,()=>K.capabilities,e=>e.id,(e,n)=>{var i=At(),a=D(i);qe(a,{get path(){return r[t(n).id]},size:20}),o(i),L(e=>{R(i,`href`,e),R(i,`data-state`,t(n).state),R(i,`aria-label`,t(n).label),R(i,`title`,t(n).label)},[()=>U(`/ai/`)]),g(e,i)}),o(a),g(e,a),i()}function Nt(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 Pt(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 Ft=s(`<div><!></div>`);function It(e,n){f(n,!0);let a=x(n,`answered`,3,null),s=nt(ot()),c=r(()=>J.settings().currency),l=r(()=>s.fieldsFor(n.proposal.spec.source)),u=C(O(a())),d=C(null);function p(e){z(u,e,!0),n.onoutcome?.(e)}function m(e){p({status:`saved`,report:{id:e.id,title:e.title}}),it(t(d),e)}var h=Ft(),_=D(h);at(_,{get proposal(){return n.proposal},get confirm(){return s.save},reportHref:e=>U(tt(e)),onsaved:m,ondecline:()=>p({status:`declined`}),get outcome(){return t(u)},get fields(){return t(l)},get currency(){return t(c)}}),o(h),T(h,e=>z(d,e),()=>t(d)),g(e,h),i()}var Lt=s(`<span role="status" aria-live="polite"> </span> <progress max="100" aria-label="Speech model download" class="svelte-w5gfst"> </progress>`,1),Rt=s(`<span class="error svelte-w5gfst" role="alert"> </span>`),zt=s(`<span>The speech model is already on this device. Turn on voice typing to
|
|
2
2
|
talk to the assistant?</span>`),Bt=s(`<span> </span>`),Vt=s(`<button type="button">Cancel</button>`),Ht=s(`<button type="button"> </button> <button type="button">Not now</button>`,1),Ut=s(`<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 Wt(e,a){f(a,!0);let s=r(()=>Math.round(a.voice.size/1e6)),l=r(()=>Math.round(a.voice.progress*100)),u=r(()=>a.voice.status===`offer`||a.voice.status===`downloading`||a.voice.status===`error`);var d=_(),p=F(d),m=e=>{var r=Ut(),i=k(D(r),2),u=D(i),d=e=>{var n=Lt(),r=F(n),i=M(r),o=k(r,2),s=M(o);L(()=>{c(i,`${a.voice.cached?`Turning on voice typing`:`Downloading speech model`}
|
|
3
3
|
${t(l)??``}%`),S(o,t(l)),c(s,`${t(l)??``}%`)}),g(e,n)},f=e=>{var t=Rt(),n=M(t);L(()=>c(n,`Voice typing could not start: ${a.voice.error??``}`)),g(e,t)},p=e=>{var t=zt();g(e,t)},m=e=>{var n=Bt(),r=M(n);L(e=>c(r,`Your browser can't do voice typing on its own. Download a ${e??``} speech model to talk to the assistant?`),[()=>Ae(t(s))]),g(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)}),o(i);var h=k(i,2),_=D(h),y=e=>{var t=Vt();v(`click`,t,()=>a.voice.cancel()),g(e,t)},b=e=>{var t=Ht(),n=F(t),r=M(n,!0),i=k(n,2);L(()=>c(r,a.voice.status===`error`?`Try again`:a.voice.cached?`Turn on`:`Download`)),v(`click`,n,()=>void a.voice.enable()),v(`click`,i,()=>a.voice.dismiss()),g(e,t)};n(_,e=>{a.voice.status===`downloading`?e(y):e(b,-1)}),o(h),o(r),g(e,r)};n(p,e=>{t(u)&&e(m)}),g(e,d),i()}y([`click`]);var Gt=s(`<div class="offer svelte-12q53fs" role="group" aria-label="Theme change"><!></div>`),Kt=s(`<p class="offer-note svelte-12q53fs" role="status">Theme restored.</p>`),qt=s(`<!> <!> <!>`,1),Jt=s(`<li><b> </b> </li>`),Yt=s(`<ul class="offer-menu svelte-12q53fs"></ul>`),Xt=s(`<small class="svelte-12q53fs">Replaces your recipes, menu and sample records.</small>`),Zt=s(`<div class="offer svelte-12q53fs" role="group"><div class="offer-text svelte-12q53fs"><strong> </strong> <span class="svelte-12q53fs"> </span> <!></div> <!> <!> <!></div>`),Qt=s(`<p class="offer-note svelte-12q53fs" role="status"> </p>`),$t=s(`<p class="offer-note svelte-12q53fs" role="alert"> </p>`),en=s(`<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
|
|
5
5
|
computer. Nothing else changes: the cards on the Planner page add and
|
|
6
6
|
remove recipes without it.</p></div>`),tn=s(`<div class="top svelte-12q53fs"><div class="bar svelte-12q53fs"><span class="model-name svelte-12q53fs"> </span> <a class="model-link svelte-12q53fs" aria-label="AI settings: change model or voice" title="AI settings"><svg viewBox="0 0 20 20" width="16" height="16" aria-hidden="true"><path d="M4 6h8M15 6h1M4 14h1M8 14h8" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><circle cx="13.5" cy="6" r="1.8" fill="none" stroke="currentColor" stroke-width="1.5"></circle><circle cx="6.5" cy="14" r="1.8" fill="none" stroke="currentColor" stroke-width="1.5"></circle></svg></a></div> <!></div> <div class="dock svelte-12q53fs"><!></div>`,1),nn=s(`<div class="panel svelte-12q53fs" role="status"><h2 class="svelte-12q53fs">Assistant</h2> <p class="svelte-12q53fs">The assistant is not set up.</p> <a>Set up the assistant</a></div>`),rn=s(`<div class="assistant svelte-12q53fs"><!></div>`);function an(e,a){f(a,!0);let s=(e,i=d)=>{var a=_(),s=F(a),c=e=>{let a=r(()=>t(T).themeUndos.undos[i().undoId]);var s=_(),c=F(s),u=e=>{var n=Gt(),r=D(n);W(r,{variant:`secondary`,onclick:()=>t(T).themeUndos?.undo(t(a).id),children:(e,t)=>{p();var n=l(`Undo theme change`);g(e,n)},$$slots:{default:!0}}),o(n),g(e,n)},d=e=>{var t=Kt();g(e,t)};n(c,e=>{t(a)?.status===`available`?e(u):t(a)?.status===`undone`&&e(d,1)}),g(e,s)},u=r(()=>je(i())&&t(T).themeUndos);n(s,e=>{t(u)&&e(c)}),g(e,a)},h=(e,n=d)=>{var r=_(),i=F(r);u(i,17,()=>Array.isArray(n().toolCallData)?n().toolCallData:[n().toolCallData],m,(e,n)=>{var r=qt(),i=F(r);y(i,()=>t(n));var a=k(i,2);s(a,()=>t(n));var o=k(a,2);v(o,()=>t(n)),g(e,r)}),g(e,r)},v=(e,i=d)=>{let a=r(()=>rt({toolCallData:i()}));var o=_(),s=F(o),c=e=>{{let n=r(()=>i().outcome??null);It(e,{get proposal(){return t(a)},get answered(){return t(n)},onoutcome:e=>t(T).transport.recordReportOutcome(t(a).specHash,e)})}};n(s,e=>{t(a)&&e(c)}),g(e,o)},y=(e,i=d)=>{var a=_(),s=F(a),f=e=>{let a=r(()=>t(T).offers.offers[i().offerId]),s=r(()=>t(a)?et(t(a).cookbookId):void 0);var d=_(),f=F(d),m=e=>{var i=_(),d=F(i),f=e=>{let i=r(()=>gt(t(s).document));var d=Zt(),f=D(d),m=D(f),h=M(m),_=k(m,2),v=M(_,!0),y=k(_,2),b=e=>{var n=Yt();u(n,21,()=>t(i),e=>e.id,(e,n)=>{var r=Jt(),i=D(r),a=M(i,!0),s=k(i);o(r),L(e=>{c(a,t(n).label),c(s,`:
|
|
7
|
-
${e??``}`)},[()=>t(n).entries.map(e=>e.label).join(`, `)]),g(e,r)}),o(n),g(e,n)};n(y,e=>{t(i).length&&e(b)}),o(f);var x=k(f,2);W(x,{onclick:()=>t(T).offers.accept(t(a).id),children:(e,n)=>{p();var r=l();L(()=>c(r,`Add ${t(s).name??``} cookbook`)),g(e,r)},$$slots:{default:!0}});var S=k(x,2);W(S,{variant:`secondary`,onclick:()=>t(T).offers.decline(t(a).id),children:(e,t)=>{p();var n=l(`No thanks`);g(e,n)},$$slots:{default:!0}});var C=k(S,2),w=e=>{var t=Xt();g(e,t)},E=r(()=>ct(J));n(C,e=>{t(E)&&e(w)}),o(d),L(()=>{R(d,`aria-label`,`Add the ${t(s).name??``} cookbook`),c(h,`${t(s).name??``} cookbook`),c(v,t(s).summary)}),g(e,d)},m=e=>{var n=Qt(),r=M(n);L(()=>c(r,`${t(s).name??``} set up.`)),g(e,n)},h=e=>{var n=$t(),r=M(n,!0);L(()=>c(r,t(a).error)),g(e,n)};n(d,e=>{t(a).status===`pending`?e(f):t(a).status===`applied`?e(m,1):t(a).status===`failed`&&e(h,2)}),g(e,i)};n(f,e=>{t(a)&&t(s)&&e(m)}),g(e,d)},m=r(()=>Oe(i()));n(s,e=>{t(m)&&e(f)}),g(e,a)},S=x(a,`settingsHref`,19,()=>U(`/ai/`)),T=r(()=>K.session),E=r(()=>K.voice),O=C(0);w(()=>{let e=t(T).transport;return z(O,e.resetRevision,!0),e.subscribeConversation(()=>{z(O,e.resetRevision,!0)})});let A=r(()=>ke(t(T).prefs.modelId)),ee=ot(),j=r(()=>Pt(bt(Z.ids,Y))),N=r(()=>t(T).mode===`manual`?`Off`:t(T).mode===`browser`?t(A)?De(t(A)):``:t(T).mode===`host`?`Server`:t(T).remoteLabel);w(()=>{let e=t(T).offers;return e.applier=e=>{let t=pt(e,J,Je(e.settings));return t.ok?(ee.reset?.(),null):t.error},()=>{e.applier=null}}),w(()=>(t(T).reports=nt(ee),()=>{t(T).reports=null}));var P=rn(),I=D(P),te=e=>{var t=en();g(e,t)},ne=e=>{var n=tn(),i=F(n),s=D(i),l=D(s),u=M(l,!0),d=k(l,2);o(s),Wt(k(s,2),{get voice(){return t(E)}}),o(i);var f=k(i,2),p=D(f);re(p,()=>t(O),e=>{{let n=r(()=>K.handsFreeActive?`hands-free`:`push`);Me(e,{get transport(){return t(T).transport},get registry(){return a.registry},contextMode:`server`,conversations:`single`,get suggestions(){return t(j)},composerPlaceholder:`I run a bakery…`,get toolCall(){return h},get dictation(){return t(E).dictation},get dictationMode(){return t(n)},get handsFreeCapture(){return Ne},get sendOnPause(){return K.sendOnPauseActive},get speaking(){return K.speaking}})}}),o(f),L(()=>{c(u,t(N)),R(d,`href`,S())}),b(`input`,f,e=>{Nt(e)&&K.cancelSpeech()},!0),b(`click`,f,e=>{Nt(e)&&K.cancelSpeech()},!0),g(e,n)},B=e=>{var t=nn(),n=k(D(t),4);o(t),L(()=>R(n,`href`,S())),g(e,t)};n(I,e=>{t(T).status===`unsupported`?e(te):t(T).status===`ready`?e(ne,1):e(B,-1)}),o(P),g(e,P),i()}var on=s(`<a class="header-link svelte-d0fjw8"><!></a>`);function sn(e,n){f(n,!0);let a=x(n,`current`,3,!1),s=be(ve());var c=on();let l;var u=D(c);{let e=r(()=>n.path?void 0:n.icon);Ye(u,{get path(){return n.path},get name(){return t(e)},size:18})}o(c),A(c,(e,t)=>s?.(e,t),()=>n.guideTarget??`item:${n.transitionName}`),L(()=>{R(c,`href`,n.href),R(c,`aria-label`,n.label),R(c,`title`,n.label),R(c,`aria-current`,a()?`page`:void 0),l=h(c,``,l,{"--smrt-header-icon-link-transition-name":n.transitionName})}),v(`click`,c,function(...e){n.onclick?.apply(this,e)}),g(e,c),i()}y([`click`]);function cn(e,n){f(n,!0);let a=Ce(),o=null,s=!1,c=()=>q.route.id?.startsWith(`/s/`)===!0,l=r(()=>new URL(U(`/`),q.url).pathname);w(()=>{let e=a.editing;if(e===s)return;s=e;let n=q.url.pathname+q.url.search;if(e)q.url.pathname!==t(l)&&!c()&&(o=n,V(U(`/`)));else if(o){let e=o;o=null,V(e)}}),i()}function ln(e,t){return e===void 0?t:typeof e==`function`?e():e}function un(e,t,n,r){for(let i of e){let e=`nav:${i.id??i.href}`;r.has(e)||(r.add(e),n.push({id:e,title:i.label,subtitle:t,keywords:i.description?[i.description]:void 0,icon:i.icon,kind:`navigation`,href:i.href})),i.children?.length&&un(i.children,t??i.label,n,r)}}function dn(e={}){return{id:e.id??`navigation`,label:e.label??`Go to`,order:e.order??10,items(){let t=[],n=new Set;un(ln(e.nav,[]),void 0,t,n);for(let r of ln(e.groups,[]))un(r.items,r.heading,t,n);return t}}}var fn=[{id:`cookbooks`,title:`Open Cookbooks`},{id:`recipes`,title:`Open Recipes`},{id:`features`,title:`Browse features`},{id:`layout`,title:`Open Layout`},{id:`settings`,title:`Open Settings`},{id:`export`,title:`Open Export`}];function pn(e){return[{id:`planner-tabs`,label:e.title??`Planner`,order:20,items:()=>fn.map(t=>({id:t.id,title:t.title,kind:`navigation`,href:e.href(t.id)}))},{id:`planner-features`,label:`Add a feature`,order:30,items:()=>e.recipes.filter(t=>!e.isOn(t.id)).map(t=>{let n=dt(ft(t))?.label;return{id:t.id,title:`Add ${t.label}`,subtitle:n?`${n}: ${t.summary}`:t.summary,keywords:t.synonyms,kind:`command`,run:({navigate:n})=>(e.add(t.id),n(e.href(`features`)))}})}]}function mn(e,t){f(t,!1);let n=Ce(),r=[dn({nav:()=>n.applied.nav,groups:()=>n.applied.groups}),...pn({recipes:Y,isOn:e=>Z.has(e),add:e=>Z.add(e),href:e=>U(`/?tab=${e}`)})];j(),_e(e,{get providers(){return r},navigate:e=>V(e),label:`Search`}),i()}var hn=new Set;function gn(e,t){return`planner-brand-${e.slice(1)}${t?`-${t.toLowerCase().replace(/[^a-z0-9]/g,``)}`:``}`}function _n(e){let t=e?.colorScheme??`system`,n=e?.custom,r=e?.fontFamily??n?.fontFamily,i=r?ze[r]:void 0;if(!n){let n=e?.preset??`glass`;if(!i)return{preset:n,colorScheme:t};let a=`planner-preset-${n}-${r?.toLowerCase().replace(/[^a-z0-9]/g,``)}`;if(!hn.has(a)){let e=we(n),t=Object.fromEntries(Object.entries(e.typography).map(([e,t])=>[e,{...t,fontFamily:`var(--smrt-font-family)`}]));G({...e,id:a,fontFamily:i,typography:t}),hn.add(a)}return{preset:a,colorScheme:t}}let a=gn(n.primary,r);return hn.has(a)||(G(Ee(n.primary,a,`Brand colour`,{...i?{fontFamily:i}:{}})),hn.add(a)),{preset:a,colorScheme:t}}var vn=s(`<span hidden="" data-smrt-planner-anchor=""></span>`);function yn(e,n){f(n,!0);let r=Te(),a=x(n,`deferInitial`,3,!1),o=C(!1);I(()=>{if(!a()){z(o,!0);return}let e=setTimeout(()=>{z(o,!0)},0);return()=>clearTimeout(e)});let s=null;w(()=>{if(!J.loaded||!t(o))return;let e=_n(J.theme);n.presetOverride&&(e.preset=n.presetOverride),(s?.preset!==e.preset||s.colorScheme!==e.colorScheme)&&(s=e,r.state.preset!==e.preset&&r.setPreset(e.preset),r.state.colorScheme!==e.colorScheme&&r.setColorScheme(e.colorScheme))}),w(()=>{if(!J.loaded||!t(o))return;let e=J.theme,n={borderRadius:e?.borderRadius??`md`,density:e?.density,contrast:e?.contrast??`auto`},{borderRadius:i,density:a,contrast:s}=r.state.config;(i!==n.borderRadius||a!==n.density||(s??`auto`)!==n.contrast)&&r.updateConfig(n)}),w(()=>{let{preset:e,colorScheme:t}=r.state;if(!s||!J.loaded)return;let n=s;e!==n.preset&&(s={...n,preset:e},J.setTheme({...J.theme,preset:e,fontFamily:J.theme?.fontFamily??J.theme?.custom?.fontFamily,custom:void 0})),t!==n.colorScheme&&(s={...s??n,colorScheme:t},J.setTheme({...J.theme,colorScheme:t}))});let c=C(null);w(()=>{if(typeof document>`u`||!J.loaded)return;let e=J.theme?.customCss;if(!e||Ct(location.search)||!Tt(e))return;let n=St(t(c));if(!n)return;let r=wt(e,n);if(!r)return;let i=document.createElement(`style`);return i.dataset.smrtPlannerCustom=``,i.textContent=r,document.head.append(i),()=>i.remove()});var l=vn();T(l,e=>z(c,e),()=>t(c)),g(e,l),i()}var bn=/^[A-Za-z0-9._~-]{1,256}$/;function xn(e){let t=e.startsWith(`#`)?e.slice(1):e;if(!t)return{present:!1,hash:``};let n,r=!1,i=[];for(let e of t.split(`&`)){let t=e.indexOf(`=`);if((t<0?e:e.slice(0,t))!==`kitchen`)i.push(e);else{if(!r&&t>=0){let r=e.slice(t+1);bn.test(r)&&(n=r)}r=!0}}let a=i.filter(e=>e!==``).join(`&`);return{...n?{token:n}:{},present:r,hash:a?`#${a}`:``}}var Sn=!1;function Cn(e){let n=C(null),r=C(!1),i=C(``),a=C(null),o=C(null),s=C(null),c=C(null),l=``,u=!1,d=e=>JSON.parse(JSON.stringify(e));function f(e){if(u)return;let r=e,o=r?.state?{planId:r.planId,...r.state}:e;if(!o||typeof o.planId!=`string`||!Number.isInteger(o.snapshot?.revision))throw Error(`Kitchen did not return a plan snapshot.`);if(t(n)&&o.planId!==t(n).planId)throw Error(`Kitchen returned a different plan.`);let c=Be(o.cookbook);if(!c.ok)throw Error(c.error);t(n)&&o.snapshot.revision<t(n).snapshot.revision||t(n)&&o.snapshot.revision===t(n).snapshot.revision||(t(n)&&JSON.stringify(J.snapshot())!==l&&(z(s,t(s)??d(J.snapshot())),z(i,`Kitchen updated the plan while you were editing. Your draft is preserved; dismiss it to keep editing.`)),z(n,{...o,cookbook:d(c.cookbook)}),z(a,null),J.apply(t(n).cookbook),J.loaded=!0,l=JSON.stringify(J.snapshot()))}async function p(){if(!t(c)||t(r)||u)return;z(r,!0),z(i,``);let n=t(o);try{let r=await e(`run_commands`,t(c));if(u)return;if((r?.state||r?.snapshot&&r?.cookbook)&&f(r),!r?.ok)throw z(c,null),z(s,t(s)??(n?d(n):null)),Error(r?.error?.message??`Kitchen rejected this edit. Your draft is preserved below; dismiss it to keep editing.`);z(c,null),t(o)===n&&z(o,null)}catch(e){u||(t(c)||z(s,t(s)??(n?d(n):null)),z(i,e instanceof Error?e.message:String(e),!0))}finally{z(r,!1)}}return{get current(){return t(n)},get busy(){return t(r)},get error(){return t(i)},get pendingPlanId(){return t(a)},get draft(){return t(o)},get preservedDraft(){return t(s)},dismissPreservedDraft(){z(s,null),t(c)||z(i,``)},get retryable(){return t(c)!==null},get locked(){return t(r)||t(c)!==null||t(s)!==null},refresh:f,reportError(e){z(i,e instanceof Error?e.message:String(e),!0)},receive(e){if(u)return;let r=e?.planId;!t(n)&&typeof r==`string`&&z(a,r,!0);try{f(e),!t(c)&&!t(o)&&z(i,``)}catch(e){z(i,e instanceof Error?e.message:String(e),!0)}},async connect(n){try{let r=await e(`get_plan`,{planId:n});if(u)return;f(r),!t(c)&&!t(o)&&z(i,``)}catch(e){u||z(i,String(e),!0)}},retry:p,mount(){if(Sn)throw Error(`Only one host-backed Planner may be mounted in this document.`);Sn=!0;let e=P(()=>{w(()=>{let e=JSON.stringify(J.snapshot());N(()=>{t(n)&&e!==l&&!u&&(z(o,JSON.parse(e)),J.apply(t(n).cookbook),l=JSON.stringify(J.snapshot()),t(r)||t(c)?z(i,`An edit is already pending. Your additional draft is preserved.`):(z(c,{planId:t(n).planId,id:crypto.randomUUID(),expectedRevision:t(n).snapshot.revision,commands:[{name:`import_cookbook`,input:{document:t(o),replace:!0}}]}),p()))})})});return()=>{u=!0,e(),Sn=!1}}}}async function wn(e,t,n){if(n.planId!==e.planId)throw Error(`Preview plan id changed.`);let r=`http://127.0.0.1:${e.port}/plans/${e.planId}`,i=t===`get_plan`?await fetch(r,{cache:`no-store`}):t===`run_commands`?await fetch(`${r}/commands`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n)}):null;if(!i)throw Error(`Preview tool ${t} is unavailable.`);if(!i.ok)throw Error(`Kitchen preview answered ${i.status}.`);return i.json()}var Tn=s(`<p role="alert" class="bridge-error svelte-38390f"> </p>`),En=s(`<details class="bridge-preserved svelte-38390f"><summary>Preserved edit</summary> <textarea readonly="" aria-label="Preserved cookbook edit" class="svelte-38390f"></textarea> <button type="button">Dismiss preserved edit</button></details>`),Dn=s(`<label for="bridge-draft">Preserved cookbook edit</label> <textarea id="bridge-draft" readonly="" class="svelte-38390f"></textarea>`,1),On=s(`<div class="bridge-backdrop svelte-38390f" aria-hidden="true"></div> <div class="bridge-recovery svelte-38390f" role="dialog" aria-modal="true" aria-labelledby="bridge-recovery-title"><h2 id="bridge-recovery-title" class="svelte-38390f">Kitchen edit needs attention</h2> <p class="svelte-38390f">The app is paused until this edit is retried. The same command will be sent so Kitchen can safely recognize a previous success.</p> <!> <button type="button">Retry same edit</button></div>`,1),kn=s(`<!> <!> <!>`,1);function An(e,t){f(t,!0);let r=Cn((e,n)=>wn(t.binding,e,n));w(()=>(t.onlock?.(r.locked),()=>t.onlock?.(!1))),I(()=>{let e=r.mount();r.connect(t.binding.planId);let n=setInterval(()=>{!r.busy&&!r.retryable&&document.visibilityState===`visible`&&r.connect(t.binding.planId)},1500);return()=>{clearInterval(n),e()}});var a=kn(),s=F(a),l=e=>{var t=Tn(),n=M(t);L(()=>c(n,`Kitchen live preview: ${r.error??``}`)),g(e,t)};n(s,e=>{r.error&&e(l)});var u=k(s,2),d=e=>{var t=En(),n=k(D(t),2);B(n);var i=k(n,2);o(t),L(e=>S(n,e),[()=>JSON.stringify(r.preservedDraft,null,2)]),v(`click`,i,()=>r.dismissPreservedDraft()),g(e,t)};n(u,e=>{r.preservedDraft&&!r.retryable&&e(d)});var p=k(u,2),m=e=>{var t=On(),i=k(F(t),2),a=k(D(i),4),s=e=>{var t=Dn(),n=k(F(t),2);B(n),L(e=>S(n,e),[()=>JSON.stringify(r.draft,null,2)]),g(e,t)};n(a,e=>{r.draft&&e(s)});var c=k(a,2);o(i),L(()=>c.disabled=r.busy),v(`click`,c,()=>r.retry()),g(e,t)};n(p,e=>{r.retryable&&e(m)}),g(e,a),i()}y([`click`]);var jn=`M4 9.5a3.5 3.5 0 1 1 7 0a3.5 3.5 0 1 1-7 0zM13 9.5a3.5 3.5 0 1 1 7 0a3.5 3.5 0 1 1-7 0zM8 7a4 4 0 1 1 8 0a4 4 0 1 1-8 0zM6 9.5h12V15H6zM7 16.5h10a1 1 0 0 1 1 1V19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1.5a1 1 0 0 1 1-1z`,Mn=`download`,Nn={left:!0},Pn={left:{initial:`expanded`},right:{initial:`collapsed`,rail:!1},bottom:{initial:`hidden`}};function Fn(e,t){return{tool:`assistant`,label:`Assistant`,labelNotReady:`Set up the assistant`,href:e,ready:t}}var In={id:`visitor`,slug:null,created_at:null,updated_at:null,profileId:`visitor`,email:``,status:`active`,lastLoginAt:null,name:`You`};function Ln(){return{edgeToggles:Nn,config:Pn,hotkeys:!1,user:In,colorSchemeToggle:{slot:`leftSidebar.footer`},accountMenu:{slot:`leftSidebar.footer`},phoneTabBar:!0,phoneDock:`sheet`}}var Rn=e=>{Mt(e,{})},zn=e=>{mn(e,{})},Bn=e=>{{let n=r(()=>U(`/`)),i=r(()=>q.route.id===`/`&&Q.active!==`export`);sn(e,{get href(){return t(n)},label:`Plan the app`,get path(){return jn},get current(){return t(i)},transitionName:`planner-customize`})}},Vn=e=>{{let n=r(()=>U(`/?tab=export`)),i=r(()=>q.route.id===`/`&&Q.active===`export`);sn(e,{get href(){return t(n)},label:`Export the app`,get icon(){return Mn},get current(){return t(i)},transitionName:`planner-export`})}},Hn=s(`<p class="storage-notice svelte-12qhfyh" role="status">This browser is not saving your cookbook, so it is kept in memory only. Export it from the Planner's Export tab to keep a copy.</p>`),Un=s(`<p class="storage-notice svelte-12qhfyh" role="status"> </p>`),Wn=s(`<p class="storage-notice svelte-12qhfyh" role="status"> <button type="button">Remove them</button></p>`),Gn=s(`<!> <!> <!> <!> <!> <!>`,1),Kn=s(`<!> <div class="shell-host svelte-12qhfyh"><!></div>`,1);function qn(e,s){f(s,!0),Qe.load();let l=r(mt),u=st(ht());ue(ce),Ze.onReplaced=()=>u.reset?.(),Ze.openSection=e=>{V(U(Et(e)))},Ze.openPath=e=>V(U(e));let p=$e.map(e=>e.id),m=()=>Q.active===`cookbooks`?$.open:null;$.navigator={open(e){let t=vt(pe(H(),`cookbooks`),e);ae(`${location.pathname}${t}${location.hash}`,{...q.state,cookbook:e}),$.set(e)},close(){q.state.cookbook?history.back():$.set(null)}};function h(){let e=location.pathname.replace(/\/$/,``)===ce.replace(/\/$/,``);$.set(e?lt(location.search,p):null,e)}let _=[],y=Ln(),x=r(()=>{let e=Z.ids.flatMap(e=>{let t=Y.find(t=>t.id===e);return t?[t]:[]});return Ke(e).flatMap(e=>{let t=new Set,n=[];for(let r of e.recipes){let e=U(`/recipes/${We(r)}/`),i=`${r.group?.label??r.label} options`,a=!0;for(let o of Xe(r)){let r=Ue(o.packageId,o.model.name,o.key);t.has(r)||(t.add(r),n.push({id:r,href:U(qe(o)),label:o.label,icon:o.icon,description:o.description,...a?{action:{href:e,label:i,visibility:`active`}}:{}}),a=!1)}}if(n.length===0)return[];let r=`section:${e.id}`;return[{id:r,heading:e.label,icon:e.icon,href:U(Et(r)),items:n}]})}),S=r(()=>{let e=Z.ids.flatMap(e=>{let t=Y.find(t=>t.id===e);return t?[t]:[]}),t=new Map;for(let n of Ke(e)){let e=[];for(let t of n.recipes){let n=We(t);e.some(e=>e.id===n)||e.push({id:n,label:t.group?.label??t.label})}t.set(`section:${n.id}`,e)}return t}),T=r(()=>{let e=Ge(Z.features).map(e=>({id:e.id,href:U(`/m/${e.packageId}/${e.modelName}/`),label:e.label,icon:e.icon,description:e.description}));return e.length?[{id:`section:${X.id}`,heading:X.label,icon:X.icon,href:U(Et(`section:${X.id}`)),items:e}]:[]}),O=r(()=>le.ids.flatMap(e=>{let t=he(e);return t?[{id:`package:${t.id}`,heading:fe(t.id),icon:`layers`,href:U(`/packages/${t.id}/`),items:[{id:`package:${t.id}:overview`,href:U(`/packages/${t.id}/`),label:`Overview`},...me(t).map(e=>({id:`package:${t.id}:${e.name}`,href:U(`/m/${t.id}/${e.name}/`),label:e.name}))]}]:[]})),A=r(()=>[...t(x),...t(T),...t(O)]),j=!1,N=!1,P=C(null),I=C(!1),R={present:!1,hash:``};ee(yt,{get current(){return!t(P)&&J.loaded&&!J.hostManaged?_t:null}});let B=()=>q.route.id===`/`;function re(e){let{package:t,model:n}=q.params,r=t&&n?ge(t,n):void 0,i=r?Re(He(location.search,r)):``;return i?e?`${e}&${i}`:`?${i}`:e}function W(){if(J.keepLegacyUrl)return;let e=B()?vt(pe(H(),Q.active),m()):re(H());location.search!==e&&ie(`${location.pathname}${e}${location.hash}`,q.state)}se(e=>{if(!N){N=!0,z(P,null,!0),t(P)?(J.hostManaged=!0,J.loaded=!0):J.hydrate(location.search),K.awaitConfig(),K.hydrate(!!(t(P)||Z.ids.length||Z.features.length)),R=xn(location.hash);let e=R.token;Ie(ce).then(t=>{K.configure(t),ut.configure(t.kitchen,e)})}de(location.search)&&le.fromSearch(location.search),B()&&(Q.fromSearch(location.search),$.set(lt(location.search,p),!1));let n=async()=>{if(R.present){let e=`${location.pathname}${location.search}${R.hash}`;R={present:!1,hash:R.hash};try{await V(e,{replaceState:!0,noScroll:!0,keepFocus:!0})}catch{history.replaceState({...history.state,"sveltekit:pageurl":new URL(e,location.href).href},``,e)}}j=!0,W()};e.type===`enter`?queueMicrotask(n):n()}),oe(ye()),w(()=>{H(),J.keepLegacyUrl,Q.active,$.open,q.route.id,j&&W()}),w(()=>{JSON.stringify(J.snapshot()),t(P)||J.scheduleSave()});function _e(){document.visibilityState===`hidden`&&!t(P)&&J.flush()}var ve=Kn();b(`pagehide`,E,()=>!t(P)&&J.flush()),b(`popstate`,E,h),b(`visibilitychange`,ne,_e);var be=F(ve),Ce=e=>{An(e,{get binding(){return t(P)},onlock:e=>z(I,e,!0)})};n(be,e=>{t(P)&&e(Ce)});var G=k(be,2),we=D(G);{let e=(e,n)=>{let i=()=>(n?.()).sectionId,a=()=>(n?.()).label;{let n=r(()=>t(S).get(i())??[]);xt(e,{get label(){return a()},get groups(){return t(n)}})}},i=(e,t=d)=>{Se(e,{id:`assistant`,label:`Assistant`,render:e=>{an(e,{get registry(){return t()}})},$$slots:{render:!0}})},u=r(()=>U(`/`)),f=r(()=>q.url.pathname+H()),p=r(()=>J.layout??null),m=r(()=>[{id:`ai-status`,label:`AI status`,slot:`leftSidebar.footer`,render:Rn},{id:`palette`,label:`Search`,slot:`header.center`,render:zn},{id:`planner-customize`,label:`Plan the app`,slot:`header.end`,render:Bn},{id:`planner-export`,label:`Export the app`,slot:`header.end`,render:Vn}]),h=r(()=>[Fn(U(`/ai/`),K.assistantReady)]),b=r(()=>J.theme?.borderRadius),x=r(()=>J.theme?.density),C=r(()=>J.theme?.contrast);xe(we,te({get storageKey(){return Ve},get title(){return t(l)},get logoSrc(){return kt},get homeHref(){return t(u)},get nav(){return _},get navGroups(){return t(A)},get currentHref(){return t(f)},environment:`static demo`,get layout(){return t(p)},onlayoutchange:e=>J.setLayout(e),get slotItems(){return t(m)},get dockToggles(){return t(h)},get borderRadius(){return t(b)},get density(){return t(x)},get contrast(){return t(C)}},()=>y,{layoutEditing:{slot:`header.start`},navMode:`sections-with-items`,sectionHref:e=>U(Et(e)),sectionActions:e,dock:i,children:(e,t)=>{var r=Gn(),i=F(r),l=e=>{var t=Hn();g(e,t)};n(i,e=>{J.persist===`memory`&&e(l)});var u=k(i,2),d=e=>{var t=Un(),n=M(t,!0);L(()=>c(n,J.loadNotice)),g(e,t)};n(u,e=>{J.loadNotice&&e(d)});var f=k(u,2),p=e=>{var t=Wn(),n=D(t),r=k(n);o(t),L(()=>c(n,`${J.unavailableNotice??``} `)),v(`click`,r,()=>J.removeUnavailable()),g(e,t)};n(f,e=>{J.unavailableNotice&&e(p)});var m=k(f,2);cn(m,{});var h=k(m,2);yn(h,{});var _=k(h,2);a(_,()=>s.children),g(e,r)},$$slots:{sectionActions:!0,dock:!0,default:!0}}))}o(G),L(()=>G.inert=t(I)),g(e,ve),i()}y([`click`]);export{qn as component,Dt as universal};
|
|
7
|
+
${e??``}`)},[()=>t(n).entries.map(e=>e.label).join(`, `)]),g(e,r)}),o(n),g(e,n)};n(y,e=>{t(i).length&&e(b)}),o(f);var x=k(f,2);W(x,{onclick:()=>t(T).offers.accept(t(a).id),children:(e,n)=>{p();var r=l();L(()=>c(r,`Add ${t(s).name??``} cookbook`)),g(e,r)},$$slots:{default:!0}});var S=k(x,2);W(S,{variant:`secondary`,onclick:()=>t(T).offers.decline(t(a).id),children:(e,t)=>{p();var n=l(`No thanks`);g(e,n)},$$slots:{default:!0}});var C=k(S,2),w=e=>{var t=Xt();g(e,t)},E=r(()=>ct(J));n(C,e=>{t(E)&&e(w)}),o(d),L(()=>{R(d,`aria-label`,`Add the ${t(s).name??``} cookbook`),c(h,`${t(s).name??``} cookbook`),c(v,t(s).summary)}),g(e,d)},m=e=>{var n=Qt(),r=M(n);L(()=>c(r,`${t(s).name??``} set up.`)),g(e,n)},h=e=>{var n=$t(),r=M(n,!0);L(()=>c(r,t(a).error)),g(e,n)};n(d,e=>{t(a).status===`pending`?e(f):t(a).status===`applied`?e(m,1):t(a).status===`failed`&&e(h,2)}),g(e,i)};n(f,e=>{t(a)&&t(s)&&e(m)}),g(e,d)},m=r(()=>Oe(i()));n(s,e=>{t(m)&&e(f)}),g(e,a)},S=x(a,`settingsHref`,19,()=>U(`/ai/`)),T=r(()=>K.session),E=r(()=>K.voice),O=C(0);w(()=>{let e=t(T).transport;return z(O,e.resetRevision,!0),e.subscribeConversation(()=>{z(O,e.resetRevision,!0)})});let A=r(()=>ke(t(T).prefs.modelId)),ee=ot(),j=r(()=>Pt(bt(Z.ids,X))),N=r(()=>t(T).mode===`manual`?`Off`:t(T).mode===`browser`?t(A)?De(t(A)):``:t(T).mode===`host`?`Server`:t(T).remoteLabel);w(()=>{let e=t(T).offers;return e.applier=e=>{let t=pt(e,J,Je(e.settings));return t.ok?(ee.reset?.(),null):t.error},()=>{e.applier=null}}),w(()=>(t(T).reports=nt(ee),()=>{t(T).reports=null}));var P=rn(),I=D(P),te=e=>{var t=en();g(e,t)},ne=e=>{var n=tn(),i=F(n),s=D(i),l=D(s),u=M(l,!0),d=k(l,2);o(s),Wt(k(s,2),{get voice(){return t(E)}}),o(i);var f=k(i,2),p=D(f);re(p,()=>t(O),e=>{{let n=r(()=>K.handsFreeActive?`hands-free`:`push`);Me(e,{get transport(){return t(T).transport},get registry(){return a.registry},contextMode:`server`,conversations:`single`,get suggestions(){return t(j)},composerPlaceholder:`I run a bakery…`,get toolCall(){return h},get dictation(){return t(E).dictation},get dictationMode(){return t(n)},get handsFreeCapture(){return Ne},get sendOnPause(){return K.sendOnPauseActive},get speaking(){return K.speaking}})}}),o(f),L(()=>{c(u,t(N)),R(d,`href`,S())}),b(`input`,f,e=>{Nt(e)&&K.cancelSpeech()},!0),b(`click`,f,e=>{Nt(e)&&K.cancelSpeech()},!0),g(e,n)},B=e=>{var t=nn(),n=k(D(t),4);o(t),L(()=>R(n,`href`,S())),g(e,t)};n(I,e=>{t(T).status===`unsupported`?e(te):t(T).status===`ready`?e(ne,1):e(B,-1)}),o(P),g(e,P),i()}var on=s(`<a class="header-link svelte-d0fjw8"><!></a>`);function sn(e,n){f(n,!0);let a=x(n,`current`,3,!1),s=be(ve());var c=on();let l;var u=D(c);{let e=r(()=>n.path?void 0:n.icon);qe(u,{get path(){return n.path},get name(){return t(e)},size:18})}o(c),A(c,(e,t)=>s?.(e,t),()=>n.guideTarget??`item:${n.transitionName}`),L(()=>{R(c,`href`,n.href),R(c,`aria-label`,n.label),R(c,`title`,n.label),R(c,`aria-current`,a()?`page`:void 0),l=h(c,``,l,{"--smrt-header-icon-link-transition-name":n.transitionName})}),v(`click`,c,function(...e){n.onclick?.apply(this,e)}),g(e,c),i()}y([`click`]);function cn(e,n){f(n,!0);let a=Ce(),o=null,s=!1,c=()=>q.route.id?.startsWith(`/s/`)===!0,l=r(()=>new URL(U(`/`),q.url).pathname);w(()=>{let e=a.editing;if(e===s)return;s=e;let n=q.url.pathname+q.url.search;if(e)q.url.pathname!==t(l)&&!c()&&(o=n,V(U(`/`)));else if(o){let e=o;o=null,V(e)}}),i()}function ln(e,t){return e===void 0?t:typeof e==`function`?e():e}function un(e,t,n,r){for(let i of e){let e=`nav:${i.id??i.href}`;r.has(e)||(r.add(e),n.push({id:e,title:i.label,subtitle:t,keywords:i.description?[i.description]:void 0,icon:i.icon,kind:`navigation`,href:i.href})),i.children?.length&&un(i.children,t??i.label,n,r)}}function dn(e={}){return{id:e.id??`navigation`,label:e.label??`Go to`,order:e.order??10,items(){let t=[],n=new Set;un(ln(e.nav,[]),void 0,t,n);for(let r of ln(e.groups,[]))un(r.items,r.heading,t,n);return t}}}var fn=[{id:`cookbooks`,title:`Open Cookbooks`},{id:`recipes`,title:`Open Recipes`},{id:`features`,title:`Browse features`},{id:`layout`,title:`Open Layout`},{id:`settings`,title:`Open Settings`},{id:`export`,title:`Open Export`}];function pn(e){return[{id:`planner-tabs`,label:e.title??`Planner`,order:20,items:()=>fn.map(t=>({id:t.id,title:t.title,kind:`navigation`,href:e.href(t.id)}))},{id:`planner-features`,label:`Add a feature`,order:30,items:()=>e.recipes.filter(t=>!e.isOn(t.id)).map(t=>{let n=dt(ft(t))?.label;return{id:t.id,title:`Add ${t.label}`,subtitle:n?`${n}: ${t.summary}`:t.summary,keywords:t.synonyms,kind:`command`,run:({navigate:n})=>(e.add(t.id),n(e.href(`features`)))}})}]}function mn(e,t){f(t,!1);let n=Ce(),r=[dn({nav:()=>n.applied.nav,groups:()=>n.applied.groups}),...pn({recipes:X,isOn:e=>Z.has(e),add:e=>Z.add(e),href:e=>U(`/?tab=${e}`)})];j(),_e(e,{get providers(){return r},navigate:e=>V(e),label:`Search`}),i()}var hn=new Set;function gn(e,t){return`planner-brand-${e.slice(1)}${t?`-${t.toLowerCase().replace(/[^a-z0-9]/g,``)}`:``}`}function _n(e){let t=e?.colorScheme??`system`,n=e?.custom,r=e?.fontFamily??n?.fontFamily,i=r?ze[r]:void 0;if(!n){let n=e?.preset??`glass`;if(!i)return{preset:n,colorScheme:t};let a=`planner-preset-${n}-${r?.toLowerCase().replace(/[^a-z0-9]/g,``)}`;if(!hn.has(a)){let e=we(n),t=Object.fromEntries(Object.entries(e.typography).map(([e,t])=>[e,{...t,fontFamily:`var(--smrt-font-family)`}]));G({...e,id:a,fontFamily:i,typography:t}),hn.add(a)}return{preset:a,colorScheme:t}}let a=gn(n.primary,r);return hn.has(a)||(G(Ee(n.primary,a,`Brand colour`,{...i?{fontFamily:i}:{}})),hn.add(a)),{preset:a,colorScheme:t}}var vn=s(`<span hidden="" data-smrt-planner-anchor=""></span>`);function yn(e,n){f(n,!0);let r=Te(),a=x(n,`deferInitial`,3,!1),o=C(!1);I(()=>{if(!a()){z(o,!0);return}let e=setTimeout(()=>{z(o,!0)},0);return()=>clearTimeout(e)});let s=null;w(()=>{if(!J.loaded||!t(o))return;let e=_n(J.theme);n.presetOverride&&(e.preset=n.presetOverride),(s?.preset!==e.preset||s.colorScheme!==e.colorScheme)&&(s=e,r.state.preset!==e.preset&&r.setPreset(e.preset),r.state.colorScheme!==e.colorScheme&&r.setColorScheme(e.colorScheme))}),w(()=>{if(!J.loaded||!t(o))return;let e=J.theme,n={borderRadius:e?.borderRadius??`md`,density:e?.density,contrast:e?.contrast??`auto`},{borderRadius:i,density:a,contrast:s}=r.state.config;(i!==n.borderRadius||a!==n.density||(s??`auto`)!==n.contrast)&&r.updateConfig(n)}),w(()=>{let{preset:e,colorScheme:t}=r.state;if(!s||!J.loaded)return;let n=s;e!==n.preset&&(s={...n,preset:e},J.setTheme({...J.theme,preset:e,fontFamily:J.theme?.fontFamily??J.theme?.custom?.fontFamily,custom:void 0})),t!==n.colorScheme&&(s={...s??n,colorScheme:t},J.setTheme({...J.theme,colorScheme:t}))});let c=C(null);w(()=>{if(typeof document>`u`||!J.loaded)return;let e=J.theme?.customCss;if(!e||Ct(location.search)||!Tt(e))return;let n=St(t(c));if(!n)return;let r=wt(e,n);if(!r)return;let i=document.createElement(`style`);return i.dataset.smrtPlannerCustom=``,i.textContent=r,document.head.append(i),()=>i.remove()});var l=vn();T(l,e=>z(c,e),()=>t(c)),g(e,l),i()}var bn=/^[A-Za-z0-9._~-]{1,256}$/;function xn(e){let t=e.startsWith(`#`)?e.slice(1):e;if(!t)return{present:!1,hash:``};let n,r=!1,i=[];for(let e of t.split(`&`)){let t=e.indexOf(`=`);if((t<0?e:e.slice(0,t))!==`kitchen`)i.push(e);else{if(!r&&t>=0){let r=e.slice(t+1);bn.test(r)&&(n=r)}r=!0}}let a=i.filter(e=>e!==``).join(`&`);return{...n?{token:n}:{},present:r,hash:a?`#${a}`:``}}var Sn=!1;function Cn(e){let n=C(null),r=C(!1),i=C(``),a=C(null),o=C(null),s=C(null),c=C(null),l=``,u=!1,d=e=>JSON.parse(JSON.stringify(e));function f(e){if(u)return;let r=e,o=r?.state?{planId:r.planId,...r.state}:e;if(!o||typeof o.planId!=`string`||!Number.isInteger(o.snapshot?.revision))throw Error(`Kitchen did not return a plan snapshot.`);if(t(n)&&o.planId!==t(n).planId)throw Error(`Kitchen returned a different plan.`);let c=Be(o.cookbook);if(!c.ok)throw Error(c.error);t(n)&&o.snapshot.revision<t(n).snapshot.revision||t(n)&&o.snapshot.revision===t(n).snapshot.revision||(t(n)&&JSON.stringify(J.snapshot())!==l&&(z(s,t(s)??d(J.snapshot())),z(i,`Kitchen updated the plan while you were editing. Your draft is preserved; dismiss it to keep editing.`)),z(n,{...o,cookbook:d(c.cookbook)}),z(a,null),J.apply(t(n).cookbook),J.loaded=!0,l=JSON.stringify(J.snapshot()))}async function p(){if(!t(c)||t(r)||u)return;z(r,!0),z(i,``);let n=t(o);try{let r=await e(`run_commands`,t(c));if(u)return;if((r?.state||r?.snapshot&&r?.cookbook)&&f(r),!r?.ok)throw z(c,null),z(s,t(s)??(n?d(n):null)),Error(r?.error?.message??`Kitchen rejected this edit. Your draft is preserved below; dismiss it to keep editing.`);z(c,null),t(o)===n&&z(o,null)}catch(e){u||(t(c)||z(s,t(s)??(n?d(n):null)),z(i,e instanceof Error?e.message:String(e),!0))}finally{z(r,!1)}}return{get current(){return t(n)},get busy(){return t(r)},get error(){return t(i)},get pendingPlanId(){return t(a)},get draft(){return t(o)},get preservedDraft(){return t(s)},dismissPreservedDraft(){z(s,null),t(c)||z(i,``)},get retryable(){return t(c)!==null},get locked(){return t(r)||t(c)!==null||t(s)!==null},refresh:f,reportError(e){z(i,e instanceof Error?e.message:String(e),!0)},receive(e){if(u)return;let r=e?.planId;!t(n)&&typeof r==`string`&&z(a,r,!0);try{f(e),!t(c)&&!t(o)&&z(i,``)}catch(e){z(i,e instanceof Error?e.message:String(e),!0)}},async connect(n){try{let r=await e(`get_plan`,{planId:n});if(u)return;f(r),!t(c)&&!t(o)&&z(i,``)}catch(e){u||z(i,String(e),!0)}},retry:p,mount(){if(Sn)throw Error(`Only one host-backed Planner may be mounted in this document.`);Sn=!0;let e=P(()=>{w(()=>{let e=JSON.stringify(J.snapshot());N(()=>{t(n)&&e!==l&&!u&&(z(o,JSON.parse(e)),J.apply(t(n).cookbook),l=JSON.stringify(J.snapshot()),t(r)||t(c)?z(i,`An edit is already pending. Your additional draft is preserved.`):(z(c,{planId:t(n).planId,id:crypto.randomUUID(),expectedRevision:t(n).snapshot.revision,commands:[{name:`import_cookbook`,input:{document:t(o),replace:!0}}]}),p()))})})});return()=>{u=!0,e(),Sn=!1}}}}async function wn(e,t,n){if(n.planId!==e.planId)throw Error(`Preview plan id changed.`);let r=`http://127.0.0.1:${e.port}/plans/${e.planId}`,i=t===`get_plan`?await fetch(r,{cache:`no-store`}):t===`run_commands`?await fetch(`${r}/commands`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(n)}):null;if(!i)throw Error(`Preview tool ${t} is unavailable.`);if(!i.ok)throw Error(`Kitchen preview answered ${i.status}.`);return i.json()}var Tn=s(`<p role="alert" class="bridge-error svelte-38390f"> </p>`),En=s(`<details class="bridge-preserved svelte-38390f"><summary>Preserved edit</summary> <textarea readonly="" aria-label="Preserved cookbook edit" class="svelte-38390f"></textarea> <button type="button">Dismiss preserved edit</button></details>`),Dn=s(`<label for="bridge-draft">Preserved cookbook edit</label> <textarea id="bridge-draft" readonly="" class="svelte-38390f"></textarea>`,1),On=s(`<div class="bridge-backdrop svelte-38390f" aria-hidden="true"></div> <div class="bridge-recovery svelte-38390f" role="dialog" aria-modal="true" aria-labelledby="bridge-recovery-title"><h2 id="bridge-recovery-title" class="svelte-38390f">Kitchen edit needs attention</h2> <p class="svelte-38390f">The app is paused until this edit is retried. The same command will be sent so Kitchen can safely recognize a previous success.</p> <!> <button type="button">Retry same edit</button></div>`,1),kn=s(`<!> <!> <!>`,1);function An(e,t){f(t,!0);let r=Cn((e,n)=>wn(t.binding,e,n));w(()=>(t.onlock?.(r.locked),()=>t.onlock?.(!1))),I(()=>{let e=r.mount();r.connect(t.binding.planId);let n=setInterval(()=>{!r.busy&&!r.retryable&&document.visibilityState===`visible`&&r.connect(t.binding.planId)},1500);return()=>{clearInterval(n),e()}});var a=kn(),s=F(a),l=e=>{var t=Tn(),n=M(t);L(()=>c(n,`Kitchen live preview: ${r.error??``}`)),g(e,t)};n(s,e=>{r.error&&e(l)});var u=k(s,2),d=e=>{var t=En(),n=k(D(t),2);B(n);var i=k(n,2);o(t),L(e=>S(n,e),[()=>JSON.stringify(r.preservedDraft,null,2)]),v(`click`,i,()=>r.dismissPreservedDraft()),g(e,t)};n(u,e=>{r.preservedDraft&&!r.retryable&&e(d)});var p=k(u,2),m=e=>{var t=On(),i=k(F(t),2),a=k(D(i),4),s=e=>{var t=Dn(),n=k(F(t),2);B(n),L(e=>S(n,e),[()=>JSON.stringify(r.draft,null,2)]),g(e,t)};n(a,e=>{r.draft&&e(s)});var c=k(a,2);o(i),L(()=>c.disabled=r.busy),v(`click`,c,()=>r.retry()),g(e,t)};n(p,e=>{r.retryable&&e(m)}),g(e,a),i()}y([`click`]);var jn=`M4 9.5a3.5 3.5 0 1 1 7 0a3.5 3.5 0 1 1-7 0zM13 9.5a3.5 3.5 0 1 1 7 0a3.5 3.5 0 1 1-7 0zM8 7a4 4 0 1 1 8 0a4 4 0 1 1-8 0zM6 9.5h12V15H6zM7 16.5h10a1 1 0 0 1 1 1V19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-1.5a1 1 0 0 1 1-1z`,Mn=`download`,Nn={left:!0},Pn={left:{initial:`expanded`},right:{initial:`collapsed`,rail:!1},bottom:{initial:`hidden`}};function Fn(e,t){return{tool:`assistant`,label:`Assistant`,labelNotReady:`Set up the assistant`,href:e,ready:t}}var In={id:`visitor`,slug:null,created_at:null,updated_at:null,profileId:`visitor`,email:``,status:`active`,lastLoginAt:null,name:`You`};function Ln(){return{edgeToggles:Nn,config:Pn,hotkeys:!1,user:In,colorSchemeToggle:{slot:`leftSidebar.footer`},accountMenu:{slot:`leftSidebar.footer`},phoneTabBar:!0,phoneDock:`sheet`}}var Rn=e=>{Mt(e,{})},zn=e=>{mn(e,{})},Bn=e=>{{let n=r(()=>U(`/`)),i=r(()=>q.route.id===`/`&&Q.active!==`export`);sn(e,{get href(){return t(n)},label:`Plan the app`,get path(){return jn},get current(){return t(i)},transitionName:`planner-customize`})}},Vn=e=>{{let n=r(()=>U(`/?tab=export`)),i=r(()=>q.route.id===`/`&&Q.active===`export`);sn(e,{get href(){return t(n)},label:`Export the app`,get icon(){return Mn},get current(){return t(i)},transitionName:`planner-export`})}},Hn=s(`<p class="storage-notice svelte-12qhfyh" role="status">This browser is not saving your cookbook, so it is kept in memory only. Export it from the Planner's Export tab to keep a copy.</p>`),Un=s(`<p class="storage-notice svelte-12qhfyh" role="status"> </p>`),Wn=s(`<p class="storage-notice svelte-12qhfyh" role="status"> <button type="button">Remove them</button></p>`),Gn=s(`<!> <!> <!> <!> <!> <!>`,1),Kn=s(`<!> <div class="shell-host svelte-12qhfyh"><!></div>`,1);function qn(e,s){f(s,!0),Qe.load();let l=r(mt),u=st(ht());ue(ce),Ze.onReplaced=()=>u.reset?.(),Ze.openSection=e=>{V(U(Et(e)))},Ze.openPath=e=>V(U(e));let p=$e.map(e=>e.id),m=()=>Q.active===`cookbooks`?$.open:null;$.navigator={open(e){let t=vt(pe(H(),`cookbooks`),e);ae(`${location.pathname}${t}${location.hash}`,{...q.state,cookbook:e}),$.set(e)},close(){q.state.cookbook?history.back():$.set(null)}};function h(){let e=location.pathname.replace(/\/$/,``)===ce.replace(/\/$/,``);$.set(e?lt(location.search,p):null,e)}let _=[],y=Ln(),x=r(()=>{let e=Z.ids.flatMap(e=>{let t=X.find(t=>t.id===e);return t?[t]:[]});return Xe(e).flatMap(e=>{let t=new Set,n=[];for(let r of e.recipes){let e=U(`/recipes/${We(r)}/`),i=`${r.group?.label??r.label} options`,a=!0;for(let o of Ye(r)){let r=Ge(o.packageId,o.model.name,o.key);t.has(r)||(t.add(r),n.push({id:r,href:U(Ke(o)),label:o.label,icon:o.icon,description:o.description,...a?{action:{href:e,label:i,visibility:`active`}}:{}}),a=!1)}}if(n.length===0)return[];let r=`section:${e.id}`;return[{id:r,heading:e.label,icon:e.icon,href:U(Et(r)),items:n}]})}),S=r(()=>{let e=Z.ids.flatMap(e=>{let t=X.find(t=>t.id===e);return t?[t]:[]}),t=new Map;for(let n of Xe(e)){let e=[];for(let t of n.recipes){let n=We(t);e.some(e=>e.id===n)||e.push({id:n,label:t.group?.label??t.label})}t.set(`section:${n.id}`,e)}return t}),T=r(()=>{let e=Ue(Z.features).map(e=>({id:e.id,href:U(`/m/${e.packageId}/${e.modelName}/`),label:e.label,icon:e.icon,description:e.description}));return e.length?[{id:`section:${Y.id}`,heading:Y.label,icon:Y.icon,href:U(Et(`section:${Y.id}`)),items:e}]:[]}),O=r(()=>le.ids.flatMap(e=>{let t=he(e);return t?[{id:`package:${t.id}`,heading:fe(t.id),icon:`layers`,href:U(`/packages/${t.id}/`),items:[{id:`package:${t.id}:overview`,href:U(`/packages/${t.id}/`),label:`Overview`},...me(t).map(e=>({id:`package:${t.id}:${e.name}`,href:U(`/m/${t.id}/${e.name}/`),label:e.name}))]}]:[]})),A=r(()=>[...t(x),...t(T),...t(O)]),j=!1,N=!1,P=C(null),I=C(!1),R={present:!1,hash:``};ee(yt,{get current(){return!t(P)&&J.loaded&&!J.hostManaged?_t:null}});let B=()=>q.route.id===`/`;function re(e){let{package:t,model:n}=q.params,r=t&&n?ge(t,n):void 0,i=r?Re(He(location.search,r)):``;return i?e?`${e}&${i}`:`?${i}`:e}function W(){if(J.keepLegacyUrl)return;let e=B()?vt(pe(H(),Q.active),m()):re(H());location.search!==e&&ie(`${location.pathname}${e}${location.hash}`,q.state)}se(e=>{if(!N){N=!0,z(P,null,!0),t(P)?(J.hostManaged=!0,J.loaded=!0):J.hydrate(location.search),K.awaitConfig(),K.hydrate(!!(t(P)||Z.ids.length||Z.features.length)),R=xn(location.hash);let e=R.token;Ie(ce).then(t=>{K.configure(t),ut.configure(t.kitchen,e)})}de(location.search)&&le.fromSearch(location.search),B()&&(Q.fromSearch(location.search),$.set(lt(location.search,p),!1));let n=async()=>{if(R.present){let e=`${location.pathname}${location.search}${R.hash}`;R={present:!1,hash:R.hash};try{await V(e,{replaceState:!0,noScroll:!0,keepFocus:!0})}catch{history.replaceState({...history.state,"sveltekit:pageurl":new URL(e,location.href).href},``,e)}}j=!0,W()};e.type===`enter`?queueMicrotask(n):n()}),oe(ye()),w(()=>{H(),J.keepLegacyUrl,Q.active,$.open,q.route.id,j&&W()}),w(()=>{JSON.stringify(J.snapshot()),t(P)||J.scheduleSave()});function _e(){document.visibilityState===`hidden`&&!t(P)&&J.flush()}var ve=Kn();b(`pagehide`,E,()=>!t(P)&&J.flush()),b(`popstate`,E,h),b(`visibilitychange`,ne,_e);var be=F(ve),Ce=e=>{An(e,{get binding(){return t(P)},onlock:e=>z(I,e,!0)})};n(be,e=>{t(P)&&e(Ce)});var G=k(be,2),we=D(G);{let e=(e,n)=>{let i=()=>(n?.()).sectionId,a=()=>(n?.()).label;{let n=r(()=>t(S).get(i())??[]);xt(e,{get label(){return a()},get groups(){return t(n)}})}},i=(e,t=d)=>{Se(e,{id:`assistant`,label:`Assistant`,render:e=>{an(e,{get registry(){return t()}})},$$slots:{render:!0}})},u=r(()=>U(`/`)),f=r(()=>q.url.pathname+H()),p=r(()=>J.layout??null),m=r(()=>[{id:`ai-status`,label:`AI status`,slot:`leftSidebar.footer`,render:Rn},{id:`palette`,label:`Search`,slot:`header.center`,render:zn},{id:`planner-customize`,label:`Plan the app`,slot:`header.end`,render:Bn},{id:`planner-export`,label:`Export the app`,slot:`header.end`,render:Vn}]),h=r(()=>[Fn(U(`/ai/`),K.assistantReady)]),b=r(()=>J.theme?.borderRadius),x=r(()=>J.theme?.density),C=r(()=>J.theme?.contrast);xe(we,te({get storageKey(){return Ve},get title(){return t(l)},get logoSrc(){return kt},get homeHref(){return t(u)},get nav(){return _},get navGroups(){return t(A)},get currentHref(){return t(f)},environment:`static demo`,get layout(){return t(p)},onlayoutchange:e=>J.setLayout(e),get slotItems(){return t(m)},get dockToggles(){return t(h)},get borderRadius(){return t(b)},get density(){return t(x)},get contrast(){return t(C)}},()=>y,{layoutEditing:{slot:`header.start`},navMode:`sections-with-items`,sectionHref:e=>U(Et(e)),sectionActions:e,dock:i,children:(e,t)=>{var r=Gn(),i=F(r),l=e=>{var t=Hn();g(e,t)};n(i,e=>{J.persist===`memory`&&e(l)});var u=k(i,2),d=e=>{var t=Un(),n=M(t,!0);L(()=>c(n,J.loadNotice)),g(e,t)};n(u,e=>{J.loadNotice&&e(d)});var f=k(u,2),p=e=>{var t=Wn(),n=D(t),r=k(n);o(t),L(()=>c(n,`${J.unavailableNotice??``} `)),v(`click`,r,()=>J.removeUnavailable()),g(e,t)};n(f,e=>{J.unavailableNotice&&e(p)});var m=k(f,2);cn(m,{});var h=k(m,2);yn(h,{});var _=k(h,2);a(_,()=>s.children),g(e,r)},$$slots:{sectionActions:!0,dock:!0,default:!0}}))}o(G),L(()=>G.inert=t(I)),g(e,ve),i()}y([`click`]);export{qn as component,Dt as universal};
|
|
@@ -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/Cp6EyiHL.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,St as k,_t as A,a as j,p as M,t as N,vt 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,St as k,_t as A,a as j,p as M,t as N,vt as P}from"../chunks/DtyQVtuI.js";import{p as te}from"../chunks/DIE02RSm.js";import{i as F}from"../chunks/Bs5WxZDd.js";import{t as ne}from"../chunks/BkEeNbLN.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),re=s(`<p class="meta svelte-disfw2"> </p>`),ie=s(`<li><h3 class="svelte-disfw2"><a> </a></h3> <p class="description svelte-disfw2"> </p> <p class="meta svelte-disfw2"><!></p> <!> <!></li>`),ae=s(`<li class="none svelte-disfw2"> </li>`),oe=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 z(s,h){d(h,!0);let z=v(``),B=v(``),V=r(()=>k(A.packages,e(z)));function se(e){let t=new Set(j.ids),n=t.has(e);j.toggle(e);let r=j.ids.filter(n=>!t.has(n)&&n!==e);D(B,n?`Removed ${M(e)}.`:r.length?`Added ${M(e)} and the packages it needs: ${r.map(M).join(`, `)}.`:`Added ${M(e)}.`,!0)}var H=oe();t(`disfw2`,e=>{_(()=>{T.title=`All packages · smrt planner`})});var U=y(H),W=y(U),G=y(W);f(),o(W),f(4),o(U);var K=b(U,2),q=b(y(K),2),ce=e=>{var t=I();p(e,t)},le=e=>{var t=R(),n=C(t);u(n,20,()=>j.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)},[()=>N(`/packages/${t}/`),()=>M(t)]),p(e,n)}),o(n);var r=b(n,2);m(`click`,r,()=>j.clear()),p(e,t)};n(q,e=>{j.ids.length===0?e(ce):e(le,-1)});var ue=b(q,2),de=x(ue,!0);o(K);var J=b(K,2),Y=y(J),X=b(y(Y)),fe=x(X);o(Y);var Z=b(Y,2),Q=b(y(Z),2);g(Q),o(Z);var $=b(Z,2);u($,29,()=>e(V),e=>e.id,(t,i)=>{let s=r(()=>j.has(e(i).id)),u=r(()=>j.requiredBy(e(i).id));var d=ie();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`),[()=>P(e(i)).length,()=>O(e(i))]),p(t,n)},D=r(()=>P(e(i)).length),k=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(k,-1)}),o(S);var A=b(S,2),I=t=>{var n=re(),r=x(n);w(e=>c(r,`Needs: ${e??``}`),[()=>e(i).dependencies.map(M).join(`, `)]),p(t,n)};n(A,t=>{e(i).dependencies.length&&t(I)});var L=b(A,2);{let t=r(()=>e(s)&&e(u).length>0),n=r(()=>`Include ${M(e(i).id)} in my app`),a=r(()=>e(s)&&e(u).length>0?`In your app (needed by ${e(u).map(M).join(`, `)})`:e(s)?`In your app`:`Add to my app`);F(L,{get checked(){return e(s)},get disabled(){return e(t)},onchange:()=>se(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)},[()=>N(`/packages/${e(i).id}/`),()=>M(e(i).id)]),ee(d,()=>te,()=>({duration:ne(`medium2`,300)})),p(t,d)},t=>{var n=ae(),r=x(n);w(()=>c(r,`No packages match "${e(z)??``}".`)),p(t,n)}),o($),o(J),o(H),w(t=>{E(G,`href`,t),c(de,e(B)),c(fe,`${e(V).length??``} of ${A.packages.length??``}`)},[()=>N(`/`)]),S(Q,()=>e(z),e=>D(z,e)),p(s,H),i()}h([`click`]);export{z 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/DtyQVtuI.js";import{t as D}from"../chunks/DRByVC-c.js";import{t as O}from"../chunks/DdiQBZrC.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/
|
|
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
|
|
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(
|
|
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/DtyQVtuI.js";import{n as N}from"../chunks/By9nPosf.js";import{i as P}from"../chunks/Bs5WxZDd.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/jGR6M6GD.js";import{t as q}from"../chunks/DkYxX008.js";import{t as J}from"../chunks/DRByVC-c.js";import{n as Y}from"../chunks/CMr90D2v.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
|
+
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
|
+
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/DtyQVtuI.js";import{S as k,_ as A,h as j,p as M,t as N}from"../chunks/jGR6M6GD.js";import{t as P}from"../chunks/DkYxX008.js";import{t as F}from"../chunks/DRByVC-c.js";import{t as I}from"../chunks/JBD5vUbP.js";import{t as L}from"../chunks/DdiQBZrC.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};
|
|
@@ -0,0 +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/DtyQVtuI.js";import{d as L}from"../chunks/LqlI_3J_.js";import"../chunks/CHp1-Djt.js";import{s as R,u as z}from"../chunks/DIE02RSm.js";import{t as B}from"../chunks/Cp6EyiHL.js";import{B as V,H,K as U,L as W}from"../chunks/cGI232sj.js";import{D as ne,b as G,n as K,x as q}from"../chunks/DiDXEaeE.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/jGR6M6GD.js";import{i as ce,r as le,t as ue}from"../chunks/CO-Ek-HE.js";import{n as de}from"../chunks/xfjCb9hA.js";import{r as fe}from"../chunks/D_U_DYjx.js";import{t as pe}from"../chunks/DkYxX008.js";import{t as me}from"../chunks/Dbk0PTBM.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};
|