PageSourceSearch

https://cardemy.com/js/440.5ec6f53b.js

js cardemy.com collected 2026-10-02 00:16:03 UTC 4,563 bytes, 1 lines download raw bytes

1"use strict";(globalThis["webpackChunk"]=globalThis["webpackChunk"]||[]).push([[440],{15440:(e,t,l)=>{l.r(t),l.d(t,{default:()=>v});var a=l(61758),i=l(29104),n=l(58790);const s={class:"container p-4 flex justify-center"},o={key:0},d={class:"text-left"},r={class:"text-left"},u=["disabled"],p={key:0},c={key:1},h=["href"],y={key:2},k={key:3},f=["href"];function m(e,t,l,m,g,L){const b=(0,a.g2)("loader");return(0,a.uX)(),(0,a.CE)("div",s,[(0,a.bF)(b,{condition:g.loader,marginy:"100"},null,8,["condition"]),g.loader?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("div",o,[(0,a.Lk)("div",d,[t[10]||(t[10]=(0,a.Lk)("label",null,"Document language:",-1)),(0,a.bo)((0,a.Lk)("select",{"onUpdate:modelValue":t[0]||(t[0]=e=>g.language=e),onChange:t[1]||(t[1]=(...e)=>L.getCurrentFile&&L.getCurrentFile(...e))},t[9]||(t[9]=[(0,a.Lk)("option",{value:"fr"},"FR",-1),(0,a.Lk)("option",{value:"en"},"EN",-1),(0,a.Lk)("option",{value:"ja"},"JA",-1)]),544),[[i.u1,g.language]]),t[11]||(t[11]=(0,a.eW)()),t[12]||(t[12]=(0,a.Lk)("br",null,null,-1))]),(0,a.Lk)("div",r,[(0,a.Lk)("input",{id:"uploadTOU",ref:"fileUpload",type:"file",accept:".pdf",onChange:t[2]||(t[2]=(...e)=>L.uploadFile&&L.uploadFile(...e))},null,544),t[17]||(t[17]=(0,a.eW)()),t[18]||(t[18]=(0,a.Lk)("br",null,null,-1)),t[19]||(t[19]=(0,a.Lk)("br",null,null,-1)),(0,a.Lk)("ul",null,[(0,a.Lk)("li",null,[(0,a.bo)((0,a.Lk)("input",{type:"radio",id:"type0",value:"termsofuse","onUpdate:modelValue":t[3]||(t[3]=e=>g.docType=e),onChange:t[4]||(t[4]=e=>g.isUpdate=!1)},null,544),[[i.XL,g.docType]]),t[13]||(t[13]=(0,a.Lk)("label",{for:"type0"},"Terms and conditions",-1))]),(0,a.Lk)("li",null,[(0,a.bo)((0,a.Lk)("input",{type:"radio",id:"type1",value:"privacypolicy","onUpdate:modelValue":t[5]||(t[5]=e=>g.docType=e),onChange:t[6]||(t[6]=e=>g.isUpdate=!1)},null,544),[[i.XL,g.docType]]),t[14]||(t[14]=(0,a.Lk)("label",{for:"type1"},"Privacy policy",-1))])]),t[20]||(t[20]=(0,a.Lk)("br",null,null,-1)),(0,a.Lk)("div",null,[(0,a.bo)((0,a.Lk)("input",{type:"checkbox",name:"isupdate",id:"isupdate","onUpdate:modelValue":t[7]||(t[7]=e=>g.isUpdate=e),disabled:-1===g.activeID},null,8,u),[[i.lH,g.isUpdate]]),(0,a.Lk)("label",{for:"isupdate",class:(0,n.C4)({"text-gray-200":-1===g.activeID})}," It's a minor update, no need to reset Terms and Conditions acceptance. ",2),t[15]||(t[15]=(0,a.eW)()),t[16]||(t[16]=(0,a.Lk)("br",null,null,-1))]),t[21]||(t[21]=(0,a.eW)(" Current Terms and conditions ")),g.termsOfUse.updated_at?((0,a.uX)(),(0,a.CE)("span",c,[(0,a.Lk)("a",{target:"_blank",class:"link-and-dropdown",href:g.termsOfUse.path}," ("+(0,n.v_)(g.termsOfUse.updated_at)+") ",9,h)])):((0,a.uX)(),(0,a.CE)("span",p,"(None)")),t[22]||(t[22]=(0,a.Lk)("br",null,null,-1)),t[23]||(t[23]=(0,a.eW)(" Current Privacy policy ")),g.privacyPolicy.updated_at?((0,a.uX)(),(0,a.CE)("span",k,[(0,a.Lk)("a",{target:"_blank",class:"link-and-dropdown",href:g.privacyPolicy.path}," ("+(0,n.v_)(g.privacyPolicy.updated_at)+") ",9,f)])):((0,a.uX)(),(0,a.CE)("span",y,"(None)")),t[24]||(t[24]=(0,a.Lk)("br",null,null,-1))]),t[25]||(t[25]=(0,a.eW)()),t[26]||(t[26]=(0,a.Lk)("br",null,null,-1)),(0,a.Lk)("button",{onClick:t[8]||(t[8]=(...e)=>L.postForm&&L.postForm(...e)),class:"btn btn-primary ml-1 mr-4 mt-2 mb-4"},"Validate")]))])}const g={data(){return{loader:!0,isUpdate:!1,file:null,showError:!1,termsOfUse:{id:-1,path:null,updated_at:null},privacyPolicy:{id:-1,path:null,updated_at:null},language:"fr",docType:"termsofuse",loaded:!1,activeID:-1}},methods:{uploadFile(e){const t=e.target.files;this.file=t.length?t[0]:null,this.showError=!this.file||this.file.size>2e6},postForm(){if(this.file){this.loader=!0;const e=this;let t=new FormData;t.append("file",this.file),this.isUpdate?(t.append("_method","PUT"),this.$api.post("/api/legaldocuments/"+this.activeID,t).then((t=>{e.resetForm(t.data)}))):(t.append("type",this.docType),t.append("language",this.language),this.$api.post("/api/legaldocuments",t).then((t=>{e.resetForm(t.data)})))}else this.showError=!0},resetForm(e){this.isNew=!1,this.file=null,this.isUpdate=!1,"termsofuse"===this.docType?this.termsOfUse=e:this.privacyPolicy=e,this.docType="termsofuse",this.loader=!1},getCurrentFile(){this.loader=!0;const e=this;this.$api.get("/api/legaldocuments/"+this.language,{}).then((t=>{t.data&&(e.termsOfUse=t.data.termsofuse,e.privacyPolicy=t.data.privacypolicy),e.loader=!1}))}},mounted(){this.loaded||this.getCurrentFile(),this.loaded=!0},updated(){this.activeID="termsofuse"===this.docType?this.termsOfUse.id:this.privacyPolicy.id}};var L=l(12807);const b=(0,L.A)(g,[["render",m]]),v=b}}]);

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.