PageSourceSearch

https://lemontaps.com/assets/index-Dm9twLUV.js

js lemontaps.com collected 2026-09-24 22:35:33 UTC 12,029 bytes, 2 lines download raw bytes

1import{c0 as Z,aC as r,bx as w,aE as X,b7 as B,aG as c,dQ as ee,aJ as f,aK as L,hu as C,aH as re,bI as se,bp as te,b5 as N,aF as x,ci as ne,aY as le,dR as S,aZ as V,c4 as ae,bP as $,bQ as K,bR as Q,bS as q,aD as oe,aQ as ie,by as de,bY as ce,bV as pe,c8 as xe,bL as ue,aT as he,bB as fe,bE as ge,bC as ye,bD as je,cI as be,ba as ke,cc as O,bt as me,bb as ve,cp as Ce,bU as Se,aP as Ie,aV as Ae}from"./index-BCi1utNp.js";import{w as Ee}from"./withNav-V2C3ZfWp.js";import{A as Pe}from"./AccessTimeOutlined-CoML8kyy.js";import{L as Ue}from"./LinearProgress-DTY43hIJ.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="423d4a1d-8bdd-4849-9678-39c392f57e5e",e._sentryDebugIdIdentifier="sentry-dbid-423d4a1d-8bdd-4849-9678-39c392f57e5e")}catch{}const we=Z(r.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.5 16.5v-9l7 4.5z"}),"PlayCircle"),y=(e,s)=>s?s==="hide"?!1:s.every(l=>(!l.tierInfo||(l.negate?!e[l.tierInfo]:e[l.tierInfo]))&&(!l.featureSet||(l.negate?!e.isFeatureAllowed(l.featureSet):e.isFeatureAllowed(l.featureSet)))&&(!l.publicFlag||(l.negate?!e.publicFlags[l.publicFlag]:e.publicFlags[l.publicFlag]))&&(!l.privateFlag||(l.negate?!e.privateFlags[l.privateFlag]:e.privateFlags[l.privateFlag]))):!0,Te=({subaction:e,getActionButtonProps:s,checked:l,actionTitle:h})=>{const p=w(),{t:k}=X();return r.jsx(r.Fragment,{children:r.jsxs(B,{sx:{p:2,display:"flex",flexDirection:"column",gap:1,flexBasis:"48%"},children:[(e==null?void 0:e.imgUrl)&&r.jsx(c,{sx:{maxWidth:"4rem",minHeight:"4rem",display:"flex",alignItems:"center"},children:r.jsx(ee,{component:"img",image:e.imgUrl})}),(e==null?void 0:e.title)&&r.jsx(f,{variant:"h4",children:e.title}),(e==null?void 0:e.description)&&r.jsx(f,{variant:"body2",color:"secondary",children:e.description}),((e==null?void 0:e.action)||!!(e!=null&&e.learnMoreUrl))&&r.jsxs(c,{display:"flex",alignItems:"baseline",mt:"auto",gap:1,children:[(Array.isArray(e.action)?e.action:[e.action]).map(i=>{var m;return(i==null?void 0:i.label)&&y(p,i.conditions)&&r.jsx(L,{variant:"outlined",color:"primary",...s(i),"aria-label":i.label+" - "+(e.title||h),...i.buttonProps,sx:{...l?{pointerEvents:"none"}:null,...typeof((m=i.buttonProps)==null?void 0:m.sx)=="object"?i.buttonProps.sx:{}},children:i.label},i.label)}),!!(e!=null&&e.learnMoreUrl)&&r.jsx(C,{content:`:external-link[${k("learnMore")}]{url="${e.learnMoreUrl}"}`})]})]})})};function U({alert:e,currentPosition:s}){const l=w();return!e||!y(l,e.conditions)||s&&"position"in e&&e.position!==s?null:r.jsxs(re,{severity:e.severity||"info",title:e.title,sx:{my:2},children:[e.title&&r.jsx(se,{children:e.title}),e.content]})}function G({badge:e}){const s=w();return!e||!y(s,e.conditions)?null:r.jsx(te,{color:"default",size:"small",label:e.text})}const De=({item:e,keys:s,setKeys:l})=>{var P;const{t:h}=N(),p=w(),[k,i]=x.useState(null),[m,I]=x.useState(null),{upgradeAction:g,upgradeRequestPopup:T}=ne(),v=a=>{if(a.conditionsShowUpgrade&&y(p,a.conditionsShowUpgrade)||e.featureGate&&!p.isFeatureAllowed(e.featureGate))return{onClick:g};switch(a.action.type){case"link":return a.action.link.startsWith("/")?{component:ae,to:a.action.link}:{component:"a",href:a.action.link,target:a.action.external?"_blank":"_self"};case"popup":return{onClick:()=>i(a)};case"video":return{onClick:()=>I(a)}}},d=s.includes(e==null?void 0:e.key),D=()=>{l(d?s.filter(a=>a!==e.key):[...s,e.key])},E=()=>!s.includes(e==null?void 0:e.key)&&l([...s,e.key]),A=x.useCallback(()=>{i(null),I(null)},[]);return r.jsxs(c,{display:"flex",flexDirection:"column",alignItems:"start",gap:1,children:[r.jsxs(c,{display:"flex",alignItems:"start",justifyContent:"start",sx:d?{opacity:.5}:void 0,children:[r.jsx(le,{checked:d,onChange:D,sx:{p:0,mr:1}}),r.jsxs(c,{children:[r.jsxs(c,{display:"flex",gap:1,mb:.5,children:[r.jsx(f,{variant:"body1",children:e.title}),r.jsx(G,{badge:e.badge||(e.featureGate&&!p.isFeatureAllowed(e.featureGate)?{text:"Addon"}:void 0)})]}),r.jsx(U,{currentPosition:"pre",alert:e.alert}),e.video&&e.video.position==="pre"&&r.jsx(S,{embedUrl:e.video.embedUrl}),!!(e!=null&&e.description)&&r.jsx(f,{variant:"body2",children:r.jsx(C,{content:e.description+(e.learnMoreUrl?` :external-link[${h("learnMore")}]{url="${e.learnMoreUrl}"}`:""),containerSx:{color:"text.secondary",pointerEvents:d?"none":void 0}})}),e.video&&e.video.position==="post"&&r.jsx(S,{embedUrl:e.video.embedUrl,sx:{maxWidth:"48rem"}}),r.jsx(U,{currentPosition:"post",alert:e.alert}),((e==null?void 0:e.mainAction)||!(e!=null&&e.unskippable))&&r.jsxs(c,{mt:1,children:[(Array.isArray(e.mainAction)?e.mainAction:[e.mainAction]).map(a=>{var j;return(a==null?void 0:a.label)&&y(p,a.conditions)&&r.jsx(L,{size:"medium",variant:"outlined",color:"primary",...v(a),...a.buttonProps,sx:{mr:1,...d&&{pointerEvents:"none"},...typeof((j=a.buttonProps)==null?void 0:j.sx)=="object"?a.buttonProps.sx:{}},children:a.label},a.label)}),!(e!=null&&e.unskippable)&&!d&&r.jsx(L,{size:"medium",variant:"text",sx:a=>({color:a.palette.secondary.main}),onClick:E,"aria-label":h("skip")+" - "+e.title,children:h("skip")})]}),((P=e==null?void 0:e.subActions)==null?void 0:P.length)&&r.jsx(c,{display:"flex",gap:1,flexWrap:"wrap",children:e.subActions.map((a,j)=>r.jsx(Te,{subaction:a,handlePopupConfirm:E,getActionButtonProps:v,checked:d,actionTitle:e.title},j))})]})]}),r.jsx(Me,{action:k||m,onClose:A,onDone:()=>{E(),A()}}),T]},e==null?void 0:e.key)};function Me(e){var p,k,i;const{action:s,onClose:l,onDone:h}=e;return r.jsxs(V,{open:!!s,title:(s!=null&&s.action&&"title"in s.action?s.action.title:void 0)||(s==null?void 0:s.label),onClose:l,onCancel:l,onDone:h,children:[((p=s==null?void 0:s.action)==null?void 0:p.type)==="popup"&&r.jsx(C,{content:((k=s.action)==null?void 0:k.content)||""}),((i=s==null?void 0:s.action)==null?void 0:i.type)==="video"&&r.jsxs(r.Fragment,{children:[s.action.preContent&&r.jsx(C,{content:s.action.preContent,containerSx:{mb:1}}),r.jsx(S,{embedUrl:s.action.embedUrl}),s.action.postContent&&r.jsx(C,{content:s.action.postContent,containerSx:{mb:1}})]})]})}const Fe=({item:e})=>r.jsx(c,{sx:{p:1},children:r.jsxs($,{sx:{boxShadow:"none",border:"1px solid",borderColor:"divider"}
1,children:[r.jsx(K,{expandIcon:r.jsx(Q,{}),"aria-controls":"panel1-content",id:"panel1-header",children:r.jsx(f,{variant:"body1",children:e.question})}),r.jsxs(q,{children:[e.video&&e.video.position==="pre"&&r.jsx(S,{embedUrl:e.video.embedUrl}),r.jsx(f,{variant:"body2",children:r.jsx(C,{content:e.answer,containerSx:{color:"text.secondary"}})}),e.video&&e.video.position==="post"&&r.jsx(S,{embedUrl:e.video.embedUrl})]})]})}),Le=()=>{var W,z;const{getAccessTokenSilently:e}=oe(),{notify:s}=ie(),l=de(n=>n.account.theme),{hash:h}=ce(),[p,k]=x.useState(((z=(W=l==null?void 0:l.themeInternal)==null?void 0:W.mdGuideState)==null?void 0:z.checked)||[]),{t:i,activeLanguage:m}=N(),I=pe(),g=w(),T=x.useRef(!0),v=x.useRef(null),{config:d,error:D,loading:E}=xe(ue.MD_GUIDE);he(E,"md-guides-loader"),x.useEffect(()=>{D&&s.error(i("error.general"),{id:"md-guides-loader"})},[D,i,s]),x.useEffect(()=>{var n,o;!h||!((n=d==null?void 0:d.sections)!=null&&n.length)||(o=document.getElementById(h.substring(1)))==null||o.scrollIntoView({behavior:"smooth"})},[h,d==null?void 0:d.sections]);const A=x.useMemo(()=>d!=null&&d.sections?d.sections.filter(n=>y(g,n.conditions)).map(n=>n.type==="checklist"?{...n,items:n.items.filter(o=>y(g,o.conditions))}:n.type==="faq"?{...n,items:n.items.filter(o=>y(g,o.conditions))}:n).filter(n=>n.type==="header"||n.items.length>0):[],[d==null?void 0:d.sections,g]),P=x.useCallback(()=>{fe(e,n=>ye.post(je.API_BASE_URL+"theme/update-guide-state",{keys:p},{headers:{Authorization:`Bearer ${n}`}}),[ge.WRITE.THEME_GLOBAL]).then(n=>{n.data.isSuccess&&I({type:be.BUSINESS.THEME_INTERNAL.UPDATE_FIELDS,payload:{mdGuideState:{checked:n.data.data}}})}).catch(()=>s.error(i("error.general",{id:"md-guides-loader"})))},[I,e,p,i,s]),a=x.useCallback(n=>p.includes(n.key),[p]);x.useEffect(()=>{T.current?T.current=!1:(v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{v.current=null,P()},2e3))},[I,e,p,i,P]);const j=x.useCallback(n=>{const o={checked:0,total:0};for(const b of n.items)o.total++,a(b)&&o.checked++;return{...o,progress:o.total<=0?0:100*o.checked/o.total}},[a]),M=x.useCallback(n=>{const o={checked:0,total:0};if(n!=null&&n.length){const b=A.filter(t=>t.type==="checklist").filter(t=>n.includes(t.key));for(const t of b){const u=j(t);o.total+=u.total,o.checked+=u.checked}}return{...o,progress:o.total<=0?0:100*o.checked/o.total}},[j,A]),[R,_]=x.useState(!1),H=x.useCallback(n=>{var b;if(!(n!=null&&n.length))return null;const o=(b=n.find(t=>y(g,t.conditions)))==null?void 0:b.embedUrl;return o==null?void 0:o[m]},[g,m]),Y=x.useCallback(n=>{var o,b;if(!n)return null;switch(n.type){case"header":{const t=n;return r.jsx(me,{sx:{p:3},children:r.jsxs(ve,{spacing:2,children:[r.jsxs(c,{display:"flex",alignItems:"center",gap:1,children:[t.title&&r.jsx(f,{variant:"h2",children:t.title}),r.jsx(G,{badge:t.badge})]}),r.jsx(U,{currentPosition:"pre",alert:t.alert}),t.content&&r.jsx(f,{variant:"body2",color:"secondary",children:r.jsx(C,{content:t.content})}),r.jsx(U,{currentPosition:"post",alert:t.alert}),t.videoEmbedUrl&&r.jsx(S,{embedUrl:t.videoEmbedUrl}),(o=t.progressBar)!=null&&o.length?r.jsxs(c,{children:[r.jsxs(f,{variant:"body2",color:"secondary",mb:1,children:[M(t.progressBar).checked,"/",M(t.progressBar).total," ",i("mdguide.tasks")]}),r.jsx(Ue,{variant:"determinate",value:M(t.progressBar).progress,color:"success",sx:{height:5}})]}):null,(u=>u&&r.jsxs(r.Fragment,{children:[r.jsx(c,{display:"flex",children:r.jsx(L,{variant:"contained",color:"secondary",startIcon:r.jsx(we,{}),sx:F=>({backgroundColor:F.palette.secondary.dark,color:F.palette.primary.main}),onClick:()=>_(!0),children:i("mdguide.watchIntro")})}),r.jsx(V,{open:R,onClose:()=>_(!1),children:r.jsx(S,{embedUrl:u||""})})]}))(H(t.watchIntro))]})},t.key)}case"checklist":{const t=n;return r.jsx(B,{id:t.key,children:r.jsxs($,{sx:{borderRadius:".7rem",boxShadow:"none"},defaultExpanded:h.substring(1)===t.key,children:[r.jsx(c,{display:"flex",alignItems:"center",borderBottom:"solid 1px",borderColor:"divider",children:r.jsxs(K,{expandIcon:r.jsx(Q,{}),"aria-controls":"checklist-content",id:"checklist-header",sx:{width:"100%",display:"flex",alignItems:"center",">.LtAccordionSummary-contentGutters":{alignItems:"center",gap:1}},children:[r.jsxs(c,{position:"relative",display:"flex",children:[r.jsx(O,{"aria-hidden":!0,variant:"determinate",value:100,sx:u=>({color:u.palette.grey[300]}),thickness:5,size:32}),r.jsx(O,{"aria-hidden":!0,variant:"determinate",value:j(t).progress,size:32,sx:u=>({position:"absolute",left:0,color:u.palette.primaryButton.main}),thickness:6})]}),!!(t!=null&&t.title)&&r.jsx(f,{variant:"h3",children:t.title}),r.jsx(G,{badge:t.badge}),!!(t!=null&&t.timeEffort)&&r.jsxs(c,{display:"flex",gap:.3,alignItems:"center",minWidth:"20%",children:[r.jsx(Pe,{sx:{color:"text.secondary",fontSize:24}}),r.jsx(c,{typography:"subtitle2",color:"text.secondary",children:t.timeEffort})]})]})}),r.jsxs(q,{children:[r.jsx(U,{currentPosition:"pre",alert:t.alert}),r.jsx(c,{display:"flex",flexDirection:"column",alignItems:"start",width:"100%",pt:2,pb:2,gap:5,children:t.items.filter(u=>y(g,u.conditions)).map(u=>r.jsx(De,{item:u,keys:p,setKeys:k},u.key))})]})]})},t.key)}case"faq":{const t=n;return r.jsxs(B,{children:[!!(t!=null&&t.title)&&r.jsx(ke,{children:r.jsx(f,{variant:"h3",children:t.title})}),((b=t.items)==null?void 0:b.length)&&t.items.map((u,F)=>r.jsx(Fe,{item:u},F))]},n.key)}default:return null}},[j,M,p,i,g,H,R,h]),{isHidden:J}=Ce();return J("admin.mdGuide")?r.jsx(Se,{to:Ie.HOME}):r.jsx(Ae,{maxWidth:"m",children:r.jsx(c,{display:"flex",flexDirection:"column",gap:2,children:A.map(Y)})})},He=Ee(Le,{tTitle:"mdguide.pageHeader"},{});export{He as default};
2//# sourceMappingURL=index-Dm9twLUV.js.map

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.