PageSourceSearch

https://www.hamrah-mechanic.com/_next/static/chunks/9000.31d612812b7f9415.js

js hamrah-mechanic.com collected 2026-09-24 10:17:01 UTC 8,997 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9e3],{9e3:function(g,c,a){"use strict";a.r(c),a.d(c,{"default":function(){return A}});var h=a(67294),i=a(63763),j=a(72238),k=a(2775),l=a(14284),d=a(72201),m=a.n(d),n=a(85893),o=function(a){var d=a.showTabs,b=a.yearTabs,c=a.onChangeTab,e=a.options,f=a.selected,g=a.onSelect;return(0,n.jsxs)(n.Fragment,{children:[d&&b&&c&&(0,n.jsx)(l.Z,{onChange:c,items:b,className:m()["tab-container"],itemClassName:m()["tab-container-item"],activeItemClassName:m()["tab-container-item-active"]}),(0,n.jsx)("ul",{className:m()["year-list"],children:e.map(function(a){return(0,n.jsx)("li",{className:"".concat(m()["year-list__item"]," ").concat((null==f?void 0:f.value)===a.value?m()["year-list__item--active"]:""),onClick:function(){return g(a)},children:a.label},a.value)})})]})},p=a(59499),q=a(96223),b=a(83052),r=a(97315);function s(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 t(c){for(var a=1;a<arguments.length;a++){var b=null!=arguments[a]?arguments[a]:{};a%2?s(Object(b),!0).forEach(function(a){(0,p.Z)(c,a,b[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(b,a))})}return c}function u(d){var e,f,o=d.shamsi,p=d.gregorian,A=d.onMinSelected,B=d.onMaxSelected,g=(0,h.useContext)(q.U),i=g.filters,C=g.dispatch,s=g.filtersList,j=(0,h.useState)("shamsi"),k=j[0],D=j[1],l=(0,h.useState)([{id:1,title:"شمسی",active:!0},{id:2,title:"میلادی"}]),u=l[0],E=l[1],v=(0,h.useMemo)(function(){var a,b;return{solarYears:(null==s?void 0:null===(a=s.years)|| void 0===a?void 0:a.solarYears)||[],gregorianYears:(null==s?void 0:null===(b=s.years)|| void 0===b?void 0:b.gregorianYears)||[]}},[s]),m=("shamsi"===k?o:p).queryKey,n=(0,h.useMemo)(function(){return("shamsi"===k?v.solarYears:v.gregorianYears).map(function(a){return{label:String(a),value:String(a)}}).sort(function(a,b){return parseFloat(b.value)-parseFloat(a.value)})},[k,v]),F=function(b){var a="shamsi"===b?o:p;C({type:"setFilter",filterName:a.queryKey,filterValue:{min:{label:"",value:String(a.MIN_YEAR)},max:{label:"",value:String(a.MAX_YEAR)}}}),C({type:"routerPush",paramName:a.queryKey,paramValue:""})},a=(null===(e=i[m])|| void 0===e?void 0:e.min)||null,c=(null===(f=i[m])|| void 0===f?void 0:f.max)||null,w=Number(null==a?void 0:a.value)===b.Fh||Number(null==a?void 0:a.value)===b.Lu?null:a,x=Number(null==c?void 0:c.value)===b.pA||Number(null==c?void 0:c.value)===b.AR?null:c,G=function(a){var b,c,d="shamsi"===k?o:p,e=d.MIN_YEAR,f=d.MAX_YEAR;C({type:"setFilter",filterName:m,filterValue:a}),C({type:"routerPush",paramName:m,paramValue:"".concat((null===(b=a.min)|| void 0===b?void 0:b.value)||e,",").concat((null===(c=a.max)|| void 0===c?void 0:c.value)||f)})},y=(0,r.mG)(n,"gt",c),z=(0,r.mG)(n,"lt",a);return{yearTabs:u,handleYearTabs:function(b){var a="شمسی"===b.title?"shamsi":"gregorian";a!==k&&F(k),E(function(a){return a.map(function(a){return t(t({},a),{},{active:a.id===b.id})})}),D(a)},minDisplay:w,maxDisplay:x,minOptions:y,maxOptions:z,handleMinYear:function(b){var a=t({},i[m])||{};a.min=b,G(a),null==A||A()},handleMaxYear:function(b){var a=t({},i[m])||{};a.max=b,G(a),null==B||B()}}}var e=a(94174),v=a.n(e),w=function(b){var s=b.shamsi,t=b.gregorian,f=b.minPlaceholder,g=b.maxPlaceholder,l=b.tagclassName,w=(0,h.useContext)(q.U),c=w.cars,p=(0,h.useState)(!1),x=p[0],F=p[1],r=(0,h.useState)(!1),y=r[0],G=r[1],a=u({shamsi:s,gregorian:t,onMinSelected:function(){F(!1),G(!0)},onMaxSelected:function(){return G(!1)}}),z=a.yearTabs,A=a.handleYearTabs,d=a.minDisplay,e=a.maxDisplay,B=a.minOptions,C=a.maxOptions,D=a.handleMinYear,E=a.handleMaxYear;return(0,n.jsxs)("div",{className:m()["select-container"],children:[(0,n.jsx)("div",{className:"".concat(m()["select-container__inner"]," ").concat(l," mb-2"),children:(0,n.jsx)(i.Z,{leftIcon:(0,n.jsx)(j.Z,{name:"chevron-left",fontSize:12,color:v().color_carbon_3}),onClick:function(){return F(!0)},placeholder:f,value:(null==d?void 0:d.label)||"",className:m()["select-container__input"],readOnly:!0})}),(0,n.jsx)("div",{className:"".concat(m()["select-container__inner"]," ").concat(l),children:(0,n.jsx)(i.Z,{leftIcon:(0,n.jsx)(j.Z,{name:"chevron-left",fontSize:12,color:v().color_carbon_3}),onClick:function(){return G(!0)},placeholder:g,value:(null==e?void 0:e.label)||"",readOnly:!0,className:m()["select-container__input"]})}),(0,n.jsx)(k.Z,{open:x,close:function(){return F(!1)},title:f,initialHeight:65,bottomSheetBodyClassName:m().modal,buttons:[{type:"button",buttonType:"primary",label:"نمایش ".concat(Math.min(c.totalCount,100)).concat(c.totalCount>100?"+":""," خودرو"),className:m()["bottom-sheet-modal-button"],onClick:function(){return F(!1)}}],children:(0,n.jsx)(o,{showTabs:!0,yearTabs:z,onChangeTab:A,options:B,selected:d,onSelect:D})}),(0,n.jsx)(k.Z,{open:y,close:function(){return G(!1)},title:g,initialHeight:65,bottomSheetBodyClassName:m().modal,buttons:[{type:"button",buttonType:"primary",label:"نمایش ".concat(Math.min(c.totalCount,100)).concat(c.totalCount>100?"+":""," خودرو"),className:m()["bottom-sheet-modal-button"],onClick:function(){return G(!1)}}],children:(0,n.jsx)(o,{options:C,selected:e,onSelect:E})})]})}
1,x=a(16376),f=a(77935),y=a.n(f),z={shamsi:{MIN_YEAR:b.Fh,MAX_YEAR:b.pA,queryKey:"year"},gregorian:{MIN_YEAR:b.Lu,MAX_YEAR:b.AR,queryKey:"gregorianyear"}},A=function(c){var f=c.modal,p=c.openModal,E=c.closeModal,r=(0,h.useContext)(q.U),g=r.cars,l=(0,h.useState)("main"),b=l[0],F=l[1],a=u({shamsi:z.shamsi,gregorian:z.gregorian,onMinSelected:function(){return F("till")},onMaxSelected:function(){return F("main")}}),s=a.yearTabs,t=a.handleYearTabs,d=a.minDisplay,e=a.maxDisplay,A=a.minOptions,B=a.maxOptions,C=a.handleMinYear,D=a.handleMaxYear;return void 0!==f&&f?(0,n.jsx)(k.Z,{open:p,close:function(){if("main"!==b){F("main");return}null==E||E()},title:{main:"سال تولید",from:"از سال",till:"تا سال"}[b],initialHeight:"main"===b?41:65,bottomSheetBodyClassName:y().modal,buttons:[{type:"button",buttonType:"primary",label:"نمایش ".concat(Math.min(g.totalCount,100)).concat(g.totalCount>100?"+":""," خودرو"),className:y()["bottom-sheet-modal-button"],onClick:function(){F("main"),null==E||E()}}],children:(0,n.jsxs)("div",{className:y().wrapper,children:["main"===b&&(0,n.jsxs)(x.Z,{withSeparator:!1,className:y()["main-wrapper"],children:[(0,n.jsx)("div",{className:y().title,children:"سال تولید"}),(0,n.jsxs)("div",{className:m()["select-container"],children:[(0,n.jsx)("div",{className:"gtm-cfs-11 mb-2",children:(0,n.jsx)(i.Z,{leftIcon:(0,n.jsx)(j.Z,{name:"chevron-left",fontSize:12,color:v().color_carbon_3}),onClick:function(){return F("from")},placeholder:"از سال",value:(null==d?void 0:d.label)||"",readOnly:!0})}),(0,n.jsx)("div",{className:"gtm-cfs-11",children:(0,n.jsx)(i.Z,{leftIcon:(0,n.jsx)(j.Z,{name:"chevron-left",fontSize:12,color:v().color_carbon_3}),onClick:function(){return F("till")},placeholder:"تا سال",value:(null==e?void 0:e.label)||"",readOnly:!0})})]})]}),"from"===b&&(0,n.jsx)(o,{showTabs:!0,yearTabs:s,onChangeTab:t,options:A,selected:d,onSelect:C}),"till"===b&&(0,n.jsx)(o,{options:B,selected:e,onSelect:D})]})}):(0,n.jsxs)(x.Z,{withSeparator:!1,className:y()["main-wrapper"],children:[(0,n.jsx)("div",{className:y().title,children:"سال تولید"}),(0,n.jsx)(w,{shamsi:z.shamsi,gregorian:z.gregorian,minPlaceholder:"از سال",maxPlaceholder:"تا سال",tagclassName:"gtm-cfs-11"})]})}},72201:function(a){a.exports={"select-container":"year-range_select-container__zJA9h","select-container__inner":"year-range_select-container__inner__ovggC","select-container__input":"year-range_select-container__input__Pbwri","tab-container":"year-range_tab-container__nexSf","tab-container-item":"year-range_tab-container-item__E4KtS","tab-container-item-active":"year-range_tab-container-item-active__UMr1z","year-list":"year-range_year-list__OJXm2","year-list__item":"year-range_year-list__item__zXD9e","year-list__item--active":"year-range_year-list__item--active__haUg0","bottom-sheet-modal-button":"year-range_bottom-sheet-modal-button__tKkKX",modal:"year-range_modal__FNT_l"}},77935:function(a){a.exports={"main-wrapper":"carYear_main-wrapper__aX6I_","bottom-sheet-modal-button":"carYear_bottom-sheet-modal-button__NrgSc","select-container":"carYear_select-container__XLrx1","select-container__inner":"carYear_select-container__inner__QYy_E","tab-container":"carYear_tab-container__MbfMv","tab-container-item":"carYear_tab-container-item__2bfeW","tab-container-item-active":"carYear_tab-container-item-active__qzIDd","year-list":"carYear_year-list___Hp_4","year-list__item":"carYear_year-list__item__UM83_",title:"carYear_title__jlFOt",modal:"carYear_modal__Mm0Ak"}}}])

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.