PageSourceSearch

https://app.myautogms.com/static/js/4615.39049227.chunk.js

js myautogms.com collected 2026-10-04 03:53:52 UTC 9,650 bytes, 2 lines download raw bytes

1/*! For license information please see 4615.39049227.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkgarage_management_frontend=self.webpackChunkgarage_management_frontend||[]).push([[4615],{90522:(e,a,t)=>{t.d(a,{A:()=>n});t(9950);var l=t(9332),s=t(44414);const n=e=>{let{children:a,className:t}=e;return(0,s.jsx)("div",{className:(0,l.cn)("w-full min-h-0 pb-3 admin-page",t),children:a})}},63902:(e,a,t)=>{t.d(a,{A:()=>c});var l=t(9950),s=t(28429),n=t(12838),i=t(44414);const d=e=>{let{title:a,description:t,children:l,...s}=e;return(0,i.jsx)(n.A,{title:a,description:t,...s,children:l})},r=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/").filter(Boolean);if(0===e.length)return"";if(1===e.length&&"admin"===e[0])return"Admin";let a=e[e.length-1];return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/^[a-f0-9]{12,}$/i.test(e)||/^\d+$/.test(e)}(a)&&e.length>1&&(a=e[e.length-2]),function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[-_]+/g," ").trim().split(/\s+/).filter(Boolean).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}(decodeURIComponent(a))},c=e=>{let{title:a,description:t,children:n,breadcrumbs:c,actions:m,showHeader:o=!0,headerSpacingClass:x="pb-4",...p}=e;const h=(0,s.zy)(),u=(0,s.FE)(),g=h.pathname.startsWith("/admin"),b=(0,l.useMemo)((()=>{var e;const a=u[u.length-1],t=function(){const e=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim();return e?e.split("|")[0].trim():""}(null===a||void 0===a||null===(e=a.handle)||void 0===e?void 0:e.title);return t||(g?r(h.pathname):"")}),[g,h.pathname,u]),j="string"===typeof a&&a.trim().length>0?a:b,v="string"===typeof t&&t.trim().length>0?t:void 0,f=(0,l.useMemo)((()=>void 0!==c?c:g&&j?"admin"===j.toLowerCase()?[{label:"Admin"}]:[{label:"Admin",href:"/admin"},{label:j}]:void 0),[c,g,j]),N=o&&Boolean(j||v);return(0,i.jsxs)("div",{className:"w-full",children:[N&&(0,i.jsx)("div",{className:`${x} w-full`,children:(0,i.jsx)(d,{title:j,description:v,breadcrumbs:f,...p,children:m})}),n]})}},94615:(e,a,t)=>{t.r(a),t.d(a,{default:()=>w});var l=t(9950),s=t(90770),n=t(70446),i=t(61138),d=t(16243),r=t(13147),c=t(46355),m=t(63902),o=t(90522),x=t(14697),p=t(45161),h=t(44414);const u=["all","standard","paid"],g=["all","included","manual","addon","internal"],b={standard:"Standard",paid:"Paid"},j={included:"Included",manual:"Manual",addon:"Add-on",internal:"Platform admin"},v={standard:"border-emerald-200 bg-emerald-50 text-emerald-700",paid:"border-amber-200 bg-amber-50 text-amber-700",included:"border-slate-200 bg-slate-50 text-slate-700",manual:"border-blue-200 bg-blue-50 text-blue-700",addon:"border-violet-200 bg-violet-50 text-violet-700",internal:"border-blue-200 bg-blue-50 text-blue-700"},f=e=>{let{value:a,children:t}=e;return(0,h.jsx)("span",{className:`inline-flex items-center rounded-md border px-2 py-1 text-xs font-medium ${v[a]||v.included}`,children:t})},N=e=>{let{icon:a,label:t,value:l}=e;return(0,h.jsxs)("div",{className:"border border-slate-200 bg-white px-4 py-3",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[(0,h.jsx)(a,{className:"h-3.5 w-3.5"}),t]}),(0,h.jsx)("div",{className:"mt-1 text-2xl font-semibold text-slate-950",children:l})]})},y=e=>{let{options:a,value:t,onChange:l,labels:s}=e;return(0,h.jsx)("div",{className:"inline-flex rounded-md border border-slate-200 bg-white p-1",children:a.map((e=>(0,h.jsx)("button",{type:"button",onClick:()=>l(e),className:"rounded-sm px-3 py-1.5 text-xs font-medium transition-colors "+(t===e?"bg-slate-950 text-white":"text-slate-600 hover:bg-slate-50"),children:(null===s||void 0===s?void 0:s[e])||e.charAt(0).toUpperCase()+e.slice(1)},e)))})},k=e=>{const a=Object.entries(e||{});return a.length?a.map((e=>{let[a,t]=e;return`${a}: ${t}`})).join(", "):"No limits"},w=()=>{const e=(0,l.useMemo)((()=>Object.entries(p.qt).map((e=>{let[a,t]=e;return{key:a,label:t.label||a,package:t.package||"paid",management:t.management||"manual",standardDefault:!0===t.standardDefault,enterpriseIncluded:!0===t.enterpriseIncluded,pagesUnlocked:t.pagesUnlocked||[],limits:t.limits||{},enterpriseLimits:t.enterpriseLimits||{}}})).sort(((e,a)=>e.package!==a.package?"standard"===e.package?-1:1:e.label.localeCompare(a.label)))),[]),[a,t]=(0,l.useState)(""),[v,w]=(0,l.useState)("all"),[A,C]=(0,l.useState)("all"),M=(0,l.useMemo)((()=>{const t=a.trim().toLowerCase();return e.filter((e=>{const a="all"===v||e.package===v,l="all"===A||e.management===A,s=[e.key,e.label,e.package,e.management,...e.pagesUnlocked.flatMap((e=>[e.label,e.path]))].join(" ").toLowerCase();return a&&l&&(!t||s.includes(t))}))}),[A,v,a,e]),$=(0,l.useMemo)((()=>(e=>e.reduce(((e,a)=>(e.total+=1,e[a.package]+=1,"addon"===a.management&&(e.addon+=1),a.enterpriseIncluded&&(e.enterprise+=1),e)),{total:0,standard:0,paid:0,addon:0,enterprise:0}))(e)),[e]);return(0,h.jsx)(m.A,{title:"Entitlements Matrix",description:"Feature packaging, billing ownership, defaults, and unlocked app surfaces.",breadcrumbs:[{label:"Admin",href:"/admin"},{label:"Entitlements Matrix"}],children:(0,h.jsxs)(o.A,{className:"space-y-5",children:[(0,h.jsxs)("section",{className:"grid gap-3 md:grid-cols-4",children:[(0,h.jsx)(N,{icon:s.A,label:"Features",value:$.total}),(0,h.jsx)(N,{icon:n.A,label:"Standard",value:$.standard}),(0,h.jsx)(N,{icon:i.A,label:"Paid",value:$.paid}),(0,h.jsx)(N,{icon:d.A,label:"Enterprise included",value:$.enterprise})]}),(0,h.jsxs)("section",{className:"border border-slate-200 bg-white",children:[(0,h.jsxs)("div",{className:"flex flex-col gap-3 border-b border-slate-200 px-4 py-4 lg:flex-row lg:items-center lg:justify-between",children:[(0,h.jsxs)("div",{className:"relative w-full lg:max-w-sm",children:[(0,h.jsx)(r.A,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-slate-400"}),(0,h.jsx)(x.p,{value:a,onChange:e=>t(e.target.value),placeholder:"Search features or pages",className:"pl-9"})]}),(0,h.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,h.jsxs)("div",{className:"flex items-center gap-2 text-xs font-medium text-slate-500",children:[(0,h.jsx)(c.A,{className:"h-3.5 w-3.5"}),"Package"]}
2),(0,h.jsx)(y,{options:u,value:v,onChange:w,labels:{all:"All",...b}}),(0,h.jsx)(y,{options:g,value:A,onChange:C,labels:{all:"All",...j}})]})]}),(0,h.jsx)("div",{className:"overflow-x-auto",children:(0,h.jsxs)("table",{className:"min-w-full divide-y divide-slate-200 text-sm",children:[(0,h.jsx)("thead",{className:"bg-slate-50 text-left text-xs font-semibold uppercase tracking-wide text-slate-500",children:(0,h.jsxs)("tr",{children:[(0,h.jsx)("th",{className:"w-64 px-4 py-3",children:"Feature"}),(0,h.jsx)("th",{className:"px-4 py-3",children:"Package"}),(0,h.jsx)("th",{className:"px-4 py-3",children:"Managed by"}),(0,h.jsx)("th",{className:"px-4 py-3",children:"Defaults"}),(0,h.jsx)("th",{className:"min-w-80 px-4 py-3",children:"Pages unlocked"}),(0,h.jsx)("th",{className:"min-w-72 px-4 py-3",children:"Limits"})]})}),(0,h.jsx)("tbody",{className:"divide-y divide-slate-100 bg-white",children:M.map((e=>(0,h.jsxs)("tr",{className:"align-top hover:bg-slate-50/70",children:[(0,h.jsxs)("td",{className:"px-4 py-4",children:[(0,h.jsx)("div",{className:"font-semibold text-slate-950",children:e.label}),(0,h.jsx)("div",{className:"mt-1 font-mono text-xs text-slate-500",children:e.key})]}),(0,h.jsx)("td",{className:"px-4 py-4",children:(0,h.jsx)(f,{value:e.package,children:b[e.package]||e.package})}),(0,h.jsx)("td",{className:"px-4 py-4",children:(0,h.jsx)(f,{value:e.management,children:j[e.management]||e.management})}),(0,h.jsx)("td",{className:"px-4 py-4",children:(0,h.jsxs)("div",{className:"space-y-1 text-xs text-slate-600",children:[(0,h.jsx)("div",{children:e.standardDefault?"Enabled by default":"Off by default"}),(0,h.jsx)("div",{children:e.enterpriseIncluded?"Enterprise included":"No enterprise default"})]})}),(0,h.jsx)("td",{className:"px-4 py-4",children:e.pagesUnlocked.length?(0,h.jsx)("div",{className:"space-y-2",children:e.pagesUnlocked.map((a=>(0,h.jsxs)("div",{children:[(0,h.jsx)("div",{className:"text-sm font-medium text-slate-800",children:a.label}),(0,h.jsx)("div",{className:"font-mono text-xs text-slate-500",children:a.path})]},`${e.key}-${a.label}-${a.path}`)))}):(0,h.jsx)("span",{className:"text-xs text-slate-400",children:"No dedicated page"})}),(0,h.jsxs)("td",{className:"px-4 py-4",children:[(0,h.jsx)("div",{className:"text-xs leading-5 text-slate-600",children:k(e.limits)}),Object.keys(e.enterpriseLimits).length?(0,h.jsxs)("div",{className:"mt-2 text-xs leading-5 text-slate-500",children:["Enterprise: ",k(e.enterpriseLimits)]}):null]})]},e.key)))})]})}),M.length?null:(0,h.jsx)("div",{className:"px-4 py-10 text-center text-sm text-slate-500",children:"No entitlements match the current filters."})]})]})})}},70446:(e,a,t)=>{t.d(a,{A:()=>l});const l=(0,t(44489).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},61138:(e,a,t)=>{t.d(a,{A:()=>l});
2const l=(0,t(44489).A)("circle-dollar-sign",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]])},16243:(e,a,t)=>{t.d(a,{A:()=>l});const l=(0,t(44489).A)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.