1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[3560],{53014(t,e,s){s.d(e,{Y:()=>r});const n=new class{#t=new Set;add(t){"function"==typeof t&&this.#t.add(t)}remove(t){"function"==typeof t&&this.#t.delete(t)}getFrameHandlers(){return Array.from(this.#t)}},i=t=>{n.getFrameHandlers().forEach(e=>{n.remove(e);try{e(t)}catch(t){console.error("error while running anim_frame_handlers",t)}}),window.requestAnimationFrame(i)};window.requestAnimationFrame(i);const r=n},14001(t,e,s){s.d(e,{A:()=>n});const n=(0,s(96540).createContext)(null)},29191(t,e,s){s.d(e,{A:()=>v});var n=s(13561),i=s(49995),r=s(13953),a=s(94486),o=s(35196),l=s(34482),h=s(16138);const _=s.p+"3ff5e0cc60147cddb738.svg";var u=s(29518),c=s(53350);const d="E1htWt_",m="gaSCgNL",p="OU2WKWl",f="PiumGG6",y="rzjxSBT";var g=s(74848);const v=function({style:t}){const e=(0,n.wA)(),s=(0,n.d4)(a.vM),v=(0,n.d4)(r.Hl),T=(0,n.d4)(h.HK),E=(0,n.d4)(u.wD),b=(0,n.d4)(a.FN),Y=(0,n.d4)(h.nO),k=(0,n.d4)(h.FY),A=(0,n.d4)(h.iq),M=!(0,n.d4)(h.HY),w=(0,n.d4)(c.aX),x=(0,n.d4)(c.qj),N=x&&!T,S=N?w&&{lat:w.lat,lng:w.lng}:M&&{lat:Y,lng:k},D=!N&&A===i.A.locationTypes.POI;if(!E&&s&&s.PanoProvider&&(T||x))return(0,g.jsx)("button",{style:t,className:d,onClick:()=>{v||b||!S||(e((0,l.XE)(S,D)),e((0,l.Wp)())),e((0,l.eh)(!0))},children:(0,g.jsxs)("div",{className:m,children:[(0,g.jsx)("img",{className:p,src:_,width:24,alt:"panorama icon"}),(0,g.jsx)("img",{className:f,src:`${s.PanoProvider}0/0/0/${s.Feature.cd}`,alt:"street view"}),v?null:(0,g.jsx)(o.A,{className:y,text:"ÙÙ
Ø§Û 360 Ø¯Ø±Ø¬Ù Ø®ÛØ§Ø¨Ø§Ù",position:o.m.RIGHT})]})})}},31390(t,e,s){s.d(e,{A:()=>g});var n=s(96540),i=s(96178),r=s(29191),a=s(10660),o=s(65550);function l(t){return 1-h(1-t)}function h(t){if(t<1/2.75)return 7.5625*t*t;let e=t;return t<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:t<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}const _={linear:function(t){return t},inQuad:function(t){return t*t},outQuad:function(t){return t*(2-t)},inOutQuad:function(t){let e=2*t;return e<1?.5*e*e:-.5*(--e*(e-2)-1)},inCube:function(t){return t*t*t},outCube:function(t){let e=t;return--e*e*e+1},inOutCube:function(t){let e=2*t;return e<1?.5*e*e*e:.5*((e-=2)*e*e+2)},inQuart:function(t){return t*t*t*t},outQuart:function(t){let e=t;return 1- --e*e*e*e},inOutQuart:function(t){let e=2*t;return e<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},inQuint:function(t){return t*t*t*t*t},outQuint:function(t){let e=t;return--e*e*e*e*e+1},inOutQuint:function(t){let e=2*t;return e<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},inSine:function(t){return 1-Math.cos(t*Math.PI/2)},outSine:function(t){return Math.sin(t*Math.PI/2)},inOutSine:function(t){return.5*(1-Math.cos(Math.PI*t))},inExpo:function(t){return 0===t?0:1024**(t-1)},outExpo:function(t){return 1===t?t:1-2**(-10*t)},inOutExpo:function(t){if(0===t)return 0;if(1===t)return 1;let e=t;return(e*=2)<1?.5*1024**(e-1):.5*(2-2**(-10*(e-1)))},inCirc:function(t){return 1-Math.sqrt(1-t*t)},outCirc:function(t){return Math.sqrt(1-(t-1)*(t-1))},inOutCirc:function(t){let e=2*t;return e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},inBack:function(t){const e=1.70158;return t*t*((e+1)*t-e)},outBack:function(t){const e=1.70158;let s=t;return--s*s*((e+1)*s+e)+1},inOutBack:function(t){const e=2.5949095;let s=t;return(s*=2)<1?s*s*((e+1)*s-e)*.5:.5*((s-=2)*s*((e+1)*s+e)+2)},inBounce:l,outBounce:h,inOutBounce:function(t){return t<.5?.5*l(2*t):.5*h(2*t-1)+.5},inElastic:function(t){let e,s=.1;if(0===t)return 0;if(1===t)return 1;!s||s<1?(s=1,e=.1):e=.4*Math.asin(1/s)/(2*Math.PI);let n=t;return-s*2**(10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/.4)},outElastic:function(t){let e,s=.1;return 0===t?0:1===t?1:(!s||s<1?(s=1,e=.1):e=.4*Math.asin(1/s)/(2*Math.PI),s*2**(-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},inOutElastic:function(t){let e,s=.1;const n=.4;if(0===t)return 0;if(1===t)return 1;!s||s<1?(s=1,e=.1):e=n*Math.asin(1/s)/(2*Math.PI);let i=t;return(i*=2)<1?s*2**(10*(i-=1))*Math.sin((i-e)*(2*Math.PI)/n)*-.5:s*2**(-10*(i-=1))*Math.sin((i-e)*(2*Math.PI)/n)*.5+1}};var u=s(53014),c=s(60440);function d(t,{x_axis:e=!0,y_axis:s=!0,selector:n="*"}){return Array.from(t.querySelectorAll(n)).filter(t=>e&&t.offsetWidth<t.scrollWidth||s&&t.offsetHeight<t.scrollHeight)}class m{#e=NaN;#s=NaN;#n=!1;#i=NaN;#r=NaN;#a=!1;#o=0;#l=0;#h=0;#_=!1;#u=0;#c=0;#d=0;#m=0;#p=0;#f=!1;#y=i.A.GONE;#g=[];#v=null;#T=null;#E=null;
1#b=0;#Y;#k;#A;#M;#w;#x;#N=null;#S=!1;#D=!1;#P;#L;getTranslateYForTargetPhase;boundMoveFrame;boundTranslateYAnimFrame;boundOnMouseMove;scrollXDisabler=t=>{!function(t,e){t.stopImmediatePropagation(),t.currentTarget.scrollLeft=t.currentTarget.initialScrollLeft,t.currentTarget.scrollTop=t.currentTarget.initialScrollTop,e.onMouseMove(t)}(t,this)};#F;#C;#H;constructor(t,e,s,n,i){this.#v=t,this.#E=e,this.#T=s,this.#Y=n,this.setProps(i),this.boundMoveFrame=this.moveFrame.bind(this),this.boundTranslateYAnimFrame=this.translateYAnimFrame.bind(this),this.boundOnMouseMove=this.onMouseMove.bind(this)}setProps({loadMore:t,has_half_expanded:e,updatePhase:s,getTopTranslateY:n,getBottomTranslateY:i,getTranslateYForTargetPhase:r,min_bottom:a,max_top:o,onStick:l=()=>{},onUnStick:h=()=>{},evaluateStickTranslateY:_}){this.#k=t,this.#A=e,this.#M=s,this.#w=i,this.#x=n,this.getTranslateYForTargetPhase=r,this.#C=a,this.#F=o,this.#P=l,this.#L=h,this.#H=_}ssrIsInitiallyExpanded(){return this.#v.current.dataset.initialPhase===i.A.EXPANDED}fixSsrPositions(){if(this.ssrIsInitiallyExpanded()){this.#v.current.removeAttribute("data-initial-phase"),this.#y=i.A.EXPANDED,this.#v.current.style.position="static",this.#v.current.style.width="unset",this.#v.current.style.height="unset",this.#E.current.style.position="fixed",this.#T.current.style.position="fixed";const t=this.getTranslateYForTargetPhase(this.#y,this.#E.current.clientHeight,!0,!0);this.setTranslateY(t)}}translateToStickPosition(){this.#D=!0,null!==this.#N&&this.#h<=this.#N&&this.setTranslateY(this.#N)}setWillChange(t){let e="auto";t&&(e="transform"),this.#E.current&&(this.#E.current.style.willChange=e),this.#T.current&&(this.#T.current.style.willChange=e)}resetStickTranslateY(){this.#N=null}stickyElementShouldStick(t){if(null!==this.#N)return Math.round(t)<=this.#N;const e=this.#E.current.querySelector("#stick_point");if(!e)return!1;const s=this.#E.current.querySelector("[data-role='hide-on-scroll']");s&&!this.#b&&(this.#b=s.scrollHeight);const n=e.getBoundingClientRect(),i=n.y<=0;return i&&null===this.#N&&("function"==typeof this.#H?this.#N=Math.round(this.#H(t,n)):this.#N=Math.floor(n.y<0?t-n.y:t)),i}setTranslateY(t){const e=`translateY(${t}px) translateZ(0)`;let s;this.#E.current&&(s=this.#E.current.querySelector("[data-role='hide-on-scroll']"),this.stickyElementShouldStick(this.#h)?null!==this.#N&&(this.#S||(this.#P(),this.#S=!0),this.#E.current.style.transform=`translateY(${this.#N-(this.#b?Math.min(this.#N-t,this.#b):0)}px) translateZ(0)`):(this.#S&&(this.#L(),this.#S=!1,this.resetStickTranslateY()),this.#E.current.style.transform=e)),s&&(!this.#N||this.#N-t<=0?s.style.height=`${this.#b}px`:this.#N-t<this.#b&&this.#N-t>0?s.style.height=this.#b+t-this.#N+"px":s.style.height="0"),this.#T.current&&(this.#T.current.style.transform=e),this.#h=t}stickHeaderElementToTopOnClick(){const t=this.#E.current.querySelector("#stick_point");this.stickyElementShouldStick(this.#h);const e=this.#h-t.getBoundingClientRect().y-1;this.animateTranslateY(this.#h,e,500)}scrollToTargetElement(t){const e=document.querySelector(`#${t}`).getBoundingClientRect(),s=this.#T.current.getBoundingClientRect(),n=e.top-s.top,i=this.#h-n;this.animateTranslateY(this.#h,i,1500)}evaluateTranslateY(t,e=!1){const s=this.#x(this.#T),n=this.#w();let i=t;return t<=s?i=s:e&&t>=n&&(i=n),this.#F&&i<this.#F?this.#F:this.#C&&i>this.#C?this.#C:i}translateYAnimFrame(){const t=Date.now(),e=_.outCube((t-this.#p)/this.#m),s=this.#u+this.#d*e,n=this.evaluateTranslateY(s);if(s!==n)return this.setTranslateY(n),void this.setWillChange(!1);const i=this.#f&&s<=this.#c,r=!this.#f&&s>=this.#c;if(i||r)return this.setTranslateY(this.#c),void this.setWillChange(!1);this.setTranslateY(s),u.Y.add(this.boundTranslateYAnimFrame)}animateTranslateY(t,e,s){this.#p=Date.now(),this.#u=t,this.#c=e,this.#d=e-t,this.#f=this.#d<0,this.#m=s,(0,c.el)(this.#Y.current,this.evaluateTranslateY(e)),this.setWillChange(!0),u.Y.add(this.boundTranslateYAnimFrame)}moveFrame(){if(this.#D)return void(this.#D=!1);const t=Date.now(),e=this.evaluateTranslateY(this.#l+this.#o,!0);this.setTranslateY(e),this.#g.push({timestamp:t,translate_y:e})}handleMove(){u.Y.add(this.boundMoveFrame)}preventIosBodyDragging(t){let e=t.pageX,s=t.pageY;if(window.TouchEvent&&t instanceof TouchEvent&&(e=t.targetTouches.item(0).pageX,s=t.targetTouches.item(0).pageY),isNaN(this.#r)&&(this.#r=s),isNaN(this.#i)&&(this.#i=e),this.#a)t.preventDefault();else{const n=Math.abs(e-this.#i),i=Math.abs(s-this.#r);i>n&&i>25&&(this.#a=!0,t.preventDefault())}}disableScrollForChildren(){d(this.#T.current,{y_axis:!1,selector:"div"}
1).forEach(t=>{t.initialScrollLeft=t.scrollLeft,t.initialScrollTop=t.scrollTop,t.addEventListener("mousemove",this.scrollXDisabler),t.addEventListener("touchmove",this.scrollXDisabler)})}enableScrollForChildren(){d(this.#T.current,{y_axis:!1,selector:"div"}).forEach(t=>{t.removeEventListener("mousemove",this.scrollXDisabler),t.removeEventListener("touchmove",this.scrollXDisabler)})}onMouseMove(t){let e=t.pageX;if(this.#l=t.pageY,window.TouchEvent&&t instanceof TouchEvent&&(e=t.targetTouches.item(0).pageX,this.#l=t.targetTouches.item(0).pageY),isNaN(this.#s)&&(this.#s=this.#l),isNaN(this.#e)&&(this.#e=e),!this.#n){const t=Math.abs(this.#l-this.#s),s=Math.abs(e-this.#e);if(s>t&&s>25)return this.#n=!0,window.removeEventListener("touchmove",this.boundOnMouseMove),void window.removeEventListener("mousemove",this.boundOnMouseMove);if(t>s&&t>25&&(this.#n=!0,this.disableScrollForChildren()),s>t)return}this.handleMove()}onMouseDown(t){if(this.#_)return;this.#_=!0,u.Y.remove(this.boundMoveFrame),u.Y.remove(this.boundTranslateYAnimFrame),this.setWillChange(!0),this.#g=[];const e=t instanceof TouchEvent?t.targetTouches.item(0).clientY:t.clientY;this.#o=new window.WebKitCSSMatrix(window.getComputedStyle(this.stickyElementShouldStick(this.#h)?this.#T.current:this.#E.current).getPropertyValue("transform")).m42-e,this.#l=t instanceof TouchEvent?t.targetTouches.item(0).pageY:t.pageY,this.handleMove(),window.addEventListener("touchmove",this.boundOnMouseMove),window.addEventListener("mousemove",this.boundOnMouseMove)}handleMenuBehaviorAfterDragRelease(){const{length:t}=this.#g;if(t<2)return;const e=this.#g[t-1];let s=this.#g[0];const n=this.#g[t-2].translate_y-e.translate_y>0;for(let e=t-2;e>-1;e--){const t=this.#g[e],i=this.#g[e+1];if(n!==t.translate_y-i.translate_y>0){s=i;break}}const r=this.getTranslateYForTargetPhase(i.A.EXPANDED,this.#E.current.clientHeight),a=e.translate_y-s.translate_y,o=e.timestamp-s.timestamp,l=Date.now()-e.timestamp<75,h=a<0,_=this.#y===i.A.EXPANDED&&!l&&e.translate_y<r,u=this.#y!==i.A.SHRUNK&&0===a||_,c=a/o,d=c**2/(2*(c/o)),m=Math.abs(2*d/c);let p=this.#h+10*d,f=10*m;const y=this.#y===i.A.EXPANDED&&l&&p<r;if(this.#k&&(u||y)&&this.#k(p,this.#T),u)return;if(y)return void this.animateTranslateY(this.#h,p,f);const g=this.getTranslateYForTargetPhase(i.A.SHRUNK,this.#E.current.clientHeight),v=this.getTranslateYForTargetPhase(i.A.HALF_EXPANDED,this.#E.current.clientHeight),T=[i.A.SHRUNK,i.A.GONE].includes(this.#y)&&(h&&l||e.translate_y<g-50),E=this.#y===i.A.EXPANDED&&!h&&l&&p>r,b=this.#y===i.A.EXPANDED&&!h&&e.translate_y>r+50,Y=this.#A&&T,k=this.#y===i.A.HALF_EXPANDED&&this.#A&&h&&e.translate_y<v-50,A=this.#A&&b,M=this.#y===i.A.HALF_EXPANDED&&this.#A&&!h&&e.translate_y>v+50,w=[i.A.SHRUNK,i.A.GONE].includes(this.#y)&&this.#A&&e.translate_y<v-50,x=this.#y===i.A.EXPANDED&&this.#A&&e.translate_y>v+50;let N=null;f=500,w?(N=i.A.EXPANDED,p=r):x?(N=i.A.SHRUNK,p=g):A||Y?(N=i.A.HALF_EXPANDED,p=v):T||k?(N=i.A.EXPANDED,p=r):b||M?(N=i.A.SHRUNK,p=g):E?(N=i.A.EXPANDED,p=r):(p=this.getTranslateYForTargetPhase(this.#y,this.#E.current.clientHeight),f=250),this.animateTranslateY(this.#h,p,f),null!==N&&N!==this.#y&&(this.#y=N,this.#M(N))}onMouseUp(){this.#_&&(this.#_=!1,this.#n=!1,this.#s=NaN,this.#e=NaN,this.#a=!1,this.#r=NaN,this.#i=NaN,window.removeEventListener("touchmove",this.boundOnMouseMove),window.removeEventListener("mousemove",this.boundOnMouseMove),this.enableScrollForChildren(),this.handleMenuBehaviorAfterDragRelease())}get current_phase(){return this.#y}set current_phase(t){this.#y=t}get last_translate_y(){return this.#h}}var p=s(14001);const f={ssr_wrapper:"woFGkXx",bottom_sheet_head:"jTmhf4l",ssr_child:"xaVkMy3",bottom_sheet_head_content_container:"EZ7L1QR",bottom_sheet_head_content:"LuhI86G",transparent:"q6P1TzU",remove_border_radius:"Scf5toH",bottom_sheet_body:"sXWsvD5",higher_z_index:"L0t3gCl",bottom_sheet_close_btn:"xjowwTS"};var y=s(74848);const g=function(t){const e=(0,n.useRef)(null),s=(0,n.useRef)(null),l=(0,n.useRef)(null),h=n.Children.toArray(t.children),_=h.filter(t=>!0===t.props.detached),u=h.filter(t=>!0===t.props.head),c=h.filter(t=>!0===t.props.body),d=(0,n.useRef)(null),g=(0,n.useRef)(null);d.current?.setProps(t),(0,n.useEffect)(()=>
1{if(null===s.current||null===l.current)return;g.current=(0,o.Mu)(),null===d.current&&(d.current=new m(e,s,l,g,t));const n=d.current.onMouseDown.bind(d.current),i=d.current.onMouseUp.bind(d.current);return s.current.addEventListener("mousedown",n),s.current.addEventListener("mouseup",i),s.current.addEventListener("touchstart",n,{passive:!0}),s.current.addEventListener("touchend",i),l.current.addEventListener("mousedown",n),l.current.addEventListener("mouseup",i),l.current.addEventListener("touchstart",n,{passive:!0}),l.current.addEventListener("touchend",i),()=>{null!==s.current&&null!==l.current&&(s.current.removeEventListener("mousedown",n),s.current.removeEventListener("mouseup",i),s.current.removeEventListener("touchstart",n),s.current.removeEventListener("touchend",i),l.current.removeEventListener("mousedown",n),l.current.removeEventListener("mouseup",i),l.current.removeEventListener("touchstart",n),l.current.removeEventListener("touchend",i))}},[t.lock]),(0,n.useEffect)(()=>{t.phase===i.A.EXPANDED&&d.current.ssrIsInitiallyExpanded()?d.current.fixSsrPositions():d.current.current_phase!==t.phase&&(d.current.animateTranslateY(t.min_bottom||d.current.last_translate_y,d.current.getTranslateYForTargetPhase(t.phase,s.current.clientHeight,!0),500),d.current.current_phase=t.phase)},[t.phase]);let v="";return(0,y.jsx)(p.A.Provider,{value:d.current,children:(0,y.jsxs)("div",{ref:e,className:"","data-initial-phase":"",suppressHydrationWarning:!0,children:[(0,y.jsx)("div",{ref:s,className:[f.bottom_sheet_head,v].join(" "),suppressHydrationWarning:!0,children:(0,y.jsxs)("div",{className:f.bottom_sheet_head_content_container,children:[t.showStreetView?(0,y.jsx)(r.A,{style:{top:"-56px",left:"10px"}}):null,t.showCloseButton?(0,y.jsx)("button",{className:f.bottom_sheet_close_btn,onClick:t.closeHandler,children:(0,y.jsx)("img",{src:a,alt:""})}):null,_,(0,y.jsx)("div",{className:[f.bottom_sheet_head_content,t.phase===i.A.EXPANDED?f.remove_border_radius:"",t.transparent?f.transparent:""].join(" "),children:u})]})}),(0,y.jsx)("div",{ref:l,style:{background:t.background},className:[f.bottom_sheet_body,t.transparent?f.transparent:"",t.higher_z_index?f.higher_z_index:"",v].join(" "),suppressHydrationWarning:!0,children:c})]})})}}}]); 2//# sourceMappingURL=3560-f00f303ee53d4dd56075.js.map
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.