PageSourceSearch

https://get-in.com/en/myop-blog-post-container.component-X6TAJAKF.js

js get-in.com collected 2026-10-03 20:29:00 UTC 5,011 bytes, 2 lines download raw bytes

1import{a as q}from"./chunk-F2EQLOZF.js";import{a as K,b as U}from"./chunk-DBKR3T6S.js";import{a as H}from"./chunk-MNVAI74P.js";import{e as G,g as L}from"./chunk-N7TVKSTK.js";import"./chunk-XHS2HQOR.js";import"./chunk-SNKY6I5R.js";import{E as j,H as _,v as N}from"./chunk-QKVROGXD.js";import{Aa as w,Ab as l,Ec as d,Fc as B,Gc as R,Ha as E,Hc as y,Ka as c,Mb as m,Sb as P,Wa as T,ca as I,fa as C,hc as g,md as z,nc as O,nd as k,pa as S,sb as A,sc as f,tc as u,ub as D,x as h,y as v,yc as M,za as b}from"./chunk-4BCQERYJ.js";import"./chunk-DYO6X7YC.js";var W=["*",[["","error",""]]],Q=["*","[error]"],Z="fd76f8d4-ac10-4288-b06f-113456e57605",$=(()=>{let r=class r{constructor(){this.COMPONENT_ID=Z,this.load=new c,this.error=new c,this.sizeChange=new c,this.cta=new c}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=m({type:r,selectors:[["blog-content"]],inputs:{data:"data",fadeDuration:"fadeDuration",autoSize:"autoSize",environment:"environment",preview:"preview"},outputs:{load:"load",error:"error",sizeChange:"sizeChange",cta:"cta"},ngContentSelectors:Q,decls:3,vars:6,consts:[[3,"load","error","sizeChange","cta","componentId","data","fadeDuration","autoSize","environment","preview"]],template:function(e,o){if(e&1&&(R(W),f(0,"myop-component",0),d("load",function(i){return o.load.emit(i)})("error",function(i){return o.error.emit(i)})("sizeChange",function(i){return o.sizeChange.emit(i)})("cta",function(i){return o.cta.emit(i)}),y(1),y(2,1,["ngProjectAs","[error]",5,["","error",""]]),u()),e&2){let n,i,p;g("componentId",o.COMPONENT_ID)("data",o.data)("fadeDuration",(n=o.fadeDuration)!==null&&n!==void 0?n:200)("autoSize",(i=o.autoSize)!==null&&i!==void 0?i:!1)("environment",o.environment)("preview",(p=o.preview)!==null&&p!==void 0?p:!1)}},dependencies:[K],encapsulation:2});let a=r;return a})();var s={CATEGORY_TAG_CLICKED:"category-tag-clicked",LOCATION_TAG_CLICKED:"location-tag-clicked",SEARCH:"search",SHARE:"share",SIZE_REQUESTED:"size-requested",COPY_ADDRESS:"copy-address",OPEN_IN_MAPS:"open-in-maps",GET_TICKETS:"get-tickets",POST_READ_MORE:"post-read-more",PAGE_CHANGED:"page-changed"};function J(a,r){if(a&1){let x=M();f(0,"div",0)(1,"blog-content",1),d("cta",function(e){b(x);let o=B();return w(o.onCta(e))}),u()()}a&2&&(D(),g("data",r))}var Se=(()=>{let r=class r{onResize(t){_(this.platformId)&&(this.isMobile=window.innerWidth<=768)}constructor(t,e,o,n){this.route=t,this.router=e,this.blogService=o,this.platformId=n,this.destroy$=S(E),this.baseUrl=H.getin_base_url}ngOnInit(){_(this.platformId)&&(this.isMobile=window.innerWidth<=768),this.data$=v([this.route.params,this.blogService.getCategories(),this.blogService.getLocations()]).pipe(q(this.destroy$),I(([t,e,o])=>{let n=t.postId;return console.log("params ",t),console.log("categories ",e),console.log("locations ",o),this.blogService.getPostById(n).pipe(C(i=>console.log("API response for post:",i)),h(i=>({post:i,categories:e,locations:o})))}),C(({post:t})=>console.log("Fetched post:",t)),h(({post:t,categories:e,locations:o})=>{let{id:n,content:i,excerpt:p,imageUrl:F}=t.data,Y=[{type:"paragraph",text:p},{type:"image",src:F||""},{type:"paragraph",text:i}];return{id:n.toString(),body:Y,categories:e,locations:o}}))}handleShareClick(t){if(!_(this.platformId))return;let o={url:`${this.baseUrl}/blog/${t}`};("canShare"in window.navigator||"share"in window.navigator&&this.isMobile)&&window.navigator.share&&window.navigator.share(o).then(()=>{}).catch(n=>{console.error("Error",n)})}onCta(t){switch(console.log("CTA event:",t),t.action){case s.CATEGORY_TAG_CLICKED:{let e=t.payload?.category;e&&this.router.navigate(["/blog"],{queryParams:{category:e}});break}case s.LOCATION_TAG_CLICKED:{let e=t.payload?.location;e&&this.router.navigate(["/blog"],{queryParams:{location:e}});break}case s.SEARCH:{let e=t.payload?.query;e&&this.router.navigate(["/blog"],{queryParams:{search:e}});break}case s.SHARE:{console.log("Share post:",t.payload?.postId),this.handleShareClick(t.payload?.postId||"");break}case s.COPY_ADDRESS:{let e=t.payload?.address;e&&navigator.clipboard.writeText(e);break}case s.OPEN_IN_MAPS:{let e=t.payload?.postId;console.log("Open in maps for post:",e);break}case s.GET_TICKETS:{let e=t.payload?.postId;e&&this.router.navigate(["/event",e]);break}default:console.log("Unknown CTA event:",t)}}};r.\u0275fac=function(e){return new(e||r)(l(G),l(L),l(U),l(T))},r.\u0275cmp=m({type:r,selectors:[["app-myop-blog-post-container"]],hostBindings:function(e,o){e&1&&d("resize",function(i){return o.onResize(i)},!1,A)},decls:2,vars:3,consts:[[1,"blog-post-container"],[3,"cta","data"]],template:function(e,o){if(e&1&&(P(0,J,2,1,"div",0),z(1,"async")),e&2){let n;O((n=k(1,1,o.data$))?0:-1,n)}},dependencies:[$,j,N],styles:["[_nghost-%COMP%]{display:block;height:100vh;width:100%}.blog-post-container[_ngcontent-%COMP%]{height:100%;width:100%;box-sizing:border-box}"]});let a=r;return a})();export{Se as MyopBlogPostContainerComponent};
2/**i18n:781fa348e2b2338c8b8af109ef025fd7bb624da87d4802aee2d7ec6e37a8b725*/

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.