1"use strict";(self.webpackChunkiko=self.webpackChunkiko||[]).push([[7400],{77400:(N,u,n)=>{n.r(u),n.d(u,{HelpModule:()=>Y});var h=n(65056),a=n(71904),r=n(13492),g=n(51008),p=n(24424),v=n(42108),t=n(34896),f=n(16124),C=n(36248),y=n(80720),T=n(42004),F=n(5892),d=n(72584),S=n(61464),I=n(44480),G=n(93796),H=n(82376),x=n(10252);function E(i,c){if(1&i){const e=t.KQA();t.I0R(0,"i",19),t.qCj("click",function(){t.usT(e);const o=t.GaO();return t.CGJ(null==o.searchForm?null:o.searchForm.reset())}),t.C$Y()}}function R(i,c){1&i&&t.wR5(0,"i",20)}function b(i,c){if(1&i&&(t.I0R(0,"div",25)(1,"div",26),t.wR5(2,"i",27),t.C$Y(),t.wR5(3,"div",28),t.I0R(4,"div",29),t.wR5(5,"i",30),t.C$Y()()),2&i){const e=t.GaO().$implicit;t.yG2(3),t.E7m("innerHTML",e.title,t.E3n)}}function w(i,c){if(1&i&&t.wR5(0,"div",31),2&i){const e=t.GaO().$implicit;t.E7m("innerHTML",e.body,t.E3n)}}function O(i,c){if(1&i&&(t.SAx(0),t.I0R(1,"ngb-accordion",21)(2,"ngb-panel",22),t.yuY(3,b,6,1,"ng-template",23)(4,w,1,1,"ng-template",24),t.C$Y()(),t.k70()),2&i){const e=c.index;t.yG2(2),t.E7m("id","faq-panel-"+e)}}function D(i,c){if(1&i){const e=t.KQA();t.I0R(0,"div",32),t.qCj("click",function(){const l=t.usT(e).$implicit,m=t.GaO();return t.CGJ(m.selectTopic(l))}),t.I0R(1,"div",33),t.wR5(2,"i",34),t.I0R(3,"div",35),t.OEk(4),t.C$Y()()()}if(2&i){const e=c.$implicit,s=t.GaO();t.yG2(2),t.E7m("ngClass",s.topicIcons[e.tid]),t.yG2(2),t.cNF(e.name)}}const M=[{path:"",component:(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275cmp=t.In1({type:i,selectors:[["help-section"]],standalone:!0,features:[t.UHJ],decls:1,vars:0,consts:[[1,"content-outlet-child"]],template:function(s,o){1&s&&t.wR5(0,"router-outlet",0)},dependencies:[p.qQ,p.cP]})}}return i})(),data:{discriminantPathKey:"HELP_SECTION"},children:[{path:"",component:(()=>{class i{constructor(e,s,o,l,m,P,k,U,q,j,L){this.callNumber=e,this.navDataService=s,this.formBuilder=o,this.viewService=l,this.translateService=m,this.i18nService=P,this.googleMap=k,this.customService=U,this.deviceDetectService=q,this.route=j,this.crispChatService=L,this.topicIcons={248:"icon-users",249:"icon-store-alt",250:"icon-shield-check",251:"icon-shopping-cart",252:"icon-award",253:"icon-globe"},this.notificationsService=(0,t.uUt)(f.E),this.trackingService=(0,t.uUt)(C.y)}ngOnInit(){this.navDataService.setPageTitle({title:"Help"}),this.navDataService.rightHeaderActions.set([{iconClass:"icon-user-headset",action:()=>{this.displayContactUs()},type:"button",display:!0}]),this.buildForm(),this.getTopics(),this.getPersonalizedFaq(),this.setOfficeHours(),this.languageSubscription=this.i18nService.changedSelectedLanguage$.subscribe(()=>{this.getTopics(),this.getPersonalizedFaq()}),this.route.snapshot.queryParamMap.get("contact")&&setTimeout(()=>{this.displayContactUs()},0)}ngOnDestroy(){this.navDataService.resetHeaderRightButton(),this.languageSubscription?.unsubscribe()}getPersonalizedFaq(){this.viewService.get("/api/v1/personalized-faq.json").subscribe(e=>{this.faq=e})}setOfficeHours(){const e=(new Date).toDateString();this.startTimeFirst=this.setTime(e+" 12:00 UTC"),this.endTimeFirst=this.setTime(e+" 17:00 UTC"),this.startTimeSecond=this.setTime(e+" 18:00 GMT"),this.endTimeSecond=this.setTime(e+" 20:30 GMT");const s=new Date(Date.parse(e));this.timeZone=s.toString().split(" ")}setTime(e){return new Date(e).toLocaleString("en-US")}getTopics(){this.viewService.get("/api/v1/terms/faq_topics.json",{filters:{langcode:this.i18nService.language}}).subscribe(e=>{this.topics=e})}selectTopic(e){this.selectedTopicTid=e.tid,this.navigateToFaq()}selectFaq(e){this.selectedFaqId=e,this.navigateToFaq()}displayContactUs(){this.crispChatService.openChat()}openLauncher(){this.googleMap.openExternalMap("IKO - International Kiteboarding Organization Cabarete",10,19.7501516,-70.4139484)}openCall(){const e="+18095719530";this.deviceDetectService.isNativeDevice?this.callNumber.callNumber(e,!0):this.navDataService.navigate(`tel:${e}`,!0)}buildForm(){this.searchForm=this.formBuilder.group({searchField:["",a.AQ.required]})}navigateToFaq(){const e={};this.selectedCategoryTid&&(e.category=this.selectedCategoryTid),this.selectedTopicTid&&(e.topic=this.selectedTopicTid),this.searchForm?.get("searchField")?.value&&(e.search=this.searchForm?.get("searchField")?.value),this.selectedFaqId&&(e.faq=this.selectedFaqId),this.customService.sendFaqSearchEntry(e.search),this.navDataService.navigate("/help/faq",!1,{queryParams:e}),this.trackingService.trackEvent({event:"helps_search",search:e.search})}
1notifyUser(){this.notificationsService.notifyError(this.translateService.instant("Please enter a value to search"))}static{this.\u0275fac=function(s){return new(s||i)(t.GI1(y.w),t.GI1(T.G),t.GI1(a.im),t.GI1(F._M),t.GI1(d.qS),t.GI1(v.W),t.GI1(S.h),t.GI1(I.kP),t.GI1(G.a),t.GI1(p.gV),t.GI1(H._))}}static{this.\u0275cmp=t.In1({type:i,selectors:[["app-help"]],decls:22,vars:8,consts:[[1,"bg-primary-gradient","container-fluid","text-white","d-flex","flex-column","overflow-scroll"],[1,"my-3","text-center"],["translate","",1,"m-0","p-0"],[1,"row"],[1,"col-12","col-md-6","col-lg-4","mx-auto",3,"formGroup"],[1,"input-group"],["appCloseKeyboardOnEnter","","type","text","formControlName","searchField",1,"border","form-control","bg-light-transparent-6",3,"placeholder","keydown.enter"],[1,"input-group-text","text-white","bg-light-transparent-6","p-2",3,"click"],["class","text-danger icon icon-times",3,"click",4,"ngIf"],["class","icon icon-search",4,"ngIf"],[1,"row","mt-2","d-flex","justify-content-center","flex-grow-1","overflow-scroll"],[1,"col-md-8","col-lg-6","col-sm-12"],[4,"ngFor","ngForOf"],[1,"mt-auto","text-center"],["translate","",1,"my-3"],[1,"justify-content-center","row","px-3","my-2"],[1,"col-12","col-lg-6"],[1,"row","justify-content-center"],["class","col-4 mb-3 px-2",3,"click",4,"ngFor","ngForOf"],[1,"text-danger","icon","icon-times",3,"click"],[1,"icon","icon-search"],[1,"d-block","mb-2"],[3,"id"],["ngbPanelTitle",""],["ngbPanelContent",""],[1,"row","align-items-center"],[1,"col-1","text-info","text-start"],[1,"icon","icon-16","icon-info-circle","text-white"],[1,"col","text-white","icon-16",3,"innerHTML"],[1,"col-1","text-white","text-end","p-0","pe-3"],[1,"icon","icon-32","text-white","icon-angle-up"],[1,"mb-3","text-white",3,"innerHTML"],[1,"col-4","mb-3","px-2",3,"click"],[1,"rounded-1","bg-light-transparent-6","p-2"],[1,"icon","icon-55",3,"ngClass"],[1,"mt-2"]],template:function(s,o){1&s&&(t.I0R(0,"div",0)(1,"div",1)(2,"h3",2),t.OEk(3,"How Can We Help You?"),t.C$Y()(),t.I0R(4,"div",3)(5,"form",4)(6,"div",5)(7,"input",6),t.qCj("keydown.enter",function(){return null!=o.searchForm&&o.searchForm.valid?o.navigateToFaq():o.notifyUser()}),t.wVc(8,"translate"),t.C$Y(),t.I0R(9,"span",7),t.qCj("click",function(){return null!=o.searchForm&&o.searchForm.valid?o.navigateToFaq():o.notifyUser()}),t.yuY(10,E,1,0,"i",8)(11,R,1,0,"i",9),t.C$Y()()()(),t.I0R(12,"div",10)(13,"div",11),t.yuY(14,O,5,1,"ng-container",12),t.C$Y()(),t.I0R(15,"div",13)(16,"h4",14),t.OEk(17,"Search by topic"),t.C$Y(),t.I0R(18,"div",15)(19,"div",16)(20,"div",17),t.yuY(21,D,5,2,"div",18),t.C$Y()()()()()),2&s&&(t.yG2(5),t.E7m("formGroup",o.searchForm),t.yG2(2),t.E7m("placeholder",t.kDX(8,6,"Search")),t.yG2(3),t.E7m("ngIf",null==o.searchForm?null:o.searchForm.value.searchField),t.yG2(),t.E7m("ngIf",!(null!=o.searchForm&&o.searchForm.value.searchField)),t.yG2(3),t.E7m("ngForOf",o.faq),t.yG2(7),t.E7m("ngForOf",o.topics))},dependencies:[h.QF,h.ay,h.u_,a.sz,a.ot,a.ue,a.u,d.eM,x.u,r.GG,r.Mv,r.i2,r.Ul,a.uW,a.Wo,d.sD]})}}return i})(),data:{title:(0,v.A)("Help"),discriminantPathKey:"HELP"}},{path:"faq",loadChildren:()=>n.e(8908).then(n.bind(n,58908)).then(i=>i.FaqModule)}]}];let $=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.a4G({type:i})}static{this.\u0275inj=t.s3X({imports:[p.qQ.forChild(M)]})}}return i})(),Y=(()=>{class i{static{this.\u0275fac=function(s){return new(s||i)}}static{this.\u0275mod=t.a4G({type:i})}static{this.\u0275inj=t.s3X({imports:[h.MD,a.y,g.k,r.IB,$,a.sl]})}}return i})()}}]); 2//# sourceMappingURL=7400.2488c6c4347e360c.js.map
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.