PageSourceSearch

https://www.hamrah-mechanic.com/_next/static/chunks/8654-bb09a04a197e18bc.js

js hamrah-mechanic.com collected 2026-10-01 13:01:42 UTC 11,152 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8654],{98654:function(i,b,a){"use strict";a.r(b),a.d(b,{"default":function(){return G}});var j=a(59499),k=a(4730),l=a(67294),c=a(66982),m=a.n(c),d=a(94184),n=a.n(d),o=a(72238),p=a(22258),q=a(71762),r=a(23525),e=a(72662),s=a.n(e),f=a(94174),t=a.n(f),u=a(85893),v=["galleryClick","backClick","iframeSrc"];function w(c,d){var a=Object.keys(c);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(c);d&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),a.push.apply(a,b)}return a}function x(c){for(var a=1;a<arguments.length;a++){var b=null!=arguments[a]?arguments[a]:{};a%2?w(Object(b),!0).forEach(function(a){(0,j.Z)(c,a,b[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(b)):w(Object(b)).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(b,a))})}return c}var y=function(a){var c=a.galleryClick,b=a.backClick,d=a.iframeSrc,e=(0,k.Z)(a,v);return(0,u.jsxs)(r.Z,x(x({className:s().modal},e),{},{children:[(0,u.jsx)("div",{className:"d-none d-md-flex",children:(0,u.jsx)(p.Z,{className:s().header__fullscreen,rightElement:(0,u.jsx)(q.z,{type:"button",buttonType:"primary",label:"گالری تصاویر خودرو",className:s().header__btn,onClick:c}),leftElement:(0,u.jsxs)("div",{className:s().header__back,onClick:b,children:[(0,u.jsx)("span",{className:s().header__text,children:"بازگشت به صفحه جزئیات خودرو"}),(0,u.jsx)(o.Z,{name:"arrow-up",fontSize:24,className:s().header__icon})]})})}),(0,u.jsxs)("div",{className:"".concat(s()["header__fullscreen--mobile"]," d-md-none"),children:[(0,u.jsx)(o.Z,{name:"clear-text",fontSize:24,color:t().color_carbon_5,onClick:b}),(0,u.jsx)("div",{children:"تصویر 360 درجه خودرو"}),(0,u.jsx)(o.Z,{name:"arrow-up",fontSize:24,color:t().color_carbon_5,className:s().header__icon,onClick:b})]}),d&&(0,u.jsx)("div",{className:s().iframe,children:(0,u.jsx)("iframe",{src:d,className:s().iframe__self})}),(0,u.jsxs)("div",{className:s().footer__fullscreen,children:[(0,u.jsxs)("div",{className:s().footer__detail,children:[(0,u.jsx)(o.Z,{name:"spin",color:t().color_carbon_5,fontSize:32}),"تصویر را بچرخانید ، زوم کنید",(0,u.jsx)("span",{className:s()["footer__detail--small"],children:"هرآنچه میخواهید ببینید"})]}),(0,u.jsx)(q.z,{type:"button",buttonType:"primary",label:"گالری تصاویر خودرو",className:s().footer__btn,onClick:c,block:!0}),(0,u.jsx)("span",{className:s().footer__text,onClick:b,children:"بازگشت به صفحه جزئیات خودرو"})]})]}))},g=a(43132),z=a.n(g),A=function(a){var i=a.children,j=a.contentClassName,b=a.showIndicator,c=a.indicatorWidth,d=void 0===c?60:c,e=a.indicatorHeight,f=a.thumbWidth,g=void 0===f?24:f,k=a.thumbClassName,m=a.trackClassName,o=a.containerClassName,p=(0,l.useRef)(null),h=(0,l.useState)(0),q=h[0],s=h[1],r=(0,l.useMemo)(function(){return q*(d-g)},[q,d,g]);return(0,u.jsxs)("div",{className:n()(z().wrapper,o),children:[(0,u.jsx)("div",{ref:p,onScroll:function(){var a=p.current;if(a){var b=a.scrollWidth-a.clientWidth;s(b>0?a.scrollLeft/b:0)}},className:n()(z().container,j),children:i}),(void 0===b||b)&&(0,u.jsx)("div",{className:n()(z().track,m),style:{width:d,height:void 0===e?6:e},children:(0,u.jsx)("div",{className:n()(z().thumb,k),style:{width:g,transform:"translateX(".concat(r,"px)")}})})]})},B=a(65181);a(34198);var h=a(56862),C=a.n(h),D=a(64999),E=["items","infinite","showBullets","showPlayButton","showFullscreenButton","customClass","isFullScreen","limitThumbnail","showThumbnail","badgeType","commingSoon"];function F(c,d){var a=Object.keys(c);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(c);d&&(b=b.filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable})),a.push.apply(a,b)}return a}var G=function(a){var b=a.items,d=a.infinite,e=a.showBullets,f=a.showPlayButton,g=a.showFullscreenButton,h=a.customClass,H=a.isFullScreen,i=a.limitThumbnail,I=void 0===i?5:i,q=a.showThumbnail,J=a.badgeType,r=a.commingSoon,K=void 0!==r&&r,x=(0,k.Z)(a,E),z=(0,l.useRef)(),s=(0,l.useState)(!1),c=s[0],L=s[1],t=(0,l.useState)(!1),M=t[0],N=t[1],v=(0,l.useState)(!1),G=v[0],O=v[1],w=function(){return(J===D.gZ.zeroKilometer||K)&&!c&&(0,u.jsx)("div",{className:n()(C()["badge-container"],(0,j.Z)({},C()["badge-container__zero-kilometer"],J===D.gZ.zeroKilometer)),children:(0,u.jsx)("div",{className:C()["badge-container__text"],children:D.Tv[J]})})},P=function(c){var a,b;null===(a=z.current)|| void 0===a||a.slideToIndex(c),null===(b=z.current)|| void 0===b||b.fullScreen(),L(!0),null==H||H(!0)};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("div",{className:n()(C().gallery,void 0===h?"":h),children:[c&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(p.Z,{className:C().header__fullscreen,rightElement:(0,u.jsxs)("div",{className:C().header__back,onClick:function(){L(!1),z.current.exitFullScreen()},children:[(0,u.jsx)(o.Z,{name:"arrowright",fontSize:24,cursor:"pointer",className:C().header__icon}),(0,u.jsx)("span",{className:C().header__text,children:" بازگشت به صفحه جزئیات خودرو"})]})}),(0,u.jsx)("div",{className:C().footer__fullscreen,children:(0,u.jsx)("span",{className:C().footer__text,onClick:function(){L(!1),z.current.exitFullScreen()},children:"بازگشت به صفحه جزئیات خودرو"})})]}),(0,u.jsxs)("div",{className:n()("carousel-container",(0,j.Z)({},"d-none d-md-block",!c)),children:[c&&function(a){return(0,u.jsxs)("div",{"data-tag-value":"ExhibitionDetail-body-Gallery-click-FullPageImage",onClick:a,className:"close-gallery-fullscreen",children:[(0,u.jsx)(o.Z,{name:"arrowright",cursor:"pointer",fontSize:24,className:C().gallery__icon,onClick:function(){L(!1),z.current.exitFullScreen()}}),(0,u.jsx)("h4",{className:"close-gallery-title",children:"گالری تصاویر"})]})}(function(){z.current.exitFullScreen(),L(!1),null==H||H(!1)}),(0,u.jsx)(m(),function(c){for(var a=1;a<arguments.length;a++){var b=null!=arguments[a]?arguments[a]:{};
1a%2?F(Object(b),!0).forEach(function(a){(0,j.Z)(c,a,b[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(b)):F(Object(b)).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(b,a))})}return c}({items:b,lazyLoad:!0,infinite:void 0===d||d,showBullets:void 0!==e&&e,showPlayButton:void 0!==f&&f,showFullscreenButton:void 0===g||g,useBrowserFullscreen:!1,renderLeftNav:function(a,c){return(0,u.jsx)("button",{"data-tag-value":"ExhibitionDetail-body-Gallery-click-PreviousImage",className:n()(1===b.length?"hide":"custom-prev-nav"),disabled:c,onClick:a,children:(0,u.jsx)(o.Z,{className:"gallery-arrow-icon",name:"chevron-right",cursor:"pointer"})})},renderRightNav:function(a,c){return(0,u.jsx)("button",{"data-tag-value":"ExhibitionDetail-body-Gallery-click-NextImage",className:n()(1===b.length?"hide":"custom-next-nav"),disabled:c,onClick:a,children:(0,u.jsx)(o.Z,{className:"gallery-arrow-icon",name:"chevron-right",cursor:"pointer"})})},renderItem:function(a){return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(B.Z,{className:"image-gallery-image",src:a.original,width:602,height:337,layout:"responsive",unoptimized:!0,priority:a.original===b[0].original})})},renderThumbInner:function(a){return(0,u.jsxs)("span",{className:"image-gallery-thumbnail-inner",children:[b[4]===a&&b.length>I&&(0,u.jsxs)("span",{className:n()(C()["images-length"],{"d-none":M}),onClick:function(){L(!0),z.current.fullScreen()},children:[b.length-I," +"]}),(0,u.jsx)(B.Z,{src:a.thumbnail,className:"image-gallery-thumbnail-image",alt:"thumbnail",width:112,height:63,layout:"responsive",unoptimized:!0})]},a.thumbnail)},showThumbnails:(void 0===q||q)&&1!==b.length,onBeforeSlide:function(a){N(Boolean(a)),a!==I-1||M||z.current.fullScreen()},ref:z,showIndex:c,onClick:function(){z.current.fullScreen(),L(!0),null==H||H(!0)}},x)),w()]}),(0,u.jsxs)(A,{containerClassName:C()["horizontal-container"],contentClassName:n()(C()["horizontal-content"],(0,j.Z)({},C()["horizontal-content__one-item"],1===b.length)),indicatorWidth:150,thumbWidth:30,showIndicator:!(b.length<=1),children:[w(),b.map(function(a,c){return(0,u.jsx)("div",{className:n()(C()["horizontal-image"],(0,j.Z)({},C()["horizontal-image__one-item"],1===b.length)),onClick:function(){return P(c)},children:(0,u.jsx)(B.Z,{src:a.original,alt:"",layout:"fill",objectFit:"cover",unoptimized:!0,priority:a.original===b[0].original})},a.original)})]})]}),(0,u.jsx)(y,{open:G,disableClose:!0,galleryClick:function(){O(!1),z.current.fullScreen(),L(!0)},backClick:function(){O(!1),L(!1),z.current.exitFullScreen()}})]})}},56862:function(a){a.exports={gallery:"gallery_gallery__OBv_8","badge-container":"gallery_badge-container__TftOM","badge-container__zero-kilometer":"gallery_badge-container__zero-kilometer__5i6hy","badge-container__text":"gallery_badge-container__text__PpJMu","horizontal-container":"gallery_horizontal-container__eSnkQ","horizontal-image":"gallery_horizontal-image__osWS6","horizontal-image__one-item":"gallery_horizontal-image__one-item__K1QHK","horizontal-content":"gallery_horizontal-content__1QteP","horizontal-content__one-item":"gallery_horizontal-content__one-item__2lOwc",header__fullscreen:"gallery_header__fullscreen__WWCxU",header__btn:"gallery_header__btn__ZRvYr",header__back:"gallery_header__back__VD6AT",header__text:"gallery_header__text__1R9qu",header__icon:"gallery_header__icon__LOBXj",footer__fullscreen:"gallery_footer__fullscreen__sAdMt",footer__btn:"gallery_footer__btn__bENXH",footer__text:"gallery_footer__text__PF5SS","images-length":"gallery_images-length__nNMDR",gallery__icon:"gallery_gallery__icon__Bp_hL",badge:"gallery_badge__AzZ2_","spin-container":"gallery_spin-container___AuF0","shareIcon-container":"gallery_shareIcon-container__hpA7r","luxury-container":"gallery_luxury-container__92NLi","luxury-container__text":"gallery_luxury-container__text__JFzhm","luxury-container__luxury":"gallery_luxury-container__luxury__Kz6yV","luxury-container__badge":"gallery_luxury-container__badge__3d5V9","luxury-container__icon":"gallery_luxury-container__icon__3d6dR"}},43132:function(a){a.exports={wrapper:"horizontalScroll_wrapper__GVlTI",container:"horizontalScroll_container__i7afm",track:"horizontalScroll_track__hUcdv",thumb:"horizontalScroll_thumb__RU1_Y"}},72662:function(a){a.exports={modal:"iframeModal_modal__cUnNV",header__fullscreen:"iframeModal_header__fullscreen__g4ayj","header__fullscreen--mobile":"iframeModal_header__fullscreen--mobile__S65Dg",header__btn:"iframeModal_header__btn__QEM7r",header__back:"iframeModal_header__back___QSx2",header__text:"iframeModal_header__text__MqetR",header__icon:"iframeModal_header__icon__DMSVq",footer__fullscreen:"iframeModal_footer__fullscreen__qXLXs",footer__detail:"iframeModal_footer__detail__LIf2M","footer__detail--small":"iframeModal_footer__detail--small__VU0Jr",footer__btn:"iframeModal_footer__btn__qDNne",footer__text:"iframeModal_footer__text__LKbrZ",iframe:"iframeModal_iframe__4qYFU",iframe__self:"iframeModal_iframe__self__A0F_2"}}}])

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.