PageSourceSearch

https://www.sgirealty.com/scripts/937.js

js sgirealty.com collected 2026-10-03 23:24:13 UTC 11,815 bytes, 2 lines download raw bytes

1/*! For license information please see 937.js.LICENSE.txt */
2"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[937],{4318:function(t,e,r){r.r(e),r.d(e,{default:function(){return k}});var n=r(9726),o={class:"pt-6"},i={key:0,class:"animate-pulse flex justify-center items-center text-gray-500 h-48 md:h-auto md:aspect-[5/3] xl:aspect-[18/3] bg-gray-100 rounded-lg"},a={else:"",class:"grid md:grid-cols-2 lg:grid-cols-3 gap-4 md:gap-8"},u=["onClick"],l={class:"relative w-full aspect-video bg-cover bg-center cursor-pointer backdrop-blur-xl group transition-all duration-500 hover:scale-95 flex justify-between items-end p-4 areas-container overflow-hidden",tabindex:"0",role:"button","aria-label":"Youtube video thumbnail"},s={class:"relative z-20 text-left pr-4"},c=["innerHTML"],f={key:0,class:"fixed z-50 top-0 h-screen w-full bg-primary-dark bg-opacity-80 flex flex-col justify-center"},h={class:"w-full h-full flex flex-col"},p={class:"flex-grow lg:h-full w-full flex py-20 lg:p-20"},d=["title","src"],v={key:0,class:"relative w-full max-w-xs mx-auto bg-white shadow-xl flex justify-between lg:-mt-16 p-1 z-20 mb-16 p-1 z-20"},g={class:"text-blue font-bold flex items-center leading-none"};function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,r,n){return Object.defineProperty(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(e,r,n,o){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype);return l(a,"_invoke",function(e,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var l=E(u,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var s=c(e,r,n);if("normal"===s.type){if(o=n.done?4:2,s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=4,n.method="throw",n.arg=s.arg)}}}(e,n,new j(o||[])),!0),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var f={};function h(){}function p(){}function d(){}var v={};l(v,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(C([])));m&&m!==r&&n.call(m,i)&&(v=m);var x=d.prototype=h.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,u){var l=c(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==y(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(l.arg)}var o;l(this,"_invoke",(function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}),!0)}function E(e,r){var n=r.method,o=e.i[n];if(o===t)return r.delegate=null,"throw"===n&&e.i.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=c(o,e.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,f;var a=i.arg;return a?a.done?(r[e.r]=a.value,r.next=e.n,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,f):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)}function _(t){this.tryEntries.push(t)}function L(e){var r=e[4]||{};r.type="normal",r.arg=t,e[4]=r}function j(t){this.tryEntries=[[-1]],t.forEach(_,this),this.reset(!0)}function C(e){if(null!=e){var r=e[i];if(r)return r.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(y(e)+" is not iterable")}return p.prototype=d,l(x,"constructor",d),l(d,"constructor",p),p.displayName=l(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},b(k.prototype),l(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(x),l(x,u,"Generator"),l(x,i,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.unshift(n);return function t(){for(;r.length;)if((n=r.pop())in e)return t.value=n,t.done=!1,t;return t.done=!0,t}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(L),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0][4];if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(t){a.type="throw",a.arg=e,r.next=t}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],u=this.prev,l=i[1],s=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!s)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=u){if(u<l)return this.method="next",this.arg=t,n(l),!0;if(u<s)return n(s),!1}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===t||"continue"===t)&&o[0]<=e&&e<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o[2],f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[2]===t)return this.complete(r[4],r[3]),L(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r[0]===t){var n=r[4];if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={i:C(e),r:r,n:n},"next"===this.method&&(this.arg=t),f}},e}function m(t,e,r,n,o,i,a){try{var u=t[i](a),l=u.value}catch(t){return void r(t)}u.done?e(l):Promise.resolve(l).then(n,o)}var x={name:"YoutubeFeed",data:function(){return{loading:!0,activeVideo:{},videoData:[],popupOpen:!1,activeIndex:0}},mounted:function(){this.getVideos()},methods:{getVideos:function(){var t,e=this;return(t=w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("/wp-json/kerigansolutions/v1/get-youtube-videos?posts_per_page=3").then((function(t){return t.json()})).then((function(t){e.videoData=t,e.loading=!1}));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){m(i,n,o,a,u,"next",t)}function u(t){m(i,n,o,a,u,"throw",t)}a(void 0)}))})()},openVideo:function(t){this.popupOpen=!0,this.activeIndex=t,this.activeVideo=this.videoData[t]},nextVideo:function(){this.activeIndex+1==this.videoData.length?this.activeIndex=0:this.activeIndex++,this.openVideo(this.activeIndex)},prevVideo:function(){this.activeIndex+1==1?this.activeIndex=this.videoData.length:this.activeIndex--,this.openVideo(this.activeIndex)}}};const b=(0,r(6262).A)(x,[["render",function(t,e,r,y,w,m){var x=(0,n.gN)("lazy");return(0,n.uX)(),(0,n.CE)("div",o,[w.loading?((0,n.uX)(),(0,n.CE)("div",i," loading videos ... ")):(0,n.Q3)("",!0),(0,n.Lk)("div",a,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(w.videoData,(function(t,r){return(0,n.uX)(),(0,n.CE)("div",{key:t.url,class:"group",onClick:function(t){return m.openVideo(r)}},[(0,n.bo)(((0,n.uX)(),(0,n.CE)("div",l,[(0,n.Lk)("div",s,[(0,n.Lk)("div",{class:"text-white text-lg leading-tight font-bold",innerHTML:t.post_title},null,8,c)]),e[3]||(e[3]=(0,n.Lk)("div",{class:"flex-none relative z-20 w-10 h-10 flex justify-center items-center bg-white rounded-full group-hover:text-secondary after:ring-1 after:w-12 after:h-12 after:rounded-full after:absolute after:ring-white"},[(0,n.Lk)("span",{class:"hidden group-hover:inline-flex animate-ping absolute z-0 h-full w-full rounded-full bg-white/50"}),(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"relative z-10 fill-current inline-block w-4 h-4 translate-x-0.5 text-primary",role:"presentation"},[(0,n.Lk)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z",fill:"
2currentColor"})])],-1)),e[4]||(e[4]=(0,n.Lk)("div",{class:"absolute z-0 w-full left-0 bottom-0 h-40 bg-gradient-to-t from-primary-dark"},null,-1))])),[[x,t.thumbnail?t.thumbnail:"http://img.youtube.com/vi/"+t.youtube_id+"/maxresdefault.jpg","background"]])],8,u)})),128))]),((0,n.uX)(),(0,n.Wv)(n.Im,{to:"#popup-target"},[w.popupOpen?((0,n.uX)(),(0,n.CE)("div",f,[(0,n.Lk)("div",h,[(0,n.Lk)("span",{onClick:e[0]||(e[0]=function(t){return w.popupOpen=!1}),class:"absolute btn-accent shadow-xl right-4 top-4 lg:right-8 cursor-pointer"},e[5]||(e[5]=[(0,n.Lk)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14.561",height:"14.561",viewBox:"0 0 14.561 14.561",class:"fill-current h-4 w-4 leading-none"},[(0,n.Lk)("g",{transform:"translate(-5853.086 73.914)"},[(0,n.Lk)("line",{x1:"16.592",transform:"translate(5866.232 -60.767) rotate(-135)",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2"}),(0,n.Lk)("line",{x1:"16.592",transform:"translate(5854.5 -60.767) rotate(-45)",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-width":"2"})])],-1),(0,n.eW)(" close ")])),(0,n.Lk)("div",p,[(0,n.Lk)("iframe",{title:w.videoData[w.activeIndex].post_title,class:"w-full aspect-video shadow-xl mx-auto border-[10px] border-white",src:"https://www.youtube-nocookie.com/embed/"+w.videoData[w.activeIndex].youtube_id+"?autoplay=1&rel=0&showinfo=0",allow:"autoplay; encrypted-media",frameborder:"0",allowfullscreen:"allowfullscreen"},null,8,d)]),w.videoData.length>1?((0,n.uX)(),(0,n.CE)("div",v,[(0,n.Lk)("span",{onClick:e[1]||(e[1]=function(){return m.prevVideo&&m.prevVideo.apply(m,arguments)}),class:"leading-none h-10 px-6 bg-primary text-white flex items-center cursor-pointer uppercase text-sm"}," prev "),(0,n.Lk)("span",g,(0,n.v_)(w.activeIndex+1)+" of "+(0,n.v_)(w.videoData.length),1),(0,n.Lk)("span",{onClick:e[2]||(e[2]=function(){return m.nextVideo&&m.nextVideo.apply(m,arguments)}),class:"leading-none h-10 px-6 bg-primary text-white flex items-center cursor-pointer uppercase text-sm"}," next ")])):(0,n.Q3)("",!0)])])):(0,n.Q3)("",!0)]))])}]]);var k=b},6262:function(t,e){e.A=(t,e)=>{const r=t.__vccOpts||t;for(const[t,n]of e)r[t]=n;return r}}}]);

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.