PageSourceSearch

https://lidomatrip.com/_next/static/chunks/5183-c7a81dd6782b012c.js

js lidomatrip.com collected 2026-10-02 20:27:45 UTC 9,892 bytes, 40 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5183],{48011:function(e,l,r){var t=r(85893),n=r(28855);l.Z=function(e){var l;let{inputReadonly:r=!0,inputName:i,formik:s,counterMinimum:o,counterMaximum:u,onInc:a,onDec:c,customValue:d}=e;return(0,t.jsxs)("div",{className:"w-full flex items-center",children:[(0,t.jsx)("div",{className:`
2          w-32 h-32 cursor-pointer rounded-8
3          flex items-center justify-center
4          shrink-0 grow-0
5          border-1 border-solid border-black
6          ${(u||0===u)&&Number(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l[i])===u||(u||0===u)&&Number(d)===u?"opacity-30 cursor-not-allowed pointer-events-none":""}
7        `,onClick:()=>{if(s){var e,l;(u||0===u)&&Number(null==s?void 0:null===(e=s.values)||void 0===e?void 0:e[i])===u||null==s||s.setFieldValue(i,Number(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l[i])+1)}else if(a){if((u||0===u)&&Number(d)===u)return;a()}},children:(0,t.jsx)("i",{className:"icon-Plus text-24 text-black"})}),(0,t.jsx)(n.n,{name:i,wrapperClassname:"!p-0 !border-none !bg-transparent",inputClassname:"!text-center !bg-transparent",readonly:r,...s?{formik:s}:{customValue:d}}),(0,t.jsx)("div",{className:`
8          w-32 h-32 cursor-pointer rounded-8 flex items-center justify-center
9          shrink-0 grow-0 border-1 border-solid border-black
10          ${d===o?"opacity-30":""}
11        `,onClick:()=>{if(s){var e,l;(o||0===o)&&Number(null==s?void 0:null===(e=s.values)||void 0===e?void 0:e[i])-1<o||null==s||s.setFieldValue(i,Number(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l[i])-1)}else if(c){if((o||0===o)&&Number(d)-1<o)return;c()}},children:(0,t.jsx)("i",{className:"icon-Negative text-24 text-black"})})]})}},28855:function(e,l,r){r.d(l,{n:function(){return m}});var t=r(85893),n=r(67294),i=r(70707),s=r(5152),o=r.n(s);let u=" و ",a=[["","یک","دو","سه","چهار","پنج","شش","هفت","هشت","نه"],["ده","یازده","دوازده","سیزده","چهارده","پانزده","شانزده","هفده","هجده","نوزده","بیست"],["","","بیست","سی","چهل","پنجاه","شصت","هفتاد","هشتاد","نود"],["","یکصد","دویست","سیصد","چهارصد","پانصد","ششصد","هفتصد","هشتصد","نهصد"],[""," هزار"," میلیون"," میلیارد"," بیلیون"," بیلیارد"," تریلیون"," تریلیارد"," کوآدریلیون"," کادریلیارد"," کوینتیلیون"," کوانتینیارد"," سکستیلیون"," سکستیلیارد"," سپتیلیون"," سپتیلیارد"," اکتیلیون"," اکتیلیارد"," نانیلیون"," نانیلیارد"," دسیلیون"," دسیلیارد"]],c=["","دهم","صدم","هزارم","ده‌هزارم","صد‌هزارم","میلیونوم","ده‌میلیونوم","صدمیلیونوم","میلیاردم","ده‌میلیاردم","صد‌‌میلیاردم"],d=e=>{let l=e;return"number"==typeof l&&(l=l.toString()),l.length%3==1?l=`00${l}`:l.length%3==2&&(l=`0${l}`),l.replace(/\d{3}(?=\d)/g,"$&*").split("*")},p=e=>{if(0===parseInt(e,0))return"";let l=parseInt(e,0);if(l<10)return a[0][l];if(l<=20)return a[1][l-10];if(l<100){let e=l%10,r=(l-e)/10;return e>0?a[2][r]+u+a[0][e]:a[2][r]}let r=l%10,t=(l-l%100)/100,n=(l-(100*t+r))/10,i=[a[3][t]],s=10*n+r;return 0===s||(s<10?i.push(a[0][s]):s<=20?i.push(a[1][s-10]):(i.push(a[2][n]),r>0&&i.push(a[0][r]))),i.join(u)},v=e=>""===(e=e.replace(/0*$/,""))?"":(e.length>11&&(e=e.substr(0,11))," ممیز "+x(e)+" "+c[e.length]),x=e=>{e=e.toString().replace(/[^0-9.-]/g,"");let l=!1,r=parseFloat(e);if(isNaN(r)||0===r)return"صفر";r<0&&(l=!0,e=e.replace(/-/g,""));let t="",n=e,i=e.indexOf(".");if(i>-1&&(n=e.substring(0,i),t=e.substring(i+1,e.length)),n.length>66)return"خارج از محدوده";let s=d(n),o=[];for(let e=0;e<s.length;e+=1){let l=p(s[e]);""!==l&&o.push(l+a[4][s.length-(e+1)])}return t.length>0&&(t=v(t)),(l?"منفی ":"")+o.join(u)+t},f=o()(()=>r.e(9905).then(r.bind(r,99905)),{loadableGenerated:{webpack:()=>[99905]},ssr:!0}),m=(0,n.forwardRef)(function(e,l){var r,s,o,u,a,c;let{isFullWidth:d=!0,onClick:p,label:v,label2:m,label2ClassName:b,labelInBorder:h=!1,placeholder:g,placeholderClassname:N,customError:j,customValue:k,customOnChange:w,disabled:$,formik:y,name:C,fillFrom:S,leftIcon:F,rightIcon:_,readonly:D,autofocus:V,autoComplete:E=!0,isPassword:M,maxCharsN:A,type:I="text",fieldIsOptional:O=!1,inputClassname:U,wrapperClassname:B,subLable:L,labelClassname:P,wordifyNumbers:Q=!1,noValidationErrorText:Z=!1,hasPrimaryColorBorderBottom:z,inputmode:G="text",applyCommaSeperation:H,applyAllDigitsToEnFeature:K}
11=e,[R,W]=(0,n.useState)(!1),q=(0,n.useMemo)(()=>y&&y.touched[C]&&y.errors[C]?"object"!=typeof y.errors[C]?y.errors[C]:y.errors[C][Object.keys(y.errors[C])[0]]:j||null,[y,j]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{ref:l,onClick:p,className:`${d?"w-full":""}
12        ${h?"relative":""}`,children:[!!v&&(0,t.jsxs)("span",{className:`
13              text-12 leading-21 text-black font-r mb-8 flex items-center gap-x-4
14              ${P||""}
15              ${h?"absolute top-0 -translate-y-1/2 text-gray-959FA7 leading-16 px-4 bg-white z-1 right-20":""}
16            `,children:[v,!!m&&(0,t.jsx)("span",{className:`text-10 leading-17 text-black font-r ${b||""}`,children:m}),!!O&&(0,t.jsx)("span",{className:"text-[#1C2E4599] text-10",children:"(اختیاری)"})]}),!!L&&(0,t.jsx)("p",{className:"text-10 leading-17 text-black font-l mb-4",children:L}),(0,t.jsxs)("div",{className:`
17          w-full py-10 pr-12 pl-16 bg-white
18          border-1 border-solid border-gray-C4CAD3 rounded-8
19          ${$?"opacity-60 cursor-not-allowed":""}
20          ${q?"!border-error-light":""}
21          focus-within:!border-black
22          flex items-center gap-x-10
23          transition-all
24          ease-in-out
25          ${z?"border-b-2 border-solid border-b-primary-main":""}
26          ${B||""}
27        `,children:[!!_&&(0,t.jsx)("span",{className:"flex items-center shrink-0",children:_}),(0,t.jsx)("input",{dir:S||("number"===I||"numeric"===G?"ltr":"rtl"),className:`
28            w-full focus-visible:outline-none
29            ${N}
30            placeholder:text-12 placeholder:leading-21 placeholder:font-l placeholder:text-[rgba(28,46,69,0.6)]
31            text-14 leading-24 font-m text-black
32            ${$?"cursor-not-allowed":""}
33            ${"rtl"===S?"text-right":"ltr"===S?"text-left":"number"===I||"numeric"===G?"text-left":"text-right"}
34            ${q?"!text-error-light":""}
35            ${U||""}
36            ${D?"cursor-pointer":""}
37          `,autoFocus:V,autoComplete:M||!E?"off":"on",readOnly:D,type:M?R?"text":"password":I,inputMode:G,placeholder:g||"",disabled:$,name:C,value:(y?"numeric"===G||H?null===(r=Number(null==y?void 0:null===(s=y.values)||void 0===s?void 0:s[C]))||void 0===r?void 0:r.toLocaleString("en-US"):null==y?void 0:null===(o=y.values)||void 0===o?void 0:o[C]:"numeric"===G||H?k?null===(u=Number(k))||void 0===u?void 0:u.toLocaleString("en-US"):"":k)??"",onChange:e=>{var l;let r=null==e?void 0:null===(l=e.target)||void 0===l?void 0:l.value;("number"===I||"numeric"===G||"tel"===I||K)&&(r=(r=(0,i.cQ)(r)).replace(/\D/g,"")),y&&(null==y||y.setFieldValue(C,"numeric"===G||H?r.split(",").join(""):r)),w&&w("numeric"===G||H?r.split(",").join(""):r)},onBlur:e=>{y&&!D&&(null==y||y.handleBlur(e))},onKeyPress:e=>{if(A){var l,r,t;y?(null===(l=null===(r=null==y?void 0:y.values[C])||void 0===r?void 0:r.toString())||void 0===l?void 0:l.length)===A&&e.preventDefault():w&&(null===(t=null==k?void 0:k.toString())||void 0===t?void 0:t.length)===A&&e.preventDefault()}"number"!==I||(0,i.c4)(e.key)||e.preventDefault()}}),!!F&&(0,t.jsx)("span",{className:"flex items-center shrink-0",children:F}),!!M&&(0,t.jsx)("span",{className:`
38                flex items-center shrink-0
39                ${$?"cursor-not-allowed":"cursor-pointer"}
40              `,onClick:()=>{$||W(e=>!e)},children:R?(0,t.jsx)("i",{className:"icon-Hide text-24 text-black"}):(0,t.jsx)("i",{className:"icon-See text-24 text-black"})})]}),!!Q&&(!!(null==y?void 0:null===(a=y.values)||void 0===a?void 0:a[C])||!!k)&&(0,t.jsxs)("p",{className:"text-10 leading-17 text-black font-l mt-4",children:[y?!!x&&(null==x?void 0:x(null==y?void 0:null===(c=y.values)||void 0===c?void 0:c[C])):k?!!x&&(null==x?void 0:x(k)):null," ","تومان"]})]}),!Z&&(0,t.jsx)(f,{errorMessage:q})]})})},95183:function(e,l,r){r.r(l);var t=r(85893),n=r(48011);l.default=function(e){let{numberOfPeople:l,setNumberOfPeople:r,wrapperClassname:i}=e;return(0,t.jsx)("div",{className:`bg-white rounded-full shadow-[0px_8px_32px_rgba(24,39,58,0.15)] ${i}`,children:(0,t.jsxs)("div",{className:"pr-24 pl-18 py-18 flex items-center justify-between",children:[(0,t.jsx)("div",{className:"flex items-center gap-x-8",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("p",{className:"text-16 leading-24 font-r text-black",children:"تعداد نفرات"})})}),(0,t.jsx)("div",{className:"w-[107px]",children:(0,t.jsx)(n.Z,{inputName:"number-of-people-filter",counterMinimum:0,customValue:l,onInc:()=>r(e=>e+1),onDec:()=>r(e=>e-1)})})]})})}},70707:function(e,l,r){r.d(l,{EU:function(){return u},W_:function(){return a},c4:function(){return o},cQ:function(){return s}});let t=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],n=["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],i=["0","1","2","3","4","5","6","7","8","9"];function s(e){return e.replace(/[\u0660-\u0669\u06f0-\u06f9]/g,e=>15&e.charCodeAt(0))}function o(e){return!!(i.includes(e)||t.includes(e)||n.includes(e))}function u(e){return Number(s(e).replace(/[^\d]/g,""))||0}
40function a(e){let l=s(e).replace(/[٫،]/g,".").replace(/[^0-9.-]/g,"");if(!l||"-"===l||"."===l||"-."===l)return null;let r=Number(l);return Number.isFinite(r)?r:null}}}]);

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.