PageSourceSearch

https://behmalt.com/_next/static/chunks/98210.a1399a1ac5eea9fb.js

js behmalt.com collected 2026-09-25 10:27:04 UTC 4,679 bytes, 7 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98210],{98210:(e,l,a)=>{a.r(l),a.d(l,{default:()=>m});var i=a(95155),n=a(90346),t=a(80870),r=a(29677),s=a(80283),h=a(69169);let o=`<div class="custom-box">
2  <h3>عنوان سفارشی</h3>
3  <p>کد HTML، CSS یا Script خود را اینجا وارد کنید.</p>
4  <script>
5    console.log('Hello from HTML widget');
6  </script>
7</div>`,d=[{value:"inline",label:"یکپارچه با صفحه"},{value:"iframe",label:"ایزوله داخل iframe"}],x=[{value:"full",label:"تمام عرض"},{value:"screen",label:"تمام عرض صفحه"},{value:"auto",label:"خودکار"},{value:"fixed",label:"عرض ثابت"}],u=[{value:"fixed",label:"ارتفاع ثابت"},{value:"screen",label:"تمام ارتفاع صفحه"},{value:"auto",label:"خودکار"},{value:"min",label:"حداقل و حداکثر"},{value:"viewport",label:"بر اساس صفحه"}],c=[{value:"visible",label:"همراه صفحه / بدون قاب"},{value:"auto",label:"اسکرول در صورت نیاز"},{value:"hidden",label:"بدون اسکرول"},{value:"scroll",label:"همیشه اسکرول"}];function p(e,l,a,i){let n=Number(e);return Number.isFinite(n)?Math.min(i,Math.max(a,Math.round(n))):l}function b({value:e,unit:l="px",min:a,max:n,step:r=10,fallback:s,onChange:h}){return(0,i.jsxs)("div",{className:"flex items-center gap-1",children:[(0,i.jsx)(t.UX,{min:a,max:n,step:r,value:p(e,s,a,n),onChange:e=>h(p(e,s,a,n))}),(0,i.jsx)("span",{className:"shrink-0 rounded-[7px] border border-[var(--pc-control-border)] bg-[var(--pc-button-bg)] px-1.5 font-yekan text-[9px] leading-6 text-[var(--pc-panel-muted)]",children:l})]})}function m(){let e=(0,s.s0)(e=>e.selectedWidget),l=(0,s.sr)();if(!e)return(0,i.jsx)(r.A,{});let a={...h.w,...e.defaultProps||{}},m="iframe"===a.renderMode,v=i=>{l.updateNode(e.id,{defaultProps:{...a,...i}})};return(0,i.jsxs)(t.XR,{children:[(0,i.jsx)(t.So,{title:"کد سفارشی",defaultOpen:!0,children:(0,i.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,i.jsx)("div",{className:"rounded-[8px] border border-amber-500/25 bg-amber-500/10 px-2 py-1.5 font-yekan text-[9px] leading-5 text-amber-700 dark:text-amber-200",children:"در حالت یکپارچه، HTML مثل بخشی از صفحه رندر می‌شود و اندازه و اسکرول را خود کد داخلی مدیریت می‌کند. اگر کد شما script یا ایزوله‌سازی کامل لازم دارد، حالت iframe را انتخاب کنید."}),(0,i.jsx)(t.RZ,{label:"حالت نمایش",children:(0,i.jsx)(t.Pl,{value:a.renderMode,options:d,onChange:e=>v({renderMode:e})})}),(0,i.jsx)(t.xh,{label:"HTML / CSS / Script",children:(0,i.jsx)(t.tt,{dir:"ltr",spellCheck:!1,rows:14,autoSize:{minRows:14,maxRows:28},value:a.html,onChange:e=>v({html:e.target.value}),placeholder:o,className:"!font-mono !text-[10px] !leading-5"})})]})}),m?(0,i.jsx)(t.So,{title:"اندازه و اسکرول",defaultOpen:!0,children:(0,i.jsxs)("div",{className:"space-y-1 px-1 pb-2",children:[(0,i.jsx)(t.RZ,{label:"حالت عرض",children:(0,i.jsx)(t.Pl,{value:a.widthMode,options:x,onChange:e=>v({widthMode:e})})}),"fixed"===a.widthMode?(0,i.jsx)(t.RZ,{label:"عرض",children:(0,i.jsx)(b,{value:a.width,min:120,max:2400,fallback:h.w.width,onChange:e=>v({width:e})})}):null,(0,i.jsx)(t.RZ,{label:"حالت ارتفاع",children:(0,i.jsx)(t.Pl,{value:a.heightMode,options:u,onChange:e=>v({heightMode:e})})}),"fixed"===a.heightMode?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.RZ,{label:"ارتفاع",children:(0,i.jsx)(b,{value:a.height,min:120,max:2e3,fallback:h.w.height,onChange:e=>v({height:e})})}),(0,i.jsx)("div",{className:"px-1",children:(0,i.jsx)(n.Ap,{min:120,max:2e3,step:10,value:p(a.height,h.w.height,120,2e3),tooltip:{formatter:e=>`${e}px`},onChange:e=>v({height:p(e,h.w.height,120,2e3)})})})]}):null,"auto"===a.heightMode||"min"===a.heightMode?(0,i.jsx)(t.RZ,{label:"حداقل ارتفاع",children:(0,i.jsx)(b,{value:a.minHeight,min:0,max:2e3,fallback:h.w.minHeight,onChange:e=>v({minHeight:e})})}):null,"auto"===a.heightMode||"min"===a.heightMode?(0,i.jsx)(t.RZ,{label:"حداکثر ارتفاع",children:(0,i.jsx)(b,{value:a.maxHeight,min:120,max:3e3,fallback:h.w.maxHeight,onChange:e=>v({maxHeight:e})})}):null,"viewport"===a.heightMode?(0,i.jsx)(t.RZ,{label:"ارتفاع صفحه",children:(0,i.jsx)(b,{value:a.viewportHe
7ight,unit:"vh",min:10,max:100,step:5,fallback:h.w.viewportHeight,onChange:e=>v({viewportHeight:e})})}):null,(0,i.jsx)(t.RZ,{label:"اسکرول",children:(0,i.jsx)(t.Pl,{value:a.overflowMode,options:c,onChange:e=>v({overflowMode:e})})})]})}):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.