PageSourceSearch

https://kiku.listen.org/2702.17b2f83d8781a9a1.bundle.js

js listen.org collected 2026-10-02 06:40:51 UTC 7,123 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkclient"]=self["webpackChunkclient"]||[]).push([[2702],{14419:function(e,t,a){a.d(t,{A:function(){return _}});var l=a(20641),i=a(53751),s=a(90033);const n={key:0,class:"mb-5"},o=["href"],d={class:"icon-text"},u={class:"icon is-small"},m={key:1},r={key:1,class:"has-text-success has-text-weight-semibold mb-5"},c=["value"],p={key:2,class:"mt-5"},h=["href"],b={class:"is-size-7 is-italic"},f={class:"control mt-5 mb-6"};function v(e,t,a,v,k,g){const $=(0,l.g2)("b-loading"),y=(0,l.g2)("font-awesome-icon"),_=(0,l.g2)("b-upload"),V=(0,l.g2)("b-radio"),F=(0,l.g2)("b-field"),L=(0,l.g2)("b-select"),C=(0,l.g2)("b-input"),D=(0,l.g2)("b-datepicker");return(0,l.uX)(),(0,l.CE)("section",null,[(0,l.Lk)("form",{onSubmit:t[9]||(t[9]=(0,i.D$)((...e)=>a.save&&a.save(...e),["prevent"]))},[(0,l.bF)($,{modelValue:k.isUploading,"onUpdate:modelValue":t[0]||(t[0]=e=>k.isUploading=e),"is-full-page":!1},null,8,["modelValue"]),a.item.id?((0,l.uX)(),(0,l.CE)("div",n,[a.item.media?((0,l.uX)(),(0,l.CE)("a",{key:0,href:g.mediaSrc(a.item.media),class:"button is-primary is-outlined is-rounded mr-4",target:"_blank"},[(0,l.Lk)("span",d,[(0,l.Lk)("span",u,[(0,l.bF)(y,{icon:"fa-light fa-cloud-arrow-down",class:"ml-1 mr-1"})]),(0,l.Lk)("span",null,(0,s.v_)(e.$t("downloadDocument")),1)])],8,o)):(0,l.Q3)("",!0),(0,l.bF)(_,{modelValue:k.file,"onUpdate:modelValue":[t[1]||(t[1]=e=>k.file=e),g.upload]},{default:(0,l.k6)(()=>[(0,l.Lk)("a",{class:(0,s.C4)(["button is-primary is-rounded is-outlined",{"is-loading":e.$store.state.isLoadingButton}])},[(0,l.Lk)("span",null,(0,s.v_)(e.$t(a.item.media?"Change document":"uploadDocument")),1)],2)]),_:1},8,["modelValue","onUpdate:modelValue"]),k.file?((0,l.uX)(),(0,l.CE)("span",m,(0,s.v_)(k.file.name),1)):(0,l.Q3)("",!0)])):(0,l.Q3)("",!0),a.item&&a.item.id?(0,l.Q3)("",!0):((0,l.uX)(),(0,l.CE)("p",r,(0,s.v_)(e.$t("You will be able to upload the file after you create the record"))+". ",1)),t[11]||(t[11]=(0,l.Lk)("hr",null,null,-1)),(0,l.bF)(F,{label:e.$t("status")},{default:(0,l.k6)(()=>[(0,l.bF)(V,{modelValue:a.item.isPrivate,"onUpdate:modelValue":t[2]||(t[2]=e=>a.item.isPrivate=e),"native-value":!0},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$t("private")),1)]),_:1},8,["modelValue"]),(0,l.bF)(V,{modelValue:a.item.isPrivate,"onUpdate:modelValue":t[3]||(t[3]=e=>a.item.isPrivate=e),"native-value":!1},{default:(0,l.k6)(()=>[(0,l.eW)((0,s.v_)(e.$t("public")),1)]),_:1},8,["modelValue"])]),_:1},8,["label"]),(0,l.bF)(F,{label:e.$t("type"),class:"mt-5"},{default:(0,l.k6)(()=>[(0,l.bF)(L,{modelValue:a.item.type,"onUpdate:modelValue":t[4]||(t[4]=e=>a.item.type=e),required:""},{default:(0,l.k6)(()=>[t[10]||(t[10]=(0,l.Lk)("option",{value:null},"...",-1)),((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(k.gazetteTypes,e=>((0,l.uX)(),(0,l.CE)("option",{key:e["@id"],value:e["@id"]},(0,s.v_)(e.name),9,c))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),(0,l.bF)(F,{label:e.$t("subject"),class:"mt-5"},{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:a.item.subject,"onUpdate:modelValue":t[5]||(t[5]=e=>a.item.subject=e)},null,8,["modelValue"])]),_:1},8,["label"]),a.item.file?((0,l.uX)(),(0,l.CE)("p",p,[(0,l.Lk)("a",{href:g.mediaSrc(a.item.file)},(0,s.v_)(e.$t("downloadDocument")),9,h)])):(0,l.Q3)("",!0),(0,l.bF)(F,{label:e.$t("documentNumber"),class:"mt-5"},{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:a.item.documentNumber,"onUpdate:modelValue":t[6]||(t[6]=e=>a.item.documentNumber=e),type:"number"},null,8,["modelValue"])]),_:1},8,["label"]),(0,l.bF)(F,{label:e.$t("documentDate"),class:"mt-5"},{default:(0,l.k6)(()=>[(0,l.bF)(D,{modelValue:a.item.documentDate,"onUpdate:modelValue":t[7]||(t[7]=e=>a.item.documentDate=e),placeholder:e.$t("selectDate"),icon:"fa-calendar",editable:"",required:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),(0,l.bF)(F,{label:e.$t("content"),class:"mt-5"},{default:(0,l.k6)(()=>[(0,l.bF)(C,{modelValue:a.item.content,"onUpdate:modelValue":t[8]||(t[8]=e=>a.item.content=e),type:"textarea"},null,8,["modelValue"])]),_:1},8,["label"]),(0,l.Lk)("p",b,"* "+(0,s.v_)(e.$t("For internal search purpose")),1),(0,l.Lk)("div",f,[(0,l.Lk)("button",{class:(0,s.C4)(["button is-primary is-rounded",{"is-loading":e.$store.state.isLoadingButton}]),type:"submit"},(0,s.v_)(e.$t("save")),3)])],32)])}var k=a(95256),g={components:{},props:["item","save"],data(){return{gazetteTypes:null,file:null,isUploading:!1}},computed:{},created(){return this.$http.plain.get("/official_gazette_types").then(e=>{this.gazetteTypes=e.data["hydra:member"]}).catch(e=>console.error(e))},methods:{mediaSrc:k.F9,upload(){if(!this.file)return;let e=new FormData;
1e.append("file",this.file),e.append("type","gazette"),e.append("entity_id",this.item.id),this.isUploading=!0,this.$http.plain.post("/media_objects",e,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{this.item.media=e.data}).catch(e=>{console.error(e)}).finally(()=>{this.file=null,this.isUploading=!1})}}},$=a(66262);const y=(0,$.A)(g,[["render",v]]);var _=y},22702:function(e,t,a){a.r(t),a.d(t,{default:function(){return h}});var l=a(20641),i=a(90033);const s={key:0,class:"o-minwidth"},n={class:"title"},o={key:0,class:"buttons pt-3"};function d(e,t,a,d,u,m){const r=(0,l.g2)("Form");return u.item?((0,l.uX)(),(0,l.CE)("section",s,[(0,l.Lk)("h2",n,(0,i.v_)(u.item.subject),1),t[1]||(t[1]=(0,l.Lk)("hr",null,null,-1)),(0,l.bF)(r,{save:m.save,item:u.item},null,8,["save","item"]),t[2]||(t[2]=(0,l.Lk)("hr",null,null,-1)),u.item.owner["@id"]==e.user["@id"]||e.isGranted("ADMIN_TENANT")?((0,l.uX)(),(0,l.CE)("div",o,[(0,l.Lk)("a",{class:"button is-danger is-outlined is-rounded",onClick:t[0]||(t[0]=(...e)=>m.confirmDelete&&m.confirmDelete(...e))},(0,i.v_)(e.$t("delete")),1)])):(0,l.Q3)("",!0)])):(0,l.Q3)("",!0)}a(44114);var u=a(14419),m=a(40834),r={data(){return{itemId:this.$route.params.item,item:null}},created(){this.retrieve()},methods:{retrieve(){this.$http.plain.get("/official_gazettes/"+this.itemId).then(e=>{e.data.documentDate=new Date(e.data.documentDate),e.data.type=e.data.type["@id"],null==e.data.isPrivate&&(e.data.isPrivate=!1),this.item=e.data}).catch(e=>console.error(e))},save(){this.item.documentNumber=parseInt(this.item.documentNumber);let e={...this.item};delete e.owner,delete e.localCenter,delete e.media,this.$http.plain.patch("/official_gazettes/"+this.item.id,e).then(e=>this.saveSuccess(e)).catch(e=>console.error(e))},saveSuccess(e){return this.$buefy.snackbar.open({type:"is-success",message:this.$t("updatedSuccessfully")})},confirmDelete(){this.$buefy.dialog.confirm({title:this.$t("deleting")+" "+this.$t("gazette"),message:this.$t("confirmDelete")+" "+this.item.subject+"? "+this.$t("confirmDeleteLast"),confirmText:this.$t("delete"),type:"is-danger",onConfirm:()=>this.delete()})},delete(){this.$http.plain.delete("/official_gazettes/"+this.item.id).then(e=>this.deleteSuccess(e)).catch(e=>console.error(e))},deleteSuccess(){this.$router.push({name:"GazetteList"}),this.$buefy.toast.open(this.$t("deleted"))}},computed:{...(0,m.L8)(["user","isGranted","tenant"])},components:{Form:u.A}},c=a(66262);const p=(0,c.A)(r,[["render",d]]);var h=p}}]);

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.