1(self.webpackChunkota=self.webpackChunkota||[]).push([[7500],{58756(p,g,t){"use strict";t.d(g,{AnalyticsClickDirective:()=>c});var e=t(62552),h=t(86343),o=t(84887);let c=(()=>{var d;class _ extends h.T{constructor(){super((0,e.WQX)(e.aKT),(0,e.WQX)(o.c))}click(){this.id&&this.fireEvent("analytics-click",!1)}static#t=d=()=>(this.\u0275fac=function(E){return new(E||_)},this.\u0275dir=e.FsC({type:_,selectors:[["","analytics-click",""],["","analytics-click-meta",""],["","analytics-click-label",""],["","analytics-click-position",""]],hostBindings:function(E,n){1&E&&e.bIt("click",function(){return n.click()})},inputs:{id:[0,"analytics-click","id"]},features:[e.Vt3]}))}return d(),_})()},86343(p,g,t){"use strict";t.d(g,{T:()=>l});var e=t(3341),h=t.n(e),o=t(74159),c=t.n(o),d=t(55855),_=t.n(d),m=t(1866),r=t.n(m),E=t(17160),n=t.n(E),a=t(87815),s=t.n(a);class l{constructor(v,y){this.el=v,this.analyticsService=y}fireEvent(v,y=!1){const B=this.el.nativeElement.attributes;let S=this.id,I=null;const R=n()(B,(M,{name:U,value:L})=>{if(s()(U,v)){const C=c()(_()(v,""),h())(U);switch(C){case"":break;case"meta":I=L;break;default:M[C]=L}}return M},{});S.split(" ").forEach(M=>{this.analyticsService.pushOtasEvent(M,r()(R),I,{nonInteraction:y})})}}},8952(p,g,t){"use strict";t.d(g,{r:()=>_});var e=t(57780),h=t(84754),o=t(62552),c=t(75902),d=t(12341);let _=(()=>{var m;class r{constructor(){this.http=(0,o.WQX)(h.Qq)}getAssignment(n){const a=(new h._y).set(d.u,!0),s=this.http.get(`/api/latest/assignment/${n}`,{context:a});return(0,c.s)(s)}getAssignments(n){let a=new h.Nl;Object.keys(n).map(l=>{Array.isArray(n[l])?n[l].map(D=>{a=a.append(l+"[]",D)}):null!=n[l]&&""!==n[l]&&(a=a.set(l,n[l]))});const s=this.http.get("/api/latest/assignment",{params:a});return(0,c.s)(s)}postAssignment(n){var a=this;return(0,e.A)(function*(){const s=a.http.post("/api/latest/assignment",n);return(yield(0,c.s)(s)).assignmentId})()}deleteAssignment(n){var a=this;return(0,e.A)(function*(){const s=a.http.delete(`/api/latest/assignment/${n}`);return(yield(0,c.s)(s)).assignmentId})()}postContact(n,a){var s=this;return(0,e.A)(function*(){const l=s.http.post(`/api/latest/assignment/${n}/contact`,a);return yield(0,c.s)(l)})()}static#t=m=()=>(this.\u0275fac=function(a){return new(a||r)},this.\u0275prov=o.jDH({token:r,factory:r.\u0275fac,providedIn:"root"}))}return m(),r})()},9312(p,g,t){"use strict";t.d(g,{T:()=>m});var e=t(62552),h=t(34029),o=function(r){return r.Default="default",r.Blue="blue",r}(o||{}),c=t(58756),d=t(17014);function _(r,E){if(1&r){const n=e.RV6();e.EFF(0,"\n\t\t"),e.j41(1,"button",2),e.bIt("click",function(){e.eBV(n);const s=e.XpG();return e.Njj(s.onCloseClick())}),e.EFF(2,"\n\t\t\t"),e.nrm(3,"icon",3),e.EFF(4,"\n\t\t"),e.k0s(),e.EFF(5,"\n\t")}if(2&r){const n=e.XpG();e.R7$(),e.Y8G("analytics-click",n.closeAnalyticsClick)}}let m=(()=>{var r;class E{constructor(){this.size=h.x.Large,this.pillStyle=o.Default,this.closeIcon=!1,this.closeAnalyticsClick=null,this.closeClick=new e.bkB,this.PillSize=h.x,this.PillStyle=o}onCloseClick(){this.closeClick.emit()}static#t=r=()=>(this.\u0275fac=function(s){return new(s||E)},this.\u0275cmp=e.VBU({type:E,selectors:[["pill"]],inputs:{pillText:"pillText",size:"size",pillStyle:"pillStyle",closeIcon:"closeIcon",closeAnalyticsClick:"closeAnalyticsClick"},outputs:{closeClick:"closeClick"},decls:7,vars:6,consts:()=>{let a;return a=$localize`:@@pill/remove:Poista`,[[1,"pill"],[1,"pill__text"],["type","button","aria-label",a,1,"pill__close",3,"click","analytics-click"],["name","x"]]},template:function(s,l){1&s&&(e.j41(0,"span",0),e.EFF(1,"\n\t"),e.j41(2,"span",1),e.EFF(3),e.k0s(),e.EFF(4,"\n\t"),e.DNE(5,_,6,1),e.k0s(),e.EFF(6,"\n")),2&s&&(e.AVh("pill--small",l.size===l.PillSize.Small)("pill--blue",l.pillStyle===l.PillStyle.Blue),e.R7$(3),e.JRh(l.pillText),e.R7$(2),e.vxM(l.closeIcon?5:-1))},dependencies:[c.AnalyticsClickDirective,d.IconComponent],styles:[".pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.5rem;max-width:100%;padding:.5rem .75rem;border-radius:6.25rem;background:#f0f0f0;color:#202020;font-size:var(--font-copy-body-text-size);line-height:var(--font-copy-body-line-height);font-weight:var(--font-weight-regular)}.pill[_ngcontent-%COMP%]:has(.pill__close):hover{background:#e0e0e0}.pill[_ngcontent-%COMP%]:has(.pill__close):focus-within{box-shadow:0 0 0 1px var(--surface-neutral-default),0 0 0 3px #7bdfff}.pill--small[_ngcontent-%COMP%]{padding:.375rem .75rem;font-size:var(--font-copy-caption-text-size);line-height:var(--font-copy-caption-line-height);font-weight:var(--font-weight-regular)}.pill--blue[_ngcontent-%COMP%]{background:#0074bc;color:#fff}.pill--blue[_ngcontent-%COMP%]:has(.pill__close):hover{background:#0063a1}.pill--blue[_ngcontent-%COMP%] .pill__close-icon[_ngcontent-%COMP%]{color:#fff}.pill__text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill__close[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:none;cursor:pointer}.pill__close[_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}"]}))}return r(),E})()},33478(p,g,t){"use strict";t.d(g,{A:()=>_});var e=t(10127),o=t(62265),c=t(6443);const d="otAsunnot:autocomplete";e.module(d,[]).directive("locationAutocomplete",(0,o.PW)({component:c.F}));const _=d},3794(p,g,t){"use strict";t.d(g,{A:()=>E});var e=t(62265),h=t(10127),o=t(43016);const d=(()=>{class n{constructor(s,l){this._$http=s,this._$log=l}postVisit(s){return this._$http.post(`/api/latest/assignment/${s}/stats/visit`,{}).then(()=>{}).catch(l=>{this._$log.error(l)}).finally(()=>{})}getSummedStats(s){return this._$http.get(`/api/latest/assignment/${s}/stats`,{cache:!0}).then(({data:l})=>l).catch(l=>(this._$log.error(l),null))}getDailyCompanyAssignments(s,l,D){return this._$http.get(`/api/latest/assignment/stats/day/${(0,o.ls)(s,!0)}/${(0,o.ls)(l,!0)}`,{params:{companyId:D},cache:!0}).then(({data:v})=>v).catch(v=>{throw this._$log.error(v),v})}getCompanyAssignmentStats(s,l,D){return this._$http.get(`/api/latest/assignment/stats/assignment/${(0,o.ls)(s,!0)}/${(0,o.ls)(l,!0)}`,{params:{companyId:D},cache:!0}).then(({data:v})=>v).catch(v=>{throw this._$log.error(v),v})}}return n.$inject=["$http","$log"],n})();var _=t(8952),m=t(92527);const r="otAsunnot:resources:assignment";h.module(r,["otAsunnot:common:resources:config",m.A]).service("AssignmentResource",(0,e.f$)(_.r)).service("AssignmentStatisticsResource",d);const E=r},92527(p,g,t){"use strict";t.d(g,{A:()=>c});var e=t(47338),h=t(68015);const o="otAsunnot:url";angular.module(o,[]).value("serialize",e.A).factory("resourceSerializer",["serialize","$httpParamSerializer",(d,_)=>m=>_(d(m))]).service("UrlParameters",h.A);const c=o},68015(p,g,t){"use strict";t.d(g,{A:()=>W});var e=t(25560),h=t.n(e),o=t(22984),c=t.n(o),d=t(4397),_=t.n(d),m=t(58460),r=t.n(m),E=t(97358),n=t.n(E),a=t(62120),s=t.n(a),l=t(65271),D=t.n(l),v=t(25579),y=t.n(v),B=t(17160),S=t.n(B),I=t(59724),R=t.n(I),M=t(93755),U=t(29080),L=t.n(U);function C(O,A,i){switch(!0){case/\[\]$/.test(i):const u=i.replace(/\[\]$/,"");return C(O,L()(A),u);case/\[[^\]]+\]$/.test(i):const[,f]=i.match(/\[([^\]]+)\]$/),P=i.replace(/\[[^\]]+\]$/,""),T=C(O,{[f]:A},P);return{key:T.key,value:s()(O[T.key]||{},T.value)};case/__proto__/.test(i):return{key:void 0,value:null};default:return{key:i,value:A}}}const x=["view","pagination","lat","lng","zoom","popup","sc","guardId","embedded","sortBy"],W=(()=>{class O{constructor(i,u,f){this._setData(u,i),this._$location=i,this._serialize=f}_setData(i,u){this._searchData=s()(Object.create(null),c()(i,"otAsunnot.params"));let f=c()(i,"otAsunnot.additionalParams"),P=_()(u.search())?this._getParametersManually(u.absUrl()):function $(O){const A=Object.create(null);for(const[i,u]of Object.entries(O)){const f=C(A,u,i);
1void 0!==f.key&&(A[f.key]=f.value)}return A}(u.search());this._generalData=s()(Object.create(null),r()(f)?P:f)}_getParametersManually(i){return(0,M.A)(i)([u=>R()(u,"?"),u=>c()(u,"[1]"),u=>R()(u,"&"),u=>h()(u),u=>n()(u,f=>R()(f,"=")),u=>S()(u,(f,[P,T])=>(f[P]?(f[P]=[f[P]],f[P].push(T)):f[P]=T,f),Object.create(null))])}setParam(i,u,f=!0){this._generalData[i]=u,(null===u||"undefined"===u)&&(delete this._generalData[i],delete this._searchData[i]),f&&this._setUrlState()}getParam(i){return this._generalData[i]||this._searchData[i]}getParams(){return s()(Object.create(null),this._generalData,this._searchData)}_setUrlState(i=!0){i&&this._$location.replace(),this._$location.search(this._serialize(this.getParams()))}isEmbedded(){return!!this.getParam("embedded")}clearUnrelatedParams(){this._generalData=y()(this._generalData,x)}setSearchParams(i){this._searchData=i.getParams(),_()(D()(this._searchData,"cardType"))&&(this._searchData=Object.create(null)),this._setUrlState(!1)}setParams(i){this._generalData=s()(Object.create(null),i),this._setUrlState()}}return O.$inject=["$location","$window","serialize"],O})()},59209(p,g,t){var e=t(22388),h=t(48702);p.exports=function c(d){return h(d)&&"[object RegExp]"==e(d)}},16667(p,g,t){var e=t(59209),h=t(16465),o=t(5965),c=o&&o.isRegExp,d=c?h(c):e;p.exports=d},59724(p,g,t){var e=t(69984),h=t(15822),o=t(37334),c=t(11092),d=t(16667),_=t(61668),m=t(16858);p.exports=function E(n,a,s){return s&&"number"!=typeof s&&c(n,a,s)&&(a=s=void 0),(s=void 0===s?4294967295:s>>>0)?(n=m(n))&&("string"==typeof a||null!=a&&!d(a))&&!(a=e(a))&&o(n)?h(_(n),0,s):n.split(a,s):[]}}}]);
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.