PageSourceSearch

https://glavbankrot.ru/build/assets/ReviewCreate-mTAjboNQ.js

js glavbankrot.ru collected 2026-10-08 05:20:37 UTC 7,168 bytes, 1 lines download raw bytes

1import{T as k,i as C,e as h,b as o,w as g,u as e,F as E,o as $,a as t,Z as U,j as A}from"./app-nq--Cznr.js";import{u as B,_ as I}from"./useAppMessagePopup-DemHmQrD.js";import{_ as j}from"./AppBackLayout-CLNTjgl5.js";import{_ as S}from"./AppLinkButton-xwtUOB5W.js";import{_ as i}from"./InputLabel-D_zi9iNt.js";import{_ as n}from"./InputError-fEfTWEub.js";import{_ as m}from"./Textarea-CdWJtmTA.js";import{_ as p}from"./TextInput-DUMyoSYk.js";import{u as T,A as F}from"./useVideoInput-CegC_c6G.js";import{_ as v}from"./AppButton-CLwPIX3P.js";import{u as M}from"./useInputImage-CsEzVF1a.js";import"./index-DcyeGTa6.js";/* empty css                                                                     */import"./_plugin-vue_export-helper-DlAUqK2U.js";const N={class:"mt-[20px] min-[1280px]:mt-[40px] grid grid-cols-12 gap-[10px]"},P={class:"col-span-12 min-[1280px]:col-span-6 flex flex-col gap-[10px]"},R={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},D={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},Z={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},q={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},z={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},G={class:"col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},H={class:"mt-[24px] col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},J={class:"w-[200px] h-[200px] overflow-hidden"},K=["src"],L={class:"mt-4"},O={class:"mt-[24px] col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col gap-[10px]"},Q={class:"font-medium text-[16px] text-gray-700"},W={class:"mt-[24px] col-span-12 min-[1280px]:col-start-1 min-[1280px]:col-end-7 flex flex-col min-[834px]:flex-row gap-[10px]"},ce={__name:"ReviewCreate",props:{caseNumber:[String,null]},setup(_){const{isMessagePopupActive:u,handleMessagePopupCloseClick:b}=B(),l=k({case_number:_.caseNumber||"",review_link:"",rating:"",description:"",review:"",image:"",video:"",video_link:"",video_player:"",meta_title:"",meta_description:""}),{imageTag:w,handleChangeFileInput:c}=M(l),{videoTag:V,handleVideoFile:x}=T(l),y=()=>{l.post(route("reviews.store"),{onSuccess:()=>{u.value=!0,l.reset()}})},r=d=>{delete l.errors[d]};let f=C(()=>!(l.review!==""&&l.case_number!==""));return(d,s)=>($(),h(E,null,[o(e(U),null,{default:g(()=>s[11]||(s[11]=[t("title",null,"Создание отзыва",-1),t("meta",{name:"description",content:"Создание отзыва"},null,-1)])),_:1}),o(j,null,{default:g(()=>[o(S,{label:"Назад",path:d.route("reviews.index")},null,8,["path"]),t("form",{onSubmit:A(y,["prevent"]),class:"mt-[24px]"},[s[15]||(s[15]=t("h1",{class:"text-xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Создание отзыва",-1)),t("div",N,[t("div",P,[o(i,{value:"Номер дела*"}),o(p,{class:"w-full",modelValue:e(l).case_number,"onUpdate:modelValue":s[0]||(s[0]=a=>e(l).case_number=a),name:"video_link",onClearError:r},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.case_number},null,8,["message"])]),t("div",R,[o(i,{value:"Ссылка на отзыв"}),o(p,{class:"w-full",modelValue:e(l).review_link,"onUpdate:modelValue":s[1]||(s[1]=a=>e(l).review_link=a),name:"review_link",onClearError:r},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.review_link},null,8,["message"])]),t("div",D,[o(i,{value:"Рейтинг"}),o(F,{modelValue:e(l).rating,"onUpdate:modelValue":s[2]||(s[2]=a=>e(l).rating=a)},null,8,["modelValue"])]),t("div",Z,[o(i,{value:"Мета заголовок"}),o(p,{class:"w-full",modelValue:e(l).meta_title,"onUpdate:modelValue":s[3]||(s[3]=a=>e(l).meta_title=a),name:"meta_title",onClearError:r},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.meta_title},null,8,["message"])]),t("div",q,[o(i,{value:"Мета описание"}),o(m,{class:"w-full",modelValue:e(l).meta_description,"onUpdate:modelValue":s[4]||(s[4]=a=>e(l).meta_description=a),name:"meta_description",onClearError:r,rows:"10"},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.meta_description},null,8,["message"])]),t("div",z,[o(i,{value:"Описание"}),o(m,{class:"w-full",modelValue:e(l).description,"onUpdate:modelValue":s[5]||(s[5]=a=>e(l).description=a),name:"description",onClearError:r,rows:"10"},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.description},null,8,["message"])]),t("div",G,[o(i,{value:"Текст отзыва*"}),o(m,{class:"w-full",modelValue:e(l).review,"onUpdate:modelValue":s[6]||(s[6]=a=>e(l).review=a),name:"review",onClearError:r,rows:"10"},null,8,["modelValue"]),o(n,{class:"mt-2",message:e(l).errors.review},null,8,["message"])]),t("div",H,[o(i,{for:"image",value:"Фото отзыва"}),t("div",null,[t("div",J,[t("img",{src:e(l).image===""?"/img/case/case-dummy.png":e(l).image,alt:"Фото отзыва",width:"200",height:"200",class:"w-full h-full object-cover object-center block",ref_key:"imageTag",ref:w}
1,null,8,K)]),t("div",L,[s[12]||(s[12]=t("label",{class:"flex items-center justify-center min-h-[45px] rounded-md bg-[#150E0E] hover:bg-[#1A1B1C]/90 px-3 py-2 text-sm font-semibold leading-6 text-white shadow-sm w-[fit-content] disabled:bg-gray-400 disabled:py-[10px] cursor-pointer",for:"image"},"Загрузить изображение",-1)),t("input",{type:"file",name:"image",id:"image",hidden:"",accept:"image/*",onInput:s[7]||(s[7]=(...a)=>e(c)&&e(c)(...a))},null,32)])]),o(n,{class:"mt-2",message:e(l).errors.image},null,8,["message"])]),t("div",O,[t("div",Q,[t("video",{src:"",ref_key:"videoTag",ref:V,controls:"",style:{"aspect-ratio":"16/9"},class:"hidden"},null,512)]),s[13]||(s[13]=t("label",{class:"flex items-center justify-center min-h-[45px] rounded-md bg-[#150E0E] hover:bg-[#1A1B1C]/90 px-3 py-2 text-sm font-semibold leading-6 text-white shadow-sm w-[fit-content] disabled:bg-gray-400 disabled:py-[10px] cursor-pointer",for:"video"},"Загрузить видео",-1)),t("input",{type:"file",name:"video",id:"video",hidden:"",accept:"video/*",onInput:s[8]||(s[8]=(...a)=>e(x)&&e(x)(...a))},null,32),o(n,{class:"mt-2",message:e(l).errors.video},null,8,["message"]),s[14]||(s[14]=t("p",{class:"font-medium text-[16px] text-gray-700"},"или вставьте код видео проигрывателя",-1)),o(m,{class:"w-full",modelValue:e(l).video_player,"onUpdate:modelValue":s[9]||(s[9]=a=>e(l).video_player=a),name:"video_player",onClearError:r,rows:"5"},null,8,["modelValue"])]),t("div",W,[o(v,{label:"Сохранить","button-type":"submit","is-disabled":e(f),"background-type":"filled"},null,8,["is-disabled"]),o(v,{label:"Отменить","button-type":"reset","is-disabled":e(f),"background-type":"transparent",onClick:s[10]||(s[10]=a=>e(l).reset())},null,8,["is-disabled"])])])],32)]),_:1}),o(I,{"is-active":e(u),message:{title:"Отзыв успешно добавлен"},"handle-close-click":e(b)},null,8,["is-active","handle-close-click"])],64))}};export{ce as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.