@happyvertical/smrt-planner 0.57.2 → 0.57.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/commands.md +4 -1
- package/app/404.html +19 -19
- package/app/_app/immutable/chunks/{DQ1SHYJc.js → 2l76O8yg.js} +1 -1
- package/app/_app/immutable/chunks/{BvF_HjSi.js → BJKoxDbG.js} +1 -1
- package/app/_app/immutable/chunks/{D8CMB1bs.js → BV_A2GBw.js} +1 -1
- package/app/_app/immutable/chunks/{BwcU9V16.js → Bb0f-PWY.js} +1 -1
- package/app/_app/immutable/chunks/{C5GaTR6t.js → BfPYbnRI.js} +1 -1
- package/app/_app/immutable/chunks/{Bzx-XNnr.js → Bz0ybtg3.js} +1 -1
- package/app/_app/immutable/chunks/{C4QwYOkG.js → C-DLpfU4.js} +1 -1
- package/app/_app/immutable/chunks/{BZhu4b2K.js → CF503c7E.js} +1 -1
- package/app/_app/immutable/chunks/{gaBQMwwt.js → CZwkvsZI.js} +1 -1
- package/app/_app/immutable/chunks/{DPUmJ6vl.js → CbCYY1ps.js} +1 -1
- package/app/_app/immutable/chunks/{nwp8tVWc.js → Cfd9dmBM.js} +1 -1
- package/app/_app/immutable/chunks/{BUWiA0bl.js → DD4mX3od.js} +1 -1
- package/app/_app/immutable/chunks/{DQX_f7BA.js → DR_9YSDq.js} +1 -1
- package/app/_app/immutable/chunks/{IGiURgRE.js → DgkBKeKW.js} +1 -1
- package/app/_app/immutable/chunks/{1Zpjoi-y.js → Dq8aYheE.js} +1 -1
- package/app/_app/immutable/chunks/{CXWyfpCp.js → DsY7g8iJ.js} +3 -3
- package/app/_app/immutable/chunks/DvUWb_GS.js +1 -0
- package/app/_app/immutable/chunks/{BUIY_h3z.js → DveAWx7t.js} +1 -1
- package/app/_app/immutable/chunks/{Bu-php1s.js → EZsakmZX.js} +1 -1
- package/app/_app/immutable/chunks/{BY2iyZkA.js → M81UeXT1.js} +1 -1
- package/app/_app/immutable/chunks/{aNkgB9ms.js → PJY04JNF.js} +1 -1
- package/app/_app/immutable/chunks/{C0ucZoOF.js → U6_OBRq_.js} +1 -1
- package/app/_app/immutable/chunks/g7M7feZg.js +1 -0
- package/app/_app/immutable/chunks/r7IFcw-O.js +1 -0
- package/app/_app/immutable/chunks/{CqPgazbY.js → rkUL-DlL.js} +21 -21
- package/app/_app/immutable/entry/{app.B-4NFfCd.js → app.BOdcGXnx.js} +2 -2
- package/app/_app/immutable/entry/start.BixveMT0.js +1 -0
- package/app/_app/immutable/nodes/{0.Clo7wl71.js → 0._WFh95JB.js} +1 -1
- package/app/_app/immutable/nodes/{1.DIereQ7U.js → 1.CULLAAlp.js} +1 -1
- package/app/_app/immutable/nodes/{10.DD2srRhL.js → 10.D3aS_KZl.js} +1 -1
- package/app/_app/immutable/nodes/{11.YniEwoUY.js → 11.C92xaiTE.js} +1 -1
- package/app/_app/immutable/nodes/{12.CmLo0eX_.js → 12.D1Lzt56L.js} +1 -1
- package/app/_app/immutable/nodes/{13.DHBg3FSE.js → 13.Bx4rov-F.js} +1 -1
- package/app/_app/immutable/nodes/{14.DvDXr38B.js → 14.CEBy0En2.js} +1 -1
- package/app/_app/immutable/nodes/{2.IEuzYtzP.js → 2.D3Lg90Nn.js} +3 -3
- package/app/_app/immutable/nodes/{3.BKisFpyK.js → 3.C8f09BsJ.js} +1 -1
- package/app/_app/immutable/nodes/{4.TwPulHIt.js → 4.Z1MwZ_rU.js} +1 -1
- package/app/_app/immutable/nodes/{5.D0vlCt9Z.js → 5.BnknP-NB.js} +1 -1
- package/app/_app/immutable/nodes/{6.C_gaaJ3_.js → 6.B0InO4bR.js} +1 -1
- package/app/_app/immutable/nodes/{7.Bripk7o3.js → 7.CLnj1BGB.js} +1 -1
- package/app/_app/immutable/nodes/{8.BhlRo42p.js → 8.BmZYIUmz.js} +1 -1
- package/app/_app/immutable/nodes/{9.CjXXNQFq.js → 9.BKWSHjz-.js} +1 -1
- package/app/_app/version.json +1 -1
- package/app/advanced-styles/index.html +22 -22
- package/app/ai/index.html +27 -27
- package/app/blueprint/index.html +20 -20
- package/app/cookbook/index.html +20 -20
- package/app/index.html +32 -32
- package/app/m/ads/AdDeliveryTier/index.html +23 -23
- package/app/m/ads/AdEvent/index.html +23 -23
- package/app/m/ads/AdFormat/index.html +23 -23
- package/app/m/ads/AdGroup/index.html +23 -23
- package/app/m/ads/AdVariation/index.html +23 -23
- package/app/m/analytics/AnalyticsDataStream/index.html +23 -23
- package/app/m/analytics/AnalyticsEvent/index.html +23 -23
- package/app/m/analytics/AnalyticsProperty/index.html +23 -23
- package/app/m/analytics/AnalyticsReport/index.html +23 -23
- package/app/m/approvals/ApprovalEvent/index.html +23 -23
- package/app/m/approvals/ApprovalPolicy/index.html +23 -23
- package/app/m/approvals/ApprovalRequest/index.html +23 -23
- package/app/m/assets/Asset/attachments/index.html +24 -24
- package/app/m/assets/Asset/index.html +23 -23
- package/app/m/assets/AssetAssociation/index.html +23 -23
- package/app/m/assets/AssetMetafield/index.html +23 -23
- package/app/m/assets/AssetStatus/index.html +23 -23
- package/app/m/assets/AssetType/index.html +23 -23
- package/app/m/assets/Folder/index.html +23 -23
- package/app/m/chat/AgentSession/index.html +23 -23
- package/app/m/chat/ChatMessage/index.html +23 -23
- package/app/m/chat/ChatParticipant/index.html +23 -23
- package/app/m/chat/ChatReaction/index.html +23 -23
- package/app/m/chat/ChatRoom/index.html +23 -23
- package/app/m/chat/ChatThread/index.html +23 -23
- package/app/m/chat/VoiceGatewayTurn/index.html +23 -23
- package/app/m/chat/VoiceSession/index.html +23 -23
- package/app/m/commerce/Agreement/index.html +23 -23
- package/app/m/commerce/Cart/index.html +23 -23
- package/app/m/commerce/Contract/index.html +23 -23
- package/app/m/commerce/ContractLineItem/index.html +23 -23
- package/app/m/commerce/Customer/index.html +23 -23
- package/app/m/commerce/DocumentTax/index.html +23 -23
- package/app/m/commerce/Estimate/index.html +23 -23
- package/app/m/commerce/Fulfillment/index.html +23 -23
- package/app/m/commerce/FulfillmentLineItem/index.html +23 -23
- package/app/m/commerce/Invoice/index.html +23 -23
- package/app/m/commerce/InvoiceLineItem/index.html +23 -23
- package/app/m/commerce/Lease/index.html +23 -23
- package/app/m/commerce/LicenseSale/index.html +23 -23
- package/app/m/commerce/Order/index.html +23 -23
- package/app/m/commerce/Payment/index.html +23 -23
- package/app/m/commerce/PaymentAllocation/index.html +23 -23
- package/app/m/commerce/PaymentInstrument/index.html +23 -23
- package/app/m/commerce/PaymentIntent/index.html +23 -23
- package/app/m/commerce/Payout/index.html +23 -23
- package/app/m/commerce/ProductionOrder/index.html +23 -23
- package/app/m/commerce/PurchaseContract/index.html +23 -23
- package/app/m/commerce/PurchaseOrder/index.html +23 -23
- package/app/m/commerce/SalesContract/index.html +23 -23
- package/app/m/commerce/SupplierQuote/index.html +23 -23
- package/app/m/commerce/TaxCode/index.html +23 -23
- package/app/m/commerce/TaxComponent/index.html +23 -23
- package/app/m/commerce/TaxSettings/index.html +23 -23
- package/app/m/commerce/TaxSummaryReport/index.html +23 -23
- package/app/m/commerce/Vendor/index.html +23 -23
- package/app/m/commerce/WholesaleOrder/index.html +23 -23
- package/app/m/content/Content/index.html +23 -23
- package/app/m/content/ContentContribution/index.html +23 -23
- package/app/m/content/ContentContributionAttachment/index.html +23 -23
- package/app/m/content/ContentContributionRevision/index.html +23 -23
- package/app/m/content/ContentContributionType/index.html +23 -23
- package/app/m/content/ContentContributor/index.html +23 -23
- package/app/m/content/ContentCorrection/index.html +23 -23
- package/app/m/content/ContentFeedSource/index.html +23 -23
- package/app/m/content/ContentGovernanceAssignment/index.html +23 -23
- package/app/m/content/ContentGovernancePolicy/index.html +23 -23
- package/app/m/content/ContentGovernanceProfile/index.html +23 -23
- package/app/m/content/ContentReference/index.html +23 -23
- package/app/m/content/ContentReview/index.html +23 -23
- package/app/m/content/ContentVersion/index.html +23 -23
- package/app/m/events/Event/index.html +23 -23
- package/app/m/events/EventParticipant/index.html +23 -23
- package/app/m/events/EventSeries/index.html +23 -23
- package/app/m/events/EventType/index.html +23 -23
- package/app/m/expenses/Expense/index.html +23 -23
- package/app/m/facts/Fact/index.html +23 -23
- package/app/m/facts/FactContent/index.html +23 -23
- package/app/m/facts/FactEvidence/index.html +23 -23
- package/app/m/facts/FactSource/index.html +23 -23
- package/app/m/facts/FactSubject/index.html +23 -23
- package/app/m/facts/FactTag/index.html +23 -23
- package/app/m/fields/FieldPolicy/index.html +23 -23
- package/app/m/fields/FieldPolicySuggestion/index.html +23 -23
- package/app/m/fields/FieldUsageCounter/index.html +23 -23
- package/app/m/images/Image/index.html +23 -23
- package/app/m/inventory/InventoryLocation/index.html +23 -23
- package/app/m/inventory/StockLevel/index.html +23 -23
- package/app/m/inventory/StockMovement/index.html +23 -23
- package/app/m/ledgers/Account/index.html +23 -23
- package/app/m/ledgers/Journal/index.html +23 -23
- package/app/m/ledgers/JournalEntry/index.html +23 -23
- package/app/m/ledgers/Ledger/index.html +89 -0
- package/app/m/manufacturing/Assembly/index.html +23 -23
- package/app/m/manufacturing/BillOfMaterials/index.html +23 -23
- package/app/m/manufacturing/BomLine/index.html +23 -23
- package/app/m/manufacturing/Operation/index.html +23 -23
- package/app/m/manufacturing/ProductionRun/index.html +23 -23
- package/app/m/manufacturing/ProductionRunCompletion/index.html +23 -23
- package/app/m/manufacturing/RoutingStep/index.html +23 -23
- package/app/m/marketing/Campaign/index.html +23 -23
- package/app/m/marketing/CampaignChannel/index.html +23 -23
- package/app/m/marketing/CampaignMetricSnapshot/index.html +23 -23
- package/app/m/messages/Account/index.html +23 -23
- package/app/m/messages/Attachment/index.html +23 -23
- package/app/m/messages/Blacklist/index.html +23 -23
- package/app/m/messages/Email/failed-sends/index.html +24 -24
- package/app/m/messages/Email/index.html +23 -23
- package/app/m/messages/Email/mailbox/index.html +24 -24
- package/app/m/messages/EmailAccount/index.html +23 -23
- package/app/m/messages/EmailAttachment/index.html +23 -23
- package/app/m/messages/EmailFolder/index.html +23 -23
- package/app/m/messages/Message/index.html +23 -23
- package/app/m/messages/MessagingEndpoint/index.html +23 -23
- package/app/m/messages/PersonaMessageRoute/index.html +23 -23
- package/app/m/messages/SlackAccount/index.html +23 -23
- package/app/m/messages/SlackMessage/index.html +23 -23
- package/app/m/messages/TelegramAccount/index.html +23 -23
- package/app/m/messages/Tweet/index.html +23 -23
- package/app/m/messages/TwitterAccount/index.html +23 -23
- package/app/m/messages/Whitelist/index.html +23 -23
- package/app/m/messages/ZulipAccount/index.html +23 -23
- package/app/m/places/Place/index.html +23 -23
- package/app/m/places/PlaceType/index.html +23 -23
- package/app/m/products/Category/index.html +23 -23
- package/app/m/products/Material/index.html +23 -23
- package/app/m/products/Product/index.html +23 -23
- package/app/m/products/Product/ingredients/index.html +24 -24
- package/app/m/products/ProductVariant/index.html +23 -23
- package/app/m/products/Sku/index.html +23 -23
- package/app/m/profiles/ApiKey/index.html +23 -23
- package/app/m/profiles/Bot/index.html +23 -23
- package/app/m/profiles/MagicLinkToken/index.html +23 -23
- package/app/m/profiles/NostrIdentity/index.html +23 -23
- package/app/m/profiles/OidcIdentity/index.html +23 -23
- package/app/m/profiles/Organization/index.html +23 -23
- package/app/m/profiles/Person/index.html +23 -23
- package/app/m/profiles/Profile/index.html +23 -23
- package/app/m/profiles/ProfileMetadata/index.html +23 -23
- package/app/m/profiles/ProfileMetafield/index.html +23 -23
- package/app/m/profiles/ProfileRelationship/index.html +23 -23
- package/app/m/profiles/ProfileRelationshipTerm/index.html +23 -23
- package/app/m/profiles/ProfileRelationshipType/index.html +23 -23
- package/app/m/profiles/ProfileType/index.html +23 -23
- package/app/m/projects/Comment/index.html +23 -23
- package/app/m/projects/Issue/index.html +23 -23
- package/app/m/projects/Label/index.html +23 -23
- package/app/m/projects/Project/index.html +23 -23
- package/app/m/projects/ProjectIntegration/index.html +23 -23
- package/app/m/projects/PullRequest/index.html +23 -23
- package/app/m/projects/Repository/index.html +23 -23
- package/app/m/properties/Property/index.html +23 -23
- package/app/m/properties/Zone/index.html +23 -23
- package/app/m/reports/RuntimeReport/index.html +23 -23
- package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +23 -23
- package/app/m/reports/SmrtReportLock/index.html +23 -23
- package/app/m/reports/SmrtReportRefreshTask/index.html +23 -23
- package/app/m/reports/SmrtReportRun/index.html +23 -23
- package/app/m/reports/SmrtReportSchedule/index.html +23 -23
- package/app/m/reports/SmrtReportWatermark/index.html +23 -23
- package/app/m/sales/Agreement/index.html +89 -0
- package/app/m/sales/AttributionException/index.html +23 -23
- package/app/m/sales/AttributionPolicy/index.html +23 -23
- package/app/m/sales/Commission/index.html +23 -23
- package/app/m/sales/CommissionAdjustment/index.html +23 -23
- package/app/m/sales/CommissionPayout/index.html +23 -23
- package/app/m/sales/CommissionPlan/index.html +23 -23
- package/app/m/sales/Earner/index.html +23 -23
- package/app/m/sales/EarnerSourceAttribution/index.html +23 -23
- package/app/m/sales/EarningEvent/index.html +23 -23
- package/app/m/sales/ExecutedAgreement/index.html +23 -23
- package/app/m/sales/Lead/index.html +23 -23
- package/app/m/sales/Opportunity/index.html +23 -23
- package/app/m/sales/OpportunityConversion/index.html +23 -23
- package/app/m/sales/PipelineDefinition/index.html +23 -23
- package/app/m/sales/PipelineStage/index.html +23 -23
- package/app/m/sales/Referral/index.html +23 -23
- package/app/m/sales/ReferralAgreement/index.html +23 -23
- package/app/m/sales/ReferralLink/index.html +23 -23
- package/app/m/sales/ReferralProgram/index.html +23 -23
- package/app/m/sales/ReferralTermSnapshot/index.html +23 -23
- package/app/m/sales/ReferralTouch/index.html +23 -23
- package/app/m/sales/Referrer/index.html +23 -23
- package/app/m/sales/SalesActivity/index.html +23 -23
- package/app/m/sales/SalesRepresentative/index.html +23 -23
- package/app/m/sites/Site/index.html +23 -23
- package/app/m/sites/SiteAgentBinding/index.html +23 -23
- package/app/m/social/OAuthState/index.html +23 -23
- package/app/m/social/SocialAccount/index.html +23 -23
- package/app/m/social/SocialPost/index.html +23 -23
- package/app/m/social/SocialPostAnalyticsSnapshot/index.html +23 -23
- package/app/m/subscriptions/BillingAdjustment/index.html +23 -23
- package/app/m/subscriptions/ClientCharge/index.html +23 -23
- package/app/m/subscriptions/CreditGrant/index.html +23 -23
- package/app/m/subscriptions/PricingRule/index.html +23 -23
- package/app/m/subscriptions/RetailCharge/index.html +23 -23
- package/app/m/subscriptions/SpendingPolicy/index.html +23 -23
- package/app/m/subscriptions/SubscriptionPlan/index.html +23 -23
- package/app/m/subscriptions/TenantSubscription/index.html +23 -23
- package/app/m/subscriptions/TenantUsageMetric/index.html +23 -23
- package/app/m/support/ServiceTimeEntry/index.html +23 -23
- package/app/m/support/SupportAiRun/index.html +23 -23
- package/app/m/support/SupportAvailability/index.html +23 -23
- package/app/m/support/SupportCase/index.html +23 -23
- package/app/m/support/SupportCaseEvent/index.html +23 -23
- package/app/m/support/SupportChannelBinding/index.html +23 -23
- package/app/m/support/SupportCharge/index.html +23 -23
- package/app/m/support/SupportCompensation/index.html +23 -23
- package/app/m/support/SupportCompensationPlan/index.html +23 -23
- package/app/m/support/SupportEscalation/index.html +23 -23
- package/app/m/support/SupportInteraction/index.html +23 -23
- package/app/m/support/SupportPlan/index.html +23 -23
- package/app/m/support/SupportPolicy/index.html +23 -23
- package/app/m/support/SupportQualification/index.html +23 -23
- package/app/m/support/SupportServiceTarget/index.html +23 -23
- package/app/m/support/SupportSpecialist/index.html +23 -23
- package/app/m/support/SupportWorkLink/index.html +23 -23
- package/app/m/tags/Tag/index.html +23 -23
- package/app/m/tags/TagAlias/index.html +23 -23
- package/app/m/timesheets/AttendanceBreak/index.html +23 -23
- package/app/m/timesheets/AttendancePunch/index.html +23 -23
- package/app/m/timesheets/AttendanceSegment/index.html +23 -23
- package/app/m/timesheets/ServiceChargeSnapshot/index.html +23 -23
- package/app/m/timesheets/ServiceCompensationSnapshot/index.html +23 -23
- package/app/m/timesheets/ServiceTimeEntry/index.html +23 -23
- package/app/m/users/Group/index.html +23 -23
- package/app/m/users/GroupMember/index.html +23 -23
- package/app/m/users/GroupRole/index.html +23 -23
- package/app/m/users/Membership/index.html +23 -23
- package/app/m/users/MembershipOverride/index.html +23 -23
- package/app/m/users/Permission/index.html +23 -23
- package/app/m/users/Role/index.html +23 -23
- package/app/m/users/RolePermission/index.html +23 -23
- package/app/m/users/Session/index.html +23 -23
- package/app/m/users/Tenant/index.html +23 -23
- package/app/m/users/TenantIntegration/index.html +23 -23
- package/app/m/users/TenantPermissionOverride/index.html +23 -23
- package/app/m/users/User/index.html +23 -23
- package/app/m/video/Character/index.html +23 -23
- package/app/m/video/CharacterAsset/index.html +23 -23
- package/app/m/video/CompositeJob/index.html +23 -23
- package/app/m/video/Performer/index.html +23 -23
- package/app/m/video/PerformerAsset/index.html +23 -23
- package/app/m/video/Scene/index.html +23 -23
- package/app/m/video/SceneAsset/index.html +23 -23
- package/app/m/video/VideoComposition/index.html +23 -23
- package/app/m/video/VideoCompositionAsset/index.html +23 -23
- package/app/m/video/VideoSequence/index.html +23 -23
- package/app/m/video/VideoSequenceAsset/index.html +23 -23
- package/app/m/video/VideoShot/index.html +23 -23
- package/app/m/video/VideoShotAsset/index.html +23 -23
- package/app/m/video/VideoShotCharacter/index.html +23 -23
- package/app/m/video/VideoWorkflow/index.html +23 -23
- package/app/m/voice/VoiceOutput/index.html +23 -23
- package/app/m/voice/VoiceProfile/index.html +23 -23
- package/app/m/voice/VoiceSample/index.html +23 -23
- package/app/mcp.html +2 -2
- package/app/packages/ads/index.html +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 +22 -22
- package/app/packages/ingestion/index.html +22 -22
- package/app/packages/inventory/index.html +22 -22
- package/app/packages/ledgers/index.html +23 -23
- 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 +23 -23
- package/app/packages/sites/index.html +22 -22
- package/app/packages/social/index.html +22 -22
- package/app/packages/subscriptions/index.html +23 -23
- 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 +24 -24
- package/app/recipes/activity/help/index.html +22 -22
- package/app/recipes/activity/index.html +24 -24
- package/app/recipes/agreements/help/index.html +22 -22
- package/app/recipes/agreements/index.html +24 -24
- package/app/recipes/analytics.reports/help/index.html +22 -22
- package/app/recipes/analytics.reports/index.html +24 -24
- package/app/recipes/assets/help/index.html +22 -22
- package/app/recipes/assets/index.html +24 -24
- package/app/recipes/billing/help/index.html +22 -22
- package/app/recipes/billing/index.html +24 -24
- package/app/recipes/chat.assistant/help/index.html +22 -22
- package/app/recipes/chat.assistant/index.html +24 -24
- package/app/recipes/comments/help/index.html +22 -22
- package/app/recipes/comments/index.html +24 -24
- package/app/recipes/commerce.customers/help/index.html +22 -22
- package/app/recipes/commerce.customers/index.html +24 -24
- package/app/recipes/commerce.estimates/help/index.html +22 -22
- package/app/recipes/commerce.estimates/index.html +24 -24
- package/app/recipes/commerce.purchases/help/index.html +22 -22
- package/app/recipes/commerce.purchases/index.html +24 -24
- package/app/recipes/commerce.sales/help/index.html +22 -22
- package/app/recipes/commerce.sales/index.html +24 -24
- package/app/recipes/commerce.vendors/help/index.html +22 -22
- package/app/recipes/commerce.vendors/index.html +24 -24
- package/app/recipes/commerce.wholesale/help/index.html +22 -22
- package/app/recipes/commerce.wholesale/index.html +24 -24
- package/app/recipes/events.calendar/help/index.html +22 -22
- package/app/recipes/events.calendar/index.html +24 -24
- package/app/recipes/expenses.tracking/help/index.html +22 -22
- package/app/recipes/expenses.tracking/index.html +24 -24
- package/app/recipes/fields.form-customization/help/index.html +22 -22
- package/app/recipes/fields.form-customization/index.html +24 -24
- package/app/recipes/ingestion/help/index.html +22 -22
- package/app/recipes/ingestion/index.html +24 -24
- package/app/recipes/integrations/help/index.html +22 -22
- package/app/recipes/integrations/index.html +24 -24
- package/app/recipes/inventory.stock/help/index.html +22 -22
- package/app/recipes/inventory.stock/index.html +24 -24
- package/app/recipes/ledgers.bookkeeping/help/index.html +24 -24
- package/app/recipes/ledgers.bookkeeping/index.html +24 -24
- package/app/recipes/messages/help/index.html +22 -22
- package/app/recipes/messages/index.html +24 -24
- package/app/recipes/products/help/index.html +22 -22
- package/app/recipes/products/index.html +24 -24
- package/app/recipes/projects.tracker/help/index.html +22 -22
- package/app/recipes/projects.tracker/index.html +24 -24
- package/app/recipes/reports.materialized/help/index.html +22 -22
- package/app/recipes/reports.materialized/index.html +24 -24
- package/app/recipes/reports.runtime/help/index.html +22 -22
- package/app/recipes/reports.runtime/index.html +24 -24
- package/app/recipes/sales.pipeline/help/index.html +22 -22
- package/app/recipes/sales.pipeline/index.html +24 -24
- package/app/recipes/tags.taxonomy/help/index.html +22 -22
- package/app/recipes/tags.taxonomy/index.html +24 -24
- package/app/recipes/team-collaboration/help/index.html +22 -22
- package/app/recipes/team-collaboration/index.html +24 -24
- package/app/recipes/timesheets.time-entries/help/index.html +22 -22
- package/app/recipes/timesheets.time-entries/index.html +24 -24
- 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-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-giving/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-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-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-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/ai/echo-gate.d.ts +1 -0
- package/dist/ai/echo-gate.d.ts.map +1 -0
- package/dist/ai/icons.d.ts +1 -0
- package/dist/ai/icons.d.ts.map +1 -0
- package/dist/ai/instance.d.ts +1 -0
- package/dist/ai/instance.d.ts.map +1 -0
- package/dist/ai/state.svelte.d.ts +1 -0
- package/dist/ai/state.svelte.d.ts.map +1 -0
- package/dist/ai/status.d.ts +1 -0
- package/dist/ai/status.d.ts.map +1 -0
- package/dist/assistant/change.d.ts +1 -0
- package/dist/assistant/change.d.ts.map +1 -0
- package/dist/assistant/engine.d.ts +1 -0
- package/dist/assistant/engine.d.ts.map +1 -0
- package/dist/assistant/llm.worker.d.ts +1 -0
- package/dist/assistant/llm.worker.d.ts.map +1 -0
- package/dist/assistant/match.d.ts +1 -0
- package/dist/assistant/match.d.ts.map +1 -0
- package/dist/assistant/models.d.ts +1 -0
- package/dist/assistant/models.d.ts.map +1 -0
- package/dist/assistant/offers.svelte.d.ts +1 -0
- package/dist/assistant/offers.svelte.d.ts.map +1 -0
- package/dist/assistant/prefs.d.ts +1 -0
- package/dist/assistant/prefs.d.ts.map +1 -0
- package/dist/assistant/prompt.d.ts +1 -0
- package/dist/assistant/prompt.d.ts.map +1 -0
- package/dist/assistant/session.svelte.d.ts +1 -0
- package/dist/assistant/session.svelte.d.ts.map +1 -0
- package/dist/assistant/theme-undo.svelte.d.ts +1 -0
- package/dist/assistant/theme-undo.svelte.d.ts.map +1 -0
- package/dist/assistant/transport.d.ts +1 -0
- package/dist/assistant/transport.d.ts.map +1 -0
- package/dist/assistant/voice-host.d.ts +1 -0
- package/dist/assistant/voice-host.d.ts.map +1 -0
- package/dist/assistant/voice.svelte.d.ts +1 -0
- package/dist/assistant/voice.svelte.d.ts.map +1 -0
- package/dist/catalog/catalog.json +1458 -49
- package/dist/catalog/generate/build.d.ts +1 -0
- package/dist/catalog/generate/build.d.ts.map +1 -0
- package/dist/catalog/generate/exclusions.d.ts +1 -0
- package/dist/catalog/generate/exclusions.d.ts.map +1 -0
- package/dist/catalog/generate/extract.d.ts +1 -0
- package/dist/catalog/generate/extract.d.ts.map +1 -0
- package/dist/catalog/generate/local.d.ts +1 -0
- package/dist/catalog/generate/local.d.ts.map +1 -0
- package/dist/catalog/generate/recipe-demo.d.ts +1 -0
- package/dist/catalog/generate/recipe-demo.d.ts.map +1 -0
- package/dist/catalog/generate/recipe-metadata.d.ts +1 -0
- package/dist/catalog/generate/recipe-metadata.d.ts.map +1 -0
- package/dist/catalog/generate/registry.d.ts +1 -0
- package/dist/catalog/generate/registry.d.ts.map +1 -0
- package/dist/catalog/index.d.ts +1 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/types.d.ts +1 -0
- package/dist/catalog/types.d.ts.map +1 -0
- package/dist/components/AdvancedStyles.svelte.d.ts +1 -0
- package/dist/components/AdvancedStyles.svelte.d.ts.map +1 -0
- package/dist/components/AiModelsPage.svelte.d.ts +1 -0
- package/dist/components/AiModelsPage.svelte.d.ts.map +1 -0
- package/dist/components/AiSetup.svelte.d.ts +1 -0
- package/dist/components/AiSetup.svelte.d.ts.map +1 -0
- package/dist/components/AiStatusIcons.svelte.d.ts +1 -0
- package/dist/components/AiStatusIcons.svelte.d.ts.map +1 -0
- package/dist/components/AppSettings.svelte.d.ts +1 -0
- package/dist/components/AppSettings.svelte.d.ts.map +1 -0
- package/dist/components/BrowserAssistant.svelte.d.ts +1 -0
- package/dist/components/BrowserAssistant.svelte.d.ts.map +1 -0
- package/dist/components/ChildRecords.svelte.d.ts +1 -0
- package/dist/components/ChildRecords.svelte.d.ts.map +1 -0
- package/dist/components/ConnectTools.svelte.d.ts +1 -0
- package/dist/components/ConnectTools.svelte.d.ts.map +1 -0
- package/dist/components/CookbooksPanel.svelte.d.ts +1 -0
- package/dist/components/CookbooksPanel.svelte.d.ts.map +1 -0
- package/dist/components/CopyButton.svelte.d.ts +1 -0
- package/dist/components/CopyButton.svelte.d.ts.map +1 -0
- package/dist/components/ExportPanel.svelte.d.ts +1 -0
- package/dist/components/ExportPanel.svelte.d.ts.map +1 -0
- package/dist/components/FeatureCard.svelte.d.ts +1 -0
- package/dist/components/FeatureCard.svelte.d.ts.map +1 -0
- package/dist/components/FeaturesPanel.svelte.d.ts +1 -0
- package/dist/components/FeaturesPanel.svelte.d.ts.map +1 -0
- package/dist/components/FieldInput.svelte.d.ts +1 -0
- package/dist/components/FieldInput.svelte.d.ts.map +1 -0
- package/dist/components/FieldMapForm.svelte.d.ts +1 -0
- package/dist/components/FieldMapForm.svelte.d.ts.map +1 -0
- package/dist/components/FormWorkspace.svelte.d.ts +1 -0
- package/dist/components/FormWorkspace.svelte.d.ts.map +1 -0
- package/dist/components/HeaderIconLink.svelte.d.ts +1 -0
- package/dist/components/HeaderIconLink.svelte.d.ts.map +1 -0
- package/dist/components/HelpView.svelte.d.ts +1 -0
- package/dist/components/HelpView.svelte.d.ts.map +1 -0
- package/dist/components/ModelOptions.svelte.d.ts +1 -0
- package/dist/components/ModelOptions.svelte.d.ts.map +1 -0
- package/dist/components/ModelPage.svelte.d.ts +1 -0
- package/dist/components/ModelPage.svelte.d.ts.map +1 -0
- package/dist/components/ModelWorkspace.svelte.d.ts +1 -0
- package/dist/components/ModelWorkspace.svelte.d.ts.map +1 -0
- package/dist/components/PackagePage.svelte.d.ts +1 -0
- package/dist/components/PackagePage.svelte.d.ts.map +1 -0
- package/dist/components/PlannerEditBridge.svelte.d.ts +1 -0
- package/dist/components/PlannerEditBridge.svelte.d.ts.map +1 -0
- package/dist/components/PlannerPalette.svelte.d.ts +1 -0
- package/dist/components/PlannerPalette.svelte.d.ts.map +1 -0
- package/dist/components/ProductMedia.svelte.d.ts +1 -0
- package/dist/components/ProductMedia.svelte.d.ts.map +1 -0
- package/dist/components/RecipeCards.svelte.d.ts +1 -0
- package/dist/components/RecipeCards.svelte.d.ts.map +1 -0
- package/dist/components/RecipeHelp.svelte.d.ts +1 -0
- package/dist/components/RecipeHelp.svelte.d.ts.map +1 -0
- package/dist/components/RecipeOptions.svelte.d.ts +1 -0
- package/dist/components/RecipeOptions.svelte.d.ts.map +1 -0
- package/dist/components/RecordFeatures.svelte.d.ts +1 -0
- package/dist/components/RecordFeatures.svelte.d.ts.map +1 -0
- package/dist/components/RecordView.svelte.d.ts +1 -0
- package/dist/components/RecordView.svelte.d.ts.map +1 -0
- package/dist/components/RelationField.svelte.d.ts +1 -0
- package/dist/components/RelationField.svelte.d.ts.map +1 -0
- package/dist/components/SectionActions.svelte.d.ts +1 -0
- package/dist/components/SectionActions.svelte.d.ts.map +1 -0
- package/dist/components/SectionHeading.svelte.d.ts +1 -0
- package/dist/components/SectionHeading.svelte.d.ts.map +1 -0
- package/dist/components/SectionIcons.svelte.d.ts +1 -0
- package/dist/components/SectionIcons.svelte.d.ts.map +1 -0
- package/dist/components/SectionOverview.svelte.d.ts +1 -0
- package/dist/components/SectionOverview.svelte.d.ts.map +1 -0
- package/dist/components/SectionPage.svelte.d.ts +1 -0
- package/dist/components/SectionPage.svelte.d.ts.map +1 -0
- package/dist/components/SectionView.svelte.d.ts +1 -0
- package/dist/components/SectionView.svelte.d.ts.map +1 -0
- package/dist/components/SettingsPanel.svelte.d.ts +1 -0
- package/dist/components/SettingsPanel.svelte.d.ts.map +1 -0
- package/dist/components/ThemeBridge.svelte.d.ts +1 -0
- package/dist/components/ThemeBridge.svelte.d.ts.map +1 -0
- package/dist/components/ThemeSection.svelte.d.ts +1 -0
- package/dist/components/ThemeSection.svelte.d.ts.map +1 -0
- package/dist/components/VariantGridForm.svelte.d.ts +1 -0
- package/dist/components/VariantGridForm.svelte.d.ts.map +1 -0
- package/dist/components/VoiceTyping.svelte.d.ts +1 -0
- package/dist/components/VoiceTyping.svelte.d.ts.map +1 -0
- package/dist/cookbook/assemble.d.ts +1 -0
- package/dist/cookbook/assemble.d.ts.map +1 -0
- package/dist/cookbook/describe.d.ts +1 -0
- package/dist/cookbook/describe.d.ts.map +1 -0
- package/dist/cookbook/file.d.ts +1 -0
- package/dist/cookbook/file.d.ts.map +1 -0
- package/dist/cookbook/legacy.d.ts +1 -0
- package/dist/cookbook/legacy.d.ts.map +1 -0
- package/dist/cookbook/migrate.d.ts +1 -0
- package/dist/cookbook/migrate.d.ts.map +1 -0
- package/dist/cookbook/parse.d.ts +1 -0
- package/dist/cookbook/parse.d.ts.map +1 -0
- package/dist/cookbook/prompt.d.ts +1 -0
- package/dist/cookbook/prompt.d.ts.map +1 -0
- package/dist/cookbook/storage.d.ts +1 -0
- package/dist/cookbook/storage.d.ts.map +1 -0
- package/dist/cookbook/store.svelte.d.ts +1 -0
- package/dist/cookbook/store.svelte.d.ts.map +1 -0
- package/dist/cookbook/types.d.ts +1 -0
- package/dist/cookbook/types.d.ts.map +1 -0
- package/dist/cookbook/validate.d.ts +1 -0
- package/dist/cookbook/validate.d.ts.map +1 -0
- package/dist/core/app.d.ts +1 -0
- package/dist/core/app.d.ts.map +1 -0
- package/dist/core/catalog.d.ts +1 -0
- package/dist/core/catalog.d.ts.map +1 -0
- package/dist/core/headless.d.ts +1 -0
- package/dist/core/headless.d.ts.map +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/prompt.d.ts +1 -0
- package/dist/core/prompt.d.ts.map +1 -0
- package/dist/core/reply.d.ts +1 -0
- package/dist/core/reply.d.ts.map +1 -0
- package/dist/core/request.d.ts +1 -0
- package/dist/core/request.d.ts.map +1 -0
- package/dist/data/children.d.ts +1 -0
- package/dist/data/children.d.ts.map +1 -0
- package/dist/data/columns.d.ts +1 -0
- package/dist/data/columns.d.ts.map +1 -0
- package/dist/data/context.d.ts +1 -0
- package/dist/data/context.d.ts.map +1 -0
- package/dist/data/derived.d.ts +1 -0
- package/dist/data/derived.d.ts.map +1 -0
- package/dist/data/display.d.ts +1 -0
- package/dist/data/display.d.ts.map +1 -0
- package/dist/data/fakes.d.ts +1 -0
- package/dist/data/fakes.d.ts.map +1 -0
- package/dist/data/format.d.ts +1 -0
- package/dist/data/format.d.ts.map +1 -0
- package/dist/data/labels.d.ts +1 -0
- package/dist/data/labels.d.ts.map +1 -0
- package/dist/data/list-sort.d.ts +1 -0
- package/dist/data/list-sort.d.ts.map +1 -0
- package/dist/data/money.d.ts +1 -0
- package/dist/data/money.d.ts.map +1 -0
- package/dist/data/packs.d.ts +1 -0
- package/dist/data/packs.d.ts.map +1 -0
- package/dist/data/payments.d.ts +1 -0
- package/dist/data/payments.d.ts.map +1 -0
- package/dist/data/planner-source.d.ts +1 -0
- package/dist/data/planner-source.d.ts.map +1 -0
- package/dist/data/source.d.ts +1 -0
- package/dist/data/source.d.ts.map +1 -0
- package/dist/features/catalogue.d.ts +1 -0
- package/dist/features/catalogue.d.ts.map +1 -0
- package/dist/features/demo.d.ts +1 -0
- package/dist/features/demo.d.ts.map +1 -0
- package/dist/features/palette.d.ts +1 -0
- package/dist/features/palette.d.ts.map +1 -0
- package/dist/fields/address.d.ts +1 -0
- package/dist/fields/address.d.ts.map +1 -0
- package/dist/fields/invalid.d.ts +1 -0
- package/dist/fields/invalid.d.ts.map +1 -0
- package/dist/fields/modal.d.ts +1 -0
- package/dist/fields/modal.d.ts.map +1 -0
- package/dist/fields/percent.d.ts +1 -0
- package/dist/fields/percent.d.ts.map +1 -0
- package/dist/fields/renderer.d.ts +1 -0
- package/dist/fields/renderer.d.ts.map +1 -0
- package/dist/forms/active.d.ts +1 -0
- package/dist/forms/active.d.ts.map +1 -0
- package/dist/forms/fieldMap.d.ts +1 -0
- package/dist/forms/fieldMap.d.ts.map +1 -0
- package/dist/forms/shared.d.ts +1 -0
- package/dist/forms/shared.d.ts.map +1 -0
- package/dist/forms/stock.d.ts +1 -0
- package/dist/forms/stock.d.ts.map +1 -0
- package/dist/forms/variantGrid.d.ts +1 -0
- package/dist/forms/variantGrid.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/inference/byo.svelte.d.ts +1 -0
- package/dist/inference/byo.svelte.d.ts.map +1 -0
- package/dist/inference/config.d.ts +1 -0
- package/dist/inference/config.d.ts.map +1 -0
- package/dist/inference/host.d.ts +1 -0
- package/dist/inference/host.d.ts.map +1 -0
- package/dist/inference/openai.d.ts +1 -0
- package/dist/inference/openai.d.ts.map +1 -0
- package/dist/inference/presets.d.ts +1 -0
- package/dist/inference/presets.d.ts.map +1 -0
- package/dist/kitchen/LiveKitchenBridge.svelte.d.ts +1 -0
- package/dist/kitchen/LiveKitchenBridge.svelte.d.ts.map +1 -0
- package/dist/kitchen/client.d.ts +1 -0
- package/dist/kitchen/client.d.ts.map +1 -0
- package/dist/kitchen/fragment.d.ts +1 -0
- package/dist/kitchen/fragment.d.ts.map +1 -0
- package/dist/kitchen/live.d.ts +1 -0
- package/dist/kitchen/live.d.ts.map +1 -0
- package/dist/kitchen/state.svelte.d.ts +1 -0
- package/dist/kitchen/state.svelte.d.ts.map +1 -0
- package/dist/library/apply.d.ts +1 -0
- package/dist/library/apply.d.ts.map +1 -0
- package/dist/library/document.d.ts +1 -0
- package/dist/library/document.d.ts.map +1 -0
- package/dist/library/icons.d.ts +1 -0
- package/dist/library/icons.d.ts.map +1 -0
- package/dist/library/index.d.ts +1 -0
- package/dist/library/index.d.ts.map +1 -0
- package/dist/library/menu.d.ts +1 -0
- package/dist/library/menu.d.ts.map +1 -0
- package/dist/library/state.svelte.d.ts +1 -0
- package/dist/library/state.svelte.d.ts.map +1 -0
- package/dist/library/types.d.ts +1 -0
- package/dist/library/types.d.ts.map +1 -0
- package/dist/motion/tokens.d.ts +1 -0
- package/dist/motion/tokens.d.ts.map +1 -0
- package/dist/motion/view-transition.d.ts +1 -0
- package/dist/motion/view-transition.d.ts.map +1 -0
- package/dist/overviews/definitions.d.ts +1 -0
- package/dist/overviews/definitions.d.ts.map +1 -0
- package/dist/overviews/models.d.ts +1 -0
- package/dist/overviews/models.d.ts.map +1 -0
- package/dist/overviews/page.d.ts +1 -0
- package/dist/overviews/page.d.ts.map +1 -0
- package/dist/overviews/registry.d.ts +1 -0
- package/dist/overviews/registry.d.ts.map +1 -0
- package/dist/overviews/validate.d.ts +1 -0
- package/dist/overviews/validate.d.ts.map +1 -0
- package/dist/planner/Planner.svelte.d.ts +1 -0
- package/dist/planner/Planner.svelte.d.ts.map +1 -0
- package/dist/planner/PlannerControls.svelte.d.ts +1 -0
- package/dist/planner/PlannerControls.svelte.d.ts.map +1 -0
- package/dist/planner/PlannerLifecycle.svelte.d.ts +1 -0
- package/dist/planner/PlannerLifecycle.svelte.d.ts.map +1 -0
- package/dist/planner/app.svelte.d.ts +1 -0
- package/dist/planner/app.svelte.d.ts.map +1 -0
- package/dist/planner/assistant.d.ts +1 -0
- package/dist/planner/assistant.d.ts.map +1 -0
- package/dist/planner/commands/adapter.d.ts +1 -0
- package/dist/planner/commands/adapter.d.ts.map +1 -0
- package/dist/planner/commands/catalog.d.ts +1 -0
- package/dist/planner/commands/catalog.d.ts.map +1 -0
- package/dist/planner/commands/controller.svelte.d.ts +1 -0
- package/dist/planner/commands/controller.svelte.d.ts.map +1 -0
- package/dist/planner/commands/index.d.ts +1 -0
- package/dist/planner/commands/index.d.ts.map +1 -0
- package/dist/planner/commands/schemas.d.ts +1 -0
- package/dist/planner/commands/schemas.d.ts.map +1 -0
- package/dist/planner/commands/slices.d.ts +1 -0
- package/dist/planner/commands/slices.d.ts.map +1 -0
- package/dist/planner/commands/types.d.ts +1 -0
- package/dist/planner/commands/types.d.ts.map +1 -0
- package/dist/planner/create.d.ts +1 -0
- package/dist/planner/create.d.ts.map +1 -0
- package/dist/planner/header-icons.d.ts +1 -0
- package/dist/planner/header-icons.d.ts.map +1 -0
- package/dist/planner/host/HostPlanner.svelte.d.ts +1 -0
- package/dist/planner/host/HostPlanner.svelte.d.ts.map +1 -0
- package/dist/planner/host/session.svelte.d.ts +1 -0
- package/dist/planner/host/session.svelte.d.ts.map +1 -0
- package/dist/planner/instance.d.ts +1 -0
- package/dist/planner/instance.d.ts.map +1 -0
- package/dist/planner/query.d.ts +1 -0
- package/dist/planner/query.d.ts.map +1 -0
- package/dist/planner/routes.d.ts +1 -0
- package/dist/planner/routes.d.ts.map +1 -0
- package/dist/planner/selection.d.ts +1 -0
- package/dist/planner/selection.d.ts.map +1 -0
- package/dist/planner/selection.svelte.d.ts +1 -0
- package/dist/planner/selection.svelte.d.ts.map +1 -0
- package/dist/planner/shell.d.ts +1 -0
- package/dist/planner/shell.d.ts.map +1 -0
- package/dist/planner/tab.svelte.d.ts +1 -0
- package/dist/planner/tab.svelte.d.ts.map +1 -0
- package/dist/planner/title.d.ts +1 -0
- package/dist/planner/title.d.ts.map +1 -0
- package/dist/planner/title.svelte.d.ts +1 -0
- package/dist/planner/title.svelte.d.ts.map +1 -0
- package/dist/planner/types.d.ts +1 -0
- package/dist/planner/types.d.ts.map +1 -0
- package/dist/products/media.d.ts +1 -0
- package/dist/products/media.d.ts.map +1 -0
- package/dist/recipes/cards.d.ts +1 -0
- package/dist/recipes/cards.d.ts.map +1 -0
- package/dist/recipes/features.d.ts +1 -0
- package/dist/recipes/features.d.ts.map +1 -0
- package/dist/recipes/help.d.ts +1 -0
- package/dist/recipes/help.d.ts.map +1 -0
- package/dist/recipes/index.d.ts +1 -0
- package/dist/recipes/index.d.ts.map +1 -0
- package/dist/recipes/merge.d.ts +1 -0
- package/dist/recipes/merge.d.ts.map +1 -0
- package/dist/recipes/plan-data.d.ts +1 -0
- package/dist/recipes/plan-data.d.ts.map +1 -0
- package/dist/recipes/plumbing.d.ts +1 -0
- package/dist/recipes/plumbing.d.ts.map +1 -0
- package/dist/recipes/policy.d.ts +1 -0
- package/dist/recipes/policy.d.ts.map +1 -0
- package/dist/recipes/resolve.d.ts +1 -0
- package/dist/recipes/resolve.d.ts.map +1 -0
- package/dist/recipes/scope.d.ts +1 -0
- package/dist/recipes/scope.d.ts.map +1 -0
- package/dist/recipes/sections.d.ts +1 -0
- package/dist/recipes/sections.d.ts.map +1 -0
- package/dist/recipes/state.svelte.d.ts +1 -0
- package/dist/recipes/state.svelte.d.ts.map +1 -0
- package/dist/recipes/types.d.ts +1 -0
- package/dist/recipes/types.d.ts.map +1 -0
- package/dist/screens/definition.d.ts +1 -0
- package/dist/screens/definition.d.ts.map +1 -0
- package/dist/screens/relations.d.ts +1 -0
- package/dist/screens/relations.d.ts.map +1 -0
- package/dist/screens/totals.d.ts +1 -0
- package/dist/screens/totals.d.ts.map +1 -0
- package/dist/sections/entries.d.ts +1 -0
- package/dist/sections/entries.d.ts.map +1 -0
- package/dist/sections/info.d.ts +1 -0
- package/dist/sections/info.d.ts.map +1 -0
- package/dist/sections/path.d.ts +1 -0
- package/dist/sections/path.d.ts.map +1 -0
- package/dist/settings/app-settings.d.ts +1 -0
- package/dist/settings/app-settings.d.ts.map +1 -0
- package/dist/settings/currencies.d.ts +1 -0
- package/dist/settings/currencies.d.ts.map +1 -0
- package/dist/smrt-version.d.ts +2 -1
- package/dist/smrt-version.d.ts.map +1 -0
- package/dist/smrt-version.js +1 -1
- package/dist/theme/css-highlight.d.ts +1 -0
- package/dist/theme/css-highlight.d.ts.map +1 -0
- package/dist/theme/custom-css.svelte.d.ts +1 -0
- package/dist/theme/custom-css.svelte.d.ts.map +1 -0
- package/dist/theme/runtime.d.ts +1 -0
- package/dist/theme/runtime.d.ts.map +1 -0
- package/dist/theme/theme.d.ts +1 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/upstream/CustomerSelect.svelte.d.ts +1 -0
- package/dist/upstream/CustomerSelect.svelte.d.ts.map +1 -0
- package/dist/upstream/VendorSelect.svelte.d.ts +1 -0
- package/dist/upstream/VendorSelect.svelte.d.ts.map +1 -0
- package/dist/upstream/overlay.d.ts +1 -0
- package/dist/upstream/overlay.d.ts.map +1 -0
- package/dist/upstream/partySelect.d.ts +1 -0
- package/dist/upstream/partySelect.d.ts.map +1 -0
- package/dist/upstream/partyTypes.d.ts +1 -0
- package/dist/upstream/partyTypes.d.ts.map +1 -0
- package/dist/upstream/relations.d.ts +1 -0
- package/dist/upstream/relations.d.ts.map +1 -0
- package/dist/upstream/selects.d.ts +1 -0
- package/dist/upstream/selects.d.ts.map +1 -0
- package/dist/upstream/widgets.d.ts +1 -0
- package/dist/upstream/widgets.d.ts.map +1 -0
- package/package.json +54 -54
- package/app/_app/immutable/chunks/Bm8jjb_e.js +0 -1
- package/app/_app/immutable/chunks/Dnh261tH.js +0 -1
- package/app/_app/immutable/chunks/_V0EAIDV.js +0 -1
- package/app/_app/immutable/entry/start.BUD35Ixb.js +0 -1
package/agents/commands.md
CHANGED
|
@@ -45,7 +45,10 @@ Part of the [planner guidance](../AGENTS.md). Paths are relative to `packages/pl
|
|
|
45
45
|
`publint`) builds
|
|
46
46
|
`dist/` from `src/lib` with exports `.`, `./commands`, `./core` and `./app`, the static app into
|
|
47
47
|
`app/` (kept at the package root: released `smrt kitchen` CLIs resolve `<package>/app/index.html`)
|
|
48
|
-
and the MCP widget `app/mcp.html`.
|
|
48
|
+
and the MCP widget `app/mcp.html`. `tsconfig.package.json` sets `declarationMap` (it does not
|
|
49
|
+
extend the shared package chain that sets it for other packages), so every `dist/**/*.d.ts` has a
|
|
50
|
+
`.d.ts.map` whose `sources` name its `src/lib` file; consumers such as s-m-r-t.dev resolve
|
|
51
|
+
component source links through them. Code in `src/lib` imports relatively,
|
|
49
52
|
never through `$lib` (svelte-package does not resolve kit aliases here). The components that import
|
|
50
53
|
`$app/*` (section and model pages, the palette) are app-only: packaged but not reachable from
|
|
51
54
|
either entry, so `@sveltejs/kit` is an optional peer. Everything the entries reach reads its base
|
package/app/404.html
CHANGED
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<link href="/_app/immutable/entry/start.
|
|
7
|
-
<link href="/_app/immutable/chunks/
|
|
6
|
+
<link href="/_app/immutable/entry/start.BixveMT0.js" rel="modulepreload">
|
|
7
|
+
<link href="/_app/immutable/chunks/g7M7feZg.js" rel="modulepreload">
|
|
8
8
|
<link href="/_app/immutable/chunks/DG3qFFTE.js" rel="modulepreload">
|
|
9
9
|
<link href="/_app/immutable/chunks/COiEfhsA.js" rel="modulepreload">
|
|
10
10
|
<link href="/_app/immutable/chunks/Dt-HX3Vu.js" rel="modulepreload">
|
|
11
|
-
<link href="/_app/immutable/entry/app.
|
|
11
|
+
<link href="/_app/immutable/entry/app.BOdcGXnx.js" rel="modulepreload">
|
|
12
12
|
<link href="/_app/immutable/chunks/uBIymjUX.js" rel="modulepreload">
|
|
13
13
|
<link href="/_app/immutable/chunks/xihTtKlq.js" rel="modulepreload">
|
|
14
|
-
<link href="/_app/immutable/nodes/0.
|
|
14
|
+
<link href="/_app/immutable/nodes/0._WFh95JB.js" rel="modulepreload">
|
|
15
15
|
<link href="/_app/immutable/chunks/DVQPWAnI.js" rel="modulepreload">
|
|
16
16
|
<link href="/_app/immutable/chunks/YUSKx8_q.js" rel="modulepreload">
|
|
17
|
-
<link href="/_app/immutable/chunks/
|
|
17
|
+
<link href="/_app/immutable/chunks/rkUL-DlL.js" rel="modulepreload">
|
|
18
18
|
<link href="/_app/immutable/chunks/DK8Blf1Y.js" rel="modulepreload">
|
|
19
|
-
<link href="/_app/immutable/chunks/
|
|
19
|
+
<link href="/_app/immutable/chunks/DsY7g8iJ.js" rel="modulepreload">
|
|
20
20
|
<link href="/_app/immutable/chunks/M-CuJzQN.js" rel="modulepreload">
|
|
21
21
|
<link href="/_app/immutable/chunks/9pRTae44.js" rel="modulepreload">
|
|
22
|
-
<link href="/_app/immutable/chunks/
|
|
22
|
+
<link href="/_app/immutable/chunks/DD4mX3od.js" rel="modulepreload">
|
|
23
23
|
<link href="/_app/immutable/chunks/CUyVrfsu.js" rel="modulepreload">
|
|
24
24
|
<link href="/_app/immutable/chunks/gMSmS-_y.js" rel="modulepreload">
|
|
25
25
|
<link href="/_app/immutable/chunks/BYcBM-fh.js" rel="modulepreload">
|
|
26
|
-
<link href="/_app/immutable/chunks/
|
|
27
|
-
<link href="/_app/immutable/chunks/
|
|
28
|
-
<link href="/_app/immutable/chunks/
|
|
29
|
-
<link href="/_app/immutable/chunks/
|
|
26
|
+
<link href="/_app/immutable/chunks/BJKoxDbG.js" rel="modulepreload">
|
|
27
|
+
<link href="/_app/immutable/chunks/DvUWb_GS.js" rel="modulepreload">
|
|
28
|
+
<link href="/_app/immutable/chunks/r7IFcw-O.js" rel="modulepreload">
|
|
29
|
+
<link href="/_app/immutable/chunks/CZwkvsZI.js" rel="modulepreload">
|
|
30
30
|
<link href="/_app/immutable/chunks/d934w91N.js" rel="modulepreload">
|
|
31
31
|
<link href="/_app/immutable/chunks/D_U_DYjx.js" rel="modulepreload">
|
|
32
|
-
<link href="/_app/immutable/chunks/
|
|
33
|
-
<link href="/_app/immutable/chunks/
|
|
34
|
-
<link href="/_app/immutable/chunks/
|
|
35
|
-
<link href="/_app/immutable/chunks/
|
|
36
|
-
<link href="/_app/immutable/chunks/
|
|
32
|
+
<link href="/_app/immutable/chunks/CbCYY1ps.js" rel="modulepreload">
|
|
33
|
+
<link href="/_app/immutable/chunks/2l76O8yg.js" rel="modulepreload">
|
|
34
|
+
<link href="/_app/immutable/chunks/Bz0ybtg3.js" rel="modulepreload">
|
|
35
|
+
<link href="/_app/immutable/chunks/BfPYbnRI.js" rel="modulepreload">
|
|
36
|
+
<link href="/_app/immutable/chunks/CF503c7E.js" rel="modulepreload">
|
|
37
37
|
<link href="/_app/immutable/chunks/BMgzWMdF.js" rel="modulepreload">
|
|
38
38
|
<link href="/_app/immutable/chunks/CgAkqYsL.js" rel="modulepreload">
|
|
39
39
|
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
<div style="display: contents">
|
|
55
55
|
<script>
|
|
56
56
|
{
|
|
57
|
-
|
|
57
|
+
__sveltekit_1rqc3rz = {
|
|
58
58
|
base: ""
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
const element = document.currentScript.parentElement;
|
|
62
62
|
|
|
63
63
|
Promise.all([
|
|
64
|
-
import("/_app/immutable/entry/start.
|
|
65
|
-
import("/_app/immutable/entry/app.
|
|
64
|
+
import("/_app/immutable/entry/start.BixveMT0.js"),
|
|
65
|
+
import("/_app/immutable/entry/app.BOdcGXnx.js")
|
|
66
66
|
]).then(([kit, app]) => {
|
|
67
67
|
kit.start(app, element);
|
|
68
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,D as r,E as i,G as a,K as o,M as s,N as c,P as l,S as u,T as d,U as f,V as p,W as m,X as h,Y as g,Z as _,ct as ee,et as v,ft as y,it as te,j as ne,k as b,nt as x,ot as re,rt as S,tt as C,w,x as T,y as E}from"./CqPgazbY.js";var D=e=>{let t=y(e);if(!t)throw Error(`The catalog has no model ${e}`);return t.model};function O(e){return String(e??``).toUpperCase().replace(/[^A-Z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}var k=/\{([A-Za-z_][\w]*\.[A-Za-z_][\w]*)(?:\|(slug))?\}/g;function A(e,t){return e.replace(k,(e,n,r)=>{let i=t[n],a=i==null?``:String(i);return r===`slug`?O(a):a})}function j(e,t,n=e=>e){return typeof e==`string`?A(e,t):typeof e==`object`&&e?{ref:n(e.ref),...e.field?{field:e.field}:{}}:e}function M(e,t,n){return Object.fromEntries(Object.entries(e??{}).map(([e,r])=>[e,j(r,t,n)]))}function N(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`object`&&e&&!Array.isArray(e)?e:null}function P(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=F(e.to);return r.alias===t?[[r.field,N(n[e.id])]]:[]}))}function F(e){let t=e.indexOf(`.`);if(t<1||t===e.length-1)throw Error(`A form field maps to "alias.field", got "${e}"`);return{alias:e.slice(0,t),field:e.slice(t+1)}}function I(e,t,n){let{alias:r,field:i}=F(e.to),a=t.find(e=>e.as===r);if(!a)throw Error(`Form field ${e.id} maps to unknown ${r}`);let o=n(a.model).fields.find(e=>e.name===i);if(!o)throw Error(`${a.model} has no field ${i} (form field ${e.id})`);return o}function L(e,t){let{alias:n}=F(e.to),r=t.find(e=>e.as===n);if(!r)throw Error(`Form field ${e.id} maps to unknown ${n}`);return r.model}function R(e,t){return e.default===void 0?t.default===void 0?t.type===`text`?``:null:t.default:e.default}function z(e,t){return Object.fromEntries(e.map(e=>[e.to,t[e.id]]))}var B=(e,t)=>e===t;async function V(e,t,n,r){let i={...n};for(let n of t){if(n.as in i)continue;if(!n.match){i[n.as]=void 0;continue}let t={},a=!0;for(let[e,r]of Object.entries(n.match))if(typeof r==`object`&&r){let n=i[r.ref];n||(a=!1),t[e]=r.field?n?.[r.field]:n?.id}else t[e]=r;i[n.as]=a?(await e.list(r(n.model))).find(e=>Object.entries(t).every(([t,n])=>B(e[t],n))):void 0}return i}var H=4,U=(e,t)=>e.fields.some(e=>e.name===t);function ie(e,n,i,a,c){let l=u(r(`${a}:${e.id}:${i.id}`)),f=U(e,`debit`)&&U(e,`credit`),p=f?2*(1+Math.floor(l()*2)):1+Math.floor(l()*H),m=o(e),h=1e3*(1+Math.floor(l()*90));return Array.from({length:p},(o,u)=>{let p=r(`${i.id}:${u}`)%997,g={...d(e,p,a,c),id:w(`${e.id}:${i.id}:${u}`),[n]:i.id};if(U(e,`sortOrder`)&&(g.sortOrder=u),m){let n=e.fields.find(e=>e.related?.endsWith(`:Product`)&&e.name in g),r=s(),{products:a}=r,o=n?a[t(n,{modelId:e.id,index:p,rows:c})%a.length]:a[p%a.length],d=b(p);d?(U(e,`description`)&&(g.description=d.description),g.unitPrice=d.price,n&&(g[n.name]=``)):n&&o&&(U(e,`description`)&&(g.description=o.name),g.unitPrice=o.price);let[f,m]=d?.quantity??o?.quantity??r.lineQuantity??[1,5],h=f+Math.floor(l()*(m-f+1));U(e,`quantity`)&&(g.quantity=h),Object.assign(g,q(e,i,u,h,Number(g.unitPrice??0))),g.amount=x(g)}if(f){let e=u%2==0;g.debit=e?h/100:0,g.credit=e?0:h/100}return g})}function W(e){return r(`discount:${e.id}`)%3==0}function G(e,t){return Math.round(e*t/1e3)*100}function K(e,t){return t>0&&r(`tax-override:${e.id}:${t}`)%7==0}function ae(t,n,i=c().currency){let a=r(`tax-override-kind:${t.id}:${n}`)%4,o=C(i);if(o&&a<2)return o;let s=a%2==0?`exempt`:`zero-rated`;return e.find(e=>e.kind===s)}function q(e,t,n,i,a){let o={},s=n===0&&W(t),c=r(`discount-kind:${t.id}`)%2==0;U(e,`discountType`)&&(o.discountType=s?c?`percent`:`amount`:`none`),U(e,`discountRate`)&&(o.discountRate=s&&c?`10`:null),U(e,`discount`)&&(o.discount=s&&!(c&&U(e,`discountType`))?G(i,a):0),!U(e,`discountType`)&&o.discount&&(o.discountType=`amount`);let l=K(t,n)?ae(t,n):void 0;return U(e,`taxMode`)&&(o.taxMode=l?`override`:`inherit`),U(e,`taxCodeId`)&&(o.taxCodeId=l?.id??null),o}function oe(e,t){let n={...e,...t};return`discount`in t&&!(`discountType`in t)&&n.discountType===`amount`&&(n.discountType=`percent`,n.discountRate=`10`,n.discount=0),`discountRate`in t&&n.discountType===`percent`&&(n.discountType=`none`,n.discountRate=null,n.discount=0),n}var se=[`@happyvertical/smrt-commerce:Order`,`@happyvertical/smrt-commerce:Invoice`],J=2500;function ce(e,t,n){n===2&&se.includes(t.id)&&typeof e.subtotal==`number`&&typeof e.totalAmount==`number`&&(t.fields.some(e=>e.name===`status`&&e.enum?.includes(`draft`))&&(e.status=`draft`),e.subtotal+=J,e.totalAmount+=J)}function le(e,t,n,r){if(!n.length||!n.every(e=>`unitPrice`in e))return[...n];let i=h(t,e,n,r);return Object.assign(e,i.row),i.lines}var Y=e=>typeof e==`number`&&Number.isFinite(e)?e:0,ue=e=>e.status!==`draft`&&e.status!==`cancelled`&&Y(e.totalAmount)>0;function de(e,t,n,i){let a=new Map(n.map(e=>[e.id,Y(e.totalAmount)])),o=[];for(let s of t){if(s.status!==`completed`){s.status!==`refunded`&&(s.paidAt=null);continue}let t=u(r(`${i}:alloc:${s.id}`)),c=n.filter(e=>ue(e)&&e.customerId===s.customerId&&(a.get(e.id)??0)>0).slice(0,t()<.3?2:1);if(c.length===0)continue;let l=c.map((e,n)=>{let r=a.get(e.id)??0,i=n>0||t()<.6?r:Math.min(r,Math.max(100,Math.round(r*(.3+t()*.4)/100)*100));return a.set(e.id,r-i),{inv:e,part:i}}),f=Math.max(...l.map(({inv:e})=>Date.parse(String(e.issueDate)))),p=new Date(Math.max(f,Math.min(f+(1+Math.floor(t()*20))*E,T))).toISOString();s.amount=l.reduce((e,t)=>e+t.part,0),s.paidAt=p,`contractId`in s&&l[0]?.inv.contractId&&(s.contractId=l[0].inv.contractId);for(let{inv:t,part:n}of l)o.push({...d(e.model,o.length,i),id:w(`${e.model.id}:${s.id}:${t.id}`),[e.paymentFk]:s.id,[e.invoiceFk]:t.id,amount:n,allocatedAt:p})}return o}function X(e){return typeof e==`object`&&!!e&&typeof e.ref==`string`}var Z=`smrt-planner:data:v6:`,fe=`@happyvertical/smrt-commerce:TaxCode`,Q=`@happyvertical/smrt-commerce:TaxComponent`,pe=[`taxable`,`zero-rated`,`exempt`,`out-of-scope`];function me(e,t){return!!e.fields.find(e=>e.name===`status`)?.enum?.includes(`draft`)&&typeof t.status==`string`&&t.status!==``&&t.status!==`draft`}var $=`${Z}_created`;function he(e){if(e)try{let t=[];for(let n=0;n<e.length;n++){let r=e.key(n);r?.startsWith(`smrt-planner:data:v6:`)&&t.push(r)}for(let n of t)e.removeItem(n)}catch{}}function ge(e={}){let t=e.seed??1,r=e.rowsPerModel??8,s=new Set(e.empty??[]),u=new Map,d=new Set,y=e.storage??null,b=e=>`${Z}${e.id}`,x=e=>{if(y)try{let t=y.getItem(b(e));if(t===null)return;let n=JSON.parse(t);if(Array.isArray(n)&&n.every(e=>typeof e==`object`&&!!e&&typeof e.id==`string`))return n}catch{}},C=0;if(y)try{C=Number(y.getItem($))||0}catch{C=0}let E=new Map,D=t=>{let n=E.get(t);return n||(n=e.children?.links(t)??[],E.set(t,n)),n},O,k,A=t=>{if(!O){O=new Map;for(let t of e.children?.models??[])for(let e of D(t.id)){let n=O.get(e.model.id)??[];n.push({parent:t,fk:e.fk}),O.set(e.model.id,n)}k=new Map(O);for(let[e,t]of O){let n=e.slice(e.lastIndexOf(`:`)+1).toLowerCase(),r=t.find(e=>n.startsWith(e.fk.replace(/Id$/,``).toLowerCase()))?.fk??t[0]?.fk;O.set(e,t.filter(e=>e.fk===r))}}return O.get(t)??[]},j=e=>{if(!a(e))return;A(e.id);let t=k?.get(e.id)??[],r=p(e)?.name,i=n(e)?.name,o=t.find(e=>e.fk===r)?.parent,s=t.find(e=>e.fk===i)?.parent;return o&&s&&r&&i?{model:e,paymentFk:r,invoiceFk:i,payment:o,invoice:s}:void 0},M=(t,n)=>{if(!_(t))return n;let r=D(t.id).find(e=>a(e.model)),i=r&&j(r.model);if(!r||!i)return n;let o=new Map(P(i.payment).map(e=>[e.id,e])),s=P(r.model).filter(e=>e[r.fk]===n.id&&o.get(String(e[i.paymentFk]))?.status===`completed`).map(e=>({amount:Number(e.amount??0),at:String(e.allocatedAt??``)})),c=g(n,s,(e.now??(()=>T))()),l={...n,amountPaid:c.amountPaid,status:c.status};return t.fields.some(e=>e.name===`paidDate`)&&(l.paidDate=c.paidDate),l},N=(e,t)=>{let n=P(e),r=n.findIndex(e=>e.id===t);r>=0&&(n[r]=M(e,n[r]))},P=n=>{let a=u.get(n.id);if(a)return a;let c=x(n);if(c){u.set(n.id,c);for(let e of D(n.id))P(e.model);return c}let l=s.has(n.id)?void 0:e.samples?.[n.id];if(l){let e=[];return u.set(n.id,e),e.push(...l.make(l.from.map(P),t)),e}let d=j(n),f=d?[]:A(n.id),p=s.has(n.id)||f.length||d?[]:i(n,ne(n.id,r),t,r);u.set(n.id,p);for(let e of D(n.id))P(e.model);if(d&&!s.has(n.id)){for(let e of D(d.invoice.id))o(e.model)&&P(e.model);let e=P(d.invoice);p.push(...de(d,P(d.payment),e,t)),e.forEach((t,n)=>{e[n]=M(d.invoice,t)})}if(!s.has(n.id))for(let{parent:i,fk:a}of f){let s=e.defaults?.(n)??{};P(i).forEach((e,c)=>{let l=ie(n,a,e,t,r).map(e=>oe(e,s));o(n)?(p.push(...le(e,i,l,L(i,e))),ce(e,i,c)):p.push(...l)})}return p},F=new Map((e.children?.models??[]).map(e=>[e.id,e])),I=e=>{let t=te(e),n=F.get(fe),r=F.get(Q),i=n?P(n):[];if(!i.length)return t;let a=new Map(t.flatMap(e=>e.components.map(e=>[e.id,e])));for(let e of r?P(r):[])a.set(e.id,{id:e.id,key:e.id,name:String(e.name??``),percent:String(e.percent??`0`),recoverable:e.recoverable===!0});let o=i.map(e=>{let t=[];try{t=JSON.parse(String(e.componentsJson??`[]`))}catch{t=[]}let n=(Array.isArray(t)?t:[]).flatMap(e=>{let t=e&&typeof e==`object`?a.get(String(e.taxComponentId)):void 0;return t?[t]:[]}),r=pe.includes(String(e.kind))?e.kind:`taxable`,i=[`sales`,`purchases`,`both`].includes(String(e.appliesTo))?e.appliesTo:`both`;return{id:e.id,code:String(e.code??``),name:String(e.name??``),kind:r,appliesTo:i,active:e.active!==!1,components:n}}),s=new Map(o.map(e=>[e.id,e]));if(t.some(e=>s.has(e.id))){let n=v(e);return[...t.filter(e=>s.has(e.id)||e.id===n.id).map(e=>s.get(e.id)??e),...o.filter(e=>!t.some(t=>t.id===e.id))]}return[...t,...o]},L=(e,t)=>{let n=c(),r=l()??.05,i=I(r),a=e.fields.find(e=>e.name===`customerId`&&e.related),o=a?.related?F.get(a.related):void 0,s=o?P(o).find(e=>e.id===t.customerId):void 0,d=e=>{for(let[t,n]of u){if(!t.endsWith(`:Product`))continue;let r=n.find(t=>t.id===e);if(r)return r}},p=e=>typeof e==`string`&&e?e:null;return{lineAmountType:f(t,n.pricesIncludeTax?`inclusive`:`exclusive`),roundingScope:m(t,n.taxRounding),currency:S(t.currency,S(n.currency)),codes:i,appDefaultCodeId:v(r).id,customerTaxExempt:s?.taxExempt===!0,partyCodeId:p(s?.defaultTaxCodeId),productCodeOf:e=>p(d(e)?.defaultSalesTaxCodeId)}},R=e=>{if(!y)return;let t=e=>{let t=j(e);return t?[t.payment,t.invoice]:[]},n=[e,...D(e.id).map(e=>e.model),...A(e.id).map(e=>e.parent),...t(e),...D(e.id).flatMap(e=>t(e.model))];try{for(let e of n){let t=u.get(e.id);t&&y.setItem(b(e),JSON.stringify(t))}y.setItem($,String(C))}catch{}},z=e=>D(e.id).find(t=>o(t.model)&&A(t.model.id).some(n=>n.parent.id===e.id&&n.fk===t.fk)),B=(e,t,n=!1)=>{let r=z(e);if(!r)return!1;let i=P(e),a=i.findIndex(e=>e.id===t);if(a<0)return!1;let o=P(r.model),s=o.filter(e=>e[r.fk]===t),c=i[a];if(me(e,c)){if(n)throw new ee(`FROZEN_DOCUMENT`,`This ${e.name.toLowerCase()} has been issued, so its lines can no longer change.`);return!0}let l=h(e,c,s,L(e,c));i[a]=l.row;for(let e of l.lines){let t=o.findIndex(t=>t.id===e.id);t>=0&&(o[t]=e)}return!0},V=(e,t)=>{let n=t;if(z(e)&&(B(e,t.id),n=P(e).find(e=>e.id===t.id)??n),o(e)){let r=A(e.id).some(({parent:e,fk:n})=>B(e,t[n],!0)),i=P(e),a=i.findIndex(e=>e.id===t.id);if(!r&&a>=0){let e=c(),n=l()??.05;i[a]=re([t],{lineAmountType:e.pricesIncludeTax?`inclusive`:`exclusive`,roundingScope:e.taxRounding,currency:S(e.currency),codes:I(n),appDefaultCodeId:v(n).id}).lines[0]}n=P(e).find(e=>e.id===t.id)??n}_(e)&&(N(e,t.id),n=P(e).find(e=>e.id===t.id)??n);let r=j(e);r&&N(r.invoice,t[r.invoiceFk]);for(let n of D(e.id)){let r=j(n.model);if(r&&r.payment.id===e.id)for(let e of P(n.model))e[r.paymentFk]===t.id&&N(r.invoice,e[r.invoiceFk])}return n},H=e=>{let t=[e,...D(e.id).map(e=>e.model),...A(e.id).map(e=>e.parent)];return new Map(t.map(e=>[e.id,P(e).map(e=>({...e}))]))},U=e=>{for(let[t,n]of e){let e=u.get(t);e&&e.splice(0,e.length,...n)}},W=(t,n)=>({...n,...e.defaults?.(t)??{}}),G=e=>w(`${e.id}:new:${t}:${C++}`),K=(e,t)=>Object.entries(t).every(([t,n])=>e[t]===n);return{async list(e){return P(e).map(t=>W(e,t))},async listWhere(e,t,n){return P(e).filter(e=>String(e[t]??``)===n).map(t=>W(e,t))},async get(e,t){let n=P(e).find(e=>e.id===t);return n?W(e,n):void 0},async create(t,n){let r={...e.defaults?.(t)??{},...n,id:G(t)},i=H(t);P(t).push(r);let a;try{a=V(t,r)}catch(e){throw U(i),C--,e}return R(t),{...a}},async update(e,t,n){let r=P(e),i=r.findIndex(e=>e.id===t);if(i<0)return;let a=H(e),s=r[i],c={...s,...n,id:t};r[i]=c;let l;try{if(l=V(e,c),o(e))for(let{parent:t,fk:n}of A(e.id))s[n]!==c[n]&&B(t,s[n],!0)}catch(e){throw U(a),e}return R(e),{...l}},async delete(e,t){let n=P(e),r=n.findIndex(e=>e.id===t);if(r<0)return!1;let i=H(e),[a]=n.splice(r,1);try{let t=j(e);t&&a&&N(t.invoice,a[t.invoiceFk]);for(let{parent:t,fk:n}of A(e.id))o(e)&&a&&B(t,a[n],!0)}catch(e){throw U(i),e}return R(e),!0},reset(){u.clear(),C=0,he(y);for(let e of[...d])e()},onReset(e){return d.add(e),()=>{d.delete(e)}},async apply(t){let n=new Map,r=C,i=new Map,a=e=>{i.set(e.id,e);let t=P(e);return n.has(e.id)||n.set(e.id,t.map(e=>({...e}))),t},o={},s=e=>Object.fromEntries(Object.entries(e??{}).map(([e,t])=>{if(!X(t))return[e,t];let n=o[t.ref];if(!n)throw Error(`Unknown record reference ${t.ref}`);return[e,t.field?n[t.field]:n.id]}));try{for(let n of t){let t=a(n.model),r=s(n.match);if(n.op===`delete`){let e=t.filter(e=>n.id===void 0?K(e,r):e.id===n.id);if(n.id===void 0&&Object.keys(r).length===0)throw Error(`A delete needs an id or a match`);for(let n of e)t.splice(t.indexOf(n),1);continue}let i=s(n.values),c=-1;if(n.id!==void 0){if(c=t.findIndex(e=>e.id===n.id),c<0)throw Error(`No ${n.model.name} with id ${n.id}`)}else Object.keys(r).length>0&&(c=t.findIndex(e=>K(e,r)));let l;if(c>=0){let e=t[c];l={...e,...i,id:e.id},t[c]=l}else l={...e.defaults?.(n.model)??{},...r,...s(n.onCreate),...i,id:G(n.model)},t.push(l);n.as&&(o[n.as]={...l})}}catch(e){for(let[e,t]of n)u.set(e,t);throw C=r,e}for(let e of i.values())R(e);return o}}}export{V as a,N as c,I as d,L as f,z as i,O as l,X as n,P as o,M as p,D as r,F as s,ge as t,R as u};
|
|
1
|
+
import{$ as e,A as t,B as n,D as r,E as i,G as a,K as o,M as s,N as c,P as l,S as u,T as d,U as f,V as p,W as m,X as h,Y as g,Z as _,ct as ee,et as v,ft as y,it as te,j as ne,k as b,nt as x,ot as re,rt as S,tt as C,w,x as T,y as E}from"./rkUL-DlL.js";var D=e=>{let t=y(e);if(!t)throw Error(`The catalog has no model ${e}`);return t.model};function O(e){return String(e??``).toUpperCase().replace(/[^A-Z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}var k=/\{([A-Za-z_][\w]*\.[A-Za-z_][\w]*)(?:\|(slug))?\}/g;function A(e,t){return e.replace(k,(e,n,r)=>{let i=t[n],a=i==null?``:String(i);return r===`slug`?O(a):a})}function j(e,t,n=e=>e){return typeof e==`string`?A(e,t):typeof e==`object`&&e?{ref:n(e.ref),...e.field?{field:e.field}:{}}:e}function M(e,t,n){return Object.fromEntries(Object.entries(e??{}).map(([e,r])=>[e,j(r,t,n)]))}function N(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`object`&&e&&!Array.isArray(e)?e:null}function P(e,t,n){return Object.fromEntries(e.flatMap(e=>{let r=F(e.to);return r.alias===t?[[r.field,N(n[e.id])]]:[]}))}function F(e){let t=e.indexOf(`.`);if(t<1||t===e.length-1)throw Error(`A form field maps to "alias.field", got "${e}"`);return{alias:e.slice(0,t),field:e.slice(t+1)}}function I(e,t,n){let{alias:r,field:i}=F(e.to),a=t.find(e=>e.as===r);if(!a)throw Error(`Form field ${e.id} maps to unknown ${r}`);let o=n(a.model).fields.find(e=>e.name===i);if(!o)throw Error(`${a.model} has no field ${i} (form field ${e.id})`);return o}function L(e,t){let{alias:n}=F(e.to),r=t.find(e=>e.as===n);if(!r)throw Error(`Form field ${e.id} maps to unknown ${n}`);return r.model}function R(e,t){return e.default===void 0?t.default===void 0?t.type===`text`?``:null:t.default:e.default}function z(e,t){return Object.fromEntries(e.map(e=>[e.to,t[e.id]]))}var B=(e,t)=>e===t;async function V(e,t,n,r){let i={...n};for(let n of t){if(n.as in i)continue;if(!n.match){i[n.as]=void 0;continue}let t={},a=!0;for(let[e,r]of Object.entries(n.match))if(typeof r==`object`&&r){let n=i[r.ref];n||(a=!1),t[e]=r.field?n?.[r.field]:n?.id}else t[e]=r;i[n.as]=a?(await e.list(r(n.model))).find(e=>Object.entries(t).every(([t,n])=>B(e[t],n))):void 0}return i}var H=4,U=(e,t)=>e.fields.some(e=>e.name===t);function ie(e,n,i,a,c){let l=u(r(`${a}:${e.id}:${i.id}`)),f=U(e,`debit`)&&U(e,`credit`),p=f?2*(1+Math.floor(l()*2)):1+Math.floor(l()*H),m=o(e),h=1e3*(1+Math.floor(l()*90));return Array.from({length:p},(o,u)=>{let p=r(`${i.id}:${u}`)%997,g={...d(e,p,a,c),id:w(`${e.id}:${i.id}:${u}`),[n]:i.id};if(U(e,`sortOrder`)&&(g.sortOrder=u),m){let n=e.fields.find(e=>e.related?.endsWith(`:Product`)&&e.name in g),r=s(),{products:a}=r,o=n?a[t(n,{modelId:e.id,index:p,rows:c})%a.length]:a[p%a.length],d=b(p);d?(U(e,`description`)&&(g.description=d.description),g.unitPrice=d.price,n&&(g[n.name]=``)):n&&o&&(U(e,`description`)&&(g.description=o.name),g.unitPrice=o.price);let[f,m]=d?.quantity??o?.quantity??r.lineQuantity??[1,5],h=f+Math.floor(l()*(m-f+1));U(e,`quantity`)&&(g.quantity=h),Object.assign(g,q(e,i,u,h,Number(g.unitPrice??0))),g.amount=x(g)}if(f){let e=u%2==0;g.debit=e?h/100:0,g.credit=e?0:h/100}return g})}function W(e){return r(`discount:${e.id}`)%3==0}function G(e,t){return Math.round(e*t/1e3)*100}function K(e,t){return t>0&&r(`tax-override:${e.id}:${t}`)%7==0}function ae(t,n,i=c().currency){let a=r(`tax-override-kind:${t.id}:${n}`)%4,o=C(i);if(o&&a<2)return o;let s=a%2==0?`exempt`:`zero-rated`;return e.find(e=>e.kind===s)}function q(e,t,n,i,a){let o={},s=n===0&&W(t),c=r(`discount-kind:${t.id}`)%2==0;U(e,`discountType`)&&(o.discountType=s?c?`percent`:`amount`:`none`),U(e,`discountRate`)&&(o.discountRate=s&&c?`10`:null),U(e,`discount`)&&(o.discount=s&&!(c&&U(e,`discountType`))?G(i,a):0),!U(e,`discountType`)&&o.discount&&(o.discountType=`amount`);let l=K(t,n)?ae(t,n):void 0;return U(e,`taxMode`)&&(o.taxMode=l?`override`:`inherit`),U(e,`taxCodeId`)&&(o.taxCodeId=l?.id??null),o}function oe(e,t){let n={...e,...t};return`discount`in t&&!(`discountType`in t)&&n.discountType===`amount`&&(n.discountType=`percent`,n.discountRate=`10`,n.discount=0),`discountRate`in t&&n.discountType===`percent`&&(n.discountType=`none`,n.discountRate=null,n.discount=0),n}var se=[`@happyvertical/smrt-commerce:Order`,`@happyvertical/smrt-commerce:Invoice`],J=2500;function ce(e,t,n){n===2&&se.includes(t.id)&&typeof e.subtotal==`number`&&typeof e.totalAmount==`number`&&(t.fields.some(e=>e.name===`status`&&e.enum?.includes(`draft`))&&(e.status=`draft`),e.subtotal+=J,e.totalAmount+=J)}function le(e,t,n,r){if(!n.length||!n.every(e=>`unitPrice`in e))return[...n];let i=h(t,e,n,r);return Object.assign(e,i.row),i.lines}var Y=e=>typeof e==`number`&&Number.isFinite(e)?e:0,ue=e=>e.status!==`draft`&&e.status!==`cancelled`&&Y(e.totalAmount)>0;function de(e,t,n,i){let a=new Map(n.map(e=>[e.id,Y(e.totalAmount)])),o=[];for(let s of t){if(s.status!==`completed`){s.status!==`refunded`&&(s.paidAt=null);continue}let t=u(r(`${i}:alloc:${s.id}`)),c=n.filter(e=>ue(e)&&e.customerId===s.customerId&&(a.get(e.id)??0)>0).slice(0,t()<.3?2:1);if(c.length===0)continue;let l=c.map((e,n)=>{let r=a.get(e.id)??0,i=n>0||t()<.6?r:Math.min(r,Math.max(100,Math.round(r*(.3+t()*.4)/100)*100));return a.set(e.id,r-i),{inv:e,part:i}}),f=Math.max(...l.map(({inv:e})=>Date.parse(String(e.issueDate)))),p=new Date(Math.max(f,Math.min(f+(1+Math.floor(t()*20))*E,T))).toISOString();s.amount=l.reduce((e,t)=>e+t.part,0),s.paidAt=p,`contractId`in s&&l[0]?.inv.contractId&&(s.contractId=l[0].inv.contractId);for(let{inv:t,part:n}of l)o.push({...d(e.model,o.length,i),id:w(`${e.model.id}:${s.id}:${t.id}`),[e.paymentFk]:s.id,[e.invoiceFk]:t.id,amount:n,allocatedAt:p})}return o}function X(e){return typeof e==`object`&&!!e&&typeof e.ref==`string`}var Z=`smrt-planner:data:v6:`,fe=`@happyvertical/smrt-commerce:TaxCode`,Q=`@happyvertical/smrt-commerce:TaxComponent`,pe=[`taxable`,`zero-rated`,`exempt`,`out-of-scope`];function me(e,t){return!!e.fields.find(e=>e.name===`status`)?.enum?.includes(`draft`)&&typeof t.status==`string`&&t.status!==``&&t.status!==`draft`}var $=`${Z}_created`;function he(e){if(e)try{let t=[];for(let n=0;n<e.length;n++){let r=e.key(n);r?.startsWith(`smrt-planner:data:v6:`)&&t.push(r)}for(let n of t)e.removeItem(n)}catch{}}function ge(e={}){let t=e.seed??1,r=e.rowsPerModel??8,s=new Set(e.empty??[]),u=new Map,d=new Set,y=e.storage??null,b=e=>`${Z}${e.id}`,x=e=>{if(y)try{let t=y.getItem(b(e));if(t===null)return;let n=JSON.parse(t);if(Array.isArray(n)&&n.every(e=>typeof e==`object`&&!!e&&typeof e.id==`string`))return n}catch{}},C=0;if(y)try{C=Number(y.getItem($))||0}catch{C=0}let E=new Map,D=t=>{let n=E.get(t);return n||(n=e.children?.links(t)??[],E.set(t,n)),n},O,k,A=t=>{if(!O){O=new Map;for(let t of e.children?.models??[])for(let e of D(t.id)){let n=O.get(e.model.id)??[];n.push({parent:t,fk:e.fk}),O.set(e.model.id,n)}k=new Map(O);for(let[e,t]of O){let n=e.slice(e.lastIndexOf(`:`)+1).toLowerCase(),r=t.find(e=>n.startsWith(e.fk.replace(/Id$/,``).toLowerCase()))?.fk??t[0]?.fk;O.set(e,t.filter(e=>e.fk===r))}}return O.get(t)??[]},j=e=>{if(!a(e))return;A(e.id);let t=k?.get(e.id)??[],r=p(e)?.name,i=n(e)?.name,o=t.find(e=>e.fk===r)?.parent,s=t.find(e=>e.fk===i)?.parent;return o&&s&&r&&i?{model:e,paymentFk:r,invoiceFk:i,payment:o,invoice:s}:void 0},M=(t,n)=>{if(!_(t))return n;let r=D(t.id).find(e=>a(e.model)),i=r&&j(r.model);if(!r||!i)return n;let o=new Map(P(i.payment).map(e=>[e.id,e])),s=P(r.model).filter(e=>e[r.fk]===n.id&&o.get(String(e[i.paymentFk]))?.status===`completed`).map(e=>({amount:Number(e.amount??0),at:String(e.allocatedAt??``)})),c=g(n,s,(e.now??(()=>T))()),l={...n,amountPaid:c.amountPaid,status:c.status};return t.fields.some(e=>e.name===`paidDate`)&&(l.paidDate=c.paidDate),l},N=(e,t)=>{let n=P(e),r=n.findIndex(e=>e.id===t);r>=0&&(n[r]=M(e,n[r]))},P=n=>{let a=u.get(n.id);if(a)return a;let c=x(n);if(c){u.set(n.id,c);for(let e of D(n.id))P(e.model);return c}let l=s.has(n.id)?void 0:e.samples?.[n.id];if(l){let e=[];return u.set(n.id,e),e.push(...l.make(l.from.map(P),t)),e}let d=j(n),f=d?[]:A(n.id),p=s.has(n.id)||f.length||d?[]:i(n,ne(n.id,r),t,r);u.set(n.id,p);for(let e of D(n.id))P(e.model);if(d&&!s.has(n.id)){for(let e of D(d.invoice.id))o(e.model)&&P(e.model);let e=P(d.invoice);p.push(...de(d,P(d.payment),e,t)),e.forEach((t,n)=>{e[n]=M(d.invoice,t)})}if(!s.has(n.id))for(let{parent:i,fk:a}of f){let s=e.defaults?.(n)??{};P(i).forEach((e,c)=>{let l=ie(n,a,e,t,r).map(e=>oe(e,s));o(n)?(p.push(...le(e,i,l,L(i,e))),ce(e,i,c)):p.push(...l)})}return p},F=new Map((e.children?.models??[]).map(e=>[e.id,e])),I=e=>{let t=te(e),n=F.get(fe),r=F.get(Q),i=n?P(n):[];if(!i.length)return t;let a=new Map(t.flatMap(e=>e.components.map(e=>[e.id,e])));for(let e of r?P(r):[])a.set(e.id,{id:e.id,key:e.id,name:String(e.name??``),percent:String(e.percent??`0`),recoverable:e.recoverable===!0});let o=i.map(e=>{let t=[];try{t=JSON.parse(String(e.componentsJson??`[]`))}catch{t=[]}let n=(Array.isArray(t)?t:[]).flatMap(e=>{let t=e&&typeof e==`object`?a.get(String(e.taxComponentId)):void 0;return t?[t]:[]}),r=pe.includes(String(e.kind))?e.kind:`taxable`,i=[`sales`,`purchases`,`both`].includes(String(e.appliesTo))?e.appliesTo:`both`;return{id:e.id,code:String(e.code??``),name:String(e.name??``),kind:r,appliesTo:i,active:e.active!==!1,components:n}}),s=new Map(o.map(e=>[e.id,e]));if(t.some(e=>s.has(e.id))){let n=v(e);return[...t.filter(e=>s.has(e.id)||e.id===n.id).map(e=>s.get(e.id)??e),...o.filter(e=>!t.some(t=>t.id===e.id))]}return[...t,...o]},L=(e,t)=>{let n=c(),r=l()??.05,i=I(r),a=e.fields.find(e=>e.name===`customerId`&&e.related),o=a?.related?F.get(a.related):void 0,s=o?P(o).find(e=>e.id===t.customerId):void 0,d=e=>{for(let[t,n]of u){if(!t.endsWith(`:Product`))continue;let r=n.find(t=>t.id===e);if(r)return r}},p=e=>typeof e==`string`&&e?e:null;return{lineAmountType:f(t,n.pricesIncludeTax?`inclusive`:`exclusive`),roundingScope:m(t,n.taxRounding),currency:S(t.currency,S(n.currency)),codes:i,appDefaultCodeId:v(r).id,customerTaxExempt:s?.taxExempt===!0,partyCodeId:p(s?.defaultTaxCodeId),productCodeOf:e=>p(d(e)?.defaultSalesTaxCodeId)}},R=e=>{if(!y)return;let t=e=>{let t=j(e);return t?[t.payment,t.invoice]:[]},n=[e,...D(e.id).map(e=>e.model),...A(e.id).map(e=>e.parent),...t(e),...D(e.id).flatMap(e=>t(e.model))];try{for(let e of n){let t=u.get(e.id);t&&y.setItem(b(e),JSON.stringify(t))}y.setItem($,String(C))}catch{}},z=e=>D(e.id).find(t=>o(t.model)&&A(t.model.id).some(n=>n.parent.id===e.id&&n.fk===t.fk)),B=(e,t,n=!1)=>{let r=z(e);if(!r)return!1;let i=P(e),a=i.findIndex(e=>e.id===t);if(a<0)return!1;let o=P(r.model),s=o.filter(e=>e[r.fk]===t),c=i[a];if(me(e,c)){if(n)throw new ee(`FROZEN_DOCUMENT`,`This ${e.name.toLowerCase()} has been issued, so its lines can no longer change.`);return!0}let l=h(e,c,s,L(e,c));i[a]=l.row;for(let e of l.lines){let t=o.findIndex(t=>t.id===e.id);t>=0&&(o[t]=e)}return!0},V=(e,t)=>{let n=t;if(z(e)&&(B(e,t.id),n=P(e).find(e=>e.id===t.id)??n),o(e)){let r=A(e.id).some(({parent:e,fk:n})=>B(e,t[n],!0)),i=P(e),a=i.findIndex(e=>e.id===t.id);if(!r&&a>=0){let e=c(),n=l()??.05;i[a]=re([t],{lineAmountType:e.pricesIncludeTax?`inclusive`:`exclusive`,roundingScope:e.taxRounding,currency:S(e.currency),codes:I(n),appDefaultCodeId:v(n).id}).lines[0]}n=P(e).find(e=>e.id===t.id)??n}_(e)&&(N(e,t.id),n=P(e).find(e=>e.id===t.id)??n);let r=j(e);r&&N(r.invoice,t[r.invoiceFk]);for(let n of D(e.id)){let r=j(n.model);if(r&&r.payment.id===e.id)for(let e of P(n.model))e[r.paymentFk]===t.id&&N(r.invoice,e[r.invoiceFk])}return n},H=e=>{let t=[e,...D(e.id).map(e=>e.model),...A(e.id).map(e=>e.parent)];return new Map(t.map(e=>[e.id,P(e).map(e=>({...e}))]))},U=e=>{for(let[t,n]of e){let e=u.get(t);e&&e.splice(0,e.length,...n)}},W=(t,n)=>({...n,...e.defaults?.(t)??{}}),G=e=>w(`${e.id}:new:${t}:${C++}`),K=(e,t)=>Object.entries(t).every(([t,n])=>e[t]===n);return{async list(e){return P(e).map(t=>W(e,t))},async listWhere(e,t,n){return P(e).filter(e=>String(e[t]??``)===n).map(t=>W(e,t))},async get(e,t){let n=P(e).find(e=>e.id===t);return n?W(e,n):void 0},async create(t,n){let r={...e.defaults?.(t)??{},...n,id:G(t)},i=H(t);P(t).push(r);let a;try{a=V(t,r)}catch(e){throw U(i),C--,e}return R(t),{...a}},async update(e,t,n){let r=P(e),i=r.findIndex(e=>e.id===t);if(i<0)return;let a=H(e),s=r[i],c={...s,...n,id:t};r[i]=c;let l;try{if(l=V(e,c),o(e))for(let{parent:t,fk:n}of A(e.id))s[n]!==c[n]&&B(t,s[n],!0)}catch(e){throw U(a),e}return R(e),{...l}},async delete(e,t){let n=P(e),r=n.findIndex(e=>e.id===t);if(r<0)return!1;let i=H(e),[a]=n.splice(r,1);try{let t=j(e);t&&a&&N(t.invoice,a[t.invoiceFk]);for(let{parent:t,fk:n}of A(e.id))o(e)&&a&&B(t,a[n],!0)}catch(e){throw U(i),e}return R(e),!0},reset(){u.clear(),C=0,he(y);for(let e of[...d])e()},onReset(e){return d.add(e),()=>{d.delete(e)}},async apply(t){let n=new Map,r=C,i=new Map,a=e=>{i.set(e.id,e);let t=P(e);return n.has(e.id)||n.set(e.id,t.map(e=>({...e}))),t},o={},s=e=>Object.fromEntries(Object.entries(e??{}).map(([e,t])=>{if(!X(t))return[e,t];let n=o[t.ref];if(!n)throw Error(`Unknown record reference ${t.ref}`);return[e,t.field?n[t.field]:n.id]}));try{for(let n of t){let t=a(n.model),r=s(n.match);if(n.op===`delete`){let e=t.filter(e=>n.id===void 0?K(e,r):e.id===n.id);if(n.id===void 0&&Object.keys(r).length===0)throw Error(`A delete needs an id or a match`);for(let n of e)t.splice(t.indexOf(n),1);continue}let i=s(n.values),c=-1;if(n.id!==void 0){if(c=t.findIndex(e=>e.id===n.id),c<0)throw Error(`No ${n.model.name} with id ${n.id}`)}else Object.keys(r).length>0&&(c=t.findIndex(e=>K(e,r)));let l;if(c>=0){let e=t[c];l={...e,...i,id:e.id},t[c]=l}else l={...e.defaults?.(n.model)??{},...r,...s(n.onCreate),...i,id:G(n.model)},t.push(l);n.as&&(o[n.as]={...l})}}catch(e){for(let[e,t]of n)u.set(e,t);throw C=r,e}for(let e of i.values())R(e);return o}}}export{V as a,N as c,I as d,L as f,z as i,O as l,X as n,P as o,M as p,D as r,F as s,ge as t,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,B as t,Ct as n,Dt as r,E as i,Ft as a,G as o,H as s,J as c,L as l,Ot as u,Pt as d,U as f,W as p,Y as m,a as h,bt as ee,d as g,ft as _,ht as v,mt as y,n as b,nt as te,o as x,pt as S,q as C,r as w,st as T,tt as ne,v as E,vt as re}from"./DG3qFFTE.js";import"./xihTtKlq.js";import"./DVQPWAnI.js";import{t as ie}from"./YUSKx8_q.js";import"./
|
|
1
|
+
import{$ as e,B as t,Ct as n,Dt as r,E as i,Ft as a,G as o,H as s,J as c,L as l,Ot as u,Pt as d,U as f,W as p,Y as m,a as h,bt as ee,d as g,ft as _,ht as v,mt as y,n as b,nt as te,o as x,pt as S,q as C,r as w,st as T,tt as ne,v as E,vt as re}from"./DG3qFFTE.js";import"./xihTtKlq.js";import"./DVQPWAnI.js";import{t as ie}from"./YUSKx8_q.js";import"./rkUL-DlL.js";import{n as D}from"./DK8Blf1Y.js";import{d as ae,f as oe,g as O,v as k}from"./DsY7g8iJ.js";import{t as se}from"./M-CuJzQN.js";import{o as A,u as j}from"./9pRTae44.js";import{i as M}from"./gMSmS-_y.js";var N=new Set([`$$slots`,`$$events`,`$$legacy`]);function P(e,t){u(t,!0);let n=k(),i=x(t,N),a=null;w(()=>{a=n.registerFocusTool(i)}),b(()=>{a?.()}),r()}var ce=o(`<!> <!>`,1),le=o(`<span class="smrt-shell-layout-editor__muted svelte-xzk327"> </span>`),ue=o(`<div class="smrt-shell-layout-editor__row svelte-xzk327"><!></div>`),de=o(`<strong> </strong>`),fe=o(`<!> <!> <!> <!>`,1),F=o(`<span> </span> <!>`,1),I=o(`<div class="smrt-shell-layout-editor__preview"><h3 class="svelte-xzk327"> </h3> <div class="smrt-shell-layout-editor__preview-frame svelte-xzk327" role="group" inert=""><!></div></div>`),L=o(`<section class="smrt-shell-layout-editor svelte-xzk327" data-smrt-component="ShellLayoutEditor"><header class="svelte-xzk327"><div><h2 class="svelte-xzk327"> </h2> <p class="svelte-xzk327"> </p></div> <!></header> <fieldset class="smrt-shell-layout-editor__panels svelte-xzk327"><legend class="svelte-xzk327"> </legend> <!></fieldset> <div class="smrt-shell-layout-editor__body svelte-xzk327"><div class="smrt-shell-layout-editor__nav"><div class="smrt-shell-layout-editor__nav-head svelte-xzk327"><h3 class="svelte-xzk327"> </h3> <!></div> <!></div> <!></div></section>`);function R(o,m){let b=C();u(m,!0);let x=h(m,`preview`,3,!0),{t:w}=ie(),k=te(()=>m.controller??j()),N=`${b}-heading`,P=n(()=>k.sections),R=n(()=>k.panels),z=n(()=>k.applied),B=n(()=>e(P).map(e=>({id:e.id,label:e.heading??w(O[`ui.shell_layout_editor.top_level`]),fixed:e.group===null,root:e.group===null,hidden:e.hidden,custom:e.custom,titleVisible:e.titleVisible,count:e.items.length}))),V=n(()=>e(P).flatMap(e=>e.items.map(t=>({id:t.id,containerId:e.id,label:t.label}))));function H(e,t){t?k.show(e):k.hide(e)}let U=ee(void 0);function pe(t,n){let r=n.currentTarget;k.renameSection(t,r.value),r.value=e(B).find(e=>e.id===t)?.label??``}async function me(){let t=k.createSection(w(O[`ui.shell_layout_editor.new_section_label`]));if(!t)return;await ne();let n=e(U)?.querySelector(`input[data-section-name="${CSS.escape(t)}"]`);n?.focus(),n?.select()}function he(e,t,n){n>0&&!globalThis.confirm?.(w(O[`ui.shell_layout_editor.delete_confirm`],{label:t}))||k.deleteSection(e)}function ge(e){k.moveItem(e.item.id,e.target.containerId,e.target.index)}function _e(e){k.moveSection(e.container.id,e.target)}var W=L(),G=_(W),K=_(G),q=_(K),ve=y(q,!0),ye=v(q,2),be=y(ye,!0);a(K);var xe=v(K,2);{let t=n(()=>!k.customized);D(xe,{variant:`secondary`,size:`sm`,get disabled(){return e(t)},onclick:()=>k.reset(),children:(e,t)=>{d();var n=c();T(e=>s(n,e),[()=>w(O[`ui.shell_layout_editor.reset`])]),f(e,n)},$$slots:{default:!0}})}a(G);var J=v(G,2),Y=_(J),Se=y(Y,!0),Ce=v(Y,2);l(Ce,17,()=>e(R),e=>e.edge,(r,i)=>{var o=ue(),c=_(o),l=t=>{var r=ce(),a=S(r);{let t=n(()=>w(O[`ui.shell_layout_editor.show_panel`],{panel:e(i).label}));M(a,{interaction:!1,get checked(){return e(i).visible},get label(){return e(t)},onchange:t=>k.setPanel(e(i).edge,{visible:t.currentTarget.checked})})}var o=v(a,2);{let t=n(()=>e(i).initial===`expanded`),r=n(()=>!e(i).visible),a=n(()=>w(O[`ui.shell_layout_editor.start_expanded`],{panel:e(i).label}));M(o,{interaction:!1,get checked(){return e(t)},get disabled(){return e(r)},get label(){return e(a)},onchange:t=>k.setPanel(e(i).edge,{initial:t.currentTarget.checked?`expanded`:`collapsed`})})}f(t,r)},u=t=>{var n=le(),r=y(n,!0);T(e=>s(r,e),[()=>w(O[`ui.shell_layout_editor.panel_unavailable`],{panel:e(i).label})]),f(t,n)};t(c,t=>{e(i).available?t(l):t(u,-1)}),a(o),T(()=>E(o,`data-edge`,e(i).edge)),f(r,o)}),a(J);var X=v(J,2),Z=_(X),Q=_(Z),$=_(Q),we=y($,!0),Te=v($,2);D(Te,{variant:`secondary`,size:`sm`,onclick:me,children:(e,t)=>{d();var n=c();T(e=>s(n,e),[()=>w(O[`ui.shell_layout_editor.new_section`])]),f(e,n)},$$slots:{default:!0}}),a(Q);var Ee=v(Q,2);{let r=(r,i)=>{let a=()=>(i?.()).container,o=n(()=>e(B).find(e=>e.id===a().id));var c=p(),l=S(c),u=e=>{var t=de(),n=y(t,!0);T(()=>s(n,a().label)),f(e,t)},d=r=>{var i=fe(),s=S(i);{let t=n(()=>w(O[`ui.shell_layout_editor.section_name`],{label:a().label}));se(s,{class:`smrt-shell-layout-editor__name`,interaction:!1,get"data-section-name"(){return a().id},get"aria-label"(){return e(t)},get value(){return a().label},onchange:e=>pe(a().id,e)})}var c=v(s,2);{let t=n(()=>e(o)?.hidden?`eyeOff`:`eye`),r=n(()=>!e(o)?.hidden),i=n(()=>w(O[`ui.shell_layout_editor.show_entry`],{label:a().label}));A(c,{get icon(){return e(t)},get pressed(){return e(r)},get label(){return e(i)},onclick:()=>H(a().id,!!e(o)?.hidden)})}var l=v(c,2);{let t=n(()=>e(o)?.titleVisible===!1?`headingOff`:`heading`),r=n(()=>e(o)?.titleVisible??!0),i=n(()=>w(O[`ui.shell_layout_editor.show_title_for`],{label:a().label}));A(l,{get icon(){return e(t)},get pressed(){return e(r)},get label(){return e(i)},onclick:()=>k.setSectionTitleVisible(a().id,!(e(o)?.titleVisible??!0))})}var u=v(l,2),d=t=>{{let r=n(()=>w(O[`ui.shell_layout_editor.delete_section`],{label:a().label}));A(t,{icon:`trash`,get label(){return e(r)},onclick:()=>he(a().id,a().label,e(o).count)})}};t(u,t=>{e(o)?.custom&&t(d)}),f(r,i)};t(l,t=>{e(o)?.root?t(u):t(d,-1)}),f(r,c)},a=(t,r)=>{let a=()=>(r?.()).item,o=()=>(r?.()).container,c=n(()=>k.isHidden(a().id));var l=F(),u=S(l);let d;var p=y(u,!0),m=v(u,2);{let t=n(()=>e(c)?`eyeOff`:`eye`),r=n(()=>!e(c)),i=n(()=>w(O[`ui.shell_layout_editor.show_entry`],{label:a().label}));A(m,{get icon(){return e(t)},get pressed(){return e(r)},get label(){return e(i)},onclick:()=>H(a().id,e(c))})}T(e=>{d=i(u,1,`smrt-shell-layout-editor__label svelte-xzk327`,null,d,{"smrt-shell-layout-editor__muted":e}),s(p,a().label)},[()=>e(c)||k.isHidden(o().id)]),f(t,l)},o=n(()=>w(O[`ui.shell_layout_editor.sortable_label`]));oe(Ee,{get containers(){return e(B)},get items(){return e(V)},get label(){return e(o)},reorderContainers:!0,onmove:ge,oncontainermove:_e,containerHeader:r,item:a,$$slots:{containerHeader:!0,item:!0}})}a(Z);var De=v(Z,2),Oe=t=>{var r=I(),i=_(r),o=y(i,!0),c=v(i,2),l=_(c);{let t=n(()=>w(O[`ui.shell_layout_editor.preview_label`]));ae(l,{get items(){return e(z).nav},get groups(){return e(z).groups},get iconComponent(){return m.iconComponent},get"aria-label"(){return e(t)}})}a(c),a(r),T((e,t)=>{s(o,e),E(c,`aria-label`,t)},[()=>w(O[`ui.shell_layout_editor.preview`]),()=>w(O[`ui.shell_layout_editor.preview_label`])]),f(t,r)};t(De,e=>{x()&&e(Oe)}),a(X),a(W),g(W,e=>re(U,e),()=>e(U)),T((e,t,n,r)=>{E(W,`aria-labelledby`,N),E(q,`id`,N),s(ve,e),s(be,t),s(Se,n),s(we,r)},[()=>w(O[`ui.shell_layout_editor.heading`]),()=>w(O[`ui.shell_layout_editor.description`]),()=>w(O[`ui.shell_layout_editor.panels`]),()=>w(O[`ui.shell_layout_editor.navigation`])]),f(o,W),r()}m([`click`]);export{P as n,R as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BbwIep6z.js","./uBIymjUX.js","./BQxY8kkL.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,Mt as t,bt as n,ct as r,gt as i,nt as a,ot as o,vt as s}from"./DG3qFFTE.js";import{t as c}from"./uBIymjUX.js";import{F as l,lt as u}from"./
|
|
2
|
+
import{$ as e,Mt as t,bt as n,ct as r,gt as i,nt as a,ot as o,vt as s}from"./DG3qFFTE.js";import{t as c}from"./uBIymjUX.js";import{F as l,lt as u}from"./rkUL-DlL.js";import{n as d}from"./Bb0f-PWY.js";import{n as f,r as p}from"./GdHEbDDH.js";import{a as m,t as h}from"./BQxY8kkL.js";import{_ as g,a as _,c as v,g as y,h as b,l as x,n as S,o as C,p as w,u as T}from"./EZsakmZX.js";import{b as E,c as D,o as O,r as ee,t as te}from"./U6_OBRq_.js";import{n as ne,t as re}from"./M81UeXT1.js";async function ie(e={}){let t=e.window??(typeof window<`u`?window:void 0),n=e.navigator??(typeof navigator<`u`?navigator:void 0);return!t||!(`SpeechRecognition`in t)&&!(`webkitSpeechRecognition`in t)?`missing`:n&&`brave`in n&&n.brave||/\bElectron\//.test(n?.userAgent??``)?`unreliable`:`works`}function ae(e){return new Worker(new URL(`../workers/local-speech.worker-CU_DjhLr.js`,import.meta.url).href,{name:e?.name})}var oe=2**28,se=16,ce=.95;function le(e){if(e===0)return 1;let t=Math.PI*e;return Math.sin(t)/t}function ue(e,t,n){for(let[e,r]of[[`fromRate`,t],[`toRate`,n]])if(!Number.isFinite(r)||r<=0)throw new m(`invalid_argument`,`${e} must be a positive finite number (got ${String(r)})`);let r=Math.floor(e.length*n/t);if(r>oe)throw new m(`invalid_argument`,`resampled output would be ${r} samples; the limit is ${oe}`);if(t===n)return e.slice();let i=new Float32Array(r),a=t/n,o=a>1?ce/a:1,s=se/o,c=e.length-1;for(let t=0;t<r;t+=1){let n=t*a,r=Math.max(0,Math.ceil(n-s)),l=Math.min(c,Math.floor(n+s)),u=0,d=0;for(let t=r;t<=l;t+=1){let r=t-n,i=.5+.5*Math.cos(Math.PI*r/s),a=o*le(o*r)*i;u+=a*e[t],d+=a}i[t]=d===0?0:u/d}return i}var k={silenceMs:800,minSpeechMs:150,preRollMs:300,maxUtteranceMs:3e4,sensitivity:.5,calibrateMs:300},de=.0015,fe=.003,pe=.006,me=.2,he=.02,ge=2e3,_e=250;function ve(e,t,n){return Math.min(n,Math.max(t,e))}function ye(e={}){let t=(e,t,n)=>typeof e==`number`&&Number.isFinite(e)?Math.max(n,e):t;return{silenceMs:t(e.silenceMs,k.silenceMs,20),minSpeechMs:t(e.minSpeechMs,k.minSpeechMs,0),preRollMs:t(e.preRollMs,k.preRollMs,0),maxUtteranceMs:t(e.maxUtteranceMs,k.maxUtteranceMs,1e3),sensitivity:ve(typeof e.sensitivity==`number`&&Number.isFinite(e.sensitivity)?e.sensitivity:k.sensitivity,0,1),calibrateMs:t(e.calibrateMs,k.calibrateMs,0)}}function be(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++){let t=e[r];n+=t*t}return Math.sqrt(n/t)}function xe(e={}){let t=ye(e),n=6-4*t.sensitivity,r=.02-.015*t.sensitivity,i=fe,a=0,o=[],s=!1,c=0,l=0,u=0,d=()=>Math.max(i*n,r),f=()=>Math.max(d()*.6,i*1.5),p=()=>{s=!1,c=0,l=0,u=0};return{get speaking(){return s},get noiseFloor(){return i},get threshold(){return d()},push(e,n=20){let r=[],m=Number.isFinite(e)?Math.max(0,e):0,h=ve(m/(d()*3),0,1),g=a<t.calibrateMs;if(g&&(a+=n,!s)){o.push(m);let e=[...o].sort((e,t)=>e-t);i=ve(e[Math.min(e.length-1,Math.floor(e.length*me))]??fe,de,pe)}if(!s){if(m>d())c+=n,c>=t.minSpeechMs&&(s=!0,l=0,u=c,r.push({type:`start`,leadMs:t.preRollMs+c}),c=0);else if(g)c=0;else{c=0;let e=n/ge*(m<i?4:1);i=ve(i+(m-i)*Math.min(1,e),de,he)}return{events:r,level:h,speaking:s}}return u+=n,m>f()?l=0:l+=n,l>=t.silenceMs?(r.push({type:`end`,reason:`silence`,trailingSilenceMs:l}),p()):u>=t.maxUtteranceMs&&(r.push({type:`split`}),u=0,l=0),{events:r,level:h,speaking:s}},flush(){let e=[];return s&&e.push({type:`end`,reason:`flush`,trailingSilenceMs:l}),p(),e}}}function Se(e){let t=ye(e),n=xe(t),r=Math.max(1,Math.round(e.sampleRate*20/1e3)),i=r/e.sampleRate*1e3,a=Math.ceil((t.preRollMs+t.minSpeechMs)/i)+1,o=[],s=new Float32Array,c=null,l=!1,u=(t,n,r)=>{let a=Math.max(0,Math.floor((r-_e)/i)),o=t.slice(0,Math.max(1,t.length-a)),s=0;for(let e of o)s+=e.length;let c=new Float32Array(s),l=0;for(let e of o)c.set(e,l),l+=e.length;e.onUtterance({pcm:c,sampleRate:e.sampleRate,durationMs:s/e.sampleRate*1e3,reason:n})},d=t=>{t!==l&&(l=t,e.onSpeaking?.(t))},f=s=>{let l=n.push(be(s),i);e.onLevel?.(l.level),o.push(s),o.length>a&&o.shift(),c&&c.push(s);for(let e of l.events)if(e.type===`start`){c=[...o];let e=Math.ceil(t.preRollMs/i),n=Math.max(0,o.length-Math.ceil(t.minSpeechMs/i));for(let t=n;t<e;t++)c.unshift(new Float32Array(r))}else if(e.type===`end`){let t=c??[];c=null,o.length=0,t.length>0&&u(t,e.reason,e.trailingSilenceMs)}else if(e.type===`split`){let e=c??[];c=[],e.length>0&&u(e,`max`,0)}d(n.speaking)};return{get speaking(){return n.speaking},segmenter:n,push(e){let t=e;s.length>0&&(t=new Float32Array(s.length+e.length),t.set(s,0),t.set(e,s.length));let n=0;for(;n+r<=t.length;)f(t.slice(n,n+r)),n+=r;s=t.slice(n)},flush(){let t=n.flush();for(let e of t)e.type===`end`&&c&&c.length>0&&u(c,`flush`,e.trailingSilenceMs);c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)},discard(){n.flush(),c=null,o.length=0,s=new Float32Array,d(!1),e.onLevel?.(0)}}}var Ce=44,we=4294967295,Te=1;function Ee(e){let t=new Int16Array(e.length);for(let n=0;n<e.length;n+=1){let r=e[n];Number.isNaN(r)||(t[n]=Math.min(32767,Math.round((r>1?1:r<-1?-1:r)*32768)))}return t}function De(e,t){if(!Number.isInteger(e)||e<1||e*2>we)throw new m(`invalid_argument`,`${t} must be a positive integer sample rate (got ${String(e)})`)}function Oe(e,t,n){for(let r=0;r<n.length;r+=1)e.setUint8(t+r,n.charCodeAt(r))}function ke(e,t){De(t,`sampleRate`);let n=e.length*2;if(n+Ce-8>we)throw new m(`invalid_argument`,`too many samples for a single WAV (4 GiB limit)`);let r=e instanceof Int16Array?e:Ee(e),i=new Uint8Array(Ce+n),a=new DataView(i.buffer);Oe(a,0,`RIFF`),a.setUint32(4,36+n,!0),Oe(a,8,`WAVE`),Oe(a,12,`fmt `),a.setUint32(16,16,!0),a.setUint16(20,Te,!0),a.setUint16(22,1,!0),a.setUint32(24,t,!0),a.setUint32(28,t*2,!0),a.setUint16(32,2,!0),a.setUint16(34,16,!0),Oe(a,36,`data`),a.setUint32(40,n,!0);for(let e=0;e<r.length;e+=1)a.setInt16(Ce+e*2,r[e],!0);return i}var Ae=`hv-pcm-tap`,je=`
|
|
3
3
|
class HvPcmTap extends AudioWorkletProcessor {
|
|
4
4
|
process(inputs) {
|
|
5
5
|
const channels = inputs[0];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D7hhQvDO.js","./C7zBd-pD.js","./CA-A9Ngs.js","./uBIymjUX.js","./BBmlFBgo.js","./COiEfhsA.js","./C5qDLfXy.js","./GdHEbDDH.js","./gMSmS-_y.js","./DG3qFFTE.js","./xihTtKlq.js","./YUSKx8_q.js","./DK8Blf1Y.js","../assets/currency-metadata.ksbBA8-C.css","./M-CuJzQN.js","../assets/SegmentedControl.DMqHG5fn.css","../assets/forms.DXOeP4wZ.css","./Dbjm4OuC.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{n as e}from"./COiEfhsA.js";import{t}from"./uBIymjUX.js";import{a as n,c as r,l as i,o as a,s as o}from"./
|
|
2
|
+
import{n as e}from"./COiEfhsA.js";import{t}from"./uBIymjUX.js";import{a as n,c as r,l as i,o as a,s as o}from"./DsY7g8iJ.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./C7zBd-pD.js";import{t as m}from"./D7hhQvDO.js";import"./GdHEbDDH.js";import{I as h}from"./BV_A2GBw.js";function g(e){return!e.type||e.type===`webllm`}function _(e){return e.type===`transformers-llm`}async function v(e={}){if(g(e)){let{WebLLMAdapter:n}=await t(async()=>{let{WebLLMAdapter:e}=await import(`./D7hhQvDO.js`);return{WebLLMAdapter:e}},__vite__mapDeps([0,1,2,3]),import.meta.url);return new n(e)}throw _(e)?new f(`transformers-llm`,[`webllm`]):new f(String(e.type),[`webllm`,`transformers-llm`])}function y(e){return!e.type||e.type===`browser-speech`}function b(e){return e.type===`whisper-local`||e.type===`whisper-wasm`||e.type===`moonshine`}function x(e){return e.type===`whisper-cpp`}async function S(e={}){if(y(e)){let{BrowserSpeechSTTAdapter:n}=await t(async()=>{let{BrowserSpeechSTTAdapter:e}=await import(`./BBmlFBgo.js`).then(e=>e.t);return{BrowserSpeechSTTAdapter:e}},__vite__mapDeps([4,5,1]),import.meta.url);return new n(e)}if(x(e)){let{WhisperCppSTTAdapter:n}=await t(async()=>{let{WhisperCppSTTAdapter:e}=await import(`./C5qDLfXy.js`).then(e=>e.t);return{WhisperCppSTTAdapter:e}},__vite__mapDeps([6,5,1,2,3]),import.meta.url);return new n(e)}if(b(e)){let{LocalSpeechSTTAdapter:n}=await t(async()=>{let{LocalSpeechSTTAdapter:e}=await import(`./GdHEbDDH.js`).then(e=>e.t);return{LocalSpeechSTTAdapter:e}},__vite__mapDeps([7,5,8,9,10,11,12,13,14,15,16,1,2,3]),import.meta.url);return new n(e)}throw new f(String(e.type),[`browser-speech`,`whisper-cpp`,`whisper-local`,`whisper-wasm`,`moonshine`])}function C(e={type:`browser-speech`}){let t=null;return()=>(t??=(async()=>{let t=await S(e);return t.getCapabilities().requiresDownload||await t.ensureInitialized(),t})().catch(e=>{throw t=null,e}),t)}function w(e){return!e.type||e.type===`browser-synthesis`}function T(e){return e.type===`transformers`}async function E(e={}){if(w(e)){let{BrowserSynthesisTTSAdapter:n}=await t(async()=>{let{BrowserSynthesisTTSAdapter:e}=await import(`./Dbjm4OuC.js`);return{BrowserSynthesisTTSAdapter:e}},__vite__mapDeps([17,1]),import.meta.url);return new n(e)}throw T(e)?new f(`transformers`,[`browser-synthesis`]):new f(String(e.type),[`browser-synthesis`])}var D=e({BrowserAIError:()=>p,CapabilityNotAvailableError:()=>l,InitializationError:()=>d,ModelLoadError:()=>c,ModelNotDownloadedError:()=>s,PermissionDeniedError:()=>u,RECOMMENDED_MODELS:()=>m,UnsupportedAdapterError:()=>f,WHISPER_LOCAL_DEFAULT_MODEL:()=>WHISPER_LOCAL_DEFAULT_MODEL,WHISPER_LOCAL_DEFAULT_SIZE_BYTES:()=>WHISPER_LOCAL_DEFAULT_SIZE_BYTES,canEnableSmrtMode:()=>n,detectCapabilities:()=>a,getLLM:()=>v,getSTT:()=>S,getTTS:()=>E,hasLLM:()=>o,hasSTT:()=>r,hasTTS:()=>i,probeBrowserSpeech:()=>h});export{C as n,D as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,B as t,Dt as n,Ft as r,G as i,H as a,L as o,Ot as s,U as c,W as l,ft as u,ht as d,mt as f,pt as p,st as m,v as h}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{t as g}from"./
|
|
1
|
+
import{$ as e,B as t,Dt as n,Ft as r,G as i,H as a,L as o,Ot as s,U as c,W as l,ft as u,ht as d,mt as f,pt as p,st as m,v as h}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{t as g}from"./rkUL-DlL.js";import{et as _}from"./U6_OBRq_.js";import{t as v}from"./CF503c7E.js";var y=i(`<li><a class="svelte-ra5apm"> </a></li> <li><a class="svelte-ra5apm"> </a></li>`,1),b=i(`<details class="menu svelte-ra5apm"><summary class="svelte-ra5apm"><!></summary> <ul class="svelte-ra5apm"></ul></details>`);function x(i,x){s(x,!0);var S=l(),C=p(S),w=e=>{v(e,{get section(){return x.groups[0].id},get label(){return x.groups[0].label},compact:!0})},T=t=>{var n=b(),i=u(n),s=u(i);_(s,{path:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,size:16}),r(i);var l=d(i,2);o(l,21,()=>x.groups,e=>e.id,(t,n)=>{var i=y(),o=p(i),s=u(o),l=f(s);r(o);var _=d(o,2),v=u(_),b=f(v);r(_),m((t,r)=>{h(s,`href`,t),a(l,`${e(n).label??``} options`),h(v,`href`,r),a(b,`${e(n).label??``} help`)},[()=>g(`/recipes/${e(n).id}/`),()=>g(`/recipes/${e(n).id}/help/`)]),c(t,i)}),r(l),r(n),m(()=>{h(i,`title`,`${x.label} options and help`),h(i,`aria-label`,`${x.label} options and help`)}),c(t,n)};t(C,e=>{x.groups.length===1?e(w):x.groups.length>1&&e(T,1)}),c(i,S),n()}export{x as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as e,M as t,w as n}from"./
|
|
1
|
+
import{D as e,M as t,w as n}from"./rkUL-DlL.js";import{r}from"./2l76O8yg.js";var i=`@happyvertical/smrt-assets:Asset`,a=`@happyvertical/smrt-products:ProductAsset`,o=`assets.library`;function s(e,t,n){let r=new Map(t.map(e=>[e.id,e]));return n.filter(t=>t.productId===e).flatMap(e=>{let t=r.get(String(e.assetId)),n=t?.sourceUri;return!t||typeof n!=`string`?[]:[{id:t.id,name:String(t.name??`Product image`),sourceUri:n,mimeType:String(t.mimeType??`image/*`),description:String(t.description??``),sortOrder:Number(e.sortOrder??0)}]}).sort((e,t)=>e.sortOrder-t.sortOrder||e.name.localeCompare(t.name))}function c(e,t,n,o){return[{op:`save`,as:`asset`,model:r(i),values:{name:t.name||`Product image`,sourceUri:n,mimeType:t.type||`image/*`,description:`Image selected for this product in the browser demo.`,sourceType:`browser-demo`}},{op:`save`,model:r(a),values:{productId:e,assetId:{ref:`asset`},relationship:`gallery`,sortOrder:o}}]}function l(e,t){return t.filter(t=>t.productId===e).flatMap(e=>[{op:`delete`,model:r(a),id:e.id},{op:`delete`,model:r(i),id:String(e.assetId)}])}var u=`@happyvertical/smrt-products:Product`,d=`@happyvertical/smrt-products:ProductVariant`,f=`@happyvertical/smrt-products:Sku`,p=`@happyvertical/smrt-inventory:StockLevel`,m=`@happyvertical/smrt-profiles:ProfileType`,h=`@happyvertical/smrt-inventory:InventoryLocation`;function g(r){return{[h]:{from:[],make:()=>(t().locations??[]).map((e,t)=>({id:n(`${h}:sample:${t}`),...e,placeId:``,active:!0}))},[f]:{from:[r(u)],make:([e])=>(e??[]).map((e,t)=>({id:n(`${f}:sample:${e.id}`),productId:e.id,code:`SKU-${String(t+1).padStart(3,`0`)}`,barcode:``,name:String(e.name??``),attributes:``,parentSkuId:``,active:!0}))},[p]:{from:[r(f),r(h)],make:([r,i])=>{let a=t(),o=new Map(a.products.map(e=>[e.name,e.at]));return(r??[]).flatMap(t=>(i??[]).flatMap((r,i)=>{let a=e(`${t.id}:${r.id}`),s=o.get(String(t.name));if(s!==void 0){if(s!==i)return[]}else if(i>0&&a%3==0)return[];let c=10+a%4*5;return[{id:n(`${p}:sample:${t.id}:${r.id}`),skuId:t.id,locationId:r.id,state:`available`,qty:a%5==0?c-3:c+a%40,reorderPoint:c,reorderQuantity:c*3}]}))}}}}function _(e,t){let n=new Map(e.map(e=>[e.id,e.productId])),r=new Map;for(let e of t){let t=n.get(String(e.skuId));typeof t==`string`&&r.set(t,(r.get(t)??0)+Number(e.qty??0))}return r}function v(e,t,n,r=[]){return[...l(e,r),...t.flatMap(e=>[{op:`delete`,model:n(p),match:{skuId:e.id}},{op:`delete`,model:n(f),id:e.id}]),{op:`delete`,model:n(d),match:{productId:e}},{op:`delete`,model:n(u),id:e}]}export{d as a,g as c,a as d,c as f,p as i,i as l,m as n,v as o,s as p,f as r,_ as s,u as t,o as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,B as t,Ct as n,D as r,Dt as i,E as a,Ft as o,G as s,H as c,J as l,L as u,Ot as d,Pt as f,U as p,W as m,X as h,Y as g,a as _,b as v,bt as y,ct as b,ft as x,ht as S,mt as C,pt as w,st as T,v as E,vt as D}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{n as O}from"./DK8Blf1Y.js";import{t as k}from"./M-CuJzQN.js";import{i as A,v as j,y as M}from"./gMSmS-_y.js";import{C as N,D as P,E as F,O as I,T as L,_ as R,i as z,k as B,n as V,r as ee,t as H,v as U,w as W}from"./
|
|
1
|
+
import{$ as e,B as t,Ct as n,D as r,Dt as i,E as a,Ft as o,G as s,H as c,J as l,L as u,Ot as d,Pt as f,U as p,W as m,X as h,Y as g,a as _,b as v,bt as y,ct as b,ft as x,ht as S,mt as C,pt as w,st as T,v as E,vt as D}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{n as O}from"./DK8Blf1Y.js";import{t as k}from"./M-CuJzQN.js";import{i as A,v as j,y as M}from"./gMSmS-_y.js";import{C as N,D as P,E as F,O as I,T as L,_ as R,i as z,k as B,n as V,r as ee,t as H,v as U,w as W}from"./BV_A2GBw.js";import{et as G}from"./U6_OBRq_.js";var te=s(`<p class="notice svelte-19u3zp7" role="status"> </p>`),K=s(`<option> </option>`),ne=s(`<label class="svelte-19u3zp7">Assistant mode <!></label> <p class="meta svelte-19u3zp7">Changing modes happens only when you choose it here.</p>`,1),re=s(`<p class="status svelte-19u3zp7">Inference off</p> <p class="meta svelte-19u3zp7">Build, edit, validate and export your cookbook without a model. No
|
|
2
2
|
provider is contacted and no browser model is downloaded.</p>`,1),ie=s(`<p class="status svelte-19u3zp7">Server</p> <p class="meta svelte-19u3zp7">This site's server answers the assistant. What you type, and a short
|
|
3
3
|
summary of your plan, is sent to it. Nothing is downloaded.</p>`,1),ae=s(`<p class="meta svelte-19u3zp7">A key is saved for another address, so it is not used here. Paste it again for this address.</p>`),oe=s(`<div class="field svelte-19u3zp7"><!> <!></div> <!> <p class="meta svelte-19u3zp7"> <button class="link svelte-19u3zp7" type="button">Forget the key</button></p>`,1),se=s(`<p class="meta svelte-19u3zp7"><strong>Browser access.</strong> </p>`),ce=s(`<p> </p>`),le=s(`<p class="status svelte-19u3zp7" role="status"> </p>`),ue=s(`<label class="svelte-19u3zp7">Model provider <!></label> <div class="field svelte-19u3zp7"><!> <!></div> <div class="field svelte-19u3zp7"><!> <!></div> <!> <!> <p class="meta svelte-19u3zp7">What you type, and a short summary of your plan, is sent to this
|
|
4
4
|
endpoint.</p> <!> <!> <div class="actions svelte-19u3zp7"><!> <!></div>`,1),de=s(`<p role="status" class="svelte-19u3zp7">This browser has no WebGPU, which the model needs. Try a recent
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Ct as t,Dt as n,E as r,Ft as i,G as a,Ot as o,U as s,a as c,ft as l,ht as u,st as d,v as f}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{t as p}from"./
|
|
1
|
+
import{$ as e,Ct as t,Dt as n,E as r,Ft as i,G as a,Ot as o,U as s,a as c,ft as l,ht as u,st as d,v as f}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{t as p}from"./rkUL-DlL.js";import{et as m}from"./U6_OBRq_.js";var h=a(`<div><a class="svelte-1fbsd8p"><!></a> <a class="svelte-1fbsd8p"><!></a></div>`);function g(a,g){o(g,!0);let _=c(g,`compact`,3,!1),v=t(()=>`${p(`/recipes/${g.section}/help/`)}${g.helpAnchor?`#${g.helpAnchor}`:``}`);var y=h();let b;var x=l(y),S=l(x);{let n=t(()=>_()?16:22);m(S,{path:`M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z`,get size(){return e(n)}})}i(x);var C=u(x,2),w=l(C);{let n=t(()=>_()?16:22);m(w,{path:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z`,get size(){return e(n)}})}i(C),i(y),d(t=>{b=r(y,1,`icons svelte-1fbsd8p`,null,b,{compact:_()}),f(x,`href`,e(v)),f(x,`title`,`${g.label} help`),f(x,`aria-label`,`${g.label} help`),f(x,`aria-current`,g.current===`help`?`page`:void 0),f(C,`href`,t),f(C,`title`,`${g.label} options`),f(C,`aria-label`,`${g.label} options`),f(C,`aria-current`,g.current===`options`?`page`:void 0)},[()=>p(`/recipes/${g.section}/`)]),s(a,y),n()}export{g as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DG3qFFTE.js";import{s as e}from"./
|
|
1
|
+
import"./DG3qFFTE.js";import{s as e}from"./g7M7feZg.js";var t={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,bt as t,vt as n}from"./DG3qFFTE.js";import{F as r,N as i,P as a,at as o,et as s,it as c,lt as l,w as u}from"./
|
|
1
|
+
import{$ as e,bt as t,vt as n}from"./DG3qFFTE.js";import{F as r,N as i,P as a,at as o,et as s,it as c,lt as l,w as u}from"./rkUL-DlL.js";import{h as ee,m as d}from"./DsY7g8iJ.js";import{N as f,c as p}from"./BV_A2GBw.js";import{a as m,i as h,n as g,o as _,r as te,s as v}from"./EZsakmZX.js";import{B as y,N as b,R as x,U as S,b as C,c as w,j as T,t as E,v as D,x as O}from"./U6_OBRq_.js";import{n as k}from"./M81UeXT1.js";import{r as A,t as j}from"./2l76O8yg.js";import{a as M,c as N,d as P,l as F,n as I}from"./Bz0ybtg3.js";function ne(e){return e.recipes.length===0&&e.features.length===0&&e.policies.length===0&&Object.keys(e.exposure??{}).length===0&&e.theme===void 0&&ee(e.layout)}function L(e,t,n){return t(n?w(structuredClone(e.document),n):e.document)}function R(e){return!ne(e.snapshot())}function z(e,t,n){let i=L(e,_,n);if(i.ok){let n=i.cookbook.theme?void 0:t.theme;t.replace(i.cookbook),n&&(t.theme=n),r(e.id)}return i}function B(e,t){return e.document.recipes.every(e=>t.recipes.includes(e))&&e.document.features.every(e=>t.features.includes(e))}function V(e){let t=e.recipes.flatMap(e=>{let t=O.get(e);return t?[t]:[]}),n=x(t).map(e=>{let t=new Set,n=[];for(let r of e.recipes)for(let e of D(r)){let r=y(e.packageId,e.model.name,e.key);t.has(r)||(t.add(r),n.push({id:r,href:`#`,label:e.label,icon:e.icon,description:e.description}))}return{id:`section:${e.id}`,heading:e.label,items:n}}).filter(e=>e.items.length>0),r=b(e.features).map(e=>({id:e.id,href:`#`,label:e.label,icon:e.icon,description:e.description}));return r.length&&n.push({id:`section:${T.id}`,heading:T.label,items:r}),n}function H(e){let t=e.layout;return d([],V(e),void 0,t).groups.map(e=>({id:e.id??String(e.heading),label:e.heading??``,entries:e.items.map(e=>({id:e.id??e.href,label:t?.items?.[e.id??e.href]?.label?.trim()||e.label}))}))}var U={live:`Live`,mock:`Mock`,sample:`Sample`,server:`Server`},W={live:`Runs for real in your browser.`,mock:`Runs in your browser, but a provider is faked.`,sample:`Shows sample data only; it cannot reach what it needs.`,server:`Needs a server, which this browser-only demo does not have.`},G={live:`success`,mock:`info`,sample:`warning`,server:`default`};function K(e){return e.effectiveDemo??e.demo}function q(e){if(e)return{mode:e.mode,label:U[e.mode],meaning:W[e.mode],variant:G[e.mode],reasons:e.reasons,mocked:e.mocked??[]}}function J(e){if(!e)return;if(e.status===`browser-safe`)return`Its package builds for a browser.`;let t=[`Its package does not build for a browser yet`];return e.reason&&t.push(`(${e.reason})`),e.issues?.length&&t.push(`and is tracked in ${e.issues.join(`, `)}`),`${t.join(` `)}.`}var Y=`@happyvertical/smrt-commerce:`,X=`${Y}TaxCode`,Z=`${Y}TaxComponent`,Q=`${Y}TaxSettings`,re=`${Y}DocumentTax`;function $(){let e=a()??.05;return{codes:c(e),fallback:s(e)}}function ie(e){try{let t=e?.getItem(h);if(!t)return;let n=v(t,{dropUnknownRecipes:!0});n.ok&&te(n.cookbook)}catch{}}function ae(){return ie(m()),j({storage:m(),defaults:e=>E.apply(e).background,empty:[M,I,re],samples:{[X]:{from:[],make:()=>$().codes.map(e=>({id:e.id,code:e.code,name:e.name,kind:e.kind,appliesTo:e.appliesTo,active:e.active,componentsJson:JSON.stringify(e.components.map(e=>({taxComponentId:e.id,compound:!1})))}))},[Z]:{from:[],make:()=>o($().codes).map(e=>({id:e.id,name:e.name,percent:e.percent,liabilityAccountId:null,recoverable:e.recoverable,active:!0}))},[Q]:{from:[],make:()=>{let{fallback:e}=$(),t=i();return[{id:u(`${Q}:sample`),defaultSalesTaxCodeId:e.id,defaultPurchaseTaxCodeId:e.id,defaultLineAmountType:t.pricesIncludeTax?`inclusive`:`exclusive`,taxRoundingScope:t.taxRounding}]}},...N(A),[F]:{from:[A(`@happyvertical/smrt-products:Product`)],make:([e])=>(e??[]).map((e,t)=>({id:u(`${F}:sample:${e.id}`),name:`${String(e.name??`Product`)} image`,sourceUri:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240"><rect width="240" height="240" fill="hsl(${t*47%360} 40% 82%)"/><circle cx="120" cy="94" r="46" fill="hsl(${(t*47+30)%360} 35% 58%)"/><path d="M44 214c20-55 132-55 152 0" fill="hsl(${(t*47+10)%360} 30% 46%)"/><text x="120" y="224" text-anchor="middle" font-family="sans-serif" font-size="14" fill="white">${String(e.name??``).replace(/[<&>]/g,``)}</text></svg>`)}`,mimeType:`image/svg+xml`,description:`Sample image for ${String(e.name??`this product`)}.`,sourceType:`browser-demo`}))},[P]:{from:[A(`@happyvertical/smrt-products:Product`),A(F)],make:([e,t])=>(e??[]).flatMap((e,n)=>{let r=t?.[n];return r?[{id:u(`${P}:sample:${e.id}`),productId:e.id,assetId:r.id,relationship:`gallery`,sortOrder:0}]:[]})}},children:{models:l.packages.flatMap(e=>e.models),links:e=>S(l,C,e)}})}var oe=new class{#e=t(void 0);get endpoint(){return e(this.#e)}set endpoint(e){n(this.#e,e,!0)}#t=t(!1);get tokenInConfig(){return e(this.#t)}set tokenInConfig(e){n(this.#t,e,!0)}#n=t(void 0);get token(){return e(this.#n)}set token(e){n(this.#n,e,!0)}#r=t(`idle`);get status(){return e(this.#r)}set status(e){n(this.#r,e,!0)}#i=t(void 0);get outcome(){return e(this.#i)}set outcome(e){n(this.#i,e,!0)}get config(){return this.endpoint&&this.token&&!this.tokenInConfig?{endpoint:this.endpoint,token:this.token}:void 0}get needsLink(){return!!this.endpoint&&!this.token&&!this.tokenInConfig}configure(e,t){this.endpoint=e?.endpoint,this.tokenInConfig=e?.tokenInConfig===!0,this.token=e?t:void 0,this.status=`idle`,this.outcome=void 0}async send(e,t){let n=this.config;if(!n||this.status===`sending`)return;this.status=`sending`,this.outcome=void 0;let r=await p(n,e,t);this.outcome=r,this.status=r.ok?`sent`:`failed`}},se=`Planner`;function ce(e,t,n=k,r=se){let i=e.name?.trim();if(i)return i;let a=t?n.find(e=>e.id===t):void 0;return a&&B(a,e)?a.name:r}function le(e){return ce(g.snapshot(),f.active,void 0,e)}export{q as a,H as c,R as d,J as i,z as l,oe as n,K as o,ae as r,V as s,le as t,B as u};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$ as e,B as t,Ct as n,Dt as r,Ft as i,G as a,H as o,L as s,Ot as c,Pt as l,U as u,ft as d,ht as f,mt as p,pt as m,st as h}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{yt as g}from"./
|
|
1
|
+
import{$ as e,B as t,Ct as n,Dt as r,Ft as i,G as a,H as o,L as s,Ot as c,Pt as l,U as u,ft as d,ht as f,mt as p,pt as m,st as h}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{yt as g}from"./rkUL-DlL.js";var _=a(`<li><code class="svelte-kxkftj"><b> </b> </code></li>`),v=a(`<li class="none svelte-kxkftj">None</li>`),y=a(`<li><code class="svelte-kxkftj"> </code></li>`),b=a(`<mark class="svelte-kxkftj">AI</mark>`),x=a(`<li><code class="svelte-kxkftj"> </code> <!></li>`),S=a(`<article class="svelte-kxkftj"><h3 class="svelte-kxkftj"> </h3> <div class="grid svelte-kxkftj"><div><h4 class="svelte-kxkftj">REST routes <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">MCP tools <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">CLI commands <span class="svelte-kxkftj"> </span></h4> <ul class="svelte-kxkftj"></ul></div> <div><h4 class="svelte-kxkftj">Methods <span class="svelte-kxkftj"> </span> AI-callable</h4> <ul class="svelte-kxkftj"></ul></div></div></article>`),C=a(`<p class="svelte-kxkftj">This app exposes no generated REST, MCP or CLI surface.</p>`),w=a(`<p class="lede svelte-kxkftj">For connecting other software or an AI assistant to this app. All of it is
|
|
2
2
|
generated by s-m-r-t from the model; none of it was written by hand.</p> <!>`,1),T=a(`<section class="panel svelte-kxkftj" aria-label="Connect other tools"><!></section>`);function E(a,E){c(E,!0);let D=n(()=>E.models.filter(e=>e.exposed));var O=T(),k=d(O);g(k,{title:`Connect other tools`,children:(n,r)=>{var a=w(),c=f(m(a),2);s(c,17,()=>e(D),e=>e.id,(n,r)=>{var a=S(),c=d(a),m=p(c,!0),g=f(c,2),C=d(g),w=d(C),T=f(d(w)),E=p(T,!0);i(w);var D=f(w,2);s(D,21,()=>e(r).rest,e=>e.method+e.path,(t,n)=>{var r=_(),a=d(r),s=d(a),c=p(s,!0),l=f(s);i(a),i(r),h(()=>{o(c,e(n).method),o(l,` /api${e(n).path??``}`)}),u(t,r)},e=>{var t=v();u(e,t)}),i(D),i(C);var O=f(C,2),k=d(O),A=f(d(k)),j=p(A,!0);i(k);var M=f(k,2);s(M,21,()=>e(r).mcp,e=>e.name,(t,n)=>{var r=y(),a=d(r),s=p(a,!0);i(r),h(()=>o(s,e(n).name)),u(t,r)},e=>{var t=v();u(e,t)}),i(M),i(O);var N=f(O,2),P=d(N),F=f(d(P)),I=p(F,!0);i(P);var L=f(P,2);s(L,21,()=>e(r).cli,e=>e.name,(t,n)=>{var r=y(),a=d(r),s=p(a,!0);i(r),h(()=>o(s,e(n).name)),u(t,r)},e=>{var t=v();u(e,t)}),i(L),i(N);var R=f(N,2),z=d(R),B=f(d(z)),V=p(B,!0);l(),i(z);var H=f(z,2);s(H,21,()=>e(r).methods,e=>e.name,(n,r)=>{var a=x(),s=d(a),c=p(s),l=f(s,2),m=e=>{var t=b();u(e,t)};t(l,t=>{e(r).aiCallable&&t(m)}),i(a),h(t=>o(c,`${e(r).name??``}(${t??``})`),[()=>e(r).parameters.join(`, `)]),u(n,a)},e=>{var t=v();u(e,t)}),i(H),i(R),i(g),i(a),h(t=>{o(m,e(r).name),o(E,e(r).rest.length),o(j,e(r).mcp.length),o(I,e(r).cli.length),o(V,t)},[()=>e(r).methods.filter(e=>e.aiCallable).length]),u(n,a)},e=>{var t=C();u(e,t)}),u(n,a)},$$slots:{default:!0}}),i(O),u(a,O),r()}export{E as t};
|