PageSourceSearch

https://lidomatrip.com/_next/static/chunks/8220-90a58cc8e07f8198.js

js lidomatrip.com collected 2026-09-25 07:12:43 UTC 13,518 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8220],{68220:function(e,n,r){r.d(n,{$0:function(){return E},$j:function(){return C},AT:function(){return j},Kx:function(){return h},PK:function(){return v},QH:function(){return D},QU:function(){return F},Rc:function(){return y},UW:function(){return w},Y2:function(){return p},YS:function(){return d},db:function(){return x},gN:function(){return m},lH:function(){return Z},mP:function(){return A},nj:function(){return B},oi:function(){return g},tP:function(){return N},uv:function(){return k}});var t=r(26042),a=r(69396),i=r(99534),l=r(85893),c=r(67294),o=r(73935),s=r(70707);function u(e){return(0,s.cQ)(e).replace(/[^\d]/g,"")}var d=function(e){return String(e).replace(/\d/g,function(e){return"۰۱۲۳۴۵۶۷۸۹"[Number(e)]})},x=function(e){var n=u(String(null!=e?e:""));return n?d(n.replace(/\B(?=(\d{3})+(?!\d))/g,"٬")):""};function m(e){var n=e.label,r=e.hint,t=e.error,a=e.required,i=e.optionalNote,o=e.children,s=e.className,u=(0,c.useId)(),d=r?"".concat(u,"-hint"):void 0,x=t?"".concat(u,"-error"):void 0,m=[x,d].filter(Boolean).join(" ")||void 0;return(0,l.jsxs)("div",{className:"scroll-mt-80 ".concat(void 0===s?"":s),"data-field-invalid":t?"true":void 0,children:[(0,l.jsxs)("label",{htmlFor:u,className:"block text-14 leading-24 font-m text-black mb-8",children:[n,a&&(0,l.jsx)("span",{className:"text-error-light mr-2","aria-hidden":"true",children:"*"}),i&&(0,l.jsx)("span",{className:"text-12 font-l text-gray-77828F mr-6",children:"(اختیاری)"})]}),o({id:u,"aria-invalid":!!t,"aria-describedby":m}),(0,l.jsx)("div",{className:"min-h-[20px] mt-6",children:t?(0,l.jsx)("p",{id:x,role:"alert",className:"text-12 leading-20 text-error-light font-m",children:t}):r?(0,l.jsx)("p",{id:d,className:"text-12 leading-20 text-gray-77828F font-l",children:r}):null})]})}var f="w-full h-[52px] px-16 rounded-12 bg-white border text-14 font-m text-black placeholder:text-gray-A9B1BC placeholder:font-l outline-none transition-colors focus:border-primary-main focus:ring-2 focus:ring-primary-light",b=function(e){return e?"border-error-light":"border-gray-DBDFE5 hover:border-gray-A9B1BC"},g=c.forwardRef(function(e,n){var r=e.invalid,c=e.className,o=(0,i.Z)(e,["invalid","className"]);return(0,l.jsx)("input",(0,a.Z)((0,t.Z)({ref:n},o),{className:"".concat(f," ").concat(b(r)," ").concat(void 0===c?"":c)}))});function h(e){var n=e.invalid,r=e.className,c=(0,i.Z)(e,["invalid","className"]);return(0,l.jsx)("textarea",(0,a.Z)((0,t.Z)({},c),{className:"w-full min-h-[120px] p-16 rounded-12 bg-white border text-14 leading-26 font-r text-black placeholder:text-gray-A9B1BC placeholder:font-l outline-none resize-y transition-colors focus:border-primary-main focus:ring-2 focus:ring-primary-light ".concat(b(n)," ").concat(void 0===r?"":r)}))}function p(e){var n=e.value,r=e.onValueChange,c=e.suffix,o=e.invalid,s=(0,i.Z)(e,["value","onValueChange","suffix","invalid"]);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",(0,a.Z)((0,t.Z)({},s),{value:d(n),inputMode:"numeric",onChange:function(e){return r(u(e.target.value))},className:"".concat(f," ").concat(b(o)," ").concat(c?"pl-56":"")})),c&&(0,l.jsx)("span",{className:"absolute left-16 top-1/2 -translate-y-1/2 text-12 font-l text-gray-77828F pointer-events-none",children:c})]})}function v(e){var n=e.value,r=e.onValueChange,c=e.invalid,o=(0,i.Z)(e,["value","onValueChange","invalid"]);return(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",(0,a.Z)((0,t.Z)({},o),{value:x(n),inputMode:"numeric",onChange:function(e){return r(u(e.target.value))},className:"".concat(f," ").concat(b(c)," pl-64")})),(0,l.jsx)("span",{className:"absolute left-16 top-1/2 -translate-y-1/2 text-12 font-l text-gray-77828F pointer-events-none",children:"تومان"})]})}function y(e){var n=e.selected,r=e.onSelect,t=e.title,a=e.description,i=e.imageUrl,c=e.icon,o=e.disabled,s=e.reserveMedia;return(0,l.jsxs)("button",{type:"button",onClick:r,disabled:o,"aria-pressed":n,className:"group relative w-full text-right rounded-16 border-2 overflow-hidden transition-all duration-150 active:scale-[0.99] disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-main focus-visible:ring-offset-2 ".concat(n?"border-primary-main bg-primary-light/40 shadow-[0_2px_12px_rgba(3,214,187,0.18)]":"border-gray-DBDFE5 bg-white hover:border-gray-A9B1BC"),children:[i?(0,l.jsx)("img",{src:i,alt:"",loading:"lazy",className:"w-full h-[104px] object-cover",onError:function(e){e.currentTarget.style.display="none"}}):s?(0,l.jsx)("span",{className:"flex w-full h-[104px] bg-gray-F3F5F7 items-center justify-center",children:(0,l.jsx)("i",{className:"".concat(c||"icon-Home"," text-28 text-gray-A9B1BC")})}):null,(0,l.jsxs)("span",{className:"flex items-start gap-x-12 p-16",children:[c&&!i&&(0,l.jsx)("i",{className:"".concat(c," text-24 shrink-0 ").concat(n?"text-primary-dark":"text-gray-77828F")}),(0,l.jsxs)("span",{className:"grow",children:[(0,l.jsx)("span",{className:"block text-14 leading-24 font-b text-black",children:t}),a&&(0,l.jsx)("span",{className:"block text-12 leading-20 font-l text-gray-77828F mt-4",children:a})]}),(0,l.jsx)("span",{className:"shrink-0 w-20 h-20 rounded-full border-2 grid place-items-center mt-2 ".concat(n?"border-primary-main bg-primary-main":"border-gray-DBDFE5"),children:n&&(0,l.jsx)("i",{className:"icon-Tick text-10 text-white"})})]})]})}function N(e){var n=e.checked,r=e.onToggle,t=e.label,a=e.icon,i=e.children;return(0,l.jsxs)("div",{className:"rounded-12 border transition-colors ".concat(n?"border-primary-main bg-primary-light/30":"border-gray-DBDFE5 bg-white"),children:[(0,l.jsxs)("label",{className:"flex items-center gap-x-12 p-14 cursor-pointer",children:[(0,l.jsx)("input",{type:"checkbox",checked:n,onChange:r,className:"w-20 h-20 shrink-0 accent-primary-main cursor-pointer"}),a?(0,l.jsx)("img",{src:a,alt:"",className:"w-24 h-24 object-contain shrink-0",loading:"lazy"}):null,(0,l.jsx)("span",{className:"text-14 leading-24 font-m text-black",children:t})]}),n&&i?(0,l.jsx)("div",{className:"px-14 pb-14",children:i}):null]})}function j(e){var n=e.value,r=e.onChange,t=e.min,a=void 0===t?0:t,i=e.max,c=void 0===i?99:i,o=e.label,s=function(e){return r(Math.max(a,Math.min(c,n+e)))},u="w-36 h-36 shrink-0 rounded-full border border-gray-DBDFE5 grid place-items-center text-black transition-colors hover:border-primary-main hover:text-primary-dark disabled:opacity-40 disabled:hover:border-gray-DBDFE5 disabled:hover:text-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-main";return(0,l.jsxs)("div",{className:"flex items-center gap-x-12",children:[(0,l.jsx)("button",{type:"button",className:u,onClick:function(){return s(-1)},disabled:n<=a,"aria-label":"کاهش ".concat(o),children:(0,l.jsx)("i",{className:"icon-Negative text-16"})}),(0,l.jsx)("span",{className:"min-w-[32px] text-center text-16 font-b text-black tabular-nums","aria-live":"polite","aria-label":"".concat(o,": ").concat(n),children:d(n)}),(0,l.jsx)("button",{type:"button",className:u,onClick:function(){return s(1)},disabled:n>=c,"aria-label":"افزایش ".concat(o),children:(0,l.jsx)("i",{className:"icon-Plus text-16"})})]})}function k(e){var n=e.label,r=e.description,a=(0,i.Z)(e,["label","description"]);return(0,l.jsxs)("div",{className:"flex items-center justify-between gap-x-16 py-14 border-b border-gray-F3F5F7 last:border-b-0",children:[(0,l.jsxs)("div",{className:"grow",children:[(0,l.jsx)("p",{className:"text-14 leading-24 font-m text-black",children:n}),r&&(0,l.jsx)("p",{className:"text-12 leading-20 font-l text-gray-77828F mt-2",children:r})]}),(0,l.jsx)(j,(0,t.Z)({label:n},a))]})}function w(e){var n=e.tone,r=void 0===n?"info":n,t=e.children,a=e.action;return(0,l.jsxs)("div",{className:"flex items-start gap-x-12 p-14 roun
1ded-12 border ".concat({info:"bg-blue-light border-blue-main/20 text-black",warning:"bg-yellow-light border-warning/30 text-black",error:"bg-red-light border-error-light/30 text-black",success:"bg-green-light border-success/25 text-black"}[r]),children:[(0,l.jsx)("i",{className:"".concat({info:"icon-Information text-blue-main",warning:"icon-Warning text-warning",error:"icon-ErrorFill text-error-light",success:"icon-Success text-success"}[r]," text-20 shrink-0 mt-2")}),(0,l.jsx)("div",{className:"grow text-13 leading-22 font-l",children:t}),a]})}function F(e){var n=e.state;if("idle"===n)return null;var r={saving:{icon:"icon-Refresh animate-spin",text:"در حال ذخیره…",tone:"text-gray-77828F"},saved:{icon:"icon-Success",text:"ذخیره شد",tone:"text-success"},error:{icon:"icon-ErrorFill",text:"ذخیره نشد",tone:"text-error-light"}}[n],t=r.icon,a=r.text,i=r.tone;return(0,l.jsxs)("span",{className:"flex items-center gap-x-6 text-12 font-m ".concat(i),role:"status","aria-live":"polite",children:[(0,l.jsx)("i",{className:"".concat(t," text-14")}),a]})}function C(e){var n=e.className;return(0,l.jsx)("span",{className:"inline-block w-20 h-20 rounded-full border-2 border-gray-DBDFE5 border-t-primary-main animate-spin ".concat(void 0===n?"":n),role:"status","aria-label":"در حال بارگذاری"})}function B(){return(0,l.jsxs)("div",{className:"animate-pulse space-y-16","aria-hidden":"true",children:[(0,l.jsx)("div",{className:"h-28 w-1/2 roun
1ded-8 bg-gray-F3F5F7"}),(0,l.jsx)("div",{className:"h-16 w-3/4 rounded-8 bg-gray-F3F5F7"}),(0,l.jsx)("div",{className:"h-[52px] rounded-12 bg-gray-F3F5F7"}),(0,l.jsx)("div",{className:"h-[52px] rounded-12 bg-gray-F3F5F7"}),(0,l.jsx)("div",{className:"h-[120px] rounded-12 bg-gray-F3F5F7"})]})}function E(e){var n=e.title,r=e.description,t=e.children,a=e.className;return(0,l.jsxs)("section",{className:"mb-24 ".concat(void 0===a?"":a),children:[n&&(0,l.jsx)("h3",{className:"text-15 leading-26 font-b text-black mb-4",children:n}),r&&(0,l.jsx)("p",{className:"text-12 leading-20 font-l text-gray-77828F mb-12",children:r}),t]})}function Z(e){var n=e.value,r=e.onChange,o=e.invalid,s=e.id,u=(0,i.Z)(e,["value","onChange","invalid","id"]),x=(0,c.useMemo)(function(){return Array.from({length:24},function(e,n){return"".concat(String(n).padStart(2,"0"),":00")})},[]);return(0,l.jsxs)("select",(0,a.Z)((0,t.Z)({id:s},u),{value:n,onChange:function(e){return r(e.target.value)},className:"".concat(f," ").concat(b(o)," appearance-none cursor-pointer"),children:[(0,l.jsx)("option",{value:"",children:"انتخاب کنید"}),x.map(function(e){return(0,l.jsx)("option",{value:e,children:d(e)},e)})]}))}function D(e){var n=e.open,r=e.title,t=e.description,a=e.confirmLabel,i=e.cancelLabel,s=e.tone,u=e.onConfirm,d=e.onCancel,x=c.useRef(null);return(c.useEffect(function(){if(n){null===(e=x.current)||void 0===e||e.focus();var e,r=function(e){"Escape"===e.key&&d()};document.addEventListener("keydown",r);var t=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.removeEventListener("keydown",r),document.body.style.overflow=t}}},[n,d]),n&&"undefined"!=typeof document)?(0,o.createPortal)((0,l.jsx)("div",{className:"fixed inset-0 z-[80] flex items-end md:items-center justify-center bg-black/40 px-16 pb-[max(16px,env(safe-area-inset-bottom))] md:pb-16",onClick:d,role:"presentation",children:(0,l.jsxs)("div",{role:"alertdialog","aria-modal":"true","aria-labelledby":"wizard-confirm-title",onClick:function(e){return e.stopPropagation()},className:"w-full md:max-w-[420px] bg-white rounded-16 p-20 shadow-lg",children:[(0,l.jsx)("h2",{id:"wizard-confirm-title",className:"text-16 leading-28 font-b text-black",children:r}),t&&(0,l.jsx)("div",{className:"text-13 leading-24 font-l text-gray-77828F mt-8",children:t}),(0,l.jsxs)("div",{className:"flex items-center gap-x-12 mt-20",children:[(0,l.jsx)("button",{type:"button",ref:x,onClick:d,className:"grow h-[48px] rounded-12 bg-primary-main text-14 font-b text-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-main focus-visible:ring-offset-2",children:void 0===i?"انصراف":i}),(0,l.jsx)("button",{type:"button",onClick:u,className:"grow h-[48px] rounded-12 border text-14 font-m focus-visible:outline-none focus-visible:ring-2 ".concat("danger"===(void 0===s?"default":s)?"border-error-light text-error-light focus-visible:ring-error-light":"border-gray-DBDFE5 text-black focus-visible:ring-primary-main"),children:a})]})]})}),document.body):null}function A(e){var n=e.items;return 0===n.length?null:(0,l.jsx)("div",{role:"alert","aria-live":"assertive",children:(0,l.jsxs)(w,{tone:"error",children:[(0,l.jsx)("p",{className:"font-m mb-2",children:"برای ادامه، این موارد را کامل کنید:"}),(0,l.jsx)("ul",{className:"list-disc pr-16 space-y-2",children:n.map(function(e){return(0,l.jsx)("li",{children:e},e)})})]})})}},70707:function(e,n,r){r.d(n,{EU:function(){return o},W_:function(){return s},c4:function(){return c},cQ:function(){return l}});var t=["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],a=["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],i=["0","1","2","3","4","5","6","7","8","9"];function l(e){return e.replace(/[\u0660-\u0669\u06f0-\u06f9]/g,function(e){return 15&e.charCodeAt(0)})}function c(e){return!!(i.includes(e)||t.includes(e)||a.includes(e))}function o(e){return Number(l(e).replace(/[^\d]/g,""))||0}function s(e){var n=l(e).replace(/[٫،]/g,".").replace(/[^0-9.-]/g,"");if(!n||"-"===n||"."===n||"-."===n)return null;var r=Number(n);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.