PageSourceSearch

https://app.toimitilat.fi/advertise/chunk-UN6MBRZP.js

js toimitilat.fi collected 2026-10-02 13:02:53 UTC 16,208 bytes, 2 lines download raw bytes

1import{h as dt}from"./chunk-Q5XCVBBT.js";import{b as a}from"./chunk-NO2QSDOQ.js";import{$ as A,$a as $,$b as v,A as l,B as M,C as V,Fb as Z,Gb as tt,Hb as et,O as _,Rc as st,Tc as pt,U as y,Wb as C,Xb as E,Yb as nt,Z as k,Zb as S,_ as b,_b as w,aa as F,ab as r,ac as T,ba as K,bb as G,ca as f,cc as D,da as d,dc as it,ea as p,eb as N,fa as q,g,gb as B,hb as H,hc as ot,ia as I,ib as z,ja as O,jb as x,jc as rt,k as U,ka as R,lb as J,nc as at,o as s,qa as c,qb as Q,rb as W,sa as j,w as P,yb as X,zb as Y}from"./chunk-HB43N7HN.js";function lt(o,u){if(o&1){let t=I();d(0,"div")(1,"p")(2,"mat-icon",5),c(3,"info"),p(),c(4," Sinulla ei ole kohdeilmoituksia!"),p(),d(5,"button",6),O("click",function(){M(t);let n=R(2);return V(n.closeDialog())}),d(6,"mat-icon"),c(7,"add_location"),p(),c(8," Luo uusi kohdeilmoitus "),p()()}}function ut(o,u){o&1&&(d(0,"span"),c(1,"(julkaistu)"),p())}function mt(o,u){if(o&1&&(d(0,"mat-option",11),c(1),k(2,ut,2,0,"span"),p()),o&2){let t=u.$implicit;f("value",t.id)("disabled",t.published>0),_(),j(" ",t.address," "),_(),b(t.published>0?2:-1)}}function gt(o,u){if(o&1&&(d(0,"div")(1,"form",7),q(2,"input",8),d(3,"mat-form-field",9)(4,"mat-label"),c(5,"Valitse kohdeilmoitus"),p(),d(6,"mat-select",10),F(7,mt,3,4,"mat-option",11,A),p()()()()),o&2){let t=R(2);_(),f("formGroup",t.objectSelectForm),_(6),K(t.objectListData)}}function kt(o,u){if(o&1&&(d(0,"div",1),k(1,lt,9,0,"div"),k(2,gt,9,1,"div"),p()),o&2){let t=R();_(),b(t.objectCount===0?1:-1),_(),b(t.objectCount>0?2:-1)}}function bt(o,u){if(o&1&&(d(0,"button",4),c(1,"Korosta"),p()),o&2){let t=R();f("mat-dialog-close",t.objectSelectForm.value)("disabled",t.checkSelectedObject())}}var ht=(()=>{class o{constructor(){this.objectService=l(dt),this.dialogRef=l(C),this.data=l(E),this.isLoadingResults=!0,this.objectListData=[],this.objectCount=0,this.objectDraftCount=0,this.objectSelectForm=new z({ranking_order_uuid:new x(this.data.ranking_order_uuid),object_id:new x("")})}fetchObjectListData(){this.objectService.getObjectListData("","",0).subscribe(t=>{this.objectListData=t.items,this.objectCount=t.total_count,this.objectDraftCount=t.draft_count,this.isLoadingResults=!1})}checkSelectedObject(){return!this.objectSelectForm.get("object_id").value}cancelClick(){this.dialogRef.close()}closeDialog(){this.dialogRef.close()}ngOnInit(){this.fetchObjectListData()}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=y({type:o,selectors:[["app-ranking-activate-object"]],decls:7,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions","","align","end"],["mat-stroked-button","","cdkFocusInitial","",3,"click"],["mat-stroked-button","","color","primary",3,"mat-dialog-close","disabled"],["color","primary"],["mat-stroked-button","","color","primary","aria-label","Luo uusi kohdeilmoitus","matTooltip","Luo uusi kohdeilmoitus","routerLink","/object/create","routerLinkActive","active",1,"ctaButton",3,"click"],[3,"formGroup"],["type","hidden","formControlName","ranking_order_uuid"],["appearance","fill",1,"element-full-width"],["formControlName","object_id"],[3,"value","disabled"]],template:function(e,n){e&1&&(d(0,"h1",0),c(1,"Korosta kohdeilmoitus"),p(),k(2,kt,3,2,"div",1),d(3,"p",2)(4,"button",3),O("click",function(){return n.cancelClick()}),c(5,"Peruuta"),p(),k(6,bt,2,2,"button",4),p()),e&2&&(_(2),b(n.isLoadingResults?-1:2),_(4),b(n.objectCount>0?6:-1))},dependencies:[w,v,rt,D,at,tt,et,X,J,N,B,H,Y,W,Q,ot,it,pt,st,T,S],encapsulation:2})}}return o})();var _t=(()=>{class o{constructor(){this.dialogRef=l(C),this.data=l(E)}cancelClick(){this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275cmp=y({type:o,selectors:[["app-ranking-unpublish"]],decls:9,vars:2,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["mat-dialog-actions",""],["mat-stroked-button","","cdkFocusInitial","",3,"click"],["mat-stroked-button","","color","primary",3,"mat-dialog-close"]],template:function(e,n){e&1&&(d(0,"h1",0),c(1,"Lopeta ilmoituksen korostaminen"),p(),d(2,"p",1),c(3),p(),d(4,"p",2)(5,"button",3),O("click",function(){return n.cancelClick()}),c(6,"Peruuta"),p(),d(7,"button",4),c(8,"Lopeta korostaminen"),p()()),e&2&&(_(3),j(' Haluatko varmasti, ett\xE4 kohdeilmoitus "',n.data.object_address,`" ei ole en\xE4\xE4 korostettuna Toimitilat.fi-portaalissa?
2`),_(4),f("mat-dialog-close",n.data))},dependencies:[w,v,T,D,S],encapsulation:2})}}return o}
2)();var i={fetch_ranking_order_summary:{id:1,name:"fetch_ranking_order_summary",url:a.SERVER_URL+"fetch_ranking_order_summary/",request_method:"GET",content_type:"application/json"},fetch_ranking_order_list:{id:2,name:"fetch_ranking_order_list",url:a.SERVER_URL+"fetch_ranking_order_list/",request_method:"GET",content_type:"application/json"},fetch_ranking_order_details:{id:3,name:"fetch_ranking_order_details",url:a.SERVER_URL+"fetch_ranking_order_details/",request_method:"GET",content_type:"application/json"},create_ranking_order:{id:4,name:"create_ranking_order",url:a.SERVER_URL+"create_ranking_order/",request_method:"GET",content_type:"application/json"},terminate_ranking_order:{id:5,name:"terminate_ranking_order",url:a.SERVER_URL+"terminate_ranking_order/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},update_ranking_order_details:{id:6,name:"update_ranking_order_details",url:a.SERVER_URL+"update_ranking_order_details/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},update_ranking_set_published_object:{id:7,name:"update_ranking_set_published_object",url:a.SERVER_URL+"update_ranking_set_published_object/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},update_ranking_clear_published_object:{id:8,name:"update_ranking_clear_published_object",url:a.SERVER_URL+"update_ranking_clear_published_object/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},fetch_publishable_object_list:{id:9,name:"fetch_publishable_object_list",url:a.SERVER_URL+"fetch_publishable_object_list/",request_method:"GET",content_type:"application/json"},validate_ranking_order_campaign_code:{id:10,name:"validate_ranking_order_campaign_code",url:a.SERVER_URL+"validate_ranking_order_campaign_code/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},update_ranking_order_campaign_code:{id:11,name:"update_ranking_order_campaign_code",url:a.SERVER_URL+"update_ranking_order_campaign_code/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},fetch_ranking_order_price:{id:12,name:"fetch_ranking_order_price",url:a.SERVER_URL+"fetch_ranking_order_price/",request_method:"GET",content_type:"application/json"},fetch_ranking_order_invoice:{id:13,name:"fetch_ranking_order_invoice",url:a.SERVER_URL+"fetch_ranking_order_invoice/",request_method:"GET",content_type:"application/json"},update_ranking_order_buyer:{id:14,name:"update_ranking_order_buyer",url:a.SERVER_URL+"update_ranking_order_buyer/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},fetch_ranking_order_buyer:{id:15,name:"fetch_ranking_order_buyer",url:a.SERVER_URL+"fetch_ranking_order_buyer/",request_method:"GET",content_type:"application/json"},confirm_ranking_order:{id:16,name:"confirm_ranking_order",url:a.SERVER_URL+"confirm_ranking_order/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},view_ranking_order:{id:17,name:"view_ranking_order",url:a.SERVER_URL+"view_ranking_order/",request_method:"GET",content_type:"application/json"},cancel_ranking_order:{id:18,name:"cancel_ranking_order",url:a.SERVER_URL+"cancel_ranking_order/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},reset_ranking_order:{id:19,name:"reset_ranking_order",url:a.SERVER_URL+"reset_ranking_order/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},unpublish_ranking_object:{id:20,name:"unpublish_ranking_object",url:a.SERVER_URL+"unpublish_ranking_object/",request_method:"POST",content_type:"application/x-www-form-urlencoded"},activate_ranking_object:{id:21,name:"activate_ranking_object",url:a.SERVER_URL+"activate_ranking_object/",request_method:"POST",content_type:"application/x-www-form-urlencoded"}};var Qt=(()=>{class o{constructor(){this.router=l(Z),this.http=l(G),this.dialog=l(nt),this.rankingUuidFetchSubj=new g,this.rankingUpdateSubj=new g,this.rankingTerminatedSubj=new g,this.objectPublishedSubj=new g,this.objectUnpublishedSubj=new g,this.httpOptions={headers:new $({"Content-Type":"application/json"}),params:new r({})}}rankingUUIDFetched(t){this.rankingUuidFetchSubj.next(t)}rankingUpdated(t){this.rankingUpdateSubj.next(t)}createRankingOrder(){let t=i.create_ranking_order.name;return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[t].content_type),this.httpOptions.params=new r({}),this.http.get(i[t].url,this.httpOptions).pipe(s(this.handleError("createRanking")))}cancelRanking(t){let e="cancel_ranking_order";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.http.post(i[e].url,{ranking_order_uuid:t},this.httpOptions).pipe(s(this.handleError("cancelRanking")))}resetRanking(t){let e="reset_ranking_order";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.http.post(i[e].url,{ranking_order_uuid:t},this.httpOptions).pipe(s(this.handleError("resetRanking")))}fetchRankingDetails(t){let e="fetch_ranking_order_details";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("fetchRankingDetails")))}fetchRankingBuyer(t){let e="fetch_ranking_order_buyer";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("fetchRankingBuyer")))}updateRankingDetails(t,e,n,h){let m="update_ranking_order_details";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[m].content_type),this.httpOptions.params=new r({});let L=`ranking_order_uuid=${t}&ranking_order_type_id=${e}&days=${n}`;return this.http.post(i[m].url,L,this.httpOptions).pipe(s(this.handleError("updateRankingDetails")))}updateRankingBuyer(t,e){let n="update_ranking_order_buyer";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.post(i[n].url,e,this.httpOptions).pipe(s(this.handleError("updateRankingBuyer")))}getRankingPriceData(t){let e="fetch_ranking_order_price";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("getRankingPriceData")))}getInvoiceData(t){let e="fetch_ranking_order_invoice";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("getInvoiceData")))}validateCampaignCode(t,e){let n="validate_ranking_order_campaign_code";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({});let h=`ranking_order_uuid=${t}&campaign_code=${e}`;return this.http.post(i[n].url,h,this.httpOptions).pipe(s(this.handleError("validateCampaignCode")))}updateCampaignCode(t,e){let n="update_ranking_order_campaign_code";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({});let h=`ranking_order_uuid=${t}&campaign_code=${e}`;return this.http.post(i[n].url,h,this.httpOptions).pipe(s(this.handleError("updateCampaignCode")))}
2getPublishableObjectListData(t){let e="fetch_publishable_object_list";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("getPublishableObjectListData")))}setPublishedObject(t,e){let n="update_ranking_set_published_object";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({});let h=`ranking_order_uuid=${t}&object_id=${e}`;return this.http.post(i[n].url,h,this.httpOptions).pipe(s(this.handleError("setPublishedObject")))}clearPublishedObject(t){let e="update_ranking_clear_published_object";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({});let n=`ranking_order_uuid=${t}`;return this.http.post(i[e].url,n,this.httpOptions).pipe(s(this.handleError("clearPublishedObject")))}getRankingListData(t){let e="fetch_ranking_order_list";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("expired",t?.expired?.toString()),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("fetchRankingList")))}getRankingSummaryData(){let t="fetch_ranking_order_summary";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[t].content_type),this.httpOptions.params=new r({}),this.http.get(i[t].url,this.httpOptions).pipe(s(this.handleError("getRankingSummaryData")))}confirmRankingOrder(t){let e="confirm_ranking_order";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({});let n=`ranking_order_uuid=${t}`;return this.http.post(i[e].url,n,this.httpOptions).pipe(s(this.handleError("confirmRankingOrder")))}viewRanking(t){let e="view_ranking_order";return this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[e].content_type),this.httpOptions.params=new r({}),this.httpOptions.params=this.httpOptions.params.set("ranking_order_uuid",t),this.http.get(i[e].url,this.httpOptions).pipe(s(this.handleError("viewRanking")))}unpublishRankingObjectDialog(t,e,n){return this.dialog.open(_t,{width:"1200px",data:{object_id:t,ranking_order_uuid:e,object_address:n}}).afterClosed().subscribe(m=>{if(m)this.unpublishRankingObject(m.object_id,m.ranking_order_uuid).subscribe(L=>this.objectUnpublishedSubj.next(!0));else return this.objectUnpublishedSubj.next(!1)}),this.objectUnpublishedSubj}unpublishRankingObject(t,e){let n="unpublish_ranking_object";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({});let h=`object_id=${t}&ranking_order_uuid=${e}`;return this.http.post(i[n].url,h,this.httpOptions).pipe(s(this.handleError("unpublishRankingObject")))}activateRankingObjectDialog(t){return this.dialog.open(ht,{width:"1200px",data:{ranking_order_uuid:t}}).afterClosed().subscribe(n=>{if(n)this.activateRankingObject(n.object_id,n.ranking_order_uuid).subscribe(h=>this.objectPublishedSubj.next(!0));else return this.objectPublishedSubj.next(!1)}),this.objectPublishedSubj}activateRankingObject(t,e){let n="activate_ranking_object";this.httpOptions.headers=this.httpOptions.headers.set("Content-Type",i[n].content_type),this.httpOptions.params=new r({});let h=`object_id=${t}&ranking_order_uuid=${e}`;return this.http.post(i[n].url,h,this.httpOptions).pipe(s(this.handleError("activateRankingObject")))}log(t){console.log(t)}handleError(t="operation",e){return n=>(console.error(n),this.log(`${t} failed: ${n.message}`),U(e))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=P({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{ht as a,_t as b,Qt 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.