���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
static
/
js
/
Viewing: main.9ceff0f3.js
(()=>{var t={8216:(t,n,o)=>{"use strict";o.r(n),o.d(n,{default:()=>ko});var i=o(9439),r=o(5861),a=o(1749),l=o(3847),s=o(1844),d=o(8778),u=o(7775),c=o(9766),f=o(9803),h=o(3936),g=o(458),m=o(7901),y=o(4547),p=o(4614);const x="#feeeb3",b="#fdc500",j="#fca300",w="#ffffffbf",v="#fafafa",S="#f0f0f0",C="#00509d1a",O="#36ab00",z="#98FF98",k="#00ff00",P="#f04b23",M="#00C853",B="#C41C00",T="#C4C4C4",F="#ECECEC",_="#979494",I="#222222";var R=o(8687),D=o.n(R),L=o(2969),A=o.n(L),E="LOGIN",W="STATE",H="CITY",V="PROFILE_INFO",N="SET_PROFILE",q="GET_SLIDER",G="GET_APP",U="ADD_TICKET",Q="GET_TICKET",J="SET_TOKEN",K="LOGOUT",Y="GET_WALLET",Z="SET_PUSH_TOK",X=function(e){return function(){var t=(0,r.default)((function*(t){t({type:J,data:e})}));return function(e){return t.apply(this,arguments)}}()},$=function(){return function(){var e=(0,r.default)((function*(e){e({type:K})}));return function(t){return e.apply(this,arguments)}}()},ee=function(){var e=(0,r.default)((function*(e){var t=new(A());t.append("mobile",e),fetch("https://cutunix.com/api/v1/auth/send-sms",{method:"POST",headers:{Accept:"application/json"},body:t}).then((function(e){return e.json()})).then((function(e){return console.log(e)})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}(),te=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e};return D()({method:"get",url:"https://cutunix.com/api/v1/app/state",headers:n}).then((function(e){var n=e.data;return t({type:W,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},ne=function(e,t){return function(){var n=(0,r.default)((function*(n){var o={Accept:"application/json",Authorization:"Bearer "+e},i="https://cutunix.com/api/v1/app/city?state_id="+t;return D()({method:"get",url:i,headers:o}).then((function(e){var t=e.data;return n({type:H,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return n.apply(this,arguments)}}()},oe=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e},o="https://cutunix.com/api/v1/app/all-config?token="+e;return D()({method:"get",url:o,headers:n}).then((function(e){var n=e.data;return t({type:V,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},ie=o(3173),re=o(116),ae=o(9822),le=o(7364),se=o(4942),de=o(5012),ue=o(5770);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const he=function(e){return(0,ue.jsx)(h.default,{style:fe({width:"100%",height:50},e.style),children:(0,ue.jsxs)(de.default,{style:fe({width:"90%",height:"90%",alignItems:"center",justifyContent:"center",backgroundColor:P,borderRadius:7,elevation:3,shadowOpacity:.3,shadowOffset:{width:0,height:0},shadowColor:P},e.touchableStyle),onPress:e.onPress,children:[e.loading&&(0,ue.jsx)(p.default,{size:e.sizespin,color:e.colorspin,style:{position:"absolute"}}),(0,ue.jsx)(h.default,{style:fe({},e.viewicon),children:(0,ue.jsx)(le.default,{name:e.nameicon,size:e.sizeicon,color:e.coloricon,style:fe({},e.styleicon)})}),!e.loading&&(0,ue.jsx)(m.default,{style:fe({fontFamily:"Montserrat",fontSize:15,color:"#fff"},e.textStyle),children:e.label})]})},e.key)};var ge=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,alignItems:"center",justifyContent:"center"},text:{color:P,fontSize:70,fontFamily:"MontserratBold",bottom:"6%"},text1:{color:P,fontSize:70,fontFamily:"MontserratBold",bottom:"10%"},image:{width:300,height:300}});const me=function(t){var n=c.useState(!0),a=(0,i.default)(n,2),l=a[0],s=a[1],d=(0,re.useDispatch)(),u=c.useState(""),f=(0,i.default)(u,2),x=f[0],b=f[1],j=c.useState(!1),w=(0,i.default)(j,2),S=w[0],C=w[1],O=function(){var n=(0,r.default)((function*(){try{var n=yield ie.default.getItem("access_token");n?(yield d(X(n)),t.navigation.replace("home")):(s(!1),t.navigation.replace("login"))}catch(o){console.log(e)}}));return function(){return n.apply(this,arguments)}}();function z(){ae.default.fetch().then((function(e){b(e),setTimeout((function(){e.isConnected?O():C(!1)}),3e3)}))}return c.useEffect((function(){z()}),[]),null==x||!x.isConnected||S?(0,ue.jsxs)(h.default,{style:ge.viewContainer,children:[(0,ue.jsx)(y.default,{backgroundColor:v}),(0,ue.jsxs)(h.default,{style:{opacity:.9,zIndex:2,flexDirection:"row",position:"absolute",width:"100%",height:"100%",backgroundColor:_,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"connection",size:30,color:B}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:30,color:B,marginLeft:10},children:"\u062e\u0637\u0627 \u062f\u0631 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a"}),(0,ue.jsx)(he,{label:"\u062a\u0644\u0627\u0634 \u0645\u062c\u062f\u062f",style:{width:"49%",marginTop:10,position:"absolute",bottom:"20%"},textStyle:{bottom:10,color:v},touchableStyle:{backgroundColor:B,elevation:0},colorspin:v,sizespin:25,loading:S,onPress:function(){C(!0),z()}})]})]}):(0,ue.jsxs)(h.default,{style:ge.viewContainer,children:[(0,ue.jsx)(y.default,{backgroundColor:v}),(0,ue.jsx)(g.default,{source:o(4092),alt:"image",style:ge.image}),(0,ue.jsx)(p.default,{color:P,size:40,animating:l})]})};var ye=o(9741),pe=o(2568),xe=o(5061),be=o(6281);function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?je(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ve=function(e){var t=c.useState(!1),n=(0,i.default)(t,2),o=n[0],r=n[1];return(0,ue.jsxs)(h.default,{style:we({width:"100%",height:55,alignItems:"center"},e.styleview),children:[(0,ue.jsx)(be.default,{onFocus:function(){return r(!0)},onBlur:function(){return r(!1)},value:e.value,onChangeText:e.onChangeText,onKeyPress:e.onKeyPress,maxLength:e.maxLength,placeholder:e.placeholder,multiline:e.multiline,editable:e.editable,defaultValue:e.defaultValue,keyboardType:e.keyboardType,mask:e.mask,style:we({width:"90%",height:55,borderWidth:1,borderRadius:5,padding:10,fontFamily:"Montserrat",borderColor:1==o?P:_},e.styleinput)}),(0,ue.jsx)(xe.default,{name:e.nameicon,size:20,color:e.coloricon,style:we({},e.styleicon),onPress:e.onPressicon}),(0,ue.jsx)(h.default,{style:we({width:90,height:25,backgroundColor:v,top:-13,position:"absolute",right:"8%"},e.stylelabel),children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratLight",fontSize:13,marginRight:5,color:1==o?P:_},children:e.label})})]})};var Se=o(7090),Ce=o(9081),Oe=o(2069),ze=o(4086),ke=o(1744),Pe=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v},viewlogo:{width:"100%",height:100,alignItems:"center",justifyContent:"center",marginTop:"40%"}});const Me=function(e){var t=(0,c.useState)(""),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,c.useState)(!1),s=(0,i.default)(l,2),u=s[0],f=s[1],g=(0,c.useState)(!1),p=(0,i.default)(g,2),x=p[0],b=p[1],j=(0,c.useState)(!0),w=(0,i.default)(j,2),S=(w[0],w[1]),C=(0,c.useState)(!1),O=(0,i.default)(C,2),z=O[0],k=O[1],T=function(){var e=(0,r.default)((function*(){try{yield ee(o)}catch(e){console.log(e)}}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){d.default.isRTL&&(d.default.forceRTL(!1),ke.reloadAsync())}));var F=(0,Ce.useMediaQuery)({maxWidth:500}),R=(0,i.default)(F,1)[0];return(0,ue.jsxs)(Oe.NativeBaseProvider,{children:[(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"lg",isOpen:z,onPress:function(){return k(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:400},children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:40,flexDirection:"row"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return k(!1)},name:"close",size:20,color:I}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,left:80,position:"absolute"},children:"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 IOS"})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:280,marginBottom:10},children:[(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,marginBottom:20,marginTop:10},children:["\u0627\u0628\u062a\u062f\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0631\u0648\u0631\u06af\u0631 ",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I},children:" safari "})," \u0648\u0627\u0631\u062f \u0633\u0627\u06cc\u062a \u06a9\u0627\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0634\u0648\u06cc\u062f. "]}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_},children:["\u0633\u067e\u0633 \u0631\u0648\u06cc \u06af\u0632\u06cc\u0646\u0647",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I},children:" share "}),"\u06a9\u0644\u06cc\u06a9 \u06a9\u0631\u062f\u0647."]}),(0,ue.jsx)(xe.default,{name:"share-outline",size:35,color:_,style:{position:"absolute",left:130,top:110}}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,marginTop:90},children:["\u0627\u0632 \u0645\u0646\u0648\u06cc \u0641\u0648\u0642 \u06af\u0632\u06cc\u0646\u0647 \u06cc",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I},children:" Add to Home Screen "})," \u0632\u062f\u0647 \u0648 \u0631\u0648\u06cc ",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I},children:" Save "})," \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f."]}),(0,ue.jsx)(xe.default,{name:"add-circle-outline",size:35,color:_,style:{position:"absolute",left:130,top:230}})]}),(0,ue.jsx)(he,{touchableStyle:{width:"80%",height:50,backgroundColor:P},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,left:25},onPress:function(){k(!1)},colorspin:v,sizespin:25,label:"\u0628\u0627\u0634\u0647"})]})})})}),(0,ue.jsxs)(h.default,{style:{width:R?"100%":500,marginLeft:R?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsx)(y.default,{backgroundColor:v}),(0,ue.jsxs)(h.default,{style:Pe.viewlogo,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,bottom:100,position:"absolute"},children:"\u0628\u0647 \u06a9\u0627\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u062e\u0648\u0634 \u0622\u0645\u062f\u06cc\u062f"}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:"\u0644\u0637\u0641\u0627 \u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "})]}),(0,ue.jsx)(ve,{label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644",styleview:{marginTop:70},placeholder:"0913 xxx xxxx",keyboardType:"numeric",value:o,mask:[/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/,/\d/],onChangeText:function(e){return a(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(de.default,{onPress:function(){"web"==ye.default.OS?pe.default.openURL("https://cutunix.ir/rules"):e.navigation.navigate("web",{addressweb:"https://cutunix.ir/rules"})},style:{width:"100%",height:50,top:"10%",alignItems:"center",justifyContent:"center"},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:P},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I},children:" \u0648\u0631\u0648\u062f \u0628\u0647 \u0645\u0646\u0632\u0644\u0647 \u0642\u0628\u0648\u0644 \u06a9\u0631\u062f\u0646 "}),"\u0642\u0648\u0627\u0646\u06cc\u0646 \u0648 \u0645\u0642\u0631\u0631\u0627\u062a",(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I},children:" \u0645\u06cc \u0628\u0627\u0634\u062f. "})]})}),(0,ue.jsx)(Se.default,{show:x,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631!",message:"\u0627\u06af\u0631 \u0632\u0628\u0627\u0646 \u062a\u0644\u0641\u0646 \u0634\u0645\u0627 \u0641\u0627\u0631\u0633\u06cc \u0627\u0633\u062a \u0644\u0637\u0641\u0627 \u06cc\u06a9\u0628\u0627\u0631 \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f.",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u062e\u06cc\u0631",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:"#DD6B55",onCancelPressed:function(){b(!1),S(!1)},onConfirmPressed:function(){b(!1),S(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center",backgroundColor:B},cancelButtonStyle:{width:"45%",height:40,backgroundColor:M,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsx)(Se.default,{show:u,showProgress:!1,title:"\u062e\u0637\u0627",message:"\u0634\u0645\u0627\u0631\u0647 \u062a\u0644\u0641\u0646 \u0631\u0627 \u0635\u062d\u06cc\u062d \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:"#DD6B55",onConfirmPressed:function(){f(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}}),(0,ue.jsx)(he,{label:"\u062b\u0628\u062a \u0646\u0627\u0645 / \u0648\u0631\u0648\u062f",style:{width:"100%",marginLeft:"5%",marginTop:120},textStyle:{bottom:10},onPress:function(){11===o.length?(T(),e.navigation.navigate("otp",{number:o})):f(!0)}}),"web"==ye.default.OS?(0,ue.jsx)(de.default,{onPress:function(){return k(!0)},style:{width:"100%",height:50,marginTop:10,justifyContent:"center",alignItems:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:18,color:_},children:"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc \u0646\u0635\u0628 \u0646\u0633\u062e\u0647 IOS"})}):null]})]})};var Be=o(3046),Te=o(4574);function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie="INPUT_CHANGE",Re="INPUT_BLUR ",De="INPUT_FOCUS",Le=function(e,t){switch(t.type){case Ie:return _e(_e({},e),{},{value:t.value,validity:t.validity});case Re:return _e(_e({},e),{},{focused:!1,touched:!0});case De:return _e(_e({},e),{},{value:"",focused:!0});default:return e}};const Ae=function(e){var t=e.onInputChange,n=e.id,o=(0,c.useReducer)(Le,{value:e.initialValue?e.initialValue:"",validity:e.initialValidity,touched:!1,focused:!1}),r=(0,i.default)(o,2),a=r[0],l=r[1];(0,c.useEffect)((function(){t(n,a.value,a.validity)}),[n,a,t]);return(0,ue.jsxs)(h.default,{style:_e({width:50,alignItems:"center",paddingHorizontal:2,marginBottom:20},e.style),children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:16,marginBottom:15,marginRight:3,color:a.focused?P:F},children:e.label}),(0,ue.jsx)(Te.default,{style:_e({backgroundColor:v,fontFamily:"Montserrat",fontSize:16,color:I,width:"100%",borderRadius:7,textAlign:"center",paddingHorizontal:15,shadowOpacity:.3,shadowOffset:{width:0,height:0},height:e.multiline?150:50,borderWidth:(a.focused,1.5),borderColor:a.focused?P:T,shadowColor:a.focused?P:T},e.styleinput),multiline:!!e.multiline,numberOfLines:e.numberOfLines,value:a.value,onBlur:function(){l({type:Re})},onFocus:function(){l({type:De})},onChangeText:function(t){var n=!0;e.required&&0===t.trim().length&&(n=!1),e.email&&!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.toLowerCase())&&(n=!1),null!=e.min&&+t<e.min&&(n=!1),null!=e.max&&+t>e.max&&(n=!1),null!=e.minLength&&t.length<e.minLength&&(n=!1),l({type:Ie,value:t,validity:n})},maxLength:1,ref:e.inputref,keyboardType:"numeric"})]})};function Ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He="FORM_INPUT_UPDATE",Ve=function(e,t){if(t.type===He){var n,o=We(We({},e.inputValues),{},(n={},(0,se.default)(n,t.id,t.value),(0,se.default)(n,"numAdded",e.inputValues.num1+e.inputValues.num2+e.inputValues.num3+e.inputValues.num4+e.inputValues.num5),n)),i=We(We({},e.inputValidities),{},(0,se.default)({},t.id,t.validity)),r=!0;for(var a in i)r=i[a]&&r;return{inputValues:o,inputValidities:i,formValidity:r}}return e},Ne=u.default.create({wrapper:{width:"100%",height:"100%",backgroundColor:v,overflow:"hidden",position:"web"==ye.default.OS?"fixed":"relative"},scrollContainer:{width:"100%",height:"100%",paddingHorizontal:15,flex:1},logoContainer:{width:"100%",alignItems:"center",marginBottom:"70%",top:"30%"},skiptext:{fontFamily:"Montserrat",fontSize:14,color:P}});const qe=function(e){var t=(0,re.useDispatch)(),n=(0,c.useState)(""),o=(0,i.default)(n,2),a=o[0],l=o[1],s=(0,c.useState)(60),d=(0,i.default)(s,2),u=d[0],f=d[1],g=(0,c.useState)(!1),y=(0,i.default)(g,2),p=y[0],x=y[1];(0,c.useEffect)((function(){var e=setTimeout((function(){0!==u&&f(u-1)}),1e3);return function(){clearTimeout(e)}}));var b=(0,c.useRef)(null),j=(0,c.useRef)(null),w=(0,c.useRef)(null),S=(0,c.useRef)(null),C=(0,c.useRef)(null),O=(0,c.useReducer)(Ve,{inputValues:{num1:"",num2:"",num3:"",num4:"",num5:"",numAdded:""},inputValidities:{num1:!1,num2:!1,num3:!1,num4:!1,num5:!1},formValidity:!1}),z=(0,i.default)(O,2),k=z[0],M=z[1],B=(0,c.useCallback)((function(e,t,n){switch(M({type:He,value:t,id:e,validity:n}),e){case"num1":""!=t&&j.current.focus();break;case"num2":""!=t&&w.current.focus();break;case"num3":""!=t&&S.current.focus();break;case"num4":""!=t&&C.current.focus();break;case"num5":""!=t&&C.current.blur()}}),[M]),F=function(){var n=(0,r.default)((function*(){try{x(!0);var n=yield t(function(e,t){return function(){var n=(0,r.default)((function*(n){var o=new(A());return o.append("mobile",e),o.append("code",t),fetch("https://cutunix.com/api/v1/auth/login",{method:"POST",headers:{Accept:"application/json"},body:o}).then((function(e){return e.json()})).then((function(e){return console.log(e),n({type:E,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return n.apply(this,arguments)}}()}(e.route.params.number,k.inputValues.numAdded));"error"==n.status&&l(n.message),"success"==n.status&&(yield ie.default.setItem("access_token",n.data.token),yield t(X(n.data.token)),null==n.data.user.state_id?e.navigation.navigate("register1"):e.navigation.navigate("home")),x(!1)}catch(o){console.log(o)}}));return function(){return n.apply(this,arguments)}}(),I=function(){var t=(0,r.default)((function*(){try{yield ee(e.route.params.number);f(60)}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),R=(0,Ce.useMediaQuery)({maxWidth:500}),D=(0,i.default)(R,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsx)(h.default,{style:{width:D?"100%":500,marginLeft:D?0:"35%",height:"100%",backgroundColor:v,overflow:"hidden",position:"web"==ye.default.OS?"fixed":"relative"},children:(0,ue.jsx)(h.default,{style:Ne.scrollContainer,children:(0,ue.jsxs)(Be.default,{showsVerticalScrollIndicator:!1,children:[(0,ue.jsxs)(h.default,{style:Ne.logoContainer,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:20,bottom:10,position:"absolute",marginBottom:"8%"},children:"\u06a9\u062f \u0641\u0639\u0627\u0644\u0633\u0627\u0632\u06cc \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_},children:["\u06a9\u062f 5 \u0631\u0642\u0645\u06cc \u0627\u0631\u0633\u0627\u0644 \u0634\u062f\u0647 \u0628\u0647 \u0634\u0645\u0627\u0631\u0647 \u0647\u0645\u0631\u0627\u0647 ",e.route.params.number," \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f "]})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",justifyContent:"space-between"},children:[(0,ue.jsx)(Ae,{onInputChange:B,id:"num1",inputref:b,styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(Ae,{onInputChange:B,id:"num2",inputref:j,styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(Ae,{onInputChange:B,id:"num3",inputref:w,styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(Ae,{onInputChange:B,id:"num4",inputref:S,styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(Ae,{onInputChange:B,id:"num5",inputref:C,styleinput:"web"===ye.default.OS&&{outlineColor:P}})]}),(0,ue.jsx)(h.default,{style:{width:"100%",alignItems:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:16,color:"red"},children:a})}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",justifyContent:"center",alignItems:"center",width:"100%",height:80},children:[(0,ue.jsx)(de.default,{style:{justifyContent:"center",alignItems:"center",marginTop:15},onPress:function(){e.navigation.navigate("login")},children:(0,ue.jsx)(m.default,{style:Ne.skiptext,children:"\u062a\u063a\u06cc\u06cc\u0631 \u0634\u0645\u0627\u0631\u0647"})}),(0,ue.jsxs)(de.default,{style:{justifyContent:"center",alignItems:"center",marginTop:15},onPress:0==u?I:function(){},children:[0!==u&&(0,ue.jsxs)(m.default,{style:Ne.skiptext,children:[" "," "," ","00:",u]}),0===u&&(0,ue.jsxs)(m.default,{style:Ne.skiptext,children:["\u0627\u0631\u0633\u0627\u0644 \u0645\u062c\u062f\u062f \u06a9\u062f"," "," "," "]})]})]}),(0,ue.jsx)(he,{label:"\u062a\u0627\u06cc\u06cc\u062f \u06a9\u062f",textStyle:{bottom:10},onPress:function(){p||5!==k.inputValues.numAdded.length||F()},style:{marginTop:30,marginLeft:"5%"},loading:p,colorspin:v,sizespin:25,touchableStyle:{backgroundColor:5===k.inputValues.numAdded.length?P:T}})]})})})})};var Ge=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,alignItems:"center",marginBottom:15},viewtitle:{width:"100%",height:60,alignItems:"center",justifyContent:"center",marginTop:"5%",backgroundColor:v},touch:{flexDirection:"row",width:"90%",height:50,backgroundColor:S,marginTop:8,borderRadius:10}});const Ue=function(e){var t=(0,c.useState)(!1),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,c.useState)([]),s=(0,i.default)(l,2),d=s[0],u=s[1],f=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),g=(0,re.useDispatch)(),y=function(){var e=(0,r.default)((function*(){try{a(!0);var e=yield g(te(f));u(e.data.data.states),a(!1)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){y()}),[]),(0,ue.jsxs)(Oe.NativeBaseProvider,{children:[(0,ue.jsx)(h.default,{style:Ge.viewtitle,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,position:"absolute"},children:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"})}),(0,ue.jsx)(Be.default,{style:{backgroundColor:v},children:(0,ue.jsx)(h.default,{style:Ge.viewContainer,children:o?(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:o,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):d.map((function(t,n){return(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("register2",{ids:t.id})},style:Ge.touch,children:[(0,ue.jsx)(xe.default,{name:"arrow-back-outline",size:25,color:P,style:{position:"absolute",left:"5%",top:"web"==ye.default.OS?"28%":"20%"}}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,position:"absolute",right:"5%",top:"web"==ye.default.OS?"28%":"20%"},children:t.state})]},n)}))})})]})};var Qe=o(7750),Je=o(6987),Ke=o(5172),Ye=o(7137),Ze=o(7049),Xe=o(1364),$e=o(6378),et=o(3668),tt=o(6983);var nt=u.default.create({viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},viewfooter:{flexDirection:"row",width:"web"==ye.default.OS?"400px":"100%",height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"absolute",bottom:0},menu1:{backgroundColor:P,width:50,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"39%"},menu:{backgroundColor:P,width:80,height:60,justifyContent:"center",alignItems:"center",position:"absolute",right:"60%",top:"web"==ye.default.OS?"0%":"28%"},menu2:{backgroundColor:P,width:80,height:60,justifyContent:"center",alignItems:"center",position:"absolute",right:"35%",top:"web"==ye.default.OS?"0%":"28%"},textheader:{backgroundColor:P,width:130,height:60,alignItems:"center",justifyContent:"center",position:"absolute",left:3,top:"25%"}});const ot=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),a=(0,c.useState)([]),l=(0,i.default)(a,2),s=l[0],d=l[1],u=(0,c.useState)([]),f=(0,i.default)(u,2),h=f[0],g=f[1],m=(0,c.useState)(!1),j=(0,i.default)(m,2),w=j[0],S=j[1],C=(0,c.useState)(""),O=(0,i.default)(C,2),z=(O[0],O[1]),B=(0,c.useState)(""),F=(0,i.default)(B,2),_=F[0],R=F[1],L=(0,c.useState)(!1),E=(0,i.default)(L,2),W=E[0],H=E[1],V=(0,c.useState)(!1),N=(0,i.default)(V,2),U=N[0],Q=N[1],J=(0,c.useState)(!1),K=(0,i.default)(J,2),Y=K[0],X=K[1],ee=function(){var e=(0,r.default)((function*(){try{S(!0);var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return D()({method:"get",url:"https://cutunix.com/api/v1/app/slider",headers:t}).then((function(t){var n=t.data;return e({type:q,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));d(e.data.data.sliders),S(!1)}catch(i){}var o}));return function(){return e.apply(this,arguments)}}(),te=function(){var e=(0,r.default)((function*(){try{var e=yield n((o=t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o};return D()({method:"get",url:"https://cutunix.com/api/v1/app/app",headers:t}).then((function(t){var n=t.data;return e({type:G,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));g(e.data.data.apps)}catch(i){}var o}));return function(){return e.apply(this,arguments)}}(),ne=function(){var o=(0,r.default)((function*(){try{var o=yield n(oe(t));"true"==o.data.data.payment&&"true"==o.data.data.exp_payment?(z(o.data.data.user),R(o.data.data),H(o.data.data.version),setTimeout((function(){null!==o.data.data&&"true"==o.data.data.version.status&&"1"!==o.data.data.version.version&&X(!0)}),1e3)):e.navigation.navigate("wallet",{pricing:o.data.data.payment_price,linkprice:o.data.data.payment_link})}catch(i){}}));return function(){return o.apply(this,arguments)}}();(0,tt.useFocusEffect)((0,c.useCallback)((function(){function e(){return e=(0,r.default)((function*(){var e,o,i=yield ie.default.getItem("expo_token");if(i){var a=yield n((e=t,o=i,function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e},i=new(A());return i.append("device_token",o),fetch("https://cutunix.com/api/v1/user/token",{method:"POST",headers:n,body:i}).then((function(e){return e.json()})).then((function(e){return console.log(e),t({type:Z,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return t.apply(this,arguments)}}()));console.log("expo token res",a)}})),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[])),(0,c.useEffect)((function(){te(),ee()}),[]);var se=(0,tt.useIsFocused)();(0,c.useEffect)((function(){ne(),t||ce(),he()}),[se]);var ce=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();(0,tt.useFocusEffect)(c.useCallback((function(){var e=Ze.default.addEventListener("hardwareBackPress",(function(){return Ye.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0645\u06cc\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u0628\u0628\u0646\u062f\u06cc\u062f \u061f",[{text:"\u0628\u0627\u0632\u06af\u0634\u062a"},{text:"\u0628\u0644\u0647",onPress:function(){return Ze.default.exitApp()}}]),!0}));return function(){return e.remove()}}),[]));var fe=(0,c.useRef)(new $e.default.Value(0)).current;function he(){ae.default.fetch().then((function(e){0==e.isConnected&&Ye.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return he()}}])}))}"has_message"!=_.has_message&&"has_ticket"!=_.has_ticket||setTimeout((function(){Q(!U),1==U?$e.default.timing(fe,{toValue:1,duration:500,useNativeDriver:!0}).start():$e.default.timing(fe,{toValue:0,duration:500,useNativeDriver:!0}).start()}),1200);var ge=function(e){console.log(e),pe.default.openURL(e)},me=(0,Ce.useMediaQuery)({maxWidth:500}),be=(0,i.default)(me,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:be?(0,ue.jsxs)(Qe.View,{style:{width:"100%",marginLeft:0,height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(Qe.View,{style:nt.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),"has_message"==_.has_message?(0,ue.jsxs)(de.default,{style:nt.menu2,onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},children:[(0,ue.jsx)($e.default.View,{style:{opacity:fe},children:(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}):(0,ue.jsx)(Qe.View,{}),"has_ticket"==_.has_ticket?(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("ticket")},style:nt.menu,children:[(0,ue.jsx)($e.default.View,{style:{opacity:fe},children:(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}):(0,ue.jsx)(Qe.View,{}),(0,ue.jsxs)(de.default,{style:nt.menu1,onPress:function(){return e.navigation.navigate("ticket")},children:[(0,ue.jsx)(le.default,{name:"face-agent",size:30,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]})]}),(0,ue.jsxs)(Be.default,{style:{backgroundColor:"white",alignSelf:"auto",marginBottom:60},children:[(0,ue.jsx)(Qe.View,{style:{width:"100%",height:300,padding:10},children:w?(0,ue.jsx)(Qe.View,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:(0,ue.jsx)(p.default,{animating:w,size:30,color:P})}):(0,ue.jsx)(et.default,{paginationStyle:{bottom:0,left:0},autoplay:!0,loop:!0,dot:(0,ue.jsx)(Qe.View,{style:{width:8,height:8,borderRadius:4,margin:5,backgroundColor:T}}),activeDot:(0,ue.jsx)(Qe.View,{style:{width:12,height:12,borderRadius:6,margin:5,backgroundColor:"red"}}),children:s.map((function(t,n){return(0,ue.jsx)(Xe.default,{style:{flex:1},onPress:function(){"web"==ye.default.OS?ge(t.link):e.navigation.navigate("web",{addressweb:t.link})},children:(0,ue.jsx)(Ke.default,{source:{uri:"https://cutunix.com"+t.images[1].address},alt:t.images[1].type,style:{height:300,width:"100%"},resizeMode:"stretch"})},n)}))},s.length)}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("order")},style:{width:"95%",height:70,backgroundColor:P,marginLeft:10,flexDirection:"row",alignItems:"center"},children:[(0,ue.jsx)(Ke.default,{source:o(2546),alt:"image",style:{width:"18%",height:"90%",borderRadius:10,right:"3%",position:"absolute"}}),(0,ue.jsx)(Je.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:v,left:"5%",position:"absolute",marginRight:"5%"},children:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f \u062e\u062f\u0645\u0627\u062a \u0627\u0645 \u062f\u06cc \u0627\u0641"})]}),(0,ue.jsx)(Qe.View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",width:"100%",marginTop:20},children:h.map((function(t,n){return(0,ue.jsxs)(de.default,{onPress:function(){"web"==ye.default.OS?"\u0622\u0646\u0627\u0644\u06cc\u0632 \u06a9\u0627\u0628\u06cc\u0646\u062a"==t.name?ge(_.analyze_link):ge(t.link):"\u0622\u0646\u0627\u0644\u06cc\u0632 \u06a9\u0627\u0628\u06cc\u0646\u062a"==t.name?ge(_.analyze_link):e.navigation.navigate("web",{addressweb:t.link})},style:{marginRight:"1%",width:"32%",height:110,alignItems:"center",justifyContent:"center",marginTop:5},children:[(0,ue.jsx)(Ke.default,{source:{uri:"https://cutunix.com"+t.images[1].address},alt:t.images[1].type,style:{width:"70%",height:"70%",borderRadius:10}}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:I,padding:"5%"},children:t.name})]},n)}))}),(0,ue.jsx)(Qe.View,{style:{width:"100%",height:20}})]}),(0,ue.jsx)(Se.default,{show:Y,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0646\u0633\u062e\u0647 \u0634\u0645\u0627 \u0642\u062f\u06cc\u0645\u06cc \u0627\u0633\u062a \u0644\u0637\u0641\u0627 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. ",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:"true"!=W.force,showConfirmButton:!0,cancelText:"\u0628\u0639\u062f\u0627",confirmText:"\u0646\u0635\u0628 \u06a9\u0631\u062f\u0646",confirmButtonColor:M,onCancelPressed:function(){X(!1)},onConfirmPressed:function(){ge("https://cutunix.com"),Ze.default.exitApp()},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsxs)(Qe.View,{style:{flexDirection:"row",width:"100%",height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"absolute",bottom:0},children:[(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center",padding:5},children:[(0,ue.jsx)(xe.default,{name:"reader-outline",size:25,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("profile")},style:{width:"15%",height:60,alignItems:"center",left:15,top:5},children:[(0,ue.jsx)(le.default,{name:"badge-account-outline",size:25,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})]}),(0,ue.jsxs)(Qe.View,{style:{width:"30%",height:60,left:"35%",alignItems:"center",flexDirection:"column",position:"absolute"},children:[(0,ue.jsx)(Qe.View,{style:{width:50,height:50,borderRadius:25,backgroundColor:b,borderWidth:5,borderColor:v,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(xe.default,{name:"home-outline",size:20,color:v})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:x,position:"absolute",bottom:15},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"}),(0,ue.jsx)(Qe.View,{style:{width:30,height:5,borderRadius:5,backgroundColor:b,position:"absolute",bottom:5}})]})]})]}):(0,ue.jsxs)(Qe.View,{style:{width:500,marginLeft:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(Qe.View,{style:nt.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),"has_message"==_.has_message?(0,ue.jsxs)(de.default,{style:nt.menu2,onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},children:[(0,ue.jsx)($e.default.View,{style:{opacity:fe},children:(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}):(0,ue.jsx)(Qe.View,{}),"has_ticket"==_.has_ticket?(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("ticket")},style:nt.menu,children:[(0,ue.jsx)($e.default.View,{style:{opacity:fe},children:(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u067e\u06cc\u0627\u0645 \u062f\u0631 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}):(0,ue.jsx)(Qe.View,{}),(0,ue.jsxs)(de.default,{style:nt.menu1,onPress:function(){return e.navigation.navigate("ticket")},children:[(0,ue.jsx)(le.default,{name:"face-agent",size:30,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]})]}),(0,ue.jsxs)(Be.default,{style:{backgroundColor:"white",alignSelf:"auto",marginBottom:60},children:[(0,ue.jsx)(Qe.View,{style:{width:"100%",height:300,padding:10},children:w?(0,ue.jsx)(Qe.View,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:(0,ue.jsx)(p.default,{animating:w,size:30,color:P})}):(0,ue.jsx)(et.default,{paginationStyle:{bottom:0,left:0},autoplay:!0,loop:!0,dot:(0,ue.jsx)(Qe.View,{style:{width:8,height:8,borderRadius:4,margin:5,backgroundColor:T}}),activeDot:(0,ue.jsx)(Qe.View,{style:{width:12,height:12,borderRadius:6,margin:5,backgroundColor:"red"}}),children:s.map((function(t,n){return(0,ue.jsx)(Xe.default,{style:{flex:1},onPress:function(){"web"==ye.default.OS?ge(t.link):e.navigation.navigate("web",{addressweb:t.link})},children:(0,ue.jsx)(Ke.default,{source:{uri:"https://cutunix.com"+t.images[1].address},alt:t.images[1].type,style:{height:300,width:"100%"},resizeMode:"stretch"})},n)}))},s.length)}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("order")},style:{width:"95%",height:70,backgroundColor:P,marginLeft:10,flexDirection:"row",alignItems:"center"},children:[(0,ue.jsx)(Ke.default,{source:o(2546),alt:"image",style:{width:"18%",height:"90%",borderRadius:10,right:"3%",position:"absolute"}}),(0,ue.jsx)(Je.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:v,left:"5%",position:"absolute",marginRight:"5%"},children:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f \u062e\u062f\u0645\u0627\u062a \u0627\u0645 \u062f\u06cc \u0627\u0641"})]}),(0,ue.jsx)(Qe.View,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",width:"100%",marginTop:20},children:h.map((function(t,n){return(0,ue.jsxs)(de.default,{onPress:function(){"web"==ye.default.OS?"\u0622\u0646\u0627\u0644\u06cc\u0632 \u06a9\u0627\u0628\u06cc\u0646\u062a"==t.name?ge(_.analyze_link):ge(t.link):"\u0622\u0646\u0627\u0644\u06cc\u0632 \u06a9\u0627\u0628\u06cc\u0646\u062a"==t.name?ge(_.analyze_link):e.navigation.navigate("web",{addressweb:t.link})},style:{marginRight:"1%",width:"32%",height:110,alignItems:"center",justifyContent:"center",marginTop:5},children:[(0,ue.jsx)(Ke.default,{source:{uri:"https://cutunix.com"+t.images[1].address},alt:t.images[1].type,style:{width:"70%",height:"70%",borderRadius:10}}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:I,padding:"5%"},children:t.name})]},n)}))}),(0,ue.jsx)(Qe.View,{style:{width:"100%",height:20}})]}),(0,ue.jsx)(Se.default,{show:Y,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0646\u0633\u062e\u0647 \u0634\u0645\u0627 \u0642\u062f\u06cc\u0645\u06cc \u0627\u0633\u062a \u0644\u0637\u0641\u0627 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f \u0631\u0627 \u0646\u0635\u0628 \u06a9\u0646\u06cc\u062f. ",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:"true"!=W.force,showConfirmButton:!0,cancelText:"\u0628\u0639\u062f\u0627",confirmText:"\u0646\u0635\u0628 \u06a9\u0631\u062f\u0646",confirmButtonColor:M,onCancelPressed:function(){X(!1)},onConfirmPressed:function(){ge("https://cutunix.com")},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"45%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsxs)(Qe.View,{style:{flexDirection:"row",width:500,height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"absolute",bottom:0},children:[(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center",padding:5},children:[(0,ue.jsx)(xe.default,{name:"reader-outline",size:25,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("profile")},style:{width:"15%",height:60,alignItems:"center",left:15,top:5},children:[(0,ue.jsx)(le.default,{name:"badge-account-outline",size:25,color:v}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})]}),(0,ue.jsxs)(Qe.View,{style:{width:"30%",height:60,left:"35%",alignItems:"center",flexDirection:"column",position:"absolute"},children:[(0,ue.jsx)(Qe.View,{style:{width:50,height:50,borderRadius:25,backgroundColor:b,borderWidth:5,borderColor:v,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(xe.default,{name:"home-outline",size:20,color:v})}),(0,ue.jsx)(Je.default,{style:{fontFamily:"Montserrat",fontSize:12,color:x,position:"absolute",bottom:15},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"}),(0,ue.jsx)(Qe.View,{style:{width:30,height:5,borderRadius:5,backgroundColor:b,position:"absolute",bottom:5}})]})]})]})})};var it=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"35%"},viewlogo:{width:"100%",height:100,alignItems:"center",justifyContent:"center",marginTop:"10%"},texttitel:{fontFamily:"MontserratBold",fontSize:20,bottom:80,position:"absolute"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:170,backgroundColor:w,marginTop:20,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},viewicon:{width:90,height:90,backgroundColor:C,borderRadius:45,marginTop:"3%",alignItems:"center",justifyContent:"center"},texttouch:{fontFamily:"MontserratBold",fontSize:15,color:P,marginTop:"1%"}});const rt=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(""),a=(0,i.default)(o,2),l=a[0],s=a[1],d=function(){var e=(0,r.default)((function*(){try{var e=yield n(oe(t));s(e.data.data.user)}catch(o){}}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){d(),t||u()}),[]);var u=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),f=(0,Ce.useMediaQuery)({maxWidth:500}),g=(0,i.default)(f,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:g?"100%":500,marginLeft:g?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:it.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:it.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:it.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634"})})]}),(0,ue.jsxs)(h.default,{style:it.viewlogo,children:[(0,ue.jsx)(m.default,{style:it.texttitel,children:"\u0627\u0628\u062a\u062f\u0627 \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0648\u0634 \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"}),(0,ue.jsxs)(m.default,{style:it.text,children:["\u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u0627 \u0628\u0647 \u0634\u0645\u0627 ",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:P},children:" \u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 \u0633\u0631\u06cc\u0639 "})," \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a"]}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:14,color:_},children:"\u062f\u0642\u06cc\u0642 \u0648\u0633\u0631\u06cc\u0639 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0631\u0627\u06cc\u0646\u062f \u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f"})]}),(0,ue.jsxs)(de.default,{onPress:function(){"false"==l.status?e.navigation.navigate("ordercolor"):e.navigation.navigate("form",{image:"",orderid:""})},style:it.touch,children:[(0,ue.jsx)(h.default,{style:it.viewicon,children:(0,ue.jsx)(le.default,{name:"clipboard-text-multiple-outline",size:45,color:P})}),(0,ue.jsx)(m.default,{style:it.texttouch,children:"\u062b\u0628\u062a \u0633\u0631\u06cc\u0639 (\u0628\u0631\u0634 \u0648\u0646\u0648\u0627\u0631)"}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,marginTop:"1%"},children:"\u0627\u0631\u0633\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0641\u0627\u0631\u0634 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0641\u0631\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0642\u06cc\u0642 \u0648\u0628\u0627 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627"})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("service",{number:"2",ostany:l.state_id,citys:l.city_id})},style:it.touch,children:[(0,ue.jsx)(h.default,{style:it.viewicon,children:(0,ue.jsx)(le.default,{name:"wechat",size:50,color:P})}),(0,ue.jsx)(m.default,{style:it.texttouch,children:"\u062b\u0628\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 (\u0633\u0627\u06cc\u0631 \u062e\u062f\u0645\u0627\u062a)"}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,bottom:5},children:"\u0627\u0631\u0633\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u0641\u0627\u0631\u0634 \u0628\u0647 \u0635\u0648\u0631\u062a \u0633\u06cc\u0633\u062a\u0645 \u0686\u062a \u0628\u0627 \u0633\u0631\u0639\u062a \u0628\u0627\u0644\u0627"}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:11,color:_,bottom:6},children:"\u0648\u06a9\u06cc\u0648\u0645 \u060c cnc \u0648 \u063a\u06cc\u0631\u0647..."})]})]})})};var at=o(7421),lt=o(115),st=o(3175),dt=o(3057),ut=o(2999),ct=o(5674),ft=o(8427),ht=o(1595),gt=o(7572),mt="ADD_MDF_WHITE",yt="DELETE_MDF_WHITE",pt="GET_MDF_WHITE",xt="GET_MDF_COLOR",bt="GET_DETAILS_MDF_COLOR",jt="GET_LIST_MDF_COLOR",wt="SEND_FORM",vt="SEND_EDIT_FORM ",St="GET_ALL_LIST_MDF",Ct="SEND_CHAT",Ot="SEND_CHAT_TICKET",zt="GET_CHAT",kt="GET_CHAT_TICKET",Pt="GET_IMAGE_MDF",Mt="GET_FINAL_LIST_MDF",Bt=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e};return D()({method:"get",url:"https://cutunix.com/api/v1/user/white-products",headers:n}).then((function(e){var n=e.data;return t({type:pt,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},Tt=function(e){return function(){var t=(0,r.default)((function*(t){var n={Accept:"application/json",Authorization:"Bearer "+e};return D()({method:"get",url:"https://cutunix.com/api/v1/user/save-products",headers:n}).then((function(e){var n=e.data;return t({type:jt,data:n}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return t.apply(this,arguments)}}()},Ft=function(e,t,n){var o={Accept:"application/json",Authorization:"Bearer "+e},i=new(A());return i.append("slice_id",t),i.append("type",n),fetch("https://cutunix.com/api/v1/order/delete-slice",{method:"POST",headers:o,body:i}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))},_t=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(A());if("text"==n)a.append("msg",o);else{var l=o.split("/").pop(),s=l.split(".").pop();a.append("msg",{uri:o,name:l,type:"application/"+s})}a.append("type",n);var d="https://cutunix.com/api/v1/order/message/send?order_id="+t;return D()({method:"POST",url:d,headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ct,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},It=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(A());a.append("type",n),a.append("msg",o);var l="https://cutunix.com/api/v1/order/message/send?order_id="+t;return D()({method:"POST",url:l,headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ct,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},Rt=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(A());a.append("type",t),a.append("msg",n),a.append("ticket_id",o);return D()({method:"POST",url:"https://cutunix.com/api/v1/app/ticket/send-message",headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ot,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},Dt=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json","Content-Type":"multipart/form-data",Authorization:"Bearer "+e},a=new(A());if("text"==t)a.append("msg",n);else{var l=n.split("/").pop(),s=l.split(".").pop();console.log([l,n,s]),a.append("msg",{uri:n,name:l,type:"application/"+s})}a.append("type",t),a.append("ticket_id",o);return D()({method:"POST",url:"https://cutunix.com/api/v1/app/ticket/send-message",headers:r,data:a}).then((function(e){var t=e.data;return i({type:Ot,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()},Lt="SET_SERVICE",At="SET_EDIT_SERVICE",Et="SET_UPDATE",Wt="GET_SERVICES",Ht="GET_DETAILS_SERVICES",Vt="GET_ALL_ORDERS",Nt="SET_MDF",qt="SET_IDGROUP",Gt="SET_PENDING_ORDER",Ut="SET_NAME",Qt=function(e,t,n,o){return function(){var i=(0,r.default)((function*(i){var r={Accept:"application/json",Authorization:"Bearer "+e},a="https://cutunix.com/api/v1/order/orders?page="+t+"&name="+n+"&status="+o;return D()({method:"get",url:a,headers:r}).then((function(e){var t=e.data;return i({type:Vt,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return i.apply(this,arguments)}}()};function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"20%":"35%"},menu1:{backgroundColor:P,width:110,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"3%",top:"web"==ye.default.OS?"17%":"35%",flexDirection:"row"},textheader:{backgroundColor:P,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"3%":"22%"},viewfooter:{flexDirection:"row",width:"100%",height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1}});const Zt=function(e){var t="http://shemshetaraz.com/cutunix/",n=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),a=(0,re.useDispatch)(),l=(0,c.useState)(),s=(0,i.default)(l,2),d=s[0],u=s[1],f=(0,c.useState)(e.route.params.idservice?e.route.params.idservice:""),x=(0,i.default)(f,2),b=x[0],j=x[1],C=(0,c.useState)(!1),k=(0,i.default)(C,2),B=k[0],R=k[1],L=(0,c.useState)(!1),E=(0,i.default)(L,2),W=E[0],H=E[1],V=(0,c.useState)({showModal:!1,isLoading:!1,isLoading1:!1,isLoading2:!1,stoped:!1}),N=(0,i.default)(V,2),q=N[0],G=N[1],U=(0,c.useState)(!1),Q=(0,i.default)(U,2),J=Q[0],K=Q[1],Y=(0,c.useState)(""),Z=(0,i.default)(Y,2),X=Z[0],ee=Z[1],te=(0,c.useState)(""),ne=(0,i.default)(te,2),oe=ne[0],se=ne[1],ce=(0,c.useState)(""),fe=(0,i.default)(ce,2),ge=fe[0],me=fe[1],be=(0,c.useState)(null),je=(0,i.default)(be,2),we=je[0],ve=je[1],ke=(0,c.useState)(null),Pe=(0,i.default)(ke,2),Me=Pe[0],Fe=Pe[1],_e=(0,c.useState)([]),Ie=(0,i.default)(_e,2),Re=Ie[0],De=Ie[1],Le=(0,c.useState)(!1),Ae=(0,i.default)(Le,2),Ee=Ae[0],We=Ae[1],He=function(){var t=(0,r.default)((function*(){try{yield a($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Ve=(0,c.useState)(0),Ne=(0,i.default)(Ve,2),qe=Ne[0],Ge=Ne[1];(0,c.useEffect)((function(){var e=setTimeout((function(){100!==qe&&Ge(qe+1)}),1e3);return function(){clearTimeout(e)}}));var Ue=function(){var t=(0,r.default)((function*(){try{var t=yield function(e,t,n,o,i,r){var a={Accept:"application/json",Authorization:"Bearer "+e},l=new(A());return l.append("services_id",t),l.append("name",n),l.append("send_status",o),l.append("sheet_status_services",i),l.append("sheet_status_customer",r),l.append("status","send"),l.append("class","chat"),fetch("https://cutunix.com/api/v1/order/set-services",{method:"POST",headers:a,body:l}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(n,e.route.params.ids,e.route.params.name,e.route.params.send,e.route.params.services,e.route.params.customer);j(t.data.order.id),Je(t.data.order.id)}catch(o){}}));return function(){return t.apply(this,arguments)}}(),Qe=function(){var e=(0,r.default)((function*(){if("web"==ye.default.OS)try{if(G(Kt(Kt({},q),{},{isLoading1:!0})),X)"success"==(yield a(It(n,b,"text",X))).data.status&&Je(b);if(Me)"success"==(yield a(It(n,b,"file",Me))).data.status&&Je(b);G(Kt(Kt({},q),{},{isLoading1:!1}))}catch(e){}else try{if(G(Kt(Kt({},q),{},{isLoading1:!0})),X)"success"==(yield a(_t(n,b,"text",X))).data.status&&Je(b);if(ge)ve(""),Fe(""),"success"==(yield a(_t(n,b,"file",ge))).data.status&&Je(b);if(Me)ve(""),"success"==(yield a(_t(n,b,"file",Me))).data.status&&Je(b);if(we)Fe(""),"success"==(yield a(_t(n,b,"file",we))).data.status&&Je(b);G(Kt(Kt({},q),{},{isLoading1:!1}))}catch(e){}}));return function(){return e.apply(this,arguments)}}(),Je=function(){var t=(0,r.default)((function*(t){try{G(Kt(Kt({},q),{},{isLoading1:!0}));var o=yield a((i=n,l=e.route.params.idservice?e.route.params.idservice:t,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://cutunix.com/api/v1/order/message/messages?order_id="+l;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:zt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));De(o.data.data.messages),G(Kt(Kt({},q),{},{isLoading1:!1}))}catch(s){}var i,l}));return function(e){return t.apply(this,arguments)}}(),Ke=(0,tt.useIsFocused)();(0,c.useEffect)((function(){e.route.params.ids&&Ue(),n||He(),Je(),bt()}),[e.route.params.ids?"":Ke]);var Ye=function(){var e=(0,r.default)((function*(){var e=yield dt.launchCameraAsync({mediaTypes:ut.MediaTypeOptions.All,allowsEditing:!1,quality:.7});e.canceled||(G(Kt(Kt({},q),{},{isLoading2:!0})),ve(e.assets[0].uri),H(!0),G(Kt(Kt({},q),{},{isLoading2:!1})))}));return function(){return e.apply(this,arguments)}}(),Xe=function(){var e=(0,r.default)((function*(){try{var e=yield st.getDocumentAsync();Fe(e.uri),void 0!==e.uri&&H(!0)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();function $e(){return($e=(0,r.default)((function*(){try{yield ct.requestPermissionsAsync(),yield ft.setAudioModeAsync({allowsRecordingIOS:!0,playsInSilentModeIOS:!0});var e=new ct.Recording;yield e.prepareToRecordAsync(ht.RecordingOptionsPresets.HIGH_QUALITY),yield e.startAsync(),u(e)}catch(t){console.error("Failed to start recording",t)}}))).apply(this,arguments)}function et(){return(et=(0,r.default)((function*(){G(Kt(Kt({},q),{},{isLoading:!0})),u(void 0),yield d.stopAndUnloadAsync();var e=yield d.createNewLoadedSoundAsync(),t=d.getURI();!function(e){var t=e/1e3/60,n=Math.floor(t),o=Math.round(60*(t-n))}(e.status.durationMillis);G(Kt(Kt({},q),{},{isLoading:!1})),me(t),H(!0)}))).apply(this,arguments)}function nt(e){return ot.apply(this,arguments)}function ot(){return(ot=(0,r.default)((function*(e){var n=yield gt.Sound.createAsync({uri:t+e},{shouldPlay:!0},(function(e){return se(e.didJustFinish)}));n.sound,n.status}))).apply(this,arguments)}function it(){return(it=(0,r.default)((function*(e){var t=yield gt.Sound.createAsync({uri:e},{shouldPlay:!0},(function(e){return se(e.didJustFinish)}));t.sound,t.status}))).apply(this,arguments)}var rt=function(e){pe.default.openURL(t+e)};function mt(){document.getElementById("fileC").click()}function yt(){return e.navigation.navigate("orderlist",{refresh:"true"}),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",yt),function(){Ze.default.removeEventListener("hardwareBackPress",yt)}}),[]);var pt=(0,c.useRef)(null),xt=(0,c.useRef)(null);function bt(){ae.default.fetch().then((function(e){0==e.isConnected&&Alert.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return bt()}}])}))}var jt=(0,Ce.useMediaQuery)({maxWidth:500}),wt=(0,i.default)(jt,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:wt?"100%":500,marginLeft:wt?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:["web"==ye.default.OS?(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:W,onClose:function(){return H(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){H(!1),Fe("")},name:"close",size:20,color:I})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",marginTop:20},children:Me?Me.name:""})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ue.jsx)(he,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:w,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){Fe(""),H(!1)}}),(0,ue.jsx)(he,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:M,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){Qe(),Fe(""),Ge(0),H(!1)}})]})]})})})}):(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:W,onClose:function(){return H(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){H(!1),me(""),ve(""),Fe("")},name:"close",size:20,color:I})}),ge?(0,ue.jsxs)(de.default,{onPress:function(){We(!Ee),function(e){it.apply(this,arguments)}(ge)},style:{left:12,flexDirection:"row",width:"90%",height:50,backgroundColor:T,alignItems:"center",borderRadius:10},children:[(0,ue.jsx)(le.default,{name:0==Ee||1==oe?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{position:"absolute",right:30}}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",left:30},children:0==Ee||1==oe?"\u067e\u062e\u0634":"\u062f\u0631 \u062d\u0627\u0644 \u067e\u062e\u0634"})]}):(0,ue.jsxs)(h.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold"},children:Me||we})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ue.jsx)(he,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:w,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){me(""),ve(""),Fe(""),H(!1)}}),(0,ue.jsx)(he,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:M,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){Qe(),ve(""),Fe(""),me(""),Ge(0),H(!1)}})]})]})})})}),(0,ue.jsxs)(h.default,{style:Yt.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){e.route.params.showalert?e.navigation.navigate("orderlist",{refresh:"true"}):R(!0)},style:Yt.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){e.route.params.showalert?e.navigation.navigate("orderlist",{refresh:"true"}):R(!0)},style:Yt.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062b\u0628\u062a \u0633\u0641\u0627\u0631\u0634"})}),(0,ue.jsxs)(de.default,{onPress:function(){Ge(0),Je()},style:{flexDirection:"column",width:50,height:"web"==ye.default.OS?60:80,position:"absolute",left:"43%",bottom:"web"==ye.default.OS?"-5%":-10,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"refresh",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc"})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.route.params.showalert?e.navigation.navigate("orderlist",{refresh:"true"}):R(!0)},style:Yt.menu1,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062a\u0627\u06cc\u06cc\u062f \u0646\u0647\u0627\u06cc\u06cc"}),(0,ue.jsx)(le.default,{name:"check-circle-outline",size:25,color:v})]})]}),(0,ue.jsx)(at.default,{style:{width:"100%",height:"web"==ye.default.OS?"93%":"100%",backgroundColor:P},resizeMode:"cover",source:o(3743),children:(0,ue.jsx)(Be.default,{showsVerticalScrollIndicator:!1,style:{marginBottom:"web"==ye.default.OS?80:150},children:Re.slice(0).reverse().map((function(n,o){return"user"==n.status?(0,ue.jsx)(h.default,{style:{alignSelf:"flex-end",margin:10,backgroundColor:z,borderRadius:15,borderTopRightRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:S,borderWidth:2,borderColor:P},children:(0,ue.jsx)(g.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:O,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]}),(0,ue.jsxs)(de.default,{onPress:function(){We(n.id),nt(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:Ee!==n.id||1==oe?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?45:-110,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:Ee!==n.id||1==oe?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"mp4"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:O,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:Ee!==n.id||1==oe?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?45:-110,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:Ee!==n.id||1==oe?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"text"==n.mims?(0,ue.jsxs)(m.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:I,padding:"3%"},children:[" ",n.msg," "]}):(0,ue.jsxs)(de.default,{onPress:function(){return rt(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:"download",size:30,color:P,style:{left:"web"==ye.default.OS?140:0,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsxs)(m.default,{style:{right:"web"==ye.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o):(0,ue.jsx)(h.default,{style:{alignSelf:"flex-start",margin:10,backgroundColor:S,borderRadius:15,borderTopLeftRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:P,borderWidth:2,borderColor:P},children:(0,ue.jsx)(g.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){We(n.id),nt(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:Ee!==n.id||1==oe?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?100:-60,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:Ee!==n.id||1==oe?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})})]}):"mp4"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:Ee!==n.id||1==oe?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?100:-60,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:Ee!==n.id||1==oe?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Ge(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]})]}):"text"==n.mims?(0,ue.jsxs)(m.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:I,padding:"3%"},children:[" ",n.msg," "]}):(0,ue.jsxs)(de.default,{onPress:function(){return rt(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:"download",size:30,color:P,style:{left:"web"==ye.default.OS?140:0,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsxs)(m.default,{style:{right:"web"==ye.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o)}))})}),"web"===ye.default.OS?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:wt?"100%":500,height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?8:.1},children:[Re.length==[]?(0,ue.jsx)(h.default,{}):q.isLoading1?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:P,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ue.jsx)(p.default,{size:30,color:v}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:v,marginLeft:5},children:[qe,"%"]})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(de.default,{onPress:function(){Qe(),pt.current.value="",ee(),xt.current.value="",Fe(),Ge(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"send-outline",size:30,color:X||we||Me||ge?M:I})}),(0,ue.jsx)(h.default,{children:(0,ue.jsxs)("form",{onSubmit:Qe,children:[(0,ue.jsx)("input",{style:{width:190,height:"30%",position:"absolute",left:110,top:"20%",borderRadius:10,paddingLeft:"8px",paddingTop:"6px",paddingBottom:"6px",fontFamily:"Montserrat"},ref:pt,type:"text",onChange:function(e){return ee(e.target.value)},placeholder:" \u0645\u062a\u0646 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ue.jsx)("br",{}),(0,ue.jsx)(le.default,{style:{marginLeft:10,position:"absolute",top:16},onPress:mt,name:"camera-outline",size:25,color:I}),(0,ue.jsx)(le.default,{style:{marginLeft:45,position:"absolute",top:16},onPress:mt,name:"link-variant",size:25,color:I}),(0,ue.jsx)(le.default,{style:{marginLeft:80,position:"absolute",top:16},onPress:mt,name:"microphone",size:25,color:I}),(0,ue.jsx)("input",{id:"fileC",ref:xt,type:"file",hidden:!0,onChange:function(e){Fe(e.target.files[0]),H(!0)},style:{marginLeft:"4%",marginTop:2}}),(0,ue.jsx)("br",{})]})})]}):(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:wt?"100%":500,height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1},children:[Re.length==[]?(0,ue.jsx)(h.default,{}):q.isLoading1?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:P,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ue.jsx)(p.default,{size:30,color:v}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:v,marginLeft:5},children:[qe,"%"]})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(de.default,{onPress:function(){Qe(),ee(""),me(""),ve(""),Fe(""),Ge(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"send-outline",size:30,color:X||we||Me||ge?M:I})}),(0,ue.jsx)(Te.default,{onFocus:function(){return K(!0)},value:X||(we||(Me||ge)),editable:!we&&(!Me&&!ge),onChangeText:function(e){return ee(e)},placeholder:"\u0645\u062a\u0646 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",multiline:!0,onBlur:function(){return K(!1)},keyboardType:"default",style:{paddingLeft:"web"===ye.default.OS?"27%":"35%",paddingTop:"3%",position:"absolute",top:"10%",right:"10%",backgroundColor:w,width:"60%",height:50,borderWidth:1==J?2:0,borderRadius:25,padding:10,fontFamily:"Montserrat",borderColor:1==J?I:_}}),(0,ue.jsx)(de.default,{onPress:d?function(){return et.apply(this,arguments)}:function(){return $e.apply(this,arguments)},style:{bottom:"28%",left:"20%",position:"absolute"},children:q.isLoading?(0,ue.jsx)(p.default,{color:P,style:{marginLeft:8}}):(0,ue.jsxs)(lt.default,{children:[(0,ue.jsx)(le.default,{name:d?"wifi":"",size:20,color:d?M:I,style:{left:5}}),(0,ue.jsx)(le.default,{name:d?"microphone":"microphone-off",size:30,color:d?M:I})]})}),(0,ue.jsx)(de.default,{onPress:function(){return Xe()},style:{top:"25%",left:"11%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"link-variant",size:30,color:I})}),(0,ue.jsx)(de.default,{onPress:function(){return Ye()},style:{top:"30%",left:"3%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"camera-outline",size:25,color:I})})]}),(0,ue.jsx)(Se.default,{show:B,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u0633\u0641\u0627\u0631\u0634 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){R(!1),e.navigation.navigate("orderlist",{refresh:"true"})},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:M},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"},cancelButtonStyle:{width:"40%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}})]})})};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const en=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(0,c.useState)(e),n=(0,i.default)(t,2),o=n[0],r=n[1];return[o,(0,c.useMemo)((function(){return{onFocus:function(){return r(!0)},onBlur:function(){return r(!1)}}}),[])]}(),n=(0,i.default)(t,2),o=n[0],r=n[1];return(0,ue.jsxs)("div",{children:[(0,ue.jsx)("div",{style:$t({width:"50%",height:20,position:"absolute",top:70,left:"30%",borderRadius:5,justifyContent:"center",alignItems:"center",backgroundColor:"white"},e.stylelabel),children:(0,ue.jsx)("text",{style:{fontFamily:"MontserratLight",fontSize:13,position:"absolute",left:"20%",color:1==o?P:_},children:e.label})}),(0,ue.jsx)("input",$t($t({},r),{},{style:$t({width:"70%",height:50,marginTop:80,marginLeft:10,borderStyle:"solid",borderRadius:5,borderWidth:1,fontFamily:"MontserratLight",outlineColor:1==o?P:_},e.style),type:e.type,id:e.id,name:e.name,onChange:e.onChange,value:e.value}))]})};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:w,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},viewfooter:{width:"100%",height:60,backgroundColor:v,justifyContent:"center",flexDirection:"row"},texttouch:{fontFamily:"Montserrat",fontSize:12,color:_},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:180,backgroundColor:w,marginTop:10,marginBottom:10,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"16%":"36%"},textheader:{backgroundColor:P,width:140,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"14%":"33%"},texttitle:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},textmodal:{fontFamily:"Montserrat",fontSize:16,color:I,position:"absolute",right:"5%",top:"5%"},textbox:{fontFamily:"Montserrat",fontSize:12,color:I},navartop:{width:"20%",height:60,position:"absolute",right:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},farsitop:{width:"20%",height:60,position:"absolute",right:"40%",flexDirection:"column",alignItems:"center",justifyContent:"center"},shiartop:{width:"20%",height:60,position:"absolute",left:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},viewR:{width:"25%",height:300,position:"absolute",right:0,flexDirection:"column"},navar_right:{width:"100%",height:60,position:"absolute",top:0,right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_right:{width:"100%",height:60,position:"absolute",top:"50%",right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_right:{width:"100%",height:60,position:"absolute",bottom:0,right:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},viewimage:{width:"50%",height:300,borderRadius:5,position:"absolute",right:"25%",borderWidth:2,borderColor:b,borderStyle:"dashed"},touch_rotate:{flexDirection:"row",width:80,height:50,backgroundColor:b,borderRadius:5,alignItems:"center",position:"absolute",bottom:8,right:"30%",justifyContent:"center"},touch_up:{flexDirection:"column",width:30,height:70,backgroundColor:b,borderRadius:5,alignItems:"center",position:"absolute",bottom:8,right:"70%"},navar_left:{width:"100%",height:60,position:"absolute",top:0,left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_left:{width:"100%",height:60,position:"absolute",top:"40%",left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_left:{width:"100%",height:60,position:"absolute",bottom:0,left:20,flexDirection:"column",alignItems:"center",justifyContent:"center"},navar_down:{width:"20%",height:60,position:"absolute",right:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"},farsi_down:{width:"20%",height:60,position:"absolute",right:"50%",flexDirection:"column",alignItems:"center",justifyContent:"center"},shiar_down:{width:"20%",height:60,position:"absolute",left:"16%",flexDirection:"column",alignItems:"center",justifyContent:"center"}});const rn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=((0,re.useSelector)((function(e){return e.finalproduct.datamdf})),(0,re.useDispatch)()),o=(0,c.useState)([]),a=(0,i.default)(o,2),l=(a[0],a[1]),s=(0,c.useState)([]),d=(0,i.default)(s,2),u=(d[0],d[1]),f=(0,c.useState)(!1),g=(0,i.default)(f,2),x=g[0],j=g[1],S=(0,c.useState)(!1),O=(0,i.default)(S,2),z=O[0],k=O[1],B=(0,c.useState)(!1),F=(0,i.default)(B,2),R=F[0],L=F[1],E=(0,c.useState)(!1),W=(0,i.default)(E,2),H=W[0],V=W[1],N=(0,c.useState)(),q=(0,i.default)(N,2),G=q[0],U=q[1],Q=(0,c.useState)(e.route.params.orderid),J=(0,i.default)(Q,2),K=J[0],Y=J[1],Z=(0,c.useState)(""),X=(0,i.default)(Z,2),ee=X[0],te=X[1],ne=(0,c.useState)("\u0646\u062f\u0627\u0631\u0645"),le=(0,i.default)(ne,2),se=le[0],ce=le[1],fe=(0,c.useState)("366"),ge=(0,i.default)(fe,2),me=ge[0],pe=ge[1],be=(0,c.useState)("183"),je=(0,i.default)(be,2),we=je[0],ke=je[1],Pe=(0,c.useState)(""),Me=(0,i.default)(Pe,2),Te=Me[0],Fe=Me[1],_e=(0,c.useState)(""),Ie=(0,i.default)(_e,2),Re=Ie[0],De=Ie[1],Le=(0,c.useState)("\u0646\u062f\u0627\u0631\u0645"),Ae=(0,i.default)(Le,2),Ee=Ae[0],We=Ae[1],He=(0,c.useState)("0"),Ve=(0,i.default)(He,2),Ne=Ve[0],qe=Ve[1],Ge=(0,c.useState)("0"),Ue=(0,i.default)(Ge,2),Qe=Ue[0],Je=Ue[1],Ke=(0,c.useState)("0"),Xe=(0,i.default)(Ke,2),$e=Xe[0],et=Xe[1],nt=(0,c.useState)("0"),ot=(0,i.default)(nt,2),it=ot[0],rt=ot[1],st=(0,c.useState)(!1),dt=(0,i.default)(st,2),ut=dt[0],ct=dt[1],ft=(0,c.useState)(!1),ht=(0,i.default)(ft,2),gt=ht[0],mt=ht[1],yt=(0,c.useState)({showModal:!1,showModal1:!1,showModal2:!1,isLoading:!1,isLoading1:!1,Active:e.route.params.Sliceid||e.route.params.orderid?1:0,Active1:"",white:e.route.params.white?e.route.params.white:"",type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646",type_mil:"3"}),pt=(0,i.default)(yt,2),xt=pt[0],bt=pt[1],jt=(0,c.useState)({Radio1:e.route.params.color_strip?e.route.params.color_strip:"color",Radio2:e.route.params.width_strip?e.route.params.width_strip:"1",Radio3:e.route.params.height_strip?e.route.params.height_strip:"single",imagemdf:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOVLVPLsjgkzqnuf8I9HWsn675o_uSnDF8uw&usqp=CAU"}),St=(0,i.default)(jt,2),Ct=St[0],Ot=St[1],zt=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),kt=function(){var e=(0,r.default)((function*(){try{if(""==me||""==we||me<we)k(!0);else{yield n((e=[xt.type_mdf,xt.type_mil,me,we,Ct.Radio1,Ct.Radio2,Ct.Radio3,Ee],function(){var t=(0,r.default)((function*(t){t({type:Nt,data:e})}));return function(e){return t.apply(this,arguments)}}()));bt(nn(nn({},xt),{},{showModal:!1,Active:1}))}}catch(t){console.log(t)}var e}));return function(){return e.apply(this,arguments)}}(),Mt=(0,c.useState)(1),_t=(0,i.default)(Mt,2),It=_t[0],Rt=_t[1],Dt=function(){return Rt(It-1)};It<=1&&(Dt=function(){return Rt(1)});var Lt=function(){var o=(0,r.default)((function*(){try{bt(nn(nn({},xt),{},{isLoading1:!0}));var o=yield n(function(e,t,n,o,i,a,l,s,d,u,c,f){return function(){var h=(0,r.default)((function*(r){var h={Accept:"application/json",Authorization:"Bearer "+e},g=new(A());return g.append("order_id",t),g.append("group_id",n),g.append("width",i),g.append("height",o),g.append("count",a),g.append("rotate_status",l),g.append("description",f),g.append("width_one",s),g.append("length_one",d),g.append("width_two",u),g.append("length_two",c),fetch("https://cutunix.com/api/v1/order/add-slice",{method:"POST",headers:h,body:g}).then((function(e){return e.json()})).then((function(e){return r({type:wt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return h.apply(this,arguments)}}()}(t,e.route.params.orderid,e.route.params.idgroup,Re,Te,It,ut,Ne,$e,Qe,it,se));"success"==o.status?(j(!0),U("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(j(!0),U(o.message)),bt(nn(nn({},xt),{},{isLoading1:!1}))}catch(i){}}));return function(){return o.apply(this,arguments)}}(),At=function(){var o=(0,r.default)((function*(){try{bt(nn(nn({},xt),{},{isLoading1:!0}));var o=yield n(function(e,t,n,o,i,a,l,s,d,u,c){return function(){var f=(0,r.default)((function*(r){var f={Accept:"application/json",Authorization:"Bearer "+e},h=new(A());return h.append("slice_id",t),h.append("width",o),h.append("height",n),h.append("count",i),h.append("rotate_status",a),h.append("description",c),h.append("length_one",d),h.append("length_two",u),h.append("width_one",l),h.append("width_two",s),fetch("https://cutunix.com/api/v1/order/edit-slice",{method:"POST",headers:f,body:h}).then((function(e){return e.json()})).then((function(e){return r({type:vt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return f.apply(this,arguments)}}()}(t,e.route.params.Sliceid,Re,Te,It,ut,Ne,Qe,$e,it,se));"success"==o.status?(j(!0),U("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(j(!0),U(o.message)),bt(nn(nn({},xt),{},{isLoading1:!1}))}catch(i){}}));return function(){return o.apply(this,arguments)}}(),Et=(0,tt.useIsFocused)();(0,c.useEffect)((function(){e.route.params.Sliceid&&Wt(),qt(),Ht(),Vt(),t||zt(),Gt(),setTimeout((function(){bt(nn(nn({},xt),{},{showModal2:!0}))}),500)}),[Et]);var Wt=function(){var o=(0,r.default)((function*(){try{bt(nn(nn({},xt),{},{isLoading:!0}));var o=yield n((i=t,a=e.route.params.Sliceid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://cutunix.com/api/v1/order/slice?slice_id="+a;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Pt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));Y(o.data.data.slice.order_id),Rt(JSON.parse(o.data.data.slice.count)),ce(o.data.data.slice.description),Fe(o.data.data.slice.width),De(o.data.data.slice.height),qe(o.data.data.slice.width_one),Je(o.data.data.slice.width_two),et(o.data.data.slice.length_one),rt(o.data.data.slice.length_two),ct(JSON.parse(o.data.data.slice.rotate_status)),bt(nn(nn({},xt),{},{isLoading:!1}))}catch(l){}var i,a}));return function(){return o.apply(this,arguments)}}(),Ht=function(){var e=(0,r.default)((function*(){try{var e=yield n(Bt(t));l(e.data.data.products.data)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}(),Vt=function(){var e=(0,r.default)((function*(){try{var e=yield n(Tt(t));u(e.data.data.saves.data)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}(),qt=function(){var e=(0,r.default)((function*(){try{var e=yield n(oe(t));te(e.data.data.user)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}();function Gt(){ae.default.fetch().then((function(e){0==e.isConnected&&Ye.default.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return Gt()}}])}))}var Ut=function(){var n=(0,r.default)((function*(){try{yield Ft(t,e.route.params.Sliceid)}catch(n){console.log(n)}}));return function(){return n.apply(this,arguments)}}();function Qt(){return mt(!0),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",Qt),function(){Ze.default.removeEventListener("hardwareBackPress",Qt)}}),[]);var Jt=(0,Ce.useMediaQuery)({maxWidth:500}),Kt=(0,i.default)(Jt,1)[0];return xt.isLoading?(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:xt.isLoading,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:Kt?"100%":500,marginLeft:Kt?0:"35%",height:"100%",backgroundColor:w,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:on.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){e.route.params.orderid?e.navigation.navigate("list",{ids:e.route.params.orderid}):mt(!0)},style:on.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){e.route.params.orderid?e.navigation.navigate("list",{ids:e.route.params.orderid}):mt(!0)},style:on.textheader,children:(0,ue.jsx)(m.default,{style:on.texttitle,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062c\u0632\u0626\u06cc\u0627\u062a \u062a\u06a9\u0647"})}),(0,ue.jsx)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{showModal2:!0}))},style:{width:30,height:30,position:"absolute",top:"web"==ye.default.OS?20:35,left:15},children:(0,ue.jsx)(xe.default,{name:"alert-circle-outline",size:25,color:v})})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",isOpen:xt.showModal2,onClose:function(){return bt(nn(nn({},xt),{},{showModal2:!1}))},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30,width:"80%",height:300,borderWidth:5,borderColor:b},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:250},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:20},children:(0,ue.jsx)(xe.default,{onPress:function(){return bt(nn(nn({},xt),{},{showModal2:!1}))},name:"close",size:20,color:I})}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:20,color:"red",marginRight:"40%",marginBottom:10},children:"\u0647\u0634\u062f\u0627\u0631!"}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:13,textAlign:"auto"},children:"\u062f\u0631 \u0627\u06cc\u0646 \u0635\u0641\u062d\u0647 \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0646\u0648\u0639 \u0646\u0648\u0627\u0631 \u060c \u0648\u0631\u0642 \u0648 \u0627\u0628\u0639\u0627\u062f \u06a9\u0644\u06cc \u0648\u0631\u0642 \u0645\u0635\u0631\u0641\u06cc \u0631\u0627 \u062a\u0639\u06cc\u06cc\u0646 \u06a9\u0646\u06cc\u062f . \u062f\u0631 \u0635\u0641\u062d\u0647 \u0628\u0639\u062f \u0627\u0628\u0639\u0627\u062f \u062a\u06a9\u0647 \u0647\u0627 \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f . \u0628\u0627\u0646\u06af\u0647 \u062f\u0627\u0634\u062a\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0646\u0648\u0627\u0631 \u062f\u0631 \u0635\u0641\u062d\u0647 \u0628\u0639\u062f \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0648\u0627\u0631\u062f \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red",marginTop:10},children:"\u0644\u0637\u0641\u0627 \u0628\u0627 \u062f\u0642\u062a \u06a9\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f. \u0628\u0639\u062f \u0627\u0632 \u062b\u0628\u062a \u0646\u0647\u0627\u06cc\u06cc \u0627\u0645\u06a9\u0627\u0646 \u0648\u06cc\u0631\u0627\u06cc\u0634 \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f ."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:13,marginTop:15},children:"\u0628\u0627 \u062a\u0634\u06a9\u0631 \u0627\u0632 \u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u0645\u0627"})]})})})}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"lg",isOpen:xt.showModal,onClose:function(){return bt(nn(nn({},xt),{},{showModal:!1}))},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsxs)(ze.Modal.Body,{children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:450},children:[(0,ue.jsxs)(Be.default,{children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:40},children:[(0,ue.jsx)(m.default,{style:on.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0646\u0648\u0627\u0631"}),(0,ue.jsx)(xe.default,{onPress:function(){return bt(nn(nn({},xt),{},{showModal:!1}))},name:"close",size:20,color:I})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:25,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:" \u0631\u0646\u06af \u0646\u0648\u0627\u0631 : "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio1:"other"}))},name:"color"==Ct.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"color"==Ct.Radio1?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:70},children:"\u0633\u0627\u06cc\u0631 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio1:"color"}))},name:"other"==Ct.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"other"==Ct.Radio1?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13},children:"\u0647\u0645\u0631\u0646\u06af "})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:25,marginTop:10,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:" \u0636\u062e\u0627\u0645\u062a : "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio2:"2"}))},name:"1"==Ct.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"1"==Ct.Radio2?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:65},children:"2 \u0645\u06cc\u0644 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio2:"1"}))},name:"2"==Ct.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"2"==Ct.Radio2?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:8},children:"1 \u0645\u06cc\u0644 "})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:25,marginTop:10,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:" \u0627\u0631\u062a\u0641\u0627\u0639 : "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:40,flexDirection:"row",justifyContent:"center",alignItems:"center",marginBottom:10},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio3:"double"}))},name:"single"==Ct.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"single"==Ct.Radio3?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:68},children:"\u062f\u0648\u0628\u0644 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio3:"single"}))},name:"double"==Ct.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"double"==Ct.Radio3?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:12},children:"\u062a\u06a9 "})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:40},children:(0,ue.jsx)(m.default,{style:on.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0648\u0631\u0642 :"})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:5,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"6%"},children:"\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc : "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"column"},children:[(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0646\u0626\u0648\u067e\u0627\u0646"}),(0,ue.jsx)(xe.default,{name:"\u0646\u0626\u0648\u067e\u0627\u0646"==xt.type_mdf?"checkbox":"square-outline",size:25,color:"\u0646\u0626\u0648\u067e\u0627\u0646"==xt.type_mdf?b:_})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}),(0,ue.jsx)(xe.default,{name:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0641\u0648\u0645\u06cc\u0632\u0647"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0641\u0648\u0645\u06cc\u0632\u0647"}),(0,ue.jsx)(xe.default,{name:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}),(0,ue.jsx)(xe.default,{name:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}),(0,ue.jsx)(xe.default,{name:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==xt.type_mdf?_:b})]})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"6%"},children:" \u0636\u062e\u0627\u0645\u062a \u0648\u0631\u0642: "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"column"},children:[(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"3\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"3 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"3\u0645\u06cc\u0644"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"3\u0645\u06cc\u0644"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"8\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"8 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"8\u0645\u06cc\u0644"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"8\u0645\u06cc\u0644"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"16\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"16 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"16\u0645\u06cc\u0644"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"16\u0645\u06cc\u0644"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"25\u0645\u06cc\u0644"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"25 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"25\u0645\u06cc\u0644"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"25\u0645\u06cc\u0644"!==xt.type_mil?_:b})]})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"6%"},children:"\u0627\u0628\u0639\u0627\u062f \u06a9\u0644\u06cc \u0648\u0631\u0642 \u0645\u0635\u0631\u0641\u06cc: "})}),(0,ue.jsx)(ve,{label:"\u0637\u0648\u0644 \u0648\u0631\u0642",styleview:{marginTop:"3%",height:70},stylelabel:{width:"23%",backgroundColor:v},value:me,onChangeText:function(e){return pe(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"number-pad"}),(0,ue.jsx)(ve,{label:"\u0639\u0631\u0636 \u0648\u0631\u0642",styleview:{marginTop:"3%",height:70},stylelabel:{width:"23%",backgroundColor:v},value:we,onChangeText:function(e){return ke(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"number-pad"})]}),(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:P},textStyle:{bottom:10,fontSize:16},style:{marginTop:30,bottom:10,left:10},onPress:function(){kt()},colorspin:v,sizespin:25,label:"\u062b\u0628\u062a"})]}),(0,ue.jsx)(Se.default,{show:z,showProgress:!1,title:"\u0627\u062e\u0637\u0627\u0631",message:"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0637\u0648\u0644 \u0648 \u0639\u0631\u0636 \u0631\u0627\u06a9\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f.\u0645\u0642\u062f\u0627\u0631 \u0639\u0631\u0636 \u0646\u0628\u0627\u06cc\u062f \u0627\u0632 \u0637\u0648\u0644 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627\u0634\u062f.",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){k(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"}})]})})}),(0,ue.jsxs)(Be.default,{children:[1==xt.Active?(0,ue.jsx)(h.default,{}):(0,ue.jsxs)(h.default,{style:{width:"100%"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:10},children:(0,ue.jsx)(m.default,{style:on.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0646\u0648\u0627\u0631"})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio1:"other"}))},name:"color"==Ct.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"color"==Ct.Radio1?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:100,marginRight:"16%"},children:"\u0633\u0627\u06cc\u0631 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio1:"color"}))},name:"other"==Ct.Radio1?"ellipse-outline":"checkmark-circle",size:30,color:"other"==Ct.Radio1?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"8%"},children:"\u0647\u0645\u0631\u0646\u06af "}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"9%"},children:" \u0631\u0646\u06af \u0646\u0648\u0627\u0631 : "})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio2:"2"}))},name:"1"==Ct.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"1"==Ct.Radio2?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"15%"},children:"2 \u0645\u06cc\u0644 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio2:"1"}))},name:"2"==Ct.Radio2?"ellipse-outline":"checkmark-circle",size:30,color:"2"==Ct.Radio2?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"10%"},children:"1 \u0645\u06cc\u0644 "}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"9%"},children:" \u0636\u062e\u0627\u0645\u062a : "})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:35,flexDirection:"row",justifyContent:"flex-end",alignItems:"center",marginBottom:10},children:[(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio3:"double"}))},name:"single"==Ct.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"single"==Ct.Radio3?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:"15%"},children:"\u062f\u0648\u0628\u0644 "}),(0,ue.jsx)(xe.default,{onPress:function(){return Ot(nn(nn({},Ct),{},{Radio3:"single"}))},name:"double"==Ct.Radio3?"ellipse-outline":"checkmark-circle",size:30,color:"double"==Ct.Radio3?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,marginRight:59},children:"\u062a\u06a9 "}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"11%"},children:"\u0627\u0631\u062a\u0641\u0627\u0639 : "})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30},children:(0,ue.jsx)(m.default,{style:on.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0646\u0648\u0639 \u0648\u0631\u0642 :"})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:30,marginTop:5,marginBottom:10,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"5%",marginRight:"30%"},children:"\u0636\u062e\u0627\u0645\u062a \u0648\u0631\u0642 : "}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"6%"},children:"\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc : "})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row"},children:[(0,ue.jsxs)(h.default,{style:{width:"50%",alignSelf:"auto",flexDirection:"column",right:"5%"},children:[(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"3"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"3 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"3"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"3"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"8"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"8 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"8"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"8"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"16"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"16 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"16"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"16"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"25"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"25 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"25"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"25"!==xt.type_mil?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mil:"32"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"32 \u0645\u06cc\u0644"}),(0,ue.jsx)(xe.default,{name:"32"!==xt.type_mil?"square-outline":"checkbox",size:25,color:"32"!==xt.type_mil?_:b})]})]}),(0,ue.jsxs)(h.default,{style:{width:"50%",alignSelf:"auto",flexDirection:"column",right:"8%"},children:[(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0646\u0626\u0648\u067e\u0627\u0646"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0646\u0626\u0648\u067e\u0627\u0646"}),(0,ue.jsx)(xe.default,{name:"\u0646\u0626\u0648\u067e\u0627\u0646"==xt.type_mdf?"checkbox":"square-outline",size:25,color:"\u0646\u0626\u0648\u067e\u0627\u0646"==xt.type_mdf?b:_})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0627\u0645 \u062f\u06cc \u0627\u0641"}),(0,ue.jsx)(xe.default,{name:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0627\u0645 \u062f\u06cc \u0627\u0641"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0641\u0648\u0645\u06cc\u0632\u0647"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0641\u0648\u0645\u06cc\u0632\u0647"}),(0,ue.jsx)(xe.default,{name:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0641\u0648\u0645\u06cc\u0632\u0647"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"}),(0,ue.jsx)(xe.default,{name:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0647\u0627\u06cc\u06af\u0644\u0627\u0633"!==xt.type_mdf?_:b})]}),(0,ue.jsxs)(de.default,{onPress:function(){return bt(nn(nn({},xt),{},{type_mdf:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}))},style:{width:"95%",height:35,flexDirection:"row",justifyContent:"flex-end"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,marginRight:"3%"},children:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"}),(0,ue.jsx)(xe.default,{name:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==xt.type_mdf?"square-outline":"checkbox",size:25,color:"\u0635\u0641\u062d\u0647 \u06a9\u0627\u0628\u06cc\u0646\u062a"!==xt.type_mdf?_:b})]})]})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"6%"},children:"\u0627\u0628\u0639\u0627\u062f \u06a9\u0644\u06cc \u0648\u0631\u0642 \u0645\u0635\u0631\u0641\u06cc: "})}),"web"==ye.default.OS?(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"center",marginBottom:10},children:[(0,ue.jsx)(en,{style:{width:"90%",marginTop:5,marginLeft:-2},stylelabel:{zIndex:2,width:"18%",top:-4,marginLeft:Kt?"-6%":"-5%"},label:"\u0639\u0631\u0636 \u0648\u0631\u0642",type:"text",id:"message",name:"message",onChange:function(e){return ke(e.target.value)},value:we}),(0,ue.jsx)(en,{style:{width:"90%",marginTop:5},stylelabel:{zIndex:2,width:"17%",top:-4,marginLeft:Kt?"40%":"32%"},label:"\u0637\u0648\u0644 \u0648\u0631\u0642",type:"text",id:"message",name:"message",onChange:function(e){return pe(e.target.value)},value:me})]}):(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"center",marginBottom:10},children:[(0,ue.jsx)(ve,{label:"\u0639\u0631\u0636 \u0648\u0631\u0642",styleview:{width:"46%",marginTop:"3%",height:70},stylelabel:{width:"35%",backgroundColor:v},value:we,onChangeText:function(e){return ke(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"number-pad"}),(0,ue.jsx)(ve,{label:"\u0637\u0648\u0644 \u0648\u0631\u0642",styleview:{width:"46%",marginTop:"3%",height:70},stylelabel:{width:"35%",backgroundColor:v},value:me,onChangeText:function(e){return pe(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"number-pad"})]}),(0,ue.jsx)(ve,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648 \u0631\u0646\u06af \u0648\u0631\u0642",multiline:!0,styleinput:"web"===ye.default.OS&&{outlineColor:P,height:100},styleview:{height:100,marginBottom:"5%",marginTop:10},stylelabel:{width:130,top:"web"==ye.default.OS?-10:-15},keyboardType:"default",value:Ee,onChangeText:function(e){return We(e)}}),(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:P},textStyle:{bottom:10,fontSize:16},style:{marginTop:20,bottom:10,left:20},onPress:function(){kt()},colorspin:v,sizespin:25,label:"\u062b\u0628\u062a"})]}),1==xt.Active?(0,ue.jsxs)(lt.default,{children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:60,flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onLongPress:function(){return bt(nn(nn({},xt),{},{showModal:!0}))},style:on.navartop,children:[(0,ue.jsx)(xe.default,{onPress:function(){return qe("1"==Ne?"":"1")},name:"1"!==Ne?"square-outline":"checkbox",size:25,color:"1"!==Ne?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0646\u0648\u0627\u0631"})]}),(0,ue.jsxs)(h.default,{style:on.farsitop,children:[(0,ue.jsx)(xe.default,{onPress:function(){return qe("2"==Ne?"":"2")},name:"2"!==Ne?"square-outline":"checkbox",size:25,color:"2"!==Ne?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ue.jsxs)(h.default,{style:on.shiartop,children:[(0,ue.jsx)(xe.default,{onPress:function(){return qe("3"==Ne?"":"3")},name:"3"!==Ne?"square-outline":"checkbox",size:25,color:"3"!==Ne?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:300,flexDirection:"row"},children:[(0,ue.jsxs)(h.default,{style:on.viewR,children:[(0,ue.jsxs)(de.default,{onLongPress:function(){return bt(nn(nn({},xt),{},{showModal:!0}))},style:on.navar_right,children:[(0,ue.jsx)(xe.default,{onPress:function(){return et("1"==$e?"":"1")},name:"1"!==$e?"square-outline":"checkbox",size:25,color:"1"!==$e?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0646\u0648\u0627\u0631"})]}),"web"==ye.default.OS?(0,ue.jsx)(en,{stylelabel:{width:"35%"},label:"\u0637\u0648\u0644",type:"text",id:"message",name:"message",onChange:function(e){return De(e.target.value)},value:Re}):(0,ue.jsx)(ve,{label:"\u0637\u0648\u0644",styleview:{width:"80%",alignSelf:"auto",marginTop:80},stylelabel:{width:35,top:"web"==ye.default.OS?-9:-13,left:25},keyboardType:"number-pad",value:Re,onChangeText:function(e){return De(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsxs)(h.default,{style:on.farsi_right,children:[(0,ue.jsx)(xe.default,{onPress:function(){return et("2"==$e?"":"2")},name:"2"!==$e?"square-outline":"checkbox",size:25,color:"2"!==$e?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ue.jsxs)(h.default,{style:on.shiar_right,children:[(0,ue.jsx)(xe.default,{onPress:function(){return et("3"==$e?"":"3")},name:"3"!==$e?"square-outline":"checkbox",size:25,color:"3"!==$e?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ue.jsx)(h.default,{style:on.viewimage,children:"false"==ee.status?(0,ue.jsxs)(at.default,{source:{uri:Ct.imagemdf},style:{width:"100%",height:"100%"},alt:"image",children:[(0,ue.jsx)(he,{label:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0648\u0631\u0642",style:{width:100,marginLeft:"28%",marginTop:100},touchableStyle:{borderRadius:20,backgroundColor:b},textStyle:{bottom:10},onPress:function(){return bt(nn(nn({},xt),{},{showModal1:!0}))}}),(0,ue.jsx)(de.default,{onPress:function(){return ct(!ut)},style:on.touch_rotate,children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:1==ut?P:v},children:"\u0686\u0631\u062e\u0634"})})]}):(0,ue.jsx)(lt.default,{style:{top:180},children:(0,ue.jsxs)(de.default,{onPress:function(){return ct(!ut)},style:{flexDirection:"row",width:80,height:80,backgroundColor:1==ut?b:C,borderRadius:5,alignItems:"center",position:"absolute",bottom:8,right:"30%",justifyContent:"center",flexDirection:"column"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:1==ut?P:_},children:"\u0686\u0631\u062e\u0634"}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:1==ut?P:_},children:1==ut?"\u0641\u0639\u0627\u0644":"\u063a\u06cc\u0631\u0641\u0639\u0627\u0644"})]})})}),(0,ue.jsxs)(h.default,{style:{width:"25%",height:300,position:"absolute",left:0},children:[(0,ue.jsxs)(de.default,{onLongPress:function(){return bt(nn(nn({},xt),{},{showModal:!0}))},style:on.navar_left,children:[(0,ue.jsx)(xe.default,{onPress:function(){return rt("1"==it?"":"1")},name:"1"!==it?"square-outline":"checkbox",size:25,color:"1"!==it?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0646\u0648\u0627\u0631"})]}),(0,ue.jsxs)(h.default,{style:on.farsi_left,children:[(0,ue.jsx)(xe.default,{onPress:function(){return rt("2"==it?"":"2")},name:"2"!==it?"square-outline":"checkbox",size:25,color:"2"!==it?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ue.jsxs)(h.default,{style:on.shiar_left,children:[(0,ue.jsx)(xe.default,{onPress:function(){return rt("3"==it?"":"3")},name:"3"!==it?"square-outline":"checkbox",size:25,color:"3"!==it?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:60,flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onLongPress:function(){return bt(nn(nn({},xt),{},{showModal:!0}))},style:on.navar_down,children:[(0,ue.jsx)(xe.default,{onPress:function(){return Je("1"==Qe?"":"1")},name:"1"!==Qe?"square-outline":"checkbox",size:25,color:"1"!==Qe?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0646\u0648\u0627\u0631"})]}),"web"==ye.default.OS?(0,ue.jsx)(en,{style:{width:"18%",alignSelf:"auto",marginTop:12,position:"absolute",right:"32%"},stylelabel:{zIndex:2,width:"10%",top:"5%",marginLeft:"23%"},label:"\u0639\u0631\u0636",type:"text",id:"message",name:"message",onChange:function(e){return Fe(e.target.value)},value:Te}):(0,ue.jsx)(ve,{label:"\u0639\u0631\u0636",styleview:{width:"20%",alignSelf:"auto",marginTop:12,position:"absolute",right:"32%"},stylelabel:{width:37,top:"web"==ye.default.OS?-9:-13,right:20},keyboardType:"number-pad",value:Te,onChangeText:function(e){return Fe(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsxs)(h.default,{style:on.farsi_down,children:[(0,ue.jsx)(xe.default,{onPress:function(){return Je("2"==Qe?"":"2")},name:"2"!==Qe?"square-outline":"checkbox",size:25,color:"2"!==Qe?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0641\u0627\u0631\u0633\u06cc"})]}),(0,ue.jsxs)(h.default,{style:on.shiar_down,children:[(0,ue.jsx)(xe.default,{onPress:function(){return Je("3"==Qe?"":"3")},name:"3"!==Qe?"square-outline":"checkbox",size:25,color:"3"!==Qe?_:b}),(0,ue.jsx)(m.default,{style:on.textbox,children:"\u0634\u06cc\u0627\u0631"})]})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:70,marginTop:40,alignItems:"center",justifyContent:"center"},children:(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"90%",height:50,borderWidth:1,borderColor:T,borderRadius:5},children:[(0,ue.jsx)(de.default,{onPress:function(){return Dt()},style:{alignItems:"center",justifyContent:"center",width:"20%",height:48,backgroundColor:P,borderRadius:4},children:(0,ue.jsx)(xe.default,{name:"remove-outline",size:35,color:v})}),(0,ue.jsxs)(h.default,{style:{width:"60%",height:48,backgroundColor:w,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(h.default,{style:{width:"30%",height:20,backgroundColor:w,alignItems:"center",position:"absolute",bottom:"84%",left:"35%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647"})}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:22,color:I},children:It})]}),(0,ue.jsx)(de.default,{onPress:function(){return Rt(It+1)},style:{alignItems:"center",justifyContent:"center",width:"20%",height:48,backgroundColor:P,position:"absolute",right:0,borderRadius:4},children:(0,ue.jsx)(xe.default,{name:"add",size:35,color:v})})]})}),(0,ue.jsx)(ve,{label:"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"20%",marginTop:20},stylelabel:{width:70,top:"web"==ye.default.OS?-9:-15},keyboardType:"default",value:se,onChangeText:function(e){return ce(e)}})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(Se.default,{show:x,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==G?"":"\u0627\u062e\u0637\u0627\u0631",message:G,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==G,showConfirmButton:!0,cancelText:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0642\u0637\u0639\u0647 \u062c\u062f\u06cc\u062f",confirmText:"\u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634",confirmButtonColor:M,onCancelPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==G?(j(!1),Rt(1),ce("\u0646\u062f\u0627\u0631\u0645"),Fe(""),De(""),Je("0"),qe("0"),et("0"),rt("0"),ct(!1),Ot({Radio1:"color",Radio2:"1",Radio3:"single"})):j(!1)},onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==G?(j(!1),Rt(1),ce("\u0646\u062f\u0627\u0631\u0645"),Fe(""),De(""),Je("0"),qe("0"),et("0"),rt("0"),ct(!1),e.navigation.navigate("list",{ids:e.route.params.orderid?e.route.params.orderid:K||"",gro:null}),Ot({Radio1:"color",Radio2:"1",Radio3:"single"})):j(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==G?"42%":"80%",height:40,alignItems:"center"},cancelButtonStyle:{width:"53%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsx)(Se.default,{show:z,showProgress:!1,title:"\u0627\u062e\u0637\u0627\u0631",message:"\u0644\u0637\u0641\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0637\u0648\u0644 \u0648 \u0639\u0631\u0636 \u0631\u0627\u06a9\u0627\u0645\u0644 \u06a9\u0646\u06cc\u062f.\u0645\u0642\u062f\u0627\u0631 \u0637\u0648\u0644 \u0646\u0628\u0627\u06cc\u062f \u0627\u0632 \u0639\u0631\u0636 \u0628\u06cc\u0634\u062a\u0631 \u0628\u0627\u0634\u062f.",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){k(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"}}),(0,ue.jsx)(Se.default,{show:R,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631",message:"\u0622\u06cc\u0627 \u0645\u0627\u06cc\u0644 \u0628\u0647 \u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634 \u0647\u0633\u062a\u06cc\u062f \u061f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,confirmText:"\u0628\u0644\u0647",cancelText:"\u062e\u06cc\u0631",confirmButtonColor:M,onCancelPressed:function(){L(!1),e.navigation.goBack()},onConfirmPressed:function(){L(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"},cancelButtonStyle:{width:"40%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsx)(Se.default,{show:gt,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631",message:"\u0627\u0632 \u0627\u062f\u0627\u0645\u0647 \u06a9\u0627\u0631 \u0645\u0646\u0635\u0631\u0641 \u0634\u062f\u0647 \u0627\u06cc\u062f \u061f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u062e\u06cc\u0631",confirmText:"\u0628\u0644\u0647",confirmButtonColor:M,onCancelPressed:function(){mt(!1)},onConfirmPressed:function(){e.route.params.Sliceid&&Ut(),e.navigation.goBack(),mt(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"},cancelButtonStyle:{width:"40%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}})]}),1==xt.Active?(0,ue.jsxs)(h.default,{style:on.viewfooter,children:[(0,ue.jsx)(he,{label:"\u062a\u06a9\u0645\u06cc\u0644 \u0648 \u0627\u0641\u0632\u0648\u062f\u0646",style:{width:"50%",position:"absolute",right:"-1%",bottom:0},touchableStyle:{backgroundColor:M},textStyle:{bottom:10},colorspin:v,sizespin:25,loading:xt.isLoading1,onPress:function(){return JSON.parse(me)<=Re||JSON.parse(we)<=Te?V(!0):e.route.params.Sliceid?At():Lt()}}),(0,ue.jsx)(he,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",style:{width:"50%",position:"absolute",left:"3%",bottom:0},textStyle:{bottom:10},onPress:function(){j(!1),Rt(1),ce("\u0646\u062f\u0627\u0631\u0645"),Fe(""),De(""),Je("0"),qe("0"),et("0"),rt("0"),ct(!1),Ot({Radio1:"color",Radio2:"1",Radio3:"single"})}}),(0,ue.jsx)(Se.default,{show:H,showProgress:!1,title:"\u0627\u062e\u0637\u0627\u0631",message:" \u0637\u0648\u0644 \u06cc\u0627 \u0639\u0631\u0636 \u0627\u0632 \u0627\u0628\u0639\u0627\u062f \u0648\u0631\u0642 \u0627\u0648\u0644\u06cc\u0647 \u0628\u06cc\u0634\u062a\u0631 \u0627\u0633\u062a ",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){V(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"}})]}):(0,ue.jsx)(h.default,{})]})})};var an=o(3433),ln=o(8344);function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var un=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:S,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:90,backgroundColor:v},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:P,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:v,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const cn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(!1),u=(0,i.default)(d,2),f=u[0],x=u[1],b=(0,c.useState)({isLoading:!1,isLoading1:!1,showModal:!1}),S=(0,i.default)(b,2),C=S[0],O=S[1],z=(0,c.useState)(1),k=(0,i.default)(z,2),B=k[0],T=k[1],F=(0,c.useState)(""),R=(0,i.default)(F,2),L=R[0],E=R[1],W=(0,c.useState)([]),H=(0,i.default)(W,2),V=H[0],N=H[1],q=(0,c.useState)([]),G=(0,i.default)(q,2),U=G[0],Q=G[1],J=(0,c.useState)(""),K=(0,i.default)(J,2),Y=K[0],Z=K[1],X=(0,c.useRef)(!1),ee=function(){var e=(0,r.default)((function*(){try{X.current&&0,O(dn(dn({},C),{},{isLoading:!0}));var e=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r="https://cutunix.com/api/v1/app/products?page="+t+"&name="+n;return D()({method:"get",url:r,headers:i}).then((function(e){var t=e.data;return o({type:xt,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,B,L));X.current?(N(e.data.data.products.data),X.current=!1):N([].concat((0,an.default)(V),(0,an.default)(e.data.data.products.data))),O(dn(dn({},C),{},{isLoading:!1}))}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){ee()}),[B,L]);var te=function(){var e=(0,r.default)((function*(e){try{s(!0);var o=yield n((i=t,a=e,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://cutunix.com/api/v1/app/product?product_id="+a;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:bt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));Q(o.data.data.product.options),Z(o.data.data.product),s(!1)}catch(l){oe()}var i,a}));return function(t){return e.apply(this,arguments)}}(),ne=function(){var e=(0,r.default)((function*(){try{O(dn(dn({},C),{},{isLoading1:!0})),"success"==(yield function(e,t){var n={Accept:"application/json",Authorization:"Bearer "+e},o=new(A());return o.append("product_id",t),fetch("https://cutunix.com/api/v1/user/add-product",{method:"POST",headers:n,body:o}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(t,Y.code)).status&&x(!0),O(dn(dn({},C),{},{isLoading1:!1}))}catch(e){console.log(e)}}));return function(){return e.apply(this,arguments)}}(),oe=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:un.viewContainer,children:[(0,ue.jsxs)(h.default,{style:un.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:v}),(0,ue.jsx)(he,{label:"\u0628\u0633\u062a\u0646",nameicon:"close",sizeicon:15,styleicon:{position:"absolute",left:15,top:3},coloricon:v,style:{width:"25%",marginLeft:"5%",marginTop:40},textStyle:{bottom:4,right:10,marginRight:10},onPress:function(){return e.navigation.goBack()}}),(0,ue.jsx)(ve,{label:"\u062c\u0633\u062a\u062c\u0648",styleview:{width:"70%",marginTop:40,right:"web"===ye.default.OS?"3%":"8%"},stylelabel:{width:"22%"},styleinput:{height:45},keyboardType:"default",onChangeText:function(e){e||T(1),X.current=!0,E(e)}})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:C.showModal,onClose:function(){return O(dn(dn({},C),{},{showModal:!1}))},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsxs)(ze.Modal.Body,{children:[l?(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:l,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:50},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:16,color:I,position:"absolute",right:"1%",top:"5%"},children:Y.title}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,position:"absolute",right:"1%",top:"60%"},children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",Y.code]}),(0,ue.jsx)(xe.default,{onPress:function(){return O(dn(dn({},C),{},{showModal:!1}))},name:"close",size:25,color:I})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:150,marginTop:"2%",marginBottom:"2%"},children:(0,ue.jsx)(g.default,{source:{uri:Y.thumb?Y.thumb:"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTOVLVPLsjgkzqnuf8I9HWsn675o_uSnDF8uw&usqp=CAU"},style:{width:"100%",height:150}})}),U.map((function(e,t){return(0,ue.jsx)(h.default,{style:{width:"100%",marginTop:"2%",marginBottom:3},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:[e.option?e.option.title:"-"," : ",(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_,position:"absolute",right:"1%",top:"50%"},children:e.value?e.value:"-"})," "]})},t)}))]}),(0,ue.jsx)(h.default,{style:{width:"100%",alignSelf:"auto",backgroundColor:v,justifyContent:"center",marginTop:30,marginBottom:30},children:(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:j},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"web"==ye.default.OS?"2%":"5%"},onPress:function(){ne()},colorspin:v,sizespin:25,loading:C.isLoading1,label:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a"})})]})})}),(0,ue.jsx)(ln.default,{data:V,onEndReachedThreshold:.5,onEndReached:function(){X.current||T(B+1)},ListFooterComponent:function(){return(0,ue.jsx)(h.default,{style:un.footer,children:(0,ue.jsxs)(de.default,{activeOpacity:.9,onPress:ee,style:un.loadMoreBtn,children:[(0,ue.jsx)(m.default,{style:un.btnText,children:" \u0628\u06cc\u0634\u062a\u0631 "}),C.isLoading?(0,ue.jsx)(p.default,{color:"white",style:{marginLeft:8}}):null]})})},enableEmptySections:!0,renderItem:function(e){var t=e.item,n=e.index;return(0,ue.jsx)(h.default,{style:{width:"100%",height:70,marginTop:10},children:(0,ue.jsxs)(de.default,{onPress:function(){O(dn(dn({},C),{},{showModal:!0})),te(t.id)},style:{borderRadius:5,flexDirection:"row",width:"91%",height:70,backgroundColor:w,left:"web"===ye.default.OS?"4%":"27%",borderRadius:10,borderWidth:1,borderColor:_},children:[(0,ue.jsxs)(h.default,{style:{borderRadius:5,width:"80%",height:70},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,position:"absolute",right:"3%",top:"15%"},children:t.title}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:I,position:"absolute",right:"3%",top:"50%"},children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",t.code]})]}),(0,ue.jsx)(h.default,{style:{borderRadius:5,width:"20%",height:70},children:(0,ue.jsx)(g.default,{source:{uri:t.thumb?t.thumb:"https://dasterang.ir/image/product/1587197829lteqSKMkNGsgkoEfBh8FUiF8pXBJUKpRgmIv6dGOIaxkkvVGfm.jpeg"},alt:"image",style:{width:"90%",height:60,marginTop:5,borderRadius:5}})})]})},n)},keyExtractor:function(e,t){return t.toString()}}),(0,ue.jsx)(Se.default,{show:f,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0641\u0632\u0648\u062f\u0647 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){x(!1),setTimeout((function(){e.navigation.navigate("ordercolor")}),1e3)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:M},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};function fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var gn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"5%",top:"web"==ye.default.OS?"15%":"35%"},viewfooter:{position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1,flexDirection:"row",width:"100%",height:60,backgroundColor:v},view:{flexDirection:"column",alignItems:"center",width:"90%",height:320,backgroundColor:w,marginTop:20,left:"5%",borderRadius:10,borderWidth:2,borderColor:T},viewtitile:{borderRadius:5,flexDirection:"row",width:"91%",height:70,backgroundColor:w,left:"web"===ye.default.OS?"4%":"27%",borderRadius:10},texttitle:{fontFamily:"Montserrat",fontSize:15,color:I},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:10},textlineL:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"50%"},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row",marginTop:5}});const mn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useSelector)((function(e){return e.finalproduct.datagroup})),o=(0,re.useSelector)((function(e){return e.finalproduct.datamdf})),a=(0,re.useDispatch)(),l=(0,c.useState)(""),s=(0,i.default)(l,2),d=s[0],u=s[1],f=(0,c.useState)([]),g=(0,i.default)(f,2),x=g[0],j=g[1],S=(0,c.useState)(!1),C=(0,i.default)(S,2),O=C[0],z=C[1],k=(0,c.useState)(!1),R=(0,i.default)(k,2),L=R[0],E=R[1],W=(0,c.useState)(!1),H=(0,i.default)(W,2),V=H[0],N=H[1],q=(0,c.useState)({showModal2:!1,isLoading:!1,isLoading1:!1}),G=(0,i.default)(q,2),U=G[0],Q=G[1],J=function(){var t=(0,r.default)((function*(){try{yield a($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),K=function(){var n=(0,r.default)((function*(){try{N(!0),Q(hn(hn({},U),{},{isLoading:!0}));var n=yield a((o=t,i=e.route.params.ids,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://cutunix.com/api/v1/order/slices?order_id="+i;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:St,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));j(n.data.data.slices),Q(hn(hn({},U),{},{isLoading:!1})),N(!1)}catch(l){}var o,i}));return function(){return n.apply(this,arguments)}}(),Y=(0,tt.useIsFocused)();(0,c.useEffect)((function(){K(),te(),t||J()}),[Y]);var Z=function(){var e=(0,r.default)((function*(e){try{Q(hn(hn({},U),{},{isLoading:!0})),"success"==(yield Ft(t,e,e)).status&&z(!0),Q(hn(hn({},U),{},{isLoading:!1}))}catch(n){console.log(n)}}));return function(t){return e.apply(this,arguments)}}(),X=function(){var n=(0,r.default)((function*(){try{Q(hn(hn({},U),{},{isLoading1:!0}));var n=yield a((i=t,l="\u062b\u0628\u062a \u0645\u0648\u0642\u062a",s=o[0]?o[0]:e.route.params.wood_type,d=o[1]?o[1]:e.route.params.wood_thickness,u=o[2]?o[2]:e.route.params.width,c=o[3]?o[3]:e.route.params.height,f=o[4]?o[4]:e.route.params.color_strip,h=o[5]?o[5]:e.route.params.width_strip,g=o[6]?o[6]:e.route.params.height_strip,m=o[7]?o[7]:e.route.params.panel_description,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n=new(A());return n.append("name",l),n.append("wood_type",s),n.append("wood_thickness",d),n.append("panel_width",u),n.append("panel_height",c),n.append("color_strip",f),n.append("width_strip",h),n.append("height_strip",g),n.append("panel_description",m),fetch("https://cutunix.com/api/v1/order/pending-order",{method:"POST",headers:t,body:n}).then((function(e){return e.json()})).then((function(t){return e({type:Gt,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==n.status&&e.navigation.navigate("orderlist",{refresh:"true"}),Q(hn(hn({},U),{},{isLoading1:!1}))}catch(y){console.log(y)}var i,l,s,d,u,c,f,h,g,m}));return function(){return n.apply(this,arguments)}}(),ee=x?x.reduce((function(e,t){return e+JSON.parse(t.count)}),0):0,te=function(){var e=(0,r.default)((function*(){try{var e=yield a(oe(t));u(e.data.data.user)}catch(n){}}));return function(){return e.apply(this,arguments)}}();function ne(){return E(!0),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",ne),function(){Ze.default.removeEventListener("hardwareBackPress",ne)}}),[]);var ae=(0,Ce.useMediaQuery)({maxWidth:500}),le=(0,i.default)(ae,1)[0];return V?(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:V,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:le?"100%":500,marginLeft:le?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:gn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(h.default,{style:gn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0644\u06cc\u0633\u062a \u062a\u06a9\u0647 \u0647\u0627"})})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:"web"==ye.default.OS?"85%":"78%"},children:(0,ue.jsx)(ln.default,{onRefresh:K,refreshing:U.isLoading,data:x,showsVerticalScrollIndicator:!1,renderItem:function(t){var n=t.item,o=t.index;return(0,ue.jsxs)(h.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",height:"false"==d.status?320:250,backgroundColor:w,marginTop:20,left:"5%",borderRadius:10,borderWidth:2,borderColor:T},children:["false"==d.status?(0,ue.jsx)(h.default,{style:{width:"100%",height:60},children:(0,ue.jsx)(h.default,{style:gn.viewtitile,children:(0,ue.jsx)(h.default,{style:{borderRadius:5,width:"80%",height:60,justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:gn.texttitle,children:null==n.product?"\u062a\u06a9\u0647 \u0633\u0641\u06cc\u062f":n.product.title})})})}):(0,ue.jsx)(h.default,{}),"false"==d.status?(0,ue.jsx)(h.default,{style:{width:"90%",height:1,backgroundColor:F}}):(0,ue.jsx)(h.default,{}),(0,ue.jsxs)(h.default,{style:gn.viewline,children:[(0,ue.jsxs)(m.default,{style:{textDecorationLine:"underline",position:"absolute",left:20,fontFamily:"MontserratBold",fontSize:20,color:B},children:[" ",o+1," "]}),(0,ue.jsxs)(m.default,{style:gn.textlineL,children:["\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647 : ",(0,ue.jsx)(m.default,{style:gn.textline,children:n.count})]}),(0,ue.jsxs)(m.default,{style:gn.textlineR,children:["\u06a9\u062f \u0645\u062d\u0635\u0648\u0644 : ",(0,ue.jsx)(m.default,{style:gn.textline,children:n.id})]})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:140,flexDirection:"row",padding:10},children:[(0,ue.jsxs)(h.default,{style:{width:"15%",height:140,flexDirection:"column",alignItems:"flex-end"},children:[(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:25},children:[" ","1"==n.width_one?"\u0646":""]}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:60},children:[" ","2"==n.width_one?"\u0641":""]}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",bottom:25},children:[" ","3"==n.width_one?"\u0634":""]})]}),(0,ue.jsxs)(h.default,{style:{width:"70%",height:140,flexDirection:"column"},children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:"20%",flexDirection:"row"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",right:"10%"},children:"1"==n.length_one?"\u0646":""}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"45%"},children:["2"==n.length_one?"\u0641":""," (",n.height,")"]}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"10%"},children:"3"==n.length_one?"\u0634":""})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:"60%",backgroundColor:_}}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:"20%",flexDirection:"row"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",right:"10%"},children:"1"==n.length_two?"\u0646":""}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"50%"},children:"2"==n.length_two?"\u0641":""}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",left:"10%"},children:"3"==n.length_two?"\u0634":""})]})]}),(0,ue.jsxs)(h.default,{style:{width:"15%",height:140,flexDirection:"column"},children:[(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:25},children:["1"==n.width_two?"\u0646":""," "]}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",top:60},children:["2"==n.width_two?"\u0641":""," (",n.width,") "]}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:_,position:"absolute",bottom:25},children:["3"==n.width_two?"\u0634":""," "]})]})]}),(0,ue.jsxs)(h.default,{style:gn.viewbtn,children:[(0,ue.jsx)(he,{label:"\u062d\u0630\u0641",nameicon:"delete-outline",sizeicon:18,styleicon:{position:"absolute",left:"web"===ye.default.OS?20:10,top:"web"===ye.default.OS?0:5},touchableStyle:{backgroundColor:w,elevation:0},style:{width:"48%",marginLeft:"5%",marginTop:10},textStyle:{color:I,right:10},onPress:function(){return Z(n.id)}}),(0,ue.jsx)(he,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",nameicon:"pencil-outline",sizeicon:18,styleicon:{position:"absolute",left:"web"===ye.default.OS?30:20,top:"web"===ye.default.OS?0:5},coloricon:v,touchableStyle:{backgroundColor:b},style:{width:"48%",marginRight:"3%",marginTop:10},textStyle:{right:10},onPress:function(){return e.navigation.navigate("form",{back:"1",Sliceid:n.id,height_strip:"single"==n.height_strip?"single":"double",color_strip:"color"==n.color_strip?"color":"other",width_strip:"1"==n.width_strip?"1":"2",orderid:e.route.params.ids})}})]})]},o)},keyExtractor:function(e){return e.id}})}),(0,ue.jsxs)(h.default,{style:{position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1,flexDirection:"row",width:le?"100%":500,height:60,backgroundColor:v},children:[x.length==[]?(0,ue.jsx)(h.default,{}):(0,ue.jsx)(he,{label:"\u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634",coloricon:w,style:{width:e.route.params.ids?"60%":"30%",marginLeft:"5%",marginTop:"web"==ye.default.OS?10:5},textStyle:{bottom:10},touchableStyle:{backgroundColor:M,elevation:0},onPress:function(){null!==e.route.params.gro?e.navigation.navigate("final",{totalmdf:ee,numberic:"",orderid:e.route.params.ids,gruop_id:n,ids:e.route.params.gro}):e.navigation.navigate("service",{totalmdf:ee,number:"",ostany:d.state_id,citys:d.city_id,orderid:e.route.params.ids,gruop_id:n})}}),e.route.params.ids?(0,ue.jsx)(h.default,{}):(0,ue.jsx)(he,{label:"\u062b\u0628\u062a \u0645\u0648\u0642\u062a",coloricon:I,style:{width:x.length==[]?"0%":"30%",marginTop:"web"==ye.default.OS?10:5},textStyle:{bottom:10},onPress:function(){return X()}}),(0,ue.jsx)(he,{label:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0642\u0637\u0639\u0647 \u062c\u062f\u06cc\u062f",nameicon:"plus",sizeicon:18,styleicon:{position:"absolute",left:"web"===ye.default.OS?60:45,top:"web"===ye.default.OS?-1:3},coloricon:v,touchableStyle:{backgroundColor:B,elevation:0},style:{width:x.length==[]?"110%":"35%",marginRight:"3%",marginTop:"web"==ye.default.OS?10:5},textStyle:{right:10,fontSize:14},onPress:function(){return e.navigation.navigate("form",{orderid:e.route.params.ids?e.route.params.ids:"",idgroup:n,back:"1"})}})]}),(0,ue.jsx)(Se.default,{show:L,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631",message:"\u062a\u06a9\u0647 \u0647\u0627\u06cc \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u062d\u0630\u0641 \u0645\u06cc\u06a9\u0646\u06cc\u062f\u061f",closeOnTouchOutside:!0,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u062e\u06cc\u0631",confirmText:"\u0628\u0644\u0647",confirmButtonColor:M,onCancelPressed:function(){e.route.params.ids?e.navigation.navigate("orderlist",{refresh:"true"}):X(),E(!1)},onConfirmPressed:function(){Z("all"),e.navigation.navigate("home"),E(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:18,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:15},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0},confirmButtonStyle:{width:"40%",height:40,alignItems:"center"},cancelButtonStyle:{width:"40%",height:40,backgroundColor:P,alignItems:"center"},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13,marginTop:"web"==ye.default.OS?5:0}}),(0,ue.jsx)(Se.default,{show:O,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062d\u0630\u0641 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){z(!1),K()},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:M},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var yn=o(1607),pn=o(2960);function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader:{backgroundColor:P,width:110,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"35%"},textinput:{paddingLeft:"web"===ye.default.OS?"35%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:S,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,fontFamily:"Montserrat",marginTop:15},view:{flexDirection:"column",alignItems:"center",width:"90%",height:200,backgroundColor:w,marginTop:10,left:"5%",borderWidth:1,borderColor:T,borderRadius:10,elevation:2,marginBottom:10},texttitle:{fontFamily:"Montserrat",fontSize:15,color:I,position:"absolute",right:"3%",top:"15%"},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textmodal:{fontFamily:"Montserrat",fontSize:16,color:I,position:"absolute",right:"1%",top:"5%"},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row"},filter:{backgroundColor:P,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"0%",top:"web"==ye.default.OS?"15%":"35%"},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:P,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:v,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const wn=function(e){for(var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)([]),u=(0,i.default)(d,2),f=u[0],g=u[1],x=(0,c.useState)({showModal:!1,favorit:!0,isLoading:!1,name:"",Ostan:"7",City:"",ActService:!0,lowActwork:"",offset:1}),j=(0,i.default)(x,2),w=j[0],S=j[1],C=(0,c.useState)(""),z=(0,i.default)(C,2),k=z[0],T=z[1],R=function(){var e=(0,r.default)((function*(){try{var e=yield n(te(t));T(e.data.data.states)}catch(o){console.log(o)}}));return function(){return e.apply(this,arguments)}}(),L=[],A=0;A<k.length;A++)L.push((0,ue.jsx)(yn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:k[A].state,value:k[A].id},A));for(var E=(0,c.useState)(""),W=(0,i.default)(E,2),H=W[0],V=W[1],N=function(){var e=(0,r.default)((function*(e){try{S(bn(bn({},w),{},{Ostan:e}));var o=yield n(ne(t,e));V(o.data.data.cities)}catch(i){console.log(i)}}));return function(t){return e.apply(this,arguments)}}(),q=[],G=0;G<H.length;G++)q.push((0,ue.jsx)(yn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:H[G].city,value:H[G].id},G));var U=function(){var e=(0,r.default)((function*(){try{S(bn(bn({},w),{},{isLoading:!0}));var e=yield n((o=t,i=w.offset,a=w.Ostan,l=w.City,s=w.ActService,d=w.lowActwork,u=w.name,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://cutunix.com/api/v1/app/services?page="+i+"city_id="+l+"&state_id="+a+"&down="+d+"&status="+s+"&name="+u;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Wt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));e.data.data.next_page_url?g([].concat((0,an.default)(f),(0,an.default)(e.data.data.services.data))):g((0,an.default)(e.data.data.services.data)),S(bn(bn({},w),{},{isLoading:!1}))}catch(c){console.log(c)}var o,i,a,l,s,d,u}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){R(),N("7")}),[w.offset]);var Q=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();(0,c.useEffect)((function(){U(),t||Q()}),[]);var J=(0,Ce.useMediaQuery)({maxWidth:500}),K=(0,i.default)(J,1)[0];function Y(){return e.navigation.goBack(),!0}return(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",Y),function(){Ze.default.removeEventListener("hardwareBackPress",Y)}}),[]),(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:K?"100%":500,marginLeft:K?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:jn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:jn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:jn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u062e\u062f\u0645\u0627\u062a\u06cc"})}),(0,ue.jsxs)(de.default,{onPress:function(){return s(!0)},style:jn.filter,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0641\u06cc\u0644\u062a\u0631"}),(0,ue.jsx)(le.default,{name:"sort-ascending",size:25,color:v})]})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"lg",isOpen:l,onClose:function(){return s(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:400},children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:40},children:[(0,ue.jsx)(m.default,{style:jn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u06cc\u0644\u062a\u0631"}),(0,ue.jsx)(xe.default,{onPress:function(){return s(!1)},name:"close",size:20,color:I})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:300,marginBottom:10},children:[(0,ue.jsxs)(h.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",bottom:10},children:[(0,ue.jsx)(h.default,{style:{width:"15%",height:20,backgroundColor:v,alignItems:"center",zIndex:2,left:"web"===ye.default.OS?"37%":"33%",top:"web"===ye.default.OS?"10%":"20%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0627\u0633\u062a\u0627\u0646"})}),"web"===ye.default.OS?"":(0,ue.jsx)(xe.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ue.jsx)(yn.default,{style:{backgroundColor:v},selectedValue:parseInt(w.Ostan),w:"web"===ye.default.OS?280:"90%",h:50,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===ye.default.OS?"50%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return N(e)},_selectedItem:{bg:P,startIcon:(0,ue.jsx)(pn.CheckIcon,{size:5,color:I})},children:L})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",bottom:"web"===ye.default.OS?10:20},children:[(0,ue.jsx)(h.default,{style:{width:"10%",height:20,backgroundColor:v,alignItems:"center",zIndex:2,left:"web"===ye.default.OS?"37%":"33%",top:"web"===ye.default.OS?"10%":"20%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0634\u0647\u0631"})}),"web"===ye.default.OS?"":(0,ue.jsx)(xe.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ue.jsx)(yn.default,{style:{backgroundColor:v},selectedValue:parseInt(w.City),w:"web"===ye.default.OS?280:"90%",h:50,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===ye.default.OS?"55%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return S(bn(bn({},w),{},{City:e}))},_selectedItem:{bg:P,startIcon:(0,ue.jsx)(pn.CheckIcon,{size:5,color:I})},children:q})]}),(0,ue.jsxs)(h.default,{style:{width:"web"===ye.default.OS?"95%":"92%",height:40,marginBottom:20,left:13,flexDirection:"row",marginTop:"web"===ye.default.OS?20:0},children:[(0,ue.jsx)(xe.default,{onPress:function(){return S(bn(bn({},w),{},{ActService:!w.ActService}))},name:0==w.ActService?"square-outline":"checkbox",size:28,color:0==w.ActService?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,position:"absolute",right:0},children:" \u062e\u062f\u0645\u0627\u062a\u06cc \u0647\u0627\u06cc \u0641\u0639\u0627\u0644 :"})]}),(0,ue.jsxs)(h.default,{style:{width:"91%",height:40,marginBottom:20,left:13,flexDirection:"row"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return S(bn(bn({},w),{},{lowActwork:!w.lowActwork}))},name:0==w.lowActwork?"square-outline":"checkbox",size:28,color:0==w.lowActwork?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,position:"absolute",right:0},children:" \u062a\u0631\u0627\u0641\u06cc\u06a9 \u06a9\u0627\u0631\u06cc \u067e\u0627\u06cc\u06cc\u0646 :"})]})]}),(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:P},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,bottom:10,left:10},onPress:function(){s(!1),U()},colorspin:v,sizespin:25,label:"\u062b\u0628\u062a"})]})})})}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",height:70,marginBottom:10},children:[(0,ue.jsx)(Te.default,{placeholder:"\u062c\u0633\u062a \u0648\u062c\u0648 \u062f\u0631 \u062e\u062f\u0645\u0627\u062a\u06cc \u0647\u0627 ",onKeyPress:U,placeholderTextColor:_,style:jn.textinput,onChangeText:function(e){return S(bn(bn({},w),{},{name:e}))}}),(0,ue.jsx)(le.default,{name:"magnify",size:30,color:"#767F9D",style:{position:"absolute",right:"8%",top:30,zIndex:2}})]}),w.isLoading?(0,ue.jsx)(p.default,{color:"red",style:{marginLeft:8}}):f.length==[]?(0,ue.jsx)(h.default,{style:{width:"80%",height:60,backgroundColor:B,left:"10%",padding:5,borderRadius:10,marginTop:"10%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,textAlign:"center"},children:"\u062f\u0631 \u0645\u062d\u062f\u0648\u062f\u0647 \u0634\u0645\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc \u06cc\u0627\u0641\u062a \u0646\u0634\u062f. \u0644\u0637\u0641\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0641\u06cc\u0644\u062a\u0631 \u060c \u062e\u062f\u0645\u0627\u062a\u06cc \u0628\u06cc\u0634\u062a\u0631 \u0631\u0627 \u062c\u0633\u062a \u0648 \u062c\u0648 \u06a9\u0646\u06cc\u062f."})}):(0,ue.jsx)(ln.default,{data:f,onEndReachedThreshold:.5,onEndReached:function(){return S(bn(bn({},w),{},{offset:w.offset+1}))},ListFooterComponent:function(){return(0,ue.jsx)(h.default,{style:jn.footer,children:(0,ue.jsxs)(de.default,{activeOpacity:.9,onPress:U,style:jn.loadMoreBtn,children:[(0,ue.jsx)(m.default,{style:jn.btnText,children:" \u062e\u062f\u0645\u0627\u062a\u06cc \u0628\u06cc\u0634\u062a\u0631 "}),w.isLoading?(0,ue.jsx)(p.default,{color:"white",style:{marginLeft:8}}):null]})})},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ue.jsxs)(h.default,{style:jn.view,children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:40,marginRight:"5%",marginTop:5,justifyContent:"center",flexDirection:"row"},children:(0,ue.jsxs)(m.default,{style:jn.texttitle,children:[n.first_name," ",n.last_name]})}),(0,ue.jsx)(h.default,{style:{width:"90%",height:1,backgroundColor:F}}),(0,ue.jsx)(h.default,{style:jn.viewline,children:(0,ue.jsxs)(m.default,{style:jn.textlineR,children:["\u0648\u0636\u0639\u06cc\u062a \u062e\u062f\u0645\u0627\u062a\u06cc : ",(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:"true"==n.active?M:_},children:"true"==n.active?"\u0641\u0639\u0627\u0644":"\u063a\u06cc\u0631 \u0641\u0639\u0627\u0644"})]})}),(0,ue.jsx)(h.default,{style:jn.viewline,children:(0,ue.jsxs)(m.default,{style:jn.textlineR,children:["\u0622\u062f\u0631\u0633 : ",(0,ue.jsxs)(m.default,{style:jn.textline,children:[n.state.state," , ",n.city.city]})]})}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("detailsService",{ids:n.id})},style:jn.viewline,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:P,position:"absolute",right:50},children:" \u0645\u0634\u0627\u0647\u062f\u0647 \u062c\u0632\u0626\u06cc\u0627\u062a \u062e\u062f\u0645\u0627\u062a\u06cc"}),(0,ue.jsx)(xe.default,{name:"eye-outline",size:20,color:P,style:{position:"absolute",right:20,top:"web"===ye.default.OS?-1:4}})]}),(0,ue.jsx)(h.default,{style:jn.viewbtn,children:(0,ue.jsx)(he,{label:"\u0627\u0646\u062a\u062e\u0627\u0628",nameicon:"check",sizeicon:18,coloricon:v,styleicon:{position:"absolute",left:"web"===ye.default.OS?20:15,top:"web"===ye.default.OS?0:4},touchableStyle:{backgroundColor:O,elevation:0,borderRadius:30},style:{width:"30%",height:45,marginLeft:"5%",position:"absolute",right:"65%"},textStyle:{color:v,right:10,marginRight:"web"===ye.default.OS?10:0},onPress:function(){e.navigation.navigate("final",{name:n.first_name,family:n.last_name,totalmdf:e.route.params.totalmdf,ids:n.id,numberic:e.route.params.number,orderid:e.route.params.orderid,gruop_id:e.route.params.gruop_id})}})})]},o)},keyExtractor:function(e,t){return t.toString()}})]})})};function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"16%":"36%"},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"13%":"33%"},viewfooter:{position:"absolute",bottom:0,flexDirection:"row",width:"100%",height:60,backgroundColor:v},view:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:w,marginTop:10,left:"5%",borderWidth:2,borderColor:T,borderRadius:10,marginBottom:20},texttitle:{fontFamily:"Montserrat",fontSize:15,color:I,position:"absolute",right:"3%",top:"15%"},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},viewbtn:{width:"100%",height:50,justifyContent:"center",flexDirection:"row",marginTop:5}});const On=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useSelector)((function(e){return e.finalproduct.datamdf})),o=(0,re.useDispatch)(),a=(0,c.useState)(!1),l=(0,i.default)(a,2),s=l[0],d=l[1],u=(0,c.useState)(),f=(0,i.default)(u,2),g=f[0],x=f[1],b=(0,c.useState)(!1),j=(0,i.default)(b,2),S=j[0],C=j[1],z=(0,c.useState)("\u0646\u062f\u0627\u0631\u0645"),k=(0,i.default)(z,2),B=k[0],T=k[1],F=(0,c.useState)("\u0646\u062f\u0627\u0631\u0645"),R=(0,i.default)(F,2),L=R[0],E=R[1],W=(0,c.useState)("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"),H=(0,i.default)(W,2),V=H[0],N=H[1],q=(0,c.useState)(""),G=(0,i.default)(q,2),U=G[0],Q=G[1],J=(0,c.useState)([]),K=(0,i.default)(J,2),Y=K[0],Z=K[1],X=(0,c.useState)({isLoading:!1,isLoading1:!1}),ee=(0,i.default)(X,2),te=ee[0],ne=ee[1],oe=function(){var t=(0,r.default)((function*(){try{yield o($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),ae=function(){var i=(0,r.default)((function*(i){try{ne(Sn(Sn({},te),{},"send"==i?{isLoading1:!0}:{isLoading:!0}));var a=yield o(function(e,t,n,o,i,a,l,s,d,u,c,f,h,g,m){return function(){var y=(0,r.default)((function*(r){var y={Accept:"application/json",Authorization:"Bearer "+e},p=new(A());return p.append("services_id",t),p.append("name",n),p.append("sheet_status_services",o),p.append("sheet_status_customer",i),p.append("send_status",a),p.append("status",l),p.append("wood_type",s),p.append("wood_thickness",d),p.append("panel_width",u),p.append("panel_height",c),p.append("color_strip",f),p.append("width_strip",h),p.append("height_strip",g),p.append("panel_description",m),fetch("https://cutunix.com/api/v1/order/set-services",{method:"POST",headers:y,body:p}).then((function(e){return e.json()})).then((function(e){return console.log(e),r({type:Lt,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return y.apply(this,arguments)}}()}(t,e.route.params.ids,U,B,L,V,i,"2"==e.route.params.numberic?"":n[0],"2"==e.route.params.numberic?"":n[1],"2"==e.route.params.numberic?"":n[2],"2"==e.route.params.numberic?"":n[3],"2"==e.route.params.numberic?"":n[4],"2"==e.route.params.numberic?"":n[5],"2"==e.route.params.numberic?"":n[6],"2"==e.route.params.numberic?"":n[7]));"success"==a.status?(d(!0),x("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==a.status&&(d(!0),x(a.message)),ne(Sn(Sn({},te),{},{isLoading:!1})),ne(Sn(Sn({},te),{},{isLoading1:!1}))}catch(l){}}));return function(e){return i.apply(this,arguments)}}(),le=function(){var n=(0,r.default)((function*(){try{C(!0);var n=yield o((i=t,a=e.route.params.orderid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://cutunix.com/api/v1/order/order?order_id="+a;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Mt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));Q(n.data.data.order.name),Z(n.data.data.order.groups),N(null==n.data.data.order.send_status?"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f":n.data.data.order.send_status),T("\u0646\u062f\u0627\u0631\u0645"==n.data.data.order.sheet_status_services?"\u0646\u062f\u0627\u0631\u0645":n.data.data.order.sheet_status_services),E("\u0646\u062f\u0627\u0631\u0645"==n.data.data.order.sheet_status_customer?"\u0646\u062f\u0627\u0631\u0645":n.data.data.order.sheet_status_customer),C(!1)}catch(l){}var i,a}));return function(){return n.apply(this,arguments)}}(),se=(0,tt.useIsFocused)();(0,c.useEffect)((function(){e.route.params.orderid&&le(),t||oe()}),[se]);var ce=function(){var n=(0,r.default)((function*(n,i,a,l,s,u,c,f,h){try{ne(Sn(Sn({},te),{},"send"==n?{isLoading1:!0}:{isLoading:!0})),console.log([e.route.params.orderid,e.route.params.gruop_id,e.route.params.ids,B,L,U,V,n,i,a,l,s,u,c,f,h]);var g=yield o(function(e,t,n,o,i,a,l,s,d,u,c,f,h,g,m,y,p){return function(){var x=(0,r.default)((function*(r){var x={Accept:"application/json",Authorization:"Bearer "+e},b=new(A());return b.append("class","update_pending"),b.append("order_id",t),b.append("order_group_id",n),b.append("services_id",o),b.append("sheet_status_services",i),b.append("sheet_status_customer",a),b.append("name",l),b.append("send_status",s),b.append("status",d),b.append("wood_type",u),b.append("wood_thickness",c),b.append("panel_width",f),b.append("panel_height",h),b.append("color_strip",g),b.append("width_strip",m),b.append("height_strip",y),b.append("panel_description",p),fetch("https://cutunix.com/api/v1/order/set-services",{method:"POST",headers:x,body:b}).then((function(e){return e.json()})).then((function(e){return r({type:At,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return x.apply(this,arguments)}}()}(t,e.route.params.orderid,e.route.params.gruop_id,e.route.params.ids,B,L,U,V,n,"2"==e.route.params.numberic?"":i,"2"==e.route.params.numberic?"":a,"2"==e.route.params.numberic?"":l,"2"==e.route.params.numberic?"":s,"2"==e.route.params.numberic?"":u,"2"==e.route.params.numberic?"":c,"2"==e.route.params.numberic?"":f,"2"==e.route.params.numberic?"":h));"success"==g.status?(d(!0),x("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==g.status&&(d(!0),x(g.message)),ne(Sn(Sn({},te),{},{isLoading:!1})),ne(Sn(Sn({},te),{},{isLoading1:!1}))}catch(m){}}));return function(e,t,o,i,r,a,l,s,d){return n.apply(this,arguments)}}();function fe(){return e.navigation.goBack(),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",fe),function(){Ze.default.removeEventListener("hardwareBackPress",fe)}}),[]);var ge=(0,Ce.useMediaQuery)({maxWidth:500}),me=(0,i.default)(ge,1)[0];return S?(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:S,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:me?"100%":500,marginLeft:me?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:Cn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Cn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Cn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0628\u0631\u0631\u0633\u06cc \u0646\u0647\u0627\u06cc\u06cc"})})]}),(0,ue.jsxs)(Be.default,{style:{backgroundColor:w,marginBottom:65},children:[(0,ue.jsxs)(h.default,{style:Cn.view,children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:40,marginRight:"5%",marginTop:5,justifyContent:"center"},children:(0,ue.jsxs)(m.default,{style:Cn.texttitle,children:[e.route.params.name," ",e.route.params.family]})}),(0,ue.jsx)(h.default,{style:Cn.viewline,children:(0,ue.jsxs)(m.default,{style:Cn.textlineR,children:["\u062a\u0639\u062f\u0627\u062f \u062a\u06a9\u0647 : ",(0,ue.jsx)(m.default,{style:Cn.textline,children:e.route.params.totalmdf})]})}),(0,ue.jsx)(ve,{label:"\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634",styleview:{marginTop:"3%",height:70,marginBottom:10},stylelabel:{width:"20%",backgroundColor:"white"},value:U,onChangeText:function(e){return Q(e)},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"default"}),(0,ue.jsx)(ve,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648\u0631\u0642 \u062e\u062f\u0645\u0627\u062a\u06cc",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"5%",marginTop:5},stylelabel:{width:140,top:"web"==ye.default.OS?-9:-15,backgroundColor:"white"},keyboardType:"default",value:B,onChangeText:function(e){return T(e)}}),(0,ue.jsx)(ve,{label:" \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0648\u0631\u0642 \u06a9\u0627\u0631\u0628\u0631",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"2%",marginTop:5},stylelabel:{width:120,top:"web"==ye.default.OS?-9:-15,backgroundColor:"white"},keyboardType:"default",value:L,onChangeText:function(e){return E(e)}}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"4%"},children:" \u0646\u062d\u0648\u0647 \u0627\u0631\u0633\u0627\u0644 : "})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:85,flexDirection:"column"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return N("\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645")},name:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"==V?"ellipse-outline":"radio-button-on-outline",size:30,color:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f"==V?_:P,style:{position:"absolute",right:"web"===ye.default.OS?7:15}}),(0,ue.jsx)(m.default,{onPress:function(){return N("\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645")},style:{fontFamily:"Montserrat",fontSize:15,position:"absolute",right:"16%",top:"web"===ye.default.OS?5:1},children:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645 "}),(0,ue.jsx)(xe.default,{onPress:function(){return N("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f")},name:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645"==V?"ellipse-outline":"radio-button-on-outline",size:30,color:"\u0645\u06cc\u0627\u0645 \u0645\u06cc \u0628\u0631\u0645"==V?_:P,style:{position:"absolute",right:"web"===ye.default.OS?7:14,bottom:"23%"}}),(0,ue.jsx)(m.default,{onPress:function(){return N("\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f")},style:{fontFamily:"Montserrat",fontSize:15,position:"absolute",right:"16%",bottom:"web"===ye.default.OS?"30%":"28%"},children:"\u0628\u0631\u0627\u0645 \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f "})]})]}),(0,ue.jsx)(Se.default,{show:s,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==g?"":"\u0627\u062e\u0637\u0627\u0631",message:g,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==g?(d(!1),e.navigation.navigate("orderlist",{refresh:"true"})):d(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]}),"2"==e.route.params.numberic?(0,ue.jsx)(h.default,{style:Cn.viewfooter,children:(0,ue.jsx)(he,{label:"\u0627\u062f\u0627\u0645\u0647",style:{width:"100%",marginTop:10,position:"absolute",left:"5%"},textStyle:{bottom:10,color:v},touchableStyle:{backgroundColor:O,elevation:0},colorspin:v,sizespin:25,loading:te.isLoading1,onPress:function(){e.navigation.navigate("chat",{ids:e.route.params.ids,name:U||"\u0628\u062f\u0648\u0646 \u0646\u0627\u0645",services:B,customer:L,send:V})}})}):e.route.params.orderid?Y.map((function(e,t){return(0,ue.jsx)(h.default,{style:Cn.viewfooter,children:(0,ue.jsx)(he,{label:"\u0627\u0631\u0633\u0627\u0644 \u0628\u0647 \u062e\u062f\u0645\u0627\u062a\u06cc",style:{width:"95%",marginTop:10,position:"absolute",left:"7%"},textStyle:{bottom:10,color:v},touchableStyle:{backgroundColor:O,elevation:0},colorspin:v,sizespin:25,loading:te.isLoading1,onPress:function(){ce("send",e.wood_type,e.wood_thickness,e.panel_width,e.panel_height,e.color_strip,e.width_strip,e.height_strip,e.panel_description)}})},t)})):(0,ue.jsxs)(h.default,{style:Cn.viewfooter,children:[(0,ue.jsx)(he,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",coloricon:I,style:{width:"49%",marginTop:10,position:"absolute",left:"5%"},textStyle:{bottom:10},onPress:function(){return e.navigation.navigate("list",{ids:"",gro:e.route.params.ids})}}),(0,ue.jsx)(he,{label:"\u0627\u0631\u0633\u0627\u0644 \u0628\u0647 \u062e\u062f\u0645\u0627\u062a\u06cc",style:{width:(e.route.params.orderid,"49%"),marginTop:10,position:"absolute",left:(e.route.params.orderid,"52%")},textStyle:{bottom:10,color:v},touchableStyle:{backgroundColor:O,elevation:0},colorspin:v,sizespin:25,loading:te.isLoading1,onPress:function(){return ae("send")}})]})]})})};var zn=o(5829);function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Mn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},textheader:{backgroundColor:P,width:110,height:50,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"25%"},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"23%":"33%"},filter:{backgroundColor:P,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"0%",top:"web"==ye.default.OS?"15%":"35%"},textmodal:{fontFamily:"Montserrat",fontSize:16,color:I,position:"absolute",right:"1%",top:"5%"},viewfooter:{flexDirection:"row",width:"100%",height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"relative",bottom:0},menu1:{width:60,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:15,top:"35%"},textinput:{paddingLeft:"web"===ye.default.OS?"35%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:S,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,paddingLeft:10,fontFamily:"Montserrat",marginTop:15},view:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:w,marginTop:10,left:"5%",borderWidth:2,borderColor:T,borderRadius:10,marginBottom:10},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},footer:{padding:10,justifyContent:"center",alignItems:"center",flexDirection:"row"},loadMoreBtn:{padding:10,backgroundColor:P,borderRadius:4,flexDirection:"row",justifyContent:"center",alignItems:"center"},btnText:{color:v,fontSize:15,textAlign:"center",fontFamily:"MontserratBold"}});const Bn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(2),u=(0,i.default)(d,2),f=u[0],g=u[1],S=(0,c.useState)(),C=(0,i.default)(S,2),O=C[0],z=C[1],F=(0,c.useState)([]),R=(0,i.default)(F,2),D=R[0],L=R[1],E=(0,c.useState)(""),W=(0,i.default)(E,2),H=W[0],V=W[1],N=(0,c.useState)(""),q=(0,i.default)(N,2),G=q[0],U=q[1],Q=(0,c.useState)(1),J=(0,i.default)(Q,2),K=J[0],Y=J[1],Z=(0,c.useState)(!1),X=(0,i.default)(Z,2),ee=X[0],te=X[1],ne=(0,c.useState)({showModal:!1,isLoading:!1,isLoading1:!1,name:"",nameservice:"",ActService:""}),oe=(0,i.default)(ne,2),ae=oe[0],se=oe[1],ce=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();function fe(){return e.navigation.navigate("home"),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",fe),function(){Ze.default.removeEventListener("hardwareBackPress",fe)}}),[]);var ge=function(){var e=(0,r.default)((function*(){parseInt(f)<=parseInt(K)&&(1==f||g(f+1),me())}));return function(){return e.apply(this,arguments)}}(),me=function(){var e=(0,r.default)((function*(){try{se(Pn(Pn({},ae),{},{isLoading:!0}));var e=yield n(Qt(t,f,G,ae.ActService));L([].concat((0,an.default)(D),(0,an.default)(e.data.data.orders.data))),V(e.data.data.count),se(Pn(Pn({},ae),{},{isLoading:!1}))}catch(o){}}));return function(){return e.apply(this,arguments)}}(),be=function(){var e=(0,r.default)((function*(){try{se(Pn(Pn({},ae),{},{isLoading:!0}));var e=yield n(Qt(t,1,G,ae.ActService));L((0,an.default)(e.data.data.orders.data)),Y(e.data.data.orders.last_page),V(e.data.data.count),se(Pn(Pn({},ae),{},{isLoading:!1}))}catch(o){}}));return function(){return e.apply(this,arguments)}}(),je=(0,tt.useIsFocused)();(0,c.useEffect)((function(){be(),"true"==e.route.params.refresh&&g(2),t||ce()}),[je]);var we=function(){var e=(0,r.default)((function*(e){try{yield n((t=e,function(){var e=(0,r.default)((function*(e){e({type:qt,data:t})}));return function(t){return e.apply(this,arguments)}}()))}catch(o){console.log(o)}var t}));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=(0,r.default)((function*(e){try{var o=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r=new(A());return r.append("order_id",t),r.append("name",n),fetch("https://cutunix.com/api/v1/order/edit-name",{method:"POST",headers:i,body:r}).then((function(e){return e.json()})).then((function(e){return o({type:Ut,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,e,ae.name));"success"==o.status?(s(!0),z("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==o.status&&(s(!0),z(o.message)),console.log(o)}catch(i){}}));return function(t){return e.apply(this,arguments)}}(),Pe=(function(){var e=(0,r.default)((function*(e){try{var o=yield n((i=t,a=e,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n=new(A());return n.append("order_id",a),fetch("https://cutunix.com/api/v1/order/status-order",{method:"POST",headers:t,body:n}).then((function(e){return e.json()})).then((function(t){return e({type:Et,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==o.status?(s(!0),z("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"),g(2),be()):"error"==o.status&&(s(!0),z(o.message))}catch(l){}var i,a}))}(),function(e){pe.default.openURL("https://cutunix.com"+e)}),Me=function(e){pe.default.openURL("http://shemshetaraz.com/cutunix/"+e)},Be=(0,Ce.useMediaQuery)({maxWidth:500}),Fe=(0,i.default)(Be,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:Fe?"100%":500,marginLeft:Fe?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:Mn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.navigate("home")},style:Mn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.navigate("home")},style:Mn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0644\u06cc\u0633\u062a \u0633\u0641\u0627\u0631\u0634\u0627\u062a"})}),(0,ue.jsxs)(de.default,{onPress:function(){return te(!0)},style:Mn.filter,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0641\u06cc\u0644\u062a\u0631"}),(0,ue.jsx)(le.default,{name:"sort-ascending",size:25,color:v})]})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"lg",isOpen:ee,onPress:function(){return te(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:200},children:[(0,ue.jsxs)(h.default,{style:{width:"100%",height:40},children:[(0,ue.jsx)(m.default,{style:Mn.textmodal,children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0641\u06cc\u0644\u062a\u0631"}),(0,ue.jsx)(xe.default,{onPress:function(){return te(!1)},name:"close",size:20,color:I})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:100,marginBottom:10},children:[(0,ue.jsxs)(h.default,{style:{width:"web"===ye.default.OS?"95%":"92%",height:40,flexDirection:"row",alignItems:"center",marginBottom:"4%"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return se(Pn(Pn({},ae),{},{ActService:"send"}))},name:"send"!==ae.ActService?"square-outline":"checkbox",size:28,color:"send"!==ae.ActService?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,position:"absolute",right:0},children:" \u0633\u0641\u0627\u0631\u0634\u0627\u062a \u062a\u06a9\u0645\u06cc\u0644 \u0634\u062f\u0647 :"})]}),(0,ue.jsxs)(h.default,{style:{width:"web"===ye.default.OS?"95%":"92%",height:40,flexDirection:"row",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{onPress:function(){return se(Pn(Pn({},ae),{},{ActService:"pending"}))},name:"pending"!==ae.ActService?"square-outline":"checkbox",size:28,color:"pending"!==ae.ActService?_:b}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,position:"absolute",right:0},children:" \u0633\u0641\u0627\u0631\u0634\u0627\u062a \u062a\u06a9\u0645\u06cc\u0644 \u0646\u0634\u062f\u0647 :"})]})]}),(0,ue.jsx)(he,{touchableStyle:{width:"80%",height:50,backgroundColor:P},textStyle:{bottom:10,fontSize:16},style:{marginTop:10,bottom:10,left:25},onPress:function(){te(!1),g(2),be()},colorspin:v,sizespin:25,label:"\u062b\u0628\u062a"})]})})})}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",height:70,marginBottom:10},children:[(0,ue.jsx)(Te.default,{placeholder:"\u062c\u0633\u062a \u0648\u062c\u0648 \u062f\u0631 \u0633\u0641\u0627\u0631\u0634\u0627\u062a ",onKeyPress:function(){g(2),be()},placeholderTextColor:_,style:Mn.textinput,onChangeText:function(e){return U(e)}}),(0,ue.jsx)(le.default,{name:"magnify",size:30,color:"#767F9D",style:{position:"absolute",right:"8%",top:30,zIndex:2}})]}),ae.isLoading&&"web"==ye.default.OS?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:100,height:40,backgroundColor:j,borderRadius:10,alignItems:"center",justifyContent:"center",top:"80%",left:"38%",position:"absolute",zIndex:2},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,marginRight:10},children:"\u0628\u06cc\u0634\u062a\u0631"}),(0,ue.jsx)(p.default,{size:30,color:v})]}):(0,ue.jsx)(h.default,{}),D.length!==[]?(0,ue.jsx)(ln.default,{refreshControl:(0,ue.jsx)(zn.default,{refreshing:ae.isLoading,onRefresh:function(){g(2),be()},progressViewOffset:150,colors:[v],progressBackgroundColor:b,size:"large"}),style:{marginBottom:"web"==ye.default.OS?30:0},data:D,onEndReachedThreshold:.5,keyExtractor:function(e,t){return t.toString()},onEndReached:function(){return ge()},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ue.jsxs)(h.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:w,marginTop:10,left:"5%",borderWidth:2,borderColor:T,borderRadius:10,marginBottom:D.length>1?10:290},children:[(0,ue.jsxs)(m.default,{style:{textDecorationLine:"underline",fontFamily:"MontserratBold",fontSize:20,color:B,left:"3%",position:"absolute"},children:[" ",H-o," "]}),(0,ue.jsx)(h.default,{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"flex-end",width:"100%",alignSelf:"auto",marginTop:5,marginBottom:15,right:15},children:n.logs.length?n.logs.map((function(e,t){return(0,ue.jsxs)(h.default,{style:{alignItems:"center",flexDirection:"column",width:"30%",height:80,marginBottom:10,marginTop:10},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:_},children:e.date_show}),(0,ue.jsx)(h.default,{style:{width:"100%",height:2,backgroundColor:T,right:3,top:15,zIndex:1}}),(0,ue.jsx)(le.default,{name:"check-circle",size:25,color:M,style:{zIndex:2}}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:_,top:5},children:e.text})]},t)})):(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:P,marginTop:10},children:"\u062f\u0631\u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc"})}),(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto",flexDirection:"row",justifyContent:"flex-end",marginBottom:10},children:[(0,ue.jsx)(ve,{label:"\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634",styleview:{width:"80%"},stylelabel:{width:"25%",backgroundColor:"white"},value:ae.name,onChangeText:function(e){return se(Pn(Pn({},ae),{},{name:e}))},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"default",placeholder:n.name}),(0,ue.jsx)(he,{label:"\u0648\u06cc\u0631\u0627\u06cc\u0634",style:{width:"20%",height:60},textStyle:{bottom:10,fontSize:13},touchableStyle:{backgroundColor:P},onPress:function(){ke(n.id),se(Pn(Pn({},ae),{},{name:""}))}})]}),(0,ue.jsxs)(h.default,{style:Mn.viewline,children:[(0,ue.jsxs)(m.default,{style:Mn.textlineR,children:["\u0646\u0627\u0645 \u0633\u0641\u0627\u0631\u0634 : ",(0,ue.jsx)(m.default,{style:Mn.textline,children:n.name})]}),null!==n.message&&"no"==n.message.seen&&"user"!=n.message.status?(0,ue.jsxs)(de.default,{style:Mn.menu1,onPress:function(){return e.navigation.navigate("chat",{idservice:n.id})},children:[(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:M},children:"\u067e\u06cc\u0627\u0645 \u062c\u062f\u06cc\u062f "})]}):(0,ue.jsx)(h.default,{})]}),n.services?(0,ue.jsx)(h.default,{style:Mn.viewline,children:(0,ue.jsxs)(m.default,{style:Mn.textlineR,children:["\u0627\u062c\u0631\u0627 \u062a\u0648\u0633\u0637 : ",(0,ue.jsxs)(m.default,{style:Mn.textline,children:[n.services.first_name," ",n.services.last_name]})]})}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(h.default,{style:Mn.viewline,children:(0,ue.jsxs)(m.default,{style:Mn.textlineR,children:["\u06a9\u062f \u0633\u0641\u0627\u0631\u0634 : ",(0,ue.jsx)(m.default,{style:Mn.textline,children:n.number})]})}),(0,ue.jsx)(h.default,{style:Mn.viewline,children:(0,ue.jsxs)(m.default,{style:Mn.textlineR,children:["\u0646\u062d\u0648\u0647 \u0633\u0641\u0627\u0631\u0634 : ",(0,ue.jsx)(m.default,{style:Mn.textline,children:"chat"==n.type?"\u062b\u0628\u062a \u067e\u06cc\u0634\u0631\u0641\u062a\u0647 (\u0686\u062a)":"\u062b\u0628\u062a \u0633\u0631\u06cc\u0639 (\u0628\u0631\u0634 \u0648\u0646\u0648\u0627\u0631)"})]})}),"pending"!==n.status?(0,ue.jsx)(lt.default,{style:{width:"100%",flexDirection:"row",justifyContent:"center"},children:"chat"!==n.type?(0,ue.jsxs)(h.default,{style:{width:"100%",flexDirection:"row",justifyContent:"center",marginTop:10,marginBottom:10},children:[(0,ue.jsx)(he,{label:"\u06af\u0641\u062a\u06af\u0648 \u0628\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc",touchableStyle:{backgroundColor:M},style:{width:"25%",marginTop:10,marginLeft:10},textStyle:{bottom:10,fontSize:10},onPress:function(){return e.navigation.navigate("chat",{idservice:n.id,showalert:"no"})}}),n.groups[0]?(0,ue.jsx)(he,{label:"\u0646\u0645\u0627\u06cc\u0634 \u0641\u0631\u0645 \u0633\u0641\u0627\u0631\u0634",style:{width:"25%",marginTop:10},textStyle:{bottom:10,fontSize:9},onPress:function(){Pe(n.groups[0].order_form)}}):(0,ue.jsx)(h.default,{}),n.groups[0]?null==n.groups[0].factor?(0,ue.jsx)(h.default,{}):(0,ue.jsx)(he,{label:"\u062f\u0627\u0646\u0644\u0648\u062f \u0641\u0627\u06a9\u062a\u0648\u0631",style:{width:"25%",marginTop:10},textStyle:{bottom:10,fontSize:10},touchableStyle:{backgroundColor:j},onPress:function(){return Pe(n.groups[0].factor)}}):(0,ue.jsx)(h.default,{}),n.groups[0]?"done"==n.groups[0].cut_master?(0,ue.jsx)(he,{label:"\u0646\u0645\u0627\u06cc\u0634 \u06a9\u0627\u062a \u0645\u0633\u062a\u0631",style:{width:"25%",marginTop:10},touchableStyle:{backgroundColor:B},textStyle:{bottom:10,fontSize:10},onPress:function(){return Me(n.groups[0].cut_master_pdf)}}):"pending"==n.groups[0].cut_master?(0,ue.jsx)(he,{label:"\u062f\u0631 \u062d\u0627\u0644 \u067e\u0631\u062f\u0627\u0632\u0634",style:{width:"25%",marginTop:10},touchableStyle:{backgroundColor:_},textStyle:{bottom:10,fontSize:10}}):(0,ue.jsx)(he,{label:"\u062e\u0637\u0627\u06cc \u0633\u0627\u06cc\u0632",style:{width:"25%",marginTop:10},touchableStyle:{backgroundColor:"red"},textStyle:{bottom:10,fontSize:10}}):(0,ue.jsx)(h.default,{})]}):(0,ue.jsx)(h.default,{style:{width:"100%",flexDirection:"row",justifyContent:"center",marginTop:10,marginBottom:10},children:(0,ue.jsx)(he,{label:"\u06af\u0641\u062a\u06af\u0648 \u0628\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc",touchableStyle:{backgroundColor:M},style:{width:(ye.default.OS,"40%"),marginTop:10},textStyle:{bottom:10},onPress:function(){return e.navigation.navigate("chat",{idservice:n.id,showalert:"no"})}})})}):(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",justifyContent:"center",alignItems:"center",marginTop:10,marginBottom:10},children:[(0,ue.jsx)(he,{label:"\u062a\u06a9\u0645\u06cc\u0644 \u06a9\u0631\u062f\u0646 ",touchableStyle:{backgroundColor:j},style:{width:"35%",marginTop:10},textStyle:{bottom:10,fontSize:12},onPress:function(){we(n.groups[0].id),e.navigation.navigate("list",{ids:n.id,wood_type:n.groups[0].wood_type,wood_thickness:n.groups[0].wood_thickness,width:n.groups[0].panel_width,height:n.groups[0].panel_height,color_strip:n.groups[0].color_strip,width_strip:n.groups[0].width_strip,height_strip:n.groups[0].height_strip,panel_description:n.groups[0].panel_description,gro:n.services_id})}}),n.groups[0]?"done"==n.groups[0].cut_master?(0,ue.jsx)(he,{label:"\u0646\u0645\u0627\u06cc\u0634 \u06a9\u0627\u062a \u0645\u0633\u062a\u0631",style:{width:"35%",marginTop:10},touchableStyle:{backgroundColor:B},textStyle:{bottom:10,fontSize:12},onPress:function(){return Me(n.groups[0].cut_master_pdf)}}):"pending"==n.groups[0].cut_master?(0,ue.jsx)(he,{label:"\u062f\u0631 \u062d\u0627\u0644 \u067e\u0631\u062f\u0627\u0632\u0634",style:{width:"35%",marginTop:10},touchableStyle:{backgroundColor:_},textStyle:{bottom:10,fontSize:12}}):(0,ue.jsx)(he,{label:"\u062e\u0637\u0627\u06cc \u0633\u0627\u06cc\u0632",style:{width:"35%",marginTop:10},touchableStyle:{backgroundColor:"red"},textStyle:{bottom:10,fontSize:12}}):(0,ue.jsx)(h.default,{})]})]},o)}}):(0,ue.jsxs)(h.default,{style:{width:"80%",height:130,marginBottom:"70%",backgroundColor:_,left:"10%",padding:5,borderRadius:10,marginTop:20},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,textAlign:"center",marginTop:"5%"},children:"\u0634\u0645\u0627 \u062a\u0627\u06a9\u0646\u0648\u0646 \u0633\u0641\u0627\u0631\u0634\u06cc \u062b\u0628\u062a \u0646\u06a9\u0631\u062f\u06cc\u062f"}),(0,ue.jsx)(he,{label:"\u0633\u0641\u0627\u0631\u0634 \u062c\u062f\u06cc\u062f",style:{marginLeft:"5%",marginTop:"5%",marginBottom:"10%",height:55},textStyle:{bottom:10},onPress:function(){e.navigation.navigate("order")}})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:Fe?"100%":500,height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"relative",bottom:0},children:[(0,ue.jsxs)(h.default,{style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center"},children:[(0,ue.jsx)(h.default,{style:{width:50,height:50,borderRadius:25,backgroundColor:b,borderWidth:5,borderColor:v,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(xe.default,{name:"reader-outline",size:20,color:v})}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:x,position:"absolute",bottom:15},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"}),(0,ue.jsx)(h.default,{style:{width:30,height:5,borderRadius:5,backgroundColor:b,position:"absolute",bottom:5}})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("profile")},style:{width:"15%",height:60,alignItems:"center",left:15,top:5},children:[(0,ue.jsx)(le.default,{name:"badge-account-outline",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("home")},style:{width:"30%",height:60,left:"35%",position:"absolute",alignItems:"center",flexDirection:"column"},children:[(0,ue.jsx)(xe.default,{name:"home-outline",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"})]})]}),(0,ue.jsx)(Se.default,{show:l,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==O?"":"\u0627\u062e\u0637\u0627\u0631",message:O,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){s(!1),g(2),be()},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var Tn=o(2074);function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var In=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewfooter:{flexDirection:"row",width:"100%",height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"relative",bottom:0},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"17%":"35%"},textheader:{backgroundColor:P,width:70,height:50,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"10%":"22%"},filter:{backgroundColor:P,width:110,height:50,alignItems:"center",justifyContent:"center",flexDirection:"row",position:"absolute",left:"0%",top:"web"==ye.default.OS?"12%":"22%"}});const Rn=function(e){var t=(0,c.useState)(""),n=(0,i.default)(t,2),a=(n[0],n[1]),l=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),s=(0,re.useDispatch)(),d=(0,c.useState)(!1),u=(0,i.default)(d,2),f=u[0],g=u[1],j=(0,c.useState)(!1),w=(0,i.default)(j,2),S=w[0],C=w[1],O=(0,c.useState)(),z=(0,i.default)(O,2),k=z[0],T=z[1],F=(0,c.useState)([]),R=(0,i.default)(F,2),D=R[0],L=R[1],E=(0,c.useState)(!1),W=(0,i.default)(E,2),H=W[0],V=W[1],q=(0,c.useState)(""),G=(0,i.default)(q,2),U=G[0],Q=G[1],J=(0,c.useState)({first_name:"",last_name:"",job:"",mobile:"",state_id:"",city_id:"",edit:!1}),K=(0,i.default)(J,2),Y=K[0],Z=K[1],X=(0,c.useState)(!1),ee=(0,i.default)(X,2),ae=ee[0],se=ee[1],ce=function(){var e=(0,r.default)((function*(){try{se(!0);var e=yield s((t=l,n=Y.first_name,o=Y.last_name,i=Y.job,a=Y.state_id,d=Y.city_id,function(){var e=(0,r.default)((function*(e){var r={Accept:"application/json",Authorization:"Bearer "+t},l=new(A());return l.append("first_name",n),l.append("last_name",o),l.append("job",i),l.append("state_id",a),l.append("city_id",d),fetch("https://cutunix.com/api/v1/user/edit",{method:"POST",headers:r,body:l}).then((function(e){return e.json()})).then((function(t){return e({type:N,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"error"==e.status&&(V(!0),T(e.message)),"success"==e.status&&(V(!0),T("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")),se(!1)}catch(u){console.log(u)}var t,n,o,i,a,d}));return function(){return e.apply(this,arguments)}}(),fe=function(){var e=(0,r.default)((function*(){try{g(!0);var e=yield s(oe(l));Z(e.data.data.user),Q(e.data.data.user.city),L(e.data.data.links),e.data.data.user.city_id&&Ie(e.data.data.user.state_id),g(!1)}catch(t){}}));return function(){return e.apply(this,arguments)}}(),ge=(0,tt.useIsFocused)();(0,c.useEffect)((function(){fe(),ze(),l||Le()}),[ge]);for(var me=(0,c.useState)(""),be=(0,i.default)(me,2),je=be[0],we=be[1],ze=function(){var e=(0,r.default)((function*(){try{var e=yield s(te(l));e.data.data.states.length>0&&(we(e.data.data.states),Y.state_id&&Ie(Y.state_id))}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}(),ke=[],Pe=0;Pe<je.length;Pe++)ke.push((0,ue.jsx)(yn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:je[Pe].state,value:je[Pe].id},Pe));for(var Me=(0,c.useState)(""),Te=(0,i.default)(Me,2),Fe=Te[0],_e=Te[1],Ie=function(){var e=(0,r.default)((function*(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{a(e),1==t&&Z(_n(_n({},Y),{},{state_id:e}));var n=yield s(ne(l,e));_e(n.data.data.cities)}catch(o){}}));return function(t){return e.apply(this,arguments)}}(),Re=[],De=0;De<Fe.length;De++)Re.push((0,ue.jsx)(yn.default.Item,{_text:{style:{fontFamily:"Montserrat"}},label:Fe[De].city,value:Fe[De].id},De));var Le=function(){var t=(0,r.default)((function*(){try{yield s($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Ae=function(){var e=(0,r.default)((function*(){try{var e=yield Tn.default.share({title:" \u06a9\u0627\u062a\u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0631\u0627 \u062f\u0627\u0646\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f",message:"https://cutunix.com"});e.action===Tn.default.sharedAction?e.activityType:(e.action,Tn.default.dismissedAction)}catch(t){Ye.default.alert(t.message)}}));return function(){return e.apply(this,arguments)}}(),Ee=o(4147),We=(0,Ce.useMediaQuery)({maxWidth:500}),He=(0,i.default)(We,1)[0];return f?(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:f,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]})}):(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:He?"100%":500,marginLeft:He?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,alignItems:"center",justifyContent:"center",backgroundColor:P},children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:In.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:In.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"})}),(0,ue.jsxs)(de.default,{onPress:function(){return C(!0)},style:In.filter,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062e\u0631\u0648\u062c"}),(0,ue.jsx)(xe.default,{name:"log-out-outline",size:30,color:v})]})]}),(0,ue.jsxs)(Be.default,{style:{marginBottom:10},children:[!0!==Y.edit?(0,ue.jsxs)(de.default,{onPress:function(){Z(_n(_n({},Y),{},{edit:!0}))},style:{flexDirection:"row",width:"80%",height:90,borderWidth:3,borderStyle:"dashed",marginBottom:"5%",borderColor:P,marginTop:"10%",borderRadius:10,marginLeft:"10%"},children:[(0,ue.jsxs)(h.default,{style:{width:"30%",height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,ue.jsx)(xe.default,{name:"create-outline",size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:P},children:"\u0648\u06cc\u0631\u0627\u06cc\u0634 \u0627\u0637\u0644\u0627\u0639\u0627\u062a"})]}),(0,ue.jsxs)(h.default,{style:{width:"70%",height:"100%",flexDirection:"column",justifyContent:"center",alignItems:"flex-end"},children:[(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:19,color:P,marginRight:10},children:[Y.first_name," ",Y.last_name]}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:P,marginRight:10},children:U.city})]})]}):(0,ue.jsxs)(lt.default,{children:[(0,ue.jsx)(ve,{label:"\u0646\u0627\u0645 ",styleview:{marginTop:"13%"},stylelabel:{width:"8%"},value:Y.first_name,onChangeText:function(e){return Z(_n(_n({},Y),{},{first_name:e}))},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"default"}),(0,ue.jsx)(ve,{label:"\u0646\u0627\u0645 \u062e\u0627\u0646\u0648\u0627\u062f\u06af\u06cc",styleview:{marginTop:"9%"},stylelabel:{width:"20%"},value:Y.last_name,onChangeText:function(e){return Z(_n(_n({},Y),{},{last_name:e}))},styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(ve,{label:"\u062a\u062e\u0635\u0635",styleview:{marginTop:"9%"},stylelabel:{width:"13%"},value:Y.job,onChangeText:function(e){return Z(_n(_n({},Y),{},{job:e}))},styleinput:"web"===ye.default.OS&&{outlineColor:P}}),(0,ue.jsx)(ve,{label:"\u0634\u0645\u0627\u0631\u0647 \u0645\u0648\u0628\u0627\u06cc\u0644",styleview:{marginTop:"9%"},stylelabel:{width:"20%"},editable:!1,value:Y.mobile}),(0,ue.jsxs)(h.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%",marginTop:10},children:[(0,ue.jsx)(h.default,{style:{width:"11%",height:20,backgroundColor:v,alignItems:"center",zIndex:2,left:"web"===ye.default.OS?"30%":"36%",top:"web"===ye.default.OS?"7%":"18%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0627\u0633\u062a\u0627\u0646"})}),"web"===ye.default.OS?"":(0,ue.jsx)(xe.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ue.jsx)(yn.default,{style:{backgroundColor:v},selectedValue:parseInt(Y.state_id),w:"web"===ye.default.OS?355:"90%",h:60,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===ye.default.OS?"60%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0627\u0633\u062a\u0627\u0646 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){Z(_n(_n({},Y),{},{state_id:e})),Ie(e)},_selectedItem:{bg:P,startIcon:(0,ue.jsx)(pn.CheckIcon,{size:5,color:I})},children:ke})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"column",width:"100%",alignItems:"center",marginRight:"5%"},children:[(0,ue.jsx)(h.default,{style:{width:"9%",height:20,backgroundColor:v,alignItems:"center",zIndex:2,left:"web"===ye.default.OS?"30%":"36%",top:"web"===ye.default.OS?"7%":"18%"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:_},children:"\u0634\u0647\u0631"})}),"web"===ye.default.OS?"":(0,ue.jsx)(xe.default,{name:"chevron-down-outline",size:18,color:_,style:{zIndex:2,top:"34%",right:"40%"}}),(0,ue.jsx)(yn.default,{style:{backgroundColor:v},selectedValue:parseInt(Y.city_id),w:"web"===ye.default.OS?355:"90%",h:60,dropdownIcon:!0,paddingRight:3,paddingLeft:"web"===ye.default.OS?"60%":0,borderColor:_,borderWidth:1,bottom:1,fontFamily:"Montserrat",fontSize:12,flexDirection:"row-reverse",accessibilityLabel:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",placeholder:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",onValueChange:function(e){return Z(_n(_n({},Y),{},{city_id:e}))},_selectedItem:{bg:P,startIcon:(0,ue.jsx)(pn.CheckIcon,{size:5,color:I})},children:Re})]}),(0,ue.jsx)(he,{label:"\u062b\u0628\u062a \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a ",style:{marginLeft:"5%",marginTop:"10%",marginBottom:"5%",height:55},textStyle:{bottom:10},loading:ae,colorspin:v,sizespin:25,onPress:function(){ce()}})]}),(0,ue.jsxs)(de.default,{onPress:Ae,style:{flexDirection:"row",width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:P},children:"\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"}),(0,ue.jsx)(h.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:P,justifyContent:"center",alignItems:"center"},children:(0,ue.jsx)(xe.default,{name:"share-social",size:25,color:v})})]}),(0,ue.jsx)(h.default,{style:{width:"50%",height:1,backgroundColor:P,left:"20%"}}),D.map((function(t,n){return(0,ue.jsxs)(lt.default,{children:[(0,ue.jsxs)(de.default,{onPress:function(){var n;"web"==ye.default.OS?(n=t.link,pe.default.openURL(n)):e.navigation.navigate("web",{addressweb:t.link})},style:{flexDirection:"row",width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:P},children:t.name}),(0,ue.jsx)(h.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:P,justifyContent:"center",alignItems:"center"},children:(0,ue.jsx)(xe.default,{name:"\u0634\u0631\u0627\u06cc\u0637 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0648 \u0642\u0648\u0627\u0646\u06cc\u0646"==t.name?"newspaper":"\u062f\u0631\u0628\u0627\u0631\u0647 \u06a9\u0627\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633"==t.name?"information":"\u0622\u0645\u0648\u0632\u0634 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"==t.name?"book":"\u0627\u0634\u062a\u0631\u0627\u06a9 \u06af\u0630\u0627\u0631\u06cc \u0627\u067e"==t.name?"share-social":"\u0646\u0633\u062e\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646"==t.name?"layers":"add",size:25,color:v})})]}),(0,ue.jsx)(h.default,{style:{width:"50%",height:1,backgroundColor:P,left:"20%"}})]},n)})),(0,ue.jsxs)(h.default,{style:{width:"80%",height:30,alignItems:"center",justifyContent:"flex-end",marginBottom:"2%",flexDirection:"row"},children:[(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:P},children:["\u0646\u0633\u062e\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 : ",Ee.version]}),(0,ue.jsx)(h.default,{style:{marginLeft:20,width:30,height:30,borderTopStartRadius:5,borderBottomStartRadius:5,backgroundColor:P,justifyContent:"center",alignItems:"center"},children:(0,ue.jsx)(xe.default,{name:"layers",size:25,color:v})})]}),(0,ue.jsx)(h.default,{style:{width:"50%",height:1,backgroundColor:P,left:"20%"}}),(0,ue.jsx)(Se.default,{show:H,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==k?"":"\u0627\u062e\u0637\u0627\u0631",message:k,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==k?(V(!1),e.navigation.navigate("home")):V(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"red"},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}}),(0,ue.jsx)(Se.default,{show:S,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u06cc\u062f\u061f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0627\u0646\u0635\u0631\u0627\u0641",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,cancelButtonColor:P,onCancelPressed:function(){C(!1)},onConfirmPressed:function(){Le(),C(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:B},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:He?"100%":500,height:60,backgroundColor:P,position:"web"===ye.default.OS?"fixed":"relative",bottom:0},children:[(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("orderlist",{refresh:"true"})},style:{width:"15%",height:60,position:"absolute",right:"5%",alignItems:"center",padding:5},children:[(0,ue.jsx)(xe.default,{name:"reader-outline",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u0633\u0641\u0627\u0631\u0634\u0627\u062a"})]}),(0,ue.jsxs)(h.default,{style:{width:"15%",height:60,alignItems:"center",left:15,top:0},children:[(0,ue.jsx)(h.default,{style:{width:50,height:50,borderRadius:25,backgroundColor:b,borderWidth:5,borderColor:v,bottom:28,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(le.default,{name:"badge-account-outline",size:25,color:v})}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:x,position:"absolute",bottom:15},children:"\u067e\u0631\u0648\u0641\u0627\u06cc\u0644"}),(0,ue.jsx)(h.default,{style:{width:30,height:5,borderRadius:5,backgroundColor:b,position:"absolute",bottom:5}})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("home")},style:{width:"30%",height:60,left:"35%",alignItems:"center",flexDirection:"column",position:"absolute"},children:[(0,ue.jsx)(xe.default,{name:"home-outline",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u0635\u0641\u062d\u0647 \u0627\u0635\u0644\u06cc"})]})]})]})})};var Dn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,alignItems:"center"},viewtitle:{width:"100%",height:80,alignItems:"center",justifyContent:"center",backgroundColor:v},touch:{flexDirection:"row",width:"90%",height:50,backgroundColor:S,marginTop:8,borderRadius:10},viewHeader:{flexDirection:"row",width:"100%",height:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:P,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"}});const Ln=function(e){var t=(0,c.useState)(!1),n=(0,i.default)(t,2),o=n[0],a=n[1],l=(0,c.useState)([]),s=(0,i.default)(l,2),d=s[0],u=s[1],f=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),g=(0,re.useDispatch)(),x=function(){var t=(0,r.default)((function*(){try{a(!0);var t=yield g(ne(f,e.route.params.ids));u(t.data.data.cities),a(!1)}catch(n){console.log(n)}}));return function(){return t.apply(this,arguments)}}();(0,c.useEffect)((function(){x()}),[]);var b=function(){var t=(0,r.default)((function*(t){try{yield function(e,t,n){var o={Accept:"application/json",Authorization:"Bearer "+e},i=new(A());i.append("state_id",t),i.append("city_id",n),fetch("https://cutunix.com/api/v1/user/state-city",{method:"POST",headers:o,body:i}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(f,e.route.params.ids,t)}catch(n){console.log(n)}}));return function(e){return t.apply(this,arguments)}}();return(0,ue.jsxs)(Oe.NativeBaseProvider,{children:[(0,ue.jsxs)(h.default,{style:Dn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{style:Dn.menu,children:(0,ue.jsx)(xe.default,{onPress:function(){return e.navigation.goBack()},name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(h.default,{style:Dn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0627\u0646\u062a\u062e\u0627\u0628 \u0634\u0647\u0631"})})]}),(0,ue.jsx)(h.default,{style:Dn.viewtitle,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:20,position:"absolute"},children:"\u0634\u0647\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"})}),(0,ue.jsx)(Be.default,{style:{backgroundColor:v},children:(0,ue.jsx)(h.default,{style:Dn.viewContainer,children:o?(0,ue.jsxs)(h.default,{style:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:v},children:[(0,ue.jsx)(p.default,{animating:o,size:30,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:25,color:P,marginTop:30},children:"\u0644\u0637\u0641\u0627 \u0634\u06a9\u06cc\u0628\u0627 \u0628\u0627\u0634\u06cc\u062f..."})]}):d.map((function(t,n){return(0,ue.jsxs)(de.default,{onPress:function(){b(t.id),e.navigation.navigate("home")},style:Dn.touch,children:[(0,ue.jsx)(xe.default,{name:"arrow-back-outline",size:25,color:P,style:{position:"absolute",left:"5%",top:"web"==ye.default.OS?"28%":"20%"}}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:I,position:"absolute",right:"5%",top:"web"==ye.default.OS?"28%":"20%"},children:t.city})]},n)}))})})]})};var An=o(1988),En=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:S},viewHeader:{flexDirection:"row",width:"100%",height:80,backgroundColor:P},viewmodal:{flexDirection:"row",width:"100%",height:60,marginTop:"10%",backgroundColor:S},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:P,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"}});const Wn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(""),u=(0,i.default)(d,2),f=u[0],g=u[1],p=(0,c.useState)(""),x=(0,i.default)(p,2),b=x[0],S=x[1],C=(0,c.useState)(""),O=(0,i.default)(C,2),z=O[0],k=O[1],B=(0,c.useState)(!1),F=(0,i.default)(B,2),_=F[0],R=F[1],D=function(){var e=(0,r.default)((function*(){try{R(!0);var e=yield n((o=t,i=f,a=b,l=z,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n=new(A());return n.append("core",i),n.append("width",a),n.append("dimension",l),fetch("https://cutunix.com/api/v1/user/add-white",{method:"POST",headers:t,body:n}).then((function(e){return e.json()})).then((function(t){return e({type:mt,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==e.status&&s(!0),R(!1)}catch(d){L()}var o,i,a,l}));return function(){return e.apply(this,arguments)}}(),L=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:En.viewContainer,children:[(0,ue.jsxs)(h.default,{style:En.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:En.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:En.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0648\u0631\u0642 \u0633\u0641\u06cc\u062f"})})]}),(0,ue.jsxs)(h.default,{style:{left:"5%",width:"90%",height:400,backgroundColor:w,marginTop:"5%",borderWidth:2,borderColor:T,borderRadius:10},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:20,marginBottom:20},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:I,marginRight:"3%"},children:"\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc : "})}),(0,ue.jsxs)(An.Radio.Group,{value:f,onChange:function(e){return g(e)},style:{flexDirection:"row",justifyContent:"center"},children:[(0,ue.jsx)(An.Radio,{value:"\u0641\u0648\u0645\u06cc\u0632\u0647",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:40},children:"\u0641\u0648\u0645\u06cc\u0632\u0647"})}),(0,ue.jsx)(An.Radio,{value:"\u0627\u0645 \u062f\u06cc \u0627\u0641",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:40},children:"\u0627\u0645 \u062f\u06cc \u0627\u0641"})}),(0,ue.jsx)(An.Radio,{value:"\u0646\u0626\u0648\u067e\u0627\u0646",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15},children:"\u0646\u0626\u0648\u067e\u0627\u0646"})})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:30,marginBottom:20},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:I,marginRight:"3%"},children:" \u0636\u062e\u0627\u0645\u062a : "})}),(0,ue.jsxs)(An.Radio.Group,{value:b,onChange:function(e){return S(e)},style:{flexDirection:"row",justifyContent:"center"},children:[(0,ue.jsx)(An.Radio,{value:"3",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:40},children:"3 \u0645\u06cc\u0644"})}),(0,ue.jsx)(An.Radio,{value:"8",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:40},children:"8 \u0645\u06cc\u0644"})}),(0,ue.jsx)(An.Radio,{value:"16",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15},children:"16 \u0645\u06cc\u0644"})})]}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:30,marginBottom:20},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:18,color:I,marginRight:"3%"},children:" \u0627\u0628\u0639\u0627\u062f : "})}),(0,ue.jsxs)(An.Radio.Group,{value:z,onChange:function(e){return k(e)},style:{flexDirection:"row",justifyContent:"center"},children:[(0,ue.jsx)(An.Radio,{value:"183*366",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:20},children:"183 x 366"})}),(0,ue.jsx)(An.Radio,{value:"210*280",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,marginRight:20},children:"210 x 280"})}),(0,ue.jsx)(An.Radio,{value:"210*366",size:"md",children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15},children:"210 x 366"})})]})]}),(0,ue.jsx)(h.default,{style:En.viewmodal,children:(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:j},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"5%",marginTop:20,bottom:10},onPress:function(){D()},colorspin:v,sizespin:25,loading:_,label:"\u0627\u0641\u0632\u0648\u062f\u0646 \u0628\u0647 \u0644\u06cc\u0633\u062a"})}),(0,ue.jsx)(Se.default,{show:l,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u0627\u0641\u0632\u0648\u062f\u0647 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){s(!1),setTimeout((function(){e.navigation.navigate("ordercolor")}),1e3)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:M},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};function Hn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:80,backgroundColor:P},viewmodal:{flexDirection:"row",width:"100%",height:55,backgroundColor:v},viewfooter:{position:"absolute",bottom:0,flexDirection:"row",width:"100%",height:60,backgroundColor:v,justifyContent:"center"},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"35%"},textheader:{backgroundColor:P,width:100,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"22%"},viewlogo:{width:"100%",height:40,alignItems:"center",justifyContent:"center",marginTop:"10%"},texttitel:{fontFamily:"MontserratBold",fontSize:20,bottom:30,position:"absolute"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30},touch:{flexDirection:"column",alignItems:"center",width:"90%",height:180,backgroundColor:w,marginTop:10,marginBottom:10,left:"5%",borderRadius:10,borderWidth:1,borderColor:_},texttouch:{fontFamily:"Montserrat",fontSize:12,color:_}});const qn=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=(a[0],a[1]),s=(0,c.useState)(!1),d=(0,i.default)(s,2),u=d[0],f=d[1],p=(0,c.useState)(2),x=(0,i.default)(p,2),b=x[0],C=x[1],O=(0,c.useState)([]),z=(0,i.default)(O,2),k=z[0],B=z[1],T=(0,c.useState)([]),R=(0,i.default)(T,2),D=R[0],L=R[1],E=(0,c.useState)({showModal1:!1,isLoading:!1,isLoading1:!1}),W=(0,i.default)(E,2),H=W[0],V=W[1],N=function(){var e=(0,r.default)((function*(){try{l(!0),V(Vn(Vn({},H),{},{isLoading:!0}));var e=yield n(Bt(t));B(e.data.data.products.data),V(Vn(Vn({},H),{},{isLoading:!1})),l(!1)}catch(o){J()}}));return function(){return e.apply(this,arguments)}}(),q=function(){var e=(0,r.default)((function*(e){try{var o=yield n((i=t,a=e,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n=new(A());return n.append("product_id",a),fetch("https://cutunix.com/api/v1/user/delete-white",{method:"POST",headers:t,body:n}).then((function(e){return e.json()})).then((function(t){return e({type:yt,data:t}),t})).catch((function(e){return console.log("error",e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==o.status&&f(!0)}catch(l){console.log(l)}var i,a}));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=(0,r.default)((function*(){try{var e=yield n(Tt(t));L(e.data.data.saves.data)}catch(o){J()}}));return function(){return e.apply(this,arguments)}}(),U=function(){var e=(0,r.default)((function*(e){try{"success"==(yield function(e,t){var n={Accept:"application/json",Authorization:"Bearer "+e},o=new(A());return o.append("product_id",t),fetch("https://cutunix.com/api/v1/user/delete-products",{method:"POST",headers:n,body:o}).then((function(e){return e.json()})).then((function(e){return e})).catch((function(e){return console.log("error",e)}))}(t,e)).status&&f(!0)}catch(n){console.log(n)}}));return function(t){return e.apply(this,arguments)}}(),Q=(0,tt.useIsFocused)();(0,c.useEffect)((function(){N(),G()}),[Q]);var J=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}();return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:Nn.viewContainer,children:[(0,ue.jsxs)(h.default,{style:Nn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Nn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Nn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062b\u0628\u062a \u0646\u0648\u0639 \u0648\u0631\u0642"})}),(0,ue.jsx)(de.default,{onPress:function(){return V(Vn(Vn({},H),{},{showModal1:!0}))},style:{width:30,height:30,position:"absolute",top:35,left:15},children:(0,ue.jsx)(xe.default,{name:"alert-circle-outline",size:25,color:v})})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:H.showModal1,onClose:function(){return V(Vn(Vn({},H),{},{showModal1:!1}))},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",height:300},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){return V(Vn(Vn({},H),{},{showModal1:!1}))},name:"close",size:20,color:I})}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15},children:"\u0633\u0644\u0627\u0645 \u0639\u0644\u06cc\u06a9\u0645"})]})})})}),(0,ue.jsx)(h.default,{style:Nn.viewlogo,children:(0,ue.jsx)(m.default,{style:Nn.texttitel,children:"\u0627\u0628\u062a\u062f\u0627 \u0646\u0648\u0639 \u0648\u0631\u0642 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f"})}),(0,ue.jsxs)(h.default,{style:Nn.viewmodal,children:[(0,ue.jsx)(he,{touchableStyle:{width:"40%",height:50,backgroundColor:j},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"5%",bottom:15},onPress:function(){e.navigation.navigate("searching")},colorspin:v,sizespin:25,label:"\u0631\u0646\u06af\u06cc"}),(0,ue.jsx)(he,{touchableStyle:{width:"40%",height:50,backgroundColor:S},textStyle:{bottom:10,fontSize:16,color:I},style:{position:"absolute",left:"54%",bottom:15},onPress:function(){e.navigation.navigate("mdfwhite")},colorspin:v,sizespin:25,label:"\u0633\u0641\u06cc\u062f"})]}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"90%",height:50,marginBottom:10,backgroundColor:F,left:20,marginTop:10,borderRadius:10,borderWidth:1,borderColor:_,alignItems:"center",justifyContent:"center",paddingRight:"3%",paddingLeft:"3%"},children:[(0,ue.jsxs)(de.default,{onPress:function(){C(1)},style:{justifyContent:"center",position:"absolute",left:"20%"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:1==b?"MontserratBold":"Montserrat",fontSize:18,color:1==b?P:I},children:"\u0631\u0646\u06af\u06cc"}),(0,ue.jsx)(h.default,{style:{right:5,width:"120%",height:2,backgroundColor:1==b?P:F}})]}),(0,ue.jsxs)(de.default,{onPress:function(){C(2)},style:{justifyContent:"center",position:"absolute",right:"20%"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:2==b?"MontserratBold":"Montserrat",fontSize:18,color:2==b?P:I},children:"\u0633\u0641\u06cc\u062f"}),(0,ue.jsx)(h.default,{style:{right:5,width:"120%",height:2,backgroundColor:2==b?P:F}})]})]}),2==b?(0,ue.jsx)(Be.default,{children:(0,ue.jsx)(h.default,{style:{width:"100%",marginBottom:70},children:k.map((function(e,t){return(0,ue.jsxs)(h.default,{style:Nn.touch,children:[(0,ue.jsx)(de.default,{onPress:function(){return q(e.id)},style:{width:30,height:30,position:"absolute",left:15,top:10,zIndex:3},children:(0,ue.jsx)(xe.default,{name:"trash-outline",size:20,color:P})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0648\u0631\u0642 :",(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:" \u0648\u0631\u0642 \u0633\u0641\u06cc\u062f "})]})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0645\u063a\u0632\u06cc :",(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:[" ",e.core," "]})]})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:["\u0636\u062e\u0627\u0645\u062a :",(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:[" ",e.width," \u0645\u06cc\u0644 "]})]})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginBottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:I,marginRight:"3%"},children:["\u0627\u0628\u0639\u0627\u062f :",(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:15,color:_},children:[" ",e.dimension," "]})]})})]},t)}))})}):(0,ue.jsx)(h.default,{}),1==b?(0,ue.jsx)(Be.default,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",marginBottom:70},children:[D.map((function(e,t){return(0,ue.jsxs)(h.default,{style:Nn.touch,children:[(0,ue.jsx)(de.default,{onPress:function(){return U(e.id)},style:{width:30,height:30,position:"absolute",left:15,top:10,zIndex:3},children:(0,ue.jsx)(xe.default,{name:"trash-outline",size:20,color:P})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:30,marginTop:10,marginBottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,marginRight:"3%"},children:["\u0646\u0648\u0639 \u0648\u0631\u0642 :",(0,ue.jsxs)(m.default,{style:Nn.texttouch,children:[" ",e.product.title," "]})]})}),(0,ue.jsx)(h.default,{style:{width:"100%",height:50,bottom:10},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I,marginRight:"3%"},children:["\u062a\u0648\u0636\u06cc\u062d\u0627\u062a :",(0,ue.jsxs)(m.default,{style:Nn.texttouch,children:[" ",e.product.description," "]})]})}),(0,ue.jsx)(h.default,{style:{width:"99%",height:90,bottom:14},children:(0,ue.jsx)(g.default,{source:{uri:e.product.thumb?e.product.thumb:"https://dasterang.ir/image/product/1587197829lteqSKMkNGsgkoEfBh8FUiF8pXBJUKpRgmIv6dGOIaxkkvVGfm.jpeg"},alt:"image",style:{width:"100%",height:90,borderRadius:5}})})]},t)})),(0,ue.jsx)(Se.default,{show:u,showProgress:!1,title:"\u0645\u0648\u0641\u0642",message:"\u062a\u06a9\u0647 \u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062d\u0630\u0641 \u0634\u062f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){f(!1),N(),G()},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:M},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(h.default,{style:Nn.viewfooter,children:(0,ue.jsx)(he,{label:"\u062a\u06a9\u0645\u06cc\u0644 \u0633\u0641\u0627\u0631\u0634",coloricon:w,style:{width:"95%",marginTop:10,position:"absolute",left:"7%"},textStyle:{bottom:10},onPress:function(){return e.navigation.navigate("form",{image:""})}})})]})})};var Gn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader:{backgroundColor:P,width:110,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"33%"},textinput:{paddingLeft:"web"===ye.default.OS?"40%":0,flexDirection:"row",width:"90%",height:60,backgroundColor:S,position:"absolute",left:"5%",borderRadius:10,borderWidth:1,borderColor:_,padding:10,paddingRight:50,fontFamily:"Montserrat",marginTop:15},view:{flexDirection:"column",alignItems:"center",width:"90%",height:300,backgroundColor:w,marginTop:10,left:"5%",borderWidth:2,borderColor:T,borderRadius:10,marginBottom:10},texttitle:{fontFamily:"Montserrat",fontSize:13,color:I},viewline:{width:"100%",height:50,justifyContent:"center",flexWrap:"wrap",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"}});const Un=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(""),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(""),u=(0,i.default)(d,2),f=u[0],g=u[1],p=(0,c.useState)(4),x=(0,i.default)(p,2),b=x[0],j=x[1],S=(0,c.useState)(""),C=(0,i.default)(S,2),O=C[0],z=C[1],k=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),B=function(){var o=(0,r.default)((function*(){try{var o=yield n((i=t,a=e.route.params.ids,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+i},n="https://cutunix.com/api/v1/app/single-services?services_id="+a;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Ht,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));z(o.data.data.single_services),s(o.data.data.single_services.state),g(o.data.data.single_services.city)}catch(l){}var i,a}));return function(){return o.apply(this,arguments)}}();(0,c.useEffect)((function(){B(),t||k()}),[]);function R(){return e.navigation.goBack(),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",R),function(){Ze.default.removeEventListener("hardwareBackPress",R)}}),[]);var L=(0,Ce.useMediaQuery)({maxWidth:500}),A=(0,i.default)(L,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:A?"100%":500,marginLeft:A?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:Gn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Gn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Gn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062c\u0632\u0626\u06cc\u0627\u062a \u062e\u062f\u0645\u0627\u062a\u06cc"})})]}),(0,ue.jsx)(h.default,{style:{justifyContent:"center",alignItems:"center",width:"90%",height:50,marginBottom:10,backgroundColor:F,left:20,marginTop:10,borderRadius:20,borderWidth:1,borderColor:_},children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:20,color:I},children:[O.first_name," ",O.last_name]})}),(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"90%",height:50,marginBottom:10,backgroundColor:F,left:20,marginTop:10,borderRadius:20,borderWidth:1,borderColor:_,alignItems:"center",justifyContent:"space-between",paddingRight:"3%",paddingLeft:"3%"},children:[(0,ue.jsx)(de.default,{onPress:function(){j(1)},style:{justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:1==b?"MontserratBold":"Montserrat",fontSize:14,color:1==b?P:I},children:"\u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627 \u0645\u0627"})}),(0,ue.jsx)(de.default,{onPress:function(){j(2)},style:{justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:2==b?"MontserratBold":"Montserrat",fontSize:14,color:2==b?P:I},children:"\u0642\u06cc\u0645\u062a"})}),(0,ue.jsx)(de.default,{onPress:function(){j(3)},style:{justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:3==b?"MontserratBold":"Montserrat",fontSize:14,color:3==b?P:I},children:"\u0645\u0627\u0634\u06cc\u0646 \u0627\u0644\u0627\u062a"})}),(0,ue.jsx)(de.default,{onPress:function(){j(4)},style:{justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:4==b?"MontserratBold":"Montserrat",fontSize:14,color:4==b?P:I},children:"\u0627\u0637\u0644\u0627\u0639\u0627\u062a \u06a9\u0644\u06cc"})})]}),4==b?(0,ue.jsxs)(h.default,{style:Gn.view,children:[(0,ue.jsx)(h.default,{style:{backgroundColor:F,borderRadius:20,width:"40%",height:40,marginTop:10,marginBottom:8,justifyContent:"center",alignItems:"center",left:"27%"},children:(0,ue.jsxs)(m.default,{style:Gn.texttitle,children:[l.state,", ",f.city]})}),(0,ue.jsx)(h.default,{style:Gn.viewline,children:(0,ue.jsx)(m.default,{style:Gn.textlineR,children:O.address})}),(0,ue.jsx)(h.default,{style:Gn.viewline,children:(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:16,color:I,position:"absolute",right:"5%"},children:[O.first_name,O.last_name]})}),(0,ue.jsx)(h.default,{style:{width:"90%",height:300,marginTop:10},children:(0,ue.jsx)(m.default,{numberOfLines:7,style:{textAlign:"right",fontFamily:"Montserrat",fontSize:16,color:I},children:O.description})})]}):(0,ue.jsx)(h.default,{}),3==b?(0,ue.jsx)(h.default,{style:{display:"flex",flexWrap:"wrap",flexDirection:"row",justifyContent:"center",width:"90%",alignSelf:"auto",backgroundColor:w,marginTop:10,left:"3%",borderWidth:1,borderColor:T,borderRadius:10,elevation:2,marginBottom:10},children:O.machinery.map((function(e,t){return(0,ue.jsx)(h.default,{style:{borderWidth:2,borderColor:_,marginLeft:10,marginRight:10,backgroundColor:F,borderRadius:20,width:"40%",height:60,marginTop:20,marginBottom:20,justifyContent:"center",alignItems:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:I},children:e.name})},t)}))}):(0,ue.jsx)(h.default,{}),2==b?(0,ue.jsx)(Be.default,{children:(0,ue.jsxs)(h.default,{style:{flexDirection:"column",alignItems:"center",width:"90%",alignSelf:"auto",backgroundColor:w,marginTop:10,left:"5%",borderWidth:1,borderColor:T,borderRadius:10,elevation:2},children:[(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",height:40,borderTopRightRadius:10,borderTopLeftRadius:10},children:[(0,ue.jsx)(h.default,{style:{width:"30%",height:40,borderTopLeftRadius:10,borderBottomWidth:1,borderRightWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I},children:"\u0642\u06cc\u0645\u062a \u0648\u0627\u062d\u062f(\u0631\u06cc\u0627\u0644)"})}),(0,ue.jsx)(h.default,{style:{width:"60%",height:40,alignItems:"center",borderBottomWidth:1,justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I},children:"\u0634\u0631\u062d \u062e\u062f\u0645\u0627\u062a"})}),(0,ue.jsx)(h.default,{style:{width:"10%",height:40,borderTopRightRadius:10,borderBottomWidth:1,borderLeftWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I},children:"\u0631\u062f\u06cc\u0641"})})]}),O.prices.map((function(e,t){return(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:"100%",height:40,borderTopRightRadius:10,borderTopLeftRadius:10},children:[(0,ue.jsx)(h.default,{style:{width:"30%",height:40,borderTopLeftRadius:10,borderRightWidth:1,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I},children:(n=JSON.stringify(e.price),n.replace(/\D/g,"").toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))})}),(0,ue.jsx)(h.default,{style:{width:"60%",height:40,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:I},children:e.service})}),(0,ue.jsx)(h.default,{style:{width:"10%",height:40,borderTopRightRadius:10,borderLeftWidth:1,borderBottomWidth:1,alignItems:"center",justifyContent:"center"},children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:12,color:I},children:t+1})})]},t);var n}))]})}):(0,ue.jsx)(h.default,{}),1==b?(0,ue.jsxs)(h.default,{style:Gn.view,children:[(0,ue.jsx)(h.default,{style:{backgroundColor:F,borderRadius:20,width:"40%",height:40,marginTop:10,marginBottom:8,justifyContent:"center",alignItems:"center",left:"27%"},children:(0,ue.jsxs)(m.default,{style:Gn.texttitle,children:[l.state,", ",f.city]})}),(0,ue.jsx)(h.default,{style:Gn.viewline,children:(0,ue.jsx)(m.default,{style:Gn.textlineR,children:O.address})}),(0,ue.jsxs)(de.default,{onPress:function(){pe.default.openURL("tel:"+O.mobile)},style:{flexDirection:"row",borderWidth:2,borderColor:_,marginLeft:10,marginRight:10,borderRadius:20,width:"50%",height:60,marginTop:20,marginBottom:8,justifyContent:"center",alignItems:"center"},children:[(0,ue.jsx)(h.default,{style:{elevation:5,width:40,height:40,borderRadius:20,backgroundColor:M,alignItems:"center",justifyContent:"center",marginRight:10},children:(0,ue.jsx)(xe.default,{name:"call",size:25,color:v})}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:I},children:"\u062a\u0645\u0627\u0633 \u0628\u0627 \u062e\u062f\u0645\u0627\u062a\u06cc"})]})]}):(0,ue.jsx)(h.default,{})]})})};var Qn=o(9753),Jn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"35%"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30}});const Kn=function(e){var t=(0,c.useState)(!1),n=(0,i.default)(t,2),o=(n[0],n[1],(0,re.useSelector)((function(e){return e.userLogin.datatoken})),(0,c.useRef)(null));function r(){return o.current.goBack(),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",r),function(){Ze.default.removeEventListener("hardwareBackPress",r)}}),[]);var a=(0,Ce.useMediaQuery)({maxWidth:500}),l=(0,i.default)(a,1)[0];return console.log(e.route.params.addressweb),(0,ue.jsxs)(h.default,{style:{width:l?"100%":500,height:"100%",marginLeft:l?0:"35%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:Jn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Jn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Jn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:v,padding:"5%"},children:"\u0628\u0633\u062a\u0646"})})]}),"web"==ye.default.OS?(0,ue.jsx)("iframe",{id:"iFrameExample",style:{height:"100%",width:"100%"},title:"iFrame Example",src:e.route.params.addressweb}):(0,ue.jsx)(Qn.WebView,{ref:o,style:{width:"100%",height:500},source:{uri:e.route.params.addressweb}})]})};function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xn=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},viewmodal:{width:"100%",height:55,marginBottom:30,backgroundColor:v},viewline:{width:"100%",height:30,justifyContent:"center",flexDirection:"row",marginTop:5},textlineR:{fontFamily:"Montserrat",fontSize:13,color:I,position:"absolute",right:"5%"},textline:{fontFamily:"Montserrat",fontSize:13,color:_},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader:{backgroundColor:P,width:60,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"35%"},payam:{width:60,height:50,justifyContent:"center",alignItems:"center",position:"absolute",left:15,top:"20%"},text:{fontFamily:"Montserrat",fontSize:14,color:_,textAlign:"right",marginTop:30}});const $n=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(!1),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(),u=(0,i.default)(d,2),f=u[0],g=u[1],x=(0,c.useState)([]),b=(0,i.default)(x,2),S=b[0],C=b[1],O=(0,c.useState)(1),z=(0,i.default)(O,2),F=z[0],_=z[1],R=(0,c.useState)({showModal1:!1,isLoading:!1,isLoading1:!1,title:"",msg:""}),L=(0,i.default)(R,2),E=L[0],W=L[1],H=function(){var t=(0,r.default)((function*(){try{yield n($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),V=function(){var e=(0,r.default)((function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"false";try{var o=F;"true"==e&&(_(1),o=1),W(Zn(Zn({},E),{},{isLoading:!0}));var i=yield n(function(e,t){return function(){var n=(0,r.default)((function*(n){var o={Accept:"application/json",Authorization:"Bearer "+e},i="https://cutunix.com/api/v1/app/ticket/tickets?page="+t;return D()({method:"get",url:i,headers:o}).then((function(e){var t=e.data;return n({type:Q,data:t}),e})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(e){return n.apply(this,arguments)}}()}(t,o));C("true"==e?(0,an.default)(i.data.data.tickets.data):[].concat((0,an.default)(S),(0,an.default)(i.data.data.tickets.data))),console.log(i.data.data.tickets.data),W(Zn(Zn({},E),{},{isLoading:!1}))}catch(a){H()}}));return function(){return e.apply(this,arguments)}}(),N=function(){var e=(0,r.default)((function*(){try{W(Zn(Zn({},E),{},{isLoading1:!0}));var e=yield n(function(e,t,n){return function(){var o=(0,r.default)((function*(o){var i={Accept:"application/json",Authorization:"Bearer "+e},r=new(A());return r.append("type","text"),r.append("title",t),r.append("msg",n),fetch("https://cutunix.com/api/v1/app/ticket/add",{method:"POST",headers:i,body:r}).then((function(e){return e.json()})).then((function(e){return o({type:U,data:e}),e})).catch((function(e){return console.log("error",e)}))}));return function(e){return o.apply(this,arguments)}}()}(t,E.title,E.msg));"success"==e.status?(s(!0),g("\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f")):"error"==e.status&&(s(!0),g("\u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0627\u0644\u0632\u0627\u0645\u06cc \u0645\u06cc \u0628\u0627\u0634\u062f")),W(Zn(Zn({},E),{},{isLoading1:!1}))}catch(o){H()}}));return function(){return e.apply(this,arguments)}}(),q=(0,tt.useIsFocused)();function G(){return e.navigation.goBack(),!0}(0,c.useEffect)((function(){V("true")}),[F,q]),(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",G),function(){Ze.default.removeEventListener("hardwareBackPress",G)}}),[]);var J=(0,Ce.useMediaQuery)({maxWidth:500}),K=(0,i.default)(J,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:K?"100%":500,marginLeft:K?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:Xn.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Xn.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:Xn.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646"})})]}),(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:E.showModal1,onClose:function(){return W(Zn(Zn({},E),{},{showModal1:!1}))},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){return W(Zn(Zn({},E),{},{showModal1:!1}))},name:"close",size:20,color:I})}),(0,ue.jsx)(ve,{label:"\u0639\u0646\u0648\u0627\u0646",styleview:{marginTop:"3%",height:70},stylelabel:{width:"13%"},value:E.title,onChangeText:function(e){return W(Zn(Zn({},E),{},{title:e}))},styleinput:"web"===ye.default.OS&&{outlineColor:P},keyboardType:"default"}),(0,ue.jsx)(ve,{label:"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a",multiline:!0,styleinput:{height:100},styleview:{height:100,marginBottom:"30%",marginTop:20},stylelabel:{width:65,top:"web"==ye.default.OS?-9:-15},keyboardType:"default",value:E.msg,onChangeText:function(e){return W(Zn(Zn({},E),{},{msg:e}))}}),(0,ue.jsx)(he,{touchableStyle:{width:"90%",height:50,backgroundColor:j},textStyle:{bottom:10,fontSize:16},style:{position:"absolute",left:"5%",bottom:10},onPress:function(){N(),"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==f&&W(Zn(Zn({},E),{},{showModal1:!1}))},colorspin:v,sizespin:25,label:"\u0627\u0641\u0632\u0648\u062f\u0646 ",loading:E.isLoading1})]})})})}),(0,ue.jsx)(h.default,{style:Xn.viewmodal,children:(0,ue.jsx)(he,{nameicon:"plus",sizeicon:30,styleicon:{position:"absolute",left:120,top:"web"===ye.default.OS?-5:-1},coloricon:v,touchableStyle:{width:"90%",height:50,backgroundColor:j},textStyle:{fontSize:16},style:{position:"absolute",left:"5%",top:10},onPress:function(){return W(Zn(Zn({},E),{},{showModal1:!0}))},colorspin:v,sizespin:25,label:"\u0627\u0631\u0633\u0627\u0644 \u067e\u06cc\u0627\u0645 \u0628\u0647 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})}),E.isLoading?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:100,height:40,backgroundColor:j,borderRadius:10,alignItems:"center",justifyContent:"center",top:"90%",left:"35%",position:"absolute",zIndex:2},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,marginRight:10},children:"\u0628\u06cc\u0634\u062a\u0631"}),(0,ue.jsx)(p.default,{size:30,color:v})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(ln.default,{data:S,onEndReachedThreshold:.5,keyExtractor:function(e,t){return t.toString()},onEndReached:function(){return _(F+1)},enableEmptySections:!0,renderItem:function(t){var n=t.item,o=t.index;return(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("chatticket",{Ticketid:n.id,type:"close"==n.status?"ok":""})},style:{flexDirection:"column",alignItems:"center",width:"90%",height:80,backgroundColor:w,marginTop:10,left:"5%",borderWidth:2,borderColor:T,borderRadius:10,marginBottom:S.length>1?10:290},children:[(0,ue.jsx)(h.default,{style:Xn.viewline,children:(0,ue.jsxs)(m.default,{style:Xn.textlineR,children:[" \u0639\u0646\u0648\u0627\u0646 : ",(0,ue.jsx)(m.default,{style:Xn.textline,children:n.title})]})}),(0,ue.jsx)(h.default,{style:Xn.viewline,children:(0,ue.jsxs)(m.default,{style:Xn.textlineR,children:["\u0648\u0636\u0639\u06cc\u062a : ",(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:"pending"==n.status||"waiting"==n.status?P:M},children:"pending"==n.status?"\u062f\u0631 \u062d\u0627\u0644 \u0628\u0631\u0631\u0633\u06cc":"waiting"==n.status?"\u062f\u0631 \u0627\u0646\u062a\u0638\u0627\u0631 \u067e\u0627\u0633\u062e":"awnser"==n.status?"\u067e\u0627\u0633\u062e \u062f\u0627\u062f\u0647 \u0634\u062f\u0647":" \u0628\u0633\u062a\u0647 \u0634\u062f\u0647"})]})}),"no"==n.message.seen&&"user"!=n.message.status?(0,ue.jsxs)(h.default,{style:Xn.payam,children:[(0,ue.jsx)(le.default,{name:"bell-ring",size:30,color:k}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:M},children:"\u067e\u06cc\u0627\u0645 \u062c\u062f\u06cc\u062f "})]}):(0,ue.jsx)(h.default,{})]},o)}}),(0,ue.jsx)(Se.default,{show:l,showProgress:!1,title:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==f?"":"\u0627\u062e\u0637\u0627\u0631",message:f,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==f?(s(!1),e.navigation.navigate("home")):s(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"\u0628\u0627 \u0645\u0648\u0641\u0642\u06cc\u062a \u062b\u0628\u062a \u0634\u062f"==f?M:B},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var no=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"20%":"35%"},menu1:{backgroundColor:P,width:110,height:40,justifyContent:"center",alignItems:"center",position:"absolute",left:"3%",top:"web"==ye.default.OS?"17%":"35%",flexDirection:"row"},textheader:{backgroundColor:P,width:60,height:60,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"3%":"22%"},viewfooter:{flexDirection:"row",width:"100%",height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1}});const oo=function(e){var t="http://shemshetaraz.com/cutunix/",n=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),a=(0,re.useDispatch)(),l=(0,c.useState)(),s=(0,i.default)(l,2),d=s[0],u=s[1],f=(0,c.useState)(!1),x=(0,i.default)(f,2),b=x[0],j=x[1],C=(0,c.useState)({showModal:!1,isLoading:!1,isLoading1:!1,isLoading2:!1,stoped:!1}),k=(0,i.default)(C,2),B=k[0],R=k[1],L=(0,c.useState)(!1),A=(0,i.default)(L,2),E=A[0],W=A[1],H=(0,c.useState)(""),V=(0,i.default)(H,2),N=V[0],q=V[1],G=(0,c.useState)(""),U=(0,i.default)(G,2),Q=U[0],J=U[1],K=(0,c.useState)(""),Y=(0,i.default)(K,2),Z=Y[0],X=Y[1],ee=(0,c.useState)(null),te=(0,i.default)(ee,2),ne=te[0],oe=te[1],se=(0,c.useState)(""),ce=(0,i.default)(se,2),fe=ce[0],ge=ce[1],me=(0,c.useState)([]),be=(0,i.default)(me,2),je=be[0],we=be[1],ve=(0,c.useState)(!1),Se=(0,i.default)(ve,2),ke=Se[0],Pe=Se[1],Me=function(){var t=(0,r.default)((function*(){try{yield a($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(t){console.log(t)}}));return function(){return t.apply(this,arguments)}}(),Fe=(0,c.useState)(0),_e=(0,i.default)(Fe,2),Ie=_e[0],Re=_e[1];(0,c.useEffect)((function(){var e=setTimeout((function(){100!==Ie&&Re(Ie+1)}),1e3);return function(){clearTimeout(e)}}));var De=function(){var t=(0,r.default)((function*(){if("web"==ye.default.OS)try{if(R(to(to({},B),{},{isLoading1:!0})),N)"success"==(yield a(Rt(n,"text",N,e.route.params.Ticketid))).data.status&&Ee();if(fe)"success"==(yield a(Rt(n,"file",fe,e.route.params.Ticketid))).data.status&&Ee();R(to(to({},B),{},{isLoading1:!1}))}catch(t){}else try{if(R(to(to({},B),{},{isLoading1:!0})),N)"success"==(yield a(Dt(n,"text",N,e.route.params.Ticketid))).data.status&&Ee();if(Z)oe(""),ge(""),"success"==(yield a(Dt(n,"file",Z,e.route.params.Ticketid))).data.status&&Ee();if(fe)X(""),oe(""),"success"==(yield a(Dt(n,"file",fe,e.route.params.Ticketid))).data.status&&Ee();if(ne)X(""),ge(""),"success"==(yield a(Dt(n,"file",ne,e.route.params.Ticketid))).data.status&&Ee();R(to(to({},B),{},{isLoading1:!1}))}catch(t){}}));return function(){return t.apply(this,arguments)}}(),Le=(0,c.useRef)(null),Ae=(0,c.useRef)(null),Ee=function(){var t=(0,r.default)((function*(){try{R(to(to({},B),{},{isLoading1:!0}));var t=yield a((o=n,i=e.route.params.Ticketid,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://cutunix.com/api/v1/app/ticket/messages?ticket_id="+i;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:kt,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));we(t.data.data.messages),R(to(to({},B),{},{isLoading1:!1}))}catch(l){}var o,i}));return function(){return t.apply(this,arguments)}}(),We=(0,tt.useIsFocused)();(0,c.useEffect)((function(){Ee(),n||Me(),Xe()}),[We]);var He=function(){var e=(0,r.default)((function*(){var e=yield dt.launchCameraAsync({mediaTypes:ut.MediaTypeOptions.All,allowsEditing:!1,quality:.7,base64:!1});e.canceled||(R(to(to({},B),{},{isLoading2:!0})),oe(e.uri),j(!0),R(to(to({},B),{},{isLoading2:!1})))}));return function(){return e.apply(this,arguments)}}(),Ve=function(){var e=(0,r.default)((function*(){try{var e=yield st.getDocumentAsync();ge(e.uri),j(!0)}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();function Ne(){return(Ne=(0,r.default)((function*(){try{yield ct.requestPermissionsAsync(),yield ft.setAudioModeAsync({allowsRecordingIOS:!0,playsInSilentModeIOS:!0});var e=new ct.Recording;yield e.prepareToRecordAsync(ht.RecordingOptionsPresets.HIGH_QUALITY),yield e.startAsync(),u(e)}catch(t){console.error("Failed to start recording",t)}}))).apply(this,arguments)}function qe(){return(qe=(0,r.default)((function*(){R(to(to({},B),{},{isLoading:!0})),u(void 0),yield d.stopAndUnloadAsync();var e=yield d.createNewLoadedSoundAsync(),t=d.getURI();!function(e){var t=e/1e3/60,n=Math.floor(t),o=Math.round(60*(t-n))}(e.status.durationMillis);console.log("Recording stopped and stored at",e.status),R(to(to({},B),{},{isLoading:!1})),X(t),j(!0)}))).apply(this,arguments)}function Ge(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=(0,r.default)((function*(e){var n=yield gt.Sound.createAsync({uri:t+e},{shouldPlay:!0},(function(e){return J(e.didJustFinish)}));n.sound,n.status}))).apply(this,arguments)}function Qe(){document.getElementById("fileC").click()}function Je(){return(Je=(0,r.default)((function*(e){var t=yield gt.Sound.createAsync({uri:e},{shouldPlay:!0},(function(e){return J(e.didJustFinish)}));t.sound,t.status}))).apply(this,arguments)}var Ke=function(e){pe.default.openURL(t+e)};function Ye(){return e.navigation.navigate("ticket"),!0}function Xe(){ae.default.fetch().then((function(e){0==e.isConnected&&Alert.alert("\u0647\u0634\u062f\u0627\u0631!","\u0644\u0637\u0641\u0627 \u0627\u062a\u0635\u0627\u0644 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f",[{text:"\u0628\u0627\u0634\u0647",onPress:function(){return Xe()}}])}))}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",Ye),function(){Ze.default.removeEventListener("hardwareBackPress",Ye)}}),[]);var $e=(0,Ce.useMediaQuery)({maxWidth:500}),et=(0,i.default)($e,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:et?"100%":500,height:"100%",marginLeft:et?0:"35%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:["web"==ye.default.OS?(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:b,onClose:function(){return j(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){j(!1),ge("")},name:"close",size:20,color:I})}),(0,ue.jsxs)(h.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",marginTop:20},children:fe?fe.name:""})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ue.jsx)(he,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:w,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){ge(""),j(!1)}}),(0,ue.jsx)(he,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:M,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){De(),ge(""),Re(0),j(!1)}})]})]})})})}):(0,ue.jsx)(ze.Modal,{justifyContent:"center",size:"xl",isOpen:b,onClose:function(){return j(!1)},children:(0,ue.jsx)(ze.Modal.Content,{style:{borderRadius:30},children:(0,ue.jsx)(ze.Modal.Body,{children:(0,ue.jsxs)(h.default,{style:{width:"100%",alignSelf:"auto"},children:[(0,ue.jsx)(h.default,{style:{width:"100%",height:50},children:(0,ue.jsx)(xe.default,{onPress:function(){j(!1),X(""),oe(""),ge("")},name:"close",size:20,color:I})}),Z?(0,ue.jsxs)(de.default,{onPress:function(){Pe(!ke),function(e){Je.apply(this,arguments)}(Z)},style:{left:12,flexDirection:"row",width:"90%",height:50,backgroundColor:T,alignItems:"center",borderRadius:10},children:[(0,ue.jsx)(le.default,{name:0==ke||1==Q?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{position:"absolute",right:30}}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",left:30},children:0==ke||1==Q?"\u067e\u062e\u0634":"\u062f\u0631 \u062d\u0627\u0644 \u067e\u062e\u0634"})]}):(0,ue.jsxs)(h.default,{style:{width:"100%",height:100,alignItems:"center"},children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:"red"},children:"... \u0641\u0627\u06cc\u0644 \u0627\u0631\u0633\u0627\u0644 \u0634\u0648\u062f ..."}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold"},children:fe||ne})]}),(0,ue.jsxs)(h.default,{style:{width:"100%",flexDirection:"row"},children:[(0,ue.jsx)(he,{label:"\u0627\u0646\u0635\u0631\u0627\u0641",coloricon:w,style:{width:"45%",marginLeft:"5%",marginTop:40},textStyle:{bottom:10},onPress:function(){X(""),oe(""),ge(""),j(!1)}}),(0,ue.jsx)(he,{label:"\u062a\u0627\u06cc\u06cc\u062f",touchableStyle:{backgroundColor:M,elevation:0},style:{width:"45%",marginTop:40,left:10},textStyle:{bottom:10},onPress:function(){De(),oe(""),ge(""),X(""),Re(0),j(!1)}})]})]})})})}),(0,ue.jsxs)(h.default,{style:no.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.navigate("ticket")},style:no.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.navigate("ticket")},style:no.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0628\u0627\u0632\u06af\u0634\u062a"})}),(0,ue.jsxs)(de.default,{onPress:function(){Re(0),Ee()},style:{flexDirection:"column",width:50,height:"web"==ye.default.OS?60:80,position:"absolute",left:"43%",bottom:"web"==ye.default.OS?"-5%":-10,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"refresh",size:25,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:10,color:v},children:"\u0628\u0631\u0648\u0632\u0631\u0633\u0627\u0646\u06cc"})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("ticket")},style:no.menu1,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u062a\u0627\u06cc\u06cc\u062f \u0646\u0647\u0627\u06cc\u06cc"}),(0,ue.jsx)(le.default,{name:"check-circle-outline",size:25,color:v})]})]}),(0,ue.jsx)(at.default,{style:{width:"100%",height:"web"==ye.default.OS?"93%":"100%",backgroundColor:P},resizeMode:"cover",source:o(3743),children:(0,ue.jsx)(Be.default,{showsVerticalScrollIndicator:!1,style:{marginBottom:"web"==ye.default.OS?70:150},children:je.slice(0).reverse().map((function(n,o){return"user"==n.status?(0,ue.jsx)(h.default,{style:{alignSelf:"flex-end",margin:10,backgroundColor:z,borderRadius:15,borderTopRightRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims?(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:S,borderWidth:2,borderColor:P},children:(0,ue.jsx)(g.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:O,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]}),(0,ue.jsxs)(de.default,{onPress:function(){Pe(n.id),Ge(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:ke!==n.id||1==Q?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?45:-110,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:ke!==n.id||1==Q?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})})]}):"mp4"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg})},style:{flexDirection:"row",right:70,borderWidth:2,borderColor:O,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center"},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:ke!==n.id||1==Q?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?45:-110,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?280:350,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:ke!==n.id||1==Q?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]})]}):"text"==n.mims?(0,ue.jsxs)(m.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:I,padding:"3%"},children:[" ",n.msg," "]}):(0,ue.jsxs)(de.default,{onPress:function(){return Ke(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:"download",size:30,color:P,style:{left:"web"==ye.default.OS?140:0,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsxs)(m.default,{style:{right:"web"==ye.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o):(0,ue.jsx)(h.default,{style:{alignSelf:"flex-start",margin:10,backgroundColor:S,borderRadius:15,borderTopLeftRadius:0},children:"jpg"==n.mims||"jpeg"==n.mims||"png"==n.mims||"jfif"==n.mims?(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{justifyContent:"center",alignItems:"center",width:150,height:180,backgroundColor:P,borderWidth:2,borderColor:P},children:(0,ue.jsx)(g.default,{source:{uri:t+n.msg},alt:"image",style:{width:"99%",height:175}})}):"m4a"==n.mims||"mp3"==n.mims||"mpeg"==n.mims||"3gp"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){Pe(n.id),Ge(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:ke!==n.id||1==Q?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?100:-60,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:ke!==n.id||1==Q?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ue.jsx)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})})]}):"mp4"==n.mims?(0,ue.jsxs)(h.default,{style:{flexDirection:"row"},children:[(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:200,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:ke!==n.id||1==Q?"motion-play-outline":"motion-pause-outline",size:40,color:P,style:{left:"web"==ye.default.OS?100:-60,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsx)(m.default,{style:{right:"web"==ye.default.OS?220:290,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative",width:80},children:ke!==n.id||1==Q?"\u067e\u062e\u0634":"\u062f\u0631\u062d\u0627\u0644 \u067e\u062e\u0634"})]}),(0,ue.jsxs)(de.default,{onPress:function(){e.navigation.navigate("web",{addressweb:t+n.msg}),Re(0)},style:{flexDirection:"row",left:70,borderRadius:15,width:60,height:50,alignItems:"center",justifyContent:"center",borderWidth:2,borderColor:_},children:[(0,ue.jsx)(le.default,{name:"file-download-outline",size:25,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:I},children:n.mims})]})]}):"text"==n.mims?(0,ue.jsxs)(m.default,{style:{alignSelf:"auto",fontFamily:"Montserrat",fontSize:15,color:I,padding:"3%"},children:[" ",n.msg," "]}):(0,ue.jsxs)(de.default,{onPress:function(){return Ke(n.msg)},style:{flexDirection:"row",left:"web"===ye.default.OS?100:250,width:300,height:50,alignItems:"center"},children:[(0,ue.jsx)(le.default,{name:"download",size:30,color:P,style:{left:"web"==ye.default.OS?140:0,position:"web"==ye.default.OS?"absolute":"relative"}}),(0,ue.jsxs)(m.default,{style:{right:"web"==ye.default.OS?320:250,fontFamily:"MontserratBold",position:"web"==ye.default.OS?"absolute":"relative"},children:["\u062f\u0627\u0646\u0644\u0648\u062f - ",n.mims]})]})},o)}))})}),"ok"==e.route.params.type?(0,ue.jsx)(h.default,{style:{flexDirection:"row",width:et?"100%":500,height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:"web"==ye.default.OS?0:.1},children:(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:20,color:P,left:100,top:10},children:"\u0646\u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u067e\u06cc\u0627\u0645\u06cc \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u062f."})}):"web"===ye.default.OS?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:et?"100%":500,height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:.1},children:[je.length==[]?(0,ue.jsx)(h.default,{}):B.isLoading1?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:P,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ue.jsx)(p.default,{size:30,color:v}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:v,marginLeft:5},children:[Ie,"%"]})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(de.default,{onPress:function(){De(),Le.current.value="",q(),Ae.current.value="",ge(),Re(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"send-outline",size:30,color:N||fe?M:I})}),(0,ue.jsx)(h.default,{children:(0,ue.jsxs)("form",{onSubmit:De,children:[(0,ue.jsx)("input",{style:{width:190,height:"30%",position:"absolute",left:110,top:"20%",borderRadius:10,paddingLeft:"8px",paddingTop:"6px",paddingBottom:"6px",fontFamily:"Montserrat"},ref:Le,type:"text",onChange:function(e){return q(e.target.value)},placeholder:" \u0645\u062a\u0646 \u062e\u0648\u062f\u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f"}),(0,ue.jsx)("br",{}),(0,ue.jsx)(le.default,{style:{marginLeft:10,position:"absolute",top:16},onPress:Qe,name:"camera-outline",size:25,color:I}),(0,ue.jsx)(le.default,{style:{marginLeft:45,position:"absolute",top:16},onPress:Qe,name:"link-variant",size:25,color:I}),(0,ue.jsx)(le.default,{style:{marginLeft:80,position:"absolute",top:16},onPress:Qe,name:"microphone",size:25,color:I}),(0,ue.jsx)("input",{id:"fileC",ref:Ae,type:"file",hidden:!0,onChange:function(e){ge(e.target.files[0]),j(!0)},style:{marginLeft:"4%",marginTop:2}}),(0,ue.jsx)("br",{})]})})]}):(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:et?"100%":500,height:68,backgroundColor:F,position:"web"==ye.default.OS?"fixed":"absolute",bottom:.1},children:[je.length==[]?(0,ue.jsx)(h.default,{}):B.isLoading1?(0,ue.jsxs)(h.default,{style:{flexDirection:"row",width:73,height:40,backgroundColor:P,borderRadius:20,alignItems:"center",justifyContent:"center",bottom:"105%",left:"45%",position:"absolute"},children:[(0,ue.jsx)(p.default,{size:30,color:v}),(0,ue.jsxs)(m.default,{style:{fontFamily:"Montserrat",fontSize:13,color:v,marginLeft:5},children:[Ie,"%"]})]}):(0,ue.jsx)(h.default,{}),(0,ue.jsx)(de.default,{onPress:function(){De(),q(""),X(""),oe(""),ge(""),Re(0)},style:{top:"26%",right:"2%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"send-outline",size:30,color:N||ne||fe||Z?M:I})}),(0,ue.jsx)(Te.default,{onFocus:function(){return W(!0)},value:N||(ne||(fe||Z)),editable:!ne&&(!fe&&!Z),onChangeText:function(e){return q(e)},placeholder:"\u0645\u062a\u0646 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f",multiline:!0,onBlur:function(){return W(!1)},keyboardType:"default",style:{paddingLeft:"web"===ye.default.OS?"27%":"35%",paddingTop:"3%",position:"absolute",top:"10%",right:"10%",backgroundColor:w,width:"60%",height:50,borderWidth:1==E?2:0,borderRadius:25,padding:10,fontFamily:"Montserrat",borderColor:1==E?I:_}}),(0,ue.jsx)(de.default,{onPress:d?function(){return qe.apply(this,arguments)}:function(){return Ne.apply(this,arguments)},style:{bottom:"28%",left:"20%",position:"absolute"},children:B.isLoading?(0,ue.jsx)(p.default,{color:P,style:{marginLeft:8}}):(0,ue.jsxs)(lt.default,{children:[(0,ue.jsx)(le.default,{name:d?"wifi":"",size:20,color:d?M:I,style:{left:5}}),(0,ue.jsx)(le.default,{name:d?"microphone":"microphone-off",size:30,color:d?M:I})]})}),(0,ue.jsx)(de.default,{onPress:function(){return Ve()},style:{top:"25%",left:"11%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"link-variant",size:30,color:I})}),(0,ue.jsx)(de.default,{onPress:function(){return He()},style:{top:"30%",left:"3%",position:"absolute"},children:(0,ue.jsx)(le.default,{name:"camera-outline",size:25,color:I})})]})]})})};var io=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",top:"web"==ye.default.OS?"15%":"35%"},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textclose:{fontFamily:"Montserrat",fontSize:14,color:v},farsitop:{width:"92%",height:40,left:20,top:"8%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop1:{width:"92%",height:40,left:20,top:"15%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop2:{width:"92%",height:60,left:20,marginTop:"web"==ye.default.OS?"30%":55,alignItems:"center",justifyContent:"center"},texttop:{fontFamily:"MontserratBold",fontSize:15,color:I},filter:{backgroundColor:P,width:110,height:40,alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",right:"0%",top:"web"==ye.default.OS?"15%":"35%"}});const ro=function(e){var t=(0,re.useDispatch)(),n=(0,c.useState)(!1),o=(0,i.default)(n,2),a=o[0],l=o[1];function s(){return l(!0),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",s),function(){Ze.default.removeEventListener("hardwareBackPress",s)}}),[]);var d,u=function(){var n=(0,r.default)((function*(){try{yield t($()),yield ie.default.removeItem("access_token"),e.navigation.navigate("splash")}catch(n){console.log(n)}}));return function(){return n.apply(this,arguments)}}(),f=(0,Ce.useMediaQuery)({maxWidth:500}),g=(0,i.default)(f,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:g?"100%":500,marginLeft:g?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:io.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsxs)(de.default,{style:io.filter,onPress:function(){return e.navigation.navigate("ticket")},children:[(0,ue.jsx)(le.default,{name:"face-agent",size:30,color:v}),(0,ue.jsx)(m.default,{style:{fontFamily:"Montserrat",fontSize:12,color:v},children:"\u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc"})]}),(0,ue.jsx)(h.default,{style:io.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:v,padding:"5%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a"})})]}),(0,ue.jsxs)(h.default,{style:io.farsitop,children:[(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:P,marginRight:5},children:"\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u06a9\u0627\u062a \u06cc\u0648\u0646\u06cc\u06a9\u0633 \u0634\u0627\u0645\u0644 \u0647\u0632\u06cc\u0646\u0647 \u0645\u06cc \u0628\u0627\u0634\u062f!"}),(0,ue.jsx)(xe.default,{name:"alert-circle-outline",size:20,color:P})]}),(0,ue.jsx)(h.default,{style:io.farsitop1,children:(0,ue.jsx)(m.default,{style:io.texttop,children:"\u0628\u0631\u0627\u06cc \u0648\u0631\u0648\u062f \u0628\u0647 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0628\u0627\u06cc\u062f \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f\u061b"})}),(0,ue.jsxs)(h.default,{style:io.farsitop2,children:[(0,ue.jsxs)(m.default,{style:io.texttop,children:["\u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0628\u0627",(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:P},children:" \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641 "}),"\u0627\u0632 \u062a\u062e\u0641\u06cc\u0641 \u0648\u06cc\u0698\u0647"]}),(0,ue.jsx)(m.default,{style:io.texttop,children:" \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0645\u06cc \u0634\u0648\u06cc\u062f. "})]}),(0,ue.jsxs)(de.default,{onPress:function(){return e.navigation.navigate("walletCode")},style:{width:"95%",height:70,marginTop:"10%",marginLeft:10,flexDirection:"row",alignItems:"center",justifyContent:"center",borderStyle:"dashed",borderRadius:10,borderWidth:3,borderColor:P},children:[(0,ue.jsx)(xe.default,{name:"person-circle",size:40,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:I,marginLeft:"10%"},children:"\u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641"})]}),(0,ue.jsxs)(de.default,{onPress:function(){var t;t=e.route.params.linkprice,pe.default.openURL(t)},style:{width:"95%",height:70,marginTop:"8%",marginLeft:10,flexDirection:"row",alignItems:"center",justifyContent:"center",borderStyle:"dashed",borderRadius:10,borderWidth:3,borderColor:P},children:[(0,ue.jsx)(xe.default,{name:"cash",size:40,color:P}),(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:16,color:I,marginLeft:"15%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a \u0628\u062f\u0648\u0646 \u06a9\u062f"})]}),(0,ue.jsx)(h.default,{style:io.farsitop,children:(0,ue.jsxs)(m.default,{style:{fontFamily:"MontserratBold",fontSize:13,color:I},children:["\u0647\u0632\u06cc\u0646\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646 \u0628\u062f\u0648\u0646 \u06a9\u062f \u0645\u0639\u0631\u0641 ",(d=e.route.params.pricing,d.replace(/\D/g,"").toString().replace(/\B(?=(\d{3})+(?!\d))/g,","))," \u0631\u06cc\u0627\u0644 \u0645\u06cc \u0628\u0627\u0634\u062f."]})}),(0,ue.jsx)(he,{label:"\u0645\u0634\u0627\u0647\u062f\u0647 \u0627\u0645\u06a9\u0627\u0646\u0627\u062a \u0627\u067e\u0644\u06cc\u06a9\u06cc\u0634\u0646",style:{marginLeft:"5%",marginTop:"web"==ye.default.OS?"25%":"15%",marginBottom:"5%",height:55},textStyle:{bottom:10,fontFamily:"MontserratBold"},onPress:function(){"web"==ye.default.OS?pe.default.openURL("https://cutunix.ir/introducing-app/"):e.navigation.navigate("web",{addressweb:"https://cutunix.ir/introducing-app/"})}}),(0,ue.jsx)(Se.default,{show:a,showProgress:!1,title:"\u0647\u0634\u062f\u0627\u0631 !",message:"\u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0627\u0631\u062c \u0645\u06cc \u0634\u0648\u06cc\u062f\u061f",closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showCancelButton:!0,showConfirmButton:!0,cancelText:"\u0627\u0646\u0635\u0631\u0627\u0641",confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,cancelButtonColor:P,onCancelPressed:function(){l(!1)},onConfirmPressed:function(){u(),l(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:B},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13},cancelButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};var ao=u.default.create({viewContainer:{width:"100%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},viewHeader:{flexDirection:"row",width:"100%",height:"web"==ye.default.OS?60:80,backgroundColor:P},textheader:{backgroundColor:P,width:100,height:40,alignItems:"center",justifyContent:"center",position:"absolute",top:"web"==ye.default.OS?"15%":"35%"},menu:{backgroundColor:P,width:40,height:40,justifyContent:"center",alignItems:"center",position:"absolute",right:15,top:"web"==ye.default.OS?"15%":"35%"},textheader1:{backgroundColor:P,width:70,height:40,alignItems:"center",justifyContent:"center",position:"absolute",right:"12%",top:"web"==ye.default.OS?"15%":"35%"},textclose:{fontFamily:"Montserrat",fontSize:14,color:v},farsitop:{width:"92%",height:40,left:20,top:"8%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop1:{width:"92%",height:40,left:20,top:"15%",flexDirection:"row",alignItems:"center",justifyContent:"center"},farsitop2:{width:"92%",height:60,left:20,marginTop:55,alignItems:"center",justifyContent:"center"},texttop:{fontFamily:"MontserratBold",fontSize:15,color:I},filter:{backgroundColor:P,width:110,height:60,alignItems:"center",justifyContent:"center",flexDirection:"column",position:"absolute",right:"0%",top:"22%"}});const lo=function(e){var t=(0,re.useSelector)((function(e){return e.userLogin.datatoken})),n=(0,re.useDispatch)(),o=(0,c.useState)(),a=(0,i.default)(o,2),l=a[0],s=a[1],d=(0,c.useState)(!1),u=(0,i.default)(d,2),f=u[0],g=u[1],p=(0,c.useState)(!1),x=(0,i.default)(p,2),b=x[0],j=x[1],w=(0,c.useState)(""),S=(0,i.default)(w,2),C=S[0],O=S[1],z=function(){var e=(0,r.default)((function*(){try{j(!0);var e=yield n((o=t,i=l,function(){var e=(0,r.default)((function*(e){var t={Accept:"application/json",Authorization:"Bearer "+o},n="https://cutunix.com/api/v1/app/verify-marketer?code="+i;return D()({method:"get",url:n,headers:t}).then((function(t){var n=t.data;return e({type:Y,data:n}),t})).catch((function(e){console.log(e.name),console.log(e.message),console.log(e)}))}));return function(t){return e.apply(this,arguments)}}()));"success"==e.data.status?(g(!0),O("\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f")):(O(e.data.message),g(!0)),j(!1)}catch(a){console.log(a)}var o,i}));return function(){return e.apply(this,arguments)}}();function k(){return e.navigation.goBack(),!0}(0,c.useEffect)((function(){return Ze.default.addEventListener("hardwareBackPress",k),function(){Ze.default.removeEventListener("hardwareBackPress",k)}}),[]);var T=(0,Ce.useMediaQuery)({maxWidth:500}),F=(0,i.default)(T,1)[0];return(0,ue.jsx)(Oe.NativeBaseProvider,{children:(0,ue.jsxs)(h.default,{style:{width:F?"100%":500,marginLeft:F?0:"35%",height:"100%",backgroundColor:v,position:"web"==ye.default.OS?"fixed":"relative"},children:[(0,ue.jsxs)(h.default,{style:ao.viewHeader,children:[(0,ue.jsx)(y.default,{backgroundColor:P}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:ao.menu,children:(0,ue.jsx)(xe.default,{name:"arrow-forward-outline",size:25,color:v})}),(0,ue.jsx)(de.default,{onPress:function(){return e.navigation.goBack()},style:ao.textheader1,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:15,color:v,padding:"5%"},children:"\u0628\u0627\u0632\u06af\u0634\u062a"})}),(0,ue.jsx)(h.default,{style:ao.textheader,children:(0,ue.jsx)(m.default,{style:{fontFamily:"MontserratBold",fontSize:17,color:v,padding:"5%"},children:"\u067e\u0631\u062f\u0627\u062e\u062a"})})]}),(0,ue.jsx)(ve,{label:"\u06a9\u062f \u0645\u0639\u0631\u0641",styleview:{marginTop:"50%"},stylelabel:{width:"15%"},value:l,onChangeText:function(e){return s(e)},keyboardType:"default"}),(0,ue.jsx)(he,{label:" \u062a\u0627\u06cc\u06cc\u062f \u0648 \u0627\u062f\u0627\u0645\u0647 ",style:{marginLeft:"5%",marginTop:"40%",height:55},textStyle:{bottom:10},loading:b,colorspin:v,sizespin:25,onPress:function(){z()}}),(0,ue.jsx)(Se.default,{show:f,showProgress:!1,title:"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==C?"\u0645\u0648\u0641\u0642":"\u0647\u0634\u062f\u0627\u0631!",message:C,closeOnTouchOutside:!1,closeOnHardwareBackPress:!1,showConfirmButton:!0,confirmText:"\u0628\u0627\u0634\u0647",confirmButtonColor:M,onConfirmPressed:function(){"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==C?(e.navigation.navigate("home"),g(!1)):g(!1)},titleStyle:{fontFamily:"MontserratBold",fontSize:13,color:"\u06a9\u062f \u0645\u0639\u0631\u0641 \u062a\u0627\u06cc\u06cc\u062f \u0634\u062f"==C?M:B},messageStyle:{fontFamily:"Montserrat",fontSize:13},confirmButtonTextStyle:{fontFamily:"Montserrat",fontSize:13}})]})})};const so=function(e){var t=(0,f.default)();return(0,ue.jsxs)(t.Navigator,{initialRouteName:"splash",children:[(0,ue.jsx)(t.Screen,{name:"splash",component:me,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"login",component:Me,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"otp",component:qe,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"register1",component:Ue,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"register2",component:Ln,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"home",component:ot,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"web",component:Kn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"ticket",component:$n,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"order",component:rt,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"ordercolor",component:qn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"chat",component:Zt,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"chatticket",component:oo,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"form",component:rn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"searching",component:cn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"list",component:mn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"service",component:wn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"detailsService",component:Un,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"final",component:On,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"orderlist",component:Bn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"profile",component:Rn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"mdfwhite",component:Wn,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"wallet",component:ro,options:{headerShown:!1}}),(0,ue.jsx)(t.Screen,{name:"walletCode",component:lo,options:{headerShown:!1}})]})};var uo=o(4540),co=o(5847);function fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var go={mobile:null};const mo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case E:case W:case H:case V:case N:case q:case G:return ho(ho({},e),{},{data:t.data});case J:return ho(ho({},e),{},{datatoken:t.data});case U:case Q:case Y:case Z:return ho(ho({},e),{},{data:t.data});case K:return go;default:return e}};function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xo={mobile:null};const bo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case mt:case yt:case pt:case xt:case bt:case jt:case wt:case vt:case St:case Ct:case Ot:case zt:case kt:case Pt:case Mt:return po(po({},e),{},{data:t.data});default:return e}};function jo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach((function(t){(0,se.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vo={mobile:null};const So=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vo,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Lt:case At:case Wt:case Ht:case Vt:case Et:return wo(wo({},e),{},{data:t.data});case Nt:return wo(wo({},e),{},{datamdf:t.data});case qt:return wo(wo({},e),{},{datagroup:t.data});case Gt:case Ut:return wo(wo({},e),{},{data:t.data});default:return e}};var Co=o(2214),Oo=o(1567);o(4179);d.default.forceRTL(!1),d.default.allowRTL(!1);var zo=Co.createURL("/");function ko(){if("android"==ye.default.OS){var e=function(){var e=(0,r.default)((function*(){var e=yield(0,Oo.default)().requestPermission();(e===Oo.default.AuthorizationStatus.AUTHORIZED||e===Oo.default.AuthorizationStatus.PROVISIONAL)&&console.log("Authorization status:",e)}));return function(){return e.apply(this,arguments)}}();(0,c.useEffect)((function(){e()?(0,Oo.default)().getToken().then((function(e){e&&ie.default.setItem("expo_token",e).then((function(){console.log("token save in app.js")}))})):console.log("filed token stutus",authStatus),(0,Oo.default)().getInitialNotification().then(function(){var e=(0,r.default)((function*(e){e&&console.log("Notification caused app to open from quit state:",e.notification)}));return function(t){return e.apply(this,arguments)}}()),(0,Oo.default)().onNotificationOpenedApp(function(){var e=(0,r.default)((function*(e){console.log("Notification caused app to open from background state:",e.notification)}));return function(t){return e.apply(this,arguments)}}()),(0,Oo.default)().setBackgroundMessageHandler(function(){var e=(0,r.default)((function*(e){console.log("Message handled in the background!",e)}));return function(t){return e.apply(this,arguments)}}());var t=(0,Oo.default)().onMessage(function(){var e=(0,r.default)((function*(e){Alert.alert("\u06cc\u06a9 \u067e\u06cc\u0627\u0645 \u062c\u062f\u06cc\u062f \u062f\u0627\u0631\u06cc\u062f ",JSON.stringify(e.notification.body))}));return function(t){return e.apply(this,arguments)}}());return t}),[])}var t={prefixes:[zo],config:{screens:{splash:"splash"}}},n=(0,l.useFonts)({Montserrat:o(9965),Montserrat1:o(1944),MontserratBold:o(2862),MontserratBold1:o(4347),MontserratLight:o(8429)});if(!(0,i.default)(n,1)[0])return null;var d=(0,uo.combineReducers)({userLogin:mo,userProduct:bo,finalproduct:So}),u=(0,uo.legacy_createStore)(d,(0,uo.applyMiddleware)(co.default));return(0,ue.jsx)(re.Provider,{store:u,children:(0,ue.jsxs)(a.default,{linking:t,children:[(0,ue.jsx)(s.default,{backgroundColor:"white"}),(0,ue.jsx)(so,{})]})})}u.default.create({container:{flex:1,backgroundColor:"#fff",alignItems:"center",justifyContent:"center"}})},9965:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobile.ce44a86237c3895735c4.ttf"},1944:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobile1.ddcd76359a9a71d9ecee.ttf"},2862:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileBold.9cbecc29434c75855290.ttf"},4347:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileBold1.939a13b3e8ee2ece9fcc.ttf"},8429:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/IRANSansMobileLight.e9646c48c5352e7e37dc.ttf"},2546:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/App.9be54a181c945c217c90.jpg"},4092:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/Cutunix.1d51011ddc1636551032.png"},3743:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/wat.bded4f44087fb4e89252.png"},4654:()=>{},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"cutunix","version":"1.0.2","main":"node_modules/expo/AppEntry.js","scripts":{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web","eject":"expo eject"},"dependencies":{"@expo/config-plugins":"~6.0.0","@expo/vector-icons":"^13.0.0","@expo/webpack-config":"^18.0.1","@react-native-async-storage/async-storage":"^1.17.11","@react-native-community/netinfo":"^9.3.7","@react-native-firebase/app":"^18.7.3","@react-native-firebase/messaging":"^18.7.3","@react-navigation/native":"^6.0.11","@react-navigation/native-stack":"^6.7.0","axios":"^0.27.2","expo":"^48.0.0","expo-av":"~13.2.1","expo-constants":"~14.2.1","expo-device":"~5.2.1","expo-document-picker":"~11.2.2","expo-file-system":"~15.2.2","expo-font":"~11.1.1","expo-image-picker":"~14.1.1","expo-linking":"~4.0.1","expo-notifications":"~0.18.1","expo-status-bar":"~1.4.4","expo-updates":"~0.16.4","form-data":"^4.0.0","native-base":"^3.4.28","native-notify":"^3.0.2","react":"^18.2.0","react-dom":"^18.2.0","react-native":"0.71.8","react-native-awesome-alerts":"^2.0.0","react-native-axios":"^0.17.1","react-native-mask-input":"^1.2.2","react-native-otp-textinput":"^0.0.9","react-native-safe-area-context":"4.5.0","react-native-screens":"~3.20.0","react-native-svg":"13.4.0","react-native-swiper":"^1.6.0","react-native-web":"^0.18.11","react-native-webview":"^11.26.0","react-redux":"^8.0.2","redux":"^4.2.0","redux-thunk":"^2.4.1","setimmediate":"^1.0.5"},"devDependencies":{"@babel/core":"^7.12.9"},"private":true}')}},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=t,(()=>{var e=[];o.O=(t,n,i,r)=>{if(!n){var a=1/0;for(u=0;u<e.length;u++){for(var[n,i,r]=e[u],l=!0,s=0;s<n.length;s++)(!1&r||a>=r)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(l=!1,r<a&&(a=r));if(l){e.splice(u--,1);var d=i();void 0!==d&&(t=d)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,i,r]}})(),o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;o.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"===typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"===typeof n.then)return n}var r=Object.create(null);o.r(r);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&i&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(r,a),r}})(),o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),o.p="/",(()=>{var e={179:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var i,r,[a,l,s]=n,d=0;if(a.some((t=>0!==e[t]))){for(i in l)o.o(l,i)&&(o.m[i]=l[i]);if(s)var u=s(o)}for(t&&t(n);d<a.length;d++)r=a[d],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=self.webpackChunkweb=self.webpackChunkweb||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var i=o.O(void 0,[898],(()=>o(2866)));i=o.O(i)})(); //# sourceMappingURL=main.9ceff0f3.js.map
Coded With 💗 by
0x6ick Mod By V1rus_Alfa