/*! For license information please see 357.3af64738dd97cd9cdd76.js.LICENSE.txt */
(self.travelpayoutsWpPlugin=self.travelpayoutsWpPlugin||[]).push([[357],{2750:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});var r=n(71633),s=n.n(r),a=n(63696),c=n(97074);const i=e=>{const{children:t,className:n,onClick:r,interactive:i}=e;return a.createElement("div",{className:s()(c.stylesHeader,n,{[c.stylesHeaderInteractive]:r||i}),onClick:r},t)}},21357:(e,t,n)=>{"use strict";n.d(t,{ZendeskFeed:()=>v});var r=n(63696),s=n(83957),a=function(e,t,n,r){return new(n||(n=Promise))(function(s,a){function c(e){try{l(r.next(e))}catch(e){a(e)}}function i(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(c,i)}l((r=r.apply(e,t||[])).next())})};const c=n.n(s)().create({baseURL:"https://travelpayouts.zendesk.com/api/v2/help_center"}),i=e=>{const t="ru"===e?"ru":"en-us";return{getArticlesByLabelName:e=>a(void 0,void 0,void 0,function*(){try{const{data:n}=yield c.get(`/${t}/articles.json`,{params:{label_names:e}});if(n){const{articles:e}=n;return e}}catch(e){return console.warn({e}),[]}return[]}),getArticlesByCategoryId:e=>a(void 0,void 0,void 0,function*(){try{const{data:n}=yield c.get(`/${t}/categories/${e}/articles`);if(n){const{articles:e}=n;return e}}catch(e){return console.warn({e}),[]}return[]}),getSectionsByCategoryId:e=>a(void 0,void 0,void 0,function*(){try{const{data:n}=yield c.get(`/${t}/categories/${e}/sections`);if(n){const{sections:e}=n;return e}}catch(e){return console.warn({e}),[]}return[]}),getArticlesBySectionId:e=>a(void 0,void 0,void 0,function*(){try{const{data:n}=yield c.get(`/${t}/sections/${e}/articles`);if(n){const{articles:e}=n;return e}}catch(e){return console.warn({e}),[]}return[]})}};var l=n(71633),o=n.n(l),u=n(37300);const y=e=>{const{article:t}=e,{title:n,html_url:s}=t;return r.createElement("div",{className:o()(u.stylesWrapper)},r.createElement("a",{className:o()(u.stylesTitle),href:s,target:"_blank"},n))};n(24574),n(2750),n(35374);var d=function(e,t,n,r){return new(n||(n=Promise))(function(s,a){function c(e){try{l(r.next(e))}catch(e){a(e)}}function i(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(c,i)}l((r=r.apply(e,t||[])).next())})};const v=e=>{const{lang:t}=e,n=i(t),[s,a]=(0,r.useState)([]);return(0,r.useEffect)(()=>{d(void 0,void 0,void 0,function*(){const e=yield n.getArticlesBySectionId(0xafc50024692);a(e)})},[]),r.createElement("div",null,s.map((e,t)=>r.createElement(y,{key:t,article:e})))}},24574:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(71633),s=n.n(r),a=n(63696),c=n(2750),i=n(97074);const l=e=>{const{children:t,title:n,className:r,header:l}=e,o=l||a.createElement(c.a,null,n);return a.createElement("div",{className:s()(i.stylesWrapper,r)},(n||l)&&o,t&&a.createElement("div",{className:s()(i.stylesBody)},t))}},35374:e=>{e.exports={stylesCard:"styles-card__FEVL4",stylesLink:"styles-link__mmx5D"}},37300:e=>{e.exports={stylesWrapper:"styles-wrapper__k3fd5",stylesTitle:"styles-title___ZQus"}},71633:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var c=s.apply(null,n);c&&e.push(c)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)r.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()},97074:e=>{e.exports={stylesWrapper:"styles-wrapper__xSYRq",stylesBody:"styles-body__jm0fI",stylesHasTitle:"styles--hasTitle__JFLXz",stylesHeader:"styles-header__weUwD",stylesHeaderInteractive:"styles-header--interactive__qNJGZ",stylesIsClose:"styles--isClose__rRuly"}}}]);