{"version":3,"sources":["../../../../src/primitives/Scheduling/Admin/SiteHoursPanel.tsx"],"names":[],"mappings":";;;;AAyCO,SAAS,wBAAA,CAAyB;AAAA,EACvC,KAAA;AAAA,EACA,SAAA;AAAA,EACA,gBAAA;AAAA,EACA,mBAAA;AAAA,EACA,cAAA;AAAA,EACA,iBAAA;AAAA,EACA;AACF,CAAA,EAAkC;AAChC,EAAA,uBACE,IAAA,CAAC,SAAI,SAAA,EACH,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAC,SAAA,EAAA,EAAQ,WAAW,gBAAA,EACjB,QAAA,EAAA;AAAA,MAAA,mBAAA;AAAA,sBACD,GAAA;AAAA,QAAC,4BAAA;AAAA,QAAA;AAAA,UACC,KAAA;AAAA,UACA,UAAA,EAAY,IAAA;AAAA,UACX,GAAG;AAAA;AAAA;AACN,KAAA,EACF,CAAA;AAAA,oBACA,IAAA,CAAC,SAAA,EAAA,EAAQ,SAAA,EAAW,gBAAA,EACjB,QAAA,EAAA;AAAA,MAAA,cAAA;AAAA,sBACD,GAAA;AAAA,QAAC,qBAAA;AAAA,QAAA;AAAA,UACC,KAAA;AAAA,UACA,UAAA,EAAY,IAAA;AAAA,UACX,GAAG;AAAA;AAAA;AACN,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ","file":"SiteHoursPanel.mjs","sourcesContent":["import { type ReactNode } from 'react';\nimport {\n  SchedulingWorkingHoursEditor,\n  type SchedulingWorkingHoursEditorProps,\n} from './WorkingHoursEditor';\nimport {\n  SchedulingTimeOffList,\n  type SchedulingTimeOffListProps,\n} from './TimeOffList';\nimport type { UseSchedulingAdminResult } from '../../../hooks/useSchedulingAdmin';\n\nexport interface SchedulingSiteHoursPanelProps {\n  admin: UseSchedulingAdminResult;\n  className?: string;\n  /**\n   * Class for each section's wrapping container. Two sections render below\n   * the optional headings: working hours, then closures.\n   */\n  sectionClassName?: string;\n  workingHoursHeading?: ReactNode;\n  timeOffHeading?: ReactNode;\n  /**\n   * Pass-through to the underlying WorkingHoursEditor. `resourceId` is\n   * always null in the site panel — the picker scopes to site-wide rows.\n   */\n  workingHoursProps?: Omit<SchedulingWorkingHoursEditorProps, 'admin' | 'resourceId'>;\n  /**\n   * Pass-through to the underlying TimeOffList. `resourceId` is always null.\n   */\n  timeOffProps?: Omit<SchedulingTimeOffListProps, 'admin' | 'resourceId'>;\n}\n\n/**\n * Convenience wrapper for the salon-wide hours/closures pair.\n *\n * Site-wide rows in `scheduling_working_hours` and `scheduling_time_off` use\n * `resource_id IS NULL` to apply to every stylist — \"the whole salon is\n * closed Sundays\" or \"we're shut between Christmas and New Year.\" This\n * panel just stitches the two underlying editors together with `resourceId:\n * null` and lets consumers style the heading wrappers.\n */\nexport function SchedulingSiteHoursPanel({\n  admin,\n  className,\n  sectionClassName,\n  workingHoursHeading,\n  timeOffHeading,\n  workingHoursProps,\n  timeOffProps,\n}: SchedulingSiteHoursPanelProps) {\n  return (\n    <div className={className}>\n      <section className={sectionClassName}>\n        {workingHoursHeading}\n        <SchedulingWorkingHoursEditor\n          admin={admin}\n          resourceId={null}\n          {...workingHoursProps}\n        />\n      </section>\n      <section className={sectionClassName}>\n        {timeOffHeading}\n        <SchedulingTimeOffList\n          admin={admin}\n          resourceId={null}\n          {...timeOffProps}\n        />\n      </section>\n    </div>\n  );\n}\n"]}