companion-teacher-register.c5c5d4da.js 56 KB

1234567
  1. import{a as K,F as G}from"./area.c19ee2ac.js";import{d as M,o as O,a_ as B,a8 as U,ax as R,a$ as b,b0 as E,b1 as X,b2 as J,b3 as j,k as l,p as Z,j as Y,b4 as _,s as ee,g as z,b5 as V,b6 as te,b7 as H,aR as se,a2 as S,b8 as ie,R as oe,X as re,B as T,l as y,F as ae,P as k}from"./index.879f7421.js";import{I as ne,c as le}from"./validate.598a2b58.js";import{U as he}from"./index.fa52a511.js";import{I as F}from"./index.c463dbd0.js";import{a as q}from"./function-call.3c67215d.js";import{P as W}from"./index.ea988859.js";import{C as ce}from"./index.4aec72fa.js";import{F as I}from"./index.00975bf6.js";import{R as ue,a as P}from"./index.344c1924.js";import{T as L}from"./index.30499db4.js";import{C as pe}from"./index.60364ca1.js";import"./index.3c962eae.js";import"./index.58ad42d7.js";import"./use-tab-status.fe36a003.js";import"./index.e17cc929.js";import"./index.9a3a3b84.js";const de="_register_1lnaq_15",fe="_banner_1lnaq_50",ge="_radioSection_1lnaq_55",me="_system_1lnaq_62",ve="_title_1lnaq_87",we="_tips_1lnaq_101",Ce="_radioItem_1lnaq_118",be="_stautsS_1lnaq_130",ye="_cell_title_1lnaq_174",xe="_protocol_1lnaq_184",Ae="_c_1lnaq_71",Ie="_phoneTips_1lnaq_195";var m={"van-field--error":"_van-field--error_1lnaq_10","van-field__control":"_van-field__control_1lnaq_10",register:de,banner:fe,radioSection:ge,"btn-submit":"_btn-submit_1lnaq_58",system:me,"van-cell--required":"_van-cell--required_1lnaq_35","cell-group":"_cell-group_1lnaq_71","top-tips":"_top-tips_1lnaq_76",title:ve,tips:we,radioItem:Ce,"van-picker__confirm":"_van-picker__confirm_1lnaq_126",stautsS:be,"submit-container":"_submit-container_1lnaq_133","icon-close":"_icon-close_1lnaq_137","submit-img":"_submit-img_1lnaq_144","submit-title":"_submit-title_1lnaq_147","submit-o":"_submit-o_1lnaq_153","submit-tips":"_submit-tips_1lnaq_163","van-button":"_van-button_1lnaq_170",cell_title:ye,protocol:xe,c:Ae,phoneTips:Ie},Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAApVJREFUWEftl82rjVEUxn9PknC7mCEuKUJKSRkoIyUpwztBGbi+RtQt/gRRBkou7ogSZSIxMVEY+EgKRVKui5gQIhKP1m2/2k7nnPd8Stw1Ou8++13796691rPXFn+ZqRM8tmcDPyS9btdf20C2twKHAQN7JZ1qB6plINtzgePA+gqAy8AOSS9aAWsJyPZ24BDQW2PR98CgpOFmoZoCsj0fOAmsrVjoChC+qo0PSBppFKwhINsxbzdwAOjJnP8WCdsDKXLTsjkfgf3AMUmRZ3WtFMh2H3AaWFPh6RKwszJXbM8BTlTJravAJkmv6hE1AnQbWJk5edtINWXVNyN795akVS0D2Y7t+ZDyI/xcSFFpSG9szwKGgI0ZRI+kT7Wg6kbI9nTgXfZyn6TRsjzI/7c9D3iWjfVKiryqauNAoV2lEbI9OalunrwR0gnAog5v2eM49zKfIQV3krp/Gdsy25tTaZelRydyqNYaIQlnCqAQvaNlNEA3gXZJGqoG9BDYl+CmAuc6vGX9wOfk8yCwNP2uCXRN0pgqd7vsbV8HVv+7QLYXA9uA5ekr7wHDkqKSxqyeMHY0Qrb3AJEDEyuK4VvqhY78MSDbkZhnszOuskBDW/olne96hICXwBNgQaKIs63oqQeBaD/CngILQypqnWUd2TIgmq/7RYpE2Up6lLZnCRCyUZyRUdJR4lUP104BLQOikQ8blRQR+GW2owGLtiNsHRAJ3lWgqKiLacERSdFn50DPgbiRhG1IERsHGo9QEYFI4P8sh2zfAGZmQhe3jAcpJNEx5teWu8AUIM6wsK9AjOW2ApiUBkKfQodirLCbwPf0EBJSXMdDSN/IdultsmLBrj7+lUBbuvrJTTovvUo36a/t6T8B6vz6SJbFLFUAAAAASUVORK5CYII=",ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAA7dJREFUaEPdmk1oE0EUgN/bpUkxm20rHqvU4E9OLSI0/pxERFG8eOhNj3qooKDgwbMHoYJCe/Cqt4JeREEseLKagqg9xb9YtDelP7MTSVJ2n0zYlW2adGd/0obJcfPem/ftm33z3swgJPhbXV3dr2naCQAYBoCDRJRDRBMAsu4wFhExRCwDwGcAmHcc53VfX9/XpNzAuIY458OO41xCxDEi2h3FHiL+IqJpTdMeGYYxH8WGpxMZqFKpnLVt+zYAHIvjQAvdWV3X72QymRdR7IYGWllZOaxp2hQAFKIMGEKn6DjOeH9///sQOiANRERpzvldIroKAHqYQWLI2og4aRjGLUSsydiRAqpWq/vW1tamieiQjNGkZRDxQ09Pz1hvb++3INuBQIwx8Y08A4CdQcY6/P8SAJw3TXN2s3E2BeKcn7Zt+yki7uiws1LmieivrusXDMN42U6hLZCIDBG96hYYD0BAIeKpdpFqCSS+mXq9XuyCadYuEEupVKrQ6pvaAORms7fblQCk5h4AiERhGMbR5uy3AciyrPtEdE3W8HbKIeKDbDZ73e/DOiB30RRTbavWmbjvw3Ycp+BffNcBMcbebUEFEBeiWb9omuaRDbWcW5s9lxmNcw6Li4uQy+UglUrJqATK1Ot1KJfLMDg4CIZhBMr7BXRdP+fVfv8jxBh7I1tolkolWFhYgEwmA6Ojo5BOp0M50Cxcq9Vgbm4OKpUKDA0NQT6fD2tv1jTN40KpAbS8vDyi6/pHWSvibRaLxYYDcaH8MMJWoVCIFHVN00ZE69EAYoxNAMANWSAh1+xIlEglYcPn8z3TNG82gCzL+hmlOYvjUBzdVi9eNInZbHYPirYZEb+EiY5fNopjUXRk/COiA2hZ1mUieiij0E4mjINhZMP6hIhXBNAkEY2HVd4sU7VLFJ2EaWQ4xCkx5WYQ8WRcoKBE0WkYF2gGGWPfASCXBFA7KPHcW2fipvkAP8tiyv0mol1JAbWCEs+SWLOCfETEPwKoKlqGIOGw//unmNDtcGQa7olWQkkgtaaccklBubSt3MKqXOmjXHGqXPugZIPnnsJ9kq0Gur4Fd6OkziaJWzyKI0Z1trHcKKmz0SiAlNsKdlO4Opv1Aki54xQBpdSBl7cWKXUk6UFxzs/Ytv2kW85ZYx0a+yOlzLG+B6XUxQsPSqmrMf6iVZnLS82VuDLXy5rB3NO/i0lcALRt+/HAwIB0G9Oq3Qm8vCTbIwk5/xVNx3HyiLi31RVNIvqhaVqpE1c0/wHHpUliZEbjnQAAAABJRU5ErkJggg==",Oe="./assets/top-banner1.af55128a.png";const Be="_uploader_jyku5_1",Ee="_uploaderText_jyku5_52",Te="_uploadImg_jyku5_57";var A={"uploader-section":"_uploader-section_jyku5_1","img-close":"_img-close_jyku5_9","col-uploader":"_col-uploader_jyku5_24",uploader:Be,uploaderText:Ee,uploadImg:Te};const $={};$.getData=e=>new Promise((t,s)=>{let i={};We(e).then(o=>{i.arrayBuffer=o,i.orientation=He(o),t(i)}).catch(o=>{s(o)})});function We(e){let t=null;return new Promise((s,i)=>{if(e.src)if(/^data\:/i.test(e.src))t=Me(e.src),s(t);else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(a){t=a.target.result,s(t)},Ye(e.src,function(a){o.readAsArrayBuffer(a)})}else{var r=new XMLHttpRequest;r.onload=function(){if(this.status==200||this.status===0)t=r.response,s(t);else throw"Could not load image";r=null},r.open("GET",e.src,!0),r.responseType="arraybuffer",r.send(null)}else i("img error")})}function Ye(e,t){var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="blob",s.onload=function(i){(this.status==200||this.status===0)&&t(this.response)},s.send()}function Me(e){e=e.replace(/^data\:([^\;]+)\;base64,/gmi,"");for(var t=atob(e),s=t.length,i=new ArrayBuffer(s),o=new Uint8Array(i),r=0;r<s;r++)o[r]=t.charCodeAt(r);return i}function Xe(e,t,s){var i="",o;for(o=t,s+=t;o<s;o++)i+=String.fromCharCode(e.getUint8(o));return i}function He(e){var t=new DataView(e),s=t.byteLength,i,o,r,a,h,u,n,c,p,d;if(t.getUint8(0)===255&&t.getUint8(1)===216)for(p=2;p<s;){if(t.getUint8(p)===255&&t.getUint8(p+1)===225){n=p;break}p++}if(n&&(o=n+4,r=n+10,Xe(t,o,4)==="Exif"&&(u=t.getUint16(r),h=u===18761,(h||u===19789)&&t.getUint16(r+2,h)===42&&(a=t.getUint32(r+4,h),a>=8&&(c=r+a)))),c){for(s=t.getUint16(c,h),d=0;d<s;d++)if(p=c+d*12+2,t.getUint16(p,h)===274){p+=8,i=t.getUint16(p,h);break}}return i}var Fe=(e,t)=>{const s=e.__vccOpts||e;for(const[i,o]of t)s[i]=o;return s};const Le=M({data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:()=>[1,1]},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:()=>10}},computed:{cropInfo(){let e={};if(e.top=this.cropOffsertY>21?"-21px":"0px",e.width=this.cropW>0?this.cropW:0,e.height=this.cropH>0?this.cropH:0,this.infoTrue){let t=1;this.high&&!this.full&&(t=window.devicePixelRatio),this.enlarge!==1&!this.full&&(t=Math.abs(Number(this.enlarge))),e.width=e.width*t,e.height=e.height*t,this.full&&(e.width=e.width/this.scale,e.height=e.height/this.scale)}return e.width=e.width.toFixed(0),e.height=e.height.toFixed(0),e},isIE(){return!!window.ActiveXObject||"ActiveXObject"in window},passive(){return this.isIE?null:{passive:!1}}},watch:{img(){this.checkedImg()},imgs(e){e!==""&&this.reload()},cropW(){this.showPreview()},cropH(){this.showPreview()},cropOffsertX(){this.showPreview()},cropOffsertY(){this.showPreview()},scale(e,t){this.showPreview()},x(){this.showPreview()},y(){this.showPreview()},autoCrop(e){e&&this.goAutoCrop()},autoCropWidth(){this.autoCrop&&this.goAutoCrop()},autoCropHeight(){this.autoCrop&&this.goAutoCrop()},mode(){this.checkedImg()},rotate(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion(e){var t=navigator.userAgent.split(" "),s="";let i=0;const o=new RegExp(e,"i");for(var r=0;r<t.length;r++)o.test(t[r])&&(s=t[r]);return s?i=s.split("/")[1].split("."):i=["0","0","0"],i},checkOrientationImage(e,t,s,i){if(this.getVersion("chrome")[0]>=81)t=-1;else if(this.getVersion("safari")[0]>=605){const a=this.getVersion("version");a[0]>13&&a[1]>1&&(t=-1)}else{const a=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(a){let h=a[1];h=h.split("_"),(h[0]>13||h[0]>=13&&h[1]>=4)&&(t=-1)}}let o=document.createElement("canvas"),r=o.getContext("2d");switch(r.save(),t){case 2:o.width=s,o.height=i,r.translate(s,0),r.scale(-1,1);break;case 3:o.width=s,o.height=i,r.translate(s/2,i/2),r.rotate(180*Math.PI/180),r.translate(-s/2,-i/2);break;case 4:o.width=s,o.height=i,r.translate(0,i),r.scale(1,-1);break;case 5:o.height=s,o.width=i,r.rotate(.5*Math.PI),r.scale(1,-1);break;case 6:o.width=i,o.height=s,r.translate(i/2,s/2),r.rotate(90*Math.PI/180),r.translate(-s/2,-i/2);break;case 7:o.height=s,o.width=i,r.rotate(.5*Math.PI),r.translate(s,-i),r.scale(-1,1);break;case 8:o.height=s,o.width=i,r.translate(i/2,s/2),r.rotate(-90*Math.PI/180),r.translate(-s/2,-i/2);break;default:o.width=s,o.height=i}r.drawImage(e,0,0,s,i),r.restore(),o.toBlob(a=>{let h=URL.createObjectURL(a);URL.revokeObjectURL(this.imgs),this.imgs=h},"image/"+this.outputType,1)},checkedImg(){if(this.img===null||this.img===""){this.imgs="",this.clearCrop();return}this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();let e=new Image;if(e.onload=()=>{if(this.img==="")return this.$emit("img-load","error"),!1;let s=e.width,i=e.height;$.getData(e).then(o=>{this.orientation=o.orientation||1;let r=Number(this.maxImgSize);if(!this.orientation&&s<r&i<r){this.imgs=this.img;return}s>r&&(i=i/s*r,s=r),i>r&&(s=s/i*r,i=r),this.checkOrientationImage(e,this.orientation,s,i)})},e.onerror=()=>{this.$emit("img-load","error")},this.img.substr(0,4)!=="data"&&(e.crossOrigin=""),this.isIE){var t=new XMLHttpRequest;t.onload=function(){var s=URL.createObjectURL(this.response);e.src=s},t.open("GET",this.img,!0),t.responseType="blob",t.send()}else e.src=this.img},startMove(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in e?e.clientX:e.touches[0].clientX)-this.x,this.moveY=("clientY"in e?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),e.touches.length==2&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale(e){e.preventDefault();let t=this.scale;var s={x:this.touches[0].clientX,y:this.touches[0].clientY},i={x:e.touches[0].clientX,y:e.touches[0].clientY},o={x:this.touches[1].clientX,y:this.touches[1].clientY},r={x:e.touches[1].clientX,y:e.touches[1].clientY},a=Math.sqrt(Math.pow(s.x-o.x,2)+Math.pow(s.y-o.y,2)),h=Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2)),u=h-a,n=1;n=n/this.trueWidth>n/this.trueHeight?n/this.trueHeight:n/this.trueWidth,n=n>.1?.1:n;var c=n*u;if(!this.touchNow){if(this.touchNow=!0,u>0?t+=Math.abs(c):u<0&&t>Math.abs(c)&&(t-=Math.abs(c)),this.touches=e.touches,setTimeout(()=>{this.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t}},cancelTouchScale(e){window.removeEventListener("touchmove",this.touchScale)},moveImg(e){if(e.preventDefault(),e.touches&&e.touches.length===2)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;let t="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY,i,o;i=t-this.moveX,o=s-this.moveY,this.$nextTick(()=>{if(this.centerBox){let r=this.getImgAxis(i,o,this.scale),a=this.getCropAxis(),h=this.trueHeight*this.scale,u=this.trueWidth*this.scale,n,c,p,d;switch(this.rotate){case 1:case-1:case 3:case-3:n=this.cropOffsertX-this.trueWidth*(1-this.scale)/2+(h-u)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2+(u-h)/2,p=n-h+this.cropW,d=c-u+this.cropH;break;default:n=this.cropOffsertX-this.trueWidth*(1-this.scale)/2,c=this.cropOffsertY-this.trueHeight*(1-this.scale)/2,p=n-u+this.cropW,d=c-h+this.cropH;break}r.x1>=a.x1&&(i=n),r.y1>=a.y1&&(o=c),r.x2<=a.x2&&(i=p),r.y2<=a.y2&&(o=d)}this.x=i,this.y=o,this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})})},leaveImg(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize(e){e.preventDefault();let t=this.scale;var s=e.deltaY||e.wheelDelta,i=navigator.userAgent.indexOf("Firefox");s=i>0?s*30:s,this.isIE&&(s=-s);var o=this.coe;o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth;var r=o*s;r<0?t+=Math.abs(r):t>Math.abs(r)&&(t-=Math.abs(r));let a=r<0?"add":"reduce";if(a!==this.coeStatus&&(this.coeStatus=a,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(()=>{this.scaling=!1,this.coe=this.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},changeScale(e){let t=this.scale;e=e||1;var s=20;if(s=s/this.trueWidth>s/this.trueHeight?s/this.trueHeight:s/this.trueWidth,e=e*s,e>0?t+=Math.abs(e):t>Math.abs(e)&&(t-=Math.abs(e)),!this.checkoutImgAxis(this.x,this.y,t))return!1;this.scale=t},createCrop(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,s="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick(()=>{var i=t-this.cropX,o=s-this.cropY;if(i>0?(this.cropW=i+this.cropChangeX>this.w?this.w-this.cropChangeX:i,this.cropOffsertX=this.cropChangeX):(this.cropW=this.w-this.cropChangeX+Math.abs(i)>this.w?this.cropChangeX:Math.abs(i),this.cropOffsertX=this.cropChangeX+i>0?this.cropChangeX+i:0),!this.fixed)o>0?(this.cropH=o+this.cropChangeY>this.h?this.h-this.cropChangeY:o,this.cropOffsertY=this.cropChangeY):(this.cropH=this.h-this.cropChangeY+Math.abs(o)>this.h?this.cropChangeY:Math.abs(o),this.cropOffsertY=this.cropChangeY+o>0?this.cropChangeY+o:0);else{var r=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];r+this.cropOffsertY>this.h?(this.cropH=this.h-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0],i>0?this.cropOffsertX=this.cropChangeX:this.cropOffsertX=this.cropChangeX-this.cropW):this.cropH=r,this.cropOffsertY=this.cropOffsertY}})},changeCropSize(e,t,s,i,o){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=s,this.changeCropTypeX=i,this.changeCropTypeY=o,this.cropX="clientX"in e?e.clientX:e.touches[0].clientX,this.cropY="clientY"in e?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow(e){e.preventDefault();var t="clientX"in e?e.clientX:e.touches?e.touches[0].clientX:0,s="clientY"in e?e.clientY:e.touches?e.touches[0].clientY:0;let i=this.w,o=this.h,r=0,a=0;if(this.centerBox){let h=this.getImgAxis(),u=h.x2,n=h.y2;r=h.x1>0?h.x1:0,a=h.y1>0?h.y1:0,i>u&&(i=u),o>n&&(o=n)}this.$nextTick(()=>{var h=t-this.cropX,u=s-this.cropY;if(this.canChangeX&&(this.changeCropTypeX===1?this.cropOldW-h>0?(this.cropW=i-this.cropChangeX-h<=i-r?this.cropOldW-h:this.cropOldW+this.cropChangeX-r,this.cropOffsertX=i-this.cropChangeX-h<=i-r?this.cropChangeX+h:r):(this.cropW=Math.abs(h)+this.cropChangeX<=i?Math.abs(h)-this.cropOldW:i-this.cropOldW-this.cropChangeX,this.cropOffsertX=this.cropChangeX+this.cropOldW):this.changeCropTypeX===2&&(this.cropOldW+h>0?(this.cropW=this.cropOldW+h+this.cropOffsertX<=i?this.cropOldW+h:i-this.cropOffsertX,this.cropOffsertX=this.cropChangeX):(this.cropW=i-this.cropChangeX+Math.abs(h+this.cropOldW)<=i-r?Math.abs(h+this.cropOldW):this.cropChangeX-r,this.cropOffsertX=i-this.cropChangeX+Math.abs(h+this.cropOldW)<=i-r?this.cropChangeX-Math.abs(h+this.cropOldW):r))),this.canChangeY&&(this.changeCropTypeY===1?this.cropOldH-u>0?(this.cropH=o-this.cropChangeY-u<=o-a?this.cropOldH-u:this.cropOldH+this.cropChangeY-a,this.cropOffsertY=o-this.cropChangeY-u<=o-a?this.cropChangeY+u:a):(this.cropH=Math.abs(u)+this.cropChangeY<=o?Math.abs(u)-this.cropOldH:o-this.cropOldH-this.cropChangeY,this.cropOffsertY=this.cropChangeY+this.cropOldH):this.changeCropTypeY===2&&(this.cropOldH+u>0?(this.cropH=this.cropOldH+u+this.cropOffsertY<=o?this.cropOldH+u:o-this.cropOffsertY,this.cropOffsertY=this.cropChangeY):(this.cropH=o-this.cropChangeY+Math.abs(u+this.cropOldH)<=o-a?Math.abs(u+this.cropOldH):this.cropChangeY-a,this.cropOffsertY=o-this.cropChangeY+Math.abs(u+this.cropOldH)<=o-a?this.cropChangeY-Math.abs(u+this.cropOldH):a))),this.canChangeX&&this.fixed){var n=this.cropW/this.fixedNumber[0]*this.fixedNumber[1];n+this.cropOffsertY>o?(this.cropH=o-this.cropOffsertY,this.cropW=this.cropH/this.fixedNumber[1]*this.fixedNumber[0]):this.cropH=n}if(this.canChangeY&&this.fixed){var c=this.cropH/this.fixedNumber[1]*this.fixedNumber[0];c+this.cropOffsertX>i?(this.cropW=i-this.cropOffsertX,this.cropH=this.cropW/this.fixedNumber[0]*this.fixedNumber[1]):this.cropW=c}})},checkCropLimitSize(){let{cropW:e,cropH:t,limitMinSize:s}=this,i=new Array;return Array.isArray[s]?i=s:i=[s,s],e=parseFloat(i[0]),t=parseFloat(i[1]),[e,t]},changeCropEnd(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop(){this.cropW===0&&this.cropH===0&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop(){this.crop=!0},stopCrop(){this.crop=!1},clearCrop(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;if(e.touches&&e.touches.length===2)return this.crop=!1,this.startMove(e),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);let t="clientX"in e?e.clientX:e.touches[0].clientX,s="clientY"in e?e.clientY:e.touches[0].clientY,i,o;i=t-this.cropOffsertX,o=s-this.cropOffsertY,this.cropX=i,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop(e,t){let s=0,i=0;e&&(e.preventDefault(),s="clientX"in e?e.clientX:e.touches[0].clientX,i="clientY"in e?e.clientY:e.touches[0].clientY),this.$nextTick(()=>{let o,r,a=s-this.cropX,h=i-this.cropY;if(t&&(a=this.cropOffsertX,h=this.cropOffsertY),a<=0?o=0:a+this.cropW>this.w?o=this.w-this.cropW:o=a,h<=0?r=0:h+this.cropH>this.h?r=this.h-this.cropH:r=h,this.centerBox){let u=this.getImgAxis();o<=u.x1&&(o=u.x1),o+this.cropW>u.x2&&(o=u.x2-this.cropW),r<=u.y1&&(r=u.y1),r+this.cropH>u.y2&&(r=u.y2-this.cropH)}this.cropOffsertX=o,this.cropOffsertY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})})},getImgAxis(e,t,s){e=e||this.x,t=t||this.y,s=s||this.scale;let i={x1:0,x2:0,y1:0,y2:0},o=this.trueWidth*s,r=this.trueHeight*s;switch(this.rotate){case 0:i.x1=e+this.trueWidth*(1-s)/2,i.x2=i.x1+this.trueWidth*s,i.y1=t+this.trueHeight*(1-s)/2,i.y2=i.y1+this.trueHeight*s;break;case 1:case-1:case 3:case-3:i.x1=e+this.trueWidth*(1-s)/2+(o-r)/2,i.x2=i.x1+this.trueHeight*s,i.y1=t+this.trueHeight*(1-s)/2+(r-o)/2,i.y2=i.y1+this.trueWidth*s;break;default:i.x1=e+this.trueWidth*(1-s)/2,i.x2=i.x1+this.trueWidth*s,i.y1=t+this.trueHeight*(1-s)/2,i.y2=i.y1+this.trueHeight*s;break}return i},getCropAxis(){let e={x1:0,x2:0,y1:0,y2:0};return e.x1=this.cropOffsertX,e.x2=e.x1+this.cropW,e.y1=this.cropOffsertY,e.y2=e.y1+this.cropH,e},leaveCrop(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked(e){let t=document.createElement("canvas"),s=new Image,i=this.rotate,o=this.trueWidth,r=this.trueHeight,a=this.cropOffsertX,h=this.cropOffsertY;s.onload=()=>{if(this.cropW!==0){let c=t.getContext("2d"),p=1;this.high&!this.full&&(p=window.devicePixelRatio),this.enlarge!==1&!this.full&&(p=Math.abs(Number(this.enlarge)));let d=this.cropW*p,C=this.cropH*p,f=o*this.scale*p,g=r*this.scale*p,v=(this.x-a+this.trueWidth*(1-this.scale)/2)*p,w=(this.y-h+this.trueHeight*(1-this.scale)/2)*p;switch(n(d,C),c.save(),i){case 0:this.full?(n(d/this.scale,C/this.scale),c.drawImage(s,v/this.scale,w/this.scale,f/this.scale,g/this.scale)):c.drawImage(s,v,w,f,g);break;case 1:case-3:this.full?(n(d/this.scale,C/this.scale),v=v/this.scale+(f/this.scale-g/this.scale)/2,w=w/this.scale+(g/this.scale-f/this.scale)/2,c.rotate(i*90*Math.PI/180),c.drawImage(s,w,-v-g/this.scale,f/this.scale,g/this.scale)):(v=v+(f-g)/2,w=w+(g-f)/2,c.rotate(i*90*Math.PI/180),c.drawImage(s,w,-v-g,f,g));break;case 2:case-2:this.full?(n(d/this.scale,C/this.scale),c.rotate(i*90*Math.PI/180),v=v/this.scale,w=w/this.scale,c.drawImage(s,-v-f/this.scale,-w-g/this.scale,f/this.scale,g/this.scale)):(c.rotate(i*90*Math.PI/180),c.drawImage(s,-v-f,-w-g,f,g));break;case 3:case-1:this.full?(n(d/this.scale,C/this.scale),v=v/this.scale+(f/this.scale-g/this.scale)/2,w=w/this.scale+(g/this.scale-f/this.scale)/2,c.rotate(i*90*Math.PI/180),c.drawImage(s,-w-f/this.scale,v,f/this.scale,g/this.scale)):(v=v+(f-g)/2,w=w+(g-f)/2,c.rotate(i*90*Math.PI/180),c.drawImage(s,-w-f,v,f,g));break;default:this.full?(n(d/this.scale,C/this.scale),c.drawImage(s,v/this.scale,w/this.scale,f/this.scale,g/this.scale)):c.drawImage(s,v,w,f,g)}c.restore()}else{let c=o*this.scale,p=r*this.scale,d=t.getContext("2d");switch(d.save(),i){case 0:n(c,p),d.drawImage(s,0,0,c,p);break;case 1:case-3:n(p,c),d.rotate(i*90*Math.PI/180),d.drawImage(s,0,-p,c,p);break;case 2:case-2:n(c,p),d.rotate(i*90*Math.PI/180),d.drawImage(s,-c,-p,c,p);break;case 3:case-1:n(p,c),d.rotate(i*90*Math.PI/180),d.drawImage(s,-c,0,c,p);break;default:n(c,p),d.drawImage(s,0,0,c,p)}d.restore()}e(t)};var u=this.img.substr(0,4);u!=="data"&&(s.crossOrigin="Anonymous"),s.src=this.imgs;function n(c,p){t.width=Math.round(c),t.height=Math.round(p)}},getCropData(e){this.getCropChecked(t=>{e(t.toDataURL("image/"+this.outputType,this.outputSize))})},getCropBlob(e){this.getCropChecked(t=>{t.toBlob(s=>e(s),"image/"+this.outputType,this.outputSize)})},showPreview(){if(this.isCanShow)this.isCanShow=!1,setTimeout(()=>{this.isCanShow=!0},16);else return!1;let e=this.cropW,t=this.cropH,s=this.scale;var i={};i.div={width:`${e}px`,height:`${t}px`};let o=(this.x-this.cropOffsertX)/s,r=(this.y-this.cropOffsertY)/s,a=0;i.w=e,i.h=t,i.url=this.imgs,i.img={width:`${this.trueWidth}px`,height:`${this.trueHeight}px`,transform:`scale(${s})translate3d(${o}px, ${r}px, ${a}px)rotateZ(${this.rotate*90}deg)`},i.html=`
  2. <div class="show-preview" style="width: ${i.w}px; height: ${i.h}px,; overflow: hidden">
  3. <div style="width: ${e}px; height: ${t}px">
  4. <img src=${i.url} style="width: ${this.trueWidth}px; height: ${this.trueHeight}px; transform:
  5. scale(${s})translate3d(${o}px, ${r}px, ${a}px)rotateZ(${this.rotate*90}deg)">
  6. </div>
  7. </div>`,this.$emit("realTime",i),this.$emit("real-time",i)},reload(){let e=new Image;e.onload=()=>{this.w=parseFloat(window.getComputedStyle(this.$refs.cropper).width),this.h=parseFloat(window.getComputedStyle(this.$refs.cropper).height),this.trueWidth=e.width,this.trueHeight=e.height,this.original?this.scale=1:this.scale=this.checkedMode(),this.$nextTick(()=>{this.x=-(this.trueWidth-this.trueWidth*this.scale)/2+(this.w-this.trueWidth*this.scale)/2,this.y=-(this.trueHeight-this.trueHeight*this.scale)/2+(this.h-this.trueHeight*this.scale)/2,this.loading=!1,this.autoCrop&&this.goAutoCrop(),this.$emit("img-load","success"),this.$emit("imgLoad","success"),setTimeout(()=>{this.showPreview()},20)})},e.onerror=()=>{this.$emit("imgLoad","error"),this.$emit("img-load","error")},e.src=this.imgs},checkedMode(){let e=1,t=this.trueWidth,s=this.trueHeight;const i=this.mode.split(" ");switch(i[0]){case"contain":this.trueWidth>this.w&&(e=this.w/this.trueWidth),this.trueHeight*e>this.h&&(e=this.h/this.trueHeight);break;case"cover":t=this.w,e=t/this.trueWidth,s=s*e,s<this.h&&(s=this.h,e=s/this.trueHeight);break;default:try{let o=i[0];if(o.search("px")!==-1){o=o.replace("px",""),t=parseFloat(o);const r=t/this.trueWidth;let a=1,h=i[1];h.search("px")!==-1&&(h=h.replace("px",""),s=parseFloat(h),a=s/this.trueHeight),e=Math.min(r,a)}if(o.search("%")!==-1&&(o=o.replace("%",""),t=parseFloat(o)/100*this.w,e=t/this.trueWidth),i.length===2&&o==="auto"){let r=i[1];r.search("px")!==-1&&(r=r.replace("px",""),s=parseFloat(r),e=s/this.trueHeight),r.search("%")!==-1&&(r=r.replace("%",""),s=parseFloat(r)/100*this.h,e=s/this.trueHeight)}}catch{e=1}}return e},goAutoCrop(e,t){if(this.imgs===""||this.imgs===null)return;this.clearCrop(),this.cropping=!0;let s=this.w,i=this.h;if(this.centerBox){const a=Math.abs(this.rotate)%2>0;let h=(a?this.trueHeight:this.trueWidth)*this.scale,u=(a?this.trueWidth:this.trueHeight)*this.scale;s=h<s?h:s,i=u<i?u:i}var o=e||parseFloat(this.autoCropWidth),r=t||parseFloat(this.autoCropHeight);(o===0||r===0)&&(o=s*.8,r=i*.8),o=o>s?s:o,r=r>i?i:r,this.fixed&&(r=o/this.fixedNumber[0]*this.fixedNumber[1]),r>this.h&&(r=this.h,o=r/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(o,r)},changeCrop(e,t){if(this.centerBox){let s=this.getImgAxis();e>s.x2-s.x1&&(e=s.x2-s.x1,t=e/this.fixedNumber[0]*this.fixedNumber[1]),t>s.y2-s.y1&&(t=s.y2-s.y1,e=t/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=e,this.cropH=t,this.checkCropLimitSize(),this.$nextTick(()=>{this.cropOffsertX=(this.w-this.cropW)/2,this.cropOffsertY=(this.h-this.cropH)/2,this.centerBox&&this.moveCrop(null,!0)})},refresh(){this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(()=>{this.checkedImg()})},rotateLeft(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear(){this.rotate=0},checkoutImgAxis(e,t,s){e=e||this.x,t=t||this.y,s=s||this.scale;let i=!0;if(this.centerBox){let o=this.getImgAxis(e,t,s),r=this.getCropAxis();o.x1>=r.x1&&(i=!1),o.x2<=r.x2&&(i=!1),o.y1>=r.y1&&(i=!1),o.y2<=r.y2&&(i=!1)}return i}},mounted(){this.support="onwheel"in document.createElement("div")?"wheel":document.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll";let e=this;var t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(s,i,o){for(var r=atob(this.toDataURL(i,o).split(",")[1]),a=r.length,h=new Uint8Array(a),u=0;u<a;u++)h[u]=r.charCodeAt(u);s(new Blob([h],{type:e.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}}),Ne={key:0,class:"cropper-box"},ze=["src"],De={class:"cropper-view-box"},Ue=["src"],Re={key:1};function je(e,t,s,i,o,r){return O(),B("div",{class:"vue-cropper",ref:"cropper",onMouseover:t[28]||(t[28]=(...a)=>e.scaleImg&&e.scaleImg(...a)),onMouseout:t[29]||(t[29]=(...a)=>e.cancelScale&&e.cancelScale(...a))},[e.imgs?(O(),B("div",Ne,[U(b("div",{class:"cropper-box-canvas",style:E({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+e.rotate*90+"deg)"})},[b("img",{src:e.imgs,alt:"cropper-img",ref:"cropperImg"},null,8,ze)],4),[[R,!e.loading]])])):X("",!0),b("div",{class:J(["cropper-drag-box",{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping}]),onMousedown:t[0]||(t[0]=(...a)=>e.startMove&&e.startMove(...a)),onTouchstart:t[1]||(t[1]=(...a)=>e.startMove&&e.startMove(...a))},null,34),U(b("div",{class:"cropper-crop-box",style:E({width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"})},[b("span",De,[b("img",{style:E({width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+(e.x-e.cropOffsertX)/e.scale+"px,"+(e.y-e.cropOffsertY)/e.scale+"px,0)rotateZ("+e.rotate*90+"deg)"}),src:e.imgs,alt:"cropper-img"},null,12,Ue)]),b("span",{class:"cropper-face cropper-move",onMousedown:t[2]||(t[2]=(...a)=>e.cropMove&&e.cropMove(...a)),onTouchstart:t[3]||(t[3]=(...a)=>e.cropMove&&e.cropMove(...a))},null,32),e.info?(O(),B("span",{key:0,class:"crop-info",style:E({top:e.cropInfo.top})},j(e.cropInfo.width)+" \xD7 "+j(e.cropInfo.height),5)):X("",!0),e.fixedBox?X("",!0):(O(),B("span",Re,[b("span",{class:"crop-line line-w",onMousedown:t[4]||(t[4]=a=>e.changeCropSize(a,!1,!0,0,1)),onTouchstart:t[5]||(t[5]=a=>e.changeCropSize(a,!1,!0,0,1))},null,32),b("span",{class:"crop-line line-a",onMousedown:t[6]||(t[6]=a=>e.changeCropSize(a,!0,!1,1,0)),onTouchstart:t[7]||(t[7]=a=>e.changeCropSize(a,!0,!1,1,0))},null,32),b("span",{class:"crop-line line-s",onMousedown:t[8]||(t[8]=a=>e.changeCropSize(a,!1,!0,0,2)),onTouchstart:t[9]||(t[9]=a=>e.changeCropSize(a,!1,!0,0,2))},null,32),b("span",{class:"crop-line line-d",onMousedown:t[10]||(t[10]=a=>e.changeCropSize(a,!0,!1,2,0)),onTouchstart:t[11]||(t[11]=a=>e.changeCropSize(a,!0,!1,2,0))},null,32),b("span",{class:"crop-point point1",onMousedown:t[12]||(t[12]=a=>e.changeCropSize(a,!0,!0,1,1)),onTouchstart:t[13]||(t[13]=a=>e.changeCropSize(a,!0,!0,1,1))},null,32),b("span",{class:"crop-point point2",onMousedown:t[14]||(t[14]=a=>e.changeCropSize(a,!1,!0,0,1)),onTouchstart:t[15]||(t[15]=a=>e.changeCropSize(a,!1,!0,0,1))},null,32),b("span",{class:"crop-point point3",onMousedown:t[16]||(t[16]=a=>e.changeCropSize(a,!0,!0,2,1)),onTouchstart:t[17]||(t[17]=a=>e.changeCropSize(a,!0,!0,2,1))},null,32),b("span",{class:"crop-point point4",onMousedown:t[18]||(t[18]=a=>e.changeCropSize(a,!0,!1,1,0)),onTouchstart:t[19]||(t[19]=a=>e.changeCropSize(a,!0,!1,1,0))},null,32),b("span",{class:"crop-point point5",onMousedown:t[20]||(t[20]=a=>e.changeCropSize(a,!0,!1,2,0)),onTouchstart:t[21]||(t[21]=a=>e.changeCropSize(a,!0,!1,2,0))},null,32),b("span",{class:"crop-point point6",onMousedown:t[22]||(t[22]=a=>e.changeCropSize(a,!0,!0,1,2)),onTouchstart:t[23]||(t[23]=a=>e.changeCropSize(a,!0,!0,1,2))},null,32),b("span",{class:"crop-point point7",onMousedown:t[24]||(t[24]=a=>e.changeCropSize(a,!1,!0,0,2)),onTouchstart:t[25]||(t[25]=a=>e.changeCropSize(a,!1,!0,0,2))},null,32),b("span",{class:"crop-point point8",onMousedown:t[26]||(t[26]=a=>e.changeCropSize(a,!0,!0,2,2)),onTouchstart:t[27]||(t[27]=a=>e.changeCropSize(a,!0,!0,2,2))},null,32)]))],4),[[R,e.cropping]])],544)}var D=Fe(Le,[["render",je],["__scopeId","data-v-be5e5ddc"]]);typeof window!="undefined"&&window.Vue&&window.Vue.createApp({}).component("VueCropper",D);const Ve="_upbtn_15vje_1",qe="_uploadWarper_15vje_5",Pe="_bg_15vje_12",Qe="_btn_15vje_21",$e="_btn1_15vje_33",Ke="_img_15vje_44",Ge="_btndiv_15vje_53",Je="_wrapper_15vje_64";var x={upbtn:Ve,uploadWarper:qe,bg:Pe,btn:Qe,btn1:$e,img:Ke,btndiv:Ge,wrapper:Je},Ze=M({name:"o-cropper",components:{VueCropper:D},props:{hideInput:{type:Boolean,default:!1},option:{type:Object},onCancelTailor:{type:Function,default:()=>{}},getBase64Data:{type:Function,default:()=>{}},getBlob:{type:Function,default:()=>{}},getFile:{type:Function,default:()=>{}},imgOriginF:{type:Function,default:()=>{}}},data(){return{img:"",config:{ceilbutton:!1,outputSize:1,outputType:"png",info:!1,canScale:!0,autoCrop:!1,autoCropWidth:0,autoCropHeight:0,fixed:!0,fixedNumber:[1,1],full:!1,fixedBox:!0,canMove:!0,canMoveBox:!1,original:!1,centerBox:!0,high:!0,infoTrue:!1,maxImgSize:2e3,enlarge:1,mode:"100%",cancelButtonText:"\u53D6\u6D88",confirmButtonText:"\u786E\u5B9A",cancelButtonBackgroundColor:"#606266",confirmButtonBackgroundColor:"#ed594c",cancelButtonTextColor:"#ffffff",confirmButtonTextColor:"#ffffff"}}},mounted(){this.config=Object.assign(this.config,this.option)},methods:{addSlide(){if(document.getElementById("vertical")==null){const e=document.getElementsByClassName("cropper-crop-box")[0],t=document.createElement("div");t.id="vertical",t.style.width="1px",t.style.height="100%",t.style.top="0px",t.style.left="33%",t.style.position="absolute",t.style.backgroundColor="#fff",t.style.zIndex="522",t.style.opacity="0.5";const s=document.createElement("div");s.style.width="1px",s.style.height="100%",s.style.top="0px",s.style.right="33%",s.style.position="absolute",s.style.backgroundColor="#fff",s.style.zIndex="522",s.style.opacity="0.5";const i=document.createElement("div");i.style.width="100%",i.style.height="1px",i.style.top="33%",i.style.left="0px",i.style.position="absolute",i.style.backgroundColor="#fff",i.style.zIndex="522",i.style.opacity="0.5";const o=document.createElement("div");o.style.width="100%",o.style.height="1px",o.style.bottom="33%",o.style.left="0px",o.style.position="absolute",o.style.backgroundColor="#fff",o.style.zIndex="522",o.style.opacity="0.5";const r=document.createElement("div");r.style.width="30px",r.style.height="4px",r.style.top="-4px",r.style.left="-4px",r.style.position="absolute",r.style.backgroundColor="#fff",r.style.zIndex="522",r.style.opacity="1";const a=document.createElement("div");a.style.width="4px",a.style.height="30px",a.style.top="-4px",a.style.left="-4px",a.style.position="absolute",a.style.backgroundColor="#fff",a.style.zIndex="522",a.style.opacity="1";const h=document.createElement("div");h.style.width="30px",h.style.height="4px",h.style.top="-4px",h.style.right="-4px",h.style.position="absolute",h.style.backgroundColor="#fff",h.style.zIndex="522",h.style.opacity="1";const u=document.createElement("div");u.style.width="4px",u.style.height="30px",u.style.top="-4px",u.style.right="-4px",u.style.position="absolute",u.style.backgroundColor="#fff",u.style.zIndex="522",u.style.opacity="1";const n=document.createElement("div");n.style.width="30px",n.style.height="4px",n.style.bottom="-4px",n.style.left="-4px",n.style.position="absolute",n.style.backgroundColor="#fff",n.style.zIndex="522",n.style.opacity="1";const c=document.createElement("div");c.style.width="4px",c.style.height="30px",c.style.bottom="-4px",c.style.left="-4px",c.style.position="absolute",c.style.backgroundColor="#fff",c.style.zIndex="522",c.style.opacity="1";const p=document.createElement("div");p.style.width="30px",p.style.height="4px",p.style.bottom="-4px",p.style.right="-4px",p.style.position="absolute",p.style.backgroundColor="#fff",p.style.zIndex="522",p.style.opacity="1";const d=document.createElement("div");d.style.width="4px",d.style.height="30px",d.style.bottom="-4px",d.style.right="-4px",d.style.position="absolute",d.style.backgroundColor="#fff",d.style.zIndex="522",d.style.opacity="1",e.appendChild(t),e.appendChild(s),e.appendChild(i),e.appendChild(o),e.appendChild(r),e.appendChild(a),e.appendChild(h),e.appendChild(u),e.appendChild(n),e.appendChild(c),e.appendChild(p),e.appendChild(d)}},onLoadImg(e){return new Promise(function(t,s){const i=new FileReader;i.readAsDataURL(e),i.onload=o=>{t(o.target.result)}})},loadFile(e){if(e instanceof File)this.onLoadImg(e).then(t=>{this.img=t,setTimeout(()=>{this.config.autoCrop=!0,this.addSlide()},10)});else throw new Error("Arguments file is not File")},loadBase64(e){if(typeof e!="string")throw new Error("Arguments base64 is not string");const t=e.split(",");if(!/^data:image\/(.*?);base64$/.test(t[0]))throw new Error("Arguments base64 MIME is not image/*");if(!/^[\/]?([\da-zA-Z]+[\/+]+)*[\da-zA-Z]+([+=]{1,2}|[\/])?$/.test(t[1]))throw new Error("Not standard base64");this.img=e,setTimeout(()=>{this.config.autoCrop=!0,this.addSlide()},10)},rotating(e){this.$refs.cropper.rotateRight()},canceltailor(){this.img="",this.onCancelTailor()},tailoring(){this.$refs.cropper.getCropData(e=>{this.getBase64Data(e),this.getBlob(e),this.img="",this.config.autoCrop=!1}),this.$refs.cropper.getCropBlob(e=>{this.getBase64Data(e),this.getBlob(e);const t={jpeg:"jpg",png:"png",webp:"webp"}[this.config.outputType],s=new Date().getTime(),i=new File([e],`${s}.${t}`,{type:`image/${this.config.outputType}`});this.getFile(i),this.img="",this.config.autoCrop=!1})},async upPhoto(e){let t=e.target.files[0];this.$refs.headInput.value=null,t!=null&&(this.imgOriginF(t),this.img=await this.onLoadImg(t),this.config.autoCrop=!0,setTimeout(()=>{this.addSlide()},20))},onCropMoving(e){},onImgMoving(e){}},render(){return l("div",{class:[x.upbtn,x.uploadWarper]},[this.hideInput,this.hideInput?null:l("input",{style:"opacity: 0;",class:x.upbtn,type:"file",accept:"image/*",onChange:this.upPhoto,ref:"headInput"},null),this.img!=""?l("div",{class:x.bg},[this.config.ceilbutton?l("div",{class:x.btndiv},[l("div",{class:x.btn,onClick:this.canceltailor,style:{backgroundColor:this.config.cancelButtonBackgroundColor,color:this.config.cancelButtonTextColor}},[this.config.cancelButtonText]),l("div",{class:x.img,onClick:this.rotating},null),l("div",{class:x.btn,onClick:this.tailoring,style:{backgroundColor:this.config.confirmButtonBackgroundColor,color:this.config.confirmButtonTextColor}},[this.config.confirmButtonText])]):null,l("div",{class:x.wrapper},[l(D,{ref:"cropper",img:this.img,outputSize:this.config.outputSize,outputType:this.config.outputType,info:this.config.info,canScale:this.config.canScale,autoCrop:this.config.autoCrop,autoCropWidth:this.config.autoCropWidth,autoCropHeight:this.config.autoCropHeight,fixedBox:this.config.fixedBox,fixed:this.config.fixed,fixedNumber:this.config.fixedNumber,full:this.config.full,canMove:this.config.canMove,canMoveBox:this.config.canMoveBox,original:this.config.original,centerBox:this.config.centerBox,high:this.config.high,infoTrue:this.config.infoTrue,maxImgSize:this.config.maxImgSize,enlarge:this.config.enlarge,mode:this.config.mode,onCropMoving:this.onCropMoving,onImgMoving:this.onImgMoving},null)]),this.config.ceilbutton?null:l("div",{class:x.btndiv},[l("div",{class:x.btn,onClick:this.canceltailor,style:{backgroundColor:this.config.cancelButtonBackgroundColor,color:this.config.cancelButtonTextColor}},[this.config.cancelButtonText]),l("div",{class:x.img,onClick:this.rotating},null),l("div",{class:x.btn,onClick:this.tailoring,style:{backgroundColor:this.config.confirmButtonBackgroundColor,color:this.config.confirmButtonTextColor}},[this.config.confirmButtonText])])]):null])}}),N="data:image/png;base64,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",Q=M({name:"col-upload",props:{modelValue:String,tips:{type:String,default:"\u70B9\u51FB\u4E0A\u4F20"},deletable:{type:Boolean,default:!0},native:{type:Boolean,default:!1},cropper:{type:Boolean,default:!1},options:{type:Object,default:{}},uploadSize:{type:Number,default:5},onUploadChange:{type:Function,default:e=>{}},bucket:{type:String,default:"daya"}},methods:{nativeUpload(){Z({api:"chooseFile",content:{type:"img",max:1,bucket:this.bucket}},e=>{console.log(e,"fileUrl"),this.$emit("update:modelValue",e.fileUrl)})},beforeRead(e){return console.log(e,"beforeRead"),e.size/1024/1024<this.uploadSize?!0:(Y(`\u4E0A\u4F20\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ${this.uploadSize}MB`),!1)},beforeDelete(e,t){return!0},async afterRead(e,t){try{e.status="uploading",e.message="\u4E0A\u4F20\u4E2D...",await this.uploadFile(e.file)}catch(s){console.log(s,"2323"),_()}},onClose(e){this.$emit("update:modelValue",null),this.onUploadChange(),e.stopPropagation()},async getFile(e){try{await this.uploadFile(e)}catch{}},async uploadFile(e){try{const t=ee.platformApi+"/open/getUploadSign",s=e.name||"",i=s&&s.replace(/ /gi,"_"),o=new Date().getTime()+i;console.log(e);const r=await z.post(t,{data:{filename:i,bucketName:this.bucket,postData:{filename:i,acl:"public-read",key:o,unknowValueField:[]}}});V.loading({message:"\u52A0\u8F7D\u4E2D...",forbidClick:!0,loadingType:"spinner",duration:0});const a={policy:r.data.policy,signature:r.data.signature,key:o,KSSAccessKeyId:r.data.kssAccessKeyId,acl:"public-read",name:i},h=new FormData;for(const n in a)h.append(n,a[n]);h.append("file",e,i),await te(H(this.bucket),{method:"POST",data:h}),console.log(H(this.bucket)+o);const u=H(this.bucket)+o;V.clear(),this.$emit("update:modelValue",u),this.onUploadChange(u)}catch(t){console.log(t,"uploadFile")}}},render(){return se(()=>this.modelValue),l("div",{class:A["uploader-section"]},[this.modelValue&&this.deletable?l(S,{name:"cross",onClick:this.onClose,class:A["img-close"]},null):null,this.cropper&&!this.native?l("div",{class:A["col-uploader"]},[this.modelValue?l(F,{fit:"cover",position:"center",class:A.uploadImg,src:this.modelValue},null):l("div",{class:A.uploader},[l(S,{name:N,size:"32"},null),l("p",{class:A.uploaderText},[this.tips])]),l(Ze,{option:this.options,getFile:this.getFile},null)]):this.native?l("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},onClick:this.nativeUpload},[this.modelValue?l(F,{fit:"cover",position:"center",class:A.uploadImg,src:this.modelValue},null):l("div",{class:A.uploader},[l(S,{name:N,size:"32"},null),l("p",{class:A.uploaderText},[this.tips])])]):l(he,{afterRead:this.afterRead,beforeRead:this.beforeRead,beforeDelete:this.beforeDelete},{default:()=>this.modelValue?l(F,{fit:"cover",position:"center",class:A.uploadImg,src:this.modelValue},null):l("div",{class:A.uploader},[l(S,{name:N,size:"32"},null),l("p",{class:A.uploaderText},[this.tips])])})])}}),mt=M({name:"companion-teacher-register",setup(){const e=ie(),t=oe({showPicker:!1,showSubject:!1,submitStatus:!1,showEducation:!1,id:e.query.id,name:e.query.name,pattern:/^1(3|4|5|6|7|8|9)\d{9}$/,columns:[],pickerType:null,selectSubjects:[],forms:{realName:"",phone:null,gender:1,idCardNo:null,cityCode:null,cityCodeName:"",provinceCode:null,subjectIds:[],smsValidCode:"",educationBackground:"",graduateSchool:null,idcardFrontImg:"",idcardBackImg:""},btnLoading:!1,checkPhone:!1,checked:!0,columnSubject:[],countDownStatus:!0,countDownTime:120,countDownRef:null,imgCodeStatus:!1}),s=async()=>{if(!t.checked){Y("\u8BF7\u9605\u8BFB\u5E76\u540C\u610F\u534F\u8BAE");return}t.btnLoading=!0;try{const n=t.forms;await z.post("/api-school/open/schoolTeacherStudent/registerTeacher",{data:{...n,subjectIds:n.subjectIds.join(","),schoolId:t.id}}),t.submitStatus=!0}catch{}t.btnLoading=!1},i=n=>{const c=n.selectedOptions[1];t.forms.cityCode=c.code,t.forms.cityCodeName=c.name;const p=n.selectedOptions[0];t.forms.provinceCode=p.code,t.showPicker=!1},o=(n,c)=>{q({title:"\u63D0\u793A",message:"\u60A8\u662F\u5426\u5220\u9664\u9009\u4E2D\u7684\u58F0\u90E8",confirmButtonColor:"#ff8057",showCancelButton:!0}).then(()=>{t.selectSubjects.splice(c,1);const p=[];t.selectSubjects.forEach(d=>{p.push(d.value)}),t.forms.subjectIds=p})},r=n=>{const c=n.selectedOptions[0];let p=!1;if(t.selectSubjects.forEach(C=>{C.value===c.value&&(p=!0)}),p){t.showSubject=!1;return}t.selectSubjects.push(n.selectedOptions[0]);const d=[];t.selectSubjects.forEach(C=>{d.push(C.value)}),t.forms.subjectIds=d,t.showSubject=!1},a=n=>{const c=n.selectedOptions[0];t.forms.educationBackground=c.value,t.showEducation=!1},h=()=>{if(!le(t.forms.phone))return Y("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801");t.imgCodeStatus=!0},u=()=>{t.countDownStatus=!1;const n=setInterval(()=>{t.countDownTime=t.countDownTime-1,t.countDownTime<=0&&(t.countDownTime=120,t.countDownStatus=!0,clearInterval(n))},1e3)};return re(async()=>{t.id||Y("\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08");try{const n=[];K.forEach(C=>{const f={name:C.name,code:C.code,areas:[]};C.areas&&C.areas.length>0&&C.areas.forEach(g=>{f.areas.push({name:g.name,code:g.code})}),n.push(f)}),t.columns=n||[];const{data:c}=await z.post("/api-school/open/subject/page",{data:{page:1,rows:50}}),p=c.rows||[],d=[];p.forEach(C=>{d.push({text:C.name,value:C.id})}),t.columnSubject=d}catch{q({message:"\u4FE1\u606F\u83B7\u53D6\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u8001\u5E08",theme:"round-button",confirmButtonColor:"#64A9FF"})}}),()=>l("div",{class:m.register},[l("div",{class:m.title},[l("p",{class:m.tips},[l("img",{src:Se},null),l("span",null,[t.name])])]),l(G,{validateFirst:!0,scrollToError:!0,onSubmit:s,ref:"form",class:m.form},{default:()=>[l(ce,{inset:!0,class:m["cell-group"]},{default:()=>[l(I,{required:!0,label:"\u771F\u5B9E\u59D3\u540D",modelValue:t.forms.realName,"onUpdate:modelValue":n=>t.forms.realName=n,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D"}],name:"realName",placeholder:"\u8BF7\u586B\u5199\u771F\u5B9E\u59D3\u540D",maxlength:"50"},null),l(I,{required:!0,label:"\u624B\u673A\u53F7\u7801",modelValue:t.forms.phone,"onUpdate:modelValue":n=>t.forms.phone=n,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"}],name:"phone",placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7\u7801"},null),l(I,{required:!0,label:"\u9A8C\u8BC1\u7801",modelValue:t.forms.smsValidCode,"onUpdate:modelValue":n=>t.forms.smsValidCode=n,name:"smsValidCode",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u58F0\u90E8",trigger:"onChange"}],placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},{button:()=>t.countDownStatus?l(T,{type:"primary",round:!0,size:"small",color:"#ff8057",onClick:h},{default:()=>[y("\u53D1\u9001\u9A8C\u8BC1\u7801")]}):l(T,{type:"default",round:!0,size:"small",disabled:!0,style:{minWidth:"60px"},onClick:h},{default:()=>[t.countDownTime+"s"]})}),l("div",{class:m.phoneTips},[l(S,{name:"warning",size:"16"},null),y("\u63D0\u793A\uFF1A\u624B\u673A\u53F7\u7801\u5C06\u6210\u4E3A\u60A8\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEF\u767B\u5F55\u8D26\u53F7")]),l(I,{required:!0,label:"\u8EAB\u4EFD\u8BC1\u53F7\u7801",modelValue:t.forms.idCardNo,"onUpdate:modelValue":n=>t.forms.idCardNo=n,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7"},{pattern:/^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7"}],name:"idCardNo",placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"},null),l(I,{required:!0,label:"\u6027\u522B",name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},{input:()=>l(ue,{"checked-color":"#FF8057",modelValue:t.forms.gender,"onUpdate:modelValue":n=>t.forms.gender=n,direction:"horizontal"},{default:()=>[l(L,{size:"large",type:"primary",plain:t.forms.gender!==1,color:"#FF8057",class:m.radioSection},{default:()=>[l(P,{class:m.radioItem,name:1},null),y("\u7537")]}),l(L,{size:"large",type:"primary",plain:t.forms.gender!==0,color:"#FF8057",class:m.radioSection},{default:()=>[l(P,{class:m.radioItem,name:0},null),y("\u5973")]})]})}),l(I,{required:!0,label:"\u8EAB\u4EFD\u8BC1\u7167\u7247\u6B63\u9762",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":n=>t.forms.idcardFrontImg=n,readonly:!0,name:"idcardFrontImg",onClick:()=>t.showPicker=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8EAB\u4EFD\u8BC1\u7167\u7247\u6B63\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u9009\u62E9\u8EAB\u4EFD\u8BC1\u7167\u7247\u6B63\u9762"},{input:()=>l(Q,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":n=>t.forms.idcardFrontImg=n},null)}),l(I,{required:!0,label:"\u8EAB\u4EFD\u8BC1\u7167\u7247\u53CD\u9762",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":n=>t.forms.idcardFrontImg=n,readonly:!0,name:"idcardFrontImg",onClick:()=>t.showPicker=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8EAB\u4EFD\u8BC1\u7167\u7247\u53CD\u9762",trigger:"onChange"}],placeholder:"\u8BF7\u9009\u62E9\u8EAB\u4EFD\u8BC1\u7167\u7247\u53CD\u9762"},{input:()=>l(Q,{style:{width:"100%"},tips:"\u4E0A\u4F20\u8EAB\u4EFD\u8BC1\u6B63\u9762",modelValue:t.forms.idcardFrontImg,"onUpdate:modelValue":n=>t.forms.idcardFrontImg=n},null)}),l(I,{required:!0,label:"\u5B66\u5386",modelValue:t.forms.educationBackground,"onUpdate:modelValue":n=>t.forms.educationBackground=n,readonly:!0,name:"educationBackground",onClick:()=>t.showEducation=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B66\u5386",trigger:"onChange"}],placeholder:"\u8BF7\u9009\u62E9\u5B66\u5386"},{"right-icon":()=>l(S,{name:"arrow",color:t.checkPhone?"#aaa":"#323233",size:"16"},null)}),l(I,{required:!0,label:"\u6BD5\u4E1A\u5B66\u6821",modelValue:t.forms.graduateSchool,"onUpdate:modelValue":n=>t.forms.graduateSchool=n,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u5B66\u6821"}],name:"graduateSchool",placeholder:"\u8BF7\u8F93\u5165\u6BD5\u4E1A\u5B66\u6821"},null),l(I,{required:!0,label:"\u6240\u5728\u57CE\u5E02",modelValue:t.forms.cityCodeName,"onUpdate:modelValue":n=>t.forms.cityCodeName=n,readonly:!0,name:"cityCodeName",onClick:()=>t.showPicker=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6240\u5728\u57CE\u5E02",trigger:"onChange"}],placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u57CE\u5E02"},{"right-icon":()=>l(S,{name:"arrow",color:t.checkPhone?"#aaa":"#323233",size:"16"},null)}),l(I,{required:!0,label:"\u58F0\u90E8\uFF08\u53EF\u591A\u9009\uFF09",modelValue:t.forms.cityCodeName,"onUpdate:modelValue":n=>t.forms.cityCodeName=n,readonly:!0,name:"cityCodeName",onClick:()=>t.showSubject=!0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u58F0\u90E8",trigger:"onChange"}],placeholder:"\u8BF7\u9009\u62E9\u58F0\u90E8"},{"right-icon":()=>l(S,{name:"arrow",color:t.checkPhone?"#aaa":"#323233",size:"16"},null),input:()=>l(ae,null,[t.forms.subjectIds.length<=0?l("div",{class:m.subjectPlaceholder,style:"color:#c8c9cc"},[y("\u8BF7\u9009\u62E9\u58F0\u90E8")]):"",t.forms.subjectIds.length>0?l("div",null,[t.selectSubjects.map((n,c)=>l(L,{closeable:!0,size:"medium",color:"#FF8057",onClose:()=>o(n,c)},{default:()=>[n.text]}))]):""])})]}),l("div",{class:m.protocol},[l(pe,{modelValue:t.checked,"onUpdate:modelValue":n=>t.checked=n,"icon-size":"16",style:"margin-right: 6px","checked-color":"#FF8057"},null),l("span",{onClick:()=>{t.checked=!t.checked}},[y("\u8BF7\u8BA4\u771F\u9605\u8BFB\u5E76\u52FE\u9009")]),l("span",{class:m.c},[y("\u300A\u4E50\u56E2\u4F34\u5B66\u8001\u5E08\u6CE8\u518C\u534F\u8BAE\u300B")])]),l(T,{size:"large",block:!0,round:!0,class:m["btn-submit"],color:"#FF8057",loading:t.btnLoading,"native-type":"submit"},{default:()=>[y("\u5B8C\u6210")]})]}),l(k,{show:t.showPicker,"onUpdate:show":n=>t.showPicker=n,position:"bottom",round:!0},{default:()=>[l(W,{showToolbar:!0,columns:t.columns,onCancel:()=>t.showPicker=!1,onConfirm:i,columnsFieldNames:{text:"name",value:"code",children:"areas"}},null)]}),l(k,{show:t.showSubject,"onUpdate:show":n=>t.showSubject=n,position:"bottom",round:!0},{default:()=>[l(W,{showToolbar:!0,columns:t.columnSubject,onCancel:()=>t.showSubject=!1,onConfirm:r},null)]}),l(k,{show:t.showSubject,"onUpdate:show":n=>t.showSubject=n,position:"bottom",round:!0},{default:()=>[l(W,{showToolbar:!0,columns:t.columnSubject,onCancel:()=>t.showSubject=!1,onConfirm:r},null)]}),l(k,{show:t.showEducation,"onUpdate:show":n=>t.showEducation=n,position:"bottom",round:!0},{default:()=>[l(W,{showToolbar:!0,columns:[{text:"\u4E13\u79D1",value:"\u4E13\u79D1"},{text:"\u672C\u79D1",value:"\u672C\u79D1"},{text:"\u7855\u58EB",value:"\u7855\u58EB"},{text:"\u535A\u58EB",value:"\u535A\u58EB"},{text:"\u5176\u4ED6",value:"\u5176\u4ED6"}],onCancel:()=>t.showEducation=!1,onConfirm:a},null)]}),l(k,{show:t.submitStatus,"onUpdate:show":n=>t.submitStatus=n,round:!0,style:"width: 75%",closeOnClickOverlay:!0},{default:()=>[l("div",{class:m.stautsS},[l("img",{class:m["icon-close"],src:ke,onClick:()=>t.submitStatus=!1},null),l("img",{src:Oe,class:m["submit-img"]},null),l("div",{class:m["submit-container"]},[l("p",{class:m["submit-title"]},[y("\u606D\u559C\u60A8\u5DF2\u6210\u529F\u767B\u8BB0\u4E3A")]),l("p",{class:m["submit-o"]},[t.name,y(" "),l("span",null,[y("\u3010\u4F34\u5B66\u8001\u5E08\u3011")])]),l("p",{class:m["submit-tips"]},[y("\u8BF7\u4E0B\u8F7D\u7BA1\u4E50\u56E2\u7BA1\u7406\u7AEFAPP\u8FDB\u884C\u6388\u8BFE")]),l(T,{type:"primary",color:"#FF8057",block:!0,round:!0,onClick:()=>t.submitStatus=!1},{default:()=>[y("\u7ACB\u5373\u4E0B\u8F7D")]})])])]}),t.imgCodeStatus?l(ne,{value:t.imgCodeStatus,"onUpdate:value":n=>t.imgCodeStatus=n,phone:t.forms.phone,onClose:()=>{t.imgCodeStatus=!1},onSendCode:u},null):null])}});export{mt as default};