Files
Rasadyar_FrontEnd/build/assets/reactour.esm-BEg-F6V1.js

140 lines
58 KiB
JavaScript
Raw Normal View History

2026-01-19 15:55:00 +03:30
import{j as N,I as $t,B as qn,ak as dt,aJ as Hn,H as Be,aB as $n,_ as Un}from"./mui-vendor-CkIVaoQP.js";import{r as S,u as Gn,g as be,e as fe,b as C,d as zn}from"./react-vendor-CmFgShSM.js";import{L as Qn,j as Vn,h as vt,A as pt,a9 as Ne,a1 as je,p as de,N as ht,G as z,S as se,W as bt,iz as Yn}from"./index-Vwb3Bce5.js";import{a as Kn,u as Ut,f as Gt,_ as Xn}from"./redux-vendor-B7uoacJt.js";import{d as Jn}from"./Delete-DHYHiC8G.js";import{C as Zn}from"./CityNewKillRequest-ByfLtRM3.js";import{R as er}from"./ResponsiveTable-DugzNG82.js";import{A as tr}from"./AdvancedTable-B0ObjV8k.js";import{d as nr}from"./Plagiarism-B6PD3EJO.js";import{_ as rr}from"./chart-vendor-sE2SUVPW.js";import{a as or,s as B}from"./styled-components.browser.esm-gS9mh05b.js";const ur=Kn("ARCHIVE_DELETE_KILL_REQUEST_SERVICE",async(e,{dispatch:t})=>{t(Qn());try{const{data:n,status:r}=await Vn.delete("Poultry_Request/"+e);return t(vt()),{data:n,status:r}}catch(n){return t(vt()),{error:n.response.data.result}}}),Bu=()=>{const[e,t]=S.useState([]),n=Ut(),[r]=S.useContext(pt),{avicultureRequests:o}=Gt(l=>l.avicultureSlice),[,,u,a,i,c]=S.useContext(pt);return S.useEffect(()=>{const l=Ne(new Date).format("YYYY-MM-DD");a(l),c(l)},[]),S.useEffect(()=>{n(je({selectedDate1:u,selectedDate2:i}))},[u,i]),S.useEffect(()=>{const l=Array.isArray(o)&&(o==null?void 0:o.filter((s,v)=>(s.stateProcess==="accepted"||s.stateProcess==="pending")&&s.finalState!=="archive"));let f;l&&(f=l==null?void 0:l.map((s,v)=>{var p,m,w,h,y,b,k,E,x,A,I,T,W,L,M,Q,_,$;let g="";return s.directBuying?g="خرید مستقیم":s.union?g="خرید خارج از استان":g="اتحادیه",[v+1,s.orderCode,g,s!=null&&s.freezing?"انجماد":s!=null&&s.export?"صادرات":"عادی",s!=null&&s.directBuyingBuyerInfo?`${(p=s==null?void 0:s.directBuyingBuyerInfo)==null?void 0:p.buyerFullname} (${(m=s==null?void 0:s.directBuyingBuyerInfo)==null?void 0:m.buyerMobile})`:"-",s.directBuyingKillPlace?s.directBuyingKillPlace:"-",s!=null&&s.createDate?de(s==null?void 0:s.createDate):"",s!=null&&s.sendDate?de(s==null?void 0:s.sendDate):"",`${(h=(w=s.process)==null?void 0:w.poultry)==null?void 0:h.poultryName} (${(b=(y=s.process)==null?void 0:y.poultry)==null?void 0:b.poultryMobile})`,`${(E=(k=s.process)==null?void 0:k.poultry)==null?void 0:E.poultryProvince}/${(A=(x=s.process)==null?void 0:x.poultry)==null?void 0:A.poultryCity}`,de((T=(I=s.process)==null?void 0:I.poultryHatching)==null?void 0:T.date),(L=(W=s.process)==null?void 0:W.poultry)==null?void 0:L.age,s.IndexWeight,(Q=(M=s.process)==null?void 0:M.poultry)==null?void 0:Q.poultryQuantity.toLocaleString(),(s.IndexWeight*(($=(_=s.process)==null?void 0:_.poultry)==null?void 0:$.poultryQuantity)).toLocaleString(),N.jsx($t,{disabled:s==null?void 0:s.directBuyingKillPlace,"aria-label":"delete",color:"error",className:"avicultureActiveRequestsBtn",onClick:()=>{var O,V;n(ur((V=(O=s==null?void 0:s.process)==null?void 0:O.poultry)==null?void 0:V.poultryRequestId)).then(U=>{U.payload.error?r({vertical:"top",horizontal:"center",msg:U.payload.error,severity:"error"}):(n(je()),n(ht({right:!1,bottom:!1,content:null})),r({vertical:"top",horizontal:"center",msg:"عملیات با موفقیت انجام شد.",severity:"success"}))})},children:N.jsx(Jn,{})},s==null?void 0:s.orderCode)]})),t(f)},[o]),N.jsx(N.Fragment,{children:N.jsx(z,{container:!0,gap:se.MEDIUM,direction:"column",xs:12,children:N.jsx(z,{container:!0,gap:se.SMALL,justifyContent:{xs:"center",lg:"space-between"},alignSelf:"center",alignItems:"center",xs:12,direction:{xs:"column",lg:"row"},width:"100%",children:N.jsxs(z,{container:!0,gap:se.SMALL,alignItems:"start",direction:"column",width:"100%",children:[N.jsx(z,{container:!0,width:"100%",gap:se.SMALL,children:N.jsx(qn,{className:"avicultureNewRequestBtn",variant:"contained",onClick:()=>{n(ht({right:!(window.innerWidth<=600),bottom:window.innerWidth<=600,title:"ثبت درخواست کشتار",content:N.jsx(Zn,{isAviculture:!0})}))},children:"ثبت درخواست کشتار"})}),N.jsxs(z,{width:"100%",className:"avicultureActiveRequestsView",child
2026-01-19 15:40:45 +03:30
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var u=arguments[o];if(u){var a=typeof u;if(a==="string"||a==="number")r.push(u);else if(Array.isArray(u)){if(u.length){var i=n.apply(null,u);i&&r.push(i)}}else if(a==="object")if(u.toString===Object.prototype.toString)for(var c in u)t.call(u,c)&&u[c]&&r.push(c);else r.push(u.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Qt);var ar=Qt.exports;const gt=be(ar);var We={exports:{}},qe={exports:{}},J={};Object.defineProperty(J,"__esModule",{value:!0});var ir=J.easeFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:-1+(4-2*t)*t},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},cr=J.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)};J.setPosition=function(t,n,r,o){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"easeInOutCubic";return r>o?n:t+(n-t)*ir[u](r/o)};J.calcEndPoint=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(cr(t))return parseInt(t)+r;var o=n===window||n===document.documentElement?window.pageYOffset:n.scrollTop-n.getBoundingClientRect().top,u=t.nodeName.toLowerCase()==="html"?-o:t.getBoundingClientRect().top+o;return u+r};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},r=J;t.default=function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=u.duration,i=a===void 0?500:a,c=u.context,l=c===void 0?window:c,f=u.offset,s=f===void 0?0:f,v=u.ease,g=v===void 0?"easeInOutCubic":v,p=u.callback;if((typeof window>"u"?"undefined":n(window))==="object"){var m=l.scrollTop!==null&&l.scrollTop!==void 0?l.scrollTop:window.pageYOffset,w=(0,r.calcEndPoint)(o,l,s),h=performance.now(),y=window.requestAnimationFrame,b=function k(){var E=performance.now()-h,x=(0,r.setPosition)(m,w,E,i,g);l!==window?l.scrollTop=x:window.scroll(0,x),E>i?typeof p=="function"&&p(o):y(k)};b()}},e.exports=t.default})(qe,qe.exports);var Vt=qe.exports,He={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(a){for(var i=1;i<arguments.length;i++){var c=arguments[i];for(var l in c)Object.prototype.hasOwnProperty.call(c,l)&&(a[l]=c[l])}return a},r=Vt,o=u(r);function u(a){return a&&a.__esModule?a:{default:a}}t.default=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=a.query,c=i===void 0?'[href^="#"]:not([href="#"]':i,l=a.match,f=l===void 0?function(w){return document.getElementById(w.hash.substring(1))}:l,s=a.hashChange,v=s===void 0?!0:s,g=a.scrollSmoothConfig,p=document.querySelectorAll(c),m=function(h){h.preventDefault();var y=f(h.target);y&&(v&&history.replaceState(null,null,"#"+y.id),(0,o.default)(y,n({},g)))};Array.from(p).map(function(w){w.addEventListener("click",m,!1)})},e.exports=t.default})(He,He.exports);var sr=He.exports,$e={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(r){if(Array.isArray(r)){for(var o=0,u=Array(r.length);o<r.length;o++)u[o]=r[o];return u}else return Array.from(r)}t.default=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=r.activeClass,u=o===void 0?"active":o,a=r.query,i=a===void 0?'[href^="#"]:not([href="#"]):not([href="#0"])':a,c=r.threshold,l=c===void 0?[.25,.5,.75]:c,f
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){i=!0,u=c},f:function(){try{a||n.return==null||n.return()}finally{if(i)throw u}}}}function R(e,t,n){return(t=In(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xe(e)}function ru(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ye(e,t)}function _n(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_n=function(){return!!e})()}function ou(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,u,a,i=[],c=!0,l=!1;try{if(u=(n=n.call(e)).next,t!==0)for(;!(c=(r=u.call(n)).done)&&(i.push(r.value),i.length!==t);c=!0);}catch(f){l=!0,o=f}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return i}}function uu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function It(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?It(Object(n),!0).forEach(function(r){R(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):It(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function au(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jo(e)}function Ye(e,t){return Ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ye(e,t)}function iu(e,t){return Xo(e)||ou(e,t)||Fn(e,t)||uu()}function P(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cu(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function In(e){var t=cu(e,"string");return typeof t=="symbol"?t:t+""}function Fn(e,t){if(e){if(typeof e=="string")return _t(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_t(e,t):void 0}}var Ft,su=or(Ft||(Ft=P([`
.focus-outline-hidden :focus {
outline: none;
}
`]))),Tt,Tn=B.button(Tt||(Tt=P([`
display: block;
padding: 0;
border: 0;
background: none;
font-size: 0;
cursor: `,`;
`])),function(e){return e.disabled?"not-allowed":"pointer"}),Rt,Lt,lu=B.span(Rt||(Rt=P([`
font-size: 12px;
line-height: 1;
`])));function Rn(e){var t=e.className,n=e.onClick,r=e.inverted,o=e.label,u=e.disabled;return C.createElement(Tn,{className:t,onClick:n,"data-tour-elem":"".concat(r?"right":"left","-arrow"),disabled:u},o?C.createElement(lu,null,o):C.createElement("svg",{viewBox:"0 0 18.4 14.4"},C.createElement("path",{d:r?"M17 7.2H1M10.8 1L17 7.2l-6.2 6.2":"M1.4 7.2h16M7.6 1L1.4 7.2l6.2 6.2",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeMiterlimit:"10"})))}Rn.propTypes={className:d.string.isRequired,onClick:d.func.isRequired,inverted:d.bool,label:d.node,disabled:d.bool};var Pt=B(Rn)(Lt||(Lt=P([`
color: `,`;
`,`;
`,`;
&:hover {
color: `,`;
}
`])),function(e){return e.disabled?"#caccce":"#646464"},function(e){return e.inverted?"margin-left: 24px;":"margin-right: 24px;"},function(e){return!e.label&&`
width: 16px;
height: 12px;
flex: 0 0 16px;
`},function(e){return e.disabled?"#caccce":"#000"}),Mt;function Ln(e){var t=e.className,n=e.onClick,r=e.ariaLabel;return C.createElement(Tn,{className:t,onClick:n,"aria-label":r},C.createElement("svg",{viewBox:"0 0 9.1 9.1","aria-hidden":!0,role:"presentation"},C.createElement("path",{fill:"currentColor",d:"M5.9 4.5l2.8-2.8c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L4.5 3.1 1.7.3C1.3-.1.7-.1.3.3c-.4.4-.4 1 0 1.4l2.8 2.8L.3 7.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3s.5-.1.7-.3L4.5 6l2.8 2.8c.3.2.5.3.8.3s.5-.1.7-.3c.4-.4.4-1 0-1.4L5.9 4.5z"})))}Ln.propTypes={className:d.string.isRequired,onClick:d.func.isRequired,ariaLabel:d.string};var fu=B(Ln)(Mt||(Mt=P([`
position: absolute;
top: 22px;
right: 22px;
width: 9px;
height: 9px;
color: #5e5e5e;
&:hover {
color: #000;
}
`])));function we(e){var t=e.getBoundingClientRect(),n=t.top,r=t.right,o=t.bottom,u=t.left,a=t.width,i=t.height;return{top:n,right:r,bottom:o,left:u,width:a,height:i}}function Pn(e,t){if(!t.highlightedSelectors)return we(e);var n=we(e),r=ie(t.highlightedSelectors),o;try{for(r.s();!(o=r.n()).done;){var u=o.value,a=document.querySelector(u);if(!(!a||a.style.display==="none"||a.style.visibility==="hidden")){var i=we(a);i.top<n.top&&(n.top=i.top),i.right>n.right&&(n.right=i.right),i.bottom>n.bottom&&(n.bottom=i.bottom),i.left<n.left&&(n.left=i.left)}}}catch(c){r.e(c)}finally{r.f()}return n.width=n.right-n.left,n.height=n.bottom-n.top,n}function du(e){var t=e.top,n=e.right,r=e.bottom,o=e.left,u=e.w,a=e.h,i=e.threshold,c=i===void 0?0:i;return t>=0+c&&o>=0+c&&r<=a-c&&n<=u-c}function vu(e){return e===document.querySelector("body")||e===document.querySelector("html")}var pu=function(t){return/(left|right)/.test(t)},Pe=function(t,n){return t>n},Me=function(t,n){return t>n},D=function(t){return t<0?0:t};function hu(e){return Object.keys(e).map(function(t){return{position:t,value:e[t]}}).sort(function(t,n){return n.value-t.value}).map(function(t){return t.position})}var Dt,bu=B.div(Dt||(Dt=P([`
--reactour-accent: `,`;
`,`
position: fixed;
transition: transform 0.3s;
top: 0;
left: 0;
z-index: 1000000;
transform: `,`;
`])),function(e){return e.accentColor},function(e){return e.defaultStyles?`
max-width: 331px;
min-width: 150px;
padding-right: 40px;
border-radius: `.concat(e.rounded,`px;
background-color: #fff;
padding: 24px 30px;
box-shadow: 0 0.5em 3em rgba(0, 0, 0, 0.3);
color: inherit;
`):""},function(e){var t=e.targetTop,n=e.targetRight,r=e.targetBottom,o=e.targetLeft,u=e.windowWidth,a=e.windowHeight,i=e.helperWidth,c=e.helperHeight,l=e.helperPosition,f=e.padding,s={left:o,right:u-n,top:t,bottom:a-r},v=function(h){return s[h]>(pu(h)?i+f*2:c+f*2)},g=function(h){for(var y=hu(s),b=0;b<y.length;b++)if(v(y[b]))return h[y[b]];return h.center},p=function(h){if(Array.isArray(h)){var y=Pe(h[0],u),b=Me(h[1],a),k=function(L,M){console.warn("".concat(L,":").concat(M," is outside window, falling back to center"))};return y&&k("x",h[0]),b&&k("y",h[1]),[y?u/2-i/2:h[0],b?a/2-c/2:h[1]]}var E=Pe(o+i,u)?Pe(n+f,u)?n-i:n-i+f:o-f,x=E>f?E:f,A=Me(t+c,a)?Me(r+f,a)?r-c:r-c+f:t-f,I=A>f?A:f,T={top:[x,t-c-f*2],right:[n+f*2,I],bottom:[x,r+f*2],left:[o-i-f*2,I],center:[u/2-i/2,a/2-c/2]};return h==="center"||v(h)?T[h]:g(T)},m=p(l);return"translate(".concat(Math.round(m[0]),"px, ").concat(Math.round(m[1]),"px)")}),Bt,mu=B.span(Bt||(Bt=P([`
position: absolute;
font-family: monospace;
background: var(--reactour-accent);
background: `,`;
height: 1.875em;
line-height: 2;
padding-left: 0.8125em;
padding-right: 0.8125em;
font-size: 1em;
border-radius: 1.625em;
color: white;
text-align: center;
box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
top: -0.8125em;
left: -0.8125em;
`])),function(e){return e.accentColor}),jt,gu=B.div(jt||(jt=P([`
display: flex;
margin-top: 24px;
align-items: center;
justify-content: center;
`]))),Wt,yu=B.nav(Wt||(Wt=P([`
counter-reset: dot;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
`]))),qt,wu=B.button(qt||(qt=P([`
counter-increment: dot;
width: 8px;
height: 8px;
border: `,`;
border-radius: 100%;
padding: 0;
display: block;
margin: 4px;
transition: opacity 0.3s, transform 0.3s;
cursor: `,`;
transform: scale(`,`);
color: `,`;
background: `,`;
color: `,`;
background: `,`;
&:before {
content: counter(dot);
position: absolute;
bottom: calc(100% + 0.25em);
left: 50%;
opacity: 0;
transform: translate(-50%, 1em);
transition: 0.3s;
display: `,`;
}
&:hover {
background-color: currentColor;
&:before {
opacity: 0.5;
transform: translate(-50%, -2px);
}
}
`])),function(e){return e.current===e.index?"0":"1px solid #caccce"},function(e){return e.disabled?"not-allowed":"pointer"},function(e){return e.current===e.index?1.25:1},function(e){return e.current===e.index?"var(--reactour-accent)":"#caccce"},function(e){return e.current===e.index?"var(--reactour-accent)":"none"},function(e){return e.current===e.index?e.accentColor:"#caccce"},function(e){return e.current===e.index?e.accentColor:"none"},function(e){return e.showNumber?"block":"none"}),Ht,Cu=B.div(Ht||(Ht=P([`
opacity: `,`;
color: `,`;
width: 100%;
left: 0;
top: 0;
height: 100%;
position: fixed;
z-index: 99999;
pointer-events: none;
`])),function(e){return!e.maskClassName&&.7},function(e){return!e.maskClassName&&"#000"});function Mn(e){var t=e.windowWidth,n=e.windowHeight,r=e.targetWidth,o=e.targetHeight,u=e.targetTop,a=e.targetLeft,i=e.padding,c=e.rounded,l=e.roundedStep,f=e.disableInteraction,s=e.disableInteractionClassName,v=e.className,g=e.onClick,p=e.highlightedBorder,m=D(r+i*2),w=D(o+i*2),h=D(u-i),y=D(a-i),b=l?Math.min(m/2,w/2):c;return C.createElement(Cu,{onClick:g,maskClassName:v},C.createElement("svg",{width:t,height:n,xmlns:"http://www.w3.org/2000/svg",className:v},C.createElement("defs",null,C.createElement("mask",{id:"mask-main"},C.createElement("rect",{x:0,y:0,width:t,height:n,fill:"white"}),C.createElement("rect",{x:y,y:h,width:m,height:w,fill:"black"}),C.createElement("rect",{x:y-1,y:h-1,width:b,height:b,fill:"white"}),C.createElement("circle",{cx:y+b,cy:h+b,r:b,fill:"black"}),C.createElement("rect",{x:y+m-b+1,y:h-1,width:b,height:b,fill:"white"}),C.createElement("circle",{cx:y+m-b,cy:h+b,r:b,fill:"black"}),C.createElement("rect",{x:y-1,y:h+w-b+1,width:b,height:b,fill:"white"}),C.createElement("circle",{cx:y+b,cy:h+w-b,r:b,fill:"black"}),C.createElement("rect",{x:y+m-b+1,y:h+w-b+1,width:b,height:b,fill:"white"}),C.createElement("circle",{cx:y+m-b,cy:h+w-b,r:b,fill:"black "})),C.createElement("clipPath",{id:"clip-path"},C.createElement("rect",{x:0,y:0,width:t,height:h}),C.createElement("rect",{x:0,y:h,width:y,height:w}),C.createElement("rect",{x:a+r+i,y:h,width:D(t-r-y),height:w}),C.createElement("rect",{x:0,y:u+o+i,width:t,height:D(n-o-h)}))),C.createElement("rect",{x:0,y:0,width:t,height:n,fill:"currentColor",mask:"url(#mask-main)"}),C.createElement("rect",{x:0,y:0,width:t,height:n,fill:"currentColor",clipPath:"url(#clip-path)",pointerEvents:"auto"}),C.createElement("rect",{x:y,y:h,width:m,height:w,pointerEvents:"auto",fill:"transparent",display:f?"block":"none",className:s}),p&&C.createElement("rect",{x:D(y+p.width/2),y:D(h+p.width/2),width:D(m-p.width),height:D(w-p.width),pointerEvents:"auto",fill:"none",strokeWidth:p.width,stroke:p.color,rx:b-2})))}Mn.propTypes={windowWidth:d.number.isRequired,windowHeight:d.number.isRequired,targetWidth:d.number.isRequired,targetHeight:d.number.isRequired,targetTop:d.number.isRequired,targetLeft:d.number.isRequired,padding:d.number.isRequired,rounded:d.number.isRequired,roundedStep:d.bool,disableInteraction:d.bool.isRequired,disableInteractionClassName:d.string.isRequired,highlightedBorder:d.shape({color:d.string.isRequired,width:d.number.isRequired})};var xu=function(e){var t=e.step,n=e.refresh,r=S.useState(0),o=iu(r,2),u=o[0],a=o[1];return S.useEffect(function(){if(t.resizeObservables){var i=function(v){var g=ie(v),p;try{var m=function(){var h=p.value;if(!h.attributes)return 1;var y=t.resizeObservables.find(function(b){return h.matches(b)||h.querySelector(b)!=null});y&&a(u+1)};for(g.s();!(p=g.n()).done;)m()}catch(w){g.e(w)}finally{g.f()}},c=new MutationObserver(function(s){var v=ie(s),g;try{for(v.s();!(g=v.n()).done;){var p=g.value;p.addedNodes.length!==0&&i(p.addedNodes),p.removedNodes.length!==0&&i(p.removedNodes)}}catch(m){v.e(m)}finally{v.f()}}),l=document.documentElement||document.body,f={childList:!0,subtree:!0};return c.observe(l,f),function(){c.disconnect()}}},[t,u]),S.useEffect(function(){if(t.resizeObservables){var i=new ResizeObserver(function(v){n()}),c=ie(t.resizeObservables),l;try{for(c.s();!(l=c.n()).done;){var f=l.value,s=document.querySelector(f);s&&i.observe(s)}}catch(v){c.e(v)}finally{c.f()}return function(){i.disconnect()}}},[t,u]),null},Su=function(e){var t=e.step,n=e.refresh;return S.useEffect(function(){if(t.mutationObservables){var r=function(c){var l=ie(c),f;try{var s=function(){var g=f.value;if(!g.attributes)return 1;var p=t.mutationObservables.find(function(m){return g.matches(m)||g.querySelector(m)!=null});p&&n()};for(l.s();!(f=l.n()).done;)s()}catch(v){l.e(v)}finally{l.f()}},o=new MutationObserver(function(i){var c=ie(i),l;try{for(c.s();!(l=c.n()).done;){var f=l.value;f.addedNodes.length!==0&&r(f.addedNodes),f.removedNodes.length!==0&&r(f.removedNodes)}}catch(s){c.