1import{r as s,R as r,j as u}from"./jsx-runtime-BMrMXMSG.js";import{D as m,F as T,u as P,O as E}from"./components-DluuR3Ss.js";import{i as M,d as N,n as y,M as k,E as I,u as R,P as D,b as F,t as B,c as _,e as O,S as V,T as W,f as j,g as U,I as H,h as $,L as G,a as K}from"./i18n-DewKUMbJ.js";import{F as z,S as J}from"./context-C14cgRHY.js";const f="data-lock-scrolling",b="data-lock-scrolling-hidden",S="data-lock-scrolling-wrapper";let g=0;function Z(){const{body:o}=document;return o.scrollHeight>o.clientHeight}class Q{constructor(){this.scrollLocks=0,this.locked=!1}registerScrollLock(){this.scrollLocks+=1,this.handleScrollLocking()}unregisterScrollLock(){this.scrollLocks-=1,this.handleScrollLocking()}handleScrollLocking(){if(M)return;const{scrollLocks:e}=this,{body:n}=document,t=n.firstElementChild;e===0?(n.removeAttribute(f),n.removeAttribute(b),t&&t.removeAttribute(S),window.scroll(0,g),this.locked=!1):e>0&&!this.locked&&(g=window.pageYOffset,n.setAttribute(f,""),Z()||n.setAttribute(b,""),t&&(t.setAttribute(S,""),t.scrollTop=g),this.locked=!0)}resetScrollPosition(){g=0}}const Y=/\[(.*?)\]|(\w+)/g;function A(o,e,n){if(o==null)return;const t=Array.isArray(e)?e:X(e);let a=o;for(let i=0;i<t.length;i++){const l=a[t[i]];if(l===void 0)return n;a=l}return a}function X(o){const e=[];let n;for(;n=Y.exec(o);){const[,t,a]=n;e.push(t||a)}return e}function q(...o){let e={};for(const n of o)e=w(e,n);return e}function w(o,e){const n=Array.isArray(o)?[...o]:{...o};for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))L(e[t])&&L(n[t])?n[t]=w(n[t],e[t]):n[t]=e[t];else continue;return n}function L(o){return o!==null&&typeof o=="object"}const ee=/{([^}]*)}/g;class x{constructor(e){this.translation={},this.translation=Array.isArray(e)?q(...e.slice().reverse()):e}translate(e,n){const t=A(this.translation,e,"");return t?n?t.replace(ee,a=>{const i=a.substring(1,a.length-1);if(n[i]===void 0){const l=JSON.stringify(n);throw new Error(`Error in translation for key '${e}'. No replacement found for key '${i}'. The following replacements were passed: '${l}'`)}return n[i]}):t:""}translationKeyExists(e){return!!A(this.translation,e)}}const te=s.createContext(void 0),ne=function({children:e}){const[n,t]=s.useState(!1),a=s.useCallback(N(()=>{n!==y().matches&&t(!n)},40,{trailing:!0,leading:!0,maxWait:40}),[n]);s.useEffect(()=>{t(y().matches)},[]);const i=s.useMemo(()=>({isNavigationCollapsed:n}),[n]);return r.createElement(k.Provider,{value:i},r.createElement(I,{event:"resize",handler:a}),e)};function oe(o,e){return r.createElement("div",{id:"PolarisPortalsContainer",ref:e})}const ae=s.forwardRef(oe);function ie({children:o,container:e}){const n=R(),t=s.useRef(null),a=s.useMemo(()=>e?{container:e}:n?{container:t.current}:{container:null},[e,n]);return r.createElement(D.Provider,{value:a},o,e?null:r.createElement(ae,{ref:t}))}function re({children:o}){const[e,n]=s.useState([]),t=s.useCallback(l=>{n(c=>[...c,l])},[]),a=s.useCallback(l=>{let c=!0;return n(h=>{const d=[...h],p=d.indexOf(l);return p===-1?c=!1:d.splice(p,1),d}),c},[]),i=s.useMemo(()=>({trapFocusList:e,add:t,remove:a}),[t,e,a]);return r.createElement(z.Provider,{value:i},o)}const se={tooltip:0,hovercard:0};function le({children:o}){const[e,n]=s.useState(se),t=s.useCallback(l=>{n(c=>({...c,[l]:c[l]+1}))},[]),a=s.useCallback(l=>{n(c=>({...c,[l]:c[l]-1}))},[]),i=s.useMemo(()=>({presenceList:Object.entries(e).reduce((l,c)=>{const[h,d]=c;return{...l,[h]:d>=1}},{}),presenceCounter:e,addPresence:t,removePresence:a}),[t,a,e]);return r.createElement(F.Provider,{value:i},o)}const ce=20,v=30,ue=v+10;function de(){var a;const o=document.createElement("div");o.setAttribute("style",`position: absolute; opacity: 0; transform: translate3d(-9999px, -9999px, 0); pointer-events: none; width:${v}px; height:${v}px;`);const e=document.createElement("div");e.setAttribute("style",`width:100%; height: ${ue}; overflow:scroll; scrollbar-width: thin;`),o.appendChild(e),document.body.appendChild(o);const n=v-(((a=o.firstElementChild)==null?void 0:a.clientWidth)??0),t=Math.min(n,ce);document.documentElement.style.setProperty("--pc-app-provider-scrollbar-width",`${t}px`),document.body.removeChild(o)}let me=class extends s.Component{constructor(e){super(e),this.setBodyStyles=()=>{document.body.style.backgroundColor="var(--p-color-bg)",document.body.style.color="var(--p-color-text)"},this.setRootAttributes=()=>{const a=this.getThemeName();B.forEach(i=>
1{document.documentElement.classList.toggle(_(i),i===a)})},this.getThemeName=()=>this.props.theme??O,this.stickyManager=new V,this.scrollLockManager=new Q;const{i18n:n,linkComponent:t}=this.props;this.state={link:t,intl:new x(n)}}componentDidMount(){if(document!=null){this.stickyManager.setContainer(document),this.setBodyStyles(),this.setRootAttributes();const e=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&(navigator.userAgent.includes("Version/16.1")||navigator.userAgent.includes("Version/16.2")||navigator.userAgent.includes("Version/16.3")),n=navigator.userAgent.includes("Shopify Mobile/iOS")&&(navigator.userAgent.includes("OS 16_1")||navigator.userAgent.includes("OS 16_2")||navigator.userAgent.includes("OS 16_3"));(e||n)&&document.documentElement.classList.add("Polaris-Safari-16-Font-Optical-Sizing-Patch")}de()}componentDidUpdate({i18n:e,linkComponent:n}){const{i18n:t,linkComponent:a}=this.props;this.setRootAttributes(),!(t===e&&a===n)&&this.setState({link:a,intl:new x(t)})}render(){const{children:e,features:n={}}=this.props,t=this.getThemeName(),{intl:a,link:i}=this.state;return r.createElement(W.Provider,{value:t},r.createElement(j.Provider,{value:U(t)},r.createElement(te.Provider,{value:n},r.createElement(H.Provider,{value:a},r.createElement(J.Provider,{value:this.scrollLockManager},r.createElement($.Provider,{value:this.stickyManager},r.createElement(G.Provider,{value:i},r.createElement(ne,null,r.createElement(ie,null,r.createElement(re,null,r.createElement(le,null,e)))))))))))}};const he={ActionMenu:{Actions:{moreActions:"More actions"},RollupActions:{rollupButton:"View actions"}},ActionList:{SearchField:{clearButtonLabel:"Clear",search:"Search",placeholder:"Search actions"}},Avatar:{label:"Avatar",labelWithInitials:"Avatar with initials {initials}"},Autocomplete:{spinnerAccessibilityLabel:"Loading",ellipsis:"{content}â¦"},Badge:{PROGRESS_LABELS:{incomplete:"Incomplete",partiallyComplete:"Partially complete",complete:"Complete"},TONE_LABELS:{info:"Info",success:"Success",warning:"Warning",critical:"Critical",attention:"Attention",new:"New",readOnly:"Read-only",enabled:"Enabled"},progressAndTone:"{toneLabel} {progressLabel}"},Banner:{dismissButton:"Dismiss notification"},Button:{spinnerAccessibilityLabel:"Loading"},Common:{checkbox:"checkbox",undo:"Undo",cancel:"Cancel",clear:"Clear",close:"Close",submit:"Submit",more:"More"},ContextualSaveBar:{save:"Save",discard:"Discard"},DataTable:{sortAccessibilityLabel:"sort {direction} by",navAccessibilityLabel:"Scroll table {direction} one column",totalsRowHeading:"Totals",totalRowHeading:"Total"},DatePicker:{previousMonth:"Show previous month, {previousMonthName} {showPreviousYear}",nextMonth:"Show next month, {nextMonth} {nextYear}",today:"Today ",start:"Start of range",end:"End of range",months:{january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},days:{monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},daysAbbreviated:{monday:"Mo",tuesday:"Tu",wednesday:"We",thursday:"Th",friday:"Fr",saturday:"Sa",sunday:"Su"}},DiscardConfirmationModal:{title:"Discard all unsaved changes",message:"If you discard changes, youâll delete any edits you made since you last saved.",primaryAction:"Discard changes",secondaryAction:"Continue editing"}
1,DropZone:{single:{overlayTextFile:"Drop file to upload",overlayTextImage:"Drop image to upload",overlayTextVideo:"Drop video to upload",actionTitleFile:"Add file",actionTitleImage:"Add image",actionTitleVideo:"Add video",actionHintFile:"or drop file to upload",actionHintImage:"or drop image to upload",actionHintVideo:"or drop video to upload",labelFile:"Upload file",labelImage:"Upload image",labelVideo:"Upload video"},allowMultiple:{overlayTextFile:"Drop files to upload",overlayTextImage:"Drop images to upload",overlayTextVideo:"Drop videos to upload",actionTitleFile:"Add files",actionTitleImage:"Add images",actionTitleVideo:"Add videos",actionHintFile:"or drop files to upload",actionHintImage:"or drop images to upload",actionHintVideo:"or drop videos to upload",labelFile:"Upload files",labelImage:"Upload images",labelVideo:"Upload videos"},errorOverlayTextFile:"File type is not valid",errorOverlayTextImage:"Image type is not valid",errorOverlayTextVideo:"Video type is not valid"},EmptySearchResult:{altText:"Empty search results"},Frame:{skipToContent:"Skip to content",navigationLabel:"Navigation",Navigation:{closeMobileNavigationLabel:"Close navigation"}},FullscreenBar:{back:"Back",accessibilityLabel:"Exit fullscreen mode"},Filters:{moreFilters:"More filters",moreFiltersWithCount:"More filters ({count})",filter:"Filter {resourceName}",noFiltersApplied:"No filters applied",cancel:"Cancel",done:"Done",clearAllFilters:"Clear all filters",clear:"Clear",clearLabel:"Clear {filterName}",addFilter:"Add filter",clearFilters:"Clear all",searchInView:"in:{viewName}"},FilterPill:{clear:"Clear",unsavedChanges:"Unsaved changes - {label}"},IndexFilters:{searchFilterTooltip:"Search and filter",searchFilterTooltipWithShortcut:"Search and filter (F)",searchFilterAccessibilityLabel:"Search and filter results",sort:"Sort your results",addView:"Add a new view",newView:"Custom search",SortButton:{ariaLabel:"Sort the results",tooltip:"Sort",title:"Sort by",sorting:{asc:"Ascending",desc:"Descending",az:"A-Z",za:"Z-A"}},EditColumnsButton:{tooltip:"Edit columns",accessibilityLabel:"Customize table column order and visibility"},UpdateButtons:{cancel:"Cancel",update:"Update",save:"Save",saveAs:"Save as",modal:{title:"Save view as",label:"Name",sameName:"A view with this name already exists. Please choose a different name.",save:"Save",cancel:"Cancel"}}},IndexProvider:{defaultItemSingular:"Item",defaultItemPlural:"Items",allItemsSelected:"All {itemsLength}+ {resourceNamePlural} are selected",selected:"{selectedItemsCount} selected",a11yCheckboxDeselectAllSingle:"Deselect {resourceNameSingular}",a11yCheckboxSelectAllSingle:"Select {resourceNameSingular}",a11yCheckboxDeselectAllMultiple:"Deselect all {itemsLength} {resourceNamePlural}",a11yCheckboxSelectAllMultiple:"Select all {itemsLength} {resourceNamePlural}"},IndexTable:{emptySearchTitle:"No {resourceNamePlural} found",emptySearchDescription:"Try changing the filters or search term",onboardingBadgeText:"New",resourceLoadingAccessibilityLabel:"Loading {resourceNamePlural}â¦",selectAllLabel:"Select all {resourceNamePlural}",selected:"{selectedItemsCount} selected",undo:"Undo",selectAllItems:"Select all {itemsLength}+ {resourceNamePlural}",selectItem:"Select {resourceName}",selectButtonText:"Select",sortAccessibilityLabel:"sort {direction} by"},Loading:{label:"Page loading bar"},Modal:{iFrameTitle:"body markup",modalWarning:"These required properties are missing from Modal: {missingProps}"},Page:{Header:{rollupActionsLabel:"View actions for {title}",pageReadyAccessibilityLabel:"{title}. This page is ready"}},Pagination:{previous:"Previous",next:"Next",pagination:"Pagination"},ProgressBar:{negativeWarningMessage:"Values passed to the progress prop shouldnât be negative. Resetting {progress} to 0.",exceedWarningMessage:"Values passed to the progress prop shouldnât exceed 100. Setting {progress} to 100."},ResourceList:{sortingLabel:"Sort by",defaultItemSingular:"item",defaultItemPlural:"items",showing:"Showing {itemsCount} {resource}",showingTotalCount:"Showing {itemsCount} of {totalItemsCount} {resource}",loading:"Loading {resource}",selected:"{selectedItemsCount} selected",allItemsSelected:"All {itemsLength}+ {resourceNamePlural} in your store are selected",allFilteredItemsSelected:"All {itemsLength}+ {resourceNamePlural} in this filter are selected",selectAllItems:"Select all {itemsLength}+ {resourceNamePlural} in your store",selectAllFilteredItems:"Select all {itemsLength}+ {resourceNamePlural} in this filter",emptySearchResultTitle:"No {resourceNamePlural} found",emptySearchResultDescription:"Try changing the filters or search term",selectButtonText:"Select",a11yCheckboxDeselectAllSingle:"Deselect {resourceNameSingular}",a11yCheckboxSelectAllSingle:"Select {resourceNameSingular}",a11yCheckboxDeselectAllMultiple:"Deselect all {itemsLength} {resourceNamePlural}",a11yCheckboxSelectAllMultiple:"Select all {itemsLength} {resourceNamePlural}",Item:{actionsDropdownLabel:"Actions for {accessibilityLabel}",actionsDropdown:"Actions dropdown",viewItem:"View details for {itemName}"},BulkActions:{actionsActivatorLabel:"Actions",moreActionsActivatorLabel:"More actions"}},SkeletonPage:{loadingLabel:"Page loading"},Tabs:{newViewAccessibilityLabel:"Create new view",newViewTooltip:"
1Create view",toggleTabsLabel:"More views",Tab:{rename:"Rename view",duplicate:"Duplicate view",edit:"Edit view",editColumns:"Edit columns",delete:"Delete view",copy:"Copy of {name}",deleteModal:{title:"Delete view?",description:"This canât be undone. {viewName} view will no longer be available in your admin.",cancel:"Cancel",delete:"Delete view"}},RenameModal:{title:"Rename view",label:"Name",cancel:"Cancel",create:"Save",errors:{sameName:"A view with this name already exists. Please choose a different name."}},DuplicateModal:{title:"Duplicate view",label:"Name",cancel:"Cancel",create:"Create view",errors:{sameName:"A view with this name already exists. Please choose a different name."}},CreateViewModal:{title:"Create new view",label:"Name",cancel:"Cancel",create:"Create view",errors:{sameName:"A view with this name already exists. Please choose a different name."}}},Tag:{ariaLabel:"Remove {children}"},TextField:{characterCount:"{count} characters",characterCountWithMaxLength:"{count} of {limit} characters used"},TooltipOverlay:{accessibilityLabel:"Tooltip: {label}"},TopBar:{toggleMenuLabel:"Toggle menu",SearchField:{clearButtonLabel:"Clear",search:"Search"}},MediaCard:{dismissButton:"Dismiss",popoverButton:"Actions"},VideoThumbnail:{playButtonA11yLabel:{default:"Play video",defaultWithDuration:"Play video of length {duration}",duration:{hours:{other:{only:"{hourCount} hours",andMinutes:"{hourCount} hours and {minuteCount} minutes",andMinute:"{hourCount} hours and {minuteCount} minute",minutesAndSeconds:"{hourCount} hours, {minuteCount} minutes, and {secondCount} seconds",minutesAndSecond:"{hourCount} hours, {minuteCount} minutes, and {secondCount} second",minuteAndSeconds:"{hourCount} hours, {minuteCount} minute, and {secondCount} seconds",minuteAndSecond:"{hourCount} hours, {minuteCount} minute, and {secondCount} second",andSeconds:"{hourCount} hours and {secondCount} seconds",andSecond:"{hourCount} hours and {secondCount} second"},one:{only:"{hourCount} hour",andMinutes:"{hourCount} hour and {minuteCount} minutes",andMinute:"{hourCount} hour and {minuteCount} minute",minutesAndSeconds:"{hourCount} hour, {minuteCount} minutes, and {secondCount} seconds",minutesAndSecond:"{hourCount} hour, {minuteCount} minutes, and {secondCount} second",minuteAndSeconds:"{hourCount} hour, {minuteCount} minute, and {secondCount} seconds",minuteAndSecond:"{hourCount} hour, {minuteCount} minute, and {secondCount} second",andSeconds:"{hourCount} hour and {secondCount} seconds",andSecond:"{hourCount} hour and {secondCount} second"}},minutes:{other:{only:"{minuteCount} minutes",andSeconds:"{minuteCount} minutes and {secondCount} seconds",andSecond:"{minuteCount} minutes and {secondCount} second"},one:{only:"{minuteCount} minute",andSeconds:"{minuteCount} minute and {secondCount} seconds",andSecond:"{minuteCount} minute and {secondCount} second"}},seconds:{other:"{secondCount} seconds",one:"{secondCount} second"}}}}},pe={Polaris:he},ge="https://cdn.shopify.com/shopifycloud/app-bridge.js",ve=r.forwardRef((o,e)=>u.jsx(m,{...o,to:o.url??o.to,ref:e}));function Ce(o){const{children:e,apiKey:n,i18n:t,isEmbeddedApp:a=!0,__APP_BRIDGE_URL:i=ge,...l}=o,c=T();return s.useEffect(()=>{const h=d=>{var C;const p=(C=d.target)==null?void 0:C.getAttribute("href");p&&c(p)};return addEventListener("shopify:navigate",h),()=>{removeEventListener("shopify:navigate",h)}},[c]),u.jsxs(u.Fragment,{children:[a&&u.jsx("script",{src:i,"data-api-key":n}),u.jsx(me,{...l,linkComponent:ve,i18n:t||pe,children:e})]})}s.createContext(null);const ye="ui-nav-menu";function xe(){const{apiKey:o,adminLang:e,currentPlan:n}=P(),t=(a,i)=>K(e,a,i);return u.jsxs(Ce,{isEmbeddedApp:!0,apiKey:o,children:[u.jsxs(ye,{children:[u.jsx(m,{to:"/app",rel:"home",children:t("nav.dashboard")}),u.jsx(m,{to:"/app/venues",children:t("nav.venues")}),u.jsx(m,{to:"/app/facilities",children:t("nav.facilities")}),u.jsx(m,{to:"/app/translations",children:t("nav.translations")}),u.jsx(m,{to:"/app/billing",children:t("nav.billing")}),u.jsx(m,{to:"/app/settings",children:t("nav.settings")})]}),u.jsx(E,{context:{adminLang:e,currentPlan:n}})]})}export{xe as default};
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.