PageSourceSearch

https://www.millerhomes.co.uk/assets/miller.BlogCarousel.a4840a3973bfaf9ec697.js

js millerhomes.co.uk collected 2026-10-01 12:29:05 UTC 8,018 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkmillerhomescorp=self.webpackChunkmillerhomescorp||[]).push([[6585,9511],{4024:(e,t,a)=>{a.r(t),a.d(t,{default:()=>T});var l=a(8253),s=a(1899),i=(a(9291),a(2126)),r=a(8514);const o={class:"c-card"},n={class:"c-card__media"},d={class:"relative"},c={class:"c-image aspect-16/9"},u=["src"],g={key:0,className:"absolute bottom-2 left-2 flex h-12 w-12 items-center justify-center rounded bg-brand-dark-blue text-white"},p=[(0,l._)("i",{class:"mf mf-play","aria-hidden":"true"},null,-1)],m={class:"c-card__content"},h={class:"c-card__header"},y={class:"space-y-2xs"},f={class:"leading-snug text-[#002E5DBF]"},b={class:"font-text-heavy text-2xl"},v={class:"c-card__body"},_={class:"line-clamp-3"},w={class:"c-card__footer"},k=["href"],C=[(0,l._)("span",{class:"c-button__content"},[(0,l._)("span",{class:"c-button__label"},"Read more")],-1)];var x=a(7262);const D={name:"BlogCarouselArticleCard",components:{ResponsiveImage:r.default,MillerModal:x.Z},props:{headline:{type:String,default:""},description:{type:String,default:""},pubDate:{type:String,default:""},categoryNames:{type:Array},imageUrl:{type:String,default:""},videoId:{type:String,default:""},buttonUrl:{type:String,default:""}},setup(e){const t=(0,s.h)(),a=((0,l.iH)(t.isMobile),(0,l.iH)(!1)),i=(0,l.iH)(!1);return{formattedPubDate:(0,l.Fl)((()=>{if(e.pubDate){const t=new Date(e.pubDate);return`${t.toLocaleDateString("en-GB",{year:"numeric",month:"long",day:"numeric"})} ${t.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!0})}`}return""})),categories:(0,l.Fl)((()=>{if(e.categoryNames&&e.categoryNames.length>0)return e.categoryNames.length>=2?""+(e.categoryNames[0]|e.categoryNames[1]):e.categoryNames[0]})),videoThumbnail:(0,l.Fl)((()=>`https://img.youtube.com/vi/${e.videoId}/hqdefault.jpg`)),videoUrl:(0,l.Fl)((()=>`https://www.youtube.com/embed/${e.videoId}`)),showModal:a,isDialogOpen:i}}},I=(0,a(3744).Z)(D,[["render",function(e,t,a,s,i,r){const x=(0,l.up)("ResponsiveImage"),D=(0,l.up)("MillerModal");return(0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("div",n,[(0,l._)("div",d,[(0,l._)("div",c,[a.videoId?((0,l.wg)(),(0,l.iD)(l.HY,{key:0},[(0,l.Wm)(x,{"image-class":"c-image__img",alt:"Video Thumbnail",url:"videoThumbnail","max-width":433,"max-height":289,onImageClick:t[0]||(t[0]=e=>s.isDialogOpen=!0)}),(0,l.Wm)(D,{isOpen:s.isDialogOpen,"onUpdate:isOpen":t[1]||(t[1]=e=>s.isDialogOpen=e)},{title:(0,l.w5)((()=>[(0,l.Uk)((0,l.zw)(a.headline),1)])),content:(0,l.w5)((()=>[(0,l._)("iframe",{width:"100%",height:"100%",src:s.videoUrl,frameborder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""},null,8,u)])),_:1},8,["isOpen"])],64)):((0,l.wg)(),(0,l.j4)(x,{key:1,"image-class":"c-image__img",alt:"Article image",url:a.imageUrl,"max-width":433,"max-height":289},null,8,["url"]))]),a.videoId?((0,l.wg)(),(0,l.iD)("div",g,p)):(0,l.kq)("",!0)])]),(0,l._)("div",m,[(0,l._)("div",h,[(0,l._)("div",y,[(0,l._)("p",f,[(0,l._)("span",null,(0,l.zw)(s.categories),1),(0,l.Uk)(),(0,l.kq)("",!0)]),(0,l._)("h3",b,(0,l.zw)(a.headline),1)])]),(0,l._)("div",v,[(0,l._)("p",_,(0,l.zw)(a.description),1)]),(0,l._)("div",w,[(0,l._)("a",{class:"c-button c-button--primary c-button--blue",href:a.buttonUrl},C,8,k)])])])}]]);var O=a(1257),S=a(9770);function T(){return(0,l.ri)({components:{Carousel:i.Z,ResponsiveImage:r.default,BlogCarouselArticleCard:I,Spinner:S.default},setup(){(0,s.h)();let e="";const t=(0,l.iH)(!1),a=(0,l.iH)([]),i=(0,l.iH)(40);return(0,l.bv)((()=>{try{t.value=!0;const l=document.getElementById("BlogCarouselTemplate");l&&(e=l.getAttribute("data-url")||"",(async()=>{t.value=!0;const l={skip:0,take:i.value,year:0,IsCorporate:!1,IsCarousel:!0};try{const t=await O.Z.post(e,l);t.data.Articles&&t.data.Articles.length>0&&(a.value=t.data.Articles.map((e=>({itemId:e.ItemId,articleImage:e.ArticleImage,title:e.Title,text:e.Text,excerpt:e.Excerpt,youtubeId:e.YoutubeID,pubDate:e.PubDate,content:e.Content,postUrl:e.PostUrl,postType:e.PostType,hasTags:e.HasTags,tagsModel:e.TagsModel,tagsNames:[],tags:e.Tags}))))}catch(e){e.response||e.request}t.value=!1})(),t.value=!1)}catch(e){}})),{isLoading:t,searchResult:a}}})}},7262:(e,t,a)=>{a.d(t,{Z:()=>p});var l=a(8253);const s=(0,l._)("div",{class:"fixed inset-0 bg-brand-extra-dark-blue/75","aria-hidden":"true"},null,-1),i={class:"flex min-h-screen items-center justify-center"},r=["aria-label"],o=[(0,l._)("i",{class:"mf mf-cross","aria-hidden":"true"},null,-1)],n={class:"border-none border-2 lg:border-solid border-white bg-brand-light-grey"},d=["src"];var c=a(123),u=a(6703);const g={name:"MillerModal",components:{Dialog:c.Vq,DialogTitle:c.$N,DialogPanel:c.EM,TransitionRoot:u.Q,TransitionChild:u.x},props:{isOpen:{type:Boolean,required:!1},videoUrl:{type:String,default:""},headline:{type:String,default:""},maxWidth:{type:String,default:"xl"},dialogPaddingClass:{type:String,default:"p-md"},className:{type:String,default:""},hasCloseButton:{type:Boolean,default:!0}},emits:["update:isOpen"],setup:(e,{emit:t})=>({closeDialog:()=>{t("update:isOpen",!1)},dialogClass:(0,l.Fl)((()=>{const t=e.maxWidth.includes("[")?`max-w-${e.maxWidth}`:`max-w-screen-${e.maxWidth}`;return`relative w-full ${e.dialogPaddingClass} ${t}`})),buttonClass:(0,l.Fl)((()=>`absolute right-2${e.headline?" ":" top-2 "}flex h-lg w-lg items-center justify-center rounded-full border-2 border-white bg-brand-dark-blue text-white z-10`))})},p=(0,a(3744).Z)(g,[["render",function(e,t,a,c,u,g){const p=(0,l.up)("DialogTitle"),m=(0,l.up)("DialogPanel"),h=(0,l.up)("Dialog");return(0,l.wg)(),(0,l.j4)(h,{open:a.isOpen,onClose:c.closeDialog,class:(0,l.C_)(["fixed inset-0 z-50 overflow-y-auto",a.className])},{default:(0,l.w5)((()=>[s,(0,l._)("div",i,[(0,l.Wm)(m,{class:(0,l.C_)(c.dialogClass)},{default:(0,l.w5)((()=>[a.hasCloseButton?((0,l.wg)(),(0,l.iD)("button",{key:0,onClick:t[0]||(t[0]=(...e)=>c.closeDialog&&c.closeDialog(...e)),"aria-label":a.videoUrl?"Close video dialog":"Close dialog",class:(0,l.C_)(c.buttonClass)},o,10,r)):(0,l.kq)("",!0),a.headline?((0,l.wg)(),(0,l.j4)(p,{key:1,as:"h2",class:"text-white"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,l.zw)(a.headline),1)])),_:1})):(0,l.kq)("",!0),(0,l._)("div",n,[a.videoUrl?((0,l.wg)(),(0,l.iD)("iframe",{key:0,src:a.videoUrl,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:"",class:"aspect-video w-full"},null,8,d)):(0,l.kq)("",!0),(0,l.WI)(e.$slots,"content")])])),_:3},8,["class"])])])),_:3},8,["open","onClose","class"])}]])},9770:(e,t,a)=>{a.r(t),a.d(t,{default:()=>d});var l=a(8253);const s={"data-testid":"oval-loading","aria-label":"Loading","aria-busy":"true",role:"progressbar",class:"sc-blHHSb lZBCK"},i={fill:"none","fill-rule":"evenodd"},r={transform:"translate(1 1)","stroke-width":"5","data-testid":"oval-secondary-group"},o=[(0,l._)("animateTransform",{attributeName:"transform",type:"rotate",from:"0 0 0",to:"360 0 0",dur:"1s",repeatCount:"indef
1inite"},null,-1)],n={props:{style:{type:[Object,String],default:()=>({})},class:{type:String,default:""},hasOverlay:{type:Boolean,default:!1},isFullScreen:{type:Boolean,default:!1}},setup:e=>({containerClass:(0,l.Fl)((()=>e.hasOverlay?e.isFullScreen?"c-member-page__loader":"c-member-page__loader !absolute !z-[19]":e.class))})},d=(0,a(3744).Z)(n,[["render",function(e,t,a,n,d,c){return(0,l.wg)(),(0,l.iD)("div",{class:(0,l.C_)(n.containerClass)},[(0,l._)("div",s,[((0,l.wg)(),(0,l.iD)("svg",{width:"80",height:"80",viewBox:"-21.5 -21.5 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#2a9fc2","data-testid":"oval-svg",style:(0,l.j5)(a.hasOverlay?{}:{strokeOpacity:"1",strokeLinecap:"round"})},[(0,l._)("g",i,[(0,l._)("g",r,[(0,l._)("circle",{cx:"0",cy:"0",r:"20",stroke:"#f2f4f7","stroke-width":"5",style:(0,l.j5)(a.hasOverlay?{}:{strokeOpacity:"1",strokeLinecap:"round"})},null,4),(0,l._)("path",{d:"M20 0c0-9.94-8.06-20-20-20",style:(0,l.j5)(a.hasOverlay?{}:{strokeOpacity:"1",strokeLinecap:"round"})},o,4)])])],4))])],2)}]])}}]);

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.