@omnic/widget-locations 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/widget.es.js +1 -4
- package/dist/lib/widget.umd.js +1 -1
- package/package.json +1 -1
package/dist/lib/widget.es.js
CHANGED
|
@@ -2264,10 +2264,7 @@ const Qp = (t) => /* @__PURE__ */ he.createElement("svg", { width: 20, height: 2
|
|
|
2264
2264
|
onPlaceSelected: a
|
|
2265
2265
|
});
|
|
2266
2266
|
return /* @__PURE__ */ A(ia, { ref: l, className: t, endAdornment: /* @__PURE__ */ A(Qp, {}), placeholder: e("placeholder") });
|
|
2267
|
-
}, Jp = ({ className: t }) => {
|
|
2268
|
-
if (Ne((n) => n.loaded))
|
|
2269
|
-
return /* @__PURE__ */ A(Zp, { className: t });
|
|
2270
|
-
}, qp = ve(Jp), Xp = {
|
|
2267
|
+
}, Jp = ({ className: t }) => Ne((n) => n.loaded) ? /* @__PURE__ */ A(Zp, { className: t }) : null, qp = ve(Jp), Xp = {
|
|
2271
2268
|
location: null,
|
|
2272
2269
|
hook: null
|
|
2273
2270
|
}, rt = vt()((t) => ({
|
package/dist/lib/widget.umd.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var nn=a,hc=gc;function mc(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vc=typeof Object.is=="function"?Object.is:mc,yc=hc.useSyncExternalStore,Cc=nn.useRef,Ec=nn.useEffect,Lc=nn.useMemo,bc=nn.useDebugValue;Ps.useSyncExternalStoreWithSelector=function(t,e,n,o,s){var i=Cc(null);if(i.current===null){var r={hasValue:!1,value:null};i.current=r}else r=i.current;i=Lc(function(){function c(E){if(!u){if(u=!0,d=E,E=o(E),s!==void 0&&r.hasValue){var C=r.value;if(s(C,E))return f=C}return f=E}if(C=f,vc(d,E))return C;var p=o(E);return s!==void 0&&s(C,p)?C:(d=E,f=p)}var u=!1,d,f,y=n===void 0?null:n;return[function(){return c(e())},y===null?void 0:function(){return c(y())}]},[e,n,o,s]);var l=yc(t,i[0],i[1]);return Ec(function(){r.hasValue=!0,r.value=l},[l]),bc(l),l},ks.exports=Ps;var wc=ks.exports;const Ac=$t(wc),{useSyncExternalStoreWithSelector:Sc}=Ac;function Mc(t,e=t.getState,n){const o=Sc(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return a.useDebugValue(o),o}const Ds=t=>{const e=typeof t=="function"?sc(t):t,n=(o,s)=>Mc(e,o,s);return Object.assign(n,e),n},nt=t=>t?Ds(t):Ds;let on;const Oc=new Uint8Array(16);function kc(){if(!on&&(on=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!on))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return on(Oc)}const Oe=[];for(let t=0;t<256;++t)Oe.push((t+256).toString(16).slice(1));function Pc(t,e=0){return(Oe[t[e+0]]+Oe[t[e+1]]+Oe[t[e+2]]+Oe[t[e+3]]+"-"+Oe[t[e+4]]+Oe[t[e+5]]+"-"+Oe[t[e+6]]+Oe[t[e+7]]+"-"+Oe[t[e+8]]+Oe[t[e+9]]+"-"+Oe[t[e+10]]+Oe[t[e+11]]+Oe[t[e+12]]+Oe[t[e+13]]+Oe[t[e+14]]+Oe[t[e+15]]).toLowerCase()}const Bs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ts(t,e,n){if(Bs.randomUUID&&!e&&!t)return Bs.randomUUID();t=t||{};const o=t.random||(t.rng||kc)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=o[s];return e}return Pc(o)}const mo=[55.75,37.57],vo=Ts(),sn=Ts(),Xe=[48,66],Lt=[58,80],Ns=10,rn=20,Ic=10,xc={mode:"self_pickup",bounds:null,loaded:!1,zoom:rn,detailsOpen:!1},Pe=nt()(t=>({...xc,setLoaded(e){t({loaded:e})},setMode(e){t({mode:e})},setBounds(e){t({bounds:e})},setZoom(e){t({zoom:e})},setDetailsOpen(e){t({detailsOpen:e})}})),js={locale:"en",map:{provider:"google"}},Us=a.createContext(js),Ye=()=>a.useContext(Us),Dc={courierPoint:null},Re=nt()(t=>({...Dc,setCourierPoint(e){t({courierPoint:e})}})),an={root:"_root_1wpev_1",primary:"_primary_1wpev_20",secondary:"_secondary_1wpev_33"},He=({className:t,variant:e="primary",...n})=>{if(n.as==="link"){const{as:i,...r}=n;return v.jsx("a",{className:he(an.root,t,an[e]),...r})}const{as:o,...s}=n;return v.jsx("button",{className:he(an.root,t,an[e]),...s})};He.defaultProps={as:"button"};const Bc=t=>ue.createElement("svg",{width:123,height:32,viewBox:"0 0 123 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{d:"M6.69783 32C5.49102 32 4.3747 31.7038 3.34892 31.1112C2.32312 30.5186 1.50852 29.7186 0.905114 28.7112C0.301705 27.7038 0 26.6074 0 25.4222V6.57778C0 5.36296 0.301705 4.26666 0.905114 3.28888C1.50852 2.28148 2.32312 1.48148 3.34892 0.888888C4.3747 0.296296 5.49102 0 6.69783 0H25.8862C27.093 0 28.1942 0.296296 29.1899 0.888888C30.2156 1.48148 31.0302 2.28148 31.6338 3.28888C32.2673 4.26666 32.5841 5.36296 32.5841 6.57778V25.4222C32.5841 26.6074 32.2673 27.7038 31.6338 28.7112C31.0302 29.7186 30.2156 30.5186 29.1899 31.1112C28.1942 31.7038 27.093 32 25.8862 32H6.69783ZM7.01462 25.0666H25.4789V6.93334H7.01462V25.0666Z",fill:"black"}),ue.createElement("path",{d:"M37.5678 32V0H44.8087L55.851 12.9333L66.8482 0H74.1345V32H67.0745V10.5333L55.851 23.6888L44.5824 10.5778V32H37.5678Z",fill:"black"}),ue.createElement("path",{d:"M79.5533 32V0H86.7941L105.032 21.3334V0H112.137V32H104.896L86.5679 10.5778V32H79.5533Z",fill:"black"}),ue.createElement("path",{d:"M116.076 32V0H123V32H116.076Z",fill:"black"})),Bt={root:"_root_aqm1r_1",nav:"_nav_aqm1r_14",navItem:"_navItem_aqm1r_20",logo:"_logo_aqm1r_40"},Tc=()=>{const{hideLogo:t}=Ye();return t?null:v.jsx("div",{className:Bt.logo,children:v.jsx(Bc,{})})},Nc=t=>ue.createElement("svg",{width:24,height:28,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z",fill:"#1760EE"})),jc={open:!1},ln=nt(t=>({...jc,toggle(e){t(n=>({open:e??!n.open}))}})),Uc={place:null},bt=nt(t=>({...Uc,setPlace(e){t({place:e})}})),yo={root:"_root_7i42e_1",text:"_text_7i42e_8"},Hc=({className:t})=>{var r;const{t:e}=Ge("current_location"),n=bt(l=>l.place),o=ln(l=>l.toggle),s=()=>{o(!0)},i=(r=n==null?void 0:n.address_components)==null?void 0:r.find(l=>l.types.includes("locality"));return v.jsxs("div",{className:he(yo.root,t),onClick:s,children:[v.jsx("div",{className:yo.icon,children:v.jsx(Nc,{})}),v.jsxs("span",{className:yo.text,children:[!n&&e("choose_from_map"),n&&`${(i==null?void 0:i.long_name)??n.formatted_address}`]})]})},zc=({className:t})=>{const{t:e}=Ge("header"),{disableCourierDelivery:n}=Ye(),o=Re(f=>f.courierPoint),s=Re(f=>f.setCourierPoint),i=Pe(f=>f.mode),r=Pe(f=>f.setMode);a.useEffect(()=>{r(o?"courier_delivery":"self_pickup")},[o,r]);const l=()=>{s(null),r("self_pickup")},c=()=>{s(null),r("courier_delivery")},u=i==="self_pickup",d=i==="courier_delivery";return v.jsxs("div",{className:he(Bt.root,t),children:[v.jsx(Tc,{}),v.jsxs("nav",{className:Bt.nav,children:[!n&&v.jsx(He,{as:"link",className:Bt.navItem,variant:u?"primary":"secondary",onClick:l,children:e("self_pickup")}),!n&&v.jsx(He,{as:"link",className:Bt.navItem,variant:d?"primary":"secondary",onClick:c,children:e("courier_delivery")}),v.jsx(Hc,{})]})]})},Qc=a.memo(zc),Gc={open:!1},Tt=nt(t=>({...Gc,toggle(e){t(n=>({open:e??!n.open}))}})),Hs={root:"_root_albkn_1",sidebarOpen:"_sidebarOpen_albkn_11"},Yc=({children:t})=>{const e=Tt(n=>n.open);return v.jsx("div",{className:he(Hs.root,{[Hs.sidebarOpen]:e}),children:t})};var ot=(t=>(t[t.All=0]="All",t[t.PickPoint=20]="PickPoint",t[t.PostOffice=30]="PostOffice",t))(ot||{}),Fe=(t=>(t[t.PayByCash=0]="PayByCash",t[t.DressingRoom=1]="DressingRoom",t[t.CheckOrder=2]="CheckOrder",t))(Fe||{}),Ve=(t=>(t[t.Return=0]="Return",t[t.Payment=1]="Payment",t[t.Shipping=2]="Shipping",t))(Ve||{});const Fc={query:"",type:ot.All,hours:["08:00","22:00"],send:{[Ve.Return]:!1,[Ve.Payment]:!1,[Ve.Shipping]:!1},receive:{[Fe.PayByCash]:!1,[Fe.CheckOrder]:!1,[Fe.DressingRoom]:!1}},Nt=nt(t=>({...Fc,setFilter(e){t(e)}})),Vc={root:"_root_e4qd2_1"},Co=({className:t,...e})=>v.jsx("hr",{className:he(Vc.root,t),...e}),Eo=t=>ue.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("g",{clipPath:"url(#clip0_422_11470)"},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),ue.createElement("defs",null,ue.createElement("clipPath",{id:"clip0_422_11470"},ue.createElement("rect",{width:20.0004,height:20,fill:"white"})))),ct={root:"_root_1dbfv_1",open:"_open_1dbfv_7",header:"_header_1dbfv_16",closeIcon:"_closeIcon_1dbfv_28",typeFilter:"_typeFilter_1dbfv_32",separator:"_separator_1dbfv_36",withRightPadding:"_withRightPadding_1dbfv_40"},Wc=()=>{const t=Tt(n=>n.toggle),e=()=>{t(!1)};return v.jsx("div",{className:ct.header,children:v.jsx("div",{className:ct.closeIcon,onClick:e,children:v.jsx(Eo,{})})})},Kc={root:"_root_qi1eq_1"},Zc=({value:t,onChange:e,className:n})=>{const{t:o}=Ge("type_filter"),s=i=>()=>e==null?void 0:e(i);return v.jsxs("div",{className:he(Kc.root,n),children:[v.jsx(He,{variant:t===ot.All?"primary":"secondary",onClick:s(ot.All),children:o("all")}),v.jsx(He,{variant:t===ot.PostOffice?"primary":"secondary",onClick:s(ot.PostOffice),children:o("post_office")}),v.jsx(He,{variant:t===ot.PickPoint?"primary":"secondary",onClick:s(ot.PickPoint),children:o("pick_point")})]})},Jc=({className:t,onChange:e})=>{const n=Nt(o=>o.type);return v.jsx(Zc,{value:n,className:t,onChange:e})},qc=a.memo(Jc),zs={root:"_root_1geql_1",label:"_label_1geql_32"},Xc=({label:t,className:e,labelProps:n={},...o})=>{const{className:s,...i}=n;return v.jsxs("label",{className:he(zs.label,s),...i,children:[v.jsx("input",{type:"radio",className:he(zs.root,e),...o}),t]})},wt=t=>v.jsx(Xc,{...t,type:"checkbox"}),Lo={root:"_root_1gffr_1",body:"_body_1gffr_7",legend:"_legend_1gffr_12"},Qs=({label:t,value:e,onChange:n,children:o,className:s,...i})=>v.jsxs("div",{className:he(Lo.root,s),...i,children:[t&&v.jsx("span",{className:Lo.legend,children:t}),v.jsx("div",{className:Lo.body,children:a.Children.map(o,r=>a.isValidElement(r)?a.cloneElement(r,{checked:!!(e!=null&&e[r.props.value]),onChange:l=>n==null?void 0:n({...e,[l.target.value]:l.target.checked})}):null)})]}),Rc=({className:t,onChange:e})=>{const{t:n}=Ge("send_filter"),o=Nt(s=>s.send);return v.jsxs(Qs,{className:t,value:o,label:n("title"),onChange:e,children:[v.jsx(wt,{name:"send",value:Ve.Return,label:n("sending_returns")}),v.jsx(wt,{name:"send",value:Ve.Shipping,label:n("shipping")}),v.jsx(wt,{name:"send",value:Ve.Payment,label:n("payment")})]})},_c=a.memo(Rc),$c=({className:t,onChange:e})=>{const{t:n}=Ge("receive_filter"),o=Nt(s=>s.receive);return v.jsxs(Qs,{value:o,label:n("title"),onChange:e,className:t,children:[v.jsx(wt,{name:"receive",value:Fe.DressingRoom,label:n("dressing_room")}),v.jsx(wt,{name:"receive",value:Fe.CheckOrder,label:n("check_order")}),v.jsx(wt,{name:"receive",value:Fe.PayByCash,label:n("pay_by_cash")})]})},eu=a.memo($c),tu=({className:t})=>{const e=Tt(r=>r.open),n=Nt(r=>r.setFilter),o=a.useCallback(r=>n({type:r}),[n]),s=a.useCallback(r=>n({send:r}),[n]),i=a.useCallback(r=>n({receive:r}),[n]);return v.jsxs("div",{className:he(ct.root,t,{[ct.open]:e}),children:[v.jsx(Wc,{}),v.jsxs("div",{className:ct.withRightPadding,children:[v.jsx(qc,{className:ct.typeFilter,onChange:o}),v.jsx(Co,{className:ct.separator}),v.jsx(eu,{onChange:i}),v.jsx(Co,{}),v.jsx(_c,{onChange:s}),v.jsx(Co,{})]})]})},nu=t=>ue.createElement("svg",{width:60,height:40,viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{d:"M0 0H52C56.4183 0 60 3.58172 60 8V32C60 36.4183 56.4183 40 52 40H0V0Z",fill:"#323232"}),ue.createElement("path",{d:"M32.093 10H45.907C47.0581 10 48 10.9092 48 12.0205V14.2431C48 15.0513 47.4767 16.0615 46.9535 16.5667L42.4535 20.4056C41.8256 20.9108 41.407 21.921 41.407 22.7292V27.0733C41.407 27.6795 40.9884 28.4877 40.4651 28.7908L39 29.7C37.6395 30.5082 35.7558 29.599 35.7558 27.9826V22.6282C35.7558 21.921 35.3372 21.0118 34.9186 20.5067L30.9419 16.4656C30.4186 15.9605 30 15.0513 30 14.4451V12.1215C30 10.9092 30.9419 10 32.093 10Z",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),At={root:"_root_n1n15_1",locationSelector:"_locationSelector_n1n15_7",filterIcon:"_filterIcon_n1n15_14",sidebarOpen:"_sidebarOpen_n1n15_22",details:"_details_n1n15_26"},ou=()=>{const t=Tt(o=>o.open),e=Tt(o=>o.toggle),n=()=>{e(!0)};return v.jsx("div",{className:he(At.filterIcon,{[At.sidebarOpen]:t}),onClick:n,children:v.jsx(nu,{})})};var Gs={},cn={},Ys={exports:{}},su="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iu=su,ru=iu;function Fs(){}function Vs(){}Vs.resetWarningCache=Fs;var au=function(){function t(o,s,i,r,l,c){if(c!==ru){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Vs,resetWarningCache:Fs};return n.PropTypes=n,n};Ys.exports=au();var lu=Ys.exports,un={},St={};Object.defineProperty(St,"__esModule",{value:!0}),St.loadGoogleMapScript=St.isBrowser=void 0;var Ws=typeof window<"u"&&window.document;St.isBrowser=Ws;var cu=function(e,n){if(!Ws||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var o=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(o&&o.length)return new Promise(function(r){if(typeof google<"u")return r();o[0].addEventListener("load",function(){return r()})});var s=new URL(n);s.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=s.toString(),new Promise(function(r){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=r,document.body.appendChild(i)})};St.loadGoogleMapScript=cu;var dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var uu="https://maps.googleapis.com/maps/api/js";dn.GOOGLE_MAP_SCRIPT_BASE_URL=uu;function fn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fn=function(n){return typeof n}:fn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fn(t)}Object.defineProperty(un,"__esModule",{value:!0}),un.default=mu;var Ie=fu(a),bo=St,du=dn;function Ks(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Ks=function(s){return s?n:e})(t)}function fu(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||fn(t)!=="object"&&typeof t!="function")return{default:t};var n=Ks(e);if(n&&n.has(t))return n.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var r=s?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function Zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,o)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(n),!0).forEach(function(o){pu(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function pu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gu(t,e){if(t==null)return{};var n=hu(t,e),o,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)o=i[s],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function hu(t,e){if(t==null)return{};var n={},o=Object.keys(t),s,i;for(i=0;i<o.length;i++)s=o[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function mu(t){var e=t.ref,n=t.onPlaceSelected,o=t.apiKey,s=t.libraries,i=s===void 0?"places":s,r=t.inputAutocompleteValue,l=r===void 0?"new-password":r,c=t.options;c=c===void 0?{}:c;var u=c.types,d=u===void 0?["(cities)"]:u,f=c.componentRestrictions,y=c.fields,E=y===void 0?["address_components","geometry.location","place_id","formatted_address"]:y,C=c.bounds,p=gu(c,["types","componentRestrictions","fields","bounds"]),w=t.googleMapsScriptBaseUrl,A=w===void 0?du.GOOGLE_MAP_SCRIPT_BASE_URL:w,b=t.language,m=(0,Ie.useRef)(null),O=(0,Ie.useRef)(null),h=(0,Ie.useRef)(null),g=(0,Ie.useRef)(null),D=b?"&language=".concat(b):"",L="".concat(A,"?libraries=").concat(i,"&key=").concat(o).concat(D),B=(0,Ie.useCallback)(function(){return(0,bo.loadGoogleMapScript)(A,L)},[A,L]);return(0,Ie.useEffect)(function(){var S=Js(Js({},p),{},{fields:E,types:d,bounds:C});if(f&&(S.componentRestrictions=f),!(h.current||!m.current||!bo.isBrowser)){e&&!e.current&&(e.current=m.current);var N=function(){var Y;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((Y=google.maps)!==null&&Y!==void 0&&Y.places))return console.error("Google maps places API must be loaded.");if(!m.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");h.current=new google.maps.places.Autocomplete(m.current,S),h.current&&(O.current=h.current.addListener("place_changed",function(){n&&h&&h.current&&n(h.current.getPlace(),m.current,h.current)}))};return o?B().then(function(){return N()}):N(),function(){return O.current?O.current.remove():void 0}}},[]),(0,Ie.useEffect)(function(){var S;!(Ie.default!==null&&Ie.default!==void 0&&(S=Ie.default.version)!==null&&S!==void 0&&S.startsWith("18"))&&bo.isBrowser&&window.MutationObserver&&m.current&&m.current instanceof HTMLInputElement&&(g.current=new MutationObserver(function(){g.current.disconnect(),m.current&&(m.current.autocomplete=l)}),g.current.observe(m.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[l]),(0,Ie.useEffect)(function(){h.current&&h.current.setFields(E)},[E]),(0,Ie.useEffect)(function(){h.current&&h.current.setBounds(C)},[C]),(0,Ie.useEffect)(function(){h.current&&h.current.setComponentRestrictions(f)},[f]),(0,Ie.useEffect)(function(){h.current&&h.current.setOptions(p)},[p]),{ref:m,autocompleteRef:h}}function pn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(t)}Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var wo=yu(a),Le=qs(lu),vu=qs(un);function qs(t){return t&&t.__esModule?t:{default:t}}function Xs(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Xs=function(s){return s?n:e})(t)}function yu(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||pn(t)!=="object"&&typeof t!="function")return{default:t};var n=Xs(e);if(n&&n.has(t))return n.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var r=s?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function gn(){return gn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gn.apply(this,arguments)}function Cu(t,e){if(t==null)return{};var n=Eu(t,e),o,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)o=i[s],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Eu(t,e){if(t==null)return{};var n={},o=Object.keys(t),s,i;for(i=0;i<o.length;i++)s=o[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Rs(t){var e=t.onPlaceSelected,n=t.apiKey,o=t.libraries,s=t.inputAutocompleteValue,i=t.options,r=t.googleMapsScriptBaseUrl,l=t.refProp,c=t.language,u=Cu(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),d=(0,vu.default)({ref:l,googleMapsScriptBaseUrl:r,onPlaceSelected:e,apiKey:n,libraries:o,inputAutocompleteValue:s,options:i,language:c}),f=d.ref;return wo.default.createElement("input",gn({ref:f},u))}Rs.propTypes={apiKey:Le.default.string,libraries:Le.default.arrayOf(Le.default.string),ref:Le.default.oneOfType([Le.default.func,Le.default.shape({current:Le.default.any})]),googleMapsScriptBaseUrl:Le.default.string,onPlaceSelected:Le.default.func,inputAutocompleteValue:Le.default.string,options:Le.default.shape({componentRestrictions:Le.default.object,bounds:Le.default.object,location:Le.default.object,offset:Le.default.number,origin:Le.default.object,radius:Le.default.number,sessionToken:Le.default.object,types:Le.default.arrayOf(Le.default.string)}),language:Le.default.string};var Lu=(0,wo.forwardRef)(function(t,e){return wo.default.createElement(Rs,gn({},t,{refProp:e}))});cn.default=Lu,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=o(cn),n=o(un);function o(s){return s&&s.__esModule?s:{default:s}}}(Gs);var _s=Gs;const bu=t=>ue.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z",fill:"currentcolor"})),Mt={root:"_root_1w54v_1",endAdornment:"_endAdornment_1w54v_6",input:"_input_1w54v_6",startAdornment:"_startAdornment_1w54v_9",label:"_label_1w54v_29",inputContainer:"_inputContainer_1w54v_35"},$s=a.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:o,...s},i)=>v.jsxs("label",{className:he(Mt.root,e),children:[t&&v.jsx("span",{className:Mt.label,children:t}),v.jsxs("div",{className:Mt.inputContainer,children:[n&&v.jsx("div",{className:Mt.startAdornment,children:n}),v.jsx("input",{ref:i,className:Mt.input,...s}),o&&v.jsx("div",{className:Mt.endAdornment,children:o})]})]})),wu=({className:t})=>{const{t:e}=Ge("location_selector"),{country:n}=Ye(),o=Pe(u=>u.setZoom),s=bt(u=>u.setPlace),i=[],r=n?{componentRestrictions:{country:n},types:i}:{types:i},l=u=>{o(rn),s(u)},{ref:c}=_s.usePlacesWidget({libraries:["places"],options:r,onPlaceSelected:l});return v.jsx($s,{ref:c,className:t,endAdornment:v.jsx(bu,{}),placeholder:e("placeholder")})},Au=({className:t})=>{if(Pe(n=>n.loaded))return v.jsx(wu,{className:t})},Su=a.memo(Au),Mu={location:null,hook:null},_e=nt()(t=>({...Mu,setSelectedPoint(e){t({location:e})},setSelectPointHook(e){t({hook:e})}})),ei=t=>ue.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.0035 28.0008V17.7646C31.0035 16.6603 30.3968 15.6453 29.4242 15.1223L22.4206 11.3567C21.5335 10.8798 20.4663 10.8798 19.5793 11.3567L12.5757 15.1223C11.603 15.6453 10.9963 16.6603 10.9963 17.7646V28.0008C10.9963 29.6576 12.3395 31.0008 13.9963 31.0008H19.311C19.3291 31.0012 19.3473 31.0014 19.3654 31.0014H22.634C22.6522 31.0014 22.6703 31.0012 22.6884 31.0008H28.0035C29.6604 31.0008 31.0035 29.6576 31.0035 28.0008ZM25.0841 29.0008H28.0035C28.5558 29.0008 29.0035 28.5531 29.0035 28.0008V17.7646C29.0035 17.3965 28.8013 17.0582 28.4771 16.8838L21.4735 13.1183C21.1778 12.9593 20.8221 12.9593 20.5264 13.1183L13.5228 16.8838C13.1986 17.0582 12.9963 17.3965 12.9963 17.7646V28.0008C12.9963 28.5531 13.4441 29.0008 13.9963 29.0008H16.9153C16.8826 28.8394 16.8654 28.6724 16.8654 28.5014V20.8949C16.8654 19.5142 17.9847 18.3949 19.3654 18.3949H22.634C24.0147 18.3949 25.134 19.5142 25.134 20.8949V28.5014C25.134 28.6724 25.1168 28.8394 25.0841 29.0008ZM22.6583 29.0008C22.9232 28.9881 23.134 28.7694 23.134 28.5014V20.8949C23.134 20.6188 22.9102 20.3949 22.634 20.3949H19.3654C19.0893 20.3949 18.8654 20.6188 18.8654 20.8949V28.5014C18.8654 28.7694 19.0763 28.9881 19.3411 29.0008H22.6583Z",fill:"currentcolor"}),ue.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),ti={root:"_root_9pchz_1",active:"_active_9pchz_13"},hn=({active:t,children:e,className:n,...o})=>v.jsx("div",{...o,className:he(ti.root,n,{[ti.active]:t}),children:e}),Ou={root:"_root_19qge_1"},ni=({className:t,...e})=>v.jsx("textarea",{...e,className:he(Ou.root,t)}),ku=(t,e)=>{let n={...t};switch(e.type){case"SET_COMMENT":n={...t,comment:e.payload};break;case"SET_DELIVERY_TIME":n={...t,delivery_time:e.payload};break;case"SET_APARTMENT_NUMBER":n={...t,apartment_number:e.payload};break}return n},xe={root:"_root_15fvl_1",submit:"_submit_15fvl_12",close:"_close_15fvl_16",title:"_title_15fvl_29",header:"_header_15fvl_42",content:"_content_15fvl_47",section:"_section_15fvl_81",chips:"_chips_15fvl_90",actions:"_actions_15fvl_95",commentSection:"_commentSection_15fvl_99",comment:"_comment_15fvl_99"},Pu=({onClose:t,onSubmit:e,location:n,className:o})=>{const{t:s}=Ge(["details_modal","courier_balloon","common"]),[i,r]=a.useReducer(ku,{...n,comment:"",delivery_time:"",apartment_number:""}),l=()=>{e==null||e(i)},c=y=>()=>{r({payload:y,type:"SET_DELIVERY_TIME"})},u=y=>{r({payload:y.target.value,type:"SET_APARTMENT_NUMBER"})},d=y=>{r({type:"SET_COMMENT",payload:y.target.value})},f=!!(i.delivery_time&&i.apartment_number);return v.jsxs("div",{className:he(xe.root,o),children:[v.jsxs("div",{className:xe.header,children:[v.jsx("div",{className:xe.close,onClick:t,children:v.jsx(Eo,{})}),v.jsxs("div",{className:xe.title,children:[v.jsx(ei,{}),v.jsx("span",{children:s("title",{ns:"courier_balloon"})})]})]}),v.jsxs("div",{className:xe.content,children:[v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("address"),":"]}),v.jsx("p",{children:n.address})]}),v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("delivery_time"),":"]}),v.jsxs("div",{className:xe.chips,children:[v.jsx(hn,{active:i.delivery_time==="8:00-13:00",onClick:c("8:00-13:00"),children:"8:00 - 13:00"}),v.jsx(hn,{active:i.delivery_time==="14:00-22:00",onClick:c("14:00-22:00"),children:"14:00 - 22:00"})]})]}),v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("apartment_number"),":"]}),v.jsx(ni,{rows:1,onBlur:u})]}),v.jsxs("section",{className:he(xe.section,xe.commentSection),children:[v.jsxs("label",{children:[s("comment"),":"]}),v.jsx(ni,{className:xe.comment,onBlur:d})]})]}),v.jsx("div",{className:xe.actions,children:v.jsx(He,{disabled:!f,variant:"primary",className:xe.submit,onClick:l,children:s("choose",{ns:"common"})})})]})},oi=t=>ue.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ue.createElement("path",{d:"M7.63362 25C7.33927 25 7.067 24.9259 6.81681 24.7778C6.56662 24.6296 6.36793 24.4296 6.22076 24.1778C6.07359 23.9259 6 23.6519 6 23.3556V18.6444C6 18.3407 6.07359 18.0667 6.22076 17.8222C6.36793 17.5704 6.56662 17.3704 6.81681 17.2222C7.067 17.0741 7.33927 17 7.63362 17H12.3137C12.6081 17 12.8767 17.0741 13.1195 17.2222C13.3697 17.3704 13.5684 17.5704 13.7155 17.8222C13.8701 18.0667 13.9473 18.3407 13.9473 18.6444V23.3556C13.9473 23.6519 13.8701 23.9259 13.7155 24.1778C13.5684 24.4296 13.3697 24.6296 13.1195 24.7778C12.8767 24.9259 12.6081 25 12.3137 25H7.63362ZM7.71089 23.2667H12.2144V18.7333H7.71089V23.2667Z",fill:"black"}),ue.createElement("path",{d:"M15.1629 25V17H16.929L19.6222 20.2333L22.3045 17H24.0816V25H22.3597V19.6333L19.6222 22.9222L16.8738 19.6444V25H15.1629Z",fill:"black"}),ue.createElement("path",{d:"M25.4032 25V17H27.1693L31.6176 22.3333V17H33.3505V25H31.5845L27.1141 19.6444V25H25.4032Z",fill:"black"}),ue.createElement("path",{d:"M34.3112 25V17H36V25H34.3112Z",fill:"black"}),ue.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),ke={root:"_root_5hr7z_1",submit:"_submit_5hr7z_12",close:"_close_5hr7z_16",title:"_title_5hr7z_29",header:"_header_5hr7z_42",content:"_content_5hr7z_47",section:"_section_5hr7z_81",chips:"_chips_5hr7z_90",services:"_services_5hr7z_95",images:"_images_5hr7z_101",image:"_image_5hr7z_101",actions:"_actions_5hr7z_143",scheduleItem:"_scheduleItem_5hr7z_147"},Iu=({onClose:t,onSubmit:e,location:n,className:o})=>{const{t:s}=Ge(["details_modal","common"]),i=()=>{e==null||e(n)};return v.jsxs("div",{className:he(ke.root,o),children:[v.jsxs("div",{className:ke.header,children:[v.jsx("div",{className:ke.close,onClick:t,children:v.jsx(Eo,{})}),v.jsxs("div",{className:ke.title,children:[v.jsx(oi,{}),v.jsx("span",{children:n.name})]})]}),v.jsxs("div",{className:ke.content,children:[v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("address"),":"]}),v.jsx("p",{children:n.location.full_address})]}),!!n.schedule.length&&v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("schedule"),":"]}),n.schedule.map((r,l)=>v.jsx("p",{className:ke.scheduleItem,children:r},l))]}),(n.pay_by_card||n.pay_by_card)&&v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("payment_method"),":"]}),v.jsxs("div",{className:ke.chips,children:[n.pay_by_cash&&v.jsx(hn,{children:s("pay_by_cash")}),n.pay_by_card&&v.jsx(hn,{children:s("pay_by_card")})]})]}),v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("services"),":"]}),v.jsxs("div",{className:ke.services,children:[n.is_pickup&&v.jsx("span",{children:s("is_pickup")}),n.is_delivery&&v.jsx("span",{children:s("is_delivery")}),n.is_dressing_room&&v.jsx("span",{children:s("is_dressing_room")}),n.is_check_order&&v.jsx("span",{children:s("is_check_order")})]})]}),v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("location"),":"]}),v.jsx("p",{children:n.location_name})]}),v.jsx("section",{className:ke.images,children:n.images.map(r=>v.jsx("img",{src:r,alt:n.name,className:ke.image},r))})]}),v.jsx("div",{className:ke.actions,children:v.jsx(He,{variant:"primary",className:ke.submit,onClick:i,children:s("choose",{ns:"common"})})})]})},xu=()=>{const{onPointClick:t}=Ye(),e=Pe(u=>u.detailsOpen),n=Pe(u=>u.setDetailsOpen),o=_e(u=>u.location),s=_e(u=>u.setSelectedPoint),i=Re(u=>u.courierPoint),r=Re(u=>u.setCourierPoint),l=a.useCallback(()=>{n(!1)},[n]),c=a.useCallback(u=>{t(u),n(!1),s(null),r(null)},[t,r,n,s]);return v.jsxs(v.Fragment,{children:[(i==null?void 0:i.address)&&e&&v.jsx(Pu,{location:i,className:At.details,onClose:l,onSubmit:c}),o&&e&&v.jsx(Iu,{location:o,className:At.details,onClose:l,onSubmit:c})]})},Du=({className:t,children:e})=>v.jsxs("div",{className:he(At.root,t),children:[v.jsx(Su,{className:At.locationSelector}),v.jsx(ou,{}),e,v.jsx(xu,{})]}),Bu=a.memo(Du),mn={root:"_root_132z0_1",open:"_open_132z0_10",overlay:"_overlay_132z0_15",container:"_container_132z0_23"},Tu=({open:t,children:e,className:n})=>v.jsxs("div",{className:he(mn.root,n,{[mn.open]:t}),children:[v.jsx("div",{className:mn.overlay}),v.jsx("div",{className:mn.container,children:e})]}),Ao={submit:"_submit_bqknu_1",container:"_container_bqknu_6",selector:"_selector_bqknu_13",label:"_label_bqknu_20"},Nu=()=>{const{t}=Ge(["location_aside","common"]),{country:e}=Ye(),n=a.useRef(null),o=Pe(d=>d.setZoom),s=bt(d=>d.setPlace),i=ln(d=>d.open),r=ln(d=>d.toggle),l=d=>{r(!1),o(Ic),s(d)},c=e?{componentRestrictions:{country:e}}:void 0,{ref:u}=_s.usePlacesWidget({libraries:["places"],options:c,onPlaceSelected:l,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});return v.jsx(Tu,{open:i,children:v.jsx("div",{ref:n,className:Ao.container,children:v.jsxs("div",{className:Ao.selector,children:[v.jsx("div",{className:Ao.label,children:t("choose_city")}),v.jsx($s,{ref:u,placeholder:t("placeholder")})]})})})},ju=a.memo(Nu);function si(t,e){return function(){return t.apply(e,arguments)}}const{toString:Uu}=Object.prototype,{getPrototypeOf:So}=Object,vn=(t=>e=>{const n=Uu.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),We=t=>(t=t.toLowerCase(),e=>vn(e)===t),yn=t=>e=>typeof e===t,{isArray:Ot}=Array,jt=yn("undefined");function Hu(t){return t!==null&&!jt(t)&&t.constructor!==null&&!jt(t.constructor)&&Ne(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ii=We("ArrayBuffer");function zu(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ii(t.buffer),e}const Qu=yn("string"),Ne=yn("function"),ri=yn("number"),Cn=t=>t!==null&&typeof t=="object",Gu=t=>t===!0||t===!1,En=t=>{if(vn(t)!=="object")return!1;const e=So(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yu=We("Date"),Fu=We("File"),Vu=We("Blob"),Wu=We("FileList"),Ku=t=>Cn(t)&&Ne(t.pipe),Zu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ne(t.append)&&((e=vn(t))==="formdata"||e==="object"&&Ne(t.toString)&&t.toString()==="[object FormData]"))},Ju=We("URLSearchParams"),qu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ut(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Ot(t))for(o=0,s=t.length;o<s;o++)e.call(null,t[o],o,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),r=i.length;let l;for(o=0;o<r;o++)l=i[o],e.call(null,t[l],l,t)}}function ai(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,s;for(;o-- >0;)if(s=n[o],e===s.toLowerCase())return s;return null}const li=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ci=t=>!jt(t)&&t!==li;function Mo(){const{caseless:t}=ci(this)&&this||{},e={},n=(o,s)=>{const i=t&&ai(e,s)||s;En(e[i])&&En(o)?e[i]=Mo(e[i],o):En(o)?e[i]=Mo({},o):Ot(o)?e[i]=o.slice():e[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ut(arguments[o],n);return e}const Xu=(t,e,n,{allOwnKeys:o}={})=>(Ut(e,(s,i)=>{n&&Ne(s)?t[i]=si(s,n):t[i]=s},{allOwnKeys:o}),t),Ru=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),_u=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},$u=(t,e,n,o)=>{let s,i,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)r=s[i],(!o||o(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&So(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ed=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},td=t=>{if(!t)return null;if(Ot(t))return t;let e=t.length;if(!ri(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},nd=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&So(Uint8Array)),od=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=o.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},sd=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},id=We("HTMLFormElement"),rd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),ui=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ad=We("RegExp"),di=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};Ut(n,(s,i)=>{e(s,i,t)!==!1&&(o[i]=s)}),Object.defineProperties(t,o)},ld=t=>{di(t,(e,n)=>{if(Ne(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Ne(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cd=(t,e)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Ot(t)?o(t):o(String(t).split(e)),n},ud=()=>{},dd=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Oo="abcdefghijklmnopqrstuvwxyz",fi="0123456789",pi={DIGIT:fi,ALPHA:Oo,ALPHA_DIGIT:Oo+Oo.toUpperCase()+fi},fd=(t=16,e=pi.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function pd(t){return!!(t&&Ne(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const gd=t=>{const e=new Array(10),n=(o,s)=>{if(Cn(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[s]=o;const i=Ot(o)?[]:{};return Ut(o,(r,l)=>{const c=n(r,s+1);!jt(c)&&(i[l]=c)}),e[s]=void 0,i}}return o};return n(t,0)},hd=We("AsyncFunction"),I={isArray:Ot,isArrayBuffer:ii,isBuffer:Hu,isFormData:Zu,isArrayBufferView:zu,isString:Qu,isNumber:ri,isBoolean:Gu,isObject:Cn,isPlainObject:En,isUndefined:jt,isDate:Yu,isFile:Fu,isBlob:Vu,isRegExp:ad,isFunction:Ne,isStream:Ku,isURLSearchParams:Ju,isTypedArray:nd,isFileList:Wu,forEach:Ut,merge:Mo,extend:Xu,trim:qu,stripBOM:Ru,inherits:_u,toFlatObject:$u,kindOf:vn,kindOfTest:We,endsWith:ed,toArray:td,forEachEntry:od,matchAll:sd,isHTMLForm:id,hasOwnProperty:ui,hasOwnProp:ui,reduceDescriptors:di,freezeMethods:ld,toObjectSet:cd,toCamelCase:rd,noop:ud,toFiniteNumber:dd,findKey:ai,global:li,isContextDefined:ci,ALPHABET:pi,generateString:fd,isSpecCompliantForm:pd,toJSONObject:gd,isAsyncFn:hd,isThenable:t=>t&&(Cn(t)||Ne(t))&&Ne(t.then)&&Ne(t.catch)};function le(t,e,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}I.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gi=le.prototype,hi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{hi[t]={value:t}}),Object.defineProperties(le,hi),Object.defineProperty(gi,"isAxiosError",{value:!0}),le.from=(t,e,n,o,s,i)=>{const r=Object.create(gi);return I.toFlatObject(t,r,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),le.call(r,t.message,e,n,o,s),r.cause=t,r.name=t.name,i&&Object.assign(r,i),r};const md=null;function ko(t){return I.isPlainObject(t)||I.isArray(t)}function mi(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function vi(t,e,n){return t?t.concat(e).map(function(s,i){return s=mi(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function vd(t){return I.isArray(t)&&!t.some(ko)}const yd=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Ln(t,e,n){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,w){return!I.isUndefined(w[p])});const o=n.metaTokens,s=n.visitor||d,i=n.dots,r=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(I.isDate(C))return C.toISOString();if(!c&&I.isBlob(C))throw new le("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(C)||I.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function d(C,p,w){let A=C;if(C&&!w&&typeof C=="object"){if(I.endsWith(p,"{}"))p=o?p:p.slice(0,-2),C=JSON.stringify(C);else if(I.isArray(C)&&vd(C)||(I.isFileList(C)||I.endsWith(p,"[]"))&&(A=I.toArray(C)))return p=mi(p),A.forEach(function(m,O){!(I.isUndefined(m)||m===null)&&e.append(r===!0?vi([p],O,i):r===null?p:p+"[]",u(m))}),!1}return ko(C)?!0:(e.append(vi(w,p,i),u(C)),!1)}const f=[],y=Object.assign(yd,{defaultVisitor:d,convertValue:u,isVisitable:ko});function E(C,p){if(!I.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(C),I.forEach(C,function(A,b){(!(I.isUndefined(A)||A===null)&&s.call(e,A,I.isString(b)?b.trim():b,p,y))===!0&&E(A,p?p.concat(b):[b])}),f.pop()}}if(!I.isObject(t))throw new TypeError("data must be an object");return E(t),e}function yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Po(t,e){this._pairs=[],t&&Ln(t,this,e)}const Ci=Po.prototype;Ci.append=function(e,n){this._pairs.push([e,n])},Ci.toString=function(e){const n=e?function(o){return e.call(this,o,yi)}:yi;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Cd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ei(t,e,n){if(!e)return t;const o=n&&n.encode||Cd,s=n&&n.serialize;let i;if(s?i=s(e,n):i=I.isURLSearchParams(e)?e.toString():new Po(e,n).toString(o),i){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ed{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(o){o!==null&&e(o)})}}const Li=Ed,bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ld=typeof URLSearchParams<"u"?URLSearchParams:Po,bd=typeof FormData<"u"?FormData:null,wd=typeof Blob<"u"?Blob:null,Ad=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Sd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ke={isBrowser:!0,classes:{URLSearchParams:Ld,FormData:bd,Blob:wd},isStandardBrowserEnv:Ad,isStandardBrowserWebWorkerEnv:Sd,protocols:["http","https","file","blob","url","data"]};function Md(t,e){return Ln(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return Ke.isNode&&I.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Od(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kd(t){const e={},n=Object.keys(t);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],e[i]=t[i];return e}function wi(t){function e(n,o,s,i){let r=n[i++];const l=Number.isFinite(+r),c=i>=n.length;return r=!r&&I.isArray(s)?s.length:r,c?(I.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!l):((!s[r]||!I.isObject(s[r]))&&(s[r]=[]),e(n,o,s[r],i)&&I.isArray(s[r])&&(s[r]=kd(s[r])),!l)}if(I.isFormData(t)&&I.isFunction(t.entries)){const n={};return I.forEachEntry(t,(o,s)=>{e(Od(o),s,n,0)}),n}return null}const Pd={"Content-Type":void 0};function Id(t,e,n){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(t)}const bn={transitional:bi,adapter:["xhr","http"],transformRequest:[function(e,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=I.isObject(e);if(i&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return s&&s?JSON.stringify(wi(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Md(e,this.formSerializer).toString();if((l=I.isFileList(e))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ln(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Id(e)):e}],transformResponse:[function(e){const n=this.transitional||bn.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&I.isString(e)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(r)throw l.name==="SyntaxError"?le.from(l,le.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){bn.headers[e]={}}),I.forEach(["post","put","patch"],function(e){bn.headers[e]=I.merge(Pd)});const Io=bn,xd=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dd=t=>{const e={};let n,o,s;return t&&t.split(`
|
|
21
|
+
*/var nn=a,hc=gc;function mc(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var vc=typeof Object.is=="function"?Object.is:mc,yc=hc.useSyncExternalStore,Cc=nn.useRef,Ec=nn.useEffect,Lc=nn.useMemo,bc=nn.useDebugValue;Ps.useSyncExternalStoreWithSelector=function(t,e,n,o,s){var i=Cc(null);if(i.current===null){var r={hasValue:!1,value:null};i.current=r}else r=i.current;i=Lc(function(){function c(E){if(!u){if(u=!0,d=E,E=o(E),s!==void 0&&r.hasValue){var C=r.value;if(s(C,E))return f=C}return f=E}if(C=f,vc(d,E))return C;var p=o(E);return s!==void 0&&s(C,p)?C:(d=E,f=p)}var u=!1,d,f,y=n===void 0?null:n;return[function(){return c(e())},y===null?void 0:function(){return c(y())}]},[e,n,o,s]);var l=yc(t,i[0],i[1]);return Ec(function(){r.hasValue=!0,r.value=l},[l]),bc(l),l},ks.exports=Ps;var wc=ks.exports;const Ac=$t(wc),{useSyncExternalStoreWithSelector:Sc}=Ac;function Mc(t,e=t.getState,n){const o=Sc(t.subscribe,t.getState,t.getServerState||t.getState,e,n);return a.useDebugValue(o),o}const Ds=t=>{const e=typeof t=="function"?sc(t):t,n=(o,s)=>Mc(e,o,s);return Object.assign(n,e),n},nt=t=>t?Ds(t):Ds;let on;const Oc=new Uint8Array(16);function kc(){if(!on&&(on=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!on))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return on(Oc)}const Oe=[];for(let t=0;t<256;++t)Oe.push((t+256).toString(16).slice(1));function Pc(t,e=0){return(Oe[t[e+0]]+Oe[t[e+1]]+Oe[t[e+2]]+Oe[t[e+3]]+"-"+Oe[t[e+4]]+Oe[t[e+5]]+"-"+Oe[t[e+6]]+Oe[t[e+7]]+"-"+Oe[t[e+8]]+Oe[t[e+9]]+"-"+Oe[t[e+10]]+Oe[t[e+11]]+Oe[t[e+12]]+Oe[t[e+13]]+Oe[t[e+14]]+Oe[t[e+15]]).toLowerCase()}const Bs={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Ts(t,e,n){if(Bs.randomUUID&&!e&&!t)return Bs.randomUUID();t=t||{};const o=t.random||(t.rng||kc)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,e){n=n||0;for(let s=0;s<16;++s)e[n+s]=o[s];return e}return Pc(o)}const mo=[55.75,37.57],vo=Ts(),sn=Ts(),Xe=[48,66],Lt=[58,80],Ns=10,rn=20,Ic=10,xc={mode:"self_pickup",bounds:null,loaded:!1,zoom:rn,detailsOpen:!1},Pe=nt()(t=>({...xc,setLoaded(e){t({loaded:e})},setMode(e){t({mode:e})},setBounds(e){t({bounds:e})},setZoom(e){t({zoom:e})},setDetailsOpen(e){t({detailsOpen:e})}})),js={locale:"en",map:{provider:"google"}},Us=a.createContext(js),Ye=()=>a.useContext(Us),Dc={courierPoint:null},Re=nt()(t=>({...Dc,setCourierPoint(e){t({courierPoint:e})}})),an={root:"_root_1wpev_1",primary:"_primary_1wpev_20",secondary:"_secondary_1wpev_33"},He=({className:t,variant:e="primary",...n})=>{if(n.as==="link"){const{as:i,...r}=n;return v.jsx("a",{className:he(an.root,t,an[e]),...r})}const{as:o,...s}=n;return v.jsx("button",{className:he(an.root,t,an[e]),...s})};He.defaultProps={as:"button"};const Bc=t=>ue.createElement("svg",{width:123,height:32,viewBox:"0 0 123 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{d:"M6.69783 32C5.49102 32 4.3747 31.7038 3.34892 31.1112C2.32312 30.5186 1.50852 29.7186 0.905114 28.7112C0.301705 27.7038 0 26.6074 0 25.4222V6.57778C0 5.36296 0.301705 4.26666 0.905114 3.28888C1.50852 2.28148 2.32312 1.48148 3.34892 0.888888C4.3747 0.296296 5.49102 0 6.69783 0H25.8862C27.093 0 28.1942 0.296296 29.1899 0.888888C30.2156 1.48148 31.0302 2.28148 31.6338 3.28888C32.2673 4.26666 32.5841 5.36296 32.5841 6.57778V25.4222C32.5841 26.6074 32.2673 27.7038 31.6338 28.7112C31.0302 29.7186 30.2156 30.5186 29.1899 31.1112C28.1942 31.7038 27.093 32 25.8862 32H6.69783ZM7.01462 25.0666H25.4789V6.93334H7.01462V25.0666Z",fill:"black"}),ue.createElement("path",{d:"M37.5678 32V0H44.8087L55.851 12.9333L66.8482 0H74.1345V32H67.0745V10.5333L55.851 23.6888L44.5824 10.5778V32H37.5678Z",fill:"black"}),ue.createElement("path",{d:"M79.5533 32V0H86.7941L105.032 21.3334V0H112.137V32H104.896L86.5679 10.5778V32H79.5533Z",fill:"black"}),ue.createElement("path",{d:"M116.076 32V0H123V32H116.076Z",fill:"black"})),Bt={root:"_root_aqm1r_1",nav:"_nav_aqm1r_14",navItem:"_navItem_aqm1r_20",logo:"_logo_aqm1r_40"},Tc=()=>{const{hideLogo:t}=Ye();return t?null:v.jsx("div",{className:Bt.logo,children:v.jsx(Bc,{})})},Nc=t=>ue.createElement("svg",{width:24,height:28,viewBox:"0 0 24 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 11.7765C24 4.05176 17.6057 0 12 0C6.39429 0 0 4.05176 0 11.7765C0 16.9153 3.99429 22.3341 12 28C20.0057 22.3341 24 16.9153 24 11.7765ZM12.0001 16C14.2093 16 16.0001 14.2091 16.0001 12C16.0001 9.79086 14.2093 8 12.0001 8C9.79098 8 8.00012 9.79086 8.00012 12C8.00012 14.2091 9.79098 16 12.0001 16Z",fill:"#1760EE"})),jc={open:!1},ln=nt(t=>({...jc,toggle(e){t(n=>({open:e??!n.open}))}})),Uc={place:null},bt=nt(t=>({...Uc,setPlace(e){t({place:e})}})),yo={root:"_root_7i42e_1",text:"_text_7i42e_8"},Hc=({className:t})=>{var r;const{t:e}=Ge("current_location"),n=bt(l=>l.place),o=ln(l=>l.toggle),s=()=>{o(!0)},i=(r=n==null?void 0:n.address_components)==null?void 0:r.find(l=>l.types.includes("locality"));return v.jsxs("div",{className:he(yo.root,t),onClick:s,children:[v.jsx("div",{className:yo.icon,children:v.jsx(Nc,{})}),v.jsxs("span",{className:yo.text,children:[!n&&e("choose_from_map"),n&&`${(i==null?void 0:i.long_name)??n.formatted_address}`]})]})},zc=({className:t})=>{const{t:e}=Ge("header"),{disableCourierDelivery:n}=Ye(),o=Re(f=>f.courierPoint),s=Re(f=>f.setCourierPoint),i=Pe(f=>f.mode),r=Pe(f=>f.setMode);a.useEffect(()=>{r(o?"courier_delivery":"self_pickup")},[o,r]);const l=()=>{s(null),r("self_pickup")},c=()=>{s(null),r("courier_delivery")},u=i==="self_pickup",d=i==="courier_delivery";return v.jsxs("div",{className:he(Bt.root,t),children:[v.jsx(Tc,{}),v.jsxs("nav",{className:Bt.nav,children:[!n&&v.jsx(He,{as:"link",className:Bt.navItem,variant:u?"primary":"secondary",onClick:l,children:e("self_pickup")}),!n&&v.jsx(He,{as:"link",className:Bt.navItem,variant:d?"primary":"secondary",onClick:c,children:e("courier_delivery")}),v.jsx(Hc,{})]})]})},Qc=a.memo(zc),Gc={open:!1},Tt=nt(t=>({...Gc,toggle(e){t(n=>({open:e??!n.open}))}})),Hs={root:"_root_albkn_1",sidebarOpen:"_sidebarOpen_albkn_11"},Yc=({children:t})=>{const e=Tt(n=>n.open);return v.jsx("div",{className:he(Hs.root,{[Hs.sidebarOpen]:e}),children:t})};var ot=(t=>(t[t.All=0]="All",t[t.PickPoint=20]="PickPoint",t[t.PostOffice=30]="PostOffice",t))(ot||{}),Fe=(t=>(t[t.PayByCash=0]="PayByCash",t[t.DressingRoom=1]="DressingRoom",t[t.CheckOrder=2]="CheckOrder",t))(Fe||{}),Ve=(t=>(t[t.Return=0]="Return",t[t.Payment=1]="Payment",t[t.Shipping=2]="Shipping",t))(Ve||{});const Fc={query:"",type:ot.All,hours:["08:00","22:00"],send:{[Ve.Return]:!1,[Ve.Payment]:!1,[Ve.Shipping]:!1},receive:{[Fe.PayByCash]:!1,[Fe.CheckOrder]:!1,[Fe.DressingRoom]:!1}},Nt=nt(t=>({...Fc,setFilter(e){t(e)}})),Vc={root:"_root_e4qd2_1"},Co=({className:t,...e})=>v.jsx("hr",{className:he(Vc.root,t),...e}),Eo=t=>ue.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("g",{clipPath:"url(#clip0_422_11470)"},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0712 3.07116C16.583 2.58301 15.7916 2.58301 15.3034 3.07116L10 8.37456L4.69661 3.07116C4.20845 2.583 3.417 2.583 2.92884 3.07116C2.44069 3.55931 2.44069 4.35077 2.92884 4.83893L8.23224 10.1423L2.92903 15.4455C2.44087 15.9337 2.44087 16.7251 2.92903 17.2133C3.41718 17.7015 4.20864 17.7015 4.69679 17.2133L10 11.9101L15.3032 17.2133C15.7914 17.7015 16.5828 17.7015 17.071 17.2133C17.5591 16.7251 17.5591 15.9337 17.071 15.4455L11.7678 10.1423L17.0712 4.83893C17.5593 4.35078 17.5593 3.55932 17.0712 3.07116Z",fill:"currentcolor"})),ue.createElement("defs",null,ue.createElement("clipPath",{id:"clip0_422_11470"},ue.createElement("rect",{width:20.0004,height:20,fill:"white"})))),ct={root:"_root_1dbfv_1",open:"_open_1dbfv_7",header:"_header_1dbfv_16",closeIcon:"_closeIcon_1dbfv_28",typeFilter:"_typeFilter_1dbfv_32",separator:"_separator_1dbfv_36",withRightPadding:"_withRightPadding_1dbfv_40"},Wc=()=>{const t=Tt(n=>n.toggle),e=()=>{t(!1)};return v.jsx("div",{className:ct.header,children:v.jsx("div",{className:ct.closeIcon,onClick:e,children:v.jsx(Eo,{})})})},Kc={root:"_root_qi1eq_1"},Zc=({value:t,onChange:e,className:n})=>{const{t:o}=Ge("type_filter"),s=i=>()=>e==null?void 0:e(i);return v.jsxs("div",{className:he(Kc.root,n),children:[v.jsx(He,{variant:t===ot.All?"primary":"secondary",onClick:s(ot.All),children:o("all")}),v.jsx(He,{variant:t===ot.PostOffice?"primary":"secondary",onClick:s(ot.PostOffice),children:o("post_office")}),v.jsx(He,{variant:t===ot.PickPoint?"primary":"secondary",onClick:s(ot.PickPoint),children:o("pick_point")})]})},Jc=({className:t,onChange:e})=>{const n=Nt(o=>o.type);return v.jsx(Zc,{value:n,className:t,onChange:e})},qc=a.memo(Jc),zs={root:"_root_1geql_1",label:"_label_1geql_32"},Xc=({label:t,className:e,labelProps:n={},...o})=>{const{className:s,...i}=n;return v.jsxs("label",{className:he(zs.label,s),...i,children:[v.jsx("input",{type:"radio",className:he(zs.root,e),...o}),t]})},wt=t=>v.jsx(Xc,{...t,type:"checkbox"}),Lo={root:"_root_1gffr_1",body:"_body_1gffr_7",legend:"_legend_1gffr_12"},Qs=({label:t,value:e,onChange:n,children:o,className:s,...i})=>v.jsxs("div",{className:he(Lo.root,s),...i,children:[t&&v.jsx("span",{className:Lo.legend,children:t}),v.jsx("div",{className:Lo.body,children:a.Children.map(o,r=>a.isValidElement(r)?a.cloneElement(r,{checked:!!(e!=null&&e[r.props.value]),onChange:l=>n==null?void 0:n({...e,[l.target.value]:l.target.checked})}):null)})]}),Rc=({className:t,onChange:e})=>{const{t:n}=Ge("send_filter"),o=Nt(s=>s.send);return v.jsxs(Qs,{className:t,value:o,label:n("title"),onChange:e,children:[v.jsx(wt,{name:"send",value:Ve.Return,label:n("sending_returns")}),v.jsx(wt,{name:"send",value:Ve.Shipping,label:n("shipping")}),v.jsx(wt,{name:"send",value:Ve.Payment,label:n("payment")})]})},_c=a.memo(Rc),$c=({className:t,onChange:e})=>{const{t:n}=Ge("receive_filter"),o=Nt(s=>s.receive);return v.jsxs(Qs,{value:o,label:n("title"),onChange:e,className:t,children:[v.jsx(wt,{name:"receive",value:Fe.DressingRoom,label:n("dressing_room")}),v.jsx(wt,{name:"receive",value:Fe.CheckOrder,label:n("check_order")}),v.jsx(wt,{name:"receive",value:Fe.PayByCash,label:n("pay_by_cash")})]})},eu=a.memo($c),tu=({className:t})=>{const e=Tt(r=>r.open),n=Nt(r=>r.setFilter),o=a.useCallback(r=>n({type:r}),[n]),s=a.useCallback(r=>n({send:r}),[n]),i=a.useCallback(r=>n({receive:r}),[n]);return v.jsxs("div",{className:he(ct.root,t,{[ct.open]:e}),children:[v.jsx(Wc,{}),v.jsxs("div",{className:ct.withRightPadding,children:[v.jsx(qc,{className:ct.typeFilter,onChange:o}),v.jsx(Co,{className:ct.separator}),v.jsx(eu,{onChange:i}),v.jsx(Co,{}),v.jsx(_c,{onChange:s}),v.jsx(Co,{})]})]})},nu=t=>ue.createElement("svg",{width:60,height:40,viewBox:"0 0 60 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{d:"M0 0H52C56.4183 0 60 3.58172 60 8V32C60 36.4183 56.4183 40 52 40H0V0Z",fill:"#323232"}),ue.createElement("path",{d:"M32.093 10H45.907C47.0581 10 48 10.9092 48 12.0205V14.2431C48 15.0513 47.4767 16.0615 46.9535 16.5667L42.4535 20.4056C41.8256 20.9108 41.407 21.921 41.407 22.7292V27.0733C41.407 27.6795 40.9884 28.4877 40.4651 28.7908L39 29.7C37.6395 30.5082 35.7558 29.599 35.7558 27.9826V22.6282C35.7558 21.921 35.3372 21.0118 34.9186 20.5067L30.9419 16.4656C30.4186 15.9605 30 15.0513 30 14.4451V12.1215C30 10.9092 30.9419 10 32.093 10Z",stroke:"white",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"})),At={root:"_root_n1n15_1",locationSelector:"_locationSelector_n1n15_7",filterIcon:"_filterIcon_n1n15_14",sidebarOpen:"_sidebarOpen_n1n15_22",details:"_details_n1n15_26"},ou=()=>{const t=Tt(o=>o.open),e=Tt(o=>o.toggle),n=()=>{e(!0)};return v.jsx("div",{className:he(At.filterIcon,{[At.sidebarOpen]:t}),onClick:n,children:v.jsx(nu,{})})};var Gs={},cn={},Ys={exports:{}},su="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iu=su,ru=iu;function Fs(){}function Vs(){}Vs.resetWarningCache=Fs;var au=function(){function t(o,s,i,r,l,c){if(c!==ru){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Vs,resetWarningCache:Fs};return n.PropTypes=n,n};Ys.exports=au();var lu=Ys.exports,un={},St={};Object.defineProperty(St,"__esModule",{value:!0}),St.loadGoogleMapScript=St.isBrowser=void 0;var Ws=typeof window<"u"&&window.document;St.isBrowser=Ws;var cu=function(e,n){if(!Ws||typeof google<"u"&&google.maps&&google.maps.api)return Promise.resolve();var o=document.querySelectorAll('script[src*="'.concat(e,'"]'));if(o&&o.length)return new Promise(function(r){if(typeof google<"u")return r();o[0].addEventListener("load",function(){return r()})});var s=new URL(n);s.searchParams.set("callback","__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__");var i=document.createElement("script");return i.src=s.toString(),new Promise(function(r){window.__REACT_GOOGLE_AUTOCOMPLETE_CALLBACK__=r,document.body.appendChild(i)})};St.loadGoogleMapScript=cu;var dn={};Object.defineProperty(dn,"__esModule",{value:!0}),dn.GOOGLE_MAP_SCRIPT_BASE_URL=void 0;var uu="https://maps.googleapis.com/maps/api/js";dn.GOOGLE_MAP_SCRIPT_BASE_URL=uu;function fn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?fn=function(n){return typeof n}:fn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fn(t)}Object.defineProperty(un,"__esModule",{value:!0}),un.default=mu;var Ie=fu(a),bo=St,du=dn;function Ks(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Ks=function(s){return s?n:e})(t)}function fu(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||fn(t)!=="object"&&typeof t!="function")return{default:t};var n=Ks(e);if(n&&n.has(t))return n.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var r=s?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function Zs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),n.push.apply(n,o)}return n}function Js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(n),!0).forEach(function(o){pu(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function pu(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gu(t,e){if(t==null)return{};var n=hu(t,e),o,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)o=i[s],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function hu(t,e){if(t==null)return{};var n={},o=Object.keys(t),s,i;for(i=0;i<o.length;i++)s=o[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function mu(t){var e=t.ref,n=t.onPlaceSelected,o=t.apiKey,s=t.libraries,i=s===void 0?"places":s,r=t.inputAutocompleteValue,l=r===void 0?"new-password":r,c=t.options;c=c===void 0?{}:c;var u=c.types,d=u===void 0?["(cities)"]:u,f=c.componentRestrictions,y=c.fields,E=y===void 0?["address_components","geometry.location","place_id","formatted_address"]:y,C=c.bounds,p=gu(c,["types","componentRestrictions","fields","bounds"]),w=t.googleMapsScriptBaseUrl,A=w===void 0?du.GOOGLE_MAP_SCRIPT_BASE_URL:w,b=t.language,m=(0,Ie.useRef)(null),O=(0,Ie.useRef)(null),h=(0,Ie.useRef)(null),g=(0,Ie.useRef)(null),D=b?"&language=".concat(b):"",L="".concat(A,"?libraries=").concat(i,"&key=").concat(o).concat(D),B=(0,Ie.useCallback)(function(){return(0,bo.loadGoogleMapScript)(A,L)},[A,L]);return(0,Ie.useEffect)(function(){var S=Js(Js({},p),{},{fields:E,types:d,bounds:C});if(f&&(S.componentRestrictions=f),!(h.current||!m.current||!bo.isBrowser)){e&&!e.current&&(e.current=m.current);var N=function(){var Y;if(typeof google>"u")return console.error("Google has not been found. Make sure your provide apiKey prop.");if(!((Y=google.maps)!==null&&Y!==void 0&&Y.places))return console.error("Google maps places API must be loaded.");if(!m.current instanceof HTMLInputElement)return console.error("Input ref must be HTMLInputElement.");h.current=new google.maps.places.Autocomplete(m.current,S),h.current&&(O.current=h.current.addListener("place_changed",function(){n&&h&&h.current&&n(h.current.getPlace(),m.current,h.current)}))};return o?B().then(function(){return N()}):N(),function(){return O.current?O.current.remove():void 0}}},[]),(0,Ie.useEffect)(function(){var S;!(Ie.default!==null&&Ie.default!==void 0&&(S=Ie.default.version)!==null&&S!==void 0&&S.startsWith("18"))&&bo.isBrowser&&window.MutationObserver&&m.current&&m.current instanceof HTMLInputElement&&(g.current=new MutationObserver(function(){g.current.disconnect(),m.current&&(m.current.autocomplete=l)}),g.current.observe(m.current,{attributes:!0,attributeFilter:["autocomplete"]}))},[l]),(0,Ie.useEffect)(function(){h.current&&h.current.setFields(E)},[E]),(0,Ie.useEffect)(function(){h.current&&h.current.setBounds(C)},[C]),(0,Ie.useEffect)(function(){h.current&&h.current.setComponentRestrictions(f)},[f]),(0,Ie.useEffect)(function(){h.current&&h.current.setOptions(p)},[p]),{ref:m,autocompleteRef:h}}function pn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pn=function(n){return typeof n}:pn=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},pn(t)}Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=void 0;var wo=yu(a),Le=qs(lu),vu=qs(un);function qs(t){return t&&t.__esModule?t:{default:t}}function Xs(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,n=new WeakMap;return(Xs=function(s){return s?n:e})(t)}function yu(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||pn(t)!=="object"&&typeof t!="function")return{default:t};var n=Xs(e);if(n&&n.has(t))return n.get(t);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var r=s?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,n&&n.set(t,o),o}function gn(){return gn=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},gn.apply(this,arguments)}function Cu(t,e){if(t==null)return{};var n=Eu(t,e),o,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)o=i[s],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}function Eu(t,e){if(t==null)return{};var n={},o=Object.keys(t),s,i;for(i=0;i<o.length;i++)s=o[i],!(e.indexOf(s)>=0)&&(n[s]=t[s]);return n}function Rs(t){var e=t.onPlaceSelected,n=t.apiKey,o=t.libraries,s=t.inputAutocompleteValue,i=t.options,r=t.googleMapsScriptBaseUrl,l=t.refProp,c=t.language,u=Cu(t,["onPlaceSelected","apiKey","libraries","inputAutocompleteValue","options","googleMapsScriptBaseUrl","refProp","language"]),d=(0,vu.default)({ref:l,googleMapsScriptBaseUrl:r,onPlaceSelected:e,apiKey:n,libraries:o,inputAutocompleteValue:s,options:i,language:c}),f=d.ref;return wo.default.createElement("input",gn({ref:f},u))}Rs.propTypes={apiKey:Le.default.string,libraries:Le.default.arrayOf(Le.default.string),ref:Le.default.oneOfType([Le.default.func,Le.default.shape({current:Le.default.any})]),googleMapsScriptBaseUrl:Le.default.string,onPlaceSelected:Le.default.func,inputAutocompleteValue:Le.default.string,options:Le.default.shape({componentRestrictions:Le.default.object,bounds:Le.default.object,location:Le.default.object,offset:Le.default.number,origin:Le.default.object,radius:Le.default.number,sessionToken:Le.default.object,types:Le.default.arrayOf(Le.default.string)}),language:Le.default.string};var Lu=(0,wo.forwardRef)(function(t,e){return wo.default.createElement(Rs,gn({},t,{refProp:e}))});cn.default=Lu,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"usePlacesWidget",{enumerable:!0,get:function(){return n.default}});var e=o(cn),n=o(un);function o(s){return s&&s.__esModule?s:{default:s}}}(Gs);var _s=Gs;const bu=t=>ue.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.6174 16.0317C13.0777 17.2635 11.1246 18 8.99951 18C4.02895 18 -0.000488281 13.9706 -0.000488281 9C-0.000488281 4.02944 4.02895 0 8.99951 0C13.9701 0 17.9995 4.02944 17.9995 9C17.9995 11.1249 17.2631 13.0778 16.0316 14.6175L19.707 18.2929C20.0975 18.6834 20.0975 19.3166 19.707 19.7071C19.3165 20.0977 18.6833 20.0977 18.2928 19.7071L14.6174 16.0317ZM1.99951 9C1.99951 5.13401 5.13352 2 8.99951 2C12.8655 2 15.9995 5.13401 15.9995 9C15.9995 10.8866 15.2532 12.5988 14.0397 13.8577C14.006 13.8836 13.9737 13.9121 13.9428 13.9429C13.9119 13.9738 13.8835 14.0062 13.8575 14.0399C12.5986 15.2535 10.8863 16 8.99951 16C5.13352 16 1.99951 12.866 1.99951 9Z",fill:"currentcolor"})),Mt={root:"_root_1w54v_1",endAdornment:"_endAdornment_1w54v_6",input:"_input_1w54v_6",startAdornment:"_startAdornment_1w54v_9",label:"_label_1w54v_29",inputContainer:"_inputContainer_1w54v_35"},$s=a.forwardRef(({label:t,className:e,startAdornment:n,endAdornment:o,...s},i)=>v.jsxs("label",{className:he(Mt.root,e),children:[t&&v.jsx("span",{className:Mt.label,children:t}),v.jsxs("div",{className:Mt.inputContainer,children:[n&&v.jsx("div",{className:Mt.startAdornment,children:n}),v.jsx("input",{ref:i,className:Mt.input,...s}),o&&v.jsx("div",{className:Mt.endAdornment,children:o})]})]})),wu=({className:t})=>{const{t:e}=Ge("location_selector"),{country:n}=Ye(),o=Pe(u=>u.setZoom),s=bt(u=>u.setPlace),i=[],r=n?{componentRestrictions:{country:n},types:i}:{types:i},l=u=>{o(rn),s(u)},{ref:c}=_s.usePlacesWidget({libraries:["places"],options:r,onPlaceSelected:l});return v.jsx($s,{ref:c,className:t,endAdornment:v.jsx(bu,{}),placeholder:e("placeholder")})},Au=({className:t})=>Pe(n=>n.loaded)?v.jsx(wu,{className:t}):null,Su=a.memo(Au),Mu={location:null,hook:null},_e=nt()(t=>({...Mu,setSelectedPoint(e){t({location:e})},setSelectPointHook(e){t({hook:e})}})),ei=t=>ue.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ue.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.0035 28.0008V17.7646C31.0035 16.6603 30.3968 15.6453 29.4242 15.1223L22.4206 11.3567C21.5335 10.8798 20.4663 10.8798 19.5793 11.3567L12.5757 15.1223C11.603 15.6453 10.9963 16.6603 10.9963 17.7646V28.0008C10.9963 29.6576 12.3395 31.0008 13.9963 31.0008H19.311C19.3291 31.0012 19.3473 31.0014 19.3654 31.0014H22.634C22.6522 31.0014 22.6703 31.0012 22.6884 31.0008H28.0035C29.6604 31.0008 31.0035 29.6576 31.0035 28.0008ZM25.0841 29.0008H28.0035C28.5558 29.0008 29.0035 28.5531 29.0035 28.0008V17.7646C29.0035 17.3965 28.8013 17.0582 28.4771 16.8838L21.4735 13.1183C21.1778 12.9593 20.8221 12.9593 20.5264 13.1183L13.5228 16.8838C13.1986 17.0582 12.9963 17.3965 12.9963 17.7646V28.0008C12.9963 28.5531 13.4441 29.0008 13.9963 29.0008H16.9153C16.8826 28.8394 16.8654 28.6724 16.8654 28.5014V20.8949C16.8654 19.5142 17.9847 18.3949 19.3654 18.3949H22.634C24.0147 18.3949 25.134 19.5142 25.134 20.8949V28.5014C25.134 28.6724 25.1168 28.8394 25.0841 29.0008ZM22.6583 29.0008C22.9232 28.9881 23.134 28.7694 23.134 28.5014V20.8949C23.134 20.6188 22.9102 20.3949 22.634 20.3949H19.3654C19.0893 20.3949 18.8654 20.6188 18.8654 20.8949V28.5014C18.8654 28.7694 19.0763 28.9881 19.3411 29.0008H22.6583Z",fill:"currentcolor"}),ue.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),ti={root:"_root_9pchz_1",active:"_active_9pchz_13"},hn=({active:t,children:e,className:n,...o})=>v.jsx("div",{...o,className:he(ti.root,n,{[ti.active]:t}),children:e}),Ou={root:"_root_19qge_1"},ni=({className:t,...e})=>v.jsx("textarea",{...e,className:he(Ou.root,t)}),ku=(t,e)=>{let n={...t};switch(e.type){case"SET_COMMENT":n={...t,comment:e.payload};break;case"SET_DELIVERY_TIME":n={...t,delivery_time:e.payload};break;case"SET_APARTMENT_NUMBER":n={...t,apartment_number:e.payload};break}return n},xe={root:"_root_15fvl_1",submit:"_submit_15fvl_12",close:"_close_15fvl_16",title:"_title_15fvl_29",header:"_header_15fvl_42",content:"_content_15fvl_47",section:"_section_15fvl_81",chips:"_chips_15fvl_90",actions:"_actions_15fvl_95",commentSection:"_commentSection_15fvl_99",comment:"_comment_15fvl_99"},Pu=({onClose:t,onSubmit:e,location:n,className:o})=>{const{t:s}=Ge(["details_modal","courier_balloon","common"]),[i,r]=a.useReducer(ku,{...n,comment:"",delivery_time:"",apartment_number:""}),l=()=>{e==null||e(i)},c=y=>()=>{r({payload:y,type:"SET_DELIVERY_TIME"})},u=y=>{r({payload:y.target.value,type:"SET_APARTMENT_NUMBER"})},d=y=>{r({type:"SET_COMMENT",payload:y.target.value})},f=!!(i.delivery_time&&i.apartment_number);return v.jsxs("div",{className:he(xe.root,o),children:[v.jsxs("div",{className:xe.header,children:[v.jsx("div",{className:xe.close,onClick:t,children:v.jsx(Eo,{})}),v.jsxs("div",{className:xe.title,children:[v.jsx(ei,{}),v.jsx("span",{children:s("title",{ns:"courier_balloon"})})]})]}),v.jsxs("div",{className:xe.content,children:[v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("address"),":"]}),v.jsx("p",{children:n.address})]}),v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("delivery_time"),":"]}),v.jsxs("div",{className:xe.chips,children:[v.jsx(hn,{active:i.delivery_time==="8:00-13:00",onClick:c("8:00-13:00"),children:"8:00 - 13:00"}),v.jsx(hn,{active:i.delivery_time==="14:00-22:00",onClick:c("14:00-22:00"),children:"14:00 - 22:00"})]})]}),v.jsxs("section",{className:xe.section,children:[v.jsxs("label",{children:[s("apartment_number"),":"]}),v.jsx(ni,{rows:1,onBlur:u})]}),v.jsxs("section",{className:he(xe.section,xe.commentSection),children:[v.jsxs("label",{children:[s("comment"),":"]}),v.jsx(ni,{className:xe.comment,onBlur:d})]})]}),v.jsx("div",{className:xe.actions,children:v.jsx(He,{disabled:!f,variant:"primary",className:xe.submit,onClick:l,children:s("choose",{ns:"common"})})})]})},oi=t=>ue.createElement("svg",{width:42,height:42,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},ue.createElement("rect",{width:42,height:42,rx:21,fill:"white"}),ue.createElement("path",{d:"M7.63362 25C7.33927 25 7.067 24.9259 6.81681 24.7778C6.56662 24.6296 6.36793 24.4296 6.22076 24.1778C6.07359 23.9259 6 23.6519 6 23.3556V18.6444C6 18.3407 6.07359 18.0667 6.22076 17.8222C6.36793 17.5704 6.56662 17.3704 6.81681 17.2222C7.067 17.0741 7.33927 17 7.63362 17H12.3137C12.6081 17 12.8767 17.0741 13.1195 17.2222C13.3697 17.3704 13.5684 17.5704 13.7155 17.8222C13.8701 18.0667 13.9473 18.3407 13.9473 18.6444V23.3556C13.9473 23.6519 13.8701 23.9259 13.7155 24.1778C13.5684 24.4296 13.3697 24.6296 13.1195 24.7778C12.8767 24.9259 12.6081 25 12.3137 25H7.63362ZM7.71089 23.2667H12.2144V18.7333H7.71089V23.2667Z",fill:"black"}),ue.createElement("path",{d:"M15.1629 25V17H16.929L19.6222 20.2333L22.3045 17H24.0816V25H22.3597V19.6333L19.6222 22.9222L16.8738 19.6444V25H15.1629Z",fill:"black"}),ue.createElement("path",{d:"M25.4032 25V17H27.1693L31.6176 22.3333V17H33.3505V25H31.5845L27.1141 19.6444V25H25.4032Z",fill:"black"}),ue.createElement("path",{d:"M34.3112 25V17H36V25H34.3112Z",fill:"black"}),ue.createElement("rect",{x:.5,y:.5,width:41,height:41,rx:20.5,stroke:"#1D3665",strokeOpacity:.1})),ke={root:"_root_5hr7z_1",submit:"_submit_5hr7z_12",close:"_close_5hr7z_16",title:"_title_5hr7z_29",header:"_header_5hr7z_42",content:"_content_5hr7z_47",section:"_section_5hr7z_81",chips:"_chips_5hr7z_90",services:"_services_5hr7z_95",images:"_images_5hr7z_101",image:"_image_5hr7z_101",actions:"_actions_5hr7z_143",scheduleItem:"_scheduleItem_5hr7z_147"},Iu=({onClose:t,onSubmit:e,location:n,className:o})=>{const{t:s}=Ge(["details_modal","common"]),i=()=>{e==null||e(n)};return v.jsxs("div",{className:he(ke.root,o),children:[v.jsxs("div",{className:ke.header,children:[v.jsx("div",{className:ke.close,onClick:t,children:v.jsx(Eo,{})}),v.jsxs("div",{className:ke.title,children:[v.jsx(oi,{}),v.jsx("span",{children:n.name})]})]}),v.jsxs("div",{className:ke.content,children:[v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("address"),":"]}),v.jsx("p",{children:n.location.full_address})]}),!!n.schedule.length&&v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("schedule"),":"]}),n.schedule.map((r,l)=>v.jsx("p",{className:ke.scheduleItem,children:r},l))]}),(n.pay_by_card||n.pay_by_card)&&v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("payment_method"),":"]}),v.jsxs("div",{className:ke.chips,children:[n.pay_by_cash&&v.jsx(hn,{children:s("pay_by_cash")}),n.pay_by_card&&v.jsx(hn,{children:s("pay_by_card")})]})]}),v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("services"),":"]}),v.jsxs("div",{className:ke.services,children:[n.is_pickup&&v.jsx("span",{children:s("is_pickup")}),n.is_delivery&&v.jsx("span",{children:s("is_delivery")}),n.is_dressing_room&&v.jsx("span",{children:s("is_dressing_room")}),n.is_check_order&&v.jsx("span",{children:s("is_check_order")})]})]}),v.jsxs("section",{className:ke.section,children:[v.jsxs("label",{children:[s("location"),":"]}),v.jsx("p",{children:n.location_name})]}),v.jsx("section",{className:ke.images,children:n.images.map(r=>v.jsx("img",{src:r,alt:n.name,className:ke.image},r))})]}),v.jsx("div",{className:ke.actions,children:v.jsx(He,{variant:"primary",className:ke.submit,onClick:i,children:s("choose",{ns:"common"})})})]})},xu=()=>{const{onPointClick:t}=Ye(),e=Pe(u=>u.detailsOpen),n=Pe(u=>u.setDetailsOpen),o=_e(u=>u.location),s=_e(u=>u.setSelectedPoint),i=Re(u=>u.courierPoint),r=Re(u=>u.setCourierPoint),l=a.useCallback(()=>{n(!1)},[n]),c=a.useCallback(u=>{t(u),n(!1),s(null),r(null)},[t,r,n,s]);return v.jsxs(v.Fragment,{children:[(i==null?void 0:i.address)&&e&&v.jsx(Pu,{location:i,className:At.details,onClose:l,onSubmit:c}),o&&e&&v.jsx(Iu,{location:o,className:At.details,onClose:l,onSubmit:c})]})},Du=({className:t,children:e})=>v.jsxs("div",{className:he(At.root,t),children:[v.jsx(Su,{className:At.locationSelector}),v.jsx(ou,{}),e,v.jsx(xu,{})]}),Bu=a.memo(Du),mn={root:"_root_132z0_1",open:"_open_132z0_10",overlay:"_overlay_132z0_15",container:"_container_132z0_23"},Tu=({open:t,children:e,className:n})=>v.jsxs("div",{className:he(mn.root,n,{[mn.open]:t}),children:[v.jsx("div",{className:mn.overlay}),v.jsx("div",{className:mn.container,children:e})]}),Ao={submit:"_submit_bqknu_1",container:"_container_bqknu_6",selector:"_selector_bqknu_13",label:"_label_bqknu_20"},Nu=()=>{const{t}=Ge(["location_aside","common"]),{country:e}=Ye(),n=a.useRef(null),o=Pe(d=>d.setZoom),s=bt(d=>d.setPlace),i=ln(d=>d.open),r=ln(d=>d.toggle),l=d=>{r(!1),o(Ic),s(d)},c=e?{componentRestrictions:{country:e}}:void 0,{ref:u}=_s.usePlacesWidget({libraries:["places"],options:c,onPlaceSelected:l,apiKey:"AIzaSyBO9gABz5DPTW3DcJuNCLx6Q7GmDYDRwRA"});return v.jsx(Tu,{open:i,children:v.jsx("div",{ref:n,className:Ao.container,children:v.jsxs("div",{className:Ao.selector,children:[v.jsx("div",{className:Ao.label,children:t("choose_city")}),v.jsx($s,{ref:u,placeholder:t("placeholder")})]})})})},ju=a.memo(Nu);function si(t,e){return function(){return t.apply(e,arguments)}}const{toString:Uu}=Object.prototype,{getPrototypeOf:So}=Object,vn=(t=>e=>{const n=Uu.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),We=t=>(t=t.toLowerCase(),e=>vn(e)===t),yn=t=>e=>typeof e===t,{isArray:Ot}=Array,jt=yn("undefined");function Hu(t){return t!==null&&!jt(t)&&t.constructor!==null&&!jt(t.constructor)&&Ne(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ii=We("ArrayBuffer");function zu(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ii(t.buffer),e}const Qu=yn("string"),Ne=yn("function"),ri=yn("number"),Cn=t=>t!==null&&typeof t=="object",Gu=t=>t===!0||t===!1,En=t=>{if(vn(t)!=="object")return!1;const e=So(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yu=We("Date"),Fu=We("File"),Vu=We("Blob"),Wu=We("FileList"),Ku=t=>Cn(t)&&Ne(t.pipe),Zu=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ne(t.append)&&((e=vn(t))==="formdata"||e==="object"&&Ne(t.toString)&&t.toString()==="[object FormData]"))},Ju=We("URLSearchParams"),qu=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ut(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Ot(t))for(o=0,s=t.length;o<s;o++)e.call(null,t[o],o,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),r=i.length;let l;for(o=0;o<r;o++)l=i[o],e.call(null,t[l],l,t)}}function ai(t,e){e=e.toLowerCase();const n=Object.keys(t);let o=n.length,s;for(;o-- >0;)if(s=n[o],e===s.toLowerCase())return s;return null}const li=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),ci=t=>!jt(t)&&t!==li;function Mo(){const{caseless:t}=ci(this)&&this||{},e={},n=(o,s)=>{const i=t&&ai(e,s)||s;En(e[i])&&En(o)?e[i]=Mo(e[i],o):En(o)?e[i]=Mo({},o):Ot(o)?e[i]=o.slice():e[i]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ut(arguments[o],n);return e}const Xu=(t,e,n,{allOwnKeys:o}={})=>(Ut(e,(s,i)=>{n&&Ne(s)?t[i]=si(s,n):t[i]=s},{allOwnKeys:o}),t),Ru=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),_u=(t,e,n,o)=>{t.prototype=Object.create(e.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},$u=(t,e,n,o)=>{let s,i,r;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)r=s[i],(!o||o(r,t,e))&&!l[r]&&(e[r]=t[r],l[r]=!0);t=n!==!1&&So(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ed=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const o=t.indexOf(e,n);return o!==-1&&o===n},td=t=>{if(!t)return null;if(Ot(t))return t;let e=t.length;if(!ri(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},nd=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&So(Uint8Array)),od=(t,e)=>{const o=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=o.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},sd=(t,e)=>{let n;const o=[];for(;(n=t.exec(e))!==null;)o.push(n);return o},id=We("HTMLFormElement"),rd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,s){return o.toUpperCase()+s}),ui=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ad=We("RegExp"),di=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),o={};Ut(n,(s,i)=>{e(s,i,t)!==!1&&(o[i]=s)}),Object.defineProperties(t,o)},ld=t=>{di(t,(e,n)=>{if(Ne(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=t[n];if(Ne(o)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cd=(t,e)=>{const n={},o=s=>{s.forEach(i=>{n[i]=!0})};return Ot(t)?o(t):o(String(t).split(e)),n},ud=()=>{},dd=(t,e)=>(t=+t,Number.isFinite(t)?t:e),Oo="abcdefghijklmnopqrstuvwxyz",fi="0123456789",pi={DIGIT:fi,ALPHA:Oo,ALPHA_DIGIT:Oo+Oo.toUpperCase()+fi},fd=(t=16,e=pi.ALPHA_DIGIT)=>{let n="";const{length:o}=e;for(;t--;)n+=e[Math.random()*o|0];return n};function pd(t){return!!(t&&Ne(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const gd=t=>{const e=new Array(10),n=(o,s)=>{if(Cn(o)){if(e.indexOf(o)>=0)return;if(!("toJSON"in o)){e[s]=o;const i=Ot(o)?[]:{};return Ut(o,(r,l)=>{const c=n(r,s+1);!jt(c)&&(i[l]=c)}),e[s]=void 0,i}}return o};return n(t,0)},hd=We("AsyncFunction"),I={isArray:Ot,isArrayBuffer:ii,isBuffer:Hu,isFormData:Zu,isArrayBufferView:zu,isString:Qu,isNumber:ri,isBoolean:Gu,isObject:Cn,isPlainObject:En,isUndefined:jt,isDate:Yu,isFile:Fu,isBlob:Vu,isRegExp:ad,isFunction:Ne,isStream:Ku,isURLSearchParams:Ju,isTypedArray:nd,isFileList:Wu,forEach:Ut,merge:Mo,extend:Xu,trim:qu,stripBOM:Ru,inherits:_u,toFlatObject:$u,kindOf:vn,kindOfTest:We,endsWith:ed,toArray:td,forEachEntry:od,matchAll:sd,isHTMLForm:id,hasOwnProperty:ui,hasOwnProp:ui,reduceDescriptors:di,freezeMethods:ld,toObjectSet:cd,toCamelCase:rd,noop:ud,toFiniteNumber:dd,findKey:ai,global:li,isContextDefined:ci,ALPHABET:pi,generateString:fd,isSpecCompliantForm:pd,toJSONObject:gd,isAsyncFn:hd,isThenable:t=>t&&(Cn(t)||Ne(t))&&Ne(t.then)&&Ne(t.catch)};function le(t,e,n,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}I.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:I.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const gi=le.prototype,hi={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{hi[t]={value:t}}),Object.defineProperties(le,hi),Object.defineProperty(gi,"isAxiosError",{value:!0}),le.from=(t,e,n,o,s,i)=>{const r=Object.create(gi);return I.toFlatObject(t,r,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),le.call(r,t.message,e,n,o,s),r.cause=t,r.name=t.name,i&&Object.assign(r,i),r};const md=null;function ko(t){return I.isPlainObject(t)||I.isArray(t)}function mi(t){return I.endsWith(t,"[]")?t.slice(0,-2):t}function vi(t,e,n){return t?t.concat(e).map(function(s,i){return s=mi(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function vd(t){return I.isArray(t)&&!t.some(ko)}const yd=I.toFlatObject(I,{},null,function(e){return/^is[A-Z]/.test(e)});function Ln(t,e,n){if(!I.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=I.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,w){return!I.isUndefined(w[p])});const o=n.metaTokens,s=n.visitor||d,i=n.dots,r=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&I.isSpecCompliantForm(e);if(!I.isFunction(s))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(I.isDate(C))return C.toISOString();if(!c&&I.isBlob(C))throw new le("Blob is not supported. Use a Buffer instead.");return I.isArrayBuffer(C)||I.isTypedArray(C)?c&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function d(C,p,w){let A=C;if(C&&!w&&typeof C=="object"){if(I.endsWith(p,"{}"))p=o?p:p.slice(0,-2),C=JSON.stringify(C);else if(I.isArray(C)&&vd(C)||(I.isFileList(C)||I.endsWith(p,"[]"))&&(A=I.toArray(C)))return p=mi(p),A.forEach(function(m,O){!(I.isUndefined(m)||m===null)&&e.append(r===!0?vi([p],O,i):r===null?p:p+"[]",u(m))}),!1}return ko(C)?!0:(e.append(vi(w,p,i),u(C)),!1)}const f=[],y=Object.assign(yd,{defaultVisitor:d,convertValue:u,isVisitable:ko});function E(C,p){if(!I.isUndefined(C)){if(f.indexOf(C)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(C),I.forEach(C,function(A,b){(!(I.isUndefined(A)||A===null)&&s.call(e,A,I.isString(b)?b.trim():b,p,y))===!0&&E(A,p?p.concat(b):[b])}),f.pop()}}if(!I.isObject(t))throw new TypeError("data must be an object");return E(t),e}function yi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(o){return e[o]})}function Po(t,e){this._pairs=[],t&&Ln(t,this,e)}const Ci=Po.prototype;Ci.append=function(e,n){this._pairs.push([e,n])},Ci.toString=function(e){const n=e?function(o){return e.call(this,o,yi)}:yi;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Cd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ei(t,e,n){if(!e)return t;const o=n&&n.encode||Cd,s=n&&n.serialize;let i;if(s?i=s(e,n):i=I.isURLSearchParams(e)?e.toString():new Po(e,n).toString(o),i){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ed{constructor(){this.handlers=[]}use(e,n,o){return this.handlers.push({fulfilled:e,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){I.forEach(this.handlers,function(o){o!==null&&e(o)})}}const Li=Ed,bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ld=typeof URLSearchParams<"u"?URLSearchParams:Po,bd=typeof FormData<"u"?FormData:null,wd=typeof Blob<"u"?Blob:null,Ad=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Sd=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ke={isBrowser:!0,classes:{URLSearchParams:Ld,FormData:bd,Blob:wd},isStandardBrowserEnv:Ad,isStandardBrowserWebWorkerEnv:Sd,protocols:["http","https","file","blob","url","data"]};function Md(t,e){return Ln(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,o,s,i){return Ke.isNode&&I.isBuffer(n)?(this.append(o,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Od(t){return I.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kd(t){const e={},n=Object.keys(t);let o;const s=n.length;let i;for(o=0;o<s;o++)i=n[o],e[i]=t[i];return e}function wi(t){function e(n,o,s,i){let r=n[i++];const l=Number.isFinite(+r),c=i>=n.length;return r=!r&&I.isArray(s)?s.length:r,c?(I.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!l):((!s[r]||!I.isObject(s[r]))&&(s[r]=[]),e(n,o,s[r],i)&&I.isArray(s[r])&&(s[r]=kd(s[r])),!l)}if(I.isFormData(t)&&I.isFunction(t.entries)){const n={};return I.forEachEntry(t,(o,s)=>{e(Od(o),s,n,0)}),n}return null}const Pd={"Content-Type":void 0};function Id(t,e,n){if(I.isString(t))try{return(e||JSON.parse)(t),I.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(t)}const bn={transitional:bi,adapter:["xhr","http"],transformRequest:[function(e,n){const o=n.getContentType()||"",s=o.indexOf("application/json")>-1,i=I.isObject(e);if(i&&I.isHTMLForm(e)&&(e=new FormData(e)),I.isFormData(e))return s&&s?JSON.stringify(wi(e)):e;if(I.isArrayBuffer(e)||I.isBuffer(e)||I.isStream(e)||I.isFile(e)||I.isBlob(e))return e;if(I.isArrayBufferView(e))return e.buffer;if(I.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(o.indexOf("application/x-www-form-urlencoded")>-1)return Md(e,this.formSerializer).toString();if((l=I.isFileList(e))||o.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Ln(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),Id(e)):e}],transformResponse:[function(e){const n=this.transitional||bn.transitional,o=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&I.isString(e)&&(o&&!this.responseType||s)){const r=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(r)throw l.name==="SyntaxError"?le.from(l,le.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};I.forEach(["delete","get","head"],function(e){bn.headers[e]={}}),I.forEach(["post","put","patch"],function(e){bn.headers[e]=I.merge(Pd)});const Io=bn,xd=I.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Dd=t=>{const e={};let n,o,s;return t&&t.split(`
|
|
22
22
|
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!n||e[n]&&xd[n])&&(n==="set-cookie"?e[n]?e[n].push(o):e[n]=[o]:e[n]=e[n]?e[n]+", "+o:o)}),e},Ai=Symbol("internals");function Ht(t){return t&&String(t).trim().toLowerCase()}function wn(t){return t===!1||t==null?t:I.isArray(t)?t.map(wn):String(t)}function Bd(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(t);)e[o[1]]=o[2];return e}const Td=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function xo(t,e,n,o,s){if(I.isFunction(o))return o.call(this,e,n);if(s&&(e=n),!!I.isString(e)){if(I.isString(o))return e.indexOf(o)!==-1;if(I.isRegExp(o))return o.test(e)}}function Nd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,o)=>n.toUpperCase()+o)}function jd(t,e){const n=I.toCamelCase(" "+e);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+n,{value:function(s,i,r){return this[o].call(this,e,s,i,r)},configurable:!0})})}class An{constructor(e){e&&this.set(e)}set(e,n,o){const s=this;function i(l,c,u){const d=Ht(c);if(!d)throw new Error("header name must be a non-empty string");const f=I.findKey(s,d);(!f||s[f]===void 0||u===!0||u===void 0&&s[f]!==!1)&&(s[f||c]=wn(l))}const r=(l,c)=>I.forEach(l,(u,d)=>i(u,d,c));return I.isPlainObject(e)||e instanceof this.constructor?r(e,n):I.isString(e)&&(e=e.trim())&&!Td(e)?r(Dd(e),n):e!=null&&i(n,e,o),this}get(e,n){if(e=Ht(e),e){const o=I.findKey(this,e);if(o){const s=this[o];if(!n)return s;if(n===!0)return Bd(s);if(I.isFunction(n))return n.call(this,s,o);if(I.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Ht(e),e){const o=I.findKey(this,e);return!!(o&&this[o]!==void 0&&(!n||xo(this,this[o],o,n)))}return!1}delete(e,n){const o=this;let s=!1;function i(r){if(r=Ht(r),r){const l=I.findKey(o,r);l&&(!n||xo(o,o[l],l,n))&&(delete o[l],s=!0)}}return I.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let o=n.length,s=!1;for(;o--;){const i=n[o];(!e||xo(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,o={};return I.forEach(this,(s,i)=>{const r=I.findKey(o,i);if(r){n[r]=wn(s),delete n[i];return}const l=e?Nd(i):String(i).trim();l!==i&&delete n[i],n[l]=wn(s),o[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return I.forEach(this,(o,s)=>{o!=null&&o!==!1&&(n[s]=e&&I.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
23
23
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const o=new this(e);return n.forEach(s=>o.set(s)),o}static accessor(e){const o=(this[Ai]=this[Ai]={accessors:{}}).accessors,s=this.prototype;function i(r){const l=Ht(r);o[l]||(jd(s,r),o[l]=!0)}return I.isArray(e)?e.forEach(i):i(e),this}}An.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),I.freezeMethods(An.prototype),I.freezeMethods(An);const $e=An;function Do(t,e){const n=this||Io,o=e||n,s=$e.from(o.headers);let i=o.data;return I.forEach(t,function(l){i=l.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function Si(t){return!!(t&&t.__CANCEL__)}function zt(t,e,n){le.call(this,t??"canceled",le.ERR_CANCELED,e,n),this.name="CanceledError"}I.inherits(zt,le,{__CANCEL__:!0});function Ud(t,e,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?t(n):e(new le("Request failed with status code "+n.status,[le.ERR_BAD_REQUEST,le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Hd=Ke.isStandardBrowserEnv?function(){return{write:function(n,o,s,i,r,l){const c=[];c.push(n+"="+encodeURIComponent(o)),I.isNumber(s)&&c.push("expires="+new Date(s).toGMTString()),I.isString(i)&&c.push("path="+i),I.isString(r)&&c.push("domain="+r),l===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function zd(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Qd(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Mi(t,e){return t&&!zd(e)?Qd(t,e):e}const Gd=Ke.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function s(i){let r=i;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(r){const l=I.isString(r)?s(r):r;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}();function Yd(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Fd(t,e){t=t||10;const n=new Array(t),o=new Array(t);let s=0,i=0,r;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=o[i];r||(r=u),n[s]=c,o[s]=u;let f=i,y=0;for(;f!==s;)y+=n[f++],f=f%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),u-r<e)return;const E=d&&u-d;return E?Math.round(y*1e3/E):void 0}}function Oi(t,e){let n=0;const o=Fd(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,l=i-n,c=o(l),u=i<=r;n=i;const d={loaded:i,total:r,progress:r?i/r:void 0,bytes:l,rate:c||void 0,estimated:c&&r&&u?(r-i)/c:void 0,event:s};d[e?"download":"upload"]=!0,t(d)}}const Sn={http:md,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,o){let s=t.data;const i=$e.from(t.headers).normalize(),r=t.responseType;let l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}I.isFormData(s)&&(Ke.isStandardBrowserEnv||Ke.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const E=t.auth.username||"",C=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(E+":"+C))}const d=Mi(t.baseURL,t.url);u.open(t.method.toUpperCase(),Ei(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const E=$e.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:E,config:t,request:u};Ud(function(A){n(A),c()},function(A){o(A),c()},p),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(o(new le("Request aborted",le.ECONNABORTED,t,u)),u=null)},u.onerror=function(){o(new le("Network Error",le.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let C=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||bi;t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),o(new le(C,p.clarifyTimeoutError?le.ETIMEDOUT:le.ECONNABORTED,t,u)),u=null},Ke.isStandardBrowserEnv){const E=(t.withCredentials||Gd(d))&&t.xsrfCookieName&&Hd.read(t.xsrfCookieName);E&&i.set(t.xsrfHeaderName,E)}s===void 0&&i.setContentType(null),"setRequestHeader"in u&&I.forEach(i.toJSON(),function(C,p){u.setRequestHeader(p,C)}),I.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),r&&r!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",Oi(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Oi(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=E=>{u&&(o(!E||E.type?new zt(null,t,u):E),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const y=Yd(d);if(y&&Ke.protocols.indexOf(y)===-1){o(new le("Unsupported protocol "+y+":",le.ERR_BAD_REQUEST,t));return}u.send(s||null)})}};I.forEach(Sn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Vd={getAdapter:t=>{t=I.isArray(t)?t:[t];const{length:e}=t;let n,o;for(let s=0;s<e&&(n=t[s],!(o=I.isString(n)?Sn[n.toLowerCase()]:n));s++);if(!o)throw o===!1?new le(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(I.hasOwnProp(Sn,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!I.isFunction(o))throw new TypeError("adapter is not a function");return o},adapters:Sn};function Bo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new zt(null,t)}function ki(t){return Bo(t),t.headers=$e.from(t.headers),t.data=Do.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vd.getAdapter(t.adapter||Io.adapter)(t).then(function(o){return Bo(t),o.data=Do.call(t,t.transformResponse,o),o.headers=$e.from(o.headers),o},function(o){return Si(o)||(Bo(t),o&&o.response&&(o.response.data=Do.call(t,t.transformResponse,o.response),o.response.headers=$e.from(o.response.headers))),Promise.reject(o)})}const Pi=t=>t instanceof $e?t.toJSON():t;function kt(t,e){e=e||{};const n={};function o(u,d,f){return I.isPlainObject(u)&&I.isPlainObject(d)?I.merge.call({caseless:f},u,d):I.isPlainObject(d)?I.merge({},d):I.isArray(d)?d.slice():d}function s(u,d,f){if(I.isUndefined(d)){if(!I.isUndefined(u))return o(void 0,u,f)}else return o(u,d,f)}function i(u,d){if(!I.isUndefined(d))return o(void 0,d)}function r(u,d){if(I.isUndefined(d)){if(!I.isUndefined(u))return o(void 0,u)}else return o(void 0,d)}function l(u,d,f){if(f in e)return o(u,d);if(f in t)return o(void 0,u)}const c={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:(u,d)=>s(Pi(u),Pi(d),!0)};return I.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=c[d]||s,y=f(t[d],e[d],d);I.isUndefined(y)&&f!==l||(n[d]=y)}),n}const Ii="1.4.0",To={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{To[t]=function(o){return typeof o===t||"a"+(e<1?"n ":" ")+t}});const xi={};To.transitional=function(e,n,o){function s(i,r){return"[Axios v"+Ii+"] Transitional option '"+i+"'"+r+(o?". "+o:"")}return(i,r,l)=>{if(e===!1)throw new le(s(r," has been removed"+(n?" in "+n:"")),le.ERR_DEPRECATED);return n&&!xi[r]&&(xi[r]=!0,console.warn(s(r," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,r,l):!0}};function Wd(t,e,n){if(typeof t!="object")throw new le("options must be an object",le.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const i=o[s],r=e[i];if(r){const l=t[i],c=l===void 0||r(l,i,t);if(c!==!0)throw new le("option "+i+" must be "+c,le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new le("Unknown option "+i,le.ERR_BAD_OPTION)}}const No={assertOptions:Wd,validators:To},st=No.validators;class Mn{constructor(e){this.defaults=e,this.interceptors={request:new Li,response:new Li}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=kt(this.defaults,n);const{transitional:o,paramsSerializer:s,headers:i}=n;o!==void 0&&No.assertOptions(o,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),s!=null&&(I.isFunction(s)?n.paramsSerializer={serialize:s}:No.assertOptions(s,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r;r=i&&I.merge(i.common,i[n.method]),r&&I.forEach(["delete","get","head","post","put","patch","common"],C=>{delete i[C]}),n.headers=$e.concat(r,i);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let d,f=0,y;if(!c){const C=[ki.bind(this),void 0];for(C.unshift.apply(C,l),C.push.apply(C,u),y=C.length,d=Promise.resolve(n);f<y;)d=d.then(C[f++],C[f++]);return d}y=l.length;let E=n;for(f=0;f<y;){const C=l[f++],p=l[f++];try{E=C(E)}catch(w){p.call(this,w);break}}try{d=ki.call(this,E)}catch(C){return Promise.reject(C)}for(f=0,y=u.length;f<y;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=kt(this.defaults,e);const n=Mi(e.baseURL,e.url);return Ei(n,e.params,e.paramsSerializer)}}I.forEach(["delete","get","head","options"],function(e){Mn.prototype[e]=function(n,o){return this.request(kt(o||{},{method:e,url:n,data:(o||{}).data}))}}),I.forEach(["post","put","patch"],function(e){function n(o){return function(i,r,l){return this.request(kt(l||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}Mn.prototype[e]=n(),Mn.prototype[e+"Form"]=n(!0)});const On=Mn;class jo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const o=this;this.promise.then(s=>{if(!o._listeners)return;let i=o._listeners.length;for(;i-- >0;)o._listeners[i](s);o._listeners=null}),this.promise.then=s=>{let i;const r=new Promise(l=>{o.subscribe(l),i=l}).then(s);return r.cancel=function(){o.unsubscribe(i)},r},e(function(i,r,l){o.reason||(o.reason=new zt(i,r,l),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new jo(function(s){e=s}),cancel:e}}}const Kd=jo;function Zd(t){return function(n){return t.apply(null,n)}}function Jd(t){return I.isObject(t)&&t.isAxiosError===!0}const Uo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Uo).forEach(([t,e])=>{Uo[e]=t});const qd=Uo;function Di(t){const e=new On(t),n=si(On.prototype.request,e);return I.extend(n,On.prototype,e,{allOwnKeys:!0}),I.extend(n,e,null,{allOwnKeys:!0}),n.create=function(s){return Di(kt(t,s))},n}const we=Di(Io);we.Axios=On,we.CanceledError=zt,we.CancelToken=Kd,we.isCancel=Si,we.VERSION=Ii,we.toFormData=Ln,we.AxiosError=le,we.Cancel=we.CanceledError,we.all=function(e){return Promise.all(e)},we.spread=Zd,we.isAxiosError=Jd,we.mergeConfig=kt,we.AxiosHeaders=$e,we.formToJSON=t=>wi(I.isHTMLForm(t)?new FormData(t):t),we.HttpStatusCode=qd,we.default=we;const kn=we.create({baseURL:"https://ecomgate.omnic.solutions/api/1.0.0/type-1/public/"}),Xd=1024,Rd={[Fe.CheckOrder]:["is_check_order","is_delivery"],[Fe.DressingRoom]:["is_dressing_room","is_delivery"],[Fe.PayByCash]:["pay_by_cash","pay_by_card","is_delivery"]},_d={[Ve.Return]:["is_pickup"],[Ve.Shipping]:["is_pickup"],[Ve.Payment]:["pay_by_cash","pay_by_card","is_pickup"]};async function*$d({q:t,filter:e,bounds:n}={},{loading:o,onCancel:s,controller:i}={}){o&&i&&(i.abort(),s==null||s());const r={status:30,page_size:Xd};t&&(r.q=t),e!=null&&e.type&&(r.type=e.type),e!=null&&e.receive&&Object.entries(e==null?void 0:e.receive).forEach(([d,f])=>{if(!f)return;Rd[d].forEach(E=>{r[E]=!0})}),e!=null&&e.send&&Object.entries(e==null?void 0:e.send).forEach(([d,f])=>{if(!f)return;_d[d].forEach(E=>{r[E]=!0})}),n&&(r.start_latitude=n[0][0],r.end_latitude=n[0][1],r.start_longitude=n[1][0],r.end_longitude=n[1][1]);let l=await kn.get("/locations/points",{params:r,signal:i==null?void 0:i.signal}),c=l.data.data.num_pages,u=l.data.data.current_page;for(;u<c;){yield l,r.page=u+1;const d=await kn.get("/locations/points",{params:r,signal:i==null?void 0:i.signal});l.data.data.results=[...l.data.data.results,...d.data.data.results],l=d,u=d.data.data.current_page,c=d.data.data.num_pages}return yield l,l}const ef=new WeakSet,tf=new AbortController;ef.add(tf);const Bi=(t,e,n)=>async o=>{for await(const s of $d({filter:e,bounds:n},{loading:t}))o(s.data)},Ti="@omnic/widget-locations",Ho=(t,e)=>{var n;(n=document.getElementById(Ti))==null||n.style.setProperty(t,e)},nf={points:[],error:!1,loaded:!1,loading:!1,reloading:!1},Ze=nt()((t,e)=>({...nf,async loadNext(n,o){const s=e().reloading;t({error:!1,reloading:!0}),Pe.getState().setBounds(n);let i=0;try{await Bi(s,o,n)(l=>{t(i===0?{points:l.data.results}:{points:[...e().points,...l.data.results]}),i++}),t({reloading:!1})}catch{t({error:!0})}},async loadFirst(n){const o=e().loading,s=Pe.getState().bounds;t({error:!1,loading:!0});let i=0;try{await Bi(o,n,s)(l=>{i>=1&&t({loading:!1,loaded:!0}),t(i===0?{points:l.data.results}:{points:[...e().points,...l.data.results]}),i++}),t({loading:!1,loaded:!0})}catch{t({error:!0,loading:!1})}}})),of=()=>{a.useEffect(()=>{Ze.getState().loadFirst();const t=Nt.subscribe(e=>{Ze.getState().loadFirst(e)});return()=>{t()}},[])},Qt=".",zo=Symbol("target"),Ni=Symbol("unsubscribe");function Qo(t){return t instanceof Date||t instanceof Set||t instanceof Map||t instanceof WeakSet||t instanceof WeakMap||ArrayBuffer.isView(t)}function sf(t){return(typeof t=="object"?t===null:typeof t!="function")||t instanceof RegExp}const Je=Array.isArray;function Go(t){return typeof t=="symbol"}const je={after:(t,e)=>Je(t)?t.slice(e.length):e===""?t:t.slice(e.length+1),concat:(t,e)=>Je(t)?(t=[...t],e&&t.push(e),t):e&&e.toString!==void 0?(t!==""&&(t+=Qt),Go(e)?t+e.toString():t+e):t,initial:t=>{if(Je(t))return t.slice(0,-1);if(t==="")return t;const e=t.lastIndexOf(Qt);return e===-1?"":t.slice(0,e)},last:t=>{if(Je(t))return t[t.length-1]||"";if(t==="")return t;const e=t.lastIndexOf(Qt);return e===-1?t:t.slice(e+1)},walk:(t,e)=>{if(Je(t))for(const n of t)e(n);else if(t!==""){let n=0,o=t.indexOf(Qt);if(o===-1)e(t);else for(;n<t.length;)o===-1&&(o=t.length),e(t.slice(n,o)),n=o+1,o=t.indexOf(Qt,n)}},get(t,e){return this.walk(e,n=>{t&&(t=t[n])}),t}};function rf(t){return typeof t=="object"&&typeof t.next=="function"}function af(t,e,n,o,s){const i=t.next;if(e.name==="entries")t.next=function(){const r=i.call(this);return r.done===!1&&(r.value[0]=s(r.value[0],e,r.value[0],o),r.value[1]=s(r.value[1],e,r.value[0],o)),r};else if(e.name==="values"){const r=n[zo].keys();t.next=function(){const l=i.call(this);return l.done===!1&&(l.value=s(l.value,e,r.next().value,o)),l}}else t.next=function(){const r=i.call(this);return r.done===!1&&(r.value=s(r.value,e,r.value,o)),r};return t}function ji(t,e,n){return t.isUnsubscribed||e.ignoreSymbols&&Go(n)||e.ignoreUnderscores&&n.charAt(0)==="_"||"ignoreKeys"in e&&e.ignoreKeys.includes(n)}class lf{constructor(e){this._equals=e,this._proxyCache=new WeakMap,this._pathCache=new WeakMap,this.isUnsubscribed=!1}_getDescriptorCache(){return this._descriptorCache===void 0&&(this._descriptorCache=new WeakMap),this._descriptorCache}_getProperties(e){const n=this._getDescriptorCache();let o=n.get(e);return o===void 0&&(o={},n.set(e,o)),o}_getOwnPropertyDescriptor(e,n){if(this.isUnsubscribed)return Reflect.getOwnPropertyDescriptor(e,n);const o=this._getProperties(e);let s=o[n];return s===void 0&&(s=Reflect.getOwnPropertyDescriptor(e,n),o[n]=s),s}getProxy(e,n,o,s){if(this.isUnsubscribed)return e;const i=e[s],r=i||e;this._pathCache.set(r,n);let l=this._proxyCache.get(r);return l===void 0&&(l=i===void 0?new Proxy(e,o):e,this._proxyCache.set(r,l)),l}getPath(e){return this.isUnsubscribed?void 0:this._pathCache.get(e)}isDetached(e,n){return!Object.is(e,je.get(n,this.getPath(e)))}defineProperty(e,n,o){return Reflect.defineProperty(e,n,o)?(this.isUnsubscribed||(this._getProperties(e)[n]=o),!0):!1}setProperty(e,n,o,s,i){if(!this._equals(i,o)||!(n in e)){const r=this._getOwnPropertyDescriptor(e,n);return r!==void 0&&"set"in r?Reflect.set(e,n,o,s):Reflect.set(e,n,o)}return!0}deleteProperty(e,n,o){if(Reflect.deleteProperty(e,n)){if(!this.isUnsubscribed){const s=this._getDescriptorCache().get(e);s&&(delete s[n],this._pathCache.delete(o))}return!0}return!1}isSameDescriptor(e,n,o){const s=this._getOwnPropertyDescriptor(n,o);return e!==void 0&&s!==void 0&&Object.is(e.value,s.value)&&(e.writable||!1)===(s.writable||!1)&&(e.enumerable||!1)===(s.enumerable||!1)&&(e.configurable||!1)===(s.configurable||!1)&&e.get===s.get&&e.set===s.set}isGetInvariant(e,n){const o=this._getOwnPropertyDescriptor(e,n);return o!==void 0&&o.configurable!==!0&&o.writable!==!0}unsubscribe(){this._descriptorCache=null,this._pathCache=null,this._proxyCache=null,this.isUnsubscribed=!0}}function Yo(t){return toString.call(t)==="[object Object]"}function Pn(){return!0}function Pt(t,e){return t.length!==e.length||t.some((n,o)=>e[o]!==n)}const Ui=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),cf=new Set(["concat","includes","indexOf","join","keys","lastIndexOf"]),Hi={push:Pn,pop:Pn,shift:Pn,unshift:Pn,copyWithin:Pt,reverse:Pt,sort:Pt,splice:Pt,flat:Pt,fill:Pt},uf=new Set([...Ui,...cf,...Object.keys(Hi)]);function In(t,e){if(t.size!==e.size)return!0;for(const n of t)if(!e.has(n))return!0;return!1}const zi=["keys","values","entries"],Qi=new Set(["has","toString"]),Gi={add:In,clear:In,delete:In,forEach:In},df=new Set([...Qi,...Object.keys(Gi),...zi]);function xn(t,e){if(t.size!==e.size)return!0;let n;for(const[o,s]of t)if(n=e.get(o),n!==s||n===void 0&&!e.has(o))return!0;return!1}const ff=new Set([...Qi,"get"]),Yi={set:xn,clear:xn,delete:xn,forEach:xn},pf=new Set([...ff,...Object.keys(Yi),...zi]);class it{constructor(e,n,o,s){this._path=n,this._isChanged=!1,this._clonedCache=new Set,this._hasOnValidate=s,this._changes=s?[]:null,this.clone=n===void 0?e:this._shallowClone(e)}static isHandledMethod(e){return Ui.has(e)}_shallowClone(e){let n=e;if(Yo(e))n={...e};else if(Je(e)||ArrayBuffer.isView(e))n=[...e];else if(e instanceof Date)n=new Date(e);else if(e instanceof Set)n=new Set([...e].map(o=>this._shallowClone(o)));else if(e instanceof Map){n=new Map;for(const[o,s]of e.entries())n.set(o,this._shallowClone(s))}return this._clonedCache.add(n),n}preferredThisArg(e,n,o,s){return e?(Je(s)?this._onIsChanged=Hi[n]:s instanceof Set?this._onIsChanged=Gi[n]:s instanceof Map&&(this._onIsChanged=Yi[n]),s):o}update(e,n,o){const s=je.after(e,this._path);if(n!=="length"){let i=this.clone;je.walk(s,r=>{i&&i[r]&&(this._clonedCache.has(i[r])||(i[r]=this._shallowClone(i[r])),i=i[r])}),this._hasOnValidate&&this._changes.push({path:s,property:n,previous:o}),i&&i[n]&&(i[n]=o)}this._isChanged=!0}undo(e){let n;for(let o=this._changes.length-1;o!==-1;o--)n=this._changes[o],je.get(e,n.path)[n.property]=n.previous}isChanged(e){return this._onIsChanged===void 0?this._isChanged:this._onIsChanged(this.clone,e)}}class Fi extends it{static isHandledMethod(e){return uf.has(e)}}class gf extends it{undo(e){e.setTime(this.clone.getTime())}isChanged(e,n){return!n(this.clone.valueOf(),e.valueOf())}}class Vi extends it{static isHandledMethod(e){return df.has(e)}undo(e){for(const n of this.clone)e.add(n);for(const n of e)this.clone.has(n)||e.delete(n)}}class Wi extends it{static isHandledMethod(e){return pf.has(e)}undo(e){for(const[n,o]of this.clone.entries())e.set(n,o);for(const n of e.keys())this.clone.has(n)||e.delete(n)}}class hf extends it{constructor(e,n,o,s){super(void 0,n,o,s),this._arg1=o[0],this._weakValue=e.has(this._arg1)}isChanged(e){return this._weakValue!==e.has(this._arg1)}undo(e){this._weakValue&&!e.has(this._arg1)?e.add(this._arg1):e.delete(this._arg1)}}class mf extends it{constructor(e,n,o,s){super(void 0,n,o,s),this._weakKey=o[0],this._weakHas=e.has(this._weakKey),this._weakValue=e.get(this._weakKey)}isChanged(e){return this._weakValue!==e.get(this._weakKey)}undo(e){const n=e.has(this._weakKey);this._weakHas&&!n?e.set(this._weakKey,this._weakValue):!this._weakHas&&n?e.delete(this._weakKey):this._weakValue!==e.get(this._weakKey)&&e.set(this._weakKey,this._weakValue)}}class ut{constructor(e){this._stack=[],this._hasOnValidate=e}static isHandledType(e){return Yo(e)||Je(e)||Qo(e)}static isHandledMethod(e,n){return Yo(e)?it.isHandledMethod(n):Je(e)?Fi.isHandledMethod(n):e instanceof Set?Vi.isHandledMethod(n):e instanceof Map?Wi.isHandledMethod(n):Qo(e)}get isCloning(){return this._stack.length>0}start(e,n,o){let s=it;Je(e)?s=Fi:e instanceof Date?s=gf:e instanceof Set?s=Vi:e instanceof Map?s=Wi:e instanceof WeakSet?s=hf:e instanceof WeakMap&&(s=mf),this._stack.push(new s(e,n,o,this._hasOnValidate))}update(e,n,o){this._stack[this._stack.length-1].update(e,n,o)}preferredThisArg(e,n,o){const{name:s}=e,i=ut.isHandledMethod(o,s);return this._stack[this._stack.length-1].preferredThisArg(i,s,n,o)}isChanged(e,n,o){return this._stack[this._stack.length-1].isChanged(e,n,o)}undo(e){this._previousClone!==void 0&&this._previousClone.undo(e)}stop(){return this._previousClone=this._stack.pop(),this._previousClone.clone}}const vf={equals:Object.is,isShallow:!1,pathAsArray:!1,ignoreSymbols:!1,ignoreUnderscores:!1,ignoreDetached:!1,details:!1},Gt=(t,e,n={})=>{n={...vf,...n};const o=Symbol("ProxyTarget"),{equals:s,isShallow:i,ignoreDetached:r,details:l}=n,c=new lf(s),u=typeof n.onValidate=="function",d=new ut(u),f=(b,m,O,h,g)=>!u||d.isCloning||n.onValidate(je.concat(c.getPath(b),m),O,h,g)===!0,y=(b,m,O,h)=>{!ji(c,n,m)&&!(r&&c.isDetached(b,t))&&E(c.getPath(b),m,O,h)},E=(b,m,O,h,g)=>{d.isCloning?d.update(b,m,h):e(je.concat(b,m),O,h,g)},C=b=>b&&(b[o]||b),p=(b,m,O,h)=>sf(b)||O==="constructor"||i&&!ut.isHandledMethod(m,O)||ji(c,n,O)||c.isGetInvariant(m,O)||r&&c.isDetached(m,t)?b:(h===void 0&&(h=c.getPath(m)),c.getProxy(b,je.concat(h,O),w,o)),w={get(b,m,O){if(Go(m)){if(m===o||m===zo)return b;if(m===Ni&&!c.isUnsubscribed&&c.getPath(b).length===0)return c.unsubscribe(),b}const h=Qo(b)?Reflect.get(b,m):Reflect.get(b,m,O);return p(h,b,m)},set(b,m,O,h){O=C(O);const g=b[o]||b,D=g[m];if(s(D,O)&&m in b)return!0;const L=f(b,m,O,D);return L&&c.setProperty(g,m,O,h,D)?(y(b,m,b[m],D),!0):!L},defineProperty(b,m,O){if(!c.isSameDescriptor(O,b,m)){const h=b[m];f(b,m,O.value,h)&&c.defineProperty(b,m,O,h)&&y(b,m,O.value,h)}return!0},deleteProperty(b,m){if(!Reflect.has(b,m))return!0;const O=Reflect.get(b,m),h=f(b,m,void 0,O);return h&&c.deleteProperty(b,m,O)?(y(b,m,void 0,O),!0):!h},apply(b,m,O){const h=m[o]||m;if(c.isUnsubscribed)return Reflect.apply(b,h,O);if((l===!1||l!==!0&&!l.includes(b.name))&&ut.isHandledType(h)){let g=je.initial(c.getPath(b));const D=ut.isHandledMethod(h,b.name);d.start(h,g,O);let L=Reflect.apply(b,d.preferredThisArg(b,m,h),D?O.map(N=>C(N)):O);const B=d.isChanged(h,s),S=d.stop();if(ut.isHandledType(L)&&D&&(m instanceof Map&&b.name==="get"&&(g=je.concat(g,O[0])),L=c.getProxy(L,g,w)),B){const N={name:b.name,args:O,result:L},H=d.isCloning?je.initial(g):g,Y=d.isCloning?je.last(g):"";f(je.get(t,H),Y,h,S,N)?E(H,Y,h,S,N):d.undo(h)}return(m instanceof Map||m instanceof Set)&&rf(L)?af(L,b,m,g,p):L}return Reflect.apply(b,m,O)}},A=c.getProxy(t,n.pathAsArray?[]:"",w);return e=e.bind(A),u&&(n.onValidate=n.onValidate.bind(A)),A};Gt.target=t=>t&&t[zo]||t,Gt.unsubscribe=t=>t[Ni]||t;const yf=t=>{const[e,n]=a.useState({...js,...t??window.OMNIC_WIDGET_LOCATIONS_CONFIG}),o=t&&!window.OMNIC_WIDGET_LOCATIONS_CONFIG,s=!t&&window.OMNIC_WIDGET_LOCATIONS_CONFIG;return a.useEffect(()=>{o&&n(t)},[t,o]),a.useEffect(()=>{if(s)return window.OMNIC_WIDGET_LOCATIONS_CONFIG=Gt(window.OMNIC_WIDGET_LOCATIONS_CONFIG,function(){const i=Gt.target(this);i.palette&&(i.palette={...i.palette}),i.map&&(i.map={...i.map}),n({...i})}),()=>{window.OMNIC_WIDGET_LOCATIONS_CONFIG&&Gt.unsubscribe(window.OMNIC_WIDGET_LOCATIONS_CONFIG)}},[s]),e},Cf=(t,e)=>{kn.defaults.headers.get.Authorization=`INN ${t}`,e!=null&&e.baseURL&&(kn.defaults.baseURL=e.baseURL)};/*! *****************************************************************************
|
|
24
24
|
Copyright (c) Microsoft Corporation.
|