@happyvertical/smrt-planner 0.62.5 → 0.62.7

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.
Files changed (534) hide show
  1. package/app/404.html +18 -18
  2. package/app/_app/immutable/chunks/{DRZTI5Jr.js → BJXFQUWS.js} +1 -1
  3. package/app/_app/immutable/chunks/{CNBdo__C.js → C0uBoX6O.js} +1 -1
  4. package/app/_app/immutable/chunks/C1Iz6fKl.js +1 -0
  5. package/app/_app/immutable/chunks/{Dl8hOaIo.js → C1lWUkmw.js} +1 -1
  6. package/app/_app/immutable/chunks/{BizV6cxC.js → C54zEg9j.js} +1 -1
  7. package/app/_app/immutable/chunks/{CtG_Lwvh.js → CGoS42uk.js} +1 -1
  8. package/app/_app/immutable/chunks/{CTRau-kw.js → Cag8z3Bk.js} +1 -1
  9. package/app/_app/immutable/chunks/{8hc9FYzo.js → CflPDRW7.js} +1 -1
  10. package/app/_app/immutable/chunks/{DKGzf415.js → Cic-EKa3.js} +1 -1
  11. package/app/_app/immutable/chunks/{Tb0fgM0E.js → CknIRaG6.js} +1 -1
  12. package/app/_app/immutable/chunks/{VBANaoR3.js → CmN1AVYN.js} +2 -2
  13. package/app/_app/immutable/chunks/{DqLclqJB.js → Czh3aQ5V.js} +1 -1
  14. package/app/_app/immutable/chunks/DBy5xvqi.js +1 -0
  15. package/app/_app/immutable/chunks/{DiysZfH7.js → DFifqxsy.js} +1 -1
  16. package/app/_app/immutable/chunks/{DMtbj61v.js → DKzYSjzz.js} +1 -1
  17. package/app/_app/immutable/chunks/{DPl_ov_p.js → DOQEiC7F.js} +1 -1
  18. package/app/_app/immutable/chunks/{B9ucQYIA.js → DTTVtmXt.js} +1 -1
  19. package/app/_app/immutable/chunks/{Dnf-fyR5.js → DUPMjaew.js} +1 -1
  20. package/app/_app/immutable/chunks/{CxjVOyG6.js → De-mwJaE.js} +1 -1
  21. package/app/_app/immutable/chunks/{CbOFRn1N.js → Dr57k01a.js} +1 -1
  22. package/app/_app/immutable/chunks/{DSeAvFCF.js → JuGMGtQS.js} +1 -1
  23. package/app/_app/immutable/chunks/{P_haQ8j4.js → OKkAavcy.js} +1 -1
  24. package/app/_app/immutable/chunks/{4mxo1tpy.js → Uj51T50h.js} +1 -1
  25. package/app/_app/immutable/chunks/{DnqxJ6hq.js → cjhrV47x.js} +1 -1
  26. package/app/_app/immutable/chunks/{DkyrxFMJ.js → gPMGlea7.js} +1 -1
  27. package/app/_app/immutable/chunks/{IVfnZdeW.js → huXFmzl6.js} +33 -33
  28. package/app/_app/immutable/chunks/{DcORu4n4.js → pYcuO_tp.js} +1 -1
  29. package/app/_app/immutable/chunks/{DitEeA6X.js → vm4ecy_C.js} +3 -3
  30. package/app/_app/immutable/chunks/{D6ZRo7UR.js → xl2awxh9.js} +1 -1
  31. package/app/_app/immutable/entry/{app.4N6G-eXw.js → app.CjlEymjI.js} +2 -2
  32. package/app/_app/immutable/entry/start.BYVnQslB.js +1 -0
  33. package/app/_app/immutable/nodes/{0.Cs1YBu1i.js → 0.oCNE0dwJ.js} +1 -1
  34. package/app/_app/immutable/nodes/{1.CdqDj38S.js → 1.g7fKkGL0.js} +1 -1
  35. package/app/_app/immutable/nodes/{10.cJaEWiya.js → 10.3PMpBCPi.js} +1 -1
  36. package/app/_app/immutable/nodes/{11.BRSIknzS.js → 11.b0s04qR-.js} +1 -1
  37. package/app/_app/immutable/nodes/{12.CC8lX_rP.js → 12.BuWtAWsc.js} +1 -1
  38. package/app/_app/immutable/nodes/{13.BeILpUVk.js → 13.O-p4fefA.js} +1 -1
  39. package/app/_app/immutable/nodes/{14.UJ0p0KAl.js → 14.DkpphKCR.js} +1 -1
  40. package/app/_app/immutable/nodes/{2.r9chMBT0.js → 2.CyUhIFHf.js} +3 -3
  41. package/app/_app/immutable/nodes/{3.Cf7RgPAE.js → 3.Kqd3IN3G.js} +1 -1
  42. package/app/_app/immutable/nodes/{4.BJp4hi8y.js → 4.DwU_dxmy.js} +1 -1
  43. package/app/_app/immutable/nodes/{5.BHhmEdIF.js → 5.Dx1cpXXo.js} +1 -1
  44. package/app/_app/immutable/nodes/{6.CHTH4fCD.js → 6.CRH1UjON.js} +1 -1
  45. package/app/_app/immutable/nodes/{7.CBjlj4lR.js → 7.BZ0Zl9uX.js} +1 -1
  46. package/app/_app/immutable/nodes/{8.XYqxqtaE.js → 8.Bzn67eg8.js} +1 -1
  47. package/app/_app/immutable/nodes/{9.B5xmGIfr.js → 9.CeU7gkc-.js} +1 -1
  48. package/app/_app/version.json +1 -1
  49. package/app/advanced-styles/index.html +20 -20
  50. package/app/ai/index.html +24 -24
  51. package/app/blueprint/index.html +19 -19
  52. package/app/cookbook/index.html +19 -19
  53. package/app/index.html +31 -31
  54. package/app/m/ads/AdDeliveryTier/index.html +23 -23
  55. package/app/m/ads/AdEvent/index.html +23 -23
  56. package/app/m/ads/AdFormat/index.html +23 -23
  57. package/app/m/ads/AdGroup/index.html +23 -23
  58. package/app/m/ads/AdVariation/index.html +23 -23
  59. package/app/m/analytics/AnalyticsDataStream/index.html +23 -23
  60. package/app/m/analytics/AnalyticsEvent/index.html +23 -23
  61. package/app/m/analytics/AnalyticsProperty/index.html +23 -23
  62. package/app/m/analytics/AnalyticsReport/index.html +23 -23
  63. package/app/m/approvals/ApprovalEvent/index.html +23 -23
  64. package/app/m/approvals/ApprovalPolicy/index.html +23 -23
  65. package/app/m/approvals/ApprovalRequest/index.html +23 -23
  66. package/app/m/assets/Asset/attachments/index.html +24 -24
  67. package/app/m/assets/Asset/index.html +23 -23
  68. package/app/m/assets/AssetAssociation/index.html +23 -23
  69. package/app/m/assets/AssetMetafield/index.html +23 -23
  70. package/app/m/assets/AssetStatus/index.html +23 -23
  71. package/app/m/assets/AssetType/index.html +23 -23
  72. package/app/m/assets/Folder/index.html +23 -23
  73. package/app/m/chat/AgentSession/index.html +23 -23
  74. package/app/m/chat/ChatMessage/index.html +23 -23
  75. package/app/m/chat/ChatParticipant/index.html +23 -23
  76. package/app/m/chat/ChatReaction/index.html +23 -23
  77. package/app/m/chat/ChatRoom/index.html +23 -23
  78. package/app/m/chat/ChatThread/index.html +23 -23
  79. package/app/m/chat/VoiceGatewayTurn/index.html +23 -23
  80. package/app/m/chat/VoiceSession/index.html +23 -23
  81. package/app/m/commerce/AccountingConnection/index.html +88 -0
  82. package/app/m/commerce/AccountingInvoiceReadback/index.html +88 -0
  83. package/app/m/commerce/AccountingMapping/index.html +88 -0
  84. package/app/m/commerce/AccountingPaymentSync/index.html +88 -0
  85. package/app/m/commerce/Agreement/index.html +23 -23
  86. package/app/m/commerce/Cart/index.html +23 -23
  87. package/app/m/commerce/Contract/index.html +23 -23
  88. package/app/m/commerce/ContractLineItem/index.html +23 -23
  89. package/app/m/commerce/Customer/index.html +23 -23
  90. package/app/m/commerce/DocumentTax/index.html +23 -23
  91. package/app/m/commerce/Estimate/index.html +23 -23
  92. package/app/m/commerce/Fulfillment/index.html +23 -23
  93. package/app/m/commerce/FulfillmentLineItem/index.html +23 -23
  94. package/app/m/commerce/HistoricalCustomerFunds/index.html +23 -23
  95. package/app/m/commerce/HistoricalCustomerFundsAllocation/index.html +23 -23
  96. package/app/m/commerce/HistoricalSalesLine/index.html +23 -23
  97. package/app/m/commerce/Invoice/index.html +23 -23
  98. package/app/m/commerce/InvoiceLineItem/index.html +23 -23
  99. package/app/m/commerce/Lease/index.html +23 -23
  100. package/app/m/commerce/LicenseSale/index.html +23 -23
  101. package/app/m/commerce/Order/index.html +23 -23
  102. package/app/m/commerce/Payment/index.html +23 -23
  103. package/app/m/commerce/PaymentAllocation/index.html +23 -23
  104. package/app/m/commerce/PaymentInstrument/index.html +23 -23
  105. package/app/m/commerce/PaymentIntent/index.html +23 -23
  106. package/app/m/commerce/Payout/index.html +23 -23
  107. package/app/m/commerce/ProductionOrder/index.html +23 -23
  108. package/app/m/commerce/PurchaseContract/index.html +23 -23
  109. package/app/m/commerce/PurchaseOrder/index.html +23 -23
  110. package/app/m/commerce/SalesContract/index.html +23 -23
  111. package/app/m/commerce/SupplierQuote/index.html +23 -23
  112. package/app/m/commerce/TaxCode/index.html +23 -23
  113. package/app/m/commerce/TaxComponent/index.html +23 -23
  114. package/app/m/commerce/TaxSettings/index.html +23 -23
  115. package/app/m/commerce/TaxSummaryReport/index.html +23 -23
  116. package/app/m/commerce/TenantPaymentAccount/index.html +23 -23
  117. package/app/m/commerce/Vendor/index.html +23 -23
  118. package/app/m/commerce/WholesaleOrder/index.html +23 -23
  119. package/app/m/content/Content/articles/index.html +24 -24
  120. package/app/m/content/Content/index.html +23 -23
  121. package/app/m/content/ContentContribution/index.html +23 -23
  122. package/app/m/content/ContentContributionAttachment/index.html +23 -23
  123. package/app/m/content/ContentContributionRevision/index.html +23 -23
  124. package/app/m/content/ContentContributionType/index.html +23 -23
  125. package/app/m/content/ContentContributor/index.html +23 -23
  126. package/app/m/content/ContentCorrection/index.html +23 -23
  127. package/app/m/content/ContentFeedSource/index.html +23 -23
  128. package/app/m/content/ContentGovernanceAssignment/index.html +23 -23
  129. package/app/m/content/ContentGovernancePolicy/index.html +23 -23
  130. package/app/m/content/ContentGovernanceProfile/index.html +23 -23
  131. package/app/m/content/ContentReference/index.html +23 -23
  132. package/app/m/content/ContentReview/index.html +23 -23
  133. package/app/m/content/ContentVersion/index.html +23 -23
  134. package/app/m/events/Event/index.html +23 -23
  135. package/app/m/events/EventParticipant/index.html +23 -23
  136. package/app/m/events/EventSeries/index.html +23 -23
  137. package/app/m/events/EventType/index.html +23 -23
  138. package/app/m/expenses/Expense/index.html +23 -23
  139. package/app/m/facts/Fact/index.html +23 -23
  140. package/app/m/facts/FactContent/index.html +23 -23
  141. package/app/m/facts/FactEvidence/index.html +23 -23
  142. package/app/m/facts/FactSource/index.html +23 -23
  143. package/app/m/facts/FactSubject/index.html +23 -23
  144. package/app/m/facts/FactTag/index.html +23 -23
  145. package/app/m/fields/FieldPolicy/index.html +23 -23
  146. package/app/m/fields/FieldPolicySuggestion/index.html +23 -23
  147. package/app/m/fields/FieldUsageCounter/index.html +23 -23
  148. package/app/m/human-resources/Employment/index.html +23 -23
  149. package/app/m/human-resources/EmploymentTerm/index.html +23 -23
  150. package/app/m/human-resources/HeldQualification/index.html +23 -23
  151. package/app/m/human-resources/Qualification/index.html +23 -23
  152. package/app/m/images/Image/index.html +23 -23
  153. package/app/m/inventory/InventoryLocation/index.html +23 -23
  154. package/app/m/inventory/Lot/index.html +23 -23
  155. package/app/m/inventory/LotCorrection/index.html +23 -23
  156. package/app/m/inventory/LotDocument/index.html +23 -23
  157. package/app/m/inventory/LotStockLevel/index.html +23 -23
  158. package/app/m/inventory/LotUsage/index.html +23 -23
  159. package/app/m/inventory/StockLevel/index.html +23 -23
  160. package/app/m/inventory/StockMovement/index.html +23 -23
  161. package/app/m/ledgers/Account/index.html +23 -23
  162. package/app/m/ledgers/Journal/index.html +23 -23
  163. package/app/m/ledgers/JournalEntry/index.html +23 -23
  164. package/app/m/ledgers/Ledger/index.html +23 -23
  165. package/app/m/manufacturing/Assembly/index.html +23 -23
  166. package/app/m/manufacturing/BillOfMaterials/index.html +23 -23
  167. package/app/m/manufacturing/BomLine/index.html +23 -23
  168. package/app/m/manufacturing/Operation/index.html +23 -23
  169. package/app/m/manufacturing/ProductionRun/index.html +23 -23
  170. package/app/m/manufacturing/ProductionRunCompletion/index.html +23 -23
  171. package/app/m/manufacturing/RoutingStep/index.html +23 -23
  172. package/app/m/marketing/Campaign/index.html +23 -23
  173. package/app/m/marketing/CampaignChannel/index.html +23 -23
  174. package/app/m/marketing/CampaignMetricSnapshot/index.html +23 -23
  175. package/app/m/messages/Account/index.html +23 -23
  176. package/app/m/messages/Attachment/index.html +23 -23
  177. package/app/m/messages/Blacklist/index.html +23 -23
  178. package/app/m/messages/Email/failed-sends/index.html +24 -24
  179. package/app/m/messages/Email/index.html +23 -23
  180. package/app/m/messages/Email/mailbox/index.html +24 -24
  181. package/app/m/messages/EmailAccount/index.html +23 -23
  182. package/app/m/messages/EmailAttachment/index.html +23 -23
  183. package/app/m/messages/EmailFolder/index.html +23 -23
  184. package/app/m/messages/Message/index.html +23 -23
  185. package/app/m/messages/MessagingEndpoint/index.html +23 -23
  186. package/app/m/messages/PersonaMessageRoute/index.html +23 -23
  187. package/app/m/messages/SlackAccount/index.html +23 -23
  188. package/app/m/messages/SlackMessage/index.html +23 -23
  189. package/app/m/messages/SlackMessage/slack-messages/index.html +24 -24
  190. package/app/m/messages/TelegramAccount/index.html +23 -23
  191. package/app/m/messages/Tweet/index.html +23 -23
  192. package/app/m/messages/TwitterAccount/index.html +23 -23
  193. package/app/m/messages/Whitelist/index.html +23 -23
  194. package/app/m/messages/ZulipAccount/index.html +23 -23
  195. package/app/m/places/Place/index.html +23 -23
  196. package/app/m/places/PlaceType/index.html +23 -23
  197. package/app/m/products/Category/index.html +23 -23
  198. package/app/m/products/Material/index.html +23 -23
  199. package/app/m/products/Product/index.html +23 -23
  200. package/app/m/products/Product/ingredients/index.html +24 -24
  201. package/app/m/products/ProductVariant/index.html +23 -23
  202. package/app/m/products/Sku/index.html +23 -23
  203. package/app/m/profiles/ApiKey/index.html +23 -23
  204. package/app/m/profiles/Bot/index.html +23 -23
  205. package/app/m/profiles/MagicLinkToken/index.html +23 -23
  206. package/app/m/profiles/NostrIdentity/index.html +23 -23
  207. package/app/m/profiles/OidcIdentity/index.html +23 -23
  208. package/app/m/profiles/Organization/index.html +23 -23
  209. package/app/m/profiles/Person/index.html +23 -23
  210. package/app/m/profiles/Profile/index.html +23 -23
  211. package/app/m/profiles/ProfileMetadata/index.html +23 -23
  212. package/app/m/profiles/ProfileMetafield/index.html +23 -23
  213. package/app/m/profiles/ProfileRelationship/index.html +23 -23
  214. package/app/m/profiles/ProfileRelationshipTerm/index.html +23 -23
  215. package/app/m/profiles/ProfileRelationshipType/index.html +23 -23
  216. package/app/m/profiles/ProfileType/index.html +23 -23
  217. package/app/m/projects/Comment/index.html +23 -23
  218. package/app/m/projects/Issue/index.html +23 -23
  219. package/app/m/projects/Label/index.html +23 -23
  220. package/app/m/projects/Project/index.html +23 -23
  221. package/app/m/projects/ProjectIntegration/index.html +23 -23
  222. package/app/m/projects/PullRequest/index.html +23 -23
  223. package/app/m/projects/Repository/index.html +23 -23
  224. package/app/m/properties/Property/index.html +23 -23
  225. package/app/m/properties/Zone/index.html +23 -23
  226. package/app/m/reports/RuntimeReport/index.html +23 -23
  227. package/app/m/reports/SmrtPrincipalReportRefreshTask/index.html +23 -23
  228. package/app/m/reports/SmrtReportLock/index.html +23 -23
  229. package/app/m/reports/SmrtReportRefreshTask/index.html +23 -23
  230. package/app/m/reports/SmrtReportRun/index.html +23 -23
  231. package/app/m/reports/SmrtReportSchedule/index.html +23 -23
  232. package/app/m/reports/SmrtReportWatermark/index.html +23 -23
  233. package/app/m/sales/Agreement/index.html +23 -23
  234. package/app/m/sales/AttributionException/index.html +23 -23
  235. package/app/m/sales/AttributionPolicy/index.html +23 -23
  236. package/app/m/sales/Commission/index.html +23 -23
  237. package/app/m/sales/CommissionAdjustment/index.html +23 -23
  238. package/app/m/sales/CommissionPayout/index.html +23 -23
  239. package/app/m/sales/CommissionPlan/index.html +23 -23
  240. package/app/m/sales/Earner/index.html +23 -23
  241. package/app/m/sales/EarnerSourceAttribution/index.html +23 -23
  242. package/app/m/sales/EarningEvent/index.html +23 -23
  243. package/app/m/sales/ExecutedAgreement/index.html +23 -23
  244. package/app/m/sales/Lead/index.html +23 -23
  245. package/app/m/sales/Opportunity/index.html +23 -23
  246. package/app/m/sales/OpportunityConversion/index.html +23 -23
  247. package/app/m/sales/PipelineDefinition/index.html +23 -23
  248. package/app/m/sales/PipelineStage/index.html +23 -23
  249. package/app/m/sales/Referral/index.html +23 -23
  250. package/app/m/sales/ReferralAgreement/index.html +23 -23
  251. package/app/m/sales/ReferralLink/index.html +23 -23
  252. package/app/m/sales/ReferralProgram/index.html +23 -23
  253. package/app/m/sales/ReferralTermSnapshot/index.html +23 -23
  254. package/app/m/sales/ReferralTouch/index.html +23 -23
  255. package/app/m/sales/Referrer/index.html +23 -23
  256. package/app/m/sales/ReferrerIdentifier/index.html +23 -23
  257. package/app/m/sales/SalesActivity/index.html +23 -23
  258. package/app/m/sales/SalesRepresentative/index.html +23 -23
  259. package/app/m/sites/DnsZone/index.html +23 -23
  260. package/app/m/sites/Domain/index.html +23 -23
  261. package/app/m/sites/ProjectDomain/index.html +23 -23
  262. package/app/m/sites/Site/index.html +23 -23
  263. package/app/m/sites/SiteAgentBinding/index.html +23 -23
  264. package/app/m/social/OAuthState/index.html +23 -23
  265. package/app/m/social/SocialAccount/index.html +23 -23
  266. package/app/m/social/SocialPost/index.html +23 -23
  267. package/app/m/social/SocialPostAnalyticsSnapshot/index.html +23 -23
  268. package/app/m/subscriptions/BillingAdjustment/index.html +23 -23
  269. package/app/m/subscriptions/ClientCharge/index.html +23 -23
  270. package/app/m/subscriptions/CreditGrant/index.html +23 -23
  271. package/app/m/subscriptions/PricingRule/index.html +23 -23
  272. package/app/m/subscriptions/RetailCharge/index.html +23 -23
  273. package/app/m/subscriptions/SpendingPolicy/index.html +23 -23
  274. package/app/m/subscriptions/SubscriptionPlan/index.html +23 -23
  275. package/app/m/subscriptions/SubscriptionPlanVersion/index.html +23 -23
  276. package/app/m/subscriptions/TenantSubscription/index.html +23 -23
  277. package/app/m/subscriptions/TenantUsageMetric/index.html +23 -23
  278. package/app/m/support/ServiceTimeEntry/index.html +23 -23
  279. package/app/m/support/SupportAiRun/index.html +23 -23
  280. package/app/m/support/SupportAvailability/index.html +23 -23
  281. package/app/m/support/SupportCase/index.html +23 -23
  282. package/app/m/support/SupportCaseEvent/index.html +23 -23
  283. package/app/m/support/SupportChannelBinding/index.html +23 -23
  284. package/app/m/support/SupportCharge/index.html +23 -23
  285. package/app/m/support/SupportCompensation/index.html +23 -23
  286. package/app/m/support/SupportCompensationPlan/index.html +23 -23
  287. package/app/m/support/SupportEscalation/index.html +23 -23
  288. package/app/m/support/SupportInteraction/index.html +23 -23
  289. package/app/m/support/SupportPlan/index.html +23 -23
  290. package/app/m/support/SupportPolicy/index.html +23 -23
  291. package/app/m/support/SupportQualification/index.html +23 -23
  292. package/app/m/support/SupportServiceTarget/index.html +23 -23
  293. package/app/m/support/SupportSpecialist/index.html +23 -23
  294. package/app/m/support/SupportWorkLink/index.html +23 -23
  295. package/app/m/tags/Tag/index.html +23 -23
  296. package/app/m/tags/TagAlias/index.html +23 -23
  297. package/app/m/timesheets/AttendanceBreak/index.html +23 -23
  298. package/app/m/timesheets/AttendancePunch/index.html +23 -23
  299. package/app/m/timesheets/AttendanceSegment/index.html +23 -23
  300. package/app/m/timesheets/ServiceChargeSnapshot/index.html +23 -23
  301. package/app/m/timesheets/ServiceCompensationSnapshot/index.html +23 -23
  302. package/app/m/timesheets/ServiceTimeEntry/index.html +23 -23
  303. package/app/m/users/Group/index.html +23 -23
  304. package/app/m/users/GroupMember/index.html +23 -23
  305. package/app/m/users/GroupRole/index.html +23 -23
  306. package/app/m/users/Membership/index.html +23 -23
  307. package/app/m/users/MembershipOverride/index.html +23 -23
  308. package/app/m/users/Permission/index.html +23 -23
  309. package/app/m/users/Role/index.html +23 -23
  310. package/app/m/users/RolePermission/index.html +23 -23
  311. package/app/m/users/Session/index.html +23 -23
  312. package/app/m/users/Tenant/index.html +23 -23
  313. package/app/m/users/TenantIntegration/index.html +23 -23
  314. package/app/m/users/TenantPermissionOverride/index.html +23 -23
  315. package/app/m/users/User/index.html +23 -23
  316. package/app/m/video/Character/index.html +23 -23
  317. package/app/m/video/CharacterAsset/index.html +23 -23
  318. package/app/m/video/CompositeJob/index.html +23 -23
  319. package/app/m/video/Performer/index.html +23 -23
  320. package/app/m/video/PerformerAsset/index.html +23 -23
  321. package/app/m/video/Scene/index.html +23 -23
  322. package/app/m/video/SceneAsset/index.html +23 -23
  323. package/app/m/video/VideoComposition/index.html +23 -23
  324. package/app/m/video/VideoCompositionAsset/index.html +23 -23
  325. package/app/m/video/VideoSequence/index.html +23 -23
  326. package/app/m/video/VideoSequenceAsset/index.html +23 -23
  327. package/app/m/video/VideoShot/index.html +23 -23
  328. package/app/m/video/VideoShotAsset/index.html +23 -23
  329. package/app/m/video/VideoShotCharacter/index.html +23 -23
  330. package/app/m/video/VideoWorkflow/index.html +23 -23
  331. package/app/m/voice/VoiceOutput/index.html +23 -23
  332. package/app/m/voice/VoiceProfile/index.html +23 -23
  333. package/app/m/voice/VoiceSample/index.html +23 -23
  334. package/app/mcp.html +2 -2
  335. package/app/packages/ads/index.html +21 -21
  336. package/app/packages/analytics/index.html +21 -21
  337. package/app/packages/app-mcp/index.html +21 -21
  338. package/app/packages/approvals/index.html +21 -21
  339. package/app/packages/assets/index.html +21 -21
  340. package/app/packages/chat/index.html +21 -21
  341. package/app/packages/comments/index.html +21 -21
  342. package/app/packages/commerce/index.html +22 -22
  343. package/app/packages/content/index.html +21 -21
  344. package/app/packages/events/index.html +21 -21
  345. package/app/packages/expenses/index.html +21 -21
  346. package/app/packages/facts/index.html +21 -21
  347. package/app/packages/fields/index.html +21 -21
  348. package/app/packages/human-resources/index.html +21 -21
  349. package/app/packages/images/index.html +21 -21
  350. package/app/packages/index.html +21 -21
  351. package/app/packages/inference/index.html +21 -21
  352. package/app/packages/ingestion/index.html +21 -21
  353. package/app/packages/inventory/index.html +21 -21
  354. package/app/packages/ledgers/index.html +21 -21
  355. package/app/packages/manufacturing/index.html +21 -21
  356. package/app/packages/marketing/index.html +21 -21
  357. package/app/packages/messages/index.html +22 -22
  358. package/app/packages/places/index.html +21 -21
  359. package/app/packages/preferences/index.html +21 -21
  360. package/app/packages/products/index.html +21 -21
  361. package/app/packages/profiles/index.html +21 -21
  362. package/app/packages/projects/index.html +21 -21
  363. package/app/packages/properties/index.html +21 -21
  364. package/app/packages/reactions/index.html +21 -21
  365. package/app/packages/reports/index.html +21 -21
  366. package/app/packages/sales/index.html +21 -21
  367. package/app/packages/sites/index.html +21 -21
  368. package/app/packages/social/index.html +21 -21
  369. package/app/packages/subscriptions/index.html +21 -21
  370. package/app/packages/support/index.html +21 -21
  371. package/app/packages/tags/index.html +21 -21
  372. package/app/packages/timesheets/index.html +21 -21
  373. package/app/packages/users/index.html +21 -21
  374. package/app/packages/video/index.html +21 -21
  375. package/app/packages/voice/index.html +21 -21
  376. package/app/packages/webhooks/index.html +21 -21
  377. package/app/recipes/account-access/help/index.html +21 -21
  378. package/app/recipes/account-access/index.html +23 -23
  379. package/app/recipes/activity/help/index.html +21 -21
  380. package/app/recipes/activity/index.html +23 -23
  381. package/app/recipes/ads.campaigns/help/index.html +21 -21
  382. package/app/recipes/ads.campaigns/index.html +23 -23
  383. package/app/recipes/affiliates.referrals/help/index.html +21 -21
  384. package/app/recipes/affiliates.referrals/index.html +23 -23
  385. package/app/recipes/agreements/help/index.html +21 -21
  386. package/app/recipes/agreements/index.html +23 -23
  387. package/app/recipes/analytics.reports/help/index.html +21 -21
  388. package/app/recipes/analytics.reports/index.html +23 -23
  389. package/app/recipes/approvals.requests/help/index.html +21 -21
  390. package/app/recipes/approvals.requests/index.html +23 -23
  391. package/app/recipes/assets/help/index.html +21 -21
  392. package/app/recipes/assets/index.html +23 -23
  393. package/app/recipes/billing/help/index.html +21 -21
  394. package/app/recipes/billing/index.html +23 -23
  395. package/app/recipes/chat.assistant/help/index.html +21 -21
  396. package/app/recipes/chat.assistant/index.html +23 -23
  397. package/app/recipes/comments/help/index.html +21 -21
  398. package/app/recipes/comments/index.html +23 -23
  399. package/app/recipes/commerce.customers/help/index.html +21 -21
  400. package/app/recipes/commerce.customers/index.html +23 -23
  401. package/app/recipes/commerce.estimates/help/index.html +21 -21
  402. package/app/recipes/commerce.estimates/index.html +23 -23
  403. package/app/recipes/commerce.purchases/help/index.html +21 -21
  404. package/app/recipes/commerce.purchases/index.html +23 -23
  405. package/app/recipes/commerce.sales/help/index.html +21 -21
  406. package/app/recipes/commerce.sales/index.html +23 -23
  407. package/app/recipes/commerce.vendors/help/index.html +21 -21
  408. package/app/recipes/commerce.vendors/index.html +23 -23
  409. package/app/recipes/commerce.wholesale/help/index.html +21 -21
  410. package/app/recipes/commerce.wholesale/index.html +23 -23
  411. package/app/recipes/content.articles/help/index.html +21 -21
  412. package/app/recipes/content.articles/index.html +23 -23
  413. package/app/recipes/events.calendar/help/index.html +21 -21
  414. package/app/recipes/events.calendar/index.html +23 -23
  415. package/app/recipes/expenses.tracking/help/index.html +21 -21
  416. package/app/recipes/expenses.tracking/index.html +23 -23
  417. package/app/recipes/fields.form-customization/help/index.html +21 -21
  418. package/app/recipes/fields.form-customization/index.html +23 -23
  419. package/app/recipes/human-resources.people/help/index.html +21 -21
  420. package/app/recipes/human-resources.people/index.html +23 -23
  421. package/app/recipes/human-resources.qualifications/help/index.html +21 -21
  422. package/app/recipes/human-resources.qualifications/index.html +23 -23
  423. package/app/recipes/ingestion/help/index.html +21 -21
  424. package/app/recipes/ingestion/index.html +23 -23
  425. package/app/recipes/integrations/help/index.html +21 -21
  426. package/app/recipes/integrations/index.html +23 -23
  427. package/app/recipes/inventory.stock/help/index.html +21 -21
  428. package/app/recipes/inventory.stock/index.html +23 -23
  429. package/app/recipes/ledgers.bookkeeping/help/index.html +21 -21
  430. package/app/recipes/ledgers.bookkeeping/index.html +23 -23
  431. package/app/recipes/manufacturing.assemblies/help/index.html +21 -21
  432. package/app/recipes/manufacturing.assemblies/index.html +23 -23
  433. package/app/recipes/manufacturing.production/help/index.html +21 -21
  434. package/app/recipes/manufacturing.production/index.html +23 -23
  435. package/app/recipes/marketing.campaigns/help/index.html +21 -21
  436. package/app/recipes/marketing.campaigns/index.html +23 -23
  437. package/app/recipes/messages/help/index.html +23 -23
  438. package/app/recipes/messages/index.html +23 -23
  439. package/app/recipes/places.locations/help/index.html +21 -21
  440. package/app/recipes/places.locations/index.html +23 -23
  441. package/app/recipes/products/help/index.html +21 -21
  442. package/app/recipes/products/index.html +23 -23
  443. package/app/recipes/profiles.identity/help/index.html +21 -21
  444. package/app/recipes/profiles.identity/index.html +23 -23
  445. package/app/recipes/projects.tracker/help/index.html +21 -21
  446. package/app/recipes/projects.tracker/index.html +23 -23
  447. package/app/recipes/reports.materialized/help/index.html +21 -21
  448. package/app/recipes/reports.materialized/index.html +23 -23
  449. package/app/recipes/reports.runtime/help/index.html +21 -21
  450. package/app/recipes/reports.runtime/index.html +23 -23
  451. package/app/recipes/sales.pipeline/help/index.html +21 -21
  452. package/app/recipes/sales.pipeline/index.html +23 -23
  453. package/app/recipes/social.posts/help/index.html +21 -21
  454. package/app/recipes/social.posts/index.html +23 -23
  455. package/app/recipes/subscriptions.plans/help/index.html +21 -21
  456. package/app/recipes/subscriptions.plans/index.html +23 -23
  457. package/app/recipes/support.tickets/help/index.html +21 -21
  458. package/app/recipes/support.tickets/index.html +23 -23
  459. package/app/recipes/tags.taxonomy/help/index.html +21 -21
  460. package/app/recipes/tags.taxonomy/index.html +23 -23
  461. package/app/recipes/team-collaboration/help/index.html +21 -21
  462. package/app/recipes/team-collaboration/index.html +23 -23
  463. package/app/recipes/timesheets.time-entries/help/index.html +21 -21
  464. package/app/recipes/timesheets.time-entries/index.html +23 -23
  465. package/app/recipes/video.library/help/index.html +21 -21
  466. package/app/recipes/video.library/index.html +23 -23
  467. package/app/recipes/voice.profiles/help/index.html +21 -21
  468. package/app/recipes/voice.profiles/index.html +23 -23
  469. package/app/s/custom-accounts/index.html +19 -19
  470. package/app/s/custom-appointments/index.html +19 -19
  471. package/app/s/custom-billing/index.html +19 -19
  472. package/app/s/custom-bookings/index.html +19 -19
  473. package/app/s/custom-buying/index.html +19 -19
  474. package/app/s/custom-checkout/index.html +19 -19
  475. package/app/s/custom-classes/index.html +19 -19
  476. package/app/s/custom-clients/index.html +19 -19
  477. package/app/s/custom-events/index.html +19 -19
  478. package/app/s/custom-fleet/index.html +19 -19
  479. package/app/s/custom-gigs/index.html +19 -19
  480. package/app/s/custom-giving/index.html +19 -19
  481. package/app/s/custom-instruments/index.html +19 -19
  482. package/app/s/custom-jobs/index.html +19 -19
  483. package/app/s/custom-kitchen/index.html +19 -19
  484. package/app/s/custom-lessons/index.html +19 -19
  485. package/app/s/custom-material/index.html +19 -19
  486. package/app/s/custom-meetings/index.html +19 -19
  487. package/app/s/custom-members/index.html +19 -19
  488. package/app/s/custom-merch/index.html +19 -19
  489. package/app/s/custom-money/index.html +19 -19
  490. package/app/s/custom-paint/index.html +19 -19
  491. package/app/s/custom-parts/index.html +19 -19
  492. package/app/s/custom-rentals/index.html +19 -19
  493. package/app/s/custom-roastery/index.html +19 -19
  494. package/app/s/custom-schedule/index.html +19 -19
  495. package/app/s/custom-shelf/index.html +19 -19
  496. package/app/s/custom-shop/index.html +19 -19
  497. package/app/s/custom-students/index.html +19 -19
  498. package/app/s/custom-wholesale/index.html +19 -19
  499. package/app/s/custom-work/index.html +19 -19
  500. package/app/s/custom-yard/index.html +19 -19
  501. package/app/s/section-access-control/index.html +19 -19
  502. package/app/s/section-account-security/index.html +19 -19
  503. package/app/s/section-accounting/index.html +19 -19
  504. package/app/s/section-agreements/index.html +19 -19
  505. package/app/s/section-analytics/index.html +19 -19
  506. package/app/s/section-approvals/index.html +19 -19
  507. package/app/s/section-assets/index.html +19 -19
  508. package/app/s/section-billing/index.html +19 -19
  509. package/app/s/section-calendar/index.html +19 -19
  510. package/app/s/section-catalog/index.html +19 -19
  511. package/app/s/section-grow/index.html +19 -19
  512. package/app/s/section-make/index.html +19 -19
  513. package/app/s/section-messages/index.html +19 -19
  514. package/app/s/section-more/index.html +19 -19
  515. package/app/s/section-operations/index.html +19 -19
  516. package/app/s/section-places/index.html +19 -19
  517. package/app/s/section-projects/index.html +19 -19
  518. package/app/s/section-publish/index.html +19 -19
  519. package/app/s/section-purchasing/index.html +19 -19
  520. package/app/s/section-reports.runtime/index.html +19 -19
  521. package/app/s/section-sales/index.html +19 -19
  522. package/app/s/section-staff/index.html +19 -19
  523. package/app/s/section-support/index.html +19 -19
  524. package/app/s/section-taxonomy/index.html +19 -19
  525. package/app/s/section-team/index.html +19 -19
  526. package/app/s/section-work/index.html +19 -19
  527. package/dist/catalog/catalog.json +1206 -47
  528. package/dist/core/index.js +1096 -51
  529. package/dist/smrt-version.d.ts +1 -1
  530. package/dist/smrt-version.js +1 -1
  531. package/package.json +59 -59
  532. package/app/_app/immutable/chunks/Ci5c8JBX.js +0 -1
  533. package/app/_app/immutable/chunks/CmZMmuTY.js +0 -1
  534. package/app/_app/immutable/entry/start.BA1v6NrS.js +0 -1
