PageSourceSearch

https://101-app.com/assets/banner-Dk-rK7vl.js

js 101-app.com collected 2026-09-24 10:23:20 UTC 4,568 bytes, 1 lines download raw bytes

1import{g as z}from"./bannerCatalog-DCHsqcTZ.js";import{d as b,a as B}from"./siteMetrikaGoals-Bn-mDkhn.js";import{G as $,o as P,a4 as j,d as x,w as A,e as y,g as u,f as d,k as g,J as C,l as k,c as p,b as w,r as T,_ as W}from"./state-Bf4GxglA.js";import{r as h}from"./site-prose-tables-LYjPkEqr.js";import{r as M,s as R}from"./runtime-Cevq_n1D.js";import"./tokens-DERl5KQ3.js";import"./runtimeLinks-PJDHs5pG.js";const I=t=>{const o=j(t),c=o.contentPath.match(/^\/blog\/([^/]+)$/);return c?.[1]?{articleSlug:c[1],locale:o.locale}:null},O=t=>{const o=t.closest("article");if(!o)return null;const n=Array.from(o.querySelectorAll("[data-blog-banner-id]")).indexOf(t);return n===-1?null:n+1},D=({bannerElement:t,getBannerId:o,getDestination:c})=>{let n=null,a=null,i=!1;const f=()=>{a===null||typeof window>"u"||(window.clearTimeout(a),a=null)},m=()=>{const e=t.value,s=o(),r=c();if(!e||!s||!r||typeof window>"u")return null;const l=I(window.location.pathname),v=O(e);return!l||v===null?null:{article_slug:l.articleSlug,banner_id:s,destination:r,locale:l.locale,position:v}},_=()=>{const e=m();e&&b("blog_banner_click",e)};return $(()=>{const e=t.value;!e||typeof IntersectionObserver!="function"||(n=new IntersectionObserver(s=>{const r=s.find(({target:l})=>l===e);if(r&&!i){if(!r.isIntersecting||r.intersectionRatio<.5){f();return}a===null&&(a=window.setTimeout(()=>{a=null;const l=m();l&&(i=!0,b("blog_banner_impression",l))},1e3))}},{threshold:.5}),n.observe(e))}),P(()=>{f(),n?.disconnect(),n=null}),{trackClick:_}},G={book_demo:()=>"/booking",open_gantt:()=>h("/"),open_project_finance:()=>h("/"),open_web_estimate:()=>h("/"),view_estimate_example:()=>"/help/app/planning/gantt/gantt-estimate",view_finance_example:()=>"/help/app/",view_gantt_example:()=>"/help/app/planning/gantt/gantt"},H=t=>G[t]?.()??null,S=t=>({reason_codes:t.reason_codes,source:t.source,strategy_id:t.strategy_id,...t.slots.recommended_feature_id?{feature_id:t.slots.recommended_feature_id}:{},...t.slots.proof_id?{proof_id:t.slots.proof_id}:{}}),E=(t,o)=>{B("blog_offer_impression",S(t))},L=(t,o,c)=>{M(t.id),B("blog_offer_click",{...S(o),action_id:t.id})},N=["aria-label","data-blog-banner-id"],V={class:"text-title-medium"},q={class:"text-body-regular"},J=["href","rel","target"],U=["height","src","width"],F=x({__name:"banner",props:{locale:{default:"ru"},name:{}},setup(t){const o=t,c=T(null),n=p(()=>o.name?z(o.name,o.locale):null),a=p(()=>{if(o.locale!=="ru"||typeof window>"u"||!I(window.location.pathname))return null;const e=R.plan,s=e?.slots.blog_offer,r=e?.slots.primary_action;if(!e||!s||!r)return null;const l=H(r.id);return l?{action:r,actionHref:l,offer:s,plan:e}:null}),i=p(()=>{if(!n.value)return null;const e=a.value;return e?{buttonText:e.action.label,description:e.offer.description,heading:e.offer.heading,href:e.actionHref}:n.value}),f=p(()=>i.value?.href.startsWith("http://")===!0||i.value?.href.startsWith("https://")===!0),{trackClick:m}=D({bannerElement:c,getBannerId:()=>a.value?null:n.value?.id??null,getDestination:()=>a.value?null:n.value?.href??null});A(()=>a.value?.plan.plan_id??null,(e,s)=>{const r=a.value;!n.value||!r||e===s||E(r.plan)},{immediate:!0});const _=()=>{const e=a.value;if(e){L(e.action,e.plan);return}m()};return(e,s)=>i.value&&n.value?(w(),y("aside",{key:0,ref_key:"bannerElement",ref:c,"aria-label":i.value.heading,class:d([e.$style.banner,n.value.image?e.$style.bannerWithImage:void 0]),"data-blog-banner-id":n.value.id},[u("div",{class:d(e.$style.content)},[u("p",{class:d(["text-title-medium",e.$style.heading])},[u("span",V,g(i.value.heading),1)],2),u("p",{class:d(["text-body-regular",e.$style.description])},[u("span",q,g(i.value.description),1)],2),u("a",{class:d(["text-body-medium",e.$style.cta]),href:i.value.href,rel:f.value?"noopener noreferrer":void 0,target:f.value?"_blank":void 0,onClick:_},g(i.value.buttonText),11,J)],2),n.value.image?(w(),y("div",{key:0,"aria-hidden":"true",class:d(e.$style.decoration),style:C({aspectRatio:`${n.value.image.width} / ${n.value.image.height}`})},[u("img",{alt:"",decoding:"async",class:d(e.$style.image),height:n.value.image.height,loading:"lazy",src:n.value.image.src,width:n.value.image.width},null,10,U)],6)):k("",!0)],10,N)):k("",!0)}}),K="_banner_krjoh_1",Q="_bannerWithImage_krjoh_14",X="_content_krjoh_19",Y="_heading_krjoh_27",Z="_description_krjoh_34",ee="_cta_krjoh_44",te="_decoration_krjoh_65",ne="_image_krjoh_71",oe={banner:K,bannerWithImage:Q,content:X,heading:Y,description:Z,cta:ee,decoration:te,image:ne},ae={$style:oe},fe=W(F,[["__cssModules",ae]]);export{fe 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.