"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2898],{7233:function(e,t,n){n.d(t,{ZL:function(){return o},_W:function(){return c},xZ:function(){return i}});var r=n(44102),a=n(27782),o=new r.bQ(a.D,void 0,a.C),i=new r.XK(a.D,void 0,a.C),c=new r._(a.D,void 0,a.C)},85614:function(e,t,n){n.d(t,{C:function(){return L}});var r=n(11430),a=n(28094),o=n(25638),i=n(57125),c=n(23667),u=n(62875),s=n(91797),p=n(88953),f=n.n(p),d=n(81734),h=n(61590),v=n(72736);function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}var b="http://localhost".replace(/\/+$/,""),w=(0,a.Z)((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.Z;(0,r.Z)(this,e),this.basePath=n,this.axios=a,(0,u.Z)(this,"configuration",void 0),t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)})),g=function(e){(0,o.Z)(n,e);var t=l(n);function n(e,a){var o;return(0,r.Z)(this,n),(o=t.call(this,a)).field=e,(0,u.Z)((0,h.Z)(o),"name","RequiredError"),o}return(0,a.Z)(n)}((0,v.Z)(Error));function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O="https://example.com",Z=function(e,t,n){if(null===n||void 0===n)throw new g(t,"Required parameter ".concat(t," was null or undefined when calling ").concat(e,"."))},P=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})};function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"object"===typeof t?Array.isArray(t)?t.forEach((function(t){return R(e,t,n)})):Object.keys(t).forEach((function(r){return R(e,t[r],"".concat(n).concat(""!==n?".":"").concat(r))})):e.has(n)?e.append(n,t):e.set(n,t)}var k=function(e){for(var t=new URLSearchParams(e.search),n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];R(t,r),e.search=t.toString()},j=function(e,t,n){var r="string"!==typeof e;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(void 0!==e?e:{}):e||""},x=function(e){return e.pathname+e.search+e.hash},C=function(e,t,n,r){return function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=m(m({},e.options),{},{url:((null===r||void 0===r?void 0:r.basePath)||o)+e.url});return a.request(i)}};function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.Z)(e);if(t){var a=(0,c.Z)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return(0,i.Z)(this,n)}}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,u.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var I=function(e){var t=function(e){return{create:function(){var t=(0,s.Z)(f().mark((function t(n){var r,a,o,i,c,u,s,p=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=p.length>1&&void 0!==p[1]?p[1]:{},Z("create","createPriceRangeDto",n),a=new URL("/price-range",O),e&&(o=e.baseOptions),i=A(A({method:"POST"},o),r),c={},u={},P(i,e),c["Content-Type"]="application/json",k(a,u),s=o&&o.headers?o.headers:{},i.headers=A(A(A({},c),s),r.headers),i.data=j(n,i,e),t.abrupt("return",{url:x(a),options:i});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),findAll:function(){var t=(0,s.Z)(f().mark((function t(n,r){var a,o,i,c,u,s,p,d=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d.length>2&&void 0!==d[2]?d[2]:{},o=new URL("/price-range",O),e&&(i=e.baseOptions),c=A(A({method:"GET"},i),a),u={},s={},void 0!==n&&(s.skip=n),void 0!==r&&(s.limit=r),k(o,s),p=i&&i.headers?i.headers:{},c.headers=A(A(A({},u),p),a.headers),t.abrupt("return",{url:x(o),options:c});case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),findApprovedRate:function(){var t=(0,s.Z)(f().mark((function t(n,r){var a,o,i,c,u,s,p,d=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d.length>2&&void 0!==d[2]?d[2]:{},Z("findApprovedRate","originId",n),Z("findApprovedRate","destinationId",r),o="/price-range/{originId}/{destinationId}".replace("{".concat("originId","}"),encodeURIComponent(String(n))).replace("{".concat("destinationId","}"),encodeURIComponent(String(r))),i=new URL(o,O),e&&(c=e.baseOptions),u=A(A({method:"GET"},c),a),s={},k(i,{}),p=c&&c.headers?c.headers:{},u.headers=A(A(A({},s),p),a.headers),t.abrupt("return",{url:x(i),options:u});case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),findOne:function(){var t=(0,s.Z)(f().mark((function t(n){var r,a,o,i,c,u,s,p=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=p.length>1&&void 0!==p[1]?p[1]:{},Z("findOne","id",n),a="/price-range/{id}".replace("{".concat("id","}"),encodeURIComponent(String(n))),o=new URL(a,O),e&&(i=e.baseOptions),c=A(A({method:"GET"},i),r),u={},k(o,{}),s=i&&i.headers?i.headers:{},c.headers=A(A(A({},u),s),r.headers),t.abrupt("return",{url:x(o),options:c});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),remove:function(){var t=(0,s.Z)(f().mark((function t(n){var r,a,o,i,c,u,s,p,d=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=d.length>1&&void 0!==d[1]?d[1]:{},Z("remove","id",n),a="/price-range/{id}".replace("{".concat("id","}"),encodeURIComponent(String(n))),o=new URL(a,O),e&&(i=e.baseOptions),c=A(A({method:"DELETE"},i),r),u={},s={},P(c,e),k(o,s),p=i&&i.headers?i.headers:{},c.headers=A(A(A({},u),p),r.headers),t.abrupt("return",{url:x(o),options:c});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),update:function(){var t=(0,s.Z)(f().mark((function t(n,r){var a,o,i,c,u,s,p,d,h=arguments;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=h.length>2&&void 0!==h[2]?h[2]:{},Z("update","id",n),Z("update","updatePriceRangeDto",r),o="/price-range/{id}".replace("{".concat("id","}"),encodeURIComponent(String(n))),i=new URL(o,O),e&&(c=e.baseOptions),u=A(A({method:"PUT"},c),a),s={},p={},P(u,e),s["Content-Type"]="application/json",k(i,p),d=c&&c.headers?c.headers:{},u.headers=A(A(A({},s),d),a.headers),u.data=j(r,u,e),t.abrupt("return",{url:x(i),options:u});case 16:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}}(e);return{create:function(n,r){return(0,s.Z)(f().mark((function a(){var o;return f().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.create(n,r);case 2:return o=a.sent,a.abrupt("return",C(o,d.Z,b,e));case 4:case"end":return a.stop()}}),a)})))()},findAll:function(n,r,a){return(0,s.Z)(f().mark((function o(){var i;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t.findAll(n,r,a);case 2:return i=o.sent,o.abrupt("return",C(i,d.Z,b,e));case 4:case"end":return o.stop()}}),o)})))()},findApprovedRate:function(n,r,a){return(0,s.Z)(f().mark((function o(){var i;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t.findApprovedRate(n,r,a);case 2:return i=o.sent,o.abrupt("return",C(i,d.Z,b,e));case 4:case"end":return o.stop()}}),o)})))()},findOne:function(n,r){return(0,s.Z)(f().mark((function a(){var o;return f().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.findOne(n,r);case 2:return o=a.sent,a.abrupt("return",C(o,d.Z,b,e));case 4:case"end":return a.stop()}}),a)})))()},remove:function(n,r){return(0,s.Z)(f().mark((function a(){var o;return f().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,t.remove(n,r);case 2:return o=a.sent,a.abrupt("return",C(o,d.Z,b,e));case 4:case"end":return a.stop()}}),a)})))()},update:function(n,r,a){return(0,s.Z)(f().mark((function o(){var i;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t.update(n,r,a);case 2:return i=o.sent,o.abrupt("return",C(i,d.Z,b,e));case 4:case"end":return o.stop()}}),o)})))()}}},S=function(e){(0,o.Z)(n,e);var t=D(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"create",value:function(e,t){var n=this;return I(this.configuration).create(e.createPriceRangeDto,t).then((function(e){return e(n.axios,n.basePath)}))}},{key:"findAll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return I(this.configuration).findAll(t.skip,t.limit,n).then((function(t){return t(e.axios,e.basePath)}))}},{key:"findApprovedRate",value:function(e,t){var n=this;return I(this.configuration).findApprovedRate(e.originId,e.destinationId,t).then((function(e){return e(n.axios,n.basePath)}))}},{key:"findOne",value:function(e,t){var n=this;return I(this.configuration).findOne(e.id,t).then((function(e){return e(n.axios,n.basePath)}))}},{key:"remove",value:function(e,t){var n=this;return I(this.configuration).remove(e.id,t).then((function(e){return e(n.axios,n.basePath)}))}},{key:"update",value:function(e,t){var n=this;return I(this.configuration).update(e.id,e.updatePriceRangeDto,t).then((function(e){return e(n.axios,n.basePath)}))}}]),n}(w),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,r.Z)(this,e),(0,u.Z)(this,"apiKey",void 0),(0,u.Z)(this,"username",void 0),(0,u.Z)(this,"password",void 0),(0,u.Z)(this,"accessToken",void 0),(0,u.Z)(this,"basePath",void 0),(0,u.Z)(this,"baseOptions",void 0),(0,u.Z)(this,"formDataCtor",void 0),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}return(0,a.Z)(e,[{key:"isJsonMime",value:function(e){var t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}]),e}(),T=n(27782),L=new S(new U({basePath:"".concat("https://b2b.karnaval.ir","/api/flight-price-range")}),void 0,T.C)},42433:function(e,t,n){n.d(t,{Nd:function(){return i},f7:function(){return c}});var r=n(21044),a=n(27782),o=new r.VK({basePath:"".concat("https://b2b.karnaval.ir","/api/flight-ticket")}),i=new r.vo(o,void 0,a.C),c=new r.do(o,void 0,a.C)}}]);