PageSourceSearch

https://iledebeaute.ru/_next/static/chunks/1680.78583a84f6ccb99e.js

js iledebeaute.ru collected 2026-09-24 09:09:38 UTC 3,319 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1680],{63726:function(e,t,n){var l,r=n(67294);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)({}).hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e}).apply(null,arguments)}t.Z=e=>{let{title:t,titleId:n,...a}=e;return r.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,"aria-labelledby":n},a),t?r.createElement("title",{id:n},t):null,l||(l=r.createElement("path",{fillRule:"evenodd",d:"m10.013 5.94.524.536 5 5.128.51.523-.51.524-4.752 4.873-.524.537-1.074-1.048.524-.537 4.241-4.349-4.489-4.603-.524-.537z",clipRule:"evenodd"})))}},60083:function(e,t,n){n.d(t,{v:function(){return d}});var l=n(35944),r=n(67294),i=n(59112),a=n(71216),s=n(81555),o=n(63726),c=n(31472);let d=(e,t)=>{let n=null==t?void 0:t.toLocaleLowerCase(),{name:l="",address:r=""}=e||{};return!n||r.toLocaleLowerCase().includes(n)||l.toLocaleLowerCase().includes(n)},u={display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},p={color:s.O9.grey4},h=e=>{let{className:t,option:n,selected:i=!1,highlighted:s=!1,disabled:c=!1,innerProps:d}=e,{getCSS:h}=(0,a.$)(),f=(0,r.useMemo)(()=>h("option",{isDisabled:c,isHover:s,isSelected:i,isPreloader:n.isPreloader||!1}),[c,h,s,i,n.isPreloader]);return(0,l.tZ)("li",{...d,className:t,css:f,children:(0,l.BX)("div",{css:u,children:[(0,l.BX)("div",{children:[(0,l.tZ)("div",{children:n.content}),(0,l.tZ)("div",{css:p,children:n.name})]}),(0,l.tZ)("div",{children:(0,l.tZ)(o.Z,{})})]})})},f={position:"relative"},v={position:"absolute",top:"50%",left:(0,s.bA)(2),zIndex:10,transform:"translateY(-50%)"};t.Z=e=>{let{points:t=[],onChange:n,...a}=e,[o,u]=(0,r.useState)(!1),[p,Z]=(0,r.useState)(""),[m,b]=(0,r.useState)(null),g=(0,r.useMemo)(()=>({".control":{padding:`${(0,s.bA)(2)}px !important`,...!o&&{paddingLeft:`${(0,s.bA)(6)}px !important`}}}),[o]),w=(0,r.useCallback)(async e=>{let n=e?t.filter(t=>d(t,e)).map(e=>({key:e.id,name:e.name,content:e.address,value:e.id})):[];return b(Object.fromEntries(n.map(e=>[e.key,e.name]))),{options:n,hasMore:!1}},[t,o]),[y,C]=(0,r.useState)({});return(0,r.useEffect)(()=>{m&&m[p]&&C({value:m[p]}),m||C({})},[m,p]),(0,l.BX)("div",{css:f,...a,children:[!o&&(0,l.tZ)(c.Z,{css:v}),(0,l.tZ)(i.Z,{Arrow:null,Option:h,placeholder:"Начните вводить адрес",fieldCSS:g,field:{onChange:e=>{Z(e.target.value||""),n(e.target.value||"")},value:""},fieldProps:p&&m&&Object.keys(m).length?{value:m[p]||""}:y,css:{width:"100%"},zIndexPopover:1e6,asyncSearchFn:w,asyncOptionsByValuesFn:async()=>[],onFocus:()=>u(!0),onBlur:()=>u(!1),optionsListWidth:"field",forceOptionsRefresh:!0})]})}},61680:function(e,t,n){n.r(t);var l=n(35944),r=n(7544),i=n(61828),a=n(60141),s=n(60083);let o={padding:0,margin:"auto"};t.default=e=>{let{points:t,isOpen:n,onClose:c,onChange:d}=e;return(0,l.BX)(r.Z,{open:n,onClose:c,view:"mobile",align:"center",zIndex:i.L2.ABOVE_TABBAR,hasCloser:!1,children:[(0,l.tZ)(r.Z.Header,{title:"Выберите, куда доставить заказ",contentCSS:o,leftAddons:(0,l.tZ)("button",{type:"button",title:"Назад",onClick:c,children:(0,l.tZ)(a.Z,{})})}),(0,l.tZ)(r.Z.Content,{children:(0,l.tZ)(s.Z,{points:t,onChange:d})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.