1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7812],{40809:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/settings/tags",function(){return t(20192)}])},20192:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return f}});var a=t(47568),r=t(26042),l=t(69396),i=t(10253),s=t(36305),c=t(70655),o=t(85893),u=t(67294),d=t(41664),x=t.n(d),h=t(44389),m=t(49759),p=t(84858),g=t(32474),v=[{value:"",label:"ÙÙ
ÙâÛ Ø§ÙÙØ§Ø¹"},{value:"SUIT",label:"Ø³ÙØ¦Ûت / ÙÛÙØ§"},{value:"BOOMGARDI",label:"بÙÙ
âگردÛ"},{value:"HOTEL",label:"ÙØªÙ"}];function f(){var e=(0,i.Z)((0,u.useState)(null),2),n=e[0],t=e[1],a=(0,i.Z)((0,u.useState)(!1),2),r=a[0],l=a[1],s=(0,h.u)("/api/admin/seo-tags",function(e){return(0,p.SC)(e)}),c=s.data,d=s.isLoading,v=s.mutate,f=(0,h.u)("/api/admin/seo-tags/options",function(e){return(0,p.SC)(e)}).data,b=null!=c?c:[],j=b.filter(function(e){return!e.isActive&&0===e.conditions.length});return(0,o.jsxs)(m.Z,{title:"تگâÙØ§Û سئÙ",breadcrumb:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x(),{href:"/admin",children:"Ø¯Ø§Ø´Ø¨ÙØ±Ø¯"}),(0,o.jsx)("span",{className:"mx-6 text-gray-B0AFBC",children:"/"}),(0,o.jsx)(x(),{href:"/admin/settings",children:"ØªÙØ¸ÛÙ
ات"})]}),toolbar:(0,o.jsxs)(g.Zb,{className:"px-8 py-6 flex items-center gap-x-4 overflow-x-auto",children:[(0,o.jsx)(x(),{href:"/admin/settings",className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap text-gray-6C6A7D hover:bg-gray-F0F0F0",children:"اÙ
Ú©Ø§ÙØ§Øª Ù ÙÙØ§ÙÛÙ"}),(0,o.jsx)(x(),{href:"/admin/settings/locations",className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap text-gray-6C6A7D hover:bg-gray-F0F0F0",children:"دستÙâØ¨ÙØ¯Û Ù
کاÙâÙØ§"}),(0,o.jsx)("span",{className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap bg-primary-main text-white",children:"تگâÙØ§Û سئÙ"}),(0,o.jsx)(x(),{href:"/admin/settings/sitemap",className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap text-gray-6C6A7D hover:bg-gray-F0F0F0",children:"sitemap Ù robots"}),(0,o.jsx)(x(),{href:"/admin/settings/faqs",className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap text-gray-6C6A7D hover:bg-gray-F0F0F0",children:"Ø³ÙØ§Ùات Ù
تداÙÙ"}),(0,o.jsx)(x(),{href:"/admin/settings/home",className:"px-14 py-8 rounded-10 text-13 leading-20 font-m whitespace-nowrap text-gray-6C6A7D hover:bg-gray-F0F0F0",children:"ØµÙØÙ Ø§ØµÙÛ"})]}),children:[(0,o.jsxs)("div",{className:"flex flex-col gap-y-16",children:[(0,o.jsx)(g.Zb,{className:"px-20 py-16",children:(0,o.jsxs)("p",{className:"text-12 leading-22 text-gray-6C6A7D",children:["ÙØ± تگ ÛÚ© ÛØ§ ÚÙØ¯ ÙÛÚÚ¯Û Ø§ÙØ§Ù
تگا٠ر٠با ÙÙ
ØªØ±Ú©ÛØ¨ Ù
ÛâÚ©ÙÙ Ù ÛÚ© ØµÙØÙâÛ Ù
ستÙÙ Ù
ÛâØ³Ø§Ø²Ù. تگ بدÙÙ Ø´ÙØ± \xabتگ Ù
ادر\xbbÙ (",(0,o.jsx)("span",{dir:"ltr",className:"font-m",children:"/search?pool=1"}),") ٠با Ø´ÙØ± ØªØ±Ú©ÛØ¨ Ù
ÛâØ´Ù ØªØ§ ØµÙØÙâÛ ÙÙ
ÙÙ Ø´ÙØ± ساخت٠بش٠(",(0,o.jsx)("span",{dir:"ltr",className:"font-m",children:"/search/shiraz?pool=1"}),")."]})}),j.length>0&&(0,o.jsxs)(g.Zb,{className:"px-20 py-16 border-r-4 border-r-[#F59E0B]",children:[(0,o.jsxs)("div",{className:"text-13 leading-22 font-m text-gray-1E1D28 mb-6",children:[(0,g.N)(j.length)," تگ ØºÛØ±Ùعا٠٠بدÙ٠شرط"]}),(0,o.jsxs)("p",{className:"text-12 leading-22 text-gray-6C6A7D",children:[j.map(function(e){return e.name}).join("Ø ")," â ØªÙÛ Ø§ÙØ¯Ù ب٠ÙÛÚÚ¯ÛâÙØ§ÛÛ ÙØµÙ Ø¨ÙØ¯Ù Ú©Ù Ø¨Ø¹Ø¯Ø§Ù ØØ°Ù Ø´Ø¯ÙØ Ø¨Ø±Ø§Û ÙÙ
Û٠اÙÙâØ¬Ø§ ÙÙ
ÙØªÛجÙâØ§Û ÙÙ
ÛâØ¯Ø§Ø¯Ù. عÙ
Ø¯Ø§Ù ØºÛØ±ÙØ¹Ø§Ù ÙØ§Ø±Ø¯ شد٠تا Ø§Ø´ØªØ¨Ø§ÙØ§Ù ÙÙ
ÙâÛ Ø§ÙØ§Ù
تگاÙâÙØ§ Ø±Ù ÙØ´ÙÙ ÙØ¯Ù. Ø¨Ø±Ø§Û Ø²ÙØ¯ÙâÚ©Ø±Ø¯ÙØ´Ù٠شرط درست ر٠تعرÛÙ Ú©Ù Ù ÙØ¹Ø§ÙØ´ÙÙ Ú©Ù."]})]}),(0,o.jsxs)(g.Zb,{className:"p-0 overflow-hidden",children:[(0,o.jsxs)("div",{className:"px-20 py-16 flex items-center justify-between border-b border-gray-EFEFEF",children:[(0,o.jsxs)("span",{className:"text-13 leading-22 font-m text-gray-1E1D28",children:[(0,g.N)(b.length)," تگ"]}),(0,o.jsx)(g.zx,{onClick:function(){return l(!0)},children:"Ø§ÙØ²Ùد٠تگ"})]}),d?(0,o.jsx)("div",{className:"p-20 flex flex-col gap-8",children:Array.from({length:6}).map(function(e,n){return(0,o.jsx)(g.Od,{className:"h-48"},n)})}):0===b.length?(0,o.jsx)(g.ub,{text:"ÙÙÙØ² ØªÚ¯Û ØªØ¹Ø±ÛÙ ÙØ´Ø¯Ù."}):(0,o.jsx)("div",{className:"divide-y divide-gray-F5F5F5",children:b.map(function(e){return(0,o.jsxs)("button",{onClick:function(){return t(e)},className:"w-full text-right px-20 py-14 hover:bg-gray-FAFAFA transition flex flex-wrap items-center gap-x-10 gap-y-6",children:[(0,o.jsx)("span",{className:"text-13 leading-22 font-m text-gray-1E1D28",children:e.name}),(0,o.jsxs)("span",{dir:"ltr",className:"text-11 text-gray-B0AFBC",children:["?",e.key,"=1"]}),e.isActive?(0,o.jsx)(g.Ct,{tone:"green",children:"ÙØ¹Ø§Ù"}):(0,o.jsx)(g.Ct,{tone:"red",children:"ØºÛØ±ÙعاÙ"}),e.isSuggested&&(0,o.jsx)(g.Ct,{tone:"blue",children:"جستجÙÛ Ù
رتبط"}),(0,o.jsxs)("span",{className:"text-11 text-gray-6C6A7D mr-auto",children:[(0,g.N)(e.conditions.length)," شرط \xb7 ",(0,g.N)(e.pageCount)," ØµÙØÙ"]})]},e.id)})})]})]}),(n||r)&&f&&(0,o.jsx)(y,{tag:n,options:f,onClose:function(){t(null),l(!1)},onSaved:function(){t(null),l(!1),v()}})]})}function y(e){var n,t,d,x,h,m,f,y,j,N,C,F,Z,w,I,A,k,M=e.tag,E=e.options,S=e.onClose,T=e.onSaved,D=(0,i.Z)((0,u.useState)({key:null!==(d=null==M?void 0:M.key)&&void 0!==d?d:"",name:null!==(x=null==M?void 0:M.name)&&void 0!==x?x:"",shortLabel:null!==(h=null==M?void 0:M.shortL
1abel)&&void 0!==h?h:"",description:null!==(m=null==M?void 0:M.description)&&void 0!==m?m:"",residenceType:null!==(f=null==M?void 0:M.residenceType)&&void 0!==f?f:"",priceMin:null!==(y=null==M?void 0:M.priceMin)&&void 0!==y?y:"",priceMax:null!==(j=null==M?void 0:M.priceMax)&&void 0!==j?j:"",matchIsFast:null!==(N=null==M?void 0:M.matchIsFast)&&void 0!==N&&N,contentTitle:null!==(C=null==M?void 0:M.contentTitle)&&void 0!==C?C:"",contentHtml:null!==(F=null==M?void 0:M.contentHtml)&&void 0!==F?F:"",isActive:null===(Z=null==M?void 0:M.isActive)||void 0===Z||Z,isSuggested:null!==(w=null==M?void 0:M.isSuggested)&&void 0!==w&&w,showInHomepage:null!==(I=null==M?void 0:M.showInHomepage)&&void 0!==I&&I,sortOrder:null!==(A=null==M?void 0:M.sortOrder)&&void 0!==A?A:0}),2),K=D[0],_=D[1],O=(0,i.Z)((0,u.useState)(null!==(k=null==M?void 0:M.conditions)&&void 0!==k?k:[]),2),H=O[0],B=O[1],L=(0,i.Z)((0,u.useState)(null),2),P=L[0],z=L[1],R=(0,i.Z)((0,u.useState)(!1),2),J=R[0],X=R[1],q=(0,i.Z)((0,u.useState)(null),2),G=q[0],U=q[1],W=(0,i.Z)((0,u.useState)(!1),2),Q=W[0],V=W[1],Y=(0,u.useMemo)(function(){var e=new Map;return H.forEach(function(n){e.has(n.groupIndex)||e.set(n.groupIndex,[]),e.get(n.groupIndex).push(n)}),(0,s.Z)(e.entries()).sort(function(e,n){return e[0]-n[0]})},[H]);(0,u.useEffect)(function(){var e=!1;V(!0);var n=setTimeout((0,a.Z)(function(){var n;return(0,c.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,3,4]),[4,(0,p.SC)("/api/admin/seo-tags/preview",{method:"POST",body:JSON.stringify({conditions:H,residenceType:K.residenceType||null,priceMin:""===K.priceMin?null:Number(K.priceMin),priceMax:""===K.priceMax?null:Number(K.priceMax),matchIsFast:K.matchIsFast})})];case 1:return n=t.sent(),e||U(n),[3,4];case 2:return t.sent(),e||U(null),[3,4];case 3:return e||V(!1),[7];case 4:return[2]}})}),400);return function(){e=!0,clearTimeout(n)}},[H,K.residenceType,K.priceMin,K.priceMax,K.matchIsFast]);var $=(n=(0,a.Z)(function(){var e,n,t;return(0,c.__generator)(this,function(a){switch(a.label){case 0:X(!0),z(null),a.label=1;case 1:return a.trys.push([1,3,4,5]),e={key:K.key.trim(),name:K.name.trim(),shortLabel:K.shortLabel.trim()||null,description:K.description.trim()||null,residenceType:K.residenceType||null,priceMin:""===K.priceMin?null:Number(K.priceMin),priceMax:""===K.priceMax?null:Number(K.priceMax),matchIsFast:K.matchIsFast,contentTitle:K.contentTitle.trim()||null,contentHtml:K.contentHtml.trim()||null,isActive:K.isActive,isSuggested:K.isSuggested,showInHomepage:K.showInHomepage,sortOrder:Number(K.sortOrder)||0,conditions:H.filter(function(e){return e.amenityKey||e.ruleKey})},[4,(0,p.SC)(M?"/api/admin/seo-tags/".concat(M.id):"/api/admin/seo-tags",{method:M?"PATCH":"POST",body:JSON.stringify(e)})];case 2:return a.sent(),T(),[3,5];case 3:return z(null!==(t=null==(n=a.sent())?void 0:n.message)&&void 0!==t?t:"Ø°Ø®ÛØ±Ù ÙØ´Ø¯."),[3,5];case 4:return X(!1),[7];case 5:return[2]}})}),function(){return n.apply(this,arguments)}),ee=0===H.filter(function(e){return e.amenityKey||e.ruleKey}).length&&!K.residenceType&&!K.matchIsFast&&""===K.priceMin&&""===K.priceMax;return(0,o.jsx)(g.u_,{open:!0,title:M?"ÙÛØ±Ø§ÛØ´ تگ \xab".concat(M.name,"\xbb"):"Ø§ÙØ²Ùد٠تگ",onClose:S,width:"max-w-[880px]",children:(0,o.jsxs)("div",{className:"flex flex-col gap-y-16",children:[(0,o.jsxs)("div",{className:"grid md:grid-cols-2 gap-14",children:[(0,o.jsx)(g.gN,{label:"Ú©ÙÛØ¯ (پاراÙ
تر آدرس)",hint:M?"تغÛÛØ±Ø´ آدرسâÙØ§Û اÛÙØ¯Ú©Ø³âشد٠ر٠Ù
ÛâØ´Ú©ÙÙ â Ø¯Ø³Øª ÙØ²Ù Ù
گر ÙØ§Ø²Ù
باشÙ.":"تÙÛ Ø¢Ø¯Ø±Ø³ اÛÙâØ·ÙØ±Û Ù
ÛØ§Ø¯: /search/shiraz?<Ú©ÙÛØ¯>=1",children:(0,o.jsx)(g.II,{dir:"ltr",value:K.key,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{key:e.target.value}))},placeholder:"pool"})}),(0,o.jsx)(g.gN,{label:"ÙØ§Ù
ÙÙ
Ø§ÛØ´Û",hint:"تÙÛ Ø¹ÙÙØ§Ù ØµÙØÙ Ù
ÛâØ´ÛÙÙ: \xab<ÙØ§Ù
> در Ø´ÛØ±Ø§Ø²\xbb",children:(0,o.jsx)(g.II,{value:K.name,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{name:e.target.value}))}})}),(0,o.jsx)(g.gN,{label:"Ø¨Ø±ÚØ³Ø¨ Ú©ÙØªØ§Ù",hint:"Ø¨Ø±Ø§Û ÚÛپس ÙÛÙØªØ±ÙØ§Ø Ù
ث٠\xabاستخردار\xbb",children:(0,o.jsx)(g.II,{value:K.shortLabel,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{shortLabel:e.target.value}))}})}),(0,o.jsx)(g.gN,{label:"ØªØ±ØªÛØ¨ ÙÙ
Ø§ÛØ´",children:(0,o.jsx)(g.II,{t
1ype:"number",value:K.sortOrder,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{sortOrder:Number(e.target.value)}))}})})]}),(0,o.jsxs)("div",{className:"rounded-12 border border-gray-EFEFEF overflow-hidden",children:[(0,o.jsxs)("div",{className:"px-16 py-12 bg-gray-FAFAFA flex items-center justify-between",children:[(0,o.jsx)("span",{className:"text-13 leading-22 font-m text-gray-1E1D28",children:"شرطâÙØ§Û تگ"}),(0,o.jsx)("span",{className:"text-11 text-gray-6C6A7D",children:"Ø¯Ø§Ø®Ù ÙØ± گرÙÙ \xabÛØ§\xbb \xb7 بÛ٠گرÙÙâÙØ§ \xabÙ\xbb"})]}),(0,o.jsxs)("div",{className:"p-16 flex flex-col gap-y-12",children:[0===Y.length&&(0,o.jsx)("p",{className:"text-12 leading-22 text-gray-6C6A7D",children:"ÙÙÙØ² Ø´Ø±Ø·Û ÙØ¯Ø§Ø±Ù. بدÙÙ Ø´Ø±Ø·Ø Ø§Û٠تگ ÙÙ
ÙâÛ Ø§ÙØ§Ù
تگاÙâÙØ§ Ø±Ù ÙØ´ÙÙ Ù
ÛâØ¯Ù."}),Y.map(function(e,n){var t=(0,i.Z)(e,2),a=t[0],r=t[1];return(0,o.jsxs)("div",{children:[n>0&&(0,o.jsx)("div",{className:"text-11 font-m text-gray-B0AFBC my-6 text-center",children:"Ù"}),(0,o.jsxs)("div",{className:"rounded-10 border border-gray-EFEFEF p-12 flex flex-col gap-y-8",children:[r.map(function(e,n){return(0,o.jsxs)("div",{children:[n>0&&(0,o.jsx)("div",{className:"text-11 text-gray-B0AFBC my-4",children:"ÛØ§"}),(0,o.jsx)(b,{condition:e,options:E,onChange:function(n){return B(H.map(function(t){return t===e?n:t}))},onRemove:function(){return B(H.filter(function(n){return n!==e}))}})]},n)}),(0,o.jsx)("button",{onClick:function(){return B((0,s.Z)(H).concat([{groupIndex:a,amenityKey:null,ruleKey:null,valueName:null}]))},className:"text-11 text-primary-main hover:underline self-start",children:"+ Ø§ÙØ²Ùد٠گزÛÙÙâÛ \xabÛØ§\xbb ب٠اÛ٠گرÙÙ"})]})]},a)}),(0,o.jsx)("button",{onClick:function(){return B((0,s.Z)(H).concat([{groupIndex:Y.length?(t=Math).max.apply(t,(0,s.Z)(Y.map(function(e){return e[0]})))+1:0,amenityKey:null,ruleKey:null,valueName:null}]))},className:"text-12 text-primary-main hover:underline self-start",children:"+ Ø§ÙØ²Ùد٠گرÙ٠شرط Ø¬Ø¯ÛØ¯ (\xabÙ\xbb)"})]})]}),(0,o.jsxs)("div",{className:"grid md:grid-cols-3 gap-14",children:[(0,o.jsx)(g.gN,{label:"ÙÙØ¹ Ø§ÙØ§Ù
تگاÙ",children:(0,o.jsx)(g.Ph,{value:K.residenceType,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{residenceType:e.target.value}))},children:v.map(function(e){return(0,o.jsx)("option",{value:e.value,children:e.label},e.value)})})}),(0,o.jsx)(g.gN,{label:"ØØ¯Ø§ÙÙ ÙÛÙ
ت ÙØ³Ø· ÙÙØªÙ",hint:"خاÙÛ ÛØ¹ÙÛ Ø¨Ø¯ÙÙ Ú©Ù ÙÛÙ
ت",children:(0,o.jsx)(g.II,{type:"number",value:K.priceMin,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{priceMin:e.target.value}))}})}),(0,o.jsx)(g.gN,{label:"ØØ¯Ø§Ú©Ø«Ø± ÙÛÙ
ت ÙØ³Ø· ÙÙØªÙ",hint:"خاÙÛ ÛØ¹ÙÛ Ø¨Ø¯Ù٠سÙÙ ÙÛÙ
ت",children:(0,o.jsx)(g.II,{type:"number",value:K.priceMax,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{priceMax:e.target.value}))}})})]}),(0,o.jsx)("div",{className:"rounded-10 px-16 py-12 text-12 leading-22 ".concat(ee?"bg-[#FEF3C7] text-[#92400E]":"bg-gray-FAFAFA text-gray-6C6A7D"),children:Q?"در ØØ§Ù Ù
ØØ§Ø³Ø¨Ùâ¦":ee?(0,o.jsxs)(o.Fragment,{children:["اÛ٠تعرÛÙ ÙÛÚ ÙÛÙØªØ±Û ÙØ¯Ø§Ø±Ù Ù ",(0,o.jsx)("span",{className:"font-m",children:"ÙÙ
ÙâÛ Ø§ÙØ§Ù
تگاÙâÙØ§"})," Ø±Ù ÙØ´ÙÙ Ù
ÛâØ¯Ù â Ú©Ù Ø¨Ø±Ø§Û ÛÚ© ØµÙØÙâÛ Ø³Ø¦ÙÛÛ ØªÙØ±Ûبا٠ÙÙ
ÛØ´Ù اشتباÙÙ."]}):G?(0,o.jsxs)(o.Fragment,{children:["با اÛ٠تعرÛÙ ",(0,o.jsx)("span",{className:"font-m text-gray-1E1D28",children:(0,g.N)(G.total)})," ","Ø§ÙØ§Ù
تگا٠Ù
ÙØªØ´Ø±Ø´Ø¯Ù ÙÙ
Ø§ÛØ´ داد٠Ù
ÛâØ´Ù.",0===G.total&&" â ÛØ¹ÙÛ ØµÙØÙ Ø®Ø§ÙÛ Ù
ÛâÙ
ÙÙÙ."]}):"Ù¾ÛØ´âÙÙ
Ø§ÛØ´ در دسترس ÙÛØ³Øª."}),(0,o.jsxs)("div",{className:"grid md:grid-cols-2 gap-14",children:[(0,o.jsx)(g.gN,{label:"عÙÙØ§Ù Ù
ØªÙ ØµÙØÙ",children:(0,o.jsx)(g.II,{value:K.contentTitle,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{contentTitle:e.target.value}))}})}),(0,o.jsx)(g.gN,{label:"ÛØ§Ø¯Ø¯Ø§Ø´Øª داخÙÛ",hint:"ÙÙØ· Ø¨Ø±Ø§Û ØªÛÙ
Ø Ø¬Ø§ÛÛ ÙÙ
Ø§ÛØ´ داد٠ÙÙ
ÛâØ´Ù.",children:(0,o.jsx)(g.II,{value:K.description,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{description:e.target.value}))}})})]}),(0,o.jsx)(g.gN,{label:"Ù
ØªÙ ØµÙØÙ",hint:"HTML Ù
جازÙ.",children:(0,o.jsx)("textarea",{value:K.contentHtml,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{contentHtml:e.target.value}))},rows:5,className:"w-full rounded-10 border border-gray-EFEFEF px-14 py-10 text-13 leading-22 outline-none focus:border-primary-main font-mono"})}),(0,o.jsxs)("div",{className:"flex flex-wrap gap-x-24 gap-y-10",children:[(0,o.jsx)(g.ZD,{checked:K.isActive,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{isActive:e}))},label:"ÙØ¹Ø§Ù"}),(0,o.jsx)(g.ZD,{checked:K.isSuggested,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{isSuggested:e}))},label:"ÙÙ
Ø§ÛØ´ در \xabجستجÙÙØ§Û Ù
رتبط\xbb"}),(0,o.jsx)(g.ZD,{checked:K.matchIsFast,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{matchIsFast:e}))},label:"ÙÙØ· رزر٠آÙÛ"}),(0,o.jsx)(g.ZD,{checked:K.showInHomepage,onChange:function(e){return _((0,l.Z)((0,r.Z)({},K),{showInHomepage:e}))},label:"ÙÙ
Ø§ÛØ´ در ØµÙØÙâÛ Ø§ØµÙÛ"})]}),M&&M.pageCount>0&&(0,o.jsxs)("p",{className:"text-11 leading-20 text-gray-B0AFBC",children:[(0,g.N)(M.pageCount)," ØµÙØÙâÛ Ø³Ø¦ÙÛÛ Ø¨Ù Ø§Û٠تگ ÙØµÙÙ. ØºÛØ±ÙعاÙâÚ©Ø±Ø¯ÙØ اÙÙâÙØ§ ر٠از دسترس خارج Ù
ÛâÚ©ÙÙ ÙÙÛ Ù¾Ø§Ú© ÙÙ
ÛâÚ©ÙÙ."]}),P&&(0,o.jsx)("p",{className:"text-12 leading-20 text-[#DC2626]",children:P}),(0,o.jsxs)("div",{className:"flex gap-x-8 justify-end",children:[(0,o.jsx)(g.zx,{variant:"ghost",onClick:S,children:"Ø§ÙØµØ±Ø§Ù"}),(0,o.jsx)(g.zx,{onClick:$,disabled:J||!K.key.trim()||!K.name.trim(),children:J?"در ØØ§Ù Ø°Ø®ÛØ±Ùâ¦":"Ø°Ø®ÛØ±Ù تگ"})]})]})})}
1function b(e){var n,t,a=e.condition,i=e.options,c=e.onChange,u=e.onRemove,d=null!==(n=a.amenityKey)&&void 0!==n?n:a.ruleKey?"rule:".concat(a.ruleKey):"",x=i.amenities.find(function(e){return e.key===a.amenityKey});return(0,o.jsxs)("div",{className:"flex flex-wrap items-center gap-8",children:[(0,o.jsxs)(g.Ph,{value:d,onChange:function(e){var n=e.target.value;n.startsWith("rule:")?c((0,l.Z)((0,r.Z)({},a),{amenityKey:null,ruleKey:n.slice(5),valueName:null})):c((0,l.Z)((0,r.Z)({},a),{amenityKey:n||null,ruleKey:null,valueName:null}))},className:"min-w-[200px] flex-1",children:[(0,o.jsx)("option",{value:"",children:"â ÙÛÚÚ¯Û Ø±Ø§ Ø§ÙØªØ®Ø§Ø¨ Ú©Ù â"}),(0,o.jsx)("optgroup",{label:"اÙ
Ú©Ø§ÙØ§Øª",children:i.amenities.map(function(e){return(0,o.jsx)("option",{value:e.key,children:e.name},e.key)})}),(0,o.jsx)("optgroup",{label:"ÙÙØ§ÙÛÙ",children:i.rules.map(function(e){return(0,o.jsx)("option",{value:"rule:".concat(e.key),children:e.name},e.key)})})]}),x&&(x.options.length>0||a.valueName)?(0,o.jsxs)(g.Ph,{value:null!==(t=a.valueName)&&void 0!==t?t:"",onChange:function(e){return c((0,l.Z)((0,r.Z)({},a),{valueName:e.target.value||null}))},className:"min-w-[180px] flex-1",children:[(0,o.jsx)("option",{value:"",children:"ÙØ± Ù
ÙØ¯Ø§Ø±Û (ÙÙØ· داشتÙ)"}),(0,s.Z)(new Set((0,s.Z)(a.valueName?[a.valueName]:[]).concat((0,s.Z)(x.options)))).map(function(e){return(0,o.jsx)("option",{value:e,children:e},e)})]}):(0,o.jsx)("span",{className:"text-11 text-gray-B0AFBC flex-1",children:a.ruleKey?"Ø¨Ø§ÛØ¯ \xabبÙÙ\xbb باشÙ":"ÙÙØ· داشت٠اÛ٠اÙ
کاÙ"}),(0,o.jsx)("button",{onClick:u,className:"text-11 text-[#DC2626] hover:underline shrink-0","aria-label":"ØØ°Ù شرط",children:"ØØ°Ù"})]})}}},function(e){e.O(0,[9791,9759,9774,2888,179],function(){return e(e.s=40809)}),_N_E=e.O()}]);
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.