@@ -1 +1 @@
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,O as c,Ot as l,P as u,Pt as d,U as f,W as p,X as m,Y as h,Z as g,_,a as v,b as y,bt as b,ct as x,ft as S,gt as C,ht as w,mt as T,pt as E,st as D,tt as O,v as k,vt as A,wt as j,xt as M,z as N}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{bt as P,c as F,l as I,p as L}from"./IVfnZdeW.js";import{i as R,o as z,x as B,y as V}from"./B18A9OMt.js";import{a as ee,c as te,g as H,i as ne,l as re,m as U,o as ie,s as ae,y as W}from"./Tb0fgM0E.js";import{b as oe,t as G}from"./DKGzf415.js";import{r as K}from"./D_U_DYjx.js";import{a as q,c as J,d as Y,f as X,i as se,n as ce,o as le,p as ue,r as Z,s as de,u as fe}from"./DkyrxFMJ.js";import{a as pe,c as me,i as he,l as ge,n as _e,o as ve,r as ye,s as be,t as xe,u as Se}from"./DRZTI5Jr.js";function Ce(e){return e.form.kind===`field-map`}function we(e){return e.form.kind===`variant-grid`}function Te(e,t,n){let r=t.filter(t=>e.includes(t.id));return r.flatMap(e=>(e.forms??[]).filter(e=>e.model===n).map(t=>({recipeId:e.id,form:t,extensions:r.flatMap(e=>(e.extends??[]).filter(e=>e.form===t.id))})))}function Ee(e,t){return e.extensions.some(e=>(e.records??[]).some(e=>e.model===t))}function De(e){e instanceof HTMLElement&&e.querySelector(`[data-invalid] :is(input, select, textarea, button):not([type="hidden"])`)?.focus()}function Q(e){return{records:[...e.form.records,...e.extensions.flatMap(e=>e.records??[])],fields:[...e.form.fields,...e.extensions.flatMap(e=>e.fields??[])]}}function Oe(e,t){let{records:n,fields:r}=Q(e);return r.map(e=>({field:e,catalogField:Y(e,n,t),modelId:X(e,n)}))}function ke(e,t){return Object.fromEntries(Oe(e,t).map(({field:e,catalogField:t})=>[e.id,fe(e,t)]))}function Ae(e){let{records:t}=Q(e),n=t.findIndex(t=>t.model===e.form.model);return n<0?0:n}async function je(e,t,n,r){let{records:i}=Q(t),a=i[Ae(t)];if(!a)return{};let o=await e.get(n(a.model),r);return q(e,i,{[a.as]:o},n)}async function Me(e,t,n,r){let{fields:i}=Q(t),a=await je(e,t,n,r),o=ke(t,n);return{values:Object.fromEntries(i.map(e=>{let{alias:t,field:n}=de(e.to),r=a[t]?.[n];return[e.id,r===void 0?o[e.id]:r]})),rows:a}}function Ne(e,t,n,r,i={},a={}){let{records:o,fields:s}=Q(e),c=se(s,n),l=Ae(e),u=new Set;return o.map((e,o)=>{let d=le(s,e.as,n),f={...ue(e.values,c),...o===l?Object.fromEntries(Object.entries(a).map(([e,t])=>[e,J(t)])):{}},p=t(e.model),m=r===void 0?void 0:i[e.as];try{if(o===l&&r!==void 0){let t=Object.fromEntries(Object.entries(f).filter(([,e])=>ce(e)));return{op:`save`,as:e.as,model:p,id:r,values:{...d,...t}}}if(m)return{op:`save`,as:e.as,model:p,id:m.id,values:d};let t=e.match?ue(e.match,c):{},n=Object.values(t).some(e=>ce(e)&&!u.has(e.ref))?{}:t,i=Object.keys(n).length>0;return{op:`save`,as:e.as,model:p,...i?{match:n}:{},onCreate:f,values:d}}finally{u.add(e.as)}})}var $=e=>typeof e==`string`&&e!==``?e:void 0;function Pe(e){let t=typeof e==`object`&&e&&!Array.isArray(e)?e:{},n=$(t.country),r=$(t.state);return{...$(t.street1)?{street:t.street1}:{},...$(t.city)?{city:t.city}:{},...r?{province:n===`US`?`US-${r}`:r}:{},...$(t.postalCode)?{postalCode:t.postalCode}:{},...n?{country:n}:{}}}function Fe(e,t){let n=typeof t==`object`&&t&&!Array.isArray(t)?{...t}:{};for(let e of[`street1`,`city`,`state`,`postalCode`,`country`])delete n[e];let r=$(e.province);return{...n,...$(e.street)?{street1:e.street}:{},...$(e.city)?{city:e.city}:{},...r?{state:r.replace(/^US-/,``)}:{},...$(e.postalCode)?{postalCode:e.postalCode}:{},...$(e.country)?{country:e.country}:{}}}function Ie(e){return document.body.appendChild(e),e.showModal(),()=>{e.close(),e.remove()}}function Le(e){let t=[e.status,e.customerType].filter(Boolean).join(` · `);return{id:e.id,label:e.profile.name,...t?{detail:t}:{}}}function Re(e){return{id:e.id,label:e.profile.name,...e.status?{detail:e.status}:{}}}function ze(e,t){l(t,!0);let n=v(t,`value`,15,``),i=v(t,`label`,3,`Customer`),a=v(t,`required`,3,!1),o=v(t,`disabled`,3,!1),s=v(t,`createLabel`,3,`New customer`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return s()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Le),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}function Be(e,t){l(t,!0);let n=v(t,`value`,15,``),i=v(t,`label`,3,`Vendor`),a=v(t,`required`,3,!1),o=v(t,`disabled`,3,!1),s=v(t,`createLabel`,3,`New vendor`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return s()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Re),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}var Ve=[{name:`CustomerSelect`,selects:`@happyvertical/smrt-commerce:Customer`,kind:`customer`,component:ze},{name:`VendorSelect`,selects:`@happyvertical/smrt-commerce:Vendor`,kind:`vendor`,component:Be}];function He(e,t=Ve){return t.find(t=>t.selects===e)}var Ue=a(`<label class="smrt-relation-field__plain svelte-1t0u16g" data-smrt-component="RelationField"> <input type="text"/></label>`),We=a(`<dialog class="smrt-relation-field__create svelte-1t0u16g" data-smrt-component="RelationField"><!></dialog>`),Ge=a(`<!> <!>`,1);function Ke(a,s){l(s,!0);let d=v(s,`creatable`,3,!0),h=K(),T=n(()=>s.field.related??``),O=n(()=>P(e(T))?.model),j=n(()=>He(e(T))),F=n(()=>d()?Te(G.ids,oe,e(T)).find(Ce):void 0),I=n(()=>e(O)?.name.toLowerCase()??`record`),L=b(C(typeof s.value==`string`?s.value:``));x(()=>{let t=typeof s.value==`string`?s.value:``;t!==e(L)&&A(L,t,!0)});let R=b(!1),B=b(0);function V(){M(B),A(R,!0)}function H(e){A(R,!1),A(L,e.id,!0),s.onchange(e.id)}function U(e){A(L,e,!0),s.onchange(e===``?null:e)}var W=Ge(),q=E(W),J=t=>{var n=Ue(),r=S(n),a=w(r);_(a),i(n),D(()=>{o(r,`${s.label??``} `),k(a,`name`,s.name),a.required=s.required,y(a,e(L))}),m(`input`,a,e=>U(e.currentTarget.value)),f(t,n)},Y=t=>{let r=n(()=>e(j).component);var i=p(),a=E(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);u(a,()=>e(r),(n,r)=>{r(n,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:e=>ae(h,e),resolve:e=>ne(h,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})})}f(t,i)},X=t=>{let r=n(()=>e(j).component);var i=p(),a=E(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);u(a,()=>e(r),(n,r)=>{r(n,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:e=>re(h,e),resolve:e=>ie(h,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})})}f(t,i)},se=t=>{{let r=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);z(t,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:t=>te(h,e(O),t),resolve:t=>ee(h,e(O),t),get onCreate(){return e(r)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})}};t(q,t=>{e(O)?e(j)?.kind===`customer`?t(Y,1):e(j)?.kind===`vendor`?t(X,2):t(se,-1):t(J)});var ce=w(q,2),le=t=>{var n=We(),r=S(n);N(r,()=>e(B),t=>{ct(t,{get active(){return e(F)},onsaved:H,oncancel:()=>A(R,!1)})}),i(n),c(n,()=>Ie),D(()=>k(n,`aria-label`,`New ${e(I)}`)),g(`close`,n,()=>A(R,!1)),f(t,n)};t(ce,t=>{e(F)&&e(R)&&t(le)}),f(a,W),r()}h([`input`]);var qe=a(`<div class="smrt-field-input__percent svelte-n1ol00" data-smrt-part="row"><!> <span class="smrt-field-input__percent-sign svelte-n1ol00" data-smrt-part="label" aria-hidden="true">%</span></div>`),Je=a(`<input type="url" class="svelte-n1ol00"/>`),Ye=a(`<input type="number" step="1" class="svelte-n1ol00"/>`),Xe=a(`<input type="number" step="any" class="svelte-n1ol00"/>`),Ze=a(`<textarea rows="3" class="svelte-n1ol00"></textarea>`),Qe=a(`<input type="text" class="svelte-n1ol00"/>`),$e=a(`<!> <!>`,1),et=a(`<p class="smrt-field-input__error svelte-n1ol00" data-smrt-part="error" role="alert"> </p>`),tt=a(`<small class="svelte-n1ol00"> </small>`),nt=a(`<div class="smrt-planner-form__field svelte-n1ol00" data-smrt-component="FieldInput"><!> <!> <!></div>`);function rt(a,s){l(s,!0);let c=v(s,`idPrefix`,3,`field`),u=v(s,`hideRequired`,3,!1),p=v(s,`creatable`,3,!0),h=n(()=>W(s.field,s.modelId)),b=n(()=>s.label??L(s.field.name)),x=n(()=>`${c()}-${s.field.name}`),C=n(()=>s.field.required&&!u()),O=n(()=>s.value===null||s.value===void 0?``:typeof s.value==`object`?JSON.stringify(s.value):String(s.value)),A=n(()=>[...e(C)||(s.field.enum??[]).includes(``)?[]:[{value:``,label:`(none)`}],...(s.field.enum??[]).map(e=>({value:e,label:e===``?`(none)`:I(e)}))]);function M(e){if(e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function N(e){try{return JSON.parse(e)}catch{return e}}let P=e=>e.slice(0,10);var F=nt(),z=S(F),ee=t=>{{let r=n(()=>s.value===!0);R(t,{get checked(){return e(r)},onchange:e=>s.onchange(e.currentTarget.checked),get label(){return e(b)}})}},te=t=>{Ke(t,{get field(){return s.field},get value(){return s.value},get onchange(){return s.onchange},get label(){return e(b)},get name(){return e(x)},get required(){return e(C)},get creatable(){return p()}})},H=t=>{pe(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get options(){return e(A)},get value(){return e(O)},onchange:e=>s.onchange(e)})},ne=t=>{he(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},rows:4,get value(){return e(O)},onchange:e=>s.onchange(e)})},re=t=>{ye(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},type:`email`,get value(){return e(O)},onchange:e=>s.onchange(e)})},U=t=>{ve(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get value(){return e(O)},onchange:e=>s.onchange(e)})},ie=t=>{{let r=n(()=>typeof s.value==`number`?s.value:null);me(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},currency:`USD`,min:0,get value(){return e(r)},onchange:e=>s.onchange(e)})}},ae=t=>{var r=qe(),a=S(r);{let t=n(()=>xe(s.value));be(a,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},min:0,step:.01,get value(){return e(t)},onchange:e=>s.onchange(_e(e))})}d(2),i(r),f(t,r)},oe=t=>{{let r=n(()=>P(e(O)));ge(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},includeTime:!1,get value(){return e(r)},onchange:e=>s.onchange(e?new Date(`${e}T00:00:00Z`).toISOString():``)})}},G=t=>{{let r=n(()=>Pe(s.value));Se(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get value(){return e(r)},onchange:e=>s.onchange(Fe(e,s.value))})}},K=n=>{var r=$e(),i=E(r);B(i,{get for(){return e(x)},get label(){return e(b)},get required(){return e(C)}});var a=w(i,2),o=t=>{V(t,{get id(){return e(x)},get required(){return e(C)},get value(){return e(O)},onchange:e=>s.onchange(e.currentTarget.value)})},c=t=>{var n=Je();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),m(`input`,n,e=>s.onchange(e.currentTarget.value)),f(t,n)},l=t=>{var n=Ye();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),g(`focus`,n,e=>e.currentTarget.select()),m(`input`,n,e=>{let t=M(e.currentTarget.value);s.onchange(t===null?null:Math.trunc(t))}),f(t,n)},u=t=>{var n=Xe();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),g(`focus`,n,e=>e.currentTarget.select()),m(`input`,n,e=>s.onchange(M(e.currentTarget.value))),f(t,n)},d=t=>{var n=Ze();j(n),D(()=>{k(n,`id`,e(x)),y(n,e(O))}),m(`input`,n,e=>s.onchange(N(e.currentTarget.value))),f(t,n)},p=t=>{var n=Qe();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),m(`input`,n,e=>s.onchange(e.currentTarget.value)),f(t,n)};t(a,t=>{e(h)===`currency`?t(o):e(h)===`url`?t(c,1):e(h)===`integer`?t(l,2):e(h)===`decimal`?t(u,3):e(h)===`json`?t(d,4):t(p,-1)}),f(n,r)};t(z,t=>{e(h)===`boolean`?t(ee):e(h)===`relation`?t(te,1):e(h)===`enum`?t(H,2):e(h)===`textarea`?t(ne,3):e(h)===`email`?t(re,4):e(h)===`phone`?t(U,5):e(h)===`money`?t(ie,6):e(h)===`percent`?t(ae,7):e(h)===`datetime`?t(oe,8):e(h)===`address`?t(G,9):t(K,-1)});var q=w(z,2),J=t=>{var n=et(),r=T(n,!0);D(()=>{k(n,`id`,`${e(x)}-error`),o(r,s.error)}),f(t,n)};t(q,e=>{s.error&&e(J)});var Y=w(q,2),X=e=>{var t=tt(),n=T(t,!0);D(()=>o(n,s.help)),f(e,t)};t(Y,e=>{s.help&&e(X)}),i(F),D(()=>{k(F,`data-renderer`,e(h)),k(F,`data-invalid`,s.error?``:void 0)}),f(a,F),r()}h([`input`]);var it=a(`<p>Loading...</p>`),at=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert" data-error-summary=""> </p>`),ot=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert"> </p>`),st=a(`<form class="smrt-planner-form__root" novalidate="" data-smrt-component="FieldMapForm"><h3 class="svelte-1rp3j7g"> </h3> <!> <!> <!> <div class="smrt-planner-form__actions svelte-1rp3j7g"><button type="submit" class="svelte-1rp3j7g">Save</button> <button type="button" class="smrt-field-map-form__secondary svelte-1rp3j7g" data-smrt-part="action">Cancel</button></div></form>`);function ct(a,c){l(c,!0);let u=K(),d=n(()=>Oe(c.active,Z).filter(({catalogField:e,modelId:t})=>!G.rows.some(n=>n.objectRef===t&&n.fieldName===e.name&&n.visibility===`hidden`))),h=b(C(ke(c.active,Z))),_=b(c.id===void 0),v=b(``),y=b(C({})),x=n(()=>e(d).map(({field:e,catalogField:t})=>({...t,name:e.id,label:e.label,required:e.required??t.required}))),k=n(()=>U(e(x),e(y))),j={};async function M(e){let t=await Me(u,c.active,Z,e);A(h,t.values,!0),j=t.rows,A(_,!0)}c.id!==void 0&&M(c.id);async function N(t){t.preventDefault();let n=t.currentTarget;if(A(v,``),A(y,H(e(x),e(h)),!0),Object.keys(e(y)).length>0)await O(),De(n);else try{let t=await u.apply(Ne(c.active,Z,e(h),c.id,j,c.preset)),n=Q(c.active).records[Ae(c.active)],r=n?t[n.as]:void 0;if(!r)throw Error(`Nothing was saved.`);c.onsaved(r)}catch(e){A(v,e instanceof Error?e.message:`Could not save.`,!0)}}var P=p(),I=E(P),L=e=>{var t=it();f(e,t)},R=r=>{var a=st(),l=S(a),u=T(l),p=w(l,2);s(p,17,()=>e(d),({field:e,catalogField:t,modelId:n})=>e.id,(t,r)=>{let i=()=>e(r).field,a=()=>e(r).catalogField,o=()=>e(r).modelId;{let r=n(()=>({...a(),required:i().required??a().required}));rt(t,{get modelId(){return o()},get field(){return e(r)},get label(){return i().label},get help(){return i().help},get idPrefix(){return c.active.form.id},get error(){return e(y)[i().id]},get value(){return e(h)[i().id]},onchange:t=>{e(h)[i().id]=t,delete e(y)[i().id]}})}});var _=w(p,2),b=t=>{var n=at(),r=T(n,!0);D(()=>o(r,e(k))),f(t,n)};t(_,t=>{e(k)&&t(b)});var x=w(_,2),C=t=>{var n=ot(),r=T(n,!0);D(()=>o(r,e(v))),f(t,n)};t(x,t=>{e(v)&&t(C)});var E=w(x,2),O=w(S(E),2);i(E),i(a),D(e=>o(u,`${c.id===void 0?`New`:`Edit`} ${e??``}`),[()=>F(c.active.form.label,c.noun,c.noun!==void 0)]),g(`submit`,a,N),m(`click`,O,function(...e){c.oncancel?.apply(this,e)}),f(r,a)};t(I,t=>{e(_)?t(R,-1):t(L)}),f(a,P),r()}h([`click`]);export{Ee as a,Te as i,rt as n,Ce as o,De as r,we as s,ct as t};
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,O as c,Ot as l,P as u,Pt as d,U as f,W as p,X as m,Y as h,Z as g,_,a as v,b as y,bt as b,ct as x,ft as S,gt as C,ht as w,mt as T,pt as E,st as D,tt as O,v as k,vt as A,wt as j,xt as M,z as N}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{bt as P,c as F,l as I,p as L}from"./huXFmzl6.js";import{i as R,o as z,x as B,y as V}from"./B18A9OMt.js";import{a as ee,c as te,g as H,i as ne,l as re,m as U,o as ie,s as ae,y as W}from"./CknIRaG6.js";import{b as oe,t as G}from"./Cic-EKa3.js";import{r as K}from"./D_U_DYjx.js";import{a as q,c as J,d as Y,f as X,i as se,n as ce,o as le,p as ue,r as Z,s as de,u as fe}from"./gPMGlea7.js";import{a as pe,c as me,i as he,l as ge,n as _e,o as ve,r as ye,s as be,t as xe,u as Se}from"./BJXFQUWS.js";function Ce(e){return e.form.kind===`field-map`}function we(e){return e.form.kind===`variant-grid`}function Te(e,t,n){let r=t.filter(t=>e.includes(t.id));return r.flatMap(e=>(e.forms??[]).filter(e=>e.model===n).map(t=>({recipeId:e.id,form:t,extensions:r.flatMap(e=>(e.extends??[]).filter(e=>e.form===t.id))})))}function Ee(e,t){return e.extensions.some(e=>(e.records??[]).some(e=>e.model===t))}function De(e){e instanceof HTMLElement&&e.querySelector(`[data-invalid] :is(input, select, textarea, button):not([type="hidden"])`)?.focus()}function Q(e){return{records:[...e.form.records,...e.extensions.flatMap(e=>e.records??[])],fields:[...e.form.fields,...e.extensions.flatMap(e=>e.fields??[])]}}function Oe(e,t){let{records:n,fields:r}=Q(e);return r.map(e=>({field:e,catalogField:Y(e,n,t),modelId:X(e,n)}))}function ke(e,t){return Object.fromEntries(Oe(e,t).map(({field:e,catalogField:t})=>[e.id,fe(e,t)]))}function Ae(e){let{records:t}=Q(e),n=t.findIndex(t=>t.model===e.form.model);return n<0?0:n}async function je(e,t,n,r){let{records:i}=Q(t),a=i[Ae(t)];if(!a)return{};let o=await e.get(n(a.model),r);return q(e,i,{[a.as]:o},n)}async function Me(e,t,n,r){let{fields:i}=Q(t),a=await je(e,t,n,r),o=ke(t,n);return{values:Object.fromEntries(i.map(e=>{let{alias:t,field:n}=de(e.to),r=a[t]?.[n];return[e.id,r===void 0?o[e.id]:r]})),rows:a}}function Ne(e,t,n,r,i={},a={}){let{records:o,fields:s}=Q(e),c=se(s,n),l=Ae(e),u=new Set;return o.map((e,o)=>{let d=le(s,e.as,n),f={...ue(e.values,c),...o===l?Object.fromEntries(Object.entries(a).map(([e,t])=>[e,J(t)])):{}},p=t(e.model),m=r===void 0?void 0:i[e.as];try{if(o===l&&r!==void 0){let t=Object.fromEntries(Object.entries(f).filter(([,e])=>ce(e)));return{op:`save`,as:e.as,model:p,id:r,values:{...d,...t}}}if(m)return{op:`save`,as:e.as,model:p,id:m.id,values:d};let t=e.match?ue(e.match,c):{},n=Object.values(t).some(e=>ce(e)&&!u.has(e.ref))?{}:t,i=Object.keys(n).length>0;return{op:`save`,as:e.as,model:p,...i?{match:n}:{},onCreate:f,values:d}}finally{u.add(e.as)}})}var $=e=>typeof e==`string`&&e!==``?e:void 0;function Pe(e){let t=typeof e==`object`&&e&&!Array.isArray(e)?e:{},n=$(t.country),r=$(t.state);return{...$(t.street1)?{street:t.street1}:{},...$(t.city)?{city:t.city}:{},...r?{province:n===`US`?`US-${r}`:r}:{},...$(t.postalCode)?{postalCode:t.postalCode}:{},...n?{country:n}:{}}}function Fe(e,t){let n=typeof t==`object`&&t&&!Array.isArray(t)?{...t}:{};for(let e of[`street1`,`city`,`state`,`postalCode`,`country`])delete n[e];let r=$(e.province);return{...n,...$(e.street)?{street1:e.street}:{},...$(e.city)?{city:e.city}:{},...r?{state:r.replace(/^US-/,``)}:{},...$(e.postalCode)?{postalCode:e.postalCode}:{},...$(e.country)?{country:e.country}:{}}}function Ie(e){return document.body.appendChild(e),e.showModal(),()=>{e.close(),e.remove()}}function Le(e){let t=[e.status,e.customerType].filter(Boolean).join(` · `);return{id:e.id,label:e.profile.name,...t?{detail:t}:{}}}function Re(e){return{id:e.id,label:e.profile.name,...e.status?{detail:e.status}:{}}}function ze(e,t){l(t,!0);let n=v(t,`value`,15,``),i=v(t,`label`,3,`Customer`),a=v(t,`required`,3,!1),o=v(t,`disabled`,3,!1),s=v(t,`createLabel`,3,`New customer`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return s()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Le),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}function Be(e,t){l(t,!0);let n=v(t,`value`,15,``),i=v(t,`label`,3,`Vendor`),a=v(t,`required`,3,!1),o=v(t,`disabled`,3,!1),s=v(t,`createLabel`,3,`New vendor`);z(e,{get name(){return t.name},get label(){return i()},get required(){return a()},get disabled(){return o()},get error(){return t.error},get onCreate(){return t.onCreate},get createLabel(){return s()},get onchange(){return t.onchange},search:async e=>(await t.search(e)).map(Re),resolve:async e=>{let n=await t.resolve(e);return n?{id:n.id,label:n.profile.name}:null},get value(){return n()},set value(e){n(e)}}),r()}var Ve=[{name:`CustomerSelect`,selects:`@happyvertical/smrt-commerce:Customer`,kind:`customer`,component:ze},{name:`VendorSelect`,selects:`@happyvertical/smrt-commerce:Vendor`,kind:`vendor`,component:Be}];function He(e,t=Ve){return t.find(t=>t.selects===e)}var Ue=a(`<label class="smrt-relation-field__plain svelte-1t0u16g" data-smrt-component="RelationField"> <input type="text"/></label>`),We=a(`<dialog class="smrt-relation-field__create svelte-1t0u16g" data-smrt-component="RelationField"><!></dialog>`),Ge=a(`<!> <!>`,1);function Ke(a,s){l(s,!0);let d=v(s,`creatable`,3,!0),h=K(),T=n(()=>s.field.related??``),O=n(()=>P(e(T))?.model),j=n(()=>He(e(T))),F=n(()=>d()?Te(G.ids,oe,e(T)).find(Ce):void 0),I=n(()=>e(O)?.name.toLowerCase()??`record`),L=b(C(typeof s.value==`string`?s.value:``));x(()=>{let t=typeof s.value==`string`?s.value:``;t!==e(L)&&A(L,t,!0)});let R=b(!1),B=b(0);function V(){M(B),A(R,!0)}function H(e){A(R,!1),A(L,e.id,!0),s.onchange(e.id)}function U(e){A(L,e,!0),s.onchange(e===``?null:e)}var W=Ge(),q=E(W),J=t=>{var n=Ue(),r=S(n),a=w(r);_(a),i(n),D(()=>{o(r,`${s.label??``} `),k(a,`name`,s.name),a.required=s.required,y(a,e(L))}),m(`input`,a,e=>U(e.currentTarget.value)),f(t,n)},Y=t=>{let r=n(()=>e(j).component);var i=p(),a=E(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);u(a,()=>e(r),(n,r)=>{r(n,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:e=>ae(h,e),resolve:e=>ne(h,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})})}f(t,i)},X=t=>{let r=n(()=>e(j).component);var i=p(),a=E(i);{let t=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);u(a,()=>e(r),(n,r)=>{r(n,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:e=>re(h,e),resolve:e=>ie(h,e),get onCreate(){return e(t)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})})}f(t,i)},se=t=>{{let r=n(()=>e(F)?V:void 0),i=n(()=>`New ${e(I)}`);z(t,{get name(){return s.name},get label(){return s.label},get required(){return s.required},search:t=>te(h,e(O),t),resolve:t=>ee(h,e(O),t),get onCreate(){return e(r)},get createLabel(){return e(i)},onchange:U,get value(){return e(L)},set value(e){A(L,e,!0)}})}};t(q,t=>{e(O)?e(j)?.kind===`customer`?t(Y,1):e(j)?.kind===`vendor`?t(X,2):t(se,-1):t(J)});var ce=w(q,2),le=t=>{var n=We(),r=S(n);N(r,()=>e(B),t=>{ct(t,{get active(){return e(F)},onsaved:H,oncancel:()=>A(R,!1)})}),i(n),c(n,()=>Ie),D(()=>k(n,`aria-label`,`New ${e(I)}`)),g(`close`,n,()=>A(R,!1)),f(t,n)};t(ce,t=>{e(F)&&e(R)&&t(le)}),f(a,W),r()}h([`input`]);var qe=a(`<div class="smrt-field-input__percent svelte-n1ol00" data-smrt-part="row"><!> <span class="smrt-field-input__percent-sign svelte-n1ol00" data-smrt-part="label" aria-hidden="true">%</span></div>`),Je=a(`<input type="url" class="svelte-n1ol00"/>`),Ye=a(`<input type="number" step="1" class="svelte-n1ol00"/>`),Xe=a(`<input type="number" step="any" class="svelte-n1ol00"/>`),Ze=a(`<textarea rows="3" class="svelte-n1ol00"></textarea>`),Qe=a(`<input type="text" class="svelte-n1ol00"/>`),$e=a(`<!> <!>`,1),et=a(`<p class="smrt-field-input__error svelte-n1ol00" data-smrt-part="error" role="alert"> </p>`),tt=a(`<small class="svelte-n1ol00"> </small>`),nt=a(`<div class="smrt-planner-form__field svelte-n1ol00" data-smrt-component="FieldInput"><!> <!> <!></div>`);function rt(a,s){l(s,!0);let c=v(s,`idPrefix`,3,`field`),u=v(s,`hideRequired`,3,!1),p=v(s,`creatable`,3,!0),h=n(()=>W(s.field,s.modelId)),b=n(()=>s.label??L(s.field.name)),x=n(()=>`${c()}-${s.field.name}`),C=n(()=>s.field.required&&!u()),O=n(()=>s.value===null||s.value===void 0?``:typeof s.value==`object`?JSON.stringify(s.value):String(s.value)),A=n(()=>[...e(C)||(s.field.enum??[]).includes(``)?[]:[{value:``,label:`(none)`}],...(s.field.enum??[]).map(e=>({value:e,label:e===``?`(none)`:I(e)}))]);function M(e){if(e.trim()===``)return null;let t=Number(e);return Number.isFinite(t)?t:null}function N(e){try{return JSON.parse(e)}catch{return e}}let P=e=>e.slice(0,10);var F=nt(),z=S(F),ee=t=>{{let r=n(()=>s.value===!0);R(t,{get checked(){return e(r)},onchange:e=>s.onchange(e.currentTarget.checked),get label(){return e(b)}})}},te=t=>{Ke(t,{get field(){return s.field},get value(){return s.value},get onchange(){return s.onchange},get label(){return e(b)},get name(){return e(x)},get required(){return e(C)},get creatable(){return p()}})},H=t=>{pe(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get options(){return e(A)},get value(){return e(O)},onchange:e=>s.onchange(e)})},ne=t=>{he(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},rows:4,get value(){return e(O)},onchange:e=>s.onchange(e)})},re=t=>{ye(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},type:`email`,get value(){return e(O)},onchange:e=>s.onchange(e)})},U=t=>{ve(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get value(){return e(O)},onchange:e=>s.onchange(e)})},ie=t=>{{let r=n(()=>typeof s.value==`number`?s.value:null);me(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},currency:`USD`,min:0,get value(){return e(r)},onchange:e=>s.onchange(e)})}},ae=t=>{var r=qe(),a=S(r);{let t=n(()=>xe(s.value));be(a,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},min:0,step:.01,get value(){return e(t)},onchange:e=>s.onchange(_e(e))})}d(2),i(r),f(t,r)},oe=t=>{{let r=n(()=>P(e(O)));ge(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},includeTime:!1,get value(){return e(r)},onchange:e=>s.onchange(e?new Date(`${e}T00:00:00Z`).toISOString():``)})}},G=t=>{{let r=n(()=>Pe(s.value));Se(t,{get name(){return e(x)},get label(){return e(b)},get required(){return e(C)},get value(){return e(r)},onchange:e=>s.onchange(Fe(e,s.value))})}},K=n=>{var r=$e(),i=E(r);B(i,{get for(){return e(x)},get label(){return e(b)},get required(){return e(C)}});var a=w(i,2),o=t=>{V(t,{get id(){return e(x)},get required(){return e(C)},get value(){return e(O)},onchange:e=>s.onchange(e.currentTarget.value)})},c=t=>{var n=Je();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),m(`input`,n,e=>s.onchange(e.currentTarget.value)),f(t,n)},l=t=>{var n=Ye();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),g(`focus`,n,e=>e.currentTarget.select()),m(`input`,n,e=>{let t=M(e.currentTarget.value);s.onchange(t===null?null:Math.trunc(t))}),f(t,n)},u=t=>{var n=Xe();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),g(`focus`,n,e=>e.currentTarget.select()),m(`input`,n,e=>s.onchange(M(e.currentTarget.value))),f(t,n)},d=t=>{var n=Ze();j(n),D(()=>{k(n,`id`,e(x)),y(n,e(O))}),m(`input`,n,e=>s.onchange(N(e.currentTarget.value))),f(t,n)},p=t=>{var n=Qe();_(n),D(()=>{k(n,`id`,e(x)),n.required=e(C),y(n,e(O))}),m(`input`,n,e=>s.onchange(e.currentTarget.value)),f(t,n)};t(a,t=>{e(h)===`currency`?t(o):e(h)===`url`?t(c,1):e(h)===`integer`?t(l,2):e(h)===`decimal`?t(u,3):e(h)===`json`?t(d,4):t(p,-1)}),f(n,r)};t(z,t=>{e(h)===`boolean`?t(ee):e(h)===`relation`?t(te,1):e(h)===`enum`?t(H,2):e(h)===`textarea`?t(ne,3):e(h)===`email`?t(re,4):e(h)===`phone`?t(U,5):e(h)===`money`?t(ie,6):e(h)===`percent`?t(ae,7):e(h)===`datetime`?t(oe,8):e(h)===`address`?t(G,9):t(K,-1)});var q=w(z,2),J=t=>{var n=et(),r=T(n,!0);D(()=>{k(n,`id`,`${e(x)}-error`),o(r,s.error)}),f(t,n)};t(q,e=>{s.error&&e(J)});var Y=w(q,2),X=e=>{var t=tt(),n=T(t,!0);D(()=>o(n,s.help)),f(e,t)};t(Y,e=>{s.help&&e(X)}),i(F),D(()=>{k(F,`data-renderer`,e(h)),k(F,`data-invalid`,s.error?``:void 0)}),f(a,F),r()}h([`input`]);var it=a(`<p>Loading...</p>`),at=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert" data-error-summary=""> </p>`),ot=a(`<p class="smrt-planner-form__error svelte-1rp3j7g" role="alert"> </p>`),st=a(`<form class="smrt-planner-form__root" novalidate="" data-smrt-component="FieldMapForm"><h3 class="svelte-1rp3j7g"> </h3> <!> <!> <!> <div class="smrt-planner-form__actions svelte-1rp3j7g"><button type="submit" class="svelte-1rp3j7g">Save</button> <button type="button" class="smrt-field-map-form__secondary svelte-1rp3j7g" data-smrt-part="action">Cancel</button></div></form>`);function ct(a,c){l(c,!0);let u=K(),d=n(()=>Oe(c.active,Z).filter(({catalogField:e,modelId:t})=>!G.rows.some(n=>n.objectRef===t&&n.fieldName===e.name&&n.visibility===`hidden`))),h=b(C(ke(c.active,Z))),_=b(c.id===void 0),v=b(``),y=b(C({})),x=n(()=>e(d).map(({field:e,catalogField:t})=>({...t,name:e.id,label:e.label,required:e.required??t.required}))),k=n(()=>U(e(x),e(y))),j={};async function M(e){let t=await Me(u,c.active,Z,e);A(h,t.values,!0),j=t.rows,A(_,!0)}c.id!==void 0&&M(c.id);async function N(t){t.preventDefault();let n=t.currentTarget;if(A(v,``),A(y,H(e(x),e(h)),!0),Object.keys(e(y)).length>0)await O(),De(n);else try{let t=await u.apply(Ne(c.active,Z,e(h),c.id,j,c.preset)),n=Q(c.active).records[Ae(c.active)],r=n?t[n.as]:void 0;if(!r)throw Error(`Nothing was saved.`);c.onsaved(r)}catch(e){A(v,e instanceof Error?e.message:`Could not save.`,!0)}}var P=p(),I=E(P),L=e=>{var t=it();f(e,t)},R=r=>{var a=st(),l=S(a),u=T(l),p=w(l,2);s(p,17,()=>e(d),({field:e,catalogField:t,modelId:n})=>e.id,(t,r)=>{let i=()=>e(r).field,a=()=>e(r).catalogField,o=()=>e(r).modelId;{let r=n(()=>({...a(),required:i().required??a().required}));rt(t,{get modelId(){return o()},get field(){return e(r)},get label(){return i().label},get help(){return i().help},get idPrefix(){return c.active.form.id},get error(){return e(y)[i().id]},get value(){return e(h)[i().id]},onchange:t=>{e(h)[i().id]=t,delete e(y)[i().id]}})}});var _=w(p,2),b=t=>{var n=at(),r=T(n,!0);D(()=>o(r,e(k))),f(t,n)};t(_,t=>{e(k)&&t(b)});var x=w(_,2),C=t=>{var n=ot(),r=T(n,!0);D(()=>o(r,e(v))),f(t,n)};t(x,t=>{e(v)&&t(C)});var E=w(x,2),O=w(S(E),2);i(E),i(a),D(e=>o(u,`${c.id===void 0?`New`:`Edit`} ${e??``}`),[()=>F(c.active.form.label,c.noun,c.noun!==void 0)]),g(`submit`,a,N),m(`click`,O,function(...e){c.oncancel?.apply(this,e)}),f(r,a)};t(I,t=>{e(_)?t(R,-1):t(L)}),f(a,P),r()}h([`click`]);export{Ee as a,Te as i,rt as n,Ce as o,De as r,we as s,ct as t};
@@ -1,4 +1,4 @@
1
- import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,K as d,L as f,Lt as p,Ot as m,Pt as h,U as g,W as _,X as v,Y as y,a as b,bt as x,ct as S,d as C,ft as w,gt as T,ht as E,k as ee,mt as D,pt as O,q as k,st as A,v as j,vt as M}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{a as N}from"./Cekjnrta.js";import"./Bq8E3AWP.js";import{_t as te,bt as P,p as F,u as I,vt as ne}from"./IVfnZdeW.js";import"./denq4QT7.js";import"./D3syEjNq.js";import"./CbOFRn1N.js";y([`click`]),y([`click`,`keydown`]),y([`click`]);var L=[1,1.5,2,3,4,5];L[0],L[L.length-1],y([`click`,`pointerdown`,`pointermove`,`pointerup`]);var R=new Map(Object.entries({menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,search:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`,"chevron-right":`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z`,"chevron-left":`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z`,"chevron-down":`M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z`,check:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.04 6.43 5 7.07V21h4v-2.93c2.96-.64 5-3.54 5-7.07h-2z`,alert:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v6h-2zm0 8h2v2h-2z`,warning:`M1 21h22L12 2 1 21zm12-3h-2v-2h2zm0-4h-2v-4h2z`,info:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z`,home:`M3 10 12 2 21 10v11h-6v-7H9v7H3z`,user:`M12 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM4 21v-2c0-4 16-4 16 0v2H4z`,settings:`M10 2h4l1 3 3-1 3 3-1 3 3 1v4l-3 1 1 3-3 3-3-1-1 3h-4l-1-3-3 1-3-3 1-3-3-1v-4l3-1-1-3 3-3 3 1 1-3zm2 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,calendar:`M7 2h2v2h6V2h2v2h4v18H3V4h4V2zm-2 8v10h14V10H5zm2 2h4v4H7v-4z`,clock:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 2h2v5.5l4 2.5-1 1.5-5-3V6z`,camera:`M9 3h6l2 3h4v15H3V6h4l2-3zm3 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6z`,upload:`M11 16V7l-4 4-1.5-1.5L12 3l6.5 6.5L17 11l-4-4v9h-2zM3 18h18v3H3v-3z`,download:`M11 3h2v9l4-4 1.5 1.5L12 16l-6.5-6.5L7 8l4 4V3zM3 18h18v3H3v-3z`})),z=x([]);function B(t){for(let n=e(z).length-1;n>=0;n--){let r=e(z)[n].paths.get(t);if(r!==void 0)return r}return R.get(t)}var V=d(`<svg xmlns="http://www.w3.org/2000/svg" data-smrt-component="Icon" class="svelte-em2a54"><path></path></svg>`);function H(t,i){m(i,!0);let a=b(i,`size`,3,24),o=b(i,`color`,3,`currentColor`),s=b(i,`viewBox`,3,`0 0 24 24`),c=n(()=>!!i[`aria-label`]),l=n(()=>i.path??(i.name?B(i.name):``)),u=n(()=>typeof a()==`number`?`${a()}px`:a());var d=V(),f=D(d);A(()=>{j(d,`width`,e(u)),j(d,`height`,e(u)),j(d,`viewBox`,s()),j(d,`fill`,o()),j(d,`aria-hidden`,!e(c)),j(d,`aria-label`,i[`aria-label`]),j(d,`role`,e(c)?`img`:void 0),j(f,`d`,e(l))}),g(t,d),r()}var re=c(`<p class="smrt-empty-state__description svelte-1x475nf" data-smrt-part="description"> </p>`),ie=c(`<a class="smrt-empty-state__action svelte-1x475nf" data-smrt-part="trigger"> </a>`),ae=c(`<button type="button" class="smrt-empty-state__action svelte-1x475nf" data-smrt-part="trigger"> </button>`),oe=c(`<div data-smrt-component="EmptyState"><div class="smrt-empty-state__icon svelte-1x475nf" data-smrt-part="icon"><!></div> <h3 class="smrt-empty-state__title svelte-1x475nf" data-smrt-part="title"> </h3> <!> <!></div>`);function se(e,n){let r=b(n,`icon`,3,`inbox`),a=b(n,`size`,3,`md`),c={document:`<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
1
+ import{$ as e,B as t,Ct as n,Dt as r,E as i,Et as a,F as o,Ft as s,G as c,H as l,I as u,K as d,L as f,Lt as p,Ot as m,Pt as h,U as g,W as _,X as v,Y as y,a as b,bt as x,ct as S,d as C,ft as w,gt as T,ht as E,k as ee,mt as D,pt as O,q as k,st as A,v as j,vt as M}from"./DG3qFFTE.js";import"./xihTtKlq.js";import{a as N}from"./Cekjnrta.js";import"./Bq8E3AWP.js";import{_t as te,bt as P,p as F,u as I,vt as ne}from"./huXFmzl6.js";import"./denq4QT7.js";import"./D3syEjNq.js";import"./Dr57k01a.js";y([`click`]),y([`click`,`keydown`]),y([`click`]);var L=[1,1.5,2,3,4,5];L[0],L[L.length-1],y([`click`,`pointerdown`,`pointermove`,`pointerup`]);var R=new Map(Object.entries({menu:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,search:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z`,close:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z`,"chevron-right":`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z`,"chevron-left":`M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z`,"chevron-down":`M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z`,check:`M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z`,add:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z`,mic:`M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3z M17 11c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.04 6.43 5 7.07V21h4v-2.93c2.96-.64 5-3.54 5-7.07h-2z`,alert:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 5h2v6h-2zm0 8h2v2h-2z`,warning:`M1 21h22L12 2 1 21zm12-3h-2v-2h2zm0-4h-2v-4h2z`,info:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z`,home:`M3 10 12 2 21 10v11h-6v-7H9v7H3z`,user:`M12 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM4 21v-2c0-4 16-4 16 0v2H4z`,settings:`M10 2h4l1 3 3-1 3 3-1 3 3 1v4l-3 1 1 3-3 3-3-1-1 3h-4l-1-3-3 1-3-3 1-3-3-1v-4l3-1-1-3 3-3 3 1 1-3zm2 6a4 4 0 1 0 0 8 4 4 0 0 0 0-8z`,trash:`M7 3h10v2h4v2H3V5h4V3zm-2 6h14v12H5V9zm4 2v8h2v-8H9zm4 0v8h2v-8h-2z`,edit:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z`,calendar:`M7 2h2v2h6V2h2v2h4v18H3V4h4V2zm-2 8v10h14V10H5zm2 2h4v4H7v-4z`,clock:`M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 2h2v5.5l4 2.5-1 1.5-5-3V6z`,camera:`M9 3h6l2 3h4v15H3V6h4l2-3zm3 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6z`,upload:`M11 16V7l-4 4-1.5-1.5L12 3l6.5 6.5L17 11l-4-4v9h-2zM3 18h18v3H3v-3z`,download:`M11 3h2v9l4-4 1.5 1.5L12 16l-6.5-6.5L7 8l4 4V3zM3 18h18v3H3v-3z`})),z=x([]);function B(t){for(let n=e(z).length-1;n>=0;n--){let r=e(z)[n].paths.get(t);if(r!==void 0)return r}return R.get(t)}var V=d(`<svg xmlns="http://www.w3.org/2000/svg" data-smrt-component="Icon" class="svelte-em2a54"><path></path></svg>`);function H(t,i){m(i,!0);let a=b(i,`size`,3,24),o=b(i,`color`,3,`currentColor`),s=b(i,`viewBox`,3,`0 0 24 24`),c=n(()=>!!i[`aria-label`]),l=n(()=>i.path??(i.name?B(i.name):``)),u=n(()=>typeof a()==`number`?`${a()}px`:a());var d=V(),f=D(d);A(()=>{j(d,`width`,e(u)),j(d,`height`,e(u)),j(d,`viewBox`,s()),j(d,`fill`,o()),j(d,`aria-hidden`,!e(c)),j(d,`aria-label`,i[`aria-label`]),j(d,`role`,e(c)?`img`:void 0),j(f,`d`,e(l))}),g(t,d),r()}var re=c(`<p class="smrt-empty-state__description svelte-1x475nf" data-smrt-part="description"> </p>`),ie=c(`<a class="smrt-empty-state__action svelte-1x475nf" data-smrt-part="trigger"> </a>`),ae=c(`<button type="button" class="smrt-empty-state__action svelte-1x475nf" data-smrt-part="trigger"> </button>`),oe=c(`<div data-smrt-component="EmptyState"><div class="smrt-empty-state__icon svelte-1x475nf" data-smrt-part="icon"><!></div> <h3 class="smrt-empty-state__title svelte-1x475nf" data-smrt-part="title"> </h3> <!> <!></div>`);function se(e,n){let r=b(n,`icon`,3,`inbox`),a=b(n,`size`,3,`md`),c={document:`<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
2
2
  <path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6z"/>
3
3
  <path d="M14 2v6h6M16 13H8M16 17H8M10 9H8"/>
4
4
  </svg>`,folder:`<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">