PageSourceSearch

https://app.paa.ge/static/js/2173.b36a0750.chunk.js

js paa.ge collected 2026-10-02 02:31:52 UTC 66,672 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[2173],{2820:(e,t,n)=>{n.d(t,{D4:()=>a,EH:()=>l,vp:()=>o});const o=e=>null===e||void 0===e||!e.content||0===e.content.length||!(1!==e.content.length||"paragraph"!==e.content[0].type||e.content[0].content&&0!==e.content[0].content.length);function i(e){var t;return e?"text"===e.type&&"string"===typeof e.text?e.text:null!==(t=e.content)&&void 0!==t&&t.length?e.content.map(i).join(""):"":""}const s=new Set(["image","internalCard","buttonNode","horizontalRule","table","columns","emoji","variable"]);function r(e){var t;return!!e&&(!(!e.type||!s.has(e.type))||!(null===(t=e.content)||void 0===t||!t.length)&&e.content.some(r))}function l(e){return!o(e)&&(i(e).trim().length>0||r(e))}function a(e){if(null===e||void 0===e||!e.trim())return!1;const t=e.trim();if("{}"===t||"null"===t)return!1;try{return l(JSON.parse(t))}catch(n){return!1}}},7716:(e,t,n)=>{n.d(t,{A:()=>h});var o=n(43801),i=n(16569),s=n(4686),r=n(88991),l=n(68262),a=n(65043),c=n(74117),d=n(55019),p=n(14541),u=n(70579);const h=e=>{let{open:t,onCancel:n}=e;const{t:h}=(0,c.Bd)("store/settings/general"),{store:x}=(0,l.gbT)(),{mutateAsync:m,isLoading:g}=(0,l.Xyc)(),[k]=o.A.useForm();return(0,a.useEffect)(()=>{k.setFieldsValue({domain:null===x||void 0===x?void 0:x.eshop_handle})},[k,null===x||void 0===x?void 0:x.eshop_handle]),(0,u.jsx)(r.oZ,{open:t,onCancel:n,title:h("edit.paage.url"),footer:(0,u.jsx)(s.Ay,{onClick:()=>k.submit(),loading:g,children:h("save")}),removePadding:!0,children:(0,u.jsx)(d.A,{children:(0,u.jsx)(o.A,{layout:"vertical",form:k,onFinish:async function(e){try{await m({eshop_handle:e.domain}),i.Ay.success(h("url.saved")),n()}catch(t){console.log(t),i.Ay.error(h("url.error"))}},initialValues:{domain:null===x||void 0===x?void 0:x.eshop_handle},requiredMark:!1,children:(0,u.jsx)(p.z,{removePadding:!0})})})})}},8228:(e,t,n)=>{n.d(t,{J:()=>i});var o=n(65043);const i=()=>{const[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{const e=window.matchMedia("(pointer: coarse)"),n=window.matchMedia("(pointer: fine)"),o=()=>{t(!!e.matches&&!n.matches)};return o(),e.addEventListener("change",o),n.addEventListener("change",o),()=>{e.removeEventListener("change",o),n.removeEventListener("change",o)}},[]),e}},9492:(e,t,n)=>{n.d(t,{Y:()=>c});var o=n(95920),i=n(13382),s=n(98734),r=n(26399),l=n(73216),a=n(70579);function c(e){let{title:t,description:n,button:c,backButton:d,backButtonUrl:p,withTabs:u,marginTop:h,noWrap:x,customPadding:m,direction:g,overTitle:k}=e;const f=(0,r.al)(),y=(0,l.Zp)();return(0,a.jsxs)(s.A,{flexDirection:"column",className:"w-100",children:[k&&!f&&(0,a.jsx)("div",{className:" d-flex mb-1",children:k}),(0,a.jsxs)("div",{className:"w-100 d-flex ".concat("column"===g?"flex-column":"justify-content-between align-items-center","  "),style:{paddingTop:f?16:0,paddingLeft:f?16:0,paddingRight:f?16:0,paddingBottom:null!==m&&void 0!==m?m:16},children:[(0,a.jsxs)("div",{children:[k&&f&&(0,a.jsx)("div",{className:"d-flex mb-1",children:k}),(0,a.jsxs)(s.A,{children:[d&&(0,a.jsx)(i.Ay,{onClick:()=>{y(p||-1)},className:"mr-2",type:"text",icon:(0,a.jsx)(o.A,{})}),(0,a.jsx)("div",{className:"text-lg-semibold",children:t})]}),n&&(0,a.jsx)("p",{className:"mt-0 d-block",children:n})]}),c&&(0,a.jsx)("div",{className:"d-flex flex-column",children:c})]})]})}},32173:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Qt});var o=n(9492),i=n(33079),s=n(85973),r=n(74117),l=n(98734),a=n(26399),c=n(65043),d=n(73216),p=n(13549),u=n(17201),h=n(33995),x=n(4221),m=n(40491),g=n(4686),k=n(53420),f=n(41093),y=n(34611),v=n(91646),C=n(63935),b=n(26449),j=n(70579);const _=Array.from({length:10},(e,t)=>({date:(0,p.yf)().subtract(29-t,"day").format("YYYY-MM-DD"),count:Math.floor(40*Math.random())+10})),A=e=>{let{data:t,color:n,gradientId:o,loading:i}=e;return(0,j.jsxs)(u.Q,{width:127,height:48,data:i?_:t,margin:{top:4,bottom:0,left:0,right:0},style:{pointerEvents:"none"},children:[(0,j.jsxs)("defs",{children:[(0,j.jsxs)("linearGradient",{id:o,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,j.jsx)("stop",{stopColor:n,stopOpacity:.4}),(0,j.jsx)("stop",{offset:"1",stopColor:n,stopOpacity:0})]}),(0,j.jsxs)("linearGradient",{id:"".concat(o,"-skeleton"),x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,j.jsx)("stop",{stopColor:"#f0f0f0",stopOpacity:"0.8",children:(0,j.jsx)("animate",{attributeName:"stop-opacity",values:"0.8;0.4;
10.8",dur:"1.5s",repeatCount:"indefinite"})}),(0,j.jsx)("stop",{offset:"1",stopColor:"white"})]})]}),(0,j.jsx)(h.Gk,{type:"monotone",dataKey:"count",stroke:i?"#e0e0e0":n,strokeWidth:2,fill:"url(#".concat(o,i?"-skeleton)":")"),isAnimationActive:!1,activeDot:!1,dot:!1})]})},w=e=>{let{label:t,value:n,chart:o,loading:i,isLast:s}=e;return(0,j.jsxs)(l.A,{justifyContent:"between",alignItems:"center",style:{padding:"12px 16px",borderBottom:s?"none":"1px solid ".concat(C.Ug)},children:[(0,j.jsxs)(l.A,{flexDirection:"column",gap:"xxs",children:[(0,j.jsx)("div",{className:"text-sm",style:{color:C.f},children:t}),i?(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:28,width:80}}):(0,j.jsx)("div",{className:"text-xl",children:n})]}),o&&o]})},L=()=>{var e,t;const{t:n}=(0,r.Bd)("home/index"),o=(0,d.Zp)(),{storeCurrency:i}=(0,f.E_)(),s=(0,c.useMemo)(()=>(0,v._1)([p.yf.utc().subtract(30,"day").tz("Europe/Paris"),(0,p.yf)().tz("Europe/Paris")]),[]),l=s[0].format("YYYY-MM-DD"),a=s[1].format("YYYY-MM-DD"),{data:u,isLoading:h}=(0,k.Rh)(l,a),{data:x,isLoading:C}=(0,k.e$)(l,a),{data:_,isLoading:L}=(0,k.h9)(l,a),{eshopOrders:I,isLoadingEshopOrders:M,progress:E}=(0,y.Nq)(s),N=(0,c.useMemo)(()=>(I||[]).reduce((e,t)=>e+(t.total||0),0),[I]),S=(0,c.useMemo)(()=>{const e={};(I||[]).forEach(t=>{const n=(0,p.yf)(t.created_at).format("YYYY-MM-DD");e[n]=(e[n]||0)+(t.total||0)});const t=[];let n=s[0];for(;!n.isAfter(s[1]);){const o=n.format("YYYY-MM-DD");t.push({date:o,count:e[o]||0}),n=n.add(1,"day")}return t},[I,s]),B=(null===_||void 0===_?void 0:_.views)||[];return(0,j.jsxs)(m.A,{title:n("analytics"),description:n("analytics.last_30_days"),actions:[(0,j.jsx)(g.Ay,{icon:b.ArrowRight02Icon,iconPosition:"end",type:"ghost",onClick:()=>o("/analytics"),children:n("see_all")},"see-all")],children:[(0,j.jsx)(w,{label:n("analytics.views"),value:(0,v.Ft)((null===u||void 0===u||null===(e=u.store_views)||void 0===e?void 0:e.current_period)||0),loading:h,chart:(0,j.jsx)(A,{data:B,color:"#0062FF",gradientId:"home-views-gradient",loading:L||!_})}),(0,j.jsx)(w,{label:n("analytics.clicks"),value:(0,v.Ft)((null===x||void 0===x||null===(t=x.response)||void 0===t?void 0:t.total_clicks)||0),loading:C}),(0,j.jsx)(w,{label:n("analytics.revenue"),value:(0,v.E1)(N,i),loading:M,chart:(0,j.jsx)(A,{data:S,color:"#BB75FF",gradientId:"home-revenue-gradient",loading:100!==E}),isLast:!0})]})};var I=n(68262),M=n(67298),E=n(93516),N=n(14771),S=n(11627),B=n(76659),T=n(23207),O=n(23036);const W={free:"Free",basic:"Basic",plus:"Plus",pro:"Pro"},D=e=>{let{icon:t,label:n,used:o,limit:i}=e;const{t:s}=(0,r.Bd)("home/index"),a=i>0?Math.min(o/i*100,100):0,c=o>0?Math.max(a,5):a;return(0,j.jsxs)(l.A,{flexDirection:"column",gap:"sm",style:{padding:"4px 0"},children:[(0,j.jsxs)(l.A,{justifyContent:"between",alignItems:"center",children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xxs",children:[(0,j.jsx)(M.n,{icon:t,size:16,color:C.LE}),(0,j.jsx)("span",{className:"text-sm-medium",style:{color:C.LE},children:n})]}),(0,j.jsx)("span",{className:"text-sm",style:{color:C.f},children:s("plan_usage.count",{used:(0,v.ZV)(o),limit:(0,v.ZV)(i)})})]}),(0,j.jsx)(E.A,{percent:c,strokeColor:C.$v,trailColor:C.Ug,className:"w-100"})]})},R=()=>{const{t:e}=(0,r.Bd)("home/index"),t=(0,d.Zp)(),{store:n}=(0,I.gbT)(),{data:o}=(0,N.bG)(),{data:i}=(0,S.cp)(),{count:s}=(0,I.BvS)({origin_type:B.M6.ESHOP,limit:1,fields:"id,status",is_extra:!1,status:T.S.PUBLISHED,expand:""}),a=(null===n||void 0===n?void 0:n.subscription_tier)||"free",p="pro"===a,u=(0,c.useMemo)(()=>{var t,r;return[{key:"contacts",icon:b.UserMultiple02Icon,label:e("plan_usage.contacts"),used:(null===o||void 0===o?void 0:o.total)||0,limit:(null===n||void 0===n||null===(t=n.subscription)||void 0===t?void 0:t.max_contacts)||0},{key:"emails",icon:b.Mail01Icon,label:e("plan_usage.emails"),used:(null===i||void 0===i?void 0:i.used)||0,limit:(null===i||void 0===i?void 0:i.limit)||0},{key:"products",icon:b.Tag01Icon,label:e("plan_usage.products"),used:s||0,limit:(null===n||void 0===n||null===(r=n.subscription)||void 0===r?void 0:r.max_product_count)||0}]},[e,o,i,s,n]);return(0,j.jsxs)(m.A,{title:e("plan_usage.title"),description:e("plan_usage.subtitle",{plan:W[a]||W.free}),actions:[(0,j.jsx)(g.Ay,{icon:b.ArrowRight02Icon,iconPosition:"end",type:"ghost",onClick:()=>t("/settings/plans"),children:e("plan_usage.see_usage")},"see-usage")],children:[(0,j.jsx)(l.A,{flexDirection:"column",gap:"md",style:{padding:16},children:u.map(e=>(0,j.jsx)(D,{icon:e.icon,label:e.label,used:e.used,limit:e.limit},e.key))}),!p&&(0,j.jsx)("div",{style:{borderTop:"1px solid ".concat(C.Ug),padding:16},children:(0,j.jsx)(g.Ay,{type:"default",className:"w-100",icon:b.ZapIcon,onClick:()=>t(O.Fr),children:e("plan_usage.upgrade")})})]})};var P,z,H,U,Y,F,Z=n(54e3),$=n(96810),q=n(95406),K=n(79e3),V=n(57528),J=n(2826),X=n(88991),G=n(77137);const Q=[N.H7.ORDER_PLACED_EMAIL_SENT,N.H7.DONATION_EMAIL_SENT],ee=[N.H7.CONTACT_FORM_EMAIL_SENT,N.H7.FILE_DOWNLOAD_EMAIL_SENT,N.H7.NEWSLETTER_SUBSCRIBED_EMAIL_SENT],te=["this_week","last_week","older"],ne=J.Ay.div(P||(P=(0,V.A)(["\n  position: relative;\n"]))),oe=J.Ay.div(z||(z=(0,V.A)(["\n  max-height: ","px;\n  overflow-y: auto;\n"])),520),ie=J.Ay.div(H||(H=(0,V.A)(["\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  height: 38px;\n  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);\n  pointer-events: none;
1\n"]))),se=J.Ay.div(U||(U=(0,V.A)(["\n  padding: 16px 16px 8px;\n  color: ",";\n"])),C.f),re=J.Ay.div(Y||(Y=(0,V.A)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  padding: 12px 16px;\n"]))),le=J.Ay.div(F||(F=(0,V.A)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  padding: 12px 16px;\n  cursor: ",";\n  transition: background 0.15s ease;\n\n  &:hover {\n    background: ",";\n  }\n\n  &:first-child {\n    padding-top: 16px;\n  }\n\n  &:last-child {\n    padding-bottom: 16px;\n  }\n"])),e=>{let{$clickable:t}=e;return t?"pointer":"default"},e=>{let{$clickable:t}=e;return t?C.oD:"transparent"}),ae=e=>{let{item:t,onClick:n}=e;const{t:o}=(0,r.Bd)("home/index"),i=!!n;return(0,j.jsxs)(le,{role:i?"button":void 0,tabIndex:i?0:void 0,$clickable:i,onClick:n,onKeyDown:i?e=>{"Enter"!==e.key&&" "!==e.key||n()}:void 0,children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xs",style:{minWidth:0,flex:1},children:[(0,j.jsx)(xe,{kind:t.kind,size:"modal"}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"xxs",style:{minWidth:0,flex:1},children:[(0,j.jsx)("div",{className:"text-sm-medium",children:o("activity_feed.row.".concat(t.kind,".title"))}),(0,j.jsx)("div",{className:"text-xs",style:{color:C.f,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o("activity_feed.row.".concat(t.kind,".description"),ge(t,o))})]})]}),(0,j.jsx)("span",{className:"text-xs",style:{color:C.f,whiteSpace:"nowrap",flexShrink:0},children:(0,p.yf)(t.date).fromNow()})]})},ce=()=>(0,j.jsxs)(le,{$clickable:!1,children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xs",style:{flex:1},children:[(0,j.jsx)(x.A.Avatar,{active:!0,size:36,shape:"circle"}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"xxs",style:{flex:1},children:[(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:16,width:140}}),(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:14,width:220}})]})]}),(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:16,width:64}})]}),de=e=>{let{open:t,onClose:n}=e;const{t:o}=(0,r.Bd)("home/index"),[i,s]=(0,c.useState)(1),[a,d]=(0,c.useState)(null),[u,h]=(0,c.useState)([]),{handleActivityClick:x,isActivityClickable:m}=fe();(0,c.useEffect)(()=>{t||(s(1),d(null),h([]))},[t]);const k=(0,c.useMemo)(()=>({type:"commerce"===a?Q:"audience"===a?ee:pe,order:"-created_at",limit:20,offset:20*(i-1)}),[i,a]),f=[{label:o("activity_feed.modal.filter.type.commerce"),value:"commerce"},{label:o("activity_feed.modal.filter.type.audience"),value:"audience"}],{contactInteractions:y,count:v,isLoading:C,isFetching:b}=(0,N.zB)(k,{enabled:t});(0,c.useEffect)(()=>{t&&y&&h(e=>{if(1===i)return y;const t=new Set(e.map(e=>e.id)),n=y.filter(e=>!t.has(e.id));return n.length>0?[...e,...n]:e})},[y,t,i]);const _=u.map(ke).filter(e=>null!==e),A=(0,c.useMemo)(()=>{const e=(0,p.yf)().startOf("week"),t=e.subtract(1,"week"),n={this_week:[],last_week:[],older:[]};return _.forEach(o=>{const i=(0,p.yf)(o.date);i.isBefore(e)?i.isBefore(t)?n.older.push(o):n.last_week.push(o):n.this_week.push(o)}),n},[_]),w=(0,c.useMemo)(()=>{const e=te.filter(e=>A[e].length>0);return!(1===e.length&&"older"===e[0])},[A]),L=u.length<(v||0);return(0,j.jsxs)(X.oZ,{title:o("activity_feed.modal.title"),open:t,removePadding:!0,onCancel:n,width:632,children:[(0,j.jsx)(re,{children:(0,j.jsx)(G.Ay,{type:"select",value:a,onChange:e=>{d(e),s(1)},label:o("activity_feed.modal.filter.type"),options:f})}),(0,j.jsxs)(ne,{children:[(0,j.jsx)(oe,{children:C&&0===u.length?Array.from({length:6}).map((e,t)=>(0,j.jsx)(ce,{},t)):0===_.length?(0,j.jsx)(Ce,{}):(0,j.jsxs)(j.Fragment,{children:[te.map(e=>{const t=A[e];return 0===t.length?null:(0,j.jsxs)("div",{children:[w&&(0,j.jsx)(se,{className:"text-xs",children:o("activity_feed.modal.section.".concat(e))}),t.map(e=>(0,j.jsx)(ae,{item:e,onClick:m(e)?()=>(e=>{m(e)&&(n(),x(e))})(e):void 0},e.id))]},e)}),L&&(0,j.jsx)(l.A,{alignItems:"center",justifyContent:"center",className:"p-3",children:(0,j.jsx)(g.Ay,{onClick:()=>s(e=>e+1),loading:b,type:"secondary",children:o("activity_feed.modal.load_more")})})]})}),_.length>0&&L&&(0,j.jsx)(ie,{})]})]})},pe=[N.H7.CONTACT_FORM_EMAIL_SENT,N.H7.DONATION_EMAIL_SENT,N.H7.FILE_DOWNLOAD_EMAIL_SENT,N.H7.NEWSLETTER_SUBSCRIBED_EMAIL_SENT,N.H7.ORDER_PLACED_EMAIL_SENT],ue={card:{box:36,icon:16},modal:{box:36,icon:16}},he={form:b.MessageEdit01Icon,file_download:b.FileDownloadIcon,subscriber:b.MailAtSign02Icon},xe=e=>{let{kind:t,size:n="card"}=e;const{box:o,icon:i}=ue[n];return"donation"===t?(0,j.jsx)($.Tu,{width:o,height:o,borderRadius:o/2,background:C.mP,children:(0,j.jsx)(Z.A,{withBackgroun
1d:!1})}):"sale"===t?(0,j.jsx)($.Tu,{width:o,height:o,borderRadius:o/2,background:C.mP,children:(0,j.jsx)(M.n,{icon:b.EuroCircleIcon,size:i})}):(0,j.jsx)($.Tu,{width:o,height:o,borderRadius:o/2,background:C.mP,children:(0,j.jsx)(M.n,{icon:he[t],size:i})})},me=["form","donation","file_download","subscriber"],ge=(e,t)=>({email:e.email||t("activity_feed.placeholder.unknown_contact"),block_title:e.blockTitle,product_title:e.productTitle}),ke=e=>{var t,n,o,i;const s=(null===(t=e.contact)||void 0===t?void 0:t.email)||(null===(n=e.order)||void 0===n?void 0:n.email)||"",r=e.created_at,l=e.contact_id||(null===(o=e.contact)||void 0===o?void 0:o.id);if(!r)return null;const a=e.id,c=null===(i=e.order)||void 0===i?void 0:i.id;switch(e.type){case N.H7.CONTACT_FORM_EMAIL_SENT:{var d,p;const t=null===(d=e.contact_block)||void 0===d?void 0:d.title,n=e.contact_block_id||(null===(p=e.contact_block)||void 0===p?void 0:p.id);return t&&n?{id:a,kind:"form",email:s,blockTitle:t,date:r,blockId:n,contactId:l}:null}case N.H7.DONATION_EMAIL_SENT:{var u,h;const t=null===(u=e.donation_block)||void 0===u?void 0:u.title,n=e.donation_block_id||(null===(h=e.donation_block)||void 0===h?void 0:h.id);return t&&n?{id:a,kind:"donation",email:s,blockTitle:t,date:r,blockId:n,contactId:l,orderId:c}:null}case N.H7.FILE_DOWNLOAD_EMAIL_SENT:{var x,m;const t=null===(x=e.file_download_block)||void 0===x?void 0:x.title,n=e.file_download_block_id||(null===(m=e.file_download_block)||void 0===m?void 0:m.id);return t&&n?{id:a,kind:"file_download",email:s,blockTitle:t,date:r,blockId:n,contactId:l}:null}case N.H7.NEWSLETTER_SUBSCRIBED_EMAIL_SENT:{var g,k;const t=null===(g=e.email_block)||void 0===g?void 0:g.title,n=e.email_block_id||(null===(k=e.email_block)||void 0===k?void 0:k.id);return t&&n?{id:a,kind:"subscriber",email:s,blockTitle:t,date:r,blockId:n,contactId:l}:null}case N.H7.ORDER_PLACED_EMAIL_SENT:{var f,y,v,C;if("eshop"!==(null===(f=e.order)||void 0===f?void 0:f.origin_type))return null;const t=null===(y=e.order)||void 0===y||null===(v=y.items)||void 0===v||null===(C=v[0])||void 0===C?void 0:C.title;return t?{id:a,kind:"sale",email:s,productTitle:t,date:r,contactId:l,orderId:c}:null}default:return null}},fe=()=>{var e;const t=(0,d.Zp)(),n=(0,q.Iz)(),{store:o}=(0,I.gbT)(),i=(null===o||void 0===o||null===(e=o.subscription)||void 0===e?void 0:e.site_analytics)!==f.ER.BASIC;return{handleActivityClick:e=>{if(me.includes(e.kind)&&e.blockId)return i?void t((0,K.LW)(e.blockId)):void n(["plan"],["true"],!0);"sale"===e.kind&&e.orderId?t("/orders/".concat(e.orderId)):e.contactId&&t("/audience/contacts/".concat(e.contactId))},isActivityClickable:e=>!(!me.includes(e.kind)||!e.blockId)||(!("sale"!==e.kind||!e.orderId)||!!e.contactId)}},ye=e=>{let{item:t,onClick:n}=e;const{t:o}=(0,r.Bd)("home/index"),i=!!n;return(0,j.jsx)("div",{role:i?"button":void 0,tabIndex:i?0:void 0,onClick:n,onKeyDown:i?e=>{"Enter"!==e.key&&" "!==e.key||n()}:void 0,style:{padding:"12px 16px",cursor:i?"pointer":"default"},onMouseEnter:i?e=>{e.currentTarget.style.backgroundColor=C.oD}:void 0,onMouseLeave:i?e=>{e.currentTarget.style.backgroundColor=""}:void 0,children:(0,j.jsxs)(l.A,{justifyContent:"between",alignItems:"center",gap:"md",children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xs",style:{minWidth:0,flex:1},children:[(0,j.jsx)(xe,{kind:t.kind}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"xxs",style:{minWidth:0,flex:1},children:[(0,j.jsx)("div",{className:"text-sm-medium",children:o("activity_feed.row.".concat(t.kind,".title"))}),(0,j.jsx)("div",{className:"text-xs",style:{color:C.f,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o("activity_feed.row.".concat(t.kind,".description"),ge(t,o))})]})]}),(0,j.jsx)("div",{className:"text-xs",style:{color:C.f,whiteSpace:"nowrap",flexShrink:0},children:(0,p.yf)(t.date).fromNow()})]})})},ve=()=>(0,j.jsxs)(l.A,{justifyContent:"between",alignItems:"center",gap:"md",style:{padding:"12px 16px"},children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xs",style:{minWidth:0,flex:1},children:[(0,j.jsx)(x.A.Avatar,{active:!0,size:ue.card.box,shape:"circle"}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"xxs",style:{minWidth:0,flex:1},children:[(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:16,width:140}}),(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:14,width:220}})]})]}),(0,j.jsx)(x.A.Button,{active:!0,size:"small",style:{height:20,width:64}})]}),Ce=()=>{const{t:e}=(0,r.Bd)("home/index");return(0,j.jsxs)(l.A,{flexDirection:"column",alignItems:"center",justifyContent:"center",className:"text-center",style:{color:C.f,height:234},gap:"xs",children:[(0,j.jsx)(M.n,{icon:b.Activity03Icon,size:14,color:C.f}),(0,j.jsx)("div",{className:"text-sm-medium",children:e("activity_feed.empty.title")}),(0,j.jsx)("div",{className:"text-sm",children:e("activity_feed.empty.description")})]})},be=()=>{const{t:e}=(0,r.Bd)("home/index"),[t,n]=(0,c.useState)(!1),{handleActivityClick:o,isActivityClickable:i}=fe(),{contactInteractions:s,isLoading:l}=(0,N.zB)({type:pe,order:"-created_at",limit:30,offset:0}),a=(s||[]).map(ke).filter(e=>null!==e).slice(0,6);return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(m.A,{title:e("activity_feed"),description:e("activity_feed.description"),actions:[(0,j.jsx)(g.Ay,{icon:b.ArrowRight02Icon,iconPosition:"end",type:"ghost",onClick:()=>n(!0),children:e("see_all")},"see-all")],children:l?Array.from({length:4}).map((e,t)=>(0,j.jsx)(ve,{},t)):0===a.length?(0,j.jsx)(Ce,{}):a.map(e=>(0,j.jsx)(ye,{item:e,onClick:i(e)?()=>o(e):void 0},e.id))}),(0,j.jsx)(de,{open:t,onClose:()=>n(!1)})]})};var je=n(84064),_e=n(89401);const Ae=()=>{const{t:e}=(0,r.Bd)("my-page/link-health"),t=(0,d.Zp)(),{brokenCount:n,isLoading:o}=(0,_e.rM)();return o||0===n?null:(0,j.jsx)(m.A,{title:(0,j.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:8},children:[(0,j.jsx)(M.n,{icon:b.Alert02Icon,size:16,color:C.a4}),e("home.title")]}),description:(0,j.jsx)("span",{style:{color:C.f},children:1===n?e("home.description"):e("home.description_plural",{c
1ount:n})}),actions:[(0,j.jsx)(g.Ay,{type:"secondary",size:"small",onClick:()=>t("/my-page?linkHealth=true"),children:e("home.cta")},"review")]})};var we,Le,Ie,Me,Ee,Ne,Se,Be,Te,Oe,We,De,Re,Pe=n(16569),ze=n(5520),He=n(7716),Ue=n(57645),Ye=n(94706),Fe=n(31669),Ze=n(22602),$e=n(51688);const qe=J.Ay.div(we||(we=(0,V.A)(["\n  width: 100%;\n  border: 1px solid ",";\n  background: ",";\n  border-radius: 10px;\n  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.02);\n  overflow: hidden;\n"])),C.Ug,C.XX),Ke=J.Ay.img(Le||(Le=(0,V.A)(["\n  width: 100%;\n  aspect-ratio: 16 / 9;\n  object-fit: cover;\n  object-position: ",";\n  display: block;\n"])),e=>{let{$topAligned:t}=e;return t?"top":"center"}),Ve=J.Ay.div(Ie||(Ie=(0,V.A)(["\n  width: 100%;\n  aspect-ratio: 16 / 9;\n  background: ",";\n"])),C.mP),Je=J.Ay.div(Me||(Me=(0,V.A)(['\n  cursor: pointer;\n  display: block;\n  position: relative;\n\n  &::after {\n    content: "";\n    position: absolute;\n    inset: 0;\n    background: rgba(0, 0, 0, 0.08);\n    opacity: 0;\n    transition: opacity 0.15s ease;\n    pointer-events: none;\n  }\n\n  &:hover::after {\n    opacity: 1;\n  }\n\n  &:hover .preview-overlay {\n    opacity: 1;\n  }\n']))),Xe=J.Ay.div(Ee||(Ee=(0,V.A)(["\n  position: absolute;\n  inset: 0;\n  opacity: 0;\n  transition: opacity 0.15s ease;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  pointer-events: none;\n  z-index: 1;\n"]))),Ge=J.Ay.div(Ne||(Ne=(0,V.A)(["\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n  padding: 10px 16px 16px 16px;\n"]))),Qe=J.Ay.div(Se||(Se=(0,V.A)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  width: 100%;\n"]))),et=J.Ay.div(Be||(Be=(0,V.A)(["\n  flex: 1;\n  min-width: 0;\n  color: ",";\n"])),C.LE),tt=J.Ay.div(Te||(Te=(0,V.A)(["\n  flex-shrink: 0;\n"]))),nt=J.Ay.div(Oe||(Oe=(0,V.A)(["\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  max-width: 100%;\n"]))),ot=J.Ay.div(We||(We=(0,V.A)(["\n  color: ",";\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n"])),C.f),it=J.Ay.button(De||(De=(0,V.A)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 4px;\n  border: none;\n  background: transparent;\n  border-radius: 6px;\n  cursor: pointer;\n  color: ",";\n  flex-shrink: 0;\n  &:hover {\n    background: ",";\n  }\n"])),C.f,C.mP),st=J.Ay.div(Re||(Re=(0,V.A)(["\n  border-top: 1px solid ",";\n  padding: 16px;\n"])),C.Ug),rt=()=>{var e;const{t:t}=(0,r.Bd)("home/index"),n=(0,d.Zp)(),o=(0,a.al)(),{store:i}=(0,I.gbT)(),{data:s}=(0,Fe.TN)(),{pageCollections:l}=(0,Ye.O2)(),{shareModal:p}=(0,q.IT)(),u=(0,q.Iz)(),[h,x]=(0,c.useState)(!1),[m,k]=(0,c.useState)(!1),f="true"===p||"socials"===p,y="socials"===p?1:void 0;(0,c.useEffect)(()=>{f&&x(!0)},[f]);const v=()=>n("/my-page?previous=".concat((0,q.d0)())),C=[{label:t("page_card.edit_url"),key:"edit-url",icon:(0,j.jsx)(M.n,{icon:b.Link02Icon,size:16}),onClick:e=>{let{domEvent:t}=e;t.preventDefault(),t.stopPropagation(),k(!0)}},{label:t("page_card.edit_page"),key:"edit-page",icon:(0,j.jsx)(M.n,{icon:b.Edit02Icon,size:16}),onClick:e=>{let{domEvent:t}=e;t.preventDefault(),t.stopPropagation(),v()}}],_=(0,c.useMemo)(()=>null===l||void 0===l?void 0:l.find(e=>e.type===Ye.YC.LINKS),[l]),A=o?null===_||void 0===_?void 0:_.preview_url:null===_||void 0===_?void 0:_.preview_url_landscape,w="".concat(Ue.I6,"/").concat(null===i||void 0===i?void 0:i.eshop_handle),L=w.replace(/^https?:\/\//,"");return(0,j.jsxs)(qe,{children:[(0,j.jsx)(He.A,{open:m,onCancel:()=>k(!1)}),(0,j.jsx)($e.A,{open:h,onCancel:()=>{x(!1),f&&u(["shareModal"],[""],!0)},store_url:w,profile_img_url:(null===s||void 0===s||null===(e=s.header)||void 0===e?void 0:e.image)||"",shareInBioTodo:f,initialSlide:y}),(0,j.jsxs)(Je,{onClick:v,children:[A?(0,j.jsx)(Ke,{src:A,alt:t("page_card.title"),$topAligned:o}):(0,j.jsx)(Ve,{}),(0,j.jsx)(Xe,{className:"preview-overlay",children:(0,j.jsx)(g.Ay,{type:"secondary",size:"middle",icon:b.Edit02Icon,children:t("page_card.edit_page")})})]}),(0,j.jsxs)(Ge,{children:[(0,j.jsxs)(Qe,{children:[(0,j.jsx)(et,{className:"text-sm-medium",children:t("page_card.title")}),(0,j.jsx)(tt,{onClick:e=>e.stopPropagation(),children:(0,j.jsx)(ze.A,{trigger:["click"],placement:"bottomRight",menu:{items:C,onClick:e=>{e.domEvent.preventDefault(),e.domEvent.stopPropagation()}},children:(0,j.jsx)(g.Ay,{type:"ghost",icon:b.MoreHorizontalIcon,onClick:e=>{e.preventDefault(),e.stopPropagation()}})})})]}),(0,j.jsxs)(nt,{children:[(0,j.jsx)(ot,{className:"text-sm",children:L}),(0,j.jsx)(Ze.A,{title:t("page_card.copy_link"),children:(0,j.jsx)(it,{type:"button",onClick:e=>{e.stopPropagation(),navigator.clipboard.writeText(w),Pe.Ay.success(t("page_card.copied"))},children:(0,j.jsx)(M.n,{icon:b.Copy01Icon,size:16})})})]})]}),(0,j.jsx)(st,{children:(0,j.jsx)(g.Ay,{type:"secondary",className:"w-100",icon:b.Share03Icon,onClick:()=>x(!0),children:t("page_card.share")})})]})};var lt,at,ct,dt,pt=n(5986);
1const ut="/home:action-cards:share-content",ht="/home:action-cards:promote",xt="/home:action-cards:sell",mt=[{key:"share_content",labelKey:"actions.share_content",icon:b.ContentWritingIcon,color:"#74321b",background:"rgba(252, 137, 55, 0.05)",hoverBackground:"rgba(252, 137, 55, 0.1)",border:"rgba(119, 68, 51, 0.1)",path:"/home?newPage=content",source:ut,forwardPrevious:!0,forwardSource:!0},{key:"promote",labelKey:"actions.promote",icon:b.Megaphone01Icon,color:"#285231",background:"rgba(121, 219, 136, 0.05)",hoverBackground:"rgba(121, 219, 136, 0.1)",border:"rgba(40, 82, 49, 0.1)",path:"/home?promoteBusiness=true",source:ht},{key:"sell",labelKey:"actions.sell",icon:b.EuroCircleIcon,color:"#522081",background:"rgba(184, 136, 245, 0.05)",hoverBackground:"rgba(184, 136, 245, 0.1)",border:"rgba(82, 32, 129, 0.1)",path:"/home?newPage=commerce",source:xt,forwardPrevious:!0,forwardSource:!0}],gt=J.Ay.div(lt||(lt=(0,V.A)(["\n  display: flex;\n  gap: 16px;\n  width: 100%;\n"]))),kt=J.Ay.button(at||(at=(0,V.A)(["\n  flex: 1 0 0;\n  min-width: 0;\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 8px;\n  padding: 20px;\n  border-radius: 8px;\n  border: 1px solid ",";\n  background: ",";\n  color: ",";\n  cursor: pointer;\n  text-align: left;\n  transition: background 0.15s ease, border-color 0.15s ease;\n\n  &:hover {\n    background: ",";\n    border-color: ","40;\n  }\n\n  &:hover .action-card-arrow {\n    transform: translateX(3px);\n  }\n\n  @media (max-width: 991px) {\n    padding: 12px;\n    gap: 6px;\n  }\n"])),e=>{let{$border:t}=e;return t},e=>{let{$background:t}=e;return t},e=>{let{$color:t}=e;return t},e=>{let{$hoverBackground:t}=e;return t},e=>{let{$color:t}=e;return t}),ft=J.Ay.span(ct||(ct=(0,V.A)(["\n  display: flex;\n  flex-shrink: 0;\n  transition: transform 0.15s ease;\n"]))),yt=J.Ay.span(dt||(dt=(0,V.A)(["\n  font-size: 14px;\n  font-weight: 500;\n  line-height: 20px;\n\n  @media (max-width: 991px) {\n    font-size: 13px;\n    line-height: 18px;\n  }\n"]))),vt=()=>{const{t:e}=(0,r.Bd)("home/index"),t=(0,d.Zp)(),n=(0,pt.V)();return(0,j.jsx)(gt,{children:mt.map(o=>(0,j.jsxs)(kt,{type:"button",$background:o.background,$hoverBackground:o.hoverBackground,$border:o.border,$color:o.color,onClick:()=>(e=>{e.todoKey&&n(e.todoKey,e.source);let o=e.path;e.forwardSource&&(o+="&source=".concat(encodeURIComponent(e.source))),e.forwardPrevious&&(o+="&previous=".concat((0,q.d0)())),t(o)})(o),children:[(0,j.jsxs)(l.A,{justifyContent:"between",alignItems:"center",className:"w-100",children:[(0,j.jsx)(M.n,{icon:o.icon,size:20,color:o.color}),(0,j.jsx)(ft,{className:"action-card-arrow",children:(0,j.jsx)(M.n,{icon:b.ArrowRight02Icon,size:16,color:o.color})})]}),(0,j.jsx)(yt,{children:e(o.labelKey)})]},o.key))})};var Ct,bt,jt,_t,At,wt,Lt,It,Mt,Et=n(8228),Nt=n(69721),St=n(91960),Bt=n(23761);const Tt=(e,t)=>(t.visited_at?new Date(t.visited_at).getTime():0)-(e.visited_at?new Date(e.visited_at).getTime():0),Ot=J.Ay.div(Ct||(Ct=(0,V.A)(["\n  pointer-events: none;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  background: linear-gradient(\n    ","deg,\n    transparent 0%,\n    "," 100%\n  );\n  right: ",";\n  left: ",";\n  width: 60px;\n  z-index: 20;\n"])),e=>{let{direction:t}=e;return"left"===t?"-90":"90"},C.UE,e=>{let{direction:t}=e;return"right"===t?"0":""},e=>{let{direction:t}=e;return"left"===t?"0":""}),Wt=J.Ay.button(bt||(bt=(0,V.A)(["\n  background: none;\n  border: none;\n  padding: 0;\n  cursor: pointer;\n  font-size: 12px;\n  font-weight: 500;\n  line-height: 1;\n  color: ",";\n\n  &:hover {\n    text-decoration: underline;\n  }\n"])),C.f),Dt=(0,J.Ay)(g.Ay)(jt||(jt=(0,V.A)(["\n  position: absolute;\n  top: 50%;\n  ","\n  transform: translateY(-50%);\n  z-index: 30;\n  border-radius: 100%;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n"])),e=>{let{direction:t}=e;return"right"===t?"right: 5px;":"left: 5px;"}),Rt=J.Ay.div(_t||(_t=(0,V.A)(["\n  -ms-overflow-style: none;\n  scrollbar-width: none;\n  &::-webkit-scrollbar {\n    display: none;\n  }\n  position: relative;\n  overflow: auto;\n  display: grid;\n  grid-auto-flow: column;\n  column-gap: 12px;\n  grid-auto-columns: ",";\n  width: 100%;\n  padding-bottom: 16px;\n"])),e=>{let{isMobile:t}=e;return t?"45%":"210px"}),Pt=J.Ay.button(At||(At=(0,V.A)(["\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  padding: 0;\n  border: 1px solid ",";\n  border-radius: 12px;\n  background: ",";\n  overflow: hidden;\n  cursor: pointer;\n  text-align: left;\n  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.02);\n  transition: border-color 0.2s ease;\n\n  &:hover {\n    border-color: ",";\n  }\n"])),C.Ug,C.UE,C.Y2),zt=J.Ay.button(wt||(wt=(0,V.A)(["\n  width: 100%;\n  height: 100%;\n  min-height: ",";\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  gap: 4px;\n  padding: 10px;\n  border: 1px solid ",";\n  border-radius: 12px;\n  background: ",";\n  color: ",";\n  cursor: pointer;\n  box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.02);\n  transition: border-color 0.2s ease;\n\n  &:hover {\n    border-color: ",";\n  }\n"])),e=>{let{isMobile:t}=e;return t?"auto":"177px"},C.Ug,C.UE,C.PV,C.Y2),Ht=J.Ay.span(Lt||(Lt=(0,V.A)(["\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n  color: ",";\n"])),C.PV),Ut=J.Ay.img(It||(It=(0,V.A)(["\n  width: 100%;\n  aspect-ratio: 16 / 9;\n  object-fit: cover;\n  object-position: top;\n  display: block;\n"]))),Yt=J.Ay.div(Mt||(Mt=(0,V.A)(["\n  width: 100%;\n  aspect-ratio: 16 / 9;\n  background: ",";\n"])),C.mP),Ft=(e,t)=>
1e.type===Ye.YC.LINKS?t("page_card.title"):e.name||t("recent_pages.untitled"),Zt=()=>{const{t:e}=(0,r.Bd)("home/index"),t=(0,d.Zp)(),n=(0,a.al)(),o=!(0,Et.J)(),{pageCollections:i,isLoading:s}=(0,Ye.O2)(),u=(0,c.useRef)(null),h=(0,c.useMemo)(()=>{const e=(null!==i&&void 0!==i?i:[]).filter(e=>!e.archived_at&&e.type!==Ye.YC.STORE),t=e.find(e=>e.type===Ye.YC.LINKS),n=e.filter(e=>e.type!==Ye.YC.LINKS).sort(Tt);return(t?[t,...n]:n).slice(0,12)},[i]),{canScrollRight:x,canScrollLeft:m,handleScrollRight:g,handleScrollLeft:k,onScroll:f}=(0,Nt.rf)(u,300,"".concat(h.length));return s?null:(0,j.jsxs)(l.A,{flexDirection:"column",gap:"sm",children:[(0,j.jsxs)(l.A,{className:"w-100",alignItems:"center",gap:"xs",children:[(0,j.jsxs)(l.A,{alignItems:"center",style:{gap:6,color:C.f},children:[(0,j.jsx)(M.n,{icon:b.Clock01Icon,size:16}),(0,j.jsx)("span",{className:"text-xs",children:e("recent_pages.title")})]}),(0,j.jsx)(Wt,{type:"button",onClick:()=>t("/pages"),children:e("see_all")})]}),(0,j.jsxs)("div",{className:"w-100 position-relative",children:[m&&(0,j.jsx)(Ot,{direction:"left"}),m&&o&&(0,j.jsx)(Dt,{direction:"left",icon:(0,j.jsx)(St.Y,{}),onClick:k,type:"secondary"}),x&&(0,j.jsx)(Ot,{direction:"right"}),x&&o&&(0,j.jsx)(Dt,{direction:"right",icon:(0,j.jsx)(Bt.A,{}),onClick:g,type:"secondary"}),(0,j.jsxs)(Rt,{isMobile:n,ref:u,onScroll:f,children:[h.map(n=>{const o=n.preview_url_landscape||n.preview_url,i=n.type===Ye.YC.LINKS;return(0,j.jsxs)(Pt,{type:"button",onClick:()=>(e=>{t((0,Ye.TM)(e,{previousPath:(0,q.d0)()}))})(n),children:[o?(0,j.jsx)(Ut,{src:o,alt:Ft(n,e)}):(0,j.jsx)(Yt,{}),(0,j.jsxs)(l.A,{flexDirection:"column",style:{gap:2,padding:"8px 12px 12px"},children:[(0,j.jsxs)(l.A,{alignItems:"center",gap:"xs",className:"w-100",children:[(0,j.jsx)("div",{className:"text-sm-medium text-truncate",style:{flex:1,minWidth:0},children:Ft(n,e)}),i&&(0,j.jsx)(Ze.A,{title:e("recent_pages.pinned"),children:(0,j.jsx)(Ht,{children:(0,j.jsx)(M.n,{icon:b.PinIcon,size:14})})})]}),(0,j.jsx)("div",{className:"text-xs",style:{color:C.f},children:n.visited_at?(0,p.yf)(n.visited_at).fromNow():""})]})]},n.id)}),(0,j.jsxs)(zt,{isMobile:n,type:"button",onClick:()=>t("/home?newPage=true&source=/home:recent-pages"),children:[(0,j.jsx)(M.n,{icon:b.Add01Icon,size:16}),(0,j.jsx)("span",{className:"text-sm-medium",children:e("recent_pages.new_page")})]})]})]})]})};var $t=n(15542),qt=n(89352),Kt=n(99139);const Vt=JSON.stringify({path:encodeURIComponent("/home"),query:""}),Jt=e=>{let{open:t,onCancel:n}=e;const{t:o}=(0,r.Bd)("home/index"),i=(0,d.Zp)(),s=(0,pt.V)(),a=[{key:"email",title:o("promote_modal.email.title"),description:o("promote_modal.email.description"),icon:b.SentIcon,path:"/audience/emails/composer/create?step=compose&previous=".concat(Vt),todoKey:"create_first_email"},{key:"import",title:o("promote_modal.import.title"),description:o("promote_modal.import.description"),icon:b.UserAdd01Icon,path:"/audience/contacts?addContact=true",todoKey:"import_contacts"}];return(0,j.jsx)(X.oZ,{open:t,onCancel:n,title:o("promote_modal.title"),removePadding:!0,children:(0,j.jsxs)(l.A,{flexDirection:"column",style:{gap:16},className:"p-3",children:[(0,j.jsx)(qt.A,{type:"info",content:o("promote_modal.disclaimer")}),a.map(e=>(0,j.jsx)(Kt.A,{title:e.title,description:e.description,icon:e.icon,action:(0,j.jsx)(g.Ay,{type:"secondary",size:"small",children:o("promote_modal.select")}),onClick:()=>(e=>{s(e.todoKey,ht),i(e.path)})(e)},e.key))]})})};var Xt=n(15548),Gt=n(61943);const Qt=function(){const{t:e}=(0,r.Bd)("home/index"),{user:t}=(0,s.F7)(),n=(0,a.al)(),{promoteBusiness:c,plan:d}=(0,q.IT)(),p=(0,q.Iz)();return(0,j.jsxs)(i.A,{children:[(0,j.jsx)($t.A,{}),(0,j.jsx)(Xt.A,{isVisible:"true"===d,onCancel:()=>p(["plan"],[""],!0),upgradeFeature:Gt.JT.ANALYTICS,quickUpgradePlan:"plus"}),(0,j.jsx)(Jt,{open:!!c,onCancel:()=>p(["promoteBusiness"],[""],!0)}),(0,j.jsx)(o.Y,{title:e("welcome",{first_name:(null===t||void 0===t?void 0:t.first_name)||""})}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"md",className:n?"px-3 pt-3 pb-3":"pt-3",children:[(0,j.jsx)(vt,{}),(0,j.jsx)(Zt,{}),(0,j.jsxs)(l.A,{gap:"md",flexDirection:n?"column":"row",alignItems:"start",className:"w-100",children:[(0,j.jsxs)(l.A,{flexDirection:"column",gap:"md",style:{flex:1,minWidth:0,width:"100%"},children:[(0,j.jsx)(Ae,{}),(0,j.jsx)(je.Ay,{}),(0,j.jsx)(be,{})]}),(0,j.jsxs)(l.A,{flexDirection:"column",gap:"md",style:{width:n?"100%":368,flexShrink:0},children:[(0,j.jsx)(rt,{}),(0,j.jsx)(R,{}),(0,j.jsx)(L,{})]})]})]})]})}},33079:(e,t,n)=>{n.d(t,{A:()=>a});var o,i=n(57528),s=n(2826),r=n(70579);const l=s.Ay.div(o||(o=(0,i.A)(["\n  display: flex;\n  flex-direction: column;\n  align-items: ",";\n  width: 100%;\n  padding: 16px 24px;\n  @media (max-width: 991px) {\n    padding: 0px 0px 86px 0px;\n    overflow-x: hidden;\n  }\n\n  -webkit-font-smoothing: antialiased;\n  -moz-font-smoothing: antialiased;\n  -o-font-smoothing: antialiased;\n"])),e=>{let{align:t}=e;return t||"center"}),a=e=>(0,r.jsx)(l,{align:e.align,children:(0,r.jsx)("div",{className:"w-100",style:{maxWidth:e.detailsPage?1080:1232},children:e.children})})},40491:(e,t,n)=>{n.d(t,{A:()=>C});var o,i,s,r,l,a,c=n(57528),d=n(63935),p=n(2826),u=n(76910),h=n(98734),x=n(70579);const m=p.Ay.div(o||(o=(0,c.A)(["\n  border-radius: 10px;\n  width: 100%;\n  border: 1px solid ",";\n  background: ",";\n  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.02);\n  overflow: hidden;\n"])),d.Ug,d.mP),g=p.Ay.div(i||(i=(0,c.A)(["\n  padding: 16px;\n"]))),k=p.Ay.div(s||(s=(0,c.A)(["\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  width: 100%;\n"]))),f=p.Ay.div(r||(r=(0,c.A)(["\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n  flex: 1;\n  min-width: 0;\n"]))),y=p.Ay.div(l||(l=(0,c.A)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-shrink: 0;\n  margin-left: auto;\n"]))),v=p.Ay.div(a||(a=(0,c.A)(["\n  border-top: 1px solid ",";\n  background: ",";\n  border-radius: 10px 10px 0 0;\n  height: 100%;\n"])),d.Ug,d.XX),C=e=>{let{id:t,showSwitch:n,switchPosition:o="left",active:i,onSwitch:s,title:r,de
1scription:l,actions:a,filters:c,className:p,children:C,switchLoading:b,badges:j,contentStyle:_}=e;return(0,x.jsxs)(m,{className:p,id:t,children:[(0,x.jsx)(g,{children:(0,x.jsxs)(k,{children:[n&&"left"===o&&(0,x.jsx)(u.A,{checked:!!i,onChange:s,loading:b}),(0,x.jsxs)(f,{children:[(0,x.jsxs)(h.A,{alignItems:"center",gap:"xs",children:[(0,x.jsx)("div",{className:"text-base-medium",style:{color:d.LE},children:r}),j&&(0,x.jsx)(x.Fragment,{children:j.map(e=>e)})]}),l&&(0,x.jsx)("div",{className:"text-xs",style:{color:d.f},children:l})]}),(a&&a.length>0||n&&"right"===o)&&(0,x.jsxs)(y,{children:[a,n&&"right"===o&&(0,x.jsx)(u.A,{checked:!!i,onChange:s,loading:b})]})]})}),C&&(0,x.jsxs)(v,{style:_,children:[c&&(0,x.jsx)(h.A,{style:{padding:"16px"},alignItems:"center",gap:"xs",children:c}),C]})]})}},40747:(e,t,n)=>{n.d(t,{$g:()=>m,qC:()=>u,vp:()=>c.vp,Lu:()=>g,L4:()=>h,$k:()=>x});var o=n(65043),i=n(72954);const s=["body","header_title","header_subtitle"],r=e=>!e||e.isDestroyed?0:(0,i.mk)(e.state),l=e=>!!e&&!e.isDestroyed&&e.can().undo(),a=e=>!!e&&!e.isDestroyed&&e.can().redo();var c=n(2820),d=n(70579);const p=(0,o.createContext)(void 0),u=e=>{let{children:t,onCropImage:n,onOpenImageModal:i}=e;const[u,h]=(0,o.useState)(null),[x,m]=(0,o.useState)(void 0),[g,k]=(0,o.useState)(null),f=(0,o.useRef)(null),y=(0,o.useRef)(null),v=(0,o.useRef)(null),C=(0,o.useRef)(!1),b=(0,o.useRef)(!1),j=(0,o.useRef)(null),_=(0,o.useRef)(null),A=(0,o.useCallback)(e=>"body"===e?u:"header_title"===e?j.current:_.current,[u]),{version:w,pushMarker:L,performMetaUndo:I,performMetaRedo:M,clearUndoStacks:E,canMetaUndo:N,canMetaRedo:S,syncCount:B,notifyHistoryChange:T}=function(e){const[t,n]=(0,o.useState)(0),i=(0,o.useCallback)(()=>n(e=>e+1),[]),c=(0,o.useRef)([]),d=(0,o.useRef)([]),p=(0,o.useRef)(new Map),u=(0,o.useRef)(!1),h=(0,o.useCallback)(t=>{p.current.set(t,r(e(t)))},[e]),x=(0,o.useCallback)(t=>{var n;if(u.current)return;const o=e(t);if(!o||o.isDestroyed)return;const s=r(o),l=null!==(n=p.current.get(t))&&void 0!==n?n:0;if(s>l){for(let e=0;e<s-l;e++)c.current.push({kind:t});d.current=[],i()}p.current.set(t,s)},[e,i]),m=(0,o.useCallback)(()=>{const t=c.current;if(0===t.length)return;const n=t[t.length-1],o=e(n.kind);if(!l(o))return t.pop(),void i();t.pop(),u.current=!0;try{o.commands.undo()}finally{u.current=!1}d.current.push(n),h(n.kind),i()},[e,i,h]),g=(0,o.useCallback)(()=>{const t=d.current;if(0===t.length)return;const n=t[t.length-1],o=e(n.kind);if(!a(o))return t.pop(),void i();t.pop(),u.current=!0;try{o.commands.redo()}finally{u.current=!1}c.current.push(n),h(n.kind),i()},[e,i,h]),k=(0,o.useCallback)(()=>
1{c.current=[],d.current=[],p.current=new Map,s.forEach(e=>h(e)),i()},[h,i]),f=(0,o.useCallback)(()=>{const t=c.current;return 0!==t.length&&l(e(t[t.length-1].kind))},[e,t]),y=(0,o.useCallback)(()=>{const t=d.current;return 0!==t.length&&a(e(t[t.length-1].kind))},[e,t]);return{version:t,navigatingRef:u,pushMarker:x,performMetaUndo:m,performMetaRedo:g,clearUndoStacks:k,canMetaUndo:f,canMetaRedo:y,syncCount:h,notifyHistoryChange:i}}(A);(0,o.useEffect)(()=>{B("body"),T()},[u,B,T]);const O=(0,o.useCallback)((e,t)=>{"header_title"===e?j.current=t:_.current=t,B(e),T()},[B,T]),W=(0,o.useCallback)(e=>{m(e)},[]),D=(0,o.useCallback)(()=>!!u&&(0,c.EH)(u.getJSON()),[u]),R=(0,o.useMemo)(()=>({editor:u,setEditor:h,saveContentRef:f,cancelAutoSaveRef:y,hasContent:D,onCropImage:n,onOpenImageModal:i,campaignId:g,setCampaignId:k,ensureCampaignExistsRef:v,hasLoadedContentRef:C,isLoadingContent:b,stackVersion:w,pushUndoMarker:L,performMetaUndo:I,performMetaRedo:M,clearUndoStacks:E,registerHeaderEditor:O,canMetaUndo:N,canMetaRedo:S,notifyEditorHistoryChange:T,insertBlockMenuConfig:x,registerInsertBlockMenuConfig:W}),[u,g,n,i,w,L,I,M,E,O,N,S,T,D,x,W]);return(0,d.jsx)(p.Provider,{value:R,children:t})},h=()=>{const e=(0,o.useContext)(p);if(void 0===e)throw new Error("useEmailComposerEditor must be used within an EmailComposerProvider");return e},x=()=>(0,o.useContext)(p),m=u,g=h},54e3:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(89379),i=n(80045),s=n(77720),r=n(70579);const l=["withBackground"],a=e=>{let{withBackground:t=!0}=e;return(0,r.jsxs)("svg",{width:"100%",height:"100%",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"23.5",fill:"#F0F0F1"}),(0,r.jsx)("rect",{x:"0.5",y:"0.5",width:"47",height:"47",rx:"23.5",stroke:"#E8E8E8"})]}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"#1B1B1A",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M32.001 20C32.001 21.9329 30.434 23.5 28.501 23.5C26.568 23.5 25.001 21.9329 25.001 20C25.001 18.067 26.568 16.5 28.501 16.5C30.434 16.5 32.001 18.067 32.001 20Z",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"square"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.16
179 21.0772",stroke:"#1B1B1A",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M26.8301 16.9228C26.3758 15.5168 25.0561 14.5 23.499 14.5C21.566 14.5 19.999 16.067 19.999 18C19.999 19.9329 21.566 21.5 23.499 21.5C24.1033 21.5 24.6718 21.3468 25.1679 21.0772",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"#1B1B1A",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5
1555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5
1555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,r.jsx)("path",{d:"M16.001 25.5H18.3958C18.6899 25.5 18.9801 25.5663 19.2431 25.6936L21.2851 26.6816C21.5482 26.8089 21.8383 26.8751 22.1325 26.8751H23.1751C24.1835 26.8751 25.001 27.6662 25.001 28.642C25.001 28.6814 24.974 28.7161 24.9348 28.7269L22.3939 29.4295C21.938 29.5555 21.45 29.5116 21.026 29.3064L18.8431 28.2503M25.001 28L29.5938 26.5889C30.408 26.3352 31.2881 26.636 31.7981 27.3423C32.1669 27.8529 32.0167 28.5842 31.4795 28.8942L23.9639 33.2305C23.4859 33.5063 22.9219 33.5736 22.3962 33.4176L16.001 31.5199",stroke:"black",strokeOpacity:"0.2",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})]})},c=e=>{let{withBackground:t=!0}=e,n=(0,i.A)(e,l);return(0,r.jsx)(s.A,(0,o.A)({component:()=>(0,r.jsx)(a,{withBackground:t})},n))}},79e3:(e,t,n)=>{n.d(t,{CE:()=>i,LW:()=>l,Uk:()=>a,fA:()=>s,uN:()=>r});const o={file_download_block:"file_download",donation_block:"tips_jar",email_block:"email_signup",contact_block:"contact_form",link:"link_unlock"},i=(e,t,n)=>(null===e||void 0===e?void 0:e.title)||((e,t)=>{const n=(e=>{if(e)return e.startsWith("file_dlb")?"file_download_block":e.startsWith("donation_")?"donation_block":e.startsWith("email_block_")?"email_block":e.startsWith("contact_block_")?"contact_block":e.startsWith("link_")?"link":void 0})(e);if(!n)return;const i=o[n];return i?t(i):void 0})(t,n)||"",s=e=>{var t,n,o,i,s;return e.contact_block_id||(null===(t=e.contact_block)||void 0===t?void 0:t.id)||e.donation_block_id||(null===(n=e.donation_block)||void 0===n?void 0:n.id)||e.file_download_block_id||(null===(o=e.file_download_block)||void 0===o?void 0:o.id)||e.email_block_id||(null===(i=e.email_block)||void 0===i?void 0:i.id)||e.link_id||(null===(s=e.link)||void 0===s?void 0:s.id)||void 0},r=(e,t)=>{var n,o,r,l,a;const c=s(e),d=(null===(n=e.contact_block)||void 0===n?void 0:n.title)||(null===(o=e.donation_block)||void 0===o?void 0:o.title)||(null===(r=e.file_download_block)||void 0===r?void 0:r.title)||(null===(l=e.email_block)||void 0===l?void 0:l.title)||(null===(a=e.link)||void 0===a?void 0:a.title)||void 0;return i({title:d},c,t)},l=e=>"/analytics/blocks/".concat(e),a=(e,t,n)=>{const o=(e=>{if(e)return e.startsWith("file_dlb")?"editFileDownloadBlock":e.startsWith("donation_")?"editDonationBlock":e.startsWith("email_block_")?"editEmailBlock":e.startsWith("contact_block_")?"editContactBlock":e.startsWith("link_")?"editLink":void 0})(e);if(!o||!e)return;const i=new URLSearchParams({selectedTab:"links"});return null!==t&&void 0!==t&&t.type&&"links"!==t.type&&t.slug&&i.set("editPageCollection",t.slug),i.set(o,e),n&&i.set("scrollToBlock",n),"/my-page?".concat(i.toString())}},84064:(e,t,n)=>{n.d(t,{Ay:()=>q,Bs:()=>E,IZ:()=>R,P:()=>F,ZP:()=>Z,ns:()=>N,wv:()=>D});var o,i,s,r,l,a,c,d,p=n(57528),u=n(65043),h=n(74117),x=n(73216),m=n(4221),g=n(2826),k=n(26449),f=n(67298),y=n(40491),v=n(98734),C=n(4686),b=n(5986),j=n(11627),_=n(40747),A=n(95406),w=n(63935),L=n(70579);const I="send_first_email_campaign",M="/home:onboarding-todo",E=new Set(["edit_link_in_bio_style","create_first_email",I,"create_first_page","create_first_product","create_product_collection"]),N={edit_link_in_bio_style:"/my-page?selectedTab=links&openPageStyle=true",share_paage_in_bio:"/home?shareModal=socials",create_first_page:"/home?newPage=true",import_contacts:"/audience/contacts?addContact=true",create_first_email:"/audience/emails/composer/create?step=compose",send_first_email_campaign:"/audience/emails/composer/create?step=compose",create_first_product:"/home?selectProductType=true",create_product_collection:"/home?selectProductCollectionType=true"},S=[["path",{d:String(k.CheckmarkCircle02Icon[0][1].d),fill:"currentColor",key:"0"}]],B=[["path",{d:String(k.CheckmarkCircle02Icon[1][1].d),stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]],T=g.Ay.div(o||(o=(0,p.A)(["\n  width: ","px;\n  height: ","px;\n  border-radius: 6px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  flex-shrink: 0;\n  box-sizing: border-box;\n  border: 1px solid ",";\n  background: ",";\n  box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.05);\n"])),28,28,e=>{let{$done:t}=e;return t?w.Ew:w.Ug},e=>{let{$done:t}=e;return t?"linear-gradient(180deg, #ffffff 0%, ".concat("rgba(217, 243, 238, 0.8)"," 100%)"):"linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%)"}),O=g.Ay.div(i||(i=(0,p.A)(["\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  width: ","px;\n  flex-shrink: 0;\n  align-self: stretch;\n"])),28),W=g.Ay.div(s||(s=(0,p.A)(["\n  width: 1px;\n  flex: 1;\n  min-height: 12px;\n  margin-top: 12px;\n  background: ",";\n"])),w.Ug),D=g.Ay.div(r||(r=(0,p.A)(["\n  height: 1px;\n  background: ",";\n  margin: 0 16px;\n"])),w.Ug),R=e=>[...e].sort((e,t)=>
1{var n,o;const i=!(null===(n=e.state)||void 0===n||!n.completed_at);return i===!(null===(o=t.state)||void 0===o||!o.completed_at)?0:i?-1:1}),P=g.Ay.div(l||(l=(0,p.A)(["\n  position: relative;\n"]))),z=g.Ay.div(a||(a=(0,p.A)(["\n  max-height: ","px;\n  overflow-y: auto;\n  overflow-x: hidden;\n  padding-bottom: ","px;\n  -webkit-overflow-scrolling: touch;\n  scrollbar-width: none;\n  -ms-overflow-style: none;\n  &::-webkit-scrollbar {\n    display: none;\n  }\n"])),e=>{let{$maxHeight:t}=e;return t},52),H=g.Ay.div(c||(c=(0,p.A)(["\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  display: flex;\n  justify-content: center;\n  align-items: flex-end;\n  padding-bottom: 16px;\n  padding-top: 48px;\n  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 70%);\n  pointer-events: none;\n\n  & > * {\n    pointer-events: auto;\n  }\n"]))),U=g.Ay.div(d||(d=(0,p.A)(["\n  overflow: ",";\n  max-height: ",";\n  opacity: ",";\n  transition: max-height 0.25s ease, opacity 0.25s ease;\n"])),e=>{let{$expanded:t}=e;return t?"visible":"hidden"},e=>{let{$expanded:t,$maxHeight:n}=e;return t?"".concat(n,"px"):"0px"},e=>{let{$expanded:t}=e;return t?1:0}),Y=e=>{let{done:t}=e;return(0,L.jsx)(T,{$done:t,children:t?(0,L.jsxs)("span",{className:"d-inline-flex flex-shrink-0 position-relative",style:{width:16,height:16},"aria-hidden":!0,children:[(0,L.jsx)(f.n,{icon:S,size:16,color:w.xX}),(0,L.jsx)(f.n,{icon:B,size:16,color:w.ZP,className:"position-absolute",style:{left:0,top:0,pointerEvents:"none"}})]}):(0,L.jsx)(f.n,{icon:k.CheckmarkCircle02Icon,size:16,color:w.PV})})},F=e=>{let{percent:t}=e;const n=40,o=18.5,i=2*Math.PI*o,s=i-t/100*i;return(0,L.jsxs)("div",{style:{position:"relative",width:n,height:n},children:[(0,L.jsxs)("svg",{width:n,height:n,style:{transform:"rotate(-90deg)"},children:[(0,L.jsx)("circle",{cx:20,cy:20,r:o,stroke:w.Ug,strokeWidth:3,fill:"none"}),(0,L.jsx)("circle",{cx:20,cy:20,r:o,stroke:"#0081F1",strokeWidth:3,fill:"none",strokeDasharray:i,strokeDashoffset:s,strokeLinecap:"round"})]}),(0,L.jsxs)("div",{style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:500,color:w.f},children:[Math.round(t),"%"]})]})},Z=e=>{var t,n;let{item:o,expanded:i,onToggle:s,ctaOverrides:r,startSource:l=M}=e;const{t:a}=(0,h.Bd)("home/onboarding-todo"),c=(0,x.Zp)(),{mutateAsync:d}=(0,b.B7)(),p=(0,b.Kq)(),m=(0,u.useRef)(null),[g,y]=(0,u.useState)(0),S=!(null===(t=o.state)||void 0===t||!t.completed_at),B=(null===(n=o.metadata)||void 0===n?void 0:n.learn_more_url)||null,T=i&&!S,D=o.key===I,{data:R}=(0,j.T8)({status:j.ng.DRAFT,limit:1},{enabled:D&&!S}),P=D?(e=>{if(!e)return N[I];let t=!1;if(e.node_content)try{t=!(0,_.vp)(JSON.parse(e.node_content))}catch(o){t=!1}const n=t?"configure":"compose";return"/audience/emails/composer/".concat(e.id,"?step=").concat(n)})(null===R||void 0===R?void 0:R[0]):N[o.key];(0,u.useEffect)(()=>{const e=m.current;if(!e)return;const t=()=>y(e.scrollHeight);t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[T,S,B,o.key]);return(0,L.jsxs)(v.A,{gap:"sm",alignItems:T?"stretch":"center",style:{padding:"16px"},children:[(0,L.jsxs)(O,{children:[(0,L.jsx)("div",{onClick:e=>{e.stopPropagation(),o.state&&!S&&p.mutate(o.state.id)},style:{cursor:!S&&o.state?"pointer":"default"},children:(0,L.jsx)(Y,{done:S})}),T&&(0,L.jsx)(W,{})]}),(0,L.jsxs)(v.A,{flexDirection:"column",style:{flex:1,minWidth:0},children:[(0,L.jsx)("div",{onClick:S?void 0:s,style:{cursor:S?"default":"pointer",minHeight:28,width:"100%",display:"flex",alignItems:"center"},children:(0,L.jsxs)(v.A,{alignItems:"center",justifyContent:"between",gap:"sm",className:"w-100",children:[(0,L.jsx)("div",{className:"text-sm-medium",style:{color:w.LE},children:a("items.".concat(o.key,".title"),o.title_en)}),!S&&(0,L.jsx)(f.n,{icon:T?k.ArrowUp01Icon:k.ArrowDown01Icon,size:16,color:w.PV})]})}),(0,L.jsx)(U,{$expanded:T,$maxHeight:g,children:(0,L.jsxs)("div",{ref:m,children:[(0,L.jsx)("div",{className:"text-sm",style:{color:w.f,paddingTop:12,maxWidth:400},children:a("items.".concat(o.key,".description"),o.description_en||"")}),!S&&(0,L.jsxs)(v.A,{gap:"xs",alignItems:"center",style:{marginTop:16},children:[B&&(0,L.jsx)(C.Ay,{type:"secondary",size:"small",onClick:()=>window.open(B,"_blank"),children:a("learn_more")}),(0,L.jsx)(C.Ay,{type:"default",size:"small",onClick:async()=>{const e=!(null===P||void 0===P||!P.includes("newPage=true"));!o.state||S||e||await d({state_id:o.state.id,source:l});const t=null===r||void 0===r?void 0:r[o.key];if(t)t();else if(P){let t=P;e&&(t+="&source=".concat(encodeURIComponent(l))),E.has(o.key)&&(t+="&previous=".concat((0,A.d0)())),c(t)}},children:a("items.".concat(o.key,".cta"),o.title_en)})]})]})})]})]})},$=()=>(0,L.jsxs)(v.A,{gap:"sm",alignItems:"start",style:{padding:"16px"},children:[(0,L.jsx)(m.A.Avatar,{active:!0,shape:"square",size:28}),(0,L.jsxs)(v.A,{flexDirection:"column",gap:"xs",style:{flex:1,minWidth:0},children:[(0,L.jsx)(m.A.Button,{active:!0,size:"small",style:{height:16,width:180}}),(0,L.jsx)(m.A.Button,{active:!0,size:"small",style:{height:14,width:280}})]})]}),q=()=>{var e;const{t:t}=(0,h.Bd)("home/onboarding-todo"),{data:n,isLoading:o}=(0,b.Pn)(),i=R(null!==(e=null===n||void 0===n?void 0:n.items)&&void 0!==e?e:[]),[s,r]=(0,u.useState)(),[l,a]=(0,u.useState)(!1),c=(0,u.useRef)(null),[d,p]=(0,u.useState)(0),x=(0,u.useRef)(!1),m=i.length,g=i.filter(e=>{var t;return!(null===(t=e.state)||void 0===t||!t.completed_at)}).length,k=0===m?0:g/m*100,f=m>5.5,v=i.findIndex(e=>{var t;return!(null!==(t=e.state)&&void 0!==t&&t.completed_at)});if((0,u.useEffect)(()=>{x.current||v<0||(r(i[v].id),x.current=!0)},[i,v]),(0,u.useLayoutEffect)(()=>
1{if(!f||l)return;const e=c.current;if(!e)return;const t=()=>{const t=e.querySelectorAll("[data-todo-row]");if(!t.length)return;const n=Math.floor(5.5),o=5.5-n,i=Math.min(n,t.length);let s=0;for(let e=0;e<i;e++)s+=t[e].offsetHeight,e<i-1&&(s+=1);o>0&&t.length>n&&(s+=1+t[n].offsetHeight*o),p(s)};t();const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[f,l,i,s,o]),(0,u.useLayoutEffect)(()=>{if(!f||l||v<=0)return;const e=c.current;if(!e)return;const t=e.querySelectorAll("[data-todo-row]"),n=t[v],o=t[v-1];n&&o&&(e.scrollTop=n.offsetTop-o.offsetHeight/2)},[f,l,i,s,v,d]),!o&&(!n||n.assignment.dismissed_at))return null;const j=()=>i.map((e,t)=>(0,L.jsxs)("div",{"data-todo-row":!0,children:[(0,L.jsx)(Z,{item:e,expanded:s===e.id,onToggle:()=>r(t=>t===e.id?void 0:e.id)}),t<i.length-1&&(0,L.jsx)(D,{})]},e.id));return(0,L.jsx)(y.A,{title:t("title"),description:t("tasks_completed",{completed:g,total:m}),actions:[(0,L.jsx)(F,{percent:k},"progress")],contentStyle:{padding:0},children:o?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)($,{}),(0,L.jsx)(D,{}),(0,L.jsx)($,{}),(0,L.jsx)(D,{}),(0,L.jsx)($,{})]}):f&&!l?(0,L.jsxs)(P,{children:[(0,L.jsx)(z,{ref:c,$maxHeight:d||240,children:j()}),(0,L.jsx)(H,{children:(0,L.jsx)(C.Ay,{type:"secondary",size:"small",onClick:()=>a(!0),children:t("show_more")})})]}):j()})}}}]);

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.