PageSourceSearch

https://basalam.com/charsou-assets/unified/_next/static/chunks/42439-0cfa4f5261106d52.js

js basalam.com collected 2026-10-02 02:43:59 UTC 18,506 bytes, 1 lines download raw bytes

1function _array_like_to_array(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _array_with_holes(e){if(Array.isArray(e))return e}function _array_without_holes(e){if(Array.isArray(e))return _array_like_to_array(e)}function asyncGeneratorStep(e,t,n,r,a,s,o){try{var i=e[s](o),l=i.value}catch(e){return void n(e)}i.done?t(l):Promise.resolve(l).then(r,a)}function _async_to_generator(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var s=e.apply(t,n);function o(e){asyncGeneratorStep(s,r,a,o,i,"next",e)}function i(e){asyncGeneratorStep(s,r,a,o,i,"throw",e)}o(void 0)})}}function _iterable_to_array(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _iterable_to_array_limit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,s=[],o=!0,i=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){i=!0,a=e}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return s}}function _non_iterable_rest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _non_iterable_spread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _sliced_to_array(e,t){return _array_with_holes(e)||_iterable_to_array_limit(e,t)||_unsupported_iterable_to_array(e,t)||_non_iterable_rest()}function _to_consumable_array(e){return _array_without_holes(e)||_iterable_to_array(e)||_unsupported_iterable_to_array(e)||_non_iterable_spread()}function _type_of(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _unsupported_iterable_to_array(e,t){if(e){if("string"==typeof e)return _array_like_to_array(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_array_like_to_array(e,t):void 0}}function _ts_generator(e,t){var n,r,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),i=Object.defineProperty;return i(o,"next",{value:l(0)}),i(o,"throw",{value:l(1)}),i(o,"return",{value:l(2)}),"function"==typeof Symbol&&i(o,Symbol.iterator,{value:function(){return this}}),o;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,i[0]&&(s=0)),s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}!function(){try{var e="u">("undefined"==typeof window?"undefined":_type_of(window))?window:"u">("undefined"==typeof global?"undefined":_type_of(global))?global:"u">("undefined"==typeof globalThis?"undefined":_type_of(globalThis))?globalThis:"u">("undefined"==typeof self?"undefined":_type_of(self))?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b555dcee-8f41-4477-adc0-6ce2649ee6bb",e._sentryDebugIdIdentifier="sentry-dbid-b555dcee-8f41-4477-adc0-6ce2649ee6bb")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42439,68513,90894],{243:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(47072),o=n(99195),i=o.forwardRef(function(e,t){var n=e.name,i=e.label,l=e.value,c=e.onBlur,u=e.checked,d=e.disabled,f=e.onChange,b=e.children,p=e.className,_=e.labelClass,v=e.defaultChecked,h=e["data-testid"],y=o.useId(),m=s.useFallbackRef(t);return o.useEffect(function(){v&&void 0===u&&m.current&&(m.current.checked=!0)},[]),r.jsxs("label",{htmlFor:y,"data-testid":h,className:a.clsx(p,"bs-toggle","bs-toggle--"+(d?"disabled":"enabled")),children:[r.jsx("input",{id:y,ref:m,name:n,value:l,type:"checkbox",checked:u,disabled:d,className:"bs-toggle__input",onBlur:c,onChange:f}),r.jsx("div",{className:"bs-toggle__el",children:r.jsx("span",{className:"bs-toggle__el-circle"})}),!!i&&r.jsx("span",{className:a.clsx(_,"bs-toggle-label"),children:i}),b]})});i.displayName="BsToggle",e.exports=i},4127:function(e,t,n){var r=n(43123),a=n(49841),s=n(47346),o=n(36886);e.exports=function(e,t,n){if(!o(n))return!1;var i=void 0===t?"undefined":_type_of(t);return("number"==i?!(!a(n)||!s(t,n.length)):"string"==i&&t in n)&&r(n[t],e)}},5408:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(99195),o=function(e){var t=e.children,n=e.className,o=e.threshold,i=void 0===o?0:o,l=e.offsetTop,c=void 0===l?"0px":l,u=e.maxHeight,d=void 0===u?"auto":u,f=e["data-testid"],b=s.useRef(null),p=s.useCallback(function(){b.current&&(b.current.scrollTop=window.scrollY-i)},[i]);return s.useEffect(function(){return window.addEventListener("scroll",p),function(){window.removeEventListener("scroll",p)}},[p]),r.jsx("div",{ref:b,className:a.clsx(n,"bs-sticky"),style:{to
1p:c,height:d},"data-testid":f,children:t})};o.displayName="BsSticky",e.exports=o},6110:function(e,t,n){e=n.nmd(e);var r=n(80815),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a&&r.process,i=function(){try{var e=s&&s.require&&s.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=i},13227:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},14701:function(e,t,n){var r=n(74687),a=n(36886),s=n(84745),o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=i.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},21948:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(99195),o=n(47072),i=function(e){var t=e.show,n=e.header,i=e.children,l=e.disabled,c=e.onChange,u=e.className,d=e.headerClass,f=e.contentClass,b=e.defaultValue,p=e.maxHeight,_=void 0===p?1e3:p,v=e["data-testid"],h=s.useRef(null),y=_sliced_to_array(s.useState(_),2),m=y[0],x=y[1],g=_sliced_to_array(o.useUncontrolled({onChange:c,value:t,defaultValue:b}),2),k=g[0],N=g[1],w=function(){l||N(!k)};o.useIsomorphicEffect(function(){var e,t=h.current;if(!t)return function(){};var n=function(){x(t.scrollHeight)};return n(),"u">("undefined"==typeof ResizeObserver?"undefined":_type_of(ResizeObserver))&&(e=new ResizeObserver(n)).observe(t),function(){null==e||e.disconnect()}},[]);var j=Math.min(Math.max(m/2,200),750);return r.jsxs("div",{className:a.clsx("bs-collapse",{"bs-collapse--disabled":l},u),"data-testid":v,children:[r.jsxs("div",{role:"button",tabIndex:0,onClick:w,onKeyDown:w,className:a.clsx("bs-collapse__header",d),children:[r.jsx("div",{children:n}),r.jsx("i",{className:a.clsx("bi-angle-down bs-collapse__icon",{rotated:k})})]}),r.jsx("div",{className:"bs-collapse__content-wrapper",style:{transitionDuration:"".concat(j,"ms"),maxHeight:k?"".concat(m,"px"):"0px"},children:r.jsx("div",{ref:h,className:a.clsx("bs-collapse__content",f),children:i})})]})};i.displayName="BsCollapse",e.exports=i},35755:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(43206),o=function(e){var t=e.onClick,n=e.iconLeft,o=e.isActive,i=e.disabled,l=e.count,c=void 0===l?0:l,u=e.className,d=e.size,f=void 0===d?"sm":d,b=e.onIconClick,p=e.label,_=void 0===p?"فیلتر":p,v=e.onIconLeftClick,h=e.icon,y=void 0===h?"bi-angle-down":h,m=e.iconButton,x=void 0===m?"bi-close":m,g=e["data-testid"],k=function(e){e.stopPropagation(),null==b||b(e)};return r.jsxs("button",{type:"button",className:a.clsx("bs-filter-tag","bs-filter-tag--".concat(f),{"bs-filter-tag--disabled":!!i,"bs-filter-tag--activated":!!o},u),onClick:t,"data-testid":g,children:[!!x&&o&&r.jsx("section",{className:"bs-filter-tag__wrapper",onClick:k,children:r.jsx(s,{name:x,className:a.clsx({"bs-filter-tag--icon-button":!!b})})}),!!y&&!o&&r.jsx("section",{className:"bs-filter-tag__wrapper",onClick:k,children:r.jsx(s,{name:y,className:a.clsx({"bs-filter-tag--icon-button":!!b})})}),(!!_||0===_)&&r.jsx("span",{className:"bs-filter-tag__label",children:_}),!!n&&!o&&r.jsx("section",{className:"bs-filter-tag__icon-left",onClick:function(e){e.stopPropagation(),null==v||v(e)},children:r.jsx(s,{name:n,className:a.clsx({"bs-filter-tag--icon-left":!!v})})}),!!c&&r.jsx("span",{className:"bs-filter-tag__count",children:c})]})};o.displayName="BsFilterTag",e.exports=o},36886:function(e){e.exports=function(e){var t=void 0===e?"undefined":_type_of(e);return null!=e&&("object"==t||"function"==t)}},40618:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(96131),o=n(47072),i=n(96600),l=n(99195),c=null,u=l.forwardRef(function(e,t){var u=e.id,d=e.src,f=e.loop,b=e.muted,p=e.poster,_=e.preload,v=e.autoplay,h=e.children,y=e.className,m=e.playsInline,x=e.controls,g=void 0===x||x,k=e.observer,N=void 0!==k&&k,w=e["data-testid"],j=o.useFallbackRef(t),C=l.useRef(null),I=_sliced_to_array(l.useState(!1),2),E=I[0],S=I[1],L=_sliced_to_array(l.useState(!1),2),M=L[0],B=L[1];l.useEffect(function(){B(!1)},[d]);var R=l.useMemo(function(){return s.isClientSide()&&"IntersectionObserver"in window?new IntersectionObserver(function(e){var t;e[0].isIntersecting||null===(t=j.current)||void 0===t||t.pause()}):null},[j]),T=l.useCallback(function(){return _async_to_generator(function(){var e,t;return _ts_generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),!(e=c)?[4,n.e(88163).then(n.bind(n,71905))]:[3,2];case 1:e=r.sent().default,c||(c=e),r.label=2;
1case 2:return e&&e.isSupported()&&j.current?(C.current=new e({startLevel:3}),C.current.loadSource(d),C.current.attachMedia(j.current)):j.current&&j.current.canPlayType("application/vnd.apple.mpegurl")&&(j.current.src=d),[3,4];case 3:return t=r.sent(),console.error(t),[3,4];case 4:return[2]}})})()},[d,j]),A=l.useCallback(function(){try{j.current&&(j.current.src=d)}catch(e){console.error(e)}},[d,j]),O=l.useCallback(function(){S(!0)},[]),G=l.useCallback(function(){S(!1)},[]),P=l.useCallback(function(){B(!0)},[]);return l.useEffect(function(){var e=j.current;return N&&e&&R&&R.observe(e),function(){N&&e&&R&&R.unobserve(e)}},[N,R,j]),l.useEffect(function(){return d.endsWith(".m3u8")?T():A(),function(){var e;null===(e=C.current)||void 0===e||e.destroy()}},[d,T,A]),l.useEffect(function(){j.current&&(j.current.addEventListener("play",O),j.current.addEventListener("pause",G),j.current.addEventListener("ended",G),j.current.addEventListener("canplay",P));var e=j.current;return function(){var t;null===(t=C.current)||void 0===t||t.destroy(),null==e||e.removeEventListener("play",O),null==e||e.removeEventListener("pause",G),null==e||e.removeEventListener("ended",G),null==e||e.removeEventListener("canplay",P)}},[v,P,G,O,j]),r.jsxs("div",{className:a.clsx("bs-video",y),"data-testid":w,children:[r.jsxs("video",{id:u,loop:f,muted:b,ref:j,poster:p,preload:_,controls:g,autoPlay:v,playsInline:m,className:"bs-video__player",children:[h,"مرورگر شما از ویدیو پشتیبانی نمی‌کند."]}),r.jsx(i,{mounted:!E&&M,transition:"fade",duration:400,children:function(e){return r.jsx("button",{type:"button","aria-label":"play",className:"bs-video__play",style:e,onClick:function(){var e;return null===(e=j.current)||void 0===e?void 0:e.play()},children:r.jsx("i",{className:"bi-play"})})}})]})});u.displayName="BsVideo",e.exports=u},40767:function(e,t,n){var r=n(14701),a=1/0;e.exports=function(e){return e?(e=r(e))===a||e===-a?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},43123:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},49137:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=function(e){var t=e.icon,n=e.label,s=e.onClose,o=e.onClick,i=e.className,l=e.size,c=void 0===l?"md":l,u=e["data-testid"];return r.jsxs("button",{type:"button",className:a.clsx(i,"bs-tag","bs-tag--".concat(c),{"bs-tag--clickable":!!o}),onClick:o,"data-testid":u,children:[!!t&&r.jsx("i",{className:"".concat(t," bs-tag__icon")}),r.jsx("span",{children:n}),!!s&&r.jsx("i",{className:"bi-close bs-tag__close",onClick:s})]})};s.displayName="BsTag",e.exports=s},51464:function(e){var t=Math.ceil,n=Math.max;e.exports=function(e,r,a,s){for(var o=-1,i=n(t((r-e)/(a||1)),0),l=Array(i);i--;)l[s?i:++o]=e,e+=a;return l}},61630:function(e){e.exports=function(e){return function(t){return e(t)}}},74687:function(e,t,n){var r=n(13227),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},90894:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(99195),o=n(47072),i=s.createContext({isInGroup:!1}),l=i.Provider,c=function(e){var t=e.value,n=e.onChange,a=e.children,s=e["data-testid"];return r.jsx("div",{"data-testid":s,children:r.jsx(l,{value:{checked:t,isInGroup:!0,onChange:function(e,r){null==n||n(r?_to_consumable_array(t).concat([e]):t.filter(function(t){return t!==e}))}},children:a})})};c.displayName="BsCheckboxGroup";var u=s.forwardRef(function(e,t){var n=e.name,l=e.label,c=e.value,u=e.onBlur,d=e.checked,f=e.disabled,b=e.children,p=e.onChange,_=e.className,v=e.size,h=void 0===v?"sm":v,y=e.indeterminate,m=e.defaultChecked,x=e["data-testid"],g=s.useId(),k=o.useFallbackRef(t),N=s.useContext(i),w=s.useMemo(function(){var e;return!!y||(void 0!==d?d:N.isInGroup&&c?null===(e=N.checked)||void 0===e?void 0:e.includes(c):m)},[y,d,N.isInGroup,N.checked,c,m]);return s.useEffect(function(){m&&void 0===d&&k.current&&(k.current.checked=!0)},[]),s.useEffect(function(){k.current&&(k.current.indeterminate=y||!1)},[y,k]),r.jsxs("label",{htmlFor:g,"aria-disabled":f,"data-testid":x,className:a.clsx("bs-checkbox","bs-checkbox--".concat(h),"bs-checkbox--"+(f?"disabled":"enabled"),"bs-checkbox--"+(y?"indeterminate":"determinate"),_),children:[r.jsx("input",{id:g,ref:k,name:n,value:c,type:"checkbox",checked:w,disabled:f,className:"bs-checkbox__input",onBlur:u,onCh
1ange:function(e){p&&p(e),N.onChange&&N.onChange("number"==typeof c?Number(e.target.value):e.target.value,e.target.checked)}}),r.jsxs("span",{className:"bs-checkbox__el",children:[r.jsx("i",{className:"bs-checkbox__el-icon bi-tick-single"}),y&&r.jsx("i",{className:"bs-checkbox__el-indeterminate"})]}),!!l&&r.jsx("span",{className:"bs-checkbox__label",children:l}),b]})});u.Group=c,u.displayName="BsCheckbox",e.exports=u},94434:function(e,t,n){e.exports=n(97343)()},95542:function(e,t,n){"use strict";var r=n(31827),a=n(63477),s=n(47072),o=n(99195),i=function(e){var t=e.value,n=e.min,i=void 0===n?0:n,l=e.mid,c=void 0===l?3:l,u=e.max,d=void 0===u?5:u,f=e.readOnly,b=e.isButton,p=e.onChange,_=e.showIndex,v=e.className,h=e.indexColor,y=e.size,m=void 0===y?"lg":y,x=e.defaultValue,g=e.onHoverChange,k=e.color,N=void 0===k?"warning":k,w=e["data-testid"],j=o.useId(),C=o.useRef(null),I=_sliced_to_array(s.useUncontrolled({value:t,onChange:p,defaultValue:x,finalValue:0}),2),E=I[0],S=I[1],L=_sliced_to_array(o.useState(-1),2),M=L[0],B=L[1],R=_sliced_to_array(o.useState(!0),2),T=R[0],A=R[1],O=function(e){var t=e+1;f||t<i||S(t)},G=function(e){var t=e+1;return T||f?t<=Math.round(E):t<=Math.max(i,M)},P=o.useMemo(function(){return f?{index:Math.ceil(E)-1,fillPercent:E%1==0?100:10*Number(E.toFixed(1).toString().split(".")[1])}:null},[f,E]),z=o.useMemo(function(){return a.clsx("bs-rating","bs-rating--".concat(m),{"bs-rating--is-button":b},v)},[m,b,v]),D=a.clsx("bs-rating__wrapper",{"bs-rating__wrapper--button":b}),F=function(e){return a.clsx("bs-rating__star",{"bs-rating__star--active":G(e)},{"bs-rating__star--readonly":f})},H={bg:"var(--gray-100)",danger:"var(--danger)",black:"var(--gray-600)",warning:"var(--warning)",primary:"var(--primary)",auto:(M>-1?c<=M:c<=E)?"var(--warning)":"var(--danger)"};return r.jsx("div",{className:z,"data-testid":w,children:r.jsx("div",{ref:C,className:D,onMouseEnter:function(){f||A(!1)},onMouseMove:function(e){if(!f&&C.current){var t=C.current.getBoundingClientRect(),n=t.left,r=t.width/d,a=Math.round((e.clientX-n)/r+.5);B(a),null==g||g(a)}},onMouseLeave:function(){f||(B(-1),A(!0),null==g||g(-1))},children:Array.from({length:d}).map(function(e,t){return b?r.jsxs("div",{className:F(t),children:[r.jsx("div",{className:a.clsx("bs-rating__button",{"bs-rating__button--active":G(t),"bs-rating__button--disabled":f&&!x}),onClick:function(){return O(t)},children:r.jsx("i",{className:a.clsx("bs-rating__button-icon","bi-star"+(G(t)?"-fill":""))})},t),_&&r.jsx("span",{className:"bs-rating__star-index",children:t+1})]},t):r.jsxs("div",{className:F(t),role:"button",tabIndex:0,onClick:function(){return O(t)},onKeyDown:function(){return O(t)},children:[r.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(null==P?void 0:P.index)===t&&r.jsxs("linearGradient",{id:j,children:[r.jsx("stop",{offset:"".concat(P.fillPercent,"%"),stopColor:H[N]}),r.jsx("stop",{offset:"".concat(P.fillPercent,"%"),stopColor:H.bg})]}),r.jsx("path",{fill:G(t)?H[N]:H.bg,d:"M12.9279 4.79202L14.2024 8.96053H18.3093C19.7255 8.96053 20.292 10.747 19.159 11.6403L15.7602 14.1712L17.0348 18.3397C17.4596 19.6796 15.9018 20.8706 14.9105 19.9774L11.5117 17.4465L8.11291 19.9774C6.97998 20.8706 5.56381 19.6796 5.98866 18.3397L7.26321 14.1712L3.86441 11.6403C2.73147 10.747 3.29794 8.96053 4.71411 8.96053H8.821L10.0956 4.79202C10.5204 3.45214 12.503 3.45214 12.9279 4.79202Z",style:(null==P?void 0:P.index)===t?{fill:"url('#".concat(j,"')")}:{}})]}),_&&r.jsx("span",{className:"bs-rating__star-index",style:{color:h||H[N]},children:t+1})]},t)})})})};i.displayName="BsRating",e.exports=i},97343:function(e,t,n){var r=n(51464),a=n(4127),s=n(40767);e.exports=function(e){return function(t,n,o){return o&&"number"!=typeof o&&a(t,n,o)&&(n=o=void 0),t=s(t),void 0===n?(n=t,t=0):n=s(n),o=void 0===o?t<n?1:-1:s(o),r(t,n,o,e)}}}}]);

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.