{"version":3,"file":"grid_list_controls.cSdUSMI3.mjs","names":[],"sources":["https:/framerusercontent.com/modules/us5WlGmK4L0pTI2sUDRa/r9f9ku66KrnMOtP8DsBp/grid_list_controls.js"],"sourcesContent":["// soundee-core rebuild r17 (2026-09-18) — engine state moved to globalThis, so a second engine build shares the player, see docs/migration/framer-core/07-framer-sync-log.md\n// soundee-core rebuild r13 (2026-08-27) — the runtime stopped repeating itself:\n// one tracking PUT per page instead of one per remounted bundle, one exit\n// beacon per exit instead of two, and one store-config fetch instead of one\n// per bundle. This file reads none of that, but a built module pins the build\n// of everything it imports, so without a content change of its own it keeps\n// loading the copy that still floods.\n// soundee-core rebuild r12 (2026-08-27) — session tracking now sends is_framer\n// so the backend can tell a Framer storefront apart from the pagebuilder. This\n// file never reads the flag, but a built module pins the build of everything it\n// imports, so without a content change of its own it keeps loading the copy\n// that still sent nothing.\n// grid_list_controls — the panel the kits and services grids put in front of a\n// producer.\n//\n// The two are the same component with a different catalogue behind them, so\n// the controls are written once and named per entity. Keeping them apart is\n// how they drifted: the same setting carried different copy in each, and every\n// polish pass had to be made twice — which is why one panel explained a\n// minimum height in `100vh` while the tracks list explained it in screens.\n//\n// Grouping follows the tracks list. One level deep, and the two settings a\n// producer sets per breakpoint — Min Card Width and Gap — stay at the top\n// level in the components themselves, because a Framer breakpoint override\n// replaces a whole object value and cannot reach one field inside it.\nimport{ControlType}from\"framer\";export const DEFAULT_GRID_CONTENT={// \"Tracks\" is the generic browse value shared with the tracks list and the\n// carousel; the panel labels it with this grid's own word.\nsource:\"Tracks\",initialFilters:\"\",excludeId:0,filtersSource:\"Global Filters\"};export const DEFAULT_GRID_CARD={showPrice:true,showCoverBorder:false,showLike:true};export const DEFAULT_GRID_LIST={showCount:true,infiniteLoading:\"On\",limit:12,spinnerColor:\"rgba(255,255,255,0.55)\",minHeightOffset:0};export const DEFAULT_GRID_SCROLLING={scrollTargetId:\"\",scrollOffset:0};/** Empty copy names the catalogue, so its default is built per entity. */export function defaultGridEmpty(nounPlural){return{title:`No ${nounPlural} found`,text:\"Try changing or resetting your filters to see more results.\",showReset:true};}export function gridListControls({noun,nounPlural,Noun,slotProp,filtersPlaceholder}){const hasSlot=props=>Boolean(props[slotProp]);return{// Flat, not grouped: a Framer component variable (a page parameter, a\n// CMS field) only binds to a top-level prop, and these are exactly the\n// ones a producer wires to one.\nsource:{type:ControlType.Enum,title:\"Source\",options:[\"Tracks\",\"Favorites\"],optionTitles:[Noun,\"Favorites\"],defaultValue:DEFAULT_GRID_CONTENT.source,description:`Which list to load. Favorites uses the signed-in visitor; ${Noun} browses the catalogue.`},initialFilters:{type:ControlType.String,title:\"Filters\",placeholder:filtersPlaceholder,defaultValue:DEFAULT_GRID_CONTENT.initialFilters,description:\"URL query string sent to the endpoint. Bind a page parameter here to drive the grid from the address.\",hidden:props=>props.source!==\"Tracks\"},excludeId:{type:ControlType.Number,title:\"Exclude\",defaultValue:DEFAULT_GRID_CONTENT.excludeId,min:0,step:1,displayStepper:false,description:\"An entity id to leave out — bind it to the current page's item so a related grid never lists the one being viewed. 0 leaves everything in.\"},filtersSource:{type:ControlType.Enum,title:\"Follow\",options:[\"Global Filters\",\"Initial Filters Only\"],optionTitles:[\"Filter Bar\",\"Own Filters\"],defaultValue:DEFAULT_GRID_CONTENT.filtersSource,description:\"Whether this grid follows the filter bar on the page, or stays on its own query.\"},card:{type:ControlType.Object,title:\"Card\",icon:\"object\",buttonTitle:\"Contents\",defaultValue:DEFAULT_GRID_CARD,hidden:hasSlot,description:\"What the card carries besides the artwork and the title.\",controls:{showPrice:{type:ControlType.Boolean,title:\"Price\",defaultValue:DEFAULT_GRID_CARD.showPrice,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"The buy button under the title. Off leaves the grid \"+\"browsable but with no way to reach the checkout.\"},showLike:{type:ControlType.Boolean,title:\"Like\",defaultValue:DEFAULT_GRID_CARD.showLike,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"The heart, in the cover's bottom-left. A signed-out \"+\"visitor is sent to the overlay named auth instead of \"+\"liking.\"},showCoverBorder:{type:ControlType.Boolean,title:\"Cover Border\",defaultValue:DEFAULT_GRID_CARD.showCoverBorder,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"A hairline around the artwork. Off by default: an \"+\"outline over a cover is a line the artwork did not \"+\"ask for, and on a dark one it reads as a halo — but \"+\"it tidies up a grid of pale covers.\"}}},list:{type:ControlType.Object,title:\"List\",icon:\"object\",buttonTitle:\"Options\",defaultValue:DEFAULT_GRID_LIST,description:\"The grid around the cards: how many arrive at a time, what \"+\"sits above them, and what is shown while more are on the way.\",controls:{showCount:{type:ControlType.Boolean,title:\"Result Count\",defaultValue:DEFAULT_GRID_LIST.showCount,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:`A line above the grid — \"12 ${Noun}\". The word `+\"follows the entity type this grid registers, and it \"+\"is styled from Card Style. Its own component exists \"+\"too, for putting it somewhere else.\"},infiniteLoading:{type:ControlType.Enum,title:\"Infinite\",options:[\"On\",\"Off\"],optionTitles:[\"On\",\"Off\"],defaultValue:DEFAULT_GRID_LIST.infiniteLoading,displaySegmentedControl:true,description:\"On loads the next page as the visitor reaches the \"+\"end. Off shows one page, capped by Limit.\"},limit:{type:ControlType.Number,title:\"Limit\",min:1,max:100,step:1,defaultValue:DEFAULT_GRID_LIST.limit,description:`How many ${nounPlural} arrive at a time, and how many `+\"are shown in total when Infinite is off.\"},spinnerColor:{type:ControlType.Color,title:\"Spinner\",defaultValue:DEFAULT_GRID_LIST.spinnerColor,description:\"Shown under the last card while the next page loads. \"+\"Only seen with Infinite on.\"}}},empty:{type:ControlType.Object,title:\"Empty State\",icon:\"object\",buttonTitle:\"Copy\",defaultValue:defaultGridEmpty(nounPlural),description:\"What stands in the grid's place when the filters match \"+\"nothing. A grid that quietly disappears reads as a page that \"+\"failed to load.\",controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:defaultGridEmpty(nounPlural).title},text:{type:ControlType.String,title:\"Text\",defaultValue:defaultGridEmpty(nounPlural).text,displayTextArea:true},showReset:{type:ControlType.Boolean,title:\"Reset Button\",defaultValue:defaultGridEmpty(nounPlural).showReset,enabledTitle:\"Show\",disabledTitle:\"Hide\",description:\"Offers a way back when the filter bar is what emptied \"+\"the grid. Hidden when nothing is filtering.\"}}},scrolling:{type:ControlType.Object,title:\"Scrolling\",icon:\"interaction\",buttonTitle:\"Target\",defaultValue:DEFAULT_GRID_SCROLLING,description:\"Where the page lands when the filters change and the results \"+\"underneath are replaced.\",controls:{scrollTargetId:{type:ControlType.String,title:\"Target ID\",defaultValue:DEFAULT_GRID_SCROLLING.scrollTargetId,placeholder:\"Auto — the filter bar\",description:\"Leave it empty and the page jumps back to the Soundee \"+\"Filter Bar when the filters change, or to the top if \"+\"there is none. Set an id only to land somewhere else.\"},scrollOffset:{type:ControlType.Number,title:\"Offset\",defaultValue:DEFAULT_GRID_SCROLLING.scrollOffset,min:0,max:200,step:1,unit:\"px\",description:\"Extra breathing room on top of what is measured. A \"+\"fixed nav and a sticky filter bar are already cleared \"+\"automatically — their heights do not belong here.\"}}}};}/** Min Card Width and Gap, which stay top-level so a breakpoint can reach them. */export function gridLayoutControls(nounPlural){return{gridMinWidth:{type:ControlType.Number,title:\"Min Card Width\",min:100,max:500,step:10,defaultValue:240,unit:\"px\",description:\"How narrow a card may get before the grid drops to fewer \"+\"columns. This is what makes the grid reflow on its own — set \"+\"it once rather than counting columns per breakpoint.\"},gap:{type:ControlType.Number,title:\"Gap\",min:0,max:40,step:1,defaultValue:16,unit:\"px\",description:`Space between ${nounPlural}, across and down.`}};}\nexport const __FramerMetadata__ = {\"exports\":{\"GridCardGroup\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_GRID_CARD\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GridScrollingGroup\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"gridListControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GridEmptyGroup\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultGridEmpty\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GridListGroup\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_GRID_CONTENT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GridContentGroup\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"gridLayoutControls\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_GRID_LIST\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_GRID_SCROLLING\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GridControlsOptions\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./grid_list_controls.map"],"mappings":"qGA2Byb,SAAgB,EAAiB,EAAW,CAAC,MAAM,CAAC,MAAM,MAAM,EAAW,QAAQ,KAAK,8DAA8D,UAAU,EAAI,CAAE,CAAC,SAAgB,EAAiB,CAAC,OAAK,aAAW,OAAK,WAAS,sBAAoB,CAA+C,MAAM,CAGzuB,OAAO,CAAC,KAAK,EAAY,KAAK,MAAM,SAAS,QAAQ,CAAC,SAAS,WAAW,EAAE,aAAa,CAAC,EAAK,WAAW,EAAE,aAAa,EAAqB,OAAO,YAAY,6DAA6D,EAAK,wBAAwB,EAAE,eAAe,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,YAAY,EAAmB,aAAa,EAAqB,eAAe,YAAY,wGAAwG,OAAO,GAAO,EAAM,SAAS,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAY,OAAO,MAAM,UAAU,aAAa,EAAqB,UAAU,IAAI,EAAE,KAAK,EAAE,eAAe,GAAM,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