PageSourceSearch

https://constructor.tech/assets/ch-ListPage-CkpMEJvt.js

js constructor.tech collected 2026-10-01 14:40:00 UTC 9,269 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ch-ListPager-6CXwHY19.js","assets/app-index-BGMqnN3C.js","assets/app-index-D8WdADzu.css","assets/ex-ListPager-CsFvoPlx.css","assets/ch-CardTags-CvzyeHgM.js","assets/ex-CardTags-3CrftxZe.css"])))=>i.map(i=>d[i]);
2import{_ as L,R as T,q as P,o as a,c as i,e as c,t as g,h as o,F as d,a as p,n as m,w as b,v as O,b as f,D as U,k as x,s as G,m as y,l as k,r as _}from"./app-index-BGMqnN3C.js";const N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='10'%20viewBox='0%200%2018%2010'%20fill='none'%3e%3cpath%20d='M16.2928%200.292969C16.6834%20-0.0975555%2017.3164%20-0.0975555%2017.7069%200.292969C18.0974%200.683493%2018.0974%201.31651%2017.7069%201.70703L9.70691%209.70703C9.6825%209.73143%209.65693%209.75404%209.63074%209.77539C9.49997%209.88205%209.34867%209.95088%209.19128%209.98145C9.12811%209.99369%209.064%2010%208.99988%2010C8.96793%2010%208.936%209.99815%208.90417%209.99512C8.87212%209.99205%208.84017%209.9876%208.80847%209.98145C8.61954%209.94481%208.4392%209.85332%208.29285%209.70703L0.292847%201.70703C-0.0976776%201.31651%20-0.0976776%200.683493%200.292847%200.292969C0.683371%20-0.0975555%201.31638%20-0.0975555%201.70691%200.292969L8.99988%207.58594L16.2928%200.292969Z'%20fill='%23141414'/%3e%3c/svg%3e",j={name:"ListPage",components:{CmFeedEditButton:P,ListPager:y(()=>k(()=>import("./ch-ListPager-6CXwHY19.js"),__vite__mapDeps([0,1,2,3]))),CardTags:y(()=>k(()=>import("./ch-CardTags-CvzyeHgM.js"),__vite__mapDeps([4,1,2,5])))},inject:{requestUrl:{from:T,default:"/"}},props:{block:{type:Object,required:!0}},data(){const e=this.block.list||{};return{limit:Number(e.page_size)||12,allItems:Array.isArray(e.items)?e.items:[],page:1,pageItems:[],pagesCount:1,countItems:0,filter:{search:"",tags:{}},openGroups:{},chevronBlack:N}},computed:{labels(){return this.block.labels||{}},groups(){return this.block.filters&&this.block.filters.groups||[]},links(){return this.block.links||[]},anchorId(){return this.block.field_anchor||"list_content"},isSearchActive(){return!!(this.filter.search&&this.filter.search.trim().length)},groupTermKeys(){const e={};for(const s of this.groups)for(const l of s.terms||[])e[l.key]=!0;return e},filteredItems(){let e=this.allItems;const s=Object.keys(this.filter.tags);s.length&&(e=e.filter(n=>n.tags&&s.some(h=>Object.prototype.hasOwnProperty.call(n.tags,h))));const l=this.filter.search.trim().toLowerCase();return l&&(e=e.filter(n=>n.title&&n.title.toLowerCase().includes(l)||n.summary&&n.summary.toLowerCase().includes(l))),e},emptyMessage(){return(this.isSearchActive||Object.keys(this.filter.tags).length>0)&&this.labels.empty_search?this.labels.empty_search:this.labels.empty_default||""}},created(){const e=G();e&&e.register("components/list/ListPager"),this.block.filters&&Array.isArray(this.block.filters.active)&&(this.filter.tags=Object.fromEntries(this.block.filters.active.map(l=>[l,l])));for(const l of this.groups)this.openGroups[l.key]=(l.terms||[]).some(n=>this.filter.tags[n.key]);this.initNumbers();const s=this.getPageFromQuery();this.updatePageItems(s>0&&s<=this.pagesCount?s:1)},watch:{"filter.search"(){this.initNumbers(),this.updatePageItems(1)},"filter.tags":{handler(){this.initNumbers(),this.updatePageItems(1)},deep:!0}},methods:{toggleTag(e){this.filter.tags[e]?delete this.filter.tags[e]:this.filter.tags[e]=e,this.initNumbers(),this.updatePageItems(1)},clearTags(){this.filter.tags={},this.initNumbers(),this.updatePageItems(1)},initNumbers(){this.countItems=this.filteredItems.length,this.pagesCount=Math.ceil(this.countItems/this.limit)||1},switchPage(e){const s=Number(e);!Number.isFinite(s)||s<1||s>this.pagesCount||s===this.page||this.updatePageItems(s,{scroll:!0})},updatePageItems(e,{scroll:s=!1}={}){this.page=e;const l=(this.page-1)*this.limit;this.pageItems=this.filteredItems.slice(l,l+this.limit),typeof window<"u"&&window.history&&window.history.pushState(null,"",this.pagerItemUrl(e)),s&&typeof window<"u"&&this.$nextTick(()=>{const n=document.querySelector(".list-page-line");n&&n.scrollIntoView({behavior:"smooth",block:"start"})})},getCurrentUrl(){const e=typeof this.requestUrl=="string"&&this.requestUrl?this.requestUrl:typeof window<"u"?window.location.href:"http://localhost/";return new URL(e,"http://localhost")},getPageFromQuery(){try{const e=parseInt(this.getCurrentUrl().searchParams.get("page"),10);return Number.isFinite(e)?e:1}catch{return 1}},pagerItemUrl(e){const s=new URLSearchParams;e>1&&s.set("page",String(e));const l=Object.keys(this.filter.tags);l.length&&s.set("tags",l.join(","));const n=s.toString();return this.getCurrentUrl().pathname+(n?"?"+n:"")},pagerHref(e){return this.pagerItemUrl(e)},toggleGroup(e){this.openGroups[e]=!this.openGroups[e]},isGroupOpen(e){return!!this.openGroups[e]},cardTags(e){if(!e||!e.tags)return[];const s=[];for(const l of Object.keys(e.tags))this.groupTermKeys[l]&&s.push({key:l,label:e.tags[l]});return s},ctaLabel(e){const s=this.block.cta||{};return e&&e.type==="customer_stories"&&s.story?s.story:s.default||""}}},E={class:"list-page"},F={class:"list-page-header"},S={class:"container"},B={key:0,class:"list-page-header-title"},q=["innerHTML"],A={key:2,class:"list-page-header-links"},M=["href","target"],R={class:"list-page-layout container"},V=["aria-label"],D=["aria-expanded","onClick"],z=["src"],H={class:"list-page-filter-group__tags"},K={class:"list-page-main"},Q={key:0,class:"list-page-search"},Y=["placeholder","aria-label"],Z=["id"],J={class:"lp-card__media"},W=["href","aria-label"],X=["src","alt"],$={class:"lp-card__content"},ee=["href"],te={key:1,class:"lp-card__subtitle"},se=["href"],re={key:1,class:"lp-empty"};function ae(e,s,l,n,h,r){const v=_("TagFilter"),C=_("CmFeedEditButton"),w=_("CardTags"),I=_("ListPager");return a(),i("div",E,[c("div",F,[c("div",S,[r.labels.list_title?(a(),i("h1",B,g(r.labels.list_title),1)):o("",!0),r.labels.list_description?(a(),i("div",{key:1,class:"list-page-header-description",innerHTML:r.labels.list_description},null,8,q)):o("",!0),r.links.length?(a(),i("div",A,[(a(!0),i(d,null,p(r.links,(t,u)=>(a(),i("a",{key:u,href:t.url,target:t.target||null,class:m(["list-page-header-btn",t.additional_class])},g(t.label),11,M))),128))])):o("",!0)])]),s[3]||(s[3]=c("div",{class:"container"},[c("div",{class:"list-page-line"})],-1)),c("div",R,[r.groups.length?(a(),i("aside",{key:0,class:"list-page-filters","aria-label":r.labels.filter_label||"Filters"},[(a(!0),i(d,null,p(r.groups,t=>(a(),i("div",{key:t.key,class:m(["list-page-filter-group",{"is-open":r.isGroupOpen(t.key)}])},[c("button",{type:"button",class:"list-page-filter-group__header","aria-expanded":r.isGroupOpen(t.key),onClick:u=>r.toggleGroup(t.key)},[c("span",null,g(t.label),1),c("img",{src:h.chevronBlack,class:"list-page-filter-group__chevron",alt:""},null,8,z)],8,D),b(c("div",H,[(a(!0),i(d,null,p(t.terms,u=>(a(),f(v,{key:t.key+":"+u.key,label:u.label,"tag-key":u.key,"is-active":!!h.filter.tags[u.key],"color-scheme":"dark-blue",onToggle:r.toggleTag},null,8,["label","tag-key","is-active","onToggle"]))),128))],512),[[O,r.isGroupOpen(t.key)]])],2))),128)),Object.keys(h.filter.tags).length?(a(),i("button",{key:0,t
2ype:"button",class:"list-page-clear",onClick:s[0]||(s[0]=(...t)=>r.clearTags&&r.clearTags(...t))},g(r.labels.clear_all||"Clear all"),1)):o("",!0)],8,V)):o("",!0),c("section",K,[r.labels.search_placeholder?(a(),i("div",Q,[b(c("input",{"onUpdate:modelValue":s[1]||(s[1]=t=>h.filter.search=t),class:"list-page-search__input",type:"text",placeholder:r.labels.search_placeholder,"aria-label":r.labels.search_aria||r.labels.search_placeholder},null,8,Y),[[U,h.filter.search]]),s[2]||(s[2]=c("span",{class:"list-page-search__btn","aria-hidden":"true"},[c("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none"},[c("circle",{cx:"11",cy:"11",r:"7",stroke:"currentColor","stroke-width":"2"}),c("path",{d:"M20 20l-3.5-3.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"})])],-1))])):o("",!0),c("div",{class:"list-page-grid",id:r.anchorId},[h.pageItems.length?(a(!0),i(d,{key:0},p(h.pageItems,t=>(a(),i("article",{key:t.id,class:"lp-card"},[t.entity_id?(a(),f(C,{key:0,"source-id":t.entity_id},null,8,["source-id"])):o("",!0),c("div",J,[t.url?(a(),i("a",{key:0,href:t.url,class:"lp-card__image","aria-label":t.title},[t.media&&t.media.src?(a(),i("img",{key:0,src:t.media.src,alt:t.title,loading:"lazy"},null,8,X)):o("",!0)],8,W)):o("",!0),r.cardTags(t).length?(a(),f(w,{key:1,class:"lp-card__tags",tags:r.cardTags(t),"active-tags":h.filter.tags,max:2},null,8,["tags","active-tags"])):o("",!0)]),c("div",$,[t.url?(a(),i("a",{key:0,href:t.url,class:"lp-card__title"},g(t.title),9,ee)):o("",!0),t.subtitle?(a(),i("p",te,g(t.subtitle),1)):o("",!0),t.url&&r.ctaLabel(t)?(a(),i("a",{key:2,href:t.url,class:"lp-card__cta"},g(r.ctaLabel(t)),9,se)):o("",!0)])]))),128)):(a(),i("p",re,g(r.emptyMessage),1))],8,Z),x(I,{current:h.page,"total-pages":h.pagesCount,labels:r.labels,"href-for":r.pagerHref,onGo:r.switchPage},null,8,["current","total-pages","labels","href-for","onGo"])])])])}const le=L(j,[["render",ae],["__scopeId","data-v-b3faffe7"]]),ce=Object.freeze(Object.defineProperty({__proto__:null,default:le},Symbol.toStringTag,{value:"Module"}));export{ce as L,N as c};

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.