PageSourceSearch

https://xn--80aaq1be0b9a.xn--p1ai/static/resources/SabyMapsDeliver…?x_module=eb63240fc4cfe00ba38b5f4b01bae480

js xn--80aaq1be0b9a.xn--p1ai collected 2026-10-02 02:14:07 UTC 6,203 bytes, 1 lines download raw bytes

1define("SabyMapsDelivery/picker",["react/jsx-runtime","react","UI/Adaptive","SabyMapsDelivery/common","Controls/buttons","require","exports","css!SabyMapsDelivery/_component/Picker/style","css!SabyMapsDelivery/tailwind","css!Tailwind/tailwind"],(function(e,i,l,n,t,r,o){var s,a;return Object.defineProperty(o,"__esModule",{value:!0}),s=function(e,i,l,n,t,r,o){"use strict";return Object.defineProperty(i,"__esModule",{value:!0}),i.default=(0,t.forwardRef)((function(i,s){var a,d,c,u,v;const[p,y]=(0,t.useState)(!1),f=(0,t.useRef)(),m=(0,t.useRef)(null),_=(0,t.useRef)(null),b=null==m?void 0:m.current,w=(0,r.getAdaptiveModeForLoaders)().device.isPhone(),{customGeocodeCallbackFilter:k,pickupPositionFilter:C,deliveryPositionFilter:T,deliveryTypesConfig:h,deliveryMapFilter:M,pickupListFilter:P,pickupMapFilter:S,defaultCenter:g,searchConfig:x,searchFilter:D,leftContent:F,customTemplate:E,className:N,item:O,prefetchFilter:A,onChangeDistrict:I,withoutTextCaption:L=!1,hasClient:j=!1}=i,B=(0,t.useMemo)((()=>{var e,l;if(i.readOnly)return o.TYPE_DELIVERY_TAB;if(null===(e=i.item)||void 0===e?void 0:e.deliveryType)return null===(l=i.item)||void 0===l?void 0:l.deliveryType;if(i.deliveryTypesConfig.delivery)return o.TYPE_DELIVERY_TAB;if(i.deliveryTypesConfig.pickup)return o.TYPE_PICKUP_TAB;else return o.TYPE_DELIVERY_TAB}),[null===(a=i.item)||void 0===a?void 0:a.deliveryType,i.deliveryTypesConfig.delivery,i.deliveryTypesConfig.pickup,i.readOnly]),R=(0,t.useMemo)((()=>B?o.CAPTIONS[B]:null),[B]),Y=(0,t.useMemo)((()=>{var e,l,n;const t=null===(l=null===(e=i.item)||void 0===e?void 0:e.address)||void 0===l?void 0:l.get("Name"),r=null===(n=i.item)||void 0===n?void 0:n.deliveryType,s=o.CAPTIONS_SMALL[r];return t?`${s}: ${t}`:null==R?void 0:R.name}),[null===(d=i.item)||void 0===d?void 0:d.address,null===(c=i.item)||void 0===c?void 0:c.deliveryType,null==R?void 0:R.name]),H=(0,t.useMemo)((()=>{var e,n,t,r,s,a,d;return(null===(t=null===(n=null===(e=i.item)||void 0===e?void 0:e.address)||void 0===n?void 0:n.get)||void 0===t?void 0:t.call(n,"Name"))?(0,l.jsxs)("span",{className:"tw-flex tw-flex-row",children:[!L&&(0,l.jsx)("span",{className:"\n                        controls-fontsize-xl\n                        controls-text-label\n                        controls-margin_right-s\n                        sabymaps-delivery__picker-type\n                        sabymaps-delivery-picker-type\n                        tw-inline-block\n                        sabymaps-delivery__picker-bold\n                    ",style:{fontWeight:"bold"},children:o.CAPTIONS_SMALL[(null===(r=i.item)||void 0===r?void 0:r.deliveryType)||o.TYPE_DELIVERY_TAB]}),(0,l.jsx)("span",{className:"controls-fontsize-xl\n                        sabymaps-delivery__picker-address\n                        sabymaps-delivery-picker-address\n                        tw-overflow-hidden\n                        SabyMapsDelivery-tw-overflow-ellipsis\n                        tw-inline-block",children:null===(d=null===(a=null===(s=i.item)||void 0===s?void 0:s.address)||void 0===a?void 0:a.get)||void 0===d?void 0:d.call(a,"Name")})]}):(0,l.jsx)("span",{className:"sabymaps-delivery-picker-address controls-fontsize-xl tw-inline-block",children:Y})}),[null===(u=i.item)||void 0===u?void 0:u.address,null===(v=i.item)||void 0===v?void 0:v.deliveryType,L,Y]),z=(0,t.useMemo)((()=>!L?null==R?void 0:R.icon:void 0),[L,null==R?void 0:R.icon]),$=(0,t.useCallback)((async()=>{var l;if(i.readOnly)return;if(!f.current){const{DialogOpener:i}=await new Promise(((i,l)=>{e(["Controls/popup"],i,l)}));f.current=new i}if(!(null==m?void 0:m.current))return;null===(l=f.current)||void 0===l||l.open({opener:b,template:"SabyMapsDelivery/dialog:Panel",top:12,width:960,maxWidth:960,modal:!0,overlayBackgroundStyle:"default",adaptiveOptions:{viewMode:"fullscreen"},eventHandlers:{onOpen:()=>{y(!0)},onClose:()=>{var e;y(!1),null===(e=i.onClose)||void 0===e||e.call(i,!1)},onResult:e=>{var l,n;const t=(null===(l=null==e?void 0:e.address)||void 0===l?void 0:l.clone())||null;if(void 0===i.allSelectIsHouse||!0===i.allSelectIsHouse)null==t||t.set("Level","house"),e.address=t;y(!1),null==I||I(e),null===(n=i.onClose)||void 0===n||n.call(i,!0)}},allowAdaptive:!0,templateOptions:{className:N,defaultCenter:g,deliveryTypesConfig:h,deliveryMapFilter:M,pickupMapFilter:S,pickupListFilter:P,prefetchFilter:A,customGeocodeCallbackFilter:k,pickupPositionFilter:C,deliveryPositionFilter:T,searchFilter:D,item:O,leftContent:F||E,searchConfig:x,onChangeDistrict:I,hasClient:j}})}),[null==m?void 0:m.current,F,E,N,g,h,M,S,P,A,k,C,T,D,O,x,I,i.allSelectIsHouse,i.onClose,j]);return(0,t.useEffect)((()=>
1{if(p)$().then()}),[i.defaultCenter,p,$]),(0,t.useEffect)((()=>{if(_.current)_.current.title=Y||""}),[Y]),(0,t.useEffect)((()=>()=>{var e;null===(e=f.current)||void 0===e||e.destroy()}),[]),(0,t.useImperativeHandle)(s,(()=>({isOpened:()=>{var e;return Boolean(null===(e=f.current)||void 0===e?void 0:e.isOpened())},open:()=>{$().then()}})),[$,f.current]),(0,l.jsx)("div",{ref:m,className:`\n                ${!w?"tw-flex":""}\n                tw-items-center\n                tw-w-full\n                sabymaps-delivery__picker\n                ${i.className||""}\n            `,children:(0,l.jsx)("div",{ref:_,className:`\n                    tw-w-full\n                    sabymaps-delivery__picker-truncate\n                    ${w?"sabymaps-delivery__picker-buttonWrapper":""}\n                `,children:(0,l.jsx)(n.Button,{className:"\n                        tw-items-center\n                        sabymaps-delivery__picker-button\n                        tw-h-auto\n                    ",viewMode:"filled",fontSize:"xl",icon:z,iconSize:"s",iconStyle:null==R?void 0:R.iconStyle,buttonStyle:"default",inlineHeight:"l",contrastBackgroun
1d:!0,caption:H,onClick:$})})})})),i}(r,{},e,t,i,l,n,"undefined"==typeof css_SabyMapsDelivery__component_Picker_style||css_SabyMapsDelivery__component_Picker_style,"undefined"==typeof css_Tailwind_tailwind||css_Tailwind_tailwind,"undefined"==typeof css_SabyMapsDelivery_tailwind||css_SabyMapsDelivery_tailwind),a=s,o.Picker=void 0,Object.defineProperty(o,"Picker",{enumerable:!0,get:function(){return a.default}}),o}));

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